/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--font-size-base);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-outline-white {
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
}

.btn-outline-white:hover {
  background: #fff;
  color: var(--primary);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: var(--font-size-lg);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--font-size-sm);
}

.btn-group {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Cards */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(33, 50, 94, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
  color: var(--primary);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-sm);
}

.card p {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  line-height: 1.7;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-accent {
  background: rgba(139, 195, 74, 0.15);
  color: var(--accent-dark);
}

.badge-primary {
  background: rgba(33, 50, 94, 0.1);
  color: var(--primary);
}

/* Tag */
.tag {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  background: var(--bg-off-white);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
}

/* Form elements */
.form-group {
  margin-bottom: var(--space-lg);
  position: relative;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: var(--font-size-sm);
  margin-bottom: 6px;
  color: var(--text-dark);
  transition: color .2s;
}

.form-group:focus-within label {
  color: var(--primary);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-family: inherit;
  transition: border-color .25s, box-shadow .25s, background .25s;
  background: var(--bg-off-white);
  color: var(--text-dark);
}

.form-control::placeholder {
  color: var(--text-light);
}

.form-control:hover {
  border-color: var(--border);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(33, 50, 94, 0.08);
  background: var(--bg-white);
  outline: none;
}

.form-control.error {
  border-color: #e53935;
}

.form-error {
  color: #e53935;
  font-size: var(--font-size-xs);
  margin-top: 4px;
  display: none;
}

.form-group.has-error .form-error {
  display: block;
}

textarea.form-control {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

select.form-control {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23777' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* --- Subject pill selector --- */
.subject-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.subject-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-full);
  background: var(--bg-off-white);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .2s;
  user-select: none;
}

.subject-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(33,50,94,.04);
}

.subject-pill.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(33,50,94,.2);
}

.subject-pill svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* --- Form row (two columns) --- */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}
@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
}

/* --- Submit button upgrade --- */
.form-submit {
  width: 100%;
  position: relative;
  overflow: hidden;
}
.form-submit .btn-text { position: relative; z-index: 1; }
.form-submit::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
  transition: left .5s;
}
.form-submit:hover::after {
  left: 100%;
}

/* Divider */
.divider {
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: var(--space-md) 0;
}

.divider-center {
  margin-left: auto;
  margin-right: auto;
}

/* Chip row / social proof */
.logo-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3xl);
  flex-wrap: wrap;
  padding: var(--space-xl) 0;
  opacity: 0.4;
}

.logo-placeholder {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Marquee scroll for social proof */
.logo-marquee {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.logo-track {
  display: flex;
  align-items: center;
  gap: var(--space-3xl);
  animation: marquee-scroll 40s linear infinite;
  width: max-content;
  opacity: 0.35;
}

.logo-track:hover {
  animation-play-state: paused;
}

/* Logo images in marquee */
.logo-img {
  height: 32px;
  width: auto;
  flex-shrink: 0;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: opacity .3s, filter .3s;
}

.logo-img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Comparison table */
.cmp-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.comparison-table th,
.comparison-table td {
  padding: .85rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  font-size: var(--font-size-sm);
  vertical-align: middle;
}

/* --- Header row --- */
.comparison-table thead th {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  padding: 1.25rem 1.1rem;
  vertical-align: top;
  position: relative;
}

.cmp-feature-col {
  width: 28%;
}
.cmp-plan-col {
  width: 24%;
  text-align: center !important;
}

.cmp-plan-name {
  display: block;
  font-size: var(--font-size-lg);
  font-weight: 800;
  letter-spacing: -.02em;
}
.cmp-plan-for {
  display: block;
  font-size: 11px;
  font-weight: 400;
  opacity: .7;
  margin-top: 2px;
}

/* "Most Popular" header highlight */
.cmp-popular {
  background: var(--accent-dark) !important;
}
.cmp-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  background: rgba(255,255,255,.2);
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
}

/* Popular column body highlight */
.cmp-pop-cell {
  background: rgba(139,195,74,.04);
  text-align: center !important;
}

/* --- Category group rows --- */
.cmp-group-row td {
  background: var(--bg-off-white);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--primary);
  padding: .6rem 1.1rem;
  border-bottom: 2px solid var(--border-light);
}

/* --- Body rows --- */
.comparison-table tbody tr:not(.cmp-group-row):hover {
  background: rgba(33,50,94,.02);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody td:not(:first-child) {
  text-align: center;
  color: var(--text-body);
}
.comparison-table tbody td:first-child {
  font-weight: 500;
  color: var(--text-dark);
}

.comparison-table .check {
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
}

.comparison-table .cross {
  color: #e53935;
}

/* "Save" pill next to Annual label */
.cmp-save {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  background: rgba(139,195,74,.15);
  color: var(--accent-dark);
  padding: 2px 7px;
  border-radius: 20px;
  margin-left: 6px;
  vertical-align: middle;
}

/* Pricing strong highlight */
.comparison-table tbody td strong {
  font-size: var(--font-size-lg);
  color: var(--text-dark);
}

/* Accordion / FAQ */
.accordion {
  max-width: 750px;
  margin: 0 auto;
}

.accordion details {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  background: var(--bg-white);
  overflow: hidden;
}

.accordion summary {
  padding: var(--space-lg) var(--space-xl);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  color: var(--text-dark);
  transition: background var(--transition-fast);
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  content: '+';
  font-size: var(--font-size-xl);
  font-weight: 300;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.accordion details[open] summary::after {
  content: '−';
}

.accordion summary:hover {
  background: var(--bg-off-white);
}

.accordion .accordion-body {
  padding: 0 var(--space-xl) var(--space-lg);
  color: var(--text-muted);
  line-height: 1.7;
}

/* Success message */
.success-message {
  display: none;
  padding: var(--space-lg);
  background: rgba(139, 195, 74, 0.12);
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  color: var(--accent-dark);
  text-align: center;
  font-weight: 600;
}

.success-message.show {
  display: block;
}

/* ── Compliance / Trust Badges ── */
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
  padding: var(--space-lg) 0;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: box-shadow var(--transition-fast);
}

.trust-badge:hover {
  box-shadow: var(--shadow-sm);
}

.trust-badge-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.trust-badge-icon svg {
  width: 36px;
  height: 36px;
}

.trust-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.trust-badge-label {
  font-size: var(--font-size-xs);
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.trust-badge-desc {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Dark section variant */
.section-dark .trust-badge {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
}

.section-dark .trust-badge:hover {
  background: rgba(255,255,255,0.12);
}

.section-dark .trust-badge-icon {
  color: rgba(255,255,255,0.85);
}

.section-dark .trust-badge-label {
  color: #fff;
}

.section-dark .trust-badge-desc {
  color: rgba(255,255,255,0.55);
}

/* Footer compliance row */
.footer-compliance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  padding: var(--space-md) 0;
  margin-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-light);
}

.footer-compliance-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.3px;
  opacity: 0.6;
}

.footer-compliance-badge svg {
  width: 20px;
  height: 20px;
}

/* Data isolation cards */
.isolation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.isolation-card {
  text-align: center;
  padding: var(--space-xl);
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

.isolation-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(33, 50, 94, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  color: var(--primary);
}

.isolation-card-icon svg {
  width: 22px;
  height: 22px;
}

.isolation-card h4 {
  font-size: var(--font-size-base);
  margin-bottom: var(--space-xs);
}

.isolation-card p {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: 1.6;
}
