/* ============================================================
   MasterApp Suite AI — gomasterai.net (ES / LATAM)
   Light mode default · warm friendly palette · teal-green accent
   Fraunces (display) · Inter (body) · Space Grotesk (numbers)
   Mobile-first responsive
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --teal:        #0E7C6B;   /* verde-turquesa acento (no cyan puro) */
  --teal-deep:   #0B5F53;
  --teal-soft:   #E4F3EF;
  --terra:       #E08A5B;   /* terracota cálido */
  --terra-deep:  #C96E3F;
  --terra-soft:  #FCEDE2;
  --emerald:     #14A06E;
  --wa:          #25D366;   /* WhatsApp green */
  --wa-deep:     #1EB255;

  /* Surfaces — LIGHT mode default */
  --bg:          #FBF7F1;   /* cálido crema */
  --bg-2:        #FFFFFF;
  --surface:     #FFFFFF;
  --surface-2:   #F5EFE6;
  --line:        #E8DFD2;
  --line-strong: #D9CDBB;

  /* Text */
  --text:        #221E1A;
  --text-2:      #4E463C;
  --text-mute:   #8A7F70;
  --on-teal:     #FFFFFF;

  /* Gradient */
  --grad: linear-gradient(120deg, var(--teal) 0%, var(--terra) 100%);
  --grad-soft: linear-gradient(120deg, var(--teal-soft) 0%, var(--terra-soft) 100%);

  /* Type scale */
  --text-xs:   0.78rem;
  --text-sm:   0.9rem;
  --text-base: 1rem;
  --text-lg:   1.15rem;
  --text-xl:   1.4rem;
  --text-2xl:  1.85rem;
  --text-3xl:  2.4rem;
  --text-hero: clamp(2.5rem, 6vw, 4.2rem);

  /* Radius & shadow */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(45,38,34,.06);
  --shadow:    0 12px 32px -12px rgba(45,38,34,.16);
  --shadow-lg: 0 30px 70px -28px rgba(45,38,34,.30);

  /* Layout */
  --container: 1180px;
  --nav-h: 68px;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-num: "Space Grotesk", "Inter", sans-serif;
}

/* ---------- Dark mode (opt-in via toggle) ---------- */
[data-theme="dark"] {
  --bg:          #16130F;
  --bg-2:        #1E1A15;
  --surface:     #211C16;
  --surface-2:   #2A231B;
  --line:        #37301F;
  --line-strong: #4A4130;

  --text:        #F4EEE4;
  --text-2:      #CDC3B4;
  --text-mute:   #9A8F7E;

  --teal-soft:   #12332D;
  --terra-soft:  #3A281C;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.4);
  --shadow:    0 12px 32px -12px rgba(0,0,0,.55);
  --shadow-lg: 0 30px 70px -28px rgba(0,0,0,.7);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background .3s ease, color .3s ease;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--text);
}
.num { font-family: var(--font-num); font-feature-settings: "tnum" 1; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Language visibility — controlled by <html> data-lang; default ES */
[data-en] { display: none; }
html[data-lang="en"] [data-es] { display: none; }
html[data-lang="en"] [data-en] { display: inline; }

.accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 600;
  font-size: var(--text-sm);
  padding: 11px 20px;
  border-radius: var(--r-pill);
  transition: transform .18s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
  border: 1.5px solid transparent;
  line-height: 1;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--teal); color: var(--on-teal); box-shadow: 0 6px 18px -6px rgba(14,124,107,.6); }
.btn--primary:hover { background: var(--teal-deep); box-shadow: 0 12px 26px -8px rgba(14,124,107,.7); }

