/* ===================================================
   SLOAN — UNIFIED STYLESHEET
   Versión: 1.0 | Junio 2026 | Sloandigital INC
   =================================================== */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand Colors */
  --brand-blue:     #141B90;
  --brand-orange:   #F96F19;
  --brand-lime:     #A5FF2B;
  --brand-cyan:     #31B5FF;
  --brand-purple:   #661290;

  /* Surface / Design System */
  --surface:              #131319;
  --surface-dim:          #131319;
  --surface-bright:       #393840;
  --surface-low:          #1b1b22;
  --surface-container:    #1f1f26;
  --surface-high:         #292931;
  --surface-highest:      #34343c;
  --surface-lowest:       #0d0e14;
  --on-surface:           #e4e1eb;
  --on-surface-variant:   #c6c5d5;
  --outline:              #908f9e;
  --outline-variant:      #454653;
  --primary:              #bec2ff;
  --primary-container:    #141b90;
  --on-primary-container: #848dfe;

  /* Functional */
  --white: #ffffff;
  --gray-light: #F8F9FA;
  --text-dark: #1a1a2e;

  /* Spacing */
  --container: 1280px;
  --gutter: 24px;
  --section-desktop: 120px;
  --section-mobile: 64px;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--surface);
  color: var(--on-surface);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ---------- TYPOGRAPHY ---------- */
.display-lg  { font-size: clamp(40px, 5.5vw, 72px); font-weight: 800; line-height: 1.1; letter-spacing: -0.04em; }
.headline-lg { font-size: clamp(28px, 3.8vw, 48px); font-weight: 700; line-height: 1.17; letter-spacing: -0.02em; }
.headline-md { font-size: clamp(22px, 2.5vw, 32px); font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.headline-sm { font-size: clamp(18px, 1.8vw, 24px); font-weight: 600; line-height: 1.35; }
.body-lg     { font-size: 18px; font-weight: 400; line-height: 1.6; }
.body-md     { font-size: 16px; font-weight: 400; line-height: 1.5; }
.body-sm     { font-size: 14px; font-weight: 400; line-height: 1.5; }
.label-caps  { font-size: 12px; font-weight: 700; line-height: 1.33; letter-spacing: 0.1em; text-transform: uppercase; }
.btn-text    { font-size: 16px; font-weight: 600; line-height: 1.25; }

/* ---------- LAYOUT HELPERS ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-mobile); }
@media (min-width: 768px) { .section { padding-block: var(--section-desktop); } }

.section-light { background: var(--white); color: var(--text-dark); }
.section-gray  { background: var(--gray-light); color: var(--text-dark); }
.section-dark  { background: var(--surface-lowest); }
.section-blue  { background: var(--brand-blue); color: var(--white); }

/* ---------- GLASS CARD ---------- */
.glass-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-lg);
  font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 600; line-height: 1.25;
  cursor: pointer; border: none; transition: all 0.2s ease; white-space: nowrap;
}
.btn:active { transform: scale(0.96); }
.btn-primary { background: var(--brand-orange); color: var(--white); box-shadow: 0 8px 24px rgba(249,111,25,0.25); }
.btn-primary:hover { background: #e0600f; box-shadow: 0 12px 32px rgba(249,111,25,0.35); transform: translateY(-1px); }
.btn-secondary-dark { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.3); }
.btn-secondary-dark:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }
.btn-secondary-light { background: transparent; color: var(--brand-blue); border: 2px solid var(--brand-blue); }
.btn-secondary-light:hover { background: var(--brand-blue); color: var(--white); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 18px 36px; font-size: 18px; }