.btn--brand { background: var(--grad); color: #fff; box-shadow: 0 8px 22px -8px rgba(224,138,91,.6); }

.btn--wa { background: var(--wa); color: #073b1e; box-shadow: 0 6px 18px -6px rgba(37,211,102,.55); }
.btn--wa:hover { background: var(--wa-deep); color: #fff; }

.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-soft); }

.btn--light { background: #fff; color: var(--teal-deep); }
.btn--light:hover { background: #f3f0ea; }

.btn--lg { padding: 15px 28px; font-size: var(--text-base); }
.btn--block { width: 100%; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.nav__logo b { color: var(--teal); font-weight: 600; }
.nav__logo-mark { width: 34px; height: 34px; }

.nav__links {
  display: none;
  align-items: center;
  gap: 26px;
  margin-left: 12px;
}
.nav__links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-2);
  position: relative;
  transition: color .18s ease;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--teal);
  border-radius: 2px;
  transition: width .22s ease;
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }

.nav__right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.lang-toggle {
  display: inline-flex;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 3px;
}
.lang-toggle button {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .04em;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  color: var(--text-mute);
  transition: all .18s ease;
}
.lang-toggle button.active { background: var(--surface); color: var(--teal); box-shadow: var(--shadow-sm); }

.theme-btn {
  width: 38px; height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  transition: all .18s ease;
}
.theme-btn:hover { color: var(--teal); border-color: var(--teal); }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .ico-sun { display: none; }
[data-theme="dark"] .theme-btn .ico-moon { display: none; }
[data-theme="dark"] .theme-btn .ico-sun { display: block; }

.nav__right .btn--primary { display: none; }

.nav__burger {
  width: 40px; height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}
.nav__burger svg { width: 22px; height: 22px; }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  padding: 16px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform .22s ease, opacity .22s ease;
  z-index: 99;
  box-shadow: var(--shadow);
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu a:not(.btn) {
  padding: 13px 8px;
  font-weight: 500;
  color: var(--text-2);
  border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 14px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 52px 0 60px;
  background:
    radial-gradient(60% 55% at 82% 0%, var(--teal-soft) 0%, transparent 60%),
    radial-gradient(50% 50% at 5% 20%, var(--terra-soft) 0%, transparent 55%);
}
.hero__grid { display: grid; gap: 44px; align-items: center; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--teal-deep);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}
.hero__eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(14,124,107,.18);
}
.hero h1 {
  font-size: var(--text-hero);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.hero__sub {
  font-size: var(--text-lg);
  color: var(--text-2);
  max-width: 560px;
  margin-bottom: 28px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.hero__note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  color: var(--text-mute);
  font-weight: 500;
}
.hero__note svg { width: 18px; height: 18px; color: var(--emerald); flex: none; }

/* Dashboard mockup */
.mockup {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mockup__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.mockup__dots { display: flex; gap: 6px; }
.mockup__dots span { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); }
.mockup__dots span:first-child { background: #F26D5B; }
.mockup__dots span:nth-child(2) { background: #F5B94D; }
.mockup__dots span:nth-child(3) { background: var(--emerald); }
.mockup__url {
  font-family: var(--font-num);
  font-size: var(--text-xs);
  color: var(--text-mute);
  background: var(--bg);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
}
.mockup__body { padding: 20px; }
.mockup__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.mockup__head h4 { font-size: var(--text-lg); }
.mockup__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--emerald);
  background: var(--teal-soft);
  padding: 5px 11px;
  border-radius: var(--r-pill);
}
.mockup__badge .pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(20,160,110,.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(20,160,110,.55); }
  70% { box-shadow: 0 0 0 8px rgba(20,160,110,0); }
  100% { box-shadow: 0 0 0 0 rgba(20,160,110,0); }
}

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.stat {
  border-radius: var(--r);
  padding: 14px 16px;
  border: 1px solid var(--line);
}
.stat--teal { background: var(--teal-soft); border-color: transparent; }
.stat--terra { background: var(--terra-soft); border-color: transparent; }
.stat__label { font-size: var(--text-xs); color: var(--text-2); font-weight: 500; margin-bottom: 4px; }
.stat__value { font-size: 2rem; font-weight: 600; line-height: 1; }
.stat--teal .stat__value { color: var(--teal-deep); }
.stat--terra .stat__value { color: var(--terra-deep); }