/* ---------- PILLS / BADGES ---------- */
.pill { display: inline-block; padding: 4px 14px; border-radius: var(--radius-full); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.pill-lime { background: var(--brand-lime); color: #1a1a2e; }
.pill-blue { background: rgba(20,27,144,0.15); color: var(--primary); border: 1px solid rgba(190,194,255,0.2); }
.pill-orange { background: rgba(249,111,25,0.15); color: var(--brand-orange); border: 1px solid rgba(249,111,25,0.25); }
.pill-cyan { background: rgba(49,181,255,0.15); color: var(--brand-cyan); }

/* ---------- HEADER / NAV ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(19,19,25,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(69,70,83,0.3);
  transition: background 0.3s ease;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--container); margin-inline: auto;
  padding: 14px var(--gutter);
}
.nav-logo {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 24px; font-weight: 800; color: var(--white);
  letter-spacing: -0.03em;
}
.nav-logo-icon { width: 30px; height: 30px; object-fit: contain; display: block; }
.nav-links {
  display: none; list-style: none; gap: 32px; align-items: center;
}
@media (min-width: 900px) { .nav-links { display: flex; } }
.nav-links a {
  color: var(--on-surface-variant); font-size: 15px; font-weight: 500;
  transition: color 0.2s; position: relative;
}
.nav-links a:hover,
.nav-links a.active { color: var(--on-surface); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--brand-orange); border-radius: 2px;
}
.nav-actions {
  display: flex; align-items: center; gap: 12px;
}
.nav-login {
  color: var(--on-surface-variant); font-size: 15px; font-weight: 500;
  transition: color 0.2s; display: none;
}
@media (min-width: 640px) { .nav-login { display: block; } }
.nav-login:hover { color: var(--on-surface); }
.nav-cta { padding: 9px 20px; font-size: 15px; }

/* Language switch ES/EN */
.lang-switch {
  display: none; align-items: center; gap: 2px;
  border: 1px solid var(--outline-variant); border-radius: var(--radius-full);
  padding: 2px; margin-right: 4px;
}
@media (min-width: 768px) { .lang-switch { display: inline-flex; } }
.lang-opt {
  font-size: 12px; font-weight: 700; letter-spacing: 0.03em;
  color: var(--on-surface-variant); padding: 4px 10px; border-radius: var(--radius-full);
  transition: color 0.2s, background 0.2s; line-height: 1;
}
.lang-opt:hover { color: var(--on-surface); }
.lang-opt.active { background: var(--surface-highest); color: var(--on-surface); }

/* Mobile menu toggle */
.nav-toggle {
  display: flex; flex-direction: column; gap: 5px; cursor: pointer;
  padding: 4px; background: none; border: none;
}
@media (min-width: 900px) { .nav-toggle { display: none; } }
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--on-surface); border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-mobile {
  display: none; flex-direction: column; gap: 0;
  border-top: 1px solid rgba(69,70,83,0.3);
  background: rgba(13,14,20,0.98);
  padding: 8px 0 16px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 13px var(--gutter);
  color: var(--on-surface-variant); font-size: 15px; font-weight: 500;
  border-bottom: 1px solid rgba(69,70,83,0.2);
  transition: color 0.2s;
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--on-surface); background: rgba(255,255,255,0.03); }
.nav-mobile .mobile-cta {
  margin: 12px var(--gutter) 0;
  padding: 13px 20px; text-align: center;
  background: var(--brand-orange); color: var(--white);
  border-radius: var(--radius-lg); font-weight: 600;
}
.nav-mobile .mobile-cta:hover { background: #e0600f; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--surface-lowest);
  border-top: 1px solid rgba(69,70,83,0.3);
  padding-block: 64px 0;
}
.footer-grid {
  display: grid; gap: 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-brand .footer-logo {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 26px; font-weight: 800; color: var(--white);
  letter-spacing: -0.03em; margin-bottom: 14px;
}
.footer-logo-icon { width: 32px; height: 32px; object-fit: contain; display: block; }
.footer-brand p {
  color: var(--on-surface-variant); font-size: 14px; line-height: 1.6; max-width: 240px;
}
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: var(--radius-full);
  background: var(--surface-high); display: flex; align-items: center; justify-content: center;
  color: var(--on-surface-variant); font-size: 18px;
  transition: all 0.2s; text-decoration: none;
}
.footer-social a:hover { background: var(--primary); color: var(--brand-blue); }
.footer-col h4 {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--on-surface); margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { color: var(--on-surface-variant); font-size: 14px; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--brand-lime); }
.footer-bottom {
  margin-top: 48px; padding: 20px var(--gutter);
  border-top: 1px solid rgba(69,70,83,0.25);
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center; justify-content: space-between;
}
.footer-bottom p { color: var(--on-surface-variant); font-size: 13px; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: var(--on-surface-variant); font-size: 13px; transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--on-surface); }