.mockup__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}
.mockup__ico {
  width: 38px; height: 38px;
  flex: none;
  border-radius: 11px;
  display: grid;
  place-items: center;
}
.mockup__ico svg { width: 19px; height: 19px; }
.mockup__ico.c { background: var(--teal-soft); color: var(--teal); }
.mockup__ico.a { background: var(--terra-soft); color: var(--terra-deep); }
.mockup__row .rt { display: flex; flex-direction: column; line-height: 1.3; }
.mockup__row .rt b { font-size: var(--text-sm); }
.mockup__row .rt span { font-size: var(--text-xs); color: var(--text-mute); }
.mockup__row .rv { margin-left: auto; font-family: var(--font-num); font-weight: 600; font-size: 1.05rem; }

.mockup__ai {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--r);
  background: var(--grad-soft);
  border: 1px solid var(--line);
  font-size: var(--text-sm);
  color: var(--text-2);
}
.mockup__ai svg { width: 20px; height: 20px; color: var(--teal); flex: none; }
.mockup__ai b { color: var(--text); }

/* ============================================================
   SOCIAL PROOF
   ============================================================ */
.proof { padding: 30px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.proof__text { text-align: center; font-size: var(--text-sm); color: var(--text-mute); font-weight: 500; margin-bottom: 14px; }
.proof__flags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 22px;
  font-size: 1.6rem;
}
.proof__flags span { transition: transform .2s ease; }
.proof__flags span:hover { transform: scale(1.2) translateY(-2px); }

/* ============================================================
   SECTION HEADS
   ============================================================ */
section { padding: 68px 0; }
.shead { text-align: center; max-width: 680px; margin: 0 auto 42px; }
.shead__tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-soft);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 16px;
}
.shead h2 { font-size: var(--text-3xl); margin-bottom: 14px; }
.shead p { font-size: var(--text-lg); color: var(--text-2); }

/* ============================================================
   PROBLEM / SOLUTION
   ============================================================ */
.problem { background: var(--bg-2); }
.pain-grid { display: grid; gap: 20px; margin-bottom: 40px; }
.pain {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
}
.pain__x {
  position: absolute;
  top: 20px; right: 20px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--terra-soft);
  color: var(--terra-deep);
  display: grid;
  place-items: center;
}
.pain__x svg { width: 15px; height: 15px; }
.pain__ico {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--text-mute);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.pain__ico svg { width: 24px; height: 24px; }
.pain h4 { font-size: var(--text-lg); margin-bottom: 8px; }
.pain p { font-size: var(--text-sm); color: var(--text-2); }

.solution {
  text-align: center;
  background: var(--grad);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 40px 28px;
  box-shadow: var(--shadow);
}
.solution h3 { color: #fff; font-size: var(--text-2xl); margin-bottom: 10px; }
.solution h3 .accent { -webkit-text-fill-color: #fff; background: none; text-decoration: underline; text-decoration-color: rgba(255,255,255,.5); text-underline-offset: 5px; }
.solution p { color: rgba(255,255,255,.92); font-size: var(--text-lg); max-width: 620px; margin: 0 auto; }

/* ============================================================
   FEATURES
   ============================================================ */
.feat-grid { display: grid; gap: 20px; }
.feat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--teal); }
.feat__ico {
  width: 52px; height: 52px;
  border-radius: 15px;
  background: var(--grad-soft);
  color: var(--teal);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.feat__ico svg { width: 26px; height: 26px; }
.feat h3 { font-size: var(--text-lg); margin-bottom: 8px; }
.feat p { font-size: var(--text-sm); color: var(--text-2); }
.feat__soon {
  display: inline-block;
  margin-top: 12px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--terra-deep);
  background: var(--terra-soft);
  padding: 3px 10px;
  border-radius: var(--r-pill);
}