/* ---------- COOKIE BANNER ---------- */
.cookie-banner {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  z-index: 9000; width: calc(100% - 32px); max-width: 720px;
  background: var(--surface-highest);
  border: 1px solid rgba(69,70,83,0.5);
  border-radius: var(--radius-xl); padding: 20px 24px;
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  transition: opacity 0.4s, transform 0.4s;
}
.cookie-banner.hidden { opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(20px); }
.cookie-banner p { font-size: 14px; color: var(--on-surface-variant); flex: 1; min-width: 200px; }
.cookie-banner p a { color: var(--primary); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions button { padding: 9px 18px; border-radius: var(--radius-md); font-size: 13px; font-weight: 600; cursor: pointer; border: none; font-family: 'Inter', sans-serif; }
.btn-cookie-accept { background: var(--brand-orange); color: var(--white); }
.btn-cookie-reject { background: var(--surface-high); color: var(--on-surface-variant); }
.btn-cookie-config  { background: transparent; color: var(--on-surface-variant); border: 1px solid var(--outline-variant) !important; }

/* ---------- FORMS ---------- */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 14px; font-weight: 600; color: var(--on-surface); }
.form-group label .required { color: var(--brand-orange); margin-left: 2px; }
.form-control {
  width: 100%; padding: 13px 16px;
  background: var(--surface-low); border: 1.5px solid var(--outline-variant);
  border-radius: var(--radius-lg); color: var(--on-surface);
  font-size: 15px; font-family: 'Inter', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
.form-control::placeholder { color: var(--outline); }
.form-control:focus { border-color: var(--brand-cyan); box-shadow: 0 0 0 3px rgba(49,181,255,0.15); }
.form-control.error { border-color: #ff4d4f; }
.form-error { font-size: 12px; color: #ff4d4f; display: none; }
.form-group.has-error .form-error { display: block; }
.form-group.has-error .form-control { border-color: #ff4d4f; }
.form-privacy { font-size: 12px; color: var(--on-surface-variant); margin-top: 4px; }
.form-privacy a { color: var(--primary); text-decoration: underline; }
.form-checkbox { display: flex; align-items: flex-start; gap: 10px; margin-top: 8px; }
.form-checkbox input[type="checkbox"] { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--brand-orange); flex-shrink: 0; }
.form-checkbox label { font-size: 13px; color: var(--on-surface-variant); }
.form-success {
  display: none; padding: 20px; border-radius: var(--radius-lg);
  background: rgba(165,255,43,0.08); border: 1px solid rgba(165,255,43,0.2);
  text-align: center; color: var(--brand-lime); font-weight: 600;
}
.form-success.visible { display: block; }

/* ---------- PRICING TOGGLE ---------- */
.pricing-toggle {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface-highest); border-radius: var(--radius-full);
  padding: 5px; margin-inline: auto; width: fit-content; margin-bottom: 56px;
}
.toggle-btn {
  padding: 10px 24px; border-radius: var(--radius-full);
  font-size: 14px; font-weight: 600; cursor: pointer;
  border: none; background: transparent; color: var(--on-surface-variant);
  transition: all 0.25s; font-family: 'Inter', sans-serif;
}
.toggle-btn.active { background: var(--white); color: var(--brand-blue); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.badge-save { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-full); background: var(--brand-lime); color: #1a1a2e; }

/* ---------- BILLING SWITCH (discrete toggle) ---------- */
.billing-switch {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-inline: auto; width: fit-content; margin-bottom: 56px;
}
.billing-label {
  font-size: 14px; font-weight: 600; color: var(--outline);
  transition: color 0.25s; display: inline-flex; align-items: center; gap: 8px;
  user-select: none;
}
.billing-label.active { color: var(--on-surface); }
.switch {
  position: relative; width: 52px; height: 30px; flex-shrink: 0;
  background: var(--surface-highest); border: 1px solid var(--outline-variant);
  border-radius: var(--radius-full); cursor: pointer; padding: 0;
  transition: background 0.25s, border-color 0.25s;
}
.switch:hover { border-color: var(--outline); }
.switch-knob {
  position: absolute; top: 3px; left: 3px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--white); box-shadow: 0 1px 4px rgba(0,0,0,0.35);
  transition: transform 0.25s ease;
}
/* checked = annual (knob to the right) */
.switch[aria-checked="true"] { background: var(--brand-orange); border-color: var(--brand-orange); }
.switch[aria-checked="true"] .switch-knob { transform: translateX(22px); }

/* Light variant — for switch placed on a white/light section */
.billing-switch-light .billing-label { color: #9ca3af; }
.billing-switch-light .billing-label.active { color: var(--text-dark); }
.billing-switch-light .switch { background: #e5e7eb; border-color: #d1d5db; }
.billing-switch-light .switch[aria-checked="true"] { background: var(--brand-orange); border-color: var(--brand-orange); }

/* ---------- PRICING CARDS ---------- */
.pricing-card {
  background: var(--surface-container); border: 1.5px solid var(--outline-variant);
  border-radius: var(--radius-xl); padding: 32px;
  display: flex; flex-direction: column; gap: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px rgba(0,0,0,0.3); }
.pricing-card.featured { border-color: var(--brand-orange); background: var(--surface-high); position: relative; }
.pricing-card.featured::before {
  content: 'Recomendado';
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--brand-orange); color: var(--white);
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 16px; border-radius: var(--radius-full);
}
.pricing-card.citasenlinea { border-color: rgba(49,181,255,0.4); }
.plan-price .amount {
  font-size: 48px; font-weight: 800; letter-spacing: -0.03em; line-height: 1;
  color: var(--white);
}
.plan-price .currency { font-size: 22px; font-weight: 600; vertical-align: super; margin-right: 2px; }
.plan-price .period { font-size: 14px; color: var(--on-surface-variant); margin-left: 4px; }
.price-annual { font-size: 13px; color: var(--on-surface-variant); margin-top: 4px; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.plan-features li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--on-surface-variant); line-height: 1.35; }
.plan-features li.feature-off { color: var(--outline); }

/* ---------- CATALOG CARDS (Home block 07) ---------- */
.catalog-card {
  position: relative;
  background: var(--white);
  border: 1.5px solid #e9ecef;
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.catalog-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(20,27,144,0.12); }
.catalog-card-featured {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  box-shadow: 0 16px 48px rgba(20,27,144,0.25);
}
.catalog-card-featured:hover { box-shadow: 0 24px 56px rgba(20,27,144,0.35); }
.catalog-card-dark {
  background: var(--surface-high);
  border-color: var(--outline-variant);
}
.catalog-card-dark:hover {
  border-color: var(--primary);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  background: var(--surface-highest);
}
.catalog-card-dark .catalog-amount { color: var(--white); }
.catalog-card-dark .catalog-period { color: var(--on-surface-variant); }
.catalog-price { margin-bottom: 20px; display: flex; align-items: baseline; gap: 8px; min-height: 38px; }
.catalog-amount { font-size: 32px; font-weight: 800; color: var(--brand-blue); letter-spacing: -0.03em; }
.catalog-period { font-size: 13px; font-weight: 500; color: #6b7280; }
.catalog-features {
  list-style: none; display: flex; flex-direction: column; gap: 11px;
  margin-bottom: 24px; padding: 0; flex-grow: 1;
}
.catalog-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: #374151; line-height: 1.35;
}
/* Unified check/cross pills — used by catalog (home) and plan-features (precios) */
.cf-check {
  flex-shrink: 0; font-size: 18px; color: var(--brand-lime);
  background: rgba(165,255,43,0.15); border-radius: 50%;
  width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center;
  font-variation-settings: 'wght' 700;
}
.cf-cross {
  flex-shrink: 0; font-size: 16px; color: var(--outline);
  background: rgba(144,143,158,0.12); border-radius: 50%;
  width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center;
  font-variation-settings: 'wght' 600;
}
.catalog-features-light li { color: rgba(255,255,255,0.92); }
.catalog-features-light li .cf-check {
  color: var(--brand-lime); background: rgba(165,255,43,0.18);
}

/* ---------- COMPARISON TABLE (Precios) ---------- */
.compare-wrap { margin-bottom: 48px; }
.compare-wrap h2 { color: var(--on-surface); }
.compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-xl); border: 1px solid var(--outline-variant); }
.compare-table {
  width: 100%; border-collapse: collapse; min-width: 720px;
  background: var(--surface-container); font-size: 14px;
}
.compare-table thead th {
  background: var(--surface-high); color: var(--on-surface);
  font-weight: 700; font-size: 14px; padding: 16px 18px; text-align: center;
  border-bottom: 2px solid var(--outline-variant); white-space: nowrap;
}
.compare-table thead th.compare-feature-col { text-align: left; }
.compare-table thead th.compare-col-featured {
  background: var(--brand-orange); color: var(--white);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.compare-table tbody th[scope="row"] {
  text-align: left; font-weight: 600; color: var(--on-surface);
  padding: 14px 18px; border-bottom: 1px solid var(--outline-variant); white-space: normal;
}
.compare-table tbody td {
  text-align: center; padding: 14px 18px; color: var(--on-surface-variant);
  border-bottom: 1px solid var(--outline-variant); vertical-align: middle;
}
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody td.compare-col-featured {
  background: rgba(249,111,25,0.08); font-weight: 600; color: var(--on-surface);
}
.compare-table td strong { display: block; font-size: 18px; font-weight: 800; color: var(--white); letter-spacing: -0.02em; }
.compare-table td.compare-col-featured strong { color: var(--brand-orange); }
.compare-sub { display: block; font-size: 11px; font-weight: 500; color: var(--outline); margin-top: 2px; }
.compare-table .cf-check { color: var(--brand-lime); background: rgba(165,255,43,0.15); margin-inline: auto; }
.compare-table td.compare-col-featured .cf-check { color: var(--brand-lime); background: rgba(165,255,43,0.2); }
.compare-no { color: var(--outline-variant); font-size: 18px; font-weight: 600; }
.compare-hint { display: none; text-align: center; font-size: 12px; color: var(--outline); margin-top: 10px; }
@media (max-width: 760px) { .compare-hint { display: block; } }

/* ---------- FAQ ACCORDION ---------- */
.faq-item { border-bottom: 1px solid var(--outline-variant); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; font-size: 16px; font-weight: 600; color: var(--on-surface);
  background: none; border: none; cursor: pointer; font-family: 'Inter', sans-serif;
  text-align: left;
}
.faq-question .faq-icon { font-size: 20px; color: var(--on-surface-variant); transition: transform 0.3s; flex-shrink: 0; margin-left: 16px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease; }
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer-inner { padding-bottom: 20px; font-size: 15px; color: var(--on-surface-variant); line-height: 1.7; }

/* ---------- PAGE HERO (dark band) ---------- */
.page-hero {
  background: var(--brand-blue);
  padding-top: calc(80px + var(--section-mobile));
  padding-bottom: var(--section-mobile);
  position: relative; overflow: hidden;
}
@media (min-width: 768px) {
  .page-hero { padding-top: calc(80px + 80px); padding-bottom: 80px; }
}
.page-hero-glow-1 {
  position: absolute; top: 0; left: -25%; width: 600px; height: 600px;
  background: rgba(190,194,255,0.15); border-radius: 50%; filter: blur(100px); pointer-events: none;
}
.page-hero-glow-2 {
  position: absolute; bottom: -25%; right: -25%; width: 500px; height: 500px;
  background: rgba(249,111,25,0.08); border-radius: 50%; filter: blur(100px); pointer-events: none;
}

/* ---------- HERO SLIDER (auto, infinite, no controls) ---------- */
.hero-slider {
  position: relative;
  aspect-ratio: 1440 / 820;
  background: var(--surface-high);
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.8s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* ---------- IMAGE PLACEHOLDERS ---------- */
.media-img-wrap { overflow: hidden; line-height: 0; }
.media-img { width: 100%; height: auto; display: block; }
.img-placeholder {
  background: linear-gradient(135deg, var(--surface-high) 0%, var(--surface-highest) 100%);
  border: 1.5px dashed var(--outline-variant);
  border-radius: var(--radius-xl);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; color: var(--outline); text-align: center;
}
.img-placeholder span { font-size: 36px; }
.img-placeholder p { font-size: 13px; font-weight: 500; }

/* ---------- TRUST BAR ---------- */
.trust-bar {
  background: var(--white); border-radius: var(--radius-xl);
  box-shadow: 0 16px 48px rgba(0,0,0,0.15); padding: 24px 32px;
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
  position: relative; z-index: 10; margin-top: -28px;
  border: 1px solid rgba(69,70,83,0.1);
}
.trust-item { display: flex; align-items: center; gap: 10px; }
.trust-item .trust-icon { color: var(--brand-orange); font-size: 22px; }
.trust-item span:last-child { font-size: 14px; font-weight: 600; color: #2d2d3a; }
.trust-divider { width: 1px; height: 28px; background: #e0e0e0; }
@media (max-width: 767px) { .trust-divider { display: none; } }

/* ---------- PIPELINE STAGES ---------- */
.pipeline-stages {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
@media (min-width: 640px) { .pipeline-stages { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .pipeline-stages { grid-template-columns: repeat(6, 1fr); } }
.pipeline-stage {
  background: var(--surface-container); border: 1px solid var(--outline-variant);
  border-radius: var(--radius-lg); padding: 16px 12px;
  text-align: center; transition: transform 0.2s, border-color 0.2s;
}
.pipeline-stage:hover { transform: translateY(-6px); border-color: var(--primary); }
.pipeline-stage .stage-num { font-size: 11px; color: var(--outline); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }
.pipeline-stage .stage-name { font-size: 14px; font-weight: 600; color: var(--on-surface); }

/* ---------- METHOD STAGES (Home — high contrast, large numbers) ---------- */
.method-stages {
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
@media (min-width: 640px) { .method-stages { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .method-stages { grid-template-columns: repeat(3, 1fr); } }
.method-stage {
  display: flex; align-items: center; gap: 18px;
  background: var(--surface-high);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-xl);
  padding: 24px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.method-stage:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  background: var(--surface-highest);
}
.method-num {
  font-size: 56px; font-weight: 800; line-height: 1;
  letter-spacing: -0.04em; flex-shrink: 0; min-width: 64px;
  font-variant-numeric: tabular-nums;
}
.method-body { display: flex; flex-direction: column; gap: 4px; }
.method-name {
  font-size: 20px; font-weight: 700; color: var(--white);
  letter-spacing: -0.01em;
}
.method-desc { font-size: 14px; color: var(--on-surface-variant); line-height: 1.4; }
.method-stage-final {
  background: linear-gradient(135deg, rgba(20,27,144,0.55) 0%, rgba(102,18,144,0.35) 100%);
  border-color: rgba(165,255,43,0.35);
}
.method-stage-final:hover { border-color: var(--brand-lime); background: linear-gradient(135deg, rgba(20,27,144,0.65) 0%, rgba(102,18,144,0.45) 100%); }
@media (min-width: 1024px) {
  .method-num { font-size: 64px; min-width: 72px; }
}

/* Light variant of method stages — used on Ventas page for contrast */
.method-stages-light .method-stage {
  background: var(--white);
  border-color: #e9ecef;
}
.method-stages-light .method-stage:hover {
  border-color: var(--brand-blue);
  background: var(--white);
  box-shadow: 0 12px 32px rgba(20,27,144,0.1);
}
.method-stages-light .method-name { color: var(--text-dark); }
.method-stages-light .method-desc { color: #6b7280; }
.method-stage-final-light {
  background: linear-gradient(135deg, rgba(20,27,144,0.06) 0%, rgba(49,181,255,0.08) 100%) !important;
  border-color: rgba(20,27,144,0.2) !important;
}
.method-stage-final-light:hover {
  border-color: var(--brand-blue) !important;
  box-shadow: 0 12px 32px rgba(20,27,144,0.12);
}

/* ---------- FEATURE GRID ---------- */
.feature-grid { display: grid; gap: 24px; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-card {
  background: var(--gray-light); border: 1px solid #e9ecef;
  border-radius: var(--radius-xl); padding: 28px;
}
.feature-card.dark-card {
  background: rgba(20,27,144,0.12); border-color: rgba(190,194,255,0.15);
}
.feature-icon { font-size: 32px; color: var(--brand-orange); margin-bottom: 14px; }
.feature-title { font-size: 17px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.feature-card.dark-card .feature-title { color: var(--on-surface); }
.feature-desc { font-size: 14px; color: #6b7280; line-height: 1.65; }
.feature-card.dark-card .feature-desc { color: var(--on-surface-variant); }

/* ---------- MICROCOPY ---------- */
.microcopy { font-size: 13px; color: var(--on-surface-variant); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.microcopy .dot { color: var(--outline); }

/* ---------- SECTION HEADING ---------- */
.section-heading { text-align: center; margin-bottom: 48px; }
.section-heading h2 { margin-bottom: 14px; }
.section-heading p { max-width: 560px; margin-inline: auto; color: var(--on-surface-variant); }
.section-heading.light h2 { color: var(--text-dark); }
.section-heading.light p { color: #6b7280; }

/* ---------- CTA SECTION ---------- */
.cta-section {
  background: var(--brand-blue); padding-block: var(--section-mobile);
  position: relative; overflow: hidden;
}
@media (min-width: 768px) { .cta-section { padding-block: var(--section-desktop); } }
.cta-section .container { text-align: center; position: relative; z-index: 2; }
.cta-section h2 { color: var(--white); margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.75); margin-bottom: 36px; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta-glow-1 {
  position: absolute; bottom: -100px; left: -100px; width: 400px; height: 400px;
  background: var(--brand-orange); border-radius: 50%; filter: blur(120px); opacity: 0.1;
}
.cta-glow-2 {
  position: absolute; top: -100px; right: -100px; width: 400px; height: 400px;
  background: var(--brand-lime); border-radius: 50%; filter: blur(120px); opacity: 0.08;
}

/* ---------- LEGAL PAGES ---------- */
.legal-content {
  max-width: 800px; margin-inline: auto;
  color: var(--on-surface-variant); line-height: 1.8;
}
.legal-content h2 { font-size: 22px; font-weight: 700; color: var(--on-surface); margin: 40px 0 16px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { margin-bottom: 14px; font-size: 15px; }
.legal-content ul, .legal-content ol { padding-left: 20px; margin-bottom: 14px; }
.legal-content li { margin-bottom: 8px; font-size: 15px; }
.legal-content table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.legal-content th, .legal-content td { border: 1px solid var(--outline-variant); padding: 10px 14px; font-size: 14px; text-align: left; }
.legal-content th { background: var(--surface-high); color: var(--on-surface); font-weight: 600; }
.legal-content a { color: var(--primary); text-decoration: underline; }
.legal-updated { font-size: 13px; color: var(--outline); margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--outline-variant); }

/* ---------- SEGMENTED CONTROL ---------- */
.segment-control {
  display: inline-flex; background: rgba(0,0,0,0.3); border-radius: var(--radius-xl);
  padding: 5px; gap: 4px;
}
.segment-btn {
  padding: 10px 22px; border-radius: var(--radius-lg);
  font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.55);
  border: none; background: transparent; cursor: pointer;
  font-family: 'Inter', sans-serif; transition: all 0.25s;
}
.segment-btn.active {
  background: var(--white); color: var(--brand-blue);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ---------- RESPONSIVE UTILITIES ---------- */
.grid-2 { display: grid; gap: 32px; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
.grid-3 { display: grid; gap: 24px; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-4 { display: grid; gap: 24px; }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.text-center { text-align: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-col-center { display: flex; flex-direction: column; align-items: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

/* Material icons align */
.material-symbols-outlined { vertical-align: middle; }

/* ---------- ANIMATIONS ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease both; }
.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.2s; }
.fade-up-3 { animation-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .fade-up { animation: none; }
}