/* ============================================================
   USE CASES
   ============================================================ */
.usecases { background: var(--bg-2); }
.uc-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 34px;
}
.uc-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 10px 16px;
  border-radius: var(--r-pill);
  transition: all .18s ease;
}
.uc-tab:hover { border-color: var(--teal); color: var(--teal); }
.uc-tab.active { background: var(--teal); color: #fff; border-color: var(--teal); }

.uc-soon-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(217, 119, 87, .14);
  color: #D97757;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .3px;
  text-transform: uppercase;
  margin-left: 2px;
}
.uc-tab.active .uc-soon-badge { background: rgba(255,255,255,.22); color: #fff; }
.uc-tab--soon { opacity: .92; }

.uc-soon-inline {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(217, 119, 87, .14);
  color: #D97757;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3px;
  text-transform: uppercase;
  vertical-align: middle;
  margin-left: 8px;
}

.uc-panel { display: none; }
.uc-panel.active {
  display: grid;
  gap: 30px;
  align-items: center;
  animation: fadeUp .4s ease;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.uc-panel__art {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.uc-panel__art svg { width: 100%; height: auto; }
.uc-panel h3 { display: flex; align-items: center; gap: 10px; font-size: var(--text-2xl); margin-bottom: 12px; }
.uc-panel h3 .emoji { font-size: 1.6rem; }
.uc-panel > div > p { font-size: var(--text-lg); color: var(--text-2); margin-bottom: 18px; }
.uc-list li { display: flex; gap: 11px; align-items: flex-start; padding: 8px 0; font-size: var(--text-sm); color: var(--text-2); }
.uc-list svg { width: 20px; height: 20px; color: var(--emerald); flex: none; margin-top: 2px; }
.uc-list b { color: var(--text); }

/* ============================================================
   PRICING
   ============================================================ */
.price-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}
.price-toggle span { font-size: var(--text-sm); font-weight: 600; color: var(--text-mute); }
.price-toggle span.on { color: var(--text); }
.switch {
  width: 50px; height: 28px;
  border-radius: var(--r-pill);
  background: var(--line-strong);
  position: relative;
  transition: background .2s ease;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease;
}
.switch.on { background: var(--teal); }
.switch.on::after { transform: translateX(22px); }
.save-badge {
  font-size: var(--text-xs) !important;
  font-weight: 700 !important;
  color: var(--emerald) !important;
  background: var(--teal-soft);
  padding: 4px 10px;
  border-radius: var(--r-pill);
}

.price-grid { display: grid; gap: 20px; }
.price-grid.price-grid--two { max-width: 780px; margin-left: auto; margin-right: auto; grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .price-grid.price-grid--two { grid-template-columns: repeat(2, 1fr); }
}
.pcard {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pcard--popular { border-color: var(--teal); border-width: 2px; box-shadow: var(--shadow); }
.pcard--best { background: linear-gradient(170deg, var(--teal-deep), var(--teal)); color: #fff; border-color: transparent; }
.pcard--best h3, .pcard--best .pcard__amt { color: #fff; }
.pcard--best .pcard__seats, .pcard--best .pcard__per, .pcard--best .pcard__annual { color: rgba(255,255,255,.85); }
.pcard--best ul li { color: rgba(255,255,255,.92); }
.pcard--best .pcard__soon { background: rgba(255,255,255,.16); color: #fff; }

.pcard__flag {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .06em;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  background: var(--teal);
  color: #fff;
  white-space: nowrap;
}
.pcard--best .pcard__flag { background: var(--terra); }
.pcard h3 { font-size: var(--text-xl); margin-bottom: 4px; }
.pcard__seats { font-size: var(--text-sm); color: var(--text-mute); margin-bottom: 16px; }
.pcard__soon {
  display: inline-block;
  align-self: flex-start;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--terra-deep);
  background: var(--terra-soft);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  margin-bottom: 14px;
}
.pcard__price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.pcard__amt { font-size: 2.6rem; font-weight: 600; line-height: 1; }
.pcard__per { font-size: var(--text-sm); color: var(--text-mute); }
.pcard__annual { font-size: var(--text-sm); color: var(--text-mute); margin-bottom: 20px; }
.pcard ul { flex: 1; margin-bottom: 22px; }
.pcard ul li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: var(--text-sm); color: var(--text-2); }
.pcard ul li svg { width: 18px; height: 18px; color: var(--emerald); flex: none; margin-top: 2px; }
/* Best-card overrides — placed after base .pcard rules to win on source order */
.pcard.pcard--best ul li { color: rgba(255,255,255,.94); }
.pcard.pcard--best ul li b { color: #FFE7CF; }
.pcard.pcard--best ul li svg { color: #9AF0CE; }
.pcard.pcard--best .pcard__seats,
.pcard.pcard--best .pcard__per { color: rgba(255,255,255,.85); }

.pricing__foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  margin-top: 30px;
  font-size: var(--text-sm);
  color: var(--text-2);
  font-weight: 500;
}
.pricing__foot svg { width: 18px; height: 18px; color: var(--emerald); flex: none; }
.pricing__note {
  text-align: center;
  margin-top: 14px;
  font-size: var(--text-sm);
  color: var(--text-mute);
}
.pricing__note a { color: var(--teal); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   ADD-ONS
   ============================================================ */
.addon-grid { display: grid; gap: 18px; }
.addon {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px 20px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.addon:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.addon__ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--teal-soft);
  color: var(--teal);
  display: grid; place-items: center;
  margin-bottom: 14px;
}
.addon__ico svg { width: 22px; height: 22px; }
.addon h4 { font-size: var(--text-base); margin-bottom: 6px; }
.addon p { font-size: var(--text-sm); color: var(--text-2); margin-bottom: 12px; }
.addon__price { font-size: 1.4rem; font-weight: 600; color: var(--terra-deep); }

/* ============================================================
   FAMILY TIER
   ============================================================ */
.family { background: var(--bg-2); }
.family__inner {
  background: linear-gradient(160deg, var(--teal-deep), var(--teal));
  border-radius: var(--r-lg);
  padding: 40px 30px;
  color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.family__inner::before {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224,138,91,.4), transparent 70%);
}
.family__grid { display: grid; gap: 28px; position: relative; z-index: 1; }
.family__tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .05em;
  background: rgba(255,255,255,.16);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 16px;
}
.family h2 { color: #fff; font-size: var(--text-3xl); margin-bottom: 18px; }
.family h2 .free { color: #FFD9A8; }
.family blockquote { border: none; padding: 0; margin: 0 0 22px; }
.family blockquote p { color: rgba(255,255,255,.92); margin-bottom: 12px; font-size: var(--text-base); }
.family blockquote b { color: #fff; }
.family__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.family__card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--r);
  padding: 26px 24px;
  backdrop-filter: blur(6px);
}
.family__card h4 { color: #fff; font-size: var(--text-lg); margin-bottom: 16px; }
.family__card ul { margin-bottom: 20px; }
.family__card li { display: flex; gap: 10px; align-items: center; padding: 7px 0; color: rgba(255,255,255,.92); font-size: var(--text-sm); }
.family__card li svg { width: 18px; height: 18px; color: #9AF0CE; flex: none; }
.family__price { font-size: 2.6rem; font-weight: 600; color: #fff; }

/* ============================================================
   TESTIMONIAL
   ============================================================ */
.testi__card {
  max-width: 780px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 44px 36px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
}
.testi__quote { width: 40px; height: 40px; color: var(--teal); opacity: .3; margin: 0 auto 18px; }
.testi__card > p {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 24px;
}
.testi__author { display: flex; align-items: center; justify-content: center; gap: 14px; }
.testi__avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  flex: none;
}
.testi__meta { text-align: left; }
.testi__meta b { display: block; font-size: var(--text-base); }
.testi__meta span { font-size: var(--text-sm); color: var(--text-mute); }

.trustbadge {
  max-width: 780px;
  margin: 26px auto 0;
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 20px;
}
.trustbadge b { color: var(--text); }
.trustbadge .stars { color: var(--terra-deep); font-weight: 700; }

/* ============================================================
   FAQ
   ============================================================ */
.faq__list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color .2s ease;
}
.faq-item.open { border-color: var(--teal); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  padding: 18px 22px;
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--text);
}
.faq-q .chev {
  width: 22px; height: 22px;
  flex: none;
  color: var(--teal);
  transition: transform .25s ease;
}
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-a p { padding: 0 22px 20px; color: var(--text-2); font-size: var(--text-sm); line-height: 1.65; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final { background: var(--grad); }
.final__inner { text-align: center; max-width: 720px; margin: 0 auto; }
.final h2 { color: #fff; font-size: var(--text-3xl); margin-bottom: 24px; }
.final h2 .accent { -webkit-text-fill-color: #fff; background: none; text-decoration: underline; text-decoration-color: rgba(255,255,255,.5); text-underline-offset: 6px; }
.final__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.final .btn--ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.final .btn--ghost:hover { background: rgba(255,255,255,.15); border-color: #fff; color: #fff; }
.final .btn--light { background: #fff; color: var(--teal-deep); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 54px 0 30px; }
.footer__grid { display: grid; gap: 34px; margin-bottom: 34px; }
.footer__brand .nav__logo { margin-bottom: 14px; }
.footer__brand p { font-size: var(--text-sm); color: var(--text-2); max-width: 320px; margin-bottom: 16px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  display: grid; place-items: center;
  transition: all .18s ease;
}
.footer__social a:hover { color: var(--teal); border-color: var(--teal); }
.footer__social svg { width: 18px; height: 18px; }
.footer__col h5 { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 700; margin-bottom: 14px; color: var(--text); }
.footer__col a { display: block; font-size: var(--text-sm); color: var(--text-2); padding: 6px 0; transition: color .15s ease; }
.footer__col a:hover { color: var(--teal); }

.footer__cross {
  text-align: center;
  padding: 18px;
  background: var(--surface-2);
  border-radius: var(--r);
  font-size: var(--text-sm);
  color: var(--text-2);
  margin-bottom: 24px;
}
.footer__cross a { color: var(--teal); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.footer__legal {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  font-size: var(--text-xs);
  color: var(--text-mute);
  line-height: 1.8;
}
.footer__legal .links { display: block; margin-top: 8px; }
.footer__legal .links a { color: var(--text-2); margin-right: 16px; text-decoration: underline; text-underline-offset: 3px; }
.footer__legal .links a:hover { color: var(--teal); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE — tablet & up
   ============================================================ */
@media (min-width: 640px) {
  .pain-grid { grid-template-columns: repeat(3, 1fr); }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .addon-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid:not(.price-grid--two) { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer__legal .links { display: inline; margin-top: 0; margin-left: 8px; }
}

@media (min-width: 900px) {
  :root { --nav-h: 74px; }
  .nav__links { display: flex; }
  .nav__right .btn--primary { display: inline-flex; }
  .nav__burger { display: none; }
  .hero { padding: 72px 0 84px; }
  .hero__grid { grid-template-columns: 1.05fr 1fr; }
  .feat-grid { grid-template-columns: repeat(3, 1fr); }
  .addon-grid { grid-template-columns: repeat(4, 1fr); }
  .price-grid:not(.price-grid--two) { grid-template-columns: repeat(4, 1fr); }
  .uc-panel.active { grid-template-columns: 1fr 1.1fr; }
  .family__grid { grid-template-columns: 1.4fr 1fr; align-items: center; }
  .family__inner { padding: 54px 48px; }
  section { padding: 88px 0; }
}

@media (min-width: 1024px) {
  .container { padding: 0 32px; }
}
