/* base.css */
/* =========================================================
   HEIRVEST DESIGN SYSTEM
   Tokens, type, layout, buttons, inputs, cards, badges.
   Every section is built only from what is defined here.
   ========================================================= */

:root {
  /* Color tokens (brand spec, no others) */
  /* Token names kept from v1; values are the cocoa/cream brand */
  --royal: #6B4226;          /* cocoa: primary */
  --royal-600: #573519;      /* cocoa pressed */
  --navy: #2B1D14;           /* espresso: text + dark sections */
  --sky: #A9D4F5;            /* baby blue: accents (never text on light) */
  --sky-600: #8DC3EE;        /* baby blue hover */
  --ice: #F1E7DA;            /* sand: soft sections, cards */
  --white: #FFFFFF;          /* cards on cream */
  --cream: #FBF6EF;          /* page background */
  --link: #2B6A9C;           /* links + small blue text */
  --gain: #2E7D4F;
  --loss: #B23A30;
  --gold: #B9824E;           /* caramel: rare rewards */
  --wa: #1F8A4C;             /* WhatsApp button green */

  /* Text tints derived from navy */
  --text: var(--navy);
  --text-2: rgba(43, 29, 20, .78);
  --text-3: #6E5A4B;
  --line: #E4D6C4;
  --line-strong: #D6C3AC;
  --on-navy: #FBF6EF;
  --on-navy-2: rgba(251, 246, 239, .74);
  --line-navy: rgba(255, 255, 255, .12);

  /* The one brand gradient (used in max 2 places) */
  --brand-grad: var(--royal);

  /* Spacing scale (8px system) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  /* Radius: pill buttons, small radii elsewhere (editorial, not "card UI") */
  --r-ctl: 10px;     /* inputs */
  --r-btn: 999px;    /* buttons */
  --r-card: 16px;    /* the few containers we keep */
  --r-card-sm: 14px;
  --r-phone: 48px;
  --r-pill: 999px;

  /* Shadows: used only on product shots (phone, app cards) */
  --sh-1: 0 1px 2px rgba(43, 29, 20, .06);
  --sh-2: 0 10px 30px rgba(43, 29, 20, .08);
  --sh-3: 0 30px 80px rgba(43, 29, 20, .18);

  /* Type: Manrope for everything (800 display, 700 headings, 400 body) */
  --f-head: "Manrope", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --f-num: "Manrope", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --f-body: "Manrope", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --t-display: clamp(44px, 6.4vw, 80px);
  --t-h1: clamp(36px, 5vw, 60px);
  --t-h2: clamp(30px, 3.8vw, 44px);
  --t-h3: clamp(21px, 2vw, 26px);
  --t-body: 17px;
  --t-lead: clamp(17px, 1.6vw, 19px);
  --t-small: 14px;
  --t-cap: 12px;

  /* Motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --dur-fast: 160ms;
  --dur: 320ms;
  --dur-chart: 800ms;

  --maxw: 1200px;
  --nav-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0; background: var(--cream); color: var(--text);
  font-family: var(--f-body); font-size: var(--t-body); line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--f-head); margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--royal); outline-offset: 3px; border-radius: 6px; }
.is-navy :focus-visible { outline-color: var(--sky); }
::selection { background: rgba(169, 212, 245, .55); }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 12px 16px; border-radius: var(--r-ctl); }
.skip-link:focus { top: 12px; }

/* ---------- Type helpers ---------- */
.t-display { font-size: var(--t-display); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
.t-h1 { font-size: var(--t-h1); font-weight: 800; letter-spacing: -0.03em; }
.t-h2 { font-size: var(--t-h2); }
.t-h3 { font-size: var(--t-h3); letter-spacing: -0.01em; line-height: 1.2; }
.t-lead { font-size: var(--t-lead); color: var(--text-2); line-height: 1.55; }
.t-small { font-size: var(--t-small); }
.t-cap { font-size: var(--t-cap); letter-spacing: .02em; }
.muted { color: var(--text-2); }
.muted-2 { color: var(--text-3); }
.eyebrow {
  font-family: var(--f-body); font-size: var(--t-small); font-weight: 600;
  color: var(--royal); letter-spacing: .01em; margin-bottom: var(--s-4); display: inline-block;
}
.is-navy .eyebrow { color: var(--sky); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--maxw) + 48px); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--s-10) 0; position: relative; }
.section--ice { background: var(--ice); }
.is-navy { background: var(--navy); color: var(--on-navy); }
.is-navy .muted, .is-navy .t-lead { color: var(--on-navy-2); }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-5); }
.sec-head { max-width: 640px; margin-bottom: var(--s-8); }
.sec-head .t-lead { margin-top: var(--s-4); }

/* Subtle grain for navy sections (inline SVG noise, tiny) */
.grain::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.grain > * { position: relative; }

/* ---------- Buttons ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  height: var(--h); padding: 0 var(--s-5); border-radius: var(--r-btn);
  font-weight: 700; font-size: 16px; line-height: 1; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer; text-decoration: none !important;
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast), border-color var(--dur-fast), box-shadow var(--dur-fast), color var(--dur-fast);
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:active:not(:disabled) { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--sm { --h: 40px; padding: 0 var(--s-4); font-size: 15px; }
.btn--lg { --h: 56px; padding: 0 var(--s-6); font-size: 17px; }
.btn--block { width: 100%; }

.btn--primary { background: var(--royal); color: var(--cream); box-shadow: var(--sh-1); }
.btn--primary:hover { background: var(--royal-600); box-shadow: var(--sh-2); }
.btn--primary:active { background: var(--royal-600); }

.btn--secondary { background: var(--sky); color: var(--navy); border-color: var(--sky); }
.btn--secondary:hover { background: var(--sky-600); border-color: var(--sky-600); color: var(--navy); }
.is-navy .btn--secondary { background: var(--sky); color: var(--navy); border-color: var(--sky); }
.is-navy .btn--secondary:hover { background: var(--sky-600); border-color: var(--sky-600); color: var(--navy); }

.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--ice); }

.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn.is-loading { color: transparent !important; position: relative; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .7s linear infinite;
}
.btn--secondary.is-loading::after { border-color: var(--line); border-top-color: var(--royal); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Inputs ---------- */
.field { display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; }
.field label, .field .label { font-size: var(--t-small); font-weight: 600; color: var(--navy); }
.field .optional { font-weight: 400; color: var(--text-3); }
.input, .select {
  height: 52px; width: 100%; padding: 0 var(--s-4); border-radius: var(--r-ctl);
  background: var(--white); border: 1px solid var(--line-strong); color: var(--navy);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  -webkit-appearance: none; appearance: none;
}
.select {
  padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%232B1D14' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.input::placeholder { color: var(--text-3); }
.input:hover, .select:hover { border-color: rgba(43, 29, 20, .32); }
.input:focus, .select:focus { outline: none; border-color: var(--royal); box-shadow: 0 0 0 4px rgba(107, 66, 38, .14); }
.field.has-error .input, .field.has-error .select { border-color: var(--loss); }
.field.has-error .input:focus { box-shadow: 0 0 0 4px rgba(178, 58, 48, .16); }
.field-error { display: none; font-size: 13px; color: #B23A30; font-weight: 500; }
.field.has-error .field-error { display: block; }

.check { display: flex; gap: var(--s-3); align-items: flex-start; cursor: pointer; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .box {
  flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px; border: 1.5px solid var(--line-strong); background: #fff;
  display: grid; place-items: center; transition: background var(--dur-fast), border-color var(--dur-fast);
}
.check .box svg { width: 14px; height: 14px; stroke: #fff; opacity: 0; transform: scale(.6); transition: all var(--dur-fast) var(--ease-out); }
.check input:checked + .box { background: var(--royal); border-color: var(--royal); }
.check input:checked + .box svg { opacity: 1; transform: none; }
.check input:focus-visible + .box { outline: 2px solid var(--royal); outline-offset: 2px; }
.check:hover .box { border-color: var(--royal); }

/* Chips (multi-select) */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 var(--s-4); border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: #fff; font-size: 14px; font-weight: 500; color: var(--navy);
  transition: all var(--dur-fast) var(--ease-out); cursor: pointer;
}
.chip span svg { width: 14px; height: 14px; display: none; }
.chip input:checked + span { background: var(--ice); border-color: var(--royal); color: var(--royal); }
.chip input:checked + span svg { display: block; }
.chip input:focus-visible + span { outline: 2px solid var(--royal); outline-offset: 2px; }
.chip:hover span { border-color: var(--royal); }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: var(--s-6); box-shadow: var(--sh-1);
}
.card--ice { background: var(--ice); border-color: transparent; box-shadow: none; }
.card--lift { transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur); }
.card--lift:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: rgba(107, 66, 38, .22); }
.is-navy .card { background: rgba(255,255,255,.04); border-color: var(--line-navy); box-shadow: none; }

/* ---------- Badges & pills ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
}
.badge--launch { background: rgba(46, 125, 79, .12); color: #2E7D4F; }
.badge--soon { background: var(--sky); color: var(--navy); }
.badge--gold { background: rgba(185, 130, 78, .2); color: #7A5230; }
.badge--navy { background: rgba(255,255,255,.1); color: var(--sky); }
.pill {
  display: inline-flex; align-items: center; gap: var(--s-2); height: 36px; padding: 0 14px 0 6px;
  border-radius: var(--r-pill); background: var(--white); border: 1px solid var(--line); box-shadow: var(--sh-1);
  font-size: 14px; font-weight: 500; color: var(--text-2);
}
.pill .dot { width: 24px; height: 24px; border-radius: 50%; background: var(--ice); display: grid; place-items: center; }
.pill .dot i { width: 8px; height: 8px; border-radius: 50%; background: var(--royal); position: relative; }
.pill .dot i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--royal); animation: ping 2s var(--ease-out) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(2.6); opacity: 0; } }

/* Icons: one set (Lucide geometry), stroke 2 everywhere */
.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico-tile {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--ice); color: var(--royal);
}
.is-navy .ico-tile { background: rgba(169, 212, 245,.12); color: var(--sky); }

.note-sample {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); font-weight: 500;
}
.note-sample::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (max-width: 767px) {
  :root { --nav-h: 64px; --t-body: 17px; }
  .section { padding: var(--s-8) 0; }
  .container { padding: 0 16px; }
  .grid-12 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
  .sec-head { margin-bottom: var(--s-7); }
  .card { padding: var(--s-5); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* app-ui.css */
/* HEIRVEST APP UI: phone, app screens, demos, charts, forms (product visuals) */
/* ---------- Device (phone) ---------- */
.device {
  position: relative; width: 300px; height: 620px; border-radius: var(--r-phone); padding: 10px;
  background: var(--navy); box-shadow: var(--sh-3), inset 0 0 0 1.5px rgba(255,255,255,.08);
}
.device-notch { position: absolute; top: 20px; left: 50%; width: 90px; height: 26px; margin-left: -45px; border-radius: 20px; background: var(--navy); z-index: 3; }
.device-screen { position: relative; height: 100%; border-radius: 38px; background: #fff; overflow: hidden; }
.device-screen:focus-visible { outline-offset: 6px; }
.skel { padding: 64px 20px; display: flex; flex-direction: column; gap: 14px; }
.skel i { display: block; height: 14px; border-radius: 8px; background: linear-gradient(90deg, var(--ice) 0%, #FAF4EC 50%, var(--ice) 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.skel i:nth-child(1) { width: 40%; } .skel i:nth-child(2) { height: 36px; width: 70%; } .skel i:nth-child(3) { height: 140px; } .skel i:nth-child(4), .skel i:nth-child(5) { height: 48px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- App UI (inside the phone) ---------- */
.app { height: 100%; display: flex; flex-direction: column; padding: 14px 18px 16px; font-size: 13px; color: var(--navy); animation: screenIn 360ms var(--ease-out); }
@keyframes screenIn { from { opacity: 0; transform: translateX(12px); } }
.app.dark { background: var(--navy); color: #fff; }
.sbar { display: flex; justify-content: space-between; align-items: center; height: 26px; padding: 0 8px; font-size: 12px; font-weight: 600; margin-bottom: 10px; }
.sbar .sig { display: flex; gap: 4px; align-items: center; }
.sbar .sig i { display: block; width: 3px; border-radius: 1px; background: currentColor; }
.sbar .sig i:nth-child(1) { height: 4px; } .sbar .sig i:nth-child(2) { height: 6px; } .sbar .sig i:nth-child(3) { height: 8px; } .sbar .sig i:nth-child(4) { height: 10px; }
.sbar .bat { width: 22px; height: 11px; border: 1.5px solid currentColor; border-radius: 3px; padding: 1px; margin-left: 4px; }
.sbar .bat::before { content: ""; display: block; height: 100%; width: 72%; background: currentColor; border-radius: 1px; }
.app-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.app-top .hi { font-size: 13px; color: var(--text-3); }
.app.dark .app-top .hi { color: var(--on-navy-2); }
.app-top .av { width: 30px; height: 30px; border-radius: 50%; background: var(--ice); color: var(--royal); display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.mode-sw { display: inline-flex; padding: 2px; border-radius: 8px; background: var(--ice); font-size: 11px; font-weight: 600; }
.mode-sw span { padding: 4px 8px; border-radius: 6px; color: var(--text-3); }
.mode-sw span.on { background: #fff; color: var(--royal); box-shadow: var(--sh-1); }
.app.dark .mode-sw { background: rgba(255,255,255,.08); }
.app.dark .mode-sw span.on { background: var(--royal); color: #fff; }
.bal-lbl { font-size: 12px; color: var(--text-3); }
.bal { font-family: var(--f-num); font-size: 32px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin: 2px 0 4px; }
.bal-sub { display: flex; gap: 8px; align-items: center; font-size: 12px; }
.up { color: #2E7D4F; font-weight: 600; }
.app.dark .up { color: var(--gain); }
.down { color: #B23A30; font-weight: 600; }
.app.dark .down { color: var(--loss); }
.mxn { color: var(--text-3); }
.spark { margin: 12px -18px 8px; height: 110px; }
.spark svg { width: 100%; height: 100%; overflow: visible; }
.ranges { display: flex; justify-content: space-between; padding: 0 2px 12px; font-size: 11px; font-weight: 600; color: var(--text-3); }
.ranges span { padding: 4px 8px; border-radius: 6px; }
.ranges span.on { background: var(--ice); color: var(--royal); }
.app.dark .ranges span.on { background: rgba(169, 212, 245,.14); color: var(--sky); }
.hold { border-top: 1px solid var(--line); }
.hold-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.tk { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 10px; font-weight: 700; background: var(--ice); color: var(--royal); flex: none; }
.hold-row .nm { flex: 1; min-width: 0; line-height: 1.25; }
.hold-row .nm b { display: block; font-size: 13px; }
.hold-row .nm small { color: var(--text-3); font-size: 11px; }
.hold-row .px { text-align: right; line-height: 1.25; font-variant-numeric: tabular-nums; }
.hold-row .px b { display: block; font-size: 13px; }
.hold-row .px small { font-size: 11px; }
.chal { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--ice); }
.chal .ico { width: 18px; height: 18px; color: var(--gold); }
.chal b { font-size: 12px; display: block; }
.chal small { font-size: 11px; color: var(--text-3); }
.chal .rank { margin-left: auto; font-family: var(--f-num); font-weight: 700; font-size: 18px; color: var(--royal); }
.app-tag { text-align: center; font-size: 10px; color: var(--text-3); margin-top: 8px; }
.app.dark .app-tag { color: var(--on-navy-2); }

/* Learn screen */
.lz-top { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.lz-close { width: 22px; height: 22px; color: var(--text-3); }
.lz-prog { flex: 1; height: 10px; border-radius: 10px; background: var(--ice); overflow: hidden; }
.lz-prog i { display: block; height: 100%; width: 0; border-radius: 10px; background: var(--royal); transition: width 700ms var(--ease-out); }
.lz-meta { display: flex; gap: 8px; font-size: 12px; font-weight: 700; }
.lz-meta span { display: inline-flex; align-items: center; gap: 3px; }
.lz-meta .ico { width: 15px; height: 15px; }
.lz-meta .fl { color: var(--gold); }
.lz-meta .xp { color: var(--royal); }
.lz-kick { font-size: 11px; font-weight: 600; color: var(--royal); }
.lz-q { font-family: var(--f-num); font-size: 20px; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; margin: 4px 0 16px; }
.mascot { display: flex; gap: 10px; align-items: flex-end; margin-bottom: 14px; }
.mascot svg { width: 44px; height: 44px; flex: none; }
.bubble { padding: 8px 12px; border-radius: 14px 14px 14px 4px; background: var(--ice); font-size: 12px; line-height: 1.4; }
.opts { display: flex; flex-direction: column; gap: 8px; }
.opt { text-align: left; border: 1.5px solid var(--line-strong); background: #fff; border-radius: 12px; padding: 11px 12px; font-size: 13px; font-weight: 500; cursor: pointer; transition: all var(--dur-fast); color: var(--navy); }
.opt:hover { border-color: var(--royal); }
.opt[aria-checked="true"] { border-color: var(--royal); background: var(--ice); color: var(--royal); }
.opt.ok { border-color: var(--gain); background: rgba(46, 125, 79,.1); color: #2E7D4F; }
.opt.bad { border-color: var(--loss); background: rgba(178, 58, 48,.08); color: #B23A30; }
.lz-foot { margin-top: auto; }
.lz-check { width: 100%; height: 44px; border: 0; border-radius: 12px; background: var(--royal); color: #fff; font-weight: 700; cursor: pointer; transition: transform var(--dur-fast), background var(--dur-fast); }
.lz-check:active { transform: scale(.97); }
.lz-check:disabled { background: var(--ice); color: var(--text-3); cursor: not-allowed; }
.lz-res { display: none; align-items: center; gap: 8px; padding: 10px 12px; margin-bottom: 8px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.lz-res.show { display: flex; animation: popIn 400ms var(--ease-out); }
.lz-res.good { background: rgba(46, 125, 79,.12); color: #2E7D4F; }
.lz-res.nope { background: rgba(178, 58, 48,.1); color: #B23A30; }
.lz-res .ico { width: 18px; height: 18px; }
@keyframes popIn { 0% { opacity: 0; transform: scale(.9) translateY(6px); } 60% { transform: scale(1.03); } 100% { opacity: 1; transform: none; } }

/* Pro screen */
.pro-tk { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 4px; }
.pro-tk b { font-family: var(--f-num); font-size: 22px; }
.pro-tk small { color: var(--on-navy-2); font-size: 11px; }
.candles { height: 190px; margin: 10px -6px 6px; }
.candles svg { width: 100%; height: 100%; }
.legend-ma { display: flex; gap: 12px; font-size: 11px; color: var(--on-navy-2); margin-bottom: 10px; }
.legend-ma i { display: inline-block; width: 10px; height: 2px; vertical-align: middle; margin-right: 4px; background: var(--sky); }
.rsi { border-top: 1px solid var(--line-navy); padding-top: 10px; }
.rsi-h { display: flex; justify-content: space-between; font-size: 11px; color: var(--on-navy-2); margin-bottom: 6px; }
.rsi svg { width: 100%; height: 48px; }
.tf { display: flex; gap: 6px; margin-top: 12px; }
.tf button { flex: 1; height: 30px; border: 1px solid var(--line-navy); background: transparent; color: var(--on-navy-2); border-radius: 8px; font-size: 11px; font-weight: 700; cursor: pointer; transition: all var(--dur-fast); }
.tf button[aria-pressed="true"] { background: var(--royal); border-color: var(--royal); color: #fff; }
.tf button:hover { border-color: var(--sky); }
.pro-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.pro-stats div { padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.05); font-size: 11px; color: var(--on-navy-2); }
.pro-stats b { display: block; color: #fff; font-size: 13px; font-variant-numeric: tabular-nums; }

/* Retos screen */
.seg { display: flex; padding: 3px; border-radius: 10px; background: var(--ice); margin-bottom: 12px; }
.seg button { flex: 1; height: 30px; border: 0; background: transparent; border-radius: 8px; font-size: 11px; font-weight: 600; color: var(--text-3); cursor: pointer; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--royal); box-shadow: var(--sh-1); }
.duel { padding: 12px; border-radius: 16px; background: var(--navy); color: #fff; margin-bottom: 12px; }
.duel-h { display: flex; justify-content: space-between; font-size: 11px; color: var(--on-navy-2); margin-bottom: 8px; }
.duel-row { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--f-num); font-weight: 700; }
.duel-row span { font-size: 15px; }
.duel-row em { font-style: normal; font-size: 11px; color: var(--sky); font-family: var(--f-body); }
.duel-bar { display: flex; height: 8px; border-radius: 8px; overflow: hidden; margin-top: 8px; background: rgba(255,255,255,.08); }
.duel-bar i { display: block; height: 100%; width: 0; transition: width 900ms var(--ease-out); }
.duel-bar i:first-child { background: var(--royal); }
.duel-bar i:last-child { background: var(--sky); margin-left: auto; }
.lb-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.lb-row .pos { width: 18px; font-weight: 700; color: var(--text-3); font-variant-numeric: tabular-nums; }
.lb-row.me { background: var(--ice); margin: 0 -8px; padding: 8px; border-radius: 10px; border-bottom: 0; }
.lb-row.me .pos { color: var(--royal); }
.lb-row .who { flex: 1; min-width: 0; line-height: 1.2; }
.lb-row .who b { font-size: 12px; display: block; }
.lb-row .who small { font-size: 10px; color: var(--text-3); }
.lb-row .meter { width: 64px; height: 6px; border-radius: 6px; background: var(--ice); overflow: hidden; }
.lb-row.me .meter { background: #fff; }
.lb-row .meter i { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--royal); transition: width 800ms var(--ease-out); }
.lb-row .pct { width: 44px; text-align: right; font-size: 12px; font-weight: 700; color: #2E7D4F; font-variant-numeric: tabular-nums; }

/* ---------- App preview layout ---------- */
.preview { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8); align-items: center; }
.preview-tabs { display: flex; flex-direction: column; gap: var(--s-3); }
.ptab { display: flex; gap: var(--s-4); align-items: center; text-align: left; padding: var(--s-4) var(--s-5); border-radius: var(--r-card-sm); background: transparent; border: 1px solid transparent; cursor: pointer; transition: all var(--dur) var(--ease-out); color: var(--navy); }
.ptab strong { display: block; font-family: var(--f-num); font-size: 20px; letter-spacing: -0.01em; }
.ptab small { display: block; font-size: 15px; color: var(--text-2); }
.ptab .ico-tile { background: #fff; transition: all var(--dur); }
.ptab:hover { background: rgba(255,255,255,.6); }
.ptab[aria-selected="true"] { background: #fff; border-color: var(--line); box-shadow: var(--sh-2); }
.ptab[aria-selected="true"] .ico-tile { background: var(--royal); color: #fff; }
.preview-stage { display: flex; flex-direction: column; align-items: center; gap: var(--s-4); }

/* ---------- Learn path ---------- */
.learn-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8); align-items: center; }
.learn-copy .t-lead { margin-top: var(--s-4); }
.learn-stats { display: flex; gap: var(--s-4); margin: var(--s-6) 0 var(--s-4); }
.lstat { display: flex; gap: var(--s-3); align-items: center; padding: var(--s-3) var(--s-4); border-radius: var(--r-ctl); border: 1px solid var(--line); }
.lstat .ico { color: var(--gold); }
.lstat strong { display: block; font-family: var(--f-num); font-size: 22px; line-height: 1.1; }
.lstat span { font-size: 13px; color: var(--text-3); }
.xp-demo { padding: var(--s-4); border-radius: var(--r-ctl); background: var(--ice); margin-bottom: var(--s-3); }
.xp-demo-top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: var(--s-2); }
.xp-pop { color: var(--royal); opacity: 0; transform: translateY(6px); transition: all 400ms var(--ease-out); }
.xp-demo.done .xp-pop { opacity: 1; transform: none; }
.xp-bar { height: 10px; border-radius: 10px; background: #fff; overflow: hidden; }
.xp-bar i { display: block; height: 100%; width: 50%; border-radius: 10px; background: var(--gold); transition: width 1100ms var(--ease-out); }
.xp-demo.done .xp-bar i { width: 75%; }
.lesson-path { position: relative; display: flex; flex-direction: column; gap: var(--s-5); padding: var(--s-4) 0; }
.lesson-path::before { content: ""; position: absolute; left: 50%; top: 32px; bottom: 32px; width: 2px; margin-left: -1px; background: repeating-linear-gradient(to bottom, var(--line-strong) 0 6px, transparent 6px 14px); }
.lesson { position: relative; width: 66%; }
.lesson:nth-child(odd) { align-self: flex-start; }
.lesson:nth-child(even) { align-self: flex-end; }
.lesson-card { display: flex; gap: var(--s-4); align-items: center; padding: var(--s-4) var(--s-5); }
.lesson-node { width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--royal); color: #fff; box-shadow: 0 4px 0 var(--royal-600); }
.lesson.is-current .lesson-node { background: var(--gold); color: var(--navy); box-shadow: 0 4px 0 #A87443; animation: bob 2.4s ease-in-out infinite; }
.lesson.is-locked .lesson-node { background: var(--ice); color: var(--text-3); box-shadow: 0 4px 0 #E4D6C4; }
.lesson.is-locked .lesson-card { opacity: .7; }
@keyframes bob { 50% { transform: translateY(-4px); } }
.lesson h3 { font-family: var(--f-num); font-size: 18px; letter-spacing: -0.01em; }
.lesson small { display: flex; flex-wrap: wrap; white-space: nowrap; gap: var(--s-2); align-items: center; font-size: 13px; color: var(--text-3); margin-top: 2px; }

/* ---------- Family ---------- */
.fam-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--s-8); align-items: center; }
.feat-list { display: flex; flex-direction: column; gap: var(--s-5); margin-top: var(--s-6); }
.feat-list li { display: flex; gap: var(--s-4); }
.feat-list h3 { font-family: var(--f-num); font-size: 19px; letter-spacing: -0.01em; margin-bottom: 2px; }
.tanda-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-4); margin-bottom: var(--s-6); }
.tanda-total { text-align: right; }
.tanda-total strong { display: block; font-family: var(--f-num); font-size: 28px; letter-spacing: -0.02em; line-height: 1; }
.gbar { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); align-items: end; height: 200px; border-bottom: 1px solid var(--line); }
.gbar-group { display: flex; flex-direction: column; align-items: center; gap: var(--s-2); height: 100%; justify-content: flex-end; }
.gbar-bars { display: flex; gap: 4px; align-items: flex-end; height: 100%; width: 100%; justify-content: center; }
.gbar-bars i { display: block; width: 14px; border-radius: 6px 6px 2px 2px; height: 100%; transform: scaleY(0); transform-origin: bottom; transition: transform var(--dur-chart) var(--ease-out); }
.gbar-bars i.s1 { background: #CFE6F8; } .gbar-bars i.s2 { background: var(--sky); } .gbar-bars i.s3 { background: var(--royal); }
.gbar.is-in .gbar-bars i { transform: scaleY(var(--h)); }
.gbar-name { font-size: 13px; font-weight: 600; padding-bottom: var(--s-2); }
.gbar-wrap-names { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); text-align: center; font-size: 13px; font-weight: 600; margin-top: var(--s-2); }
.gbar-legend { display: flex; gap: var(--s-4); margin: var(--s-4) 0; font-size: 13px; color: var(--text-2); }
.gbar-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.lg-1 { background: #CFE6F8; } .lg-2 { background: var(--sky); } .lg-3 { background: var(--royal); }
.tanda-foot { display: flex; gap: var(--s-2); align-items: center; padding: var(--s-3) var(--s-4); border-radius: var(--r-ctl); background: var(--ice); font-size: 14px; font-weight: 500; margin-bottom: var(--s-3); }
.tanda-foot .ico { width: 18px; height: 18px; color: var(--royal); }

/* ---------- Signature tools ---------- */
.tool { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8); align-items: center; padding: var(--s-8) 0; border-top: 1px solid var(--line); }
.tool:first-of-type { border-top: 0; padding-top: 0; }
.tool--flip .tool-copy { order: 2; }
.tool-copy .badge { margin-bottom: var(--s-4); }
.tool-copy .t-lead { margin-top: var(--s-4); }
.tool-demo { display: flex; flex-direction: column; gap: var(--s-3); align-items: center; padding: var(--s-6); border-radius: var(--r-card); background: var(--ice); min-height: 420px; justify-content: center; }

/* WhatsApp-style chat (original styling, not WhatsApp's) */
.chat { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: var(--s-2); min-height: 380px; justify-content: flex-end; }
.msg { max-width: 84%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.45; background: #fff; box-shadow: var(--sh-1); opacity: 0; transform: translateY(8px) scale(.98); transition: opacity 360ms var(--ease-out), transform 360ms var(--ease-out); }
.msg.show { opacity: 1; transform: none; }
.msg.me { align-self: flex-end; background: var(--royal); color: #fff; border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; border-bottom-left-radius: 4px; }
.msg .t { display: block; font-size: 11px; color: var(--text-2); text-align: right; margin-top: 2px; }
.msg.me .t { color: #fff; }
.voice { display: flex; align-items: center; gap: 8px; }
.voice .ico { width: 16px; height: 16px; }
.wave { display: flex; gap: 2px; align-items: center; height: 18px; }
.wave i { width: 3px; border-radius: 2px; background: rgba(255,255,255,.8); }
.mini-card { padding: 10px 12px; border-radius: 12px; background: var(--ice); margin-top: 4px; }
.mini-card b { font-family: var(--f-num); font-size: 20px; display: block; letter-spacing: -0.02em; }
.mini-card small { font-size: 12px; color: var(--text-3); }
.mini-btns { display: flex; gap: 6px; margin-top: 8px; }
.mini-btns span { flex: 1; text-align: center; padding: 6px; border-radius: 8px; font-size: 12px; font-weight: 600; background: #fff; border: 1px solid var(--line); }
.mini-btns span.p { background: var(--royal); color: #fff; border-color: var(--royal); }
.typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* Cash flow */
.cashflow { width: 100%; max-width: 320px; background: #fff; border-radius: 28px; box-shadow: var(--sh-2); padding: var(--s-6) var(--s-5) var(--s-5); }
.cf-stage { position: relative; height: 230px; }
.cf-step { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: var(--s-3); opacity: 0; transform: translateX(16px); transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out); pointer-events: none; }
.cf-step.is-on { opacity: 1; transform: none; }
.cf-step p { font-size: 15px; color: var(--text-2); max-width: 22ch; }
.barcode { display: flex; gap: 3px; height: 84px; align-items: stretch; padding: 0 var(--s-3); }
.barcode i { width: 3px; background: var(--navy); border-radius: 1px; }
.barcode i:nth-child(3n) { width: 6px; } .barcode i:nth-child(4n) { width: 2px; } .barcode i:nth-child(5n+1) { width: 4px; }
.cf-code { font-size: 14px; letter-spacing: .12em; font-weight: 600; }
.cf-ico { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--ice); color: var(--royal); }
.cf-ico .ico { width: 32px; height: 32px; }
.cf-ok { background: rgba(46, 125, 79,.12); color: var(--gain); }
.cf-amt { font-family: var(--f-num); font-size: 30px; letter-spacing: -0.02em; }
.cf-q { font-family: var(--f-num); font-size: 24px; font-weight: 700; color: var(--navy) !important; }
.cf-btns { display: flex; flex-direction: column; gap: var(--s-2); width: 100%; }
.cf-btn { padding: 12px; border-radius: var(--r-ctl); border: 1px solid var(--line-strong); font-weight: 600; font-size: 15px; }
.cf-btn--p { background: var(--royal); border-color: var(--royal); color: #fff; }
.cf-dots { display: flex; gap: 6px; justify-content: center; margin-top: var(--s-4); }
.cf-dots i { width: 6px; height: 6px; border-radius: 6px; background: var(--line-strong); transition: all var(--dur) var(--ease-out); }
.cf-dots i.is-on { width: 20px; background: var(--royal); }

/* Heir plan: the premium block */
.tool--heir { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.heir-kicker { display: block; font-size: var(--t-small); font-weight: 600; color: #7A5230; margin-bottom: var(--s-2); }
.heir-demo { position: relative; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-3); overflow: hidden; padding: var(--s-6) var(--s-6) var(--s-5); }
.heir-demo::before { /* brand gradient use #2: hairline across the top */ content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--brand-grad); }
.heir-map { width: 100%; max-width: 520px; height: auto; }
.heir-lines path { stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 1200ms var(--ease-out); }
.heir-demo.is-in .heir-lines path { stroke-dashoffset: 0; }
.heir-lines path:nth-child(n+4) { transition-delay: 600ms; }
.hn { opacity: 0; transition: opacity 500ms var(--ease-out); }
.heir-demo.is-in .hn { opacity: 1; }
.heir-demo.is-in .hn:nth-child(n+2) { transition-delay: 500ms; }
.ring { stroke-dasharray: 113.1; stroke-dashoffset: 113.1; transition: stroke-dashoffset 1200ms var(--ease-out) 900ms; }
.heir-funds { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; max-width: 520px; text-align: center; gap: var(--s-2); font-size: 13px; color: var(--text-2); margin-top: -4px; }
.heir-funds strong { display: block; font-family: var(--f-num); font-size: 18px; color: var(--navy); }
.heir-msg { display: flex; gap: var(--s-3); align-items: center; width: 100%; max-width: 440px; padding: var(--s-4); border-radius: var(--r-card-sm); background: var(--ice); margin-top: var(--s-3); opacity: 0; transform: translateY(10px); transition: all 600ms var(--ease-out) 1600ms; }
.heir-demo.is-in .heir-msg { opacity: 1; transform: none; }
.heir-msg .ico-tile { background: #fff; color: var(--royal); }
.heir-msg strong { font-size: 14px; }
.heir-msg p { font-size: 15px; font-style: italic; color: var(--text-2); }

/* ---------- Empresas ---------- */
.biz-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-8); align-items: start; }
.check-list { display: flex; flex-direction: column; gap: var(--s-3); margin: var(--s-6) 0; }
.check-list li { display: flex; gap: var(--s-3); align-items: flex-start; font-size: 17px; }
.check-list .ico { width: 20px; height: 20px; color: var(--royal); margin-top: 3px; }
.crew-stats { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-5); }
.crew-stats strong { display: block; font-family: var(--f-num); font-size: 30px; letter-spacing: -0.02em; line-height: 1.1; }
.crew-stats span { font-size: 13px; color: var(--text-3); }
.crew-arrow { width: 20px; height: 20px; color: var(--text-3); }
.crew-bars { display: flex; gap: var(--s-3); align-items: flex-end; height: 140px; border-bottom: 1px solid var(--line); }
.crew-bars .cb { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; gap: 4px; align-items: center; }
.crew-bars .cb i { display: block; width: 100%; height: 100%; border-radius: 8px 8px 2px 2px; background: var(--royal); transform: scaleY(0); transform-origin: bottom; transition: transform var(--dur-chart) var(--ease-out); }
.crew-bars .cb:last-child i { background: var(--sky); }
.crew-bars.is-in .cb i { transform: scaleY(var(--h)); }
.crew-bars .cb b { font-size: 11px; font-variant-numeric: tabular-nums; color: var(--text-3); opacity: 0; transition: opacity 400ms; }
.crew-bars.is-in .cb b { opacity: 1; transition-delay: 700ms; }
.crew-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); margin: var(--s-2) 0 var(--s-3); }
.form-card { padding: var(--s-6); }
.form-intro { margin: var(--s-2) 0 var(--s-5); }
.form-card form { display: flex; flex-direction: column; gap: var(--s-5); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
#employersForm .form-grid { grid-template-columns: 1fr; }
.fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.fieldset legend { margin-bottom: var(--s-2); padding: 0; }
.form-msg { font-size: 14px; color: #B23A30; min-height: 0; }
.form-msg:empty { display: none; }
.form-success { text-align: center; padding: var(--s-6) 0; display: flex; flex-direction: column; align-items: center; gap: var(--s-3); position: relative; }
.form-success[hidden] { display: none; }
.success-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(46, 125, 79,.12); color: var(--gain); animation: popIn 500ms var(--ease-out); }
.success-ico .ico { width: 30px; height: 30px; }

/* ---------- Chart micro-details ---------- */
.lc-area { opacity: 0; transition: opacity 900ms var(--ease-out) 500ms; }
.lc.is-drawn .lc-area { opacity: 1; }
.lc-dot { opacity: 0; transition: opacity 300ms 1100ms; }
.lc.is-drawn .lc-dot { opacity: 1; }
.lc-pulse { transform-box: fill-box; transform-origin: center; animation: lcPulse 2s var(--ease-out) infinite; opacity: .5; }
@keyframes lcPulse { 0% { transform: scale(1); opacity: .5; } 80%, 100% { transform: scale(3.2); opacity: 0; } }
.cdl { opacity: 0; animation: cdlIn 420ms var(--ease-out) forwards; animation-delay: var(--d); }
@keyframes cdlIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }


/* ---------- Clickable app prototype (app-proto.js) ---------- */
.app-shell { height: 100%; display: flex; flex-direction: column; background: #fff; }
.app-view { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.app-view::-webkit-scrollbar { display: none; }
.app-view .app { height: auto; min-height: 100%; }
.app-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); padding: 6px 4px 10px; background: #fff; flex: none; }
.app-tabs button { display: flex; flex-direction: column; align-items: center; gap: 2px; border: 0; background: none; color: var(--text-3); font-size: 10px; font-weight: 600; cursor: pointer; padding: 4px 0; border-radius: 8px; }
.app-tabs .ico { width: 20px; height: 20px; }
.app-tabs button[aria-current="true"] { color: var(--royal); }
.app-tabs button:hover { color: var(--navy); }
.hold-row.tap { cursor: pointer; border-radius: 10px; transition: background var(--dur-fast); margin: 0 -8px; padding-left: 8px; padding-right: 8px; }
.hold-row.tap:hover, .hold-row.tap:focus-visible { background: var(--ice); }
.app-hint { font-size: 11px; color: var(--royal); font-weight: 600; margin: 2px 0 6px; }
.app-new { font-size: 11px; color: #2E7D4F; font-weight: 600; margin-top: 8px; }
.ranges span, .mode-sw span { cursor: pointer; }
.app-nav { display: grid; grid-template-columns: 32px 1fr 32px; align-items: center; margin-bottom: 10px; }
.app-nav .tk { text-align: center; font-weight: 700; font-size: 14px; }
.app-back { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--ice); color: var(--navy); display: grid; place-items: center; cursor: pointer; }
.app-back .ico { width: 18px; height: 18px; transform: rotate(90deg); }
.pos-card { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--ice); font-size: 12px; margin-bottom: 10px; }
.pos-card b { font-size: 12px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 12px; }
.stat-cell { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 10px; cursor: pointer; color: var(--navy); }
.stat-cell small { display: block; font-size: 10px; color: var(--text-3); }
.stat-cell b { font-size: 13px; }
.stat-cell em { display: none; font-style: normal; font-size: 10px; color: var(--royal); margin-top: 2px; line-height: 1.3; }
.stat-cell.open { border-color: var(--royal); background: #FAF4EC; }
.stat-cell.open em { display: block; }
.app-cta { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; margin-top: auto; padding: 8px 0 4px; position: sticky; bottom: 0; background: linear-gradient(rgba(255,255,255,0), #fff 30%); z-index: 2; }
.app-btn { height: 42px; border-radius: 999px; border: 0; background: var(--royal); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; transition: transform 90ms, opacity var(--dur-fast); }
.app-btn:active { transform: scale(.97); }
.app-btn:disabled { opacity: .35; cursor: not-allowed; }
.app-btn--ghost { background: var(--ice); color: var(--navy); }
.app-btn--wide { width: 100%; margin-top: 8px; }
.practice-pill { align-self: center; font-size: 11px; font-weight: 700; color: #7A5230; background: #F5E9DA; padding: 4px 10px; border-radius: 999px; }
.app--order { text-align: center; }
.amt { font-family: var(--f-num); font-weight: 700; font-size: 52px; letter-spacing: -0.04em; margin: 14px 0 2px; }
.amt-sub { font-size: 11px; color: var(--text-3); margin-bottom: 10px; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: auto; }
.keypad button { height: 44px; border: 0; background: none; font-size: 22px; font-weight: 600; color: var(--navy); border-radius: 12px; cursor: pointer; }
.keypad button:hover { background: var(--ice); }
.keypad button:active { background: #E8DACA; }
.review-card { border: 1px solid var(--line); border-radius: 14px; padding: 4px 12px; margin: 6px 0 10px; }
.review-card div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.review-card div:last-child { border-bottom: 0; }
.review-card span { color: var(--text-3); }
.app-fine { font-size: 10px; color: var(--text-3); line-height: 1.4; margin-top: auto; }
.app--done { text-align: center; justify-content: center; gap: 10px; }
.done-check { width: 72px; height: 72px; border-radius: 50%; background: var(--gain); color: #fff; display: grid; place-items: center; margin: 20px auto 6px; animation: popIn 500ms var(--ease-out); box-shadow: 0 0 0 10px rgba(46, 125, 79,.15); }
.done-check .ico { width: 36px; height: 36px; stroke-width: 3; }
.app--done h3 { font-family: var(--f-num); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.app--done p { font-size: 13px; color: var(--text-2); }
.prof-top { display: flex; align-items: center; gap: 12px; margin: 4px 0 14px; }
.prof-av { width: 44px; height: 44px; border-radius: 50%; background: var(--royal); color: #fff; display: grid; place-items: center; font-weight: 700; }
.prof-top b { display: block; font-size: 15px; }
.prof-top small { font-size: 11px; color: var(--text-3); }
.verify { border-radius: 14px; background: var(--ice); padding: 12px; margin-bottom: 12px; }
.verify-h { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.badge-s { font-size: 10px; font-weight: 700; color: var(--royal); background: #fff; padding: 2px 8px; border-radius: 999px; }
.verify-bar { height: 6px; border-radius: 6px; background: #fff; margin: 10px 0; overflow: hidden; }
.verify-bar i { display: block; height: 100%; background: var(--royal); border-radius: 6px; }
.verify ul { display: flex; flex-direction: column; gap: 6px; font-size: 11px; }
.verify li { display: flex; align-items: center; gap: 6px; color: var(--text-2); }
.verify li .ico { width: 14px; height: 14px; }
.verify li.ok { color: #2E7D4F; }
.prof-list li { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.prof-list span { color: var(--text-3); }
@media (max-width: 767px) {
  .device--preview .device-screen { height: 660px; min-height: 0; }
  .device--preview .app-view .app { padding: 18px; }
  .app-tabs button { font-size: 11px; }
}
/* Plain-language line under simple charts */
.plain-say { font-size: 11px; line-height: 1.4; color: var(--navy); background: var(--ice); border-radius: 10px; padding: 7px 10px; margin: -2px 0 10px; }
.app.dark .plain-say { display: none; }

/* ---------- WhatsApp-style phone: assistant demo (original styling) ---------- */
.waphone { display: flex; flex-direction: column; align-items: center; gap: var(--s-4); width: 100%; }
.wp-tabs { display: flex; flex-wrap: nowrap; justify-content: center; gap: 2px; padding: 4px; border-radius: var(--r-pill); background: var(--ice); max-width: 100%; }
.wp-tabs button { appearance: none; border: 0; background: transparent; font: 600 12.5px/1 var(--f-body); color: var(--text-2); padding: 9px 11px; white-space: nowrap; border-radius: var(--r-pill); cursor: pointer; transition: background var(--dur-fast), color var(--dur-fast), box-shadow var(--dur-fast); }
.wp-tabs button:hover { color: var(--text); }
.wp-tabs button[aria-pressed="true"] { background: #fff; color: var(--royal); box-shadow: var(--sh-1), 0 0 0 1px var(--line); }
.wp-tabs button:focus-visible { outline: 2px solid var(--royal); outline-offset: 2px; }
.wp-device { width: 300px; height: 610px; }
.wp-screen { display: flex; flex-direction: column; background: #F3EADF; }
.wp-sbar { flex: none; display: flex; justify-content: space-between; align-items: center; padding: 16px 26px 0 30px; height: 44px; font: 600 13px/1 var(--f-num); color: #fff; background: var(--navy); }
.wp-sig { display: flex; align-items: flex-end; gap: 2px; }
.wp-sig i { width: 3px; border-radius: 1px; background: #fff; }
.wp-sig i:nth-child(1) { height: 4px; } .wp-sig i:nth-child(2) { height: 6px; } .wp-sig i:nth-child(3) { height: 8px; } .wp-sig i:nth-child(4) { height: 10px; }
.wp-sig b { width: 20px; height: 10px; margin-left: 5px; border-radius: 3px; border: 1.5px solid #fff; background: linear-gradient(90deg, #fff 70%, transparent 70%) content-box; padding: 1px; }
.wp-head { flex: none; display: flex; align-items: center; gap: 10px; padding: 10px 14px 12px 8px; background: var(--navy); color: #fff; }
.wp-head .ico { width: 18px; height: 18px; opacity: .85; }
.wp-back { transform: rotate(180deg); }
.wp-av { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--brand-grad); font: 500 20px/1 var(--f-head); color: #fff; }
.wp-who { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.wp-who b { font-size: 15px; font-weight: 600; }
.wp-status { font-size: 11.5px; color: var(--on-navy-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color var(--dur-fast); }
.wp-status.is-typing { color: var(--sky); }
.wp-body { flex: 1; min-height: 0; overflow: hidden; scroll-behavior: smooth; padding: 10px 10px 6px;
  background-image: radial-gradient(rgba(43, 29, 20,.06) 1px, transparent 1.2px); background-size: 14px 14px; }
.wp-msgs { display: flex; flex-direction: column; gap: 6px; min-height: 100%; justify-content: flex-end; }
.wp-day { align-self: center; font-size: 11px; font-weight: 600; color: var(--text-2); background: rgba(255,255,255,.85); padding: 4px 10px; border-radius: 8px; margin: 6px 0; box-shadow: var(--sh-1); opacity: 0; transition: opacity 300ms; }
.wp-day.show { opacity: 1; }
.wm { position: relative; max-width: 86%; padding: 7px 10px 6px; border-radius: 12px; font-size: 13px; line-height: 1.42; color: var(--text); background: #fff; box-shadow: 0 1px 1px rgba(43, 29, 20,.08);
  opacity: 0; transform: translateY(10px) scale(.97); transform-origin: bottom left; transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out); overflow-wrap: anywhere; }
.wm.show { opacity: 1; transform: none; }
.wm.bot { align-self: flex-start; border-top-left-radius: 4px; }
.wm.me { align-self: flex-end; background: var(--royal); color: #fff; border-top-right-radius: 4px; transform-origin: bottom right; }
.wm-txt { display: block; }
.wm-meta { float: right; display: inline-flex; align-items: center; gap: 3px; margin: 6px 0 -2px 10px; font: 500 10px/1 var(--f-num); color: var(--text-3); }
.wm.me .wm-meta { color: rgba(255,255,255,.75); }
.wm-tk svg { width: 15px; height: 10px; fill: none; stroke: rgba(255,255,255,.6); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke 300ms; }
.wm.me.is-read .wm-tk svg { stroke: var(--sky); }
.wm-typing { display: inline-flex; gap: 4px; padding: 11px 13px; }
.wm-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: blink 1s infinite; }
.wm-typing i:nth-child(2) { animation-delay: .15s; } .wm-typing i:nth-child(3) { animation-delay: .3s; }
.wm-voice { display: flex; align-items: center; gap: 8px; min-width: 190px; }
.wm-voice .ico { width: 16px; height: 16px; }
.wm-wave { flex: 1; display: flex; align-items: center; gap: 2px; height: 20px; }
.wm-wave i { flex: 1; max-width: 3px; border-radius: 2px; background: rgba(255,255,255,.85); }
.wm-voice .tnum { font-size: 11px; opacity: .85; }
.wm-tr { display: block; margin-top: 4px; font-size: 11.5px; font-style: italic; opacity: .85; }
.wm-btns { clear: both; display: flex; flex-direction: column; margin: 8px -10px -6px; border-top: 1px solid var(--line); }
.wm-btns span { padding: 9px 10px; text-align: center; font-weight: 600; font-size: 13px; color: var(--royal); border-bottom: 1px solid var(--line); transition: background 200ms; }
.wm-btns span:last-child { border-bottom: 0; border-radius: 0 0 12px 12px; }
.wm-btns span.is-tap { background: var(--ice); }
.wm-btns.is-used span:not(.is-tap) { color: var(--text-3); }
.wc { margin: 6px 0 2px; padding: 10px 11px; border-radius: 10px; background: var(--ice); display: flex; flex-direction: column; gap: 6px; }
.wc small { font-size: 11.5px; color: var(--text-2); }
.wc-t { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.wc-t .ico { width: 15px; height: 15px; color: var(--gain); }
.wc-list, .wc-num, .wc-opts, .wc-track { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 5px; }
.wc-list li { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; }
.wc-list .ico { width: 14px; height: 14px; flex: none; margin-top: 2px; color: var(--royal); }
.wc-num { counter-reset: n; }
.wc-num li, .wc-opts li { counter-increment: n; display: flex; gap: 7px; font-size: 12.5px; }
.wc-num li::before, .wc-opts li::before { content: counter(n); flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font: 700 10.5px/1 var(--f-num); background: #fff; color: var(--royal); }
.wc-opts { counter-reset: n; }
.wc-q { margin: 0; font-family: var(--f-head); font-weight: 700; font-size: 15px; line-height: 1.3; }
.wc-rows { margin: 0; display: flex; flex-direction: column; gap: 3px; }
.wc-rows div { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.wc-rows dt { color: var(--text-2); } .wc-rows dd { margin: 0; font-weight: 600; text-align: right; }
.wc-track li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-3); position: relative; }
.wc-track li i { width: 12px; height: 12px; flex: none; border-radius: 50%; border: 2px solid var(--line-strong); background: #fff; }
.wc-track li.done { color: var(--text); } .wc-track li.done i { background: var(--gain); border-color: var(--gain); }
.wc-track li.now { color: var(--text); font-weight: 700; } .wc-track li.now i { border-color: var(--royal); box-shadow: 0 0 0 4px rgba(107, 66, 38,.15); animation: wpPulse 1.6s ease-in-out infinite; }
@keyframes wpPulse { 50% { box-shadow: 0 0 0 7px rgba(107, 66, 38,.05); } }
.wc--streak { flex-direction: row; align-items: center; gap: 8px; }
.wc--streak .ico { width: 18px; height: 18px; color: #B9824E; }
.wc--streak b { flex: 1; font-size: 13px; } .wc--streak .tnum { font-weight: 700; color: var(--royal); font-size: 12.5px; }
.wc-big { font: 700 22px/1.1 var(--f-num); letter-spacing: -0.02em; }
.wc-btn { margin-top: 4px; text-align: center; padding: 8px; border-radius: 8px; background: var(--royal); color: #fff; font-weight: 600; font-size: 12.5px; }
.wp-input { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 10px 22px; background: #F3EADF; }
.wp-field { position: relative; flex: 1; min-width: 0; height: 38px; display: flex; align-items: center; padding: 0 14px; border-radius: 19px; background: #fff; font-size: 13.5px; color: var(--text); box-shadow: 0 1px 1px rgba(43, 29, 20,.06); overflow: hidden; white-space: nowrap; }
.wp-ph { color: var(--text-3); }
.wp-ph[hidden] { display: none; }
.wp-typed { overflow: hidden; }
.wp-caret { display: none; width: 1.5px; height: 17px; margin-left: 1px; background: var(--royal); animation: blink 1s steps(1) infinite; }
.wp-field.has-text .wp-caret { display: block; }
.wp-rec { position: absolute; inset: 0; display: none; align-items: center; gap: 8px; padding: 0 14px; background: #fff; font-size: 12.5px; color: var(--text-2); }
.wp-rec i { width: 9px; height: 9px; border-radius: 50%; background: var(--loss); animation: blink 1s infinite; }
.wp-rec .tnum { font-weight: 600; color: var(--text); }
.wp-field.is-rec .wp-rec { display: flex; }
.wp-send { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--royal); color: #fff; transition: transform 140ms var(--ease-out); }
.wp-send .ico { width: 17px; height: 17px; grid-area: 1 / 1; transition: opacity 160ms, transform 160ms; }
.wp-snd { opacity: 0; transform: scale(.6); }
.wp-input:has(.has-text) .wp-snd { opacity: 1; transform: none; }
.wp-input:has(.has-text) .wp-mic { opacity: 0; transform: scale(.6); }
.wp-input:has(.is-rec) .wp-send { transform: scale(1.18); background: var(--royal-600); }
.wp-send.is-press { transform: scale(.86); }
@media (max-width: 400px) { .wp-device { width: 284px; height: 590px; } .wp-tabs button { padding: 8px 8px; font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { .wm, .wp-day { transition: none; } .wc-track li.now i, .wp-caret, .wp-rec i { animation: none; } }

/* pages.css */
/* =========================================================
   HEIRVEST EDITORIAL LAYOUT
   Serif headlines, hairlines instead of boxes, pill buttons,
   photography + real product UI. Icons only when they do a job.
   ========================================================= */
:root { --bar-h: 40px; --header-h: calc(var(--bar-h) + var(--nav-h)); }
html { scroll-padding-top: calc(var(--nav-h) + 24px); }
main { padding-top: var(--header-h); }

/* ---------- Header: no-SSN bar + nav ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; transition: transform var(--dur) var(--ease-out); }
.site-header.is-scrolled { transform: translateY(calc(-1 * var(--bar-h))); }
.ssn-bar { display: flex; align-items: center; justify-content: center; height: var(--bar-h); background: var(--royal); color: #fff; font-size: 15px; text-decoration: none !important; padding: 0 16px; }
.ssn-bar-inner { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ssn-bar strong { font-weight: 600; }
.ssn-bar-sub { color: rgba(255,255,255,.86); }
.ssn-bar-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.5); margin-left: 6px; }
.ssn-bar-link .ico { width: 15px; height: 15px; transition: transform var(--dur-fast); }
.ssn-bar:hover .ssn-bar-link .ico { transform: translateX(3px); }
.nav { height: var(--nav-h); background: #fff; border-bottom: 1px solid transparent; transition: border-color var(--dur), box-shadow var(--dur); }
.site-header.is-scrolled .nav { border-bottom-color: var(--line); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); }
.logo { display: inline-flex; align-items: center; color: var(--royal); text-decoration: none !important; }
.logo-mark { display: none; }
.logo-word { font-family: var(--f-num); font-weight: 700; font-size: 26px; letter-spacing: -0.045em; line-height: 1; }
.logo--light { color: #fff; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { position: relative; padding: 6px 0; font-size: 15px; font-weight: 500; color: var(--text-2); text-decoration: none; transition: color var(--dur-fast); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--navy); }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--royal); }
.nav-links .nav-ssn { color: var(--royal); font-weight: 600; }
.nav-links .nav-ssn .ico { display: none; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle { display: inline-flex; gap: 2px; }
.lang-toggle button { border: 0; background: none; height: 32px; padding: 0 8px; font-size: 14px; font-weight: 600; color: var(--text-3); cursor: pointer; border-radius: 8px; }
.lang-toggle button[aria-pressed="true"] { color: var(--navy); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: var(--royal); }
.lang-toggle button:hover { color: var(--navy); }
.nav-burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; place-items: center; color: var(--navy); border-radius: 10px; }
.nav-burger .ico-close { display: none; }
.nav-burger[aria-expanded="true"] .ico-open { display: none; }
.nav-burger[aria-expanded="true"] .ico-close { display: block; }
.mobile-menu { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); max-height: calc(100vh - var(--nav-h)); overflow: auto; }
.mobile-menu .container { display: flex; flex-direction: column; padding-top: 8px; padding-bottom: 24px; }
.mobile-menu a:not(.btn) { display: flex; flex-direction: column; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--navy); text-decoration: none; }
.mobile-menu a:not(.btn) span { font-family: var(--f-head); font-weight: 700; font-size: 26px; line-height: 1.15; }
.mobile-menu a:not(.btn) small { font-size: 14px; color: var(--text-3); }
.mobile-menu a[aria-current="page"] span { color: var(--royal); }
.mobile-menu .btn { margin-top: 20px; }

/* ---------- Shared type pieces ---------- */
.kicker { display: block; font-size: 15px; font-weight: 600; color: var(--royal); margin-bottom: 20px; }
.is-navy .kicker, .band-royal .kicker { color: var(--sky); }
.band-royal .kicker { color: rgba(255,255,255,.8); }
.lead-max { max-width: 34ch; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; margin-top: 24px; }
.text-link .ico { width: 18px; height: 18px; transition: transform var(--dur-fast); }
.text-link:hover .ico { transform: translateX(3px); }
.soon { font-size: 14px; font-weight: 600; color: var(--royal); }
.soon--gold { color: #7A5230; }
.fine { font-size: 13px; color: var(--text-3); margin-top: 20px; }
.is-navy .fine { color: rgba(255,255,255,.72); }
.band-royal .fine { color: #fff; }
.section--tight { padding: var(--s-9) 0; }
.hl { color: var(--sky); }
.hl-u { background: linear-gradient(transparent 70%, rgba(169, 212, 245,.45) 70%); padding: 0 .04em; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* The no-SSN "stamp": the one loud element on each hero */
.stamp { display: inline-flex; flex-direction: column; gap: 4px; margin: 28px 0 0; padding: 16px 20px; border-left: 4px solid var(--royal); background: var(--ice); border-radius: 0 10px 10px 0; text-decoration: none !important; color: var(--navy); max-width: 460px; transition: background var(--dur-fast); }
.stamp strong { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.stamp span { font-size: 16px; color: var(--text-2); }
.stamp em { font-style: normal; font-weight: 600; color: var(--royal); font-size: 15px; display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; }
.stamp em .ico { width: 16px; height: 16px; transition: transform var(--dur-fast); }
.stamp:hover { background: #EFE3D4; }
.stamp:hover em .ico { transform: translateX(3px); }

/* ---------- Photos ---------- */
.photo { margin: 0; position: relative; overflow: hidden; border-radius: 20px; background: var(--ice); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo--hero { aspect-ratio: 4 / 5; }
.photo--page { aspect-ratio: 5 / 6; }
.photo--wide { aspect-ratio: 16 / 9; }
.photo--empty { display: flex; align-items: flex-end; }
.photo-ph { display: flex; align-items: center; gap: 8px; margin: 20px; font-size: 13px; color: var(--text-3); }
.photo-ph .ico { width: 18px; height: 18px; }

/* ---------- Home hero ---------- */
.hero-home { padding: var(--s-8) 0 var(--s-9); }
.hero-home .hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s-8); align-items: center; }
.hero-home h1 { font-size: var(--t-display); max-width: 14ch; }
.hero-home .hero-sub { margin-top: 24px; max-width: 32ch; color: var(--text-2); }
.hero-form { margin-top: 28px; max-width: 480px; }
.hero-form-row { display: flex; gap: 8px; }
.hero-form-row .input { flex: 1; min-width: 0; border-radius: var(--r-btn); padding: 0 22px; }
.hero-micro { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 14px; color: var(--text-3); }
.hero-micro strong { color: var(--navy); font-weight: 600; }
.hero-micro .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); }
.hero-media { position: relative; padding-left: 64px; }
.hero-media .hero-phone { position: absolute; left: 0; bottom: -40px; width: 300px; height: 620px; transform-origin: bottom left; scale: .74; z-index: 2; }
.hero-media .note-sample { position: absolute; right: 0; bottom: -32px; }

/* ---------- Page heroes ---------- */
.page-hero { padding: var(--s-8) 0 var(--s-9); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-8); align-items: center; }
.page-hero h1 { max-width: 13ch; }
.page-hero .t-lead { margin-top: 24px; max-width: 36ch; }
.page-hero-media { position: relative; }

/* ---------- Wealthsimple-style path rows ---------- */
.rows { border-top: 1px solid var(--line-strong); }
.row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) auto; gap: var(--s-6); align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line-strong); color: var(--navy); text-decoration: none !important; }
.row h3 { font-size: clamp(40px, 5.4vw, 76px); letter-spacing: -0.03em; line-height: 1; transition: color var(--dur-fast); }
.row p { color: var(--text-2); font-size: 17px; max-width: 40ch; }
.row-go { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: all var(--dur) var(--ease-out); }
.row-go .ico { width: 22px; height: 22px; }
.row:hover h3 { color: var(--royal); }
.row:hover .row-go { background: var(--royal); border-color: var(--royal); color: #fff; transform: translateX(4px); }
.row--ssn h3 { color: var(--royal); }

/* ---------- Royal band (the big no-SSN statement) ---------- */
.band-royal { background: var(--royal); color: #fff; padding: var(--s-10) 0; }
.band-title { font-size: clamp(48px, 7vw, 100px); line-height: .98; letter-spacing: -0.03em; max-width: 16ch; }
.band-royal .t-lead { color: rgba(255,255,255,.85); margin-top: 28px; max-width: 40ch; }
.band-royal .btn--primary { background: #fff; color: var(--royal); }
.band-royal .btn--primary:hover { background: var(--ice); }
.band-royal .btn--secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.band-royal .btn--secondary:hover { border-color: #fff; color: #fff; }
.band-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); margin-top: var(--s-9); }
.band-steps li { border-top: 1px solid rgba(255,255,255,.3); padding-top: 24px; }
.band-steps .n { font-family: var(--f-head); font-weight: 700; font-size: 56px; line-height: 1; display: block; margin-bottom: 16px; }
.band-steps h3 { font-family: var(--f-body); font-size: 19px; font-weight: 600; letter-spacing: 0; margin-bottom: 6px; }
.band-steps p { color: rgba(255,255,255,.8); font-size: 16px; }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.stat { padding: 32px 28px 32px 0; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line); }
.stat b { display: block; font-family: var(--f-head); font-weight: 800; font-size: clamp(40px, 4.4vw, 60px); line-height: 1; letter-spacing: -0.03em; margin-bottom: 12px; }
.stat span { font-size: 16px; color: var(--text-2); }
.stats-note { margin-top: 12px; }

/* ---------- Split layouts ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-9); align-items: center; }
.split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.split--top { align-items: start; }
.split h2 { max-width: 14ch; }
.split .t-lead { margin-top: 20px; max-width: 40ch; }
.sec-title { max-width: 18ch; margin-bottom: var(--s-8); }

/* Numbered list with serif numerals */
.numlist { counter-reset: n; border-top: 1px solid var(--line-strong); }
.numlist li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.numlist .n { font-family: var(--f-head); font-weight: 700; font-size: 40px; line-height: 1; color: var(--royal); }
.numlist h3 { font-family: var(--f-body); font-size: 19px; font-weight: 600; letter-spacing: 0; margin-bottom: 4px; }
.numlist p { color: var(--text-2); }
.numlist--cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); border-top: 0; }
.numlist--cols li { grid-template-columns: 1fr; border-top: 1px solid var(--line-strong); border-bottom: 0; }

/* Plain list (replaces icon checklists) */
.plain { border-top: 1px solid var(--line); margin-top: 28px; }
.plain li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.is-navy .plain, .is-navy .plain li { border-color: var(--line-navy); }

/* ---------- Product showcase (app preview) ---------- */
.preview { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-8); align-items: center; }
.preview-tabs { display: flex; flex-direction: column; border-top: 1px solid var(--line-strong); }
.ptab { display: block; text-align: left; width: 100%; padding: 22px 0 22px 20px; border: 0; border-bottom: 1px solid var(--line); background: none; cursor: pointer; position: relative; color: var(--text-3); transition: color var(--dur-fast); border-radius: 0; box-shadow: none !important; }
.ptab::before { content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 3px; border-radius: 3px; background: transparent; transition: background var(--dur); }
.ptab .ico-tile { display: none; }
.ptab strong { display: block; font-family: var(--f-head); font-weight: 700; font-size: 30px; letter-spacing: -0.02em; line-height: 1.1; }
.ptab small { display: block; font-size: 16px; margin-top: 4px; color: var(--text-3); }
.ptab:hover { color: var(--text-2); background: none; }
.ptab[aria-selected="true"] { color: var(--navy); background: none; border-color: var(--line); }
.ptab[aria-selected="true"]::before { background: var(--royal); }
.ptab[aria-selected="true"] small { color: var(--text-2); }
.preview-stage { display: flex; flex-direction: column; align-items: center; gap: 16px; }

/* Lesson path restyle: product UI, no boxes */
.learn-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-9); align-items: center; }
.learn-copy .t-lead { margin-top: 20px; }
.learn-stats { display: flex; gap: 40px; margin: 32px 0 24px; }
.lstat { display: block; padding: 0; border: 0; }
.lstat .ico { display: none; }
.lstat strong { display: block; font-family: var(--f-head); font-weight: 800; font-size: 52px; line-height: 1; letter-spacing: -0.03em; }
.lstat span { font-size: 15px; color: var(--text-2); }
.lesson-path { background: var(--ice); border-radius: 24px; padding: 40px 32px; gap: 20px; }
.lesson-path::before { left: 58px; top: 64px; bottom: 64px; margin-left: 0; }
.lesson, .lesson:nth-child(odd), .lesson:nth-child(even) { width: 100%; align-self: stretch; }
.lesson:nth-child(even) { padding-left: 40px; }
.lesson-card { display: flex; gap: 16px; align-items: center; padding: 12px 18px 12px 12px; background: #fff; border: 0; border-radius: 999px; box-shadow: var(--sh-1); }
.lesson-card:hover { transform: none; }
.lesson h3 { font-family: var(--f-num); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }

/* ---------- Manifesto ---------- */
.mani-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s-9); align-items: end; }
.mani-copy .t-display { max-width: 10ch; margin-bottom: 28px; }
.mani-copy .t-lead { color: var(--on-navy-2); max-width: 40ch; }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.vs-title { font-family: var(--f-head); font-weight: 700; font-size: 34px; margin-bottom: 12px; }
.vs-bad .vs-title { color: var(--on-navy-2); text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--loss); }
.vs-good .vs-title { color: var(--sky); }
.vs li { padding: 14px 0; border-top: 1px solid var(--line-navy); font-size: 16px; }
.vs-bad li { color: var(--on-navy-2); }

/* ---------- Signature tools ---------- */
.tool { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-9); align-items: center; padding: var(--s-8) 0; border-top: 1px solid var(--line); }
.tool:first-of-type { border-top: 0; padding-top: 0; }
.tool--flip .tool-copy { order: 2; }
.tool-copy .soon { display: block; margin-bottom: 16px; }
.tool-copy .t-lead { margin-top: 16px; }
.tool-demo { display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: center; padding: 40px 32px; border-radius: 24px; background: var(--ice); min-height: 440px; }
.heir-section .tool { border-top: 0; padding: 0; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.heir-kicker { display: block; font-size: 15px; font-weight: 600; color: #7A5230; margin: 8px 0 12px; }
.heir-demo { position: relative; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-2); overflow: hidden; }
.heir-demo::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--brand-grad); }
.heir-msg .ico-tile { width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--royal); display: grid; place-items: center; flex: none; }

/* ---------- Family pillars as columns ---------- */
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); }
.cols3 > div { border-top: 2px solid var(--navy); padding-top: 24px; }
.cols3 h3 { font-size: 30px; margin-bottom: 12px; }
.cols3 p { color: var(--text-2); }
.cols3 .soon { display: block; margin-top: 16px; }
.fam-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-9); align-items: center; }
.tanda-card { border-radius: 24px; padding: 32px; border: 1px solid var(--line); box-shadow: var(--sh-2); background: #fff; }
.tanda-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 32px; }
.tanda-head h3 { font-size: 28px; }
.tanda-total { text-align: right; }
.tanda-total strong { display: block; font-family: var(--f-num); font-size: 30px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.gbar-legend { display: flex; gap: 16px; margin: 16px 0; font-size: 13px; color: var(--text-2); }
.gbar-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.lg-1 { background: #CFE6F8; } .lg-2 { background: var(--sky); } .lg-3 { background: var(--royal); }
.tanda-foot { font-size: 15px; font-weight: 600; padding: 12px 0; border-top: 1px solid var(--line); margin-bottom: 8px; }
.tanda-foot .ico { display: none; }

/* ---------- Empresas ---------- */
.crew-card { border-radius: 24px; padding: 32px; border: 1px solid var(--line); box-shadow: var(--sh-2); background: #fff; }
.crew-stats { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.crew-stats strong { display: block; font-family: var(--f-num); font-weight: 700; font-size: 30px; letter-spacing: -0.03em; line-height: 1.1; }
.crew-stats span { font-size: 13px; color: var(--text-3); }
.crew-arrow { width: 18px; height: 18px; color: var(--text-3); }
.crew-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); margin: 8px 0 12px; }
.promise { margin-top: 32px; padding: 24px 0 0; border-top: 2px solid var(--navy); }
.promise strong { display: block; font-family: var(--f-head); font-weight: 700; font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; }
.promise p { color: var(--text-2); margin-top: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tags span { font-size: 14px; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text-2); }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 40px; }
.form-card--main { box-shadow: var(--sh-2); position: relative; overflow: hidden; }
.form-card form { display: flex; flex-direction: column; gap: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.fieldset legend { margin-bottom: 8px; padding: 0; }
.form-msg { font-size: 14px; color: #B23A30; }
.form-msg:empty { display: none; }
.form-success { text-align: center; padding: 32px 0; display: flex; flex-direction: column; align-items: center; gap: 12px; position: relative; }
.form-success[hidden] { display: none; }
.success-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(46, 125, 79,.12); color: var(--gain); }
.success-ico .ico { width: 30px; height: 30px; }
.confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.social-row { display: flex; gap: 8px; }
.social-row a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--navy); transition: all var(--dur-fast); }
.social-row a:hover { border-color: var(--royal); color: var(--royal); }
.social-row .ico { width: 19px; height: 19px; }

/* ---------- ITIN page ---------- */
.ssn-h1 { font-size: clamp(52px, 8vw, 112px); max-width: 9ch; }
.itin-card { border-radius: 24px; padding: 28px; border: 1px solid var(--line); box-shadow: var(--sh-3); background: #fff; }
.itin-card-top { display: flex; gap: 12px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.itin-card-top strong { display: block; font-size: 17px; }
.itin-card-top small { color: var(--text-3); font-size: 13px; }
.itin-card-top .soon { margin-left: auto; font-size: 12px; }
.itin-track { margin: 20px 0 16px; }
.itin-track li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding-bottom: 22px; position: relative; }
.itin-track li:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.itin-track li.done:not(:last-child)::before { background: var(--royal); }
.it-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; background: #fff; }
.it-dot .ico { width: 15px; height: 15px; }
.done .it-dot { background: var(--royal); border-color: var(--royal); color: #fff; }
.now .it-dot { border-color: var(--royal); }
.now .it-dot i { width: 10px; height: 10px; border-radius: 50%; background: var(--royal); animation: ping 2s var(--ease-out) infinite; }
.itin-track b { display: block; font-size: 15px; }
.itin-track small { font-size: 13px; color: var(--text-3); }
.start-now { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; padding: 48px 0; border-top: 2px solid var(--navy); border-bottom: 1px solid var(--line-strong); }
.start-now h2 { max-width: 22ch; }
.start-now .t-lead { margin-top: 12px; max-width: 52ch; }

/* ---------- Coming soon ---------- */
.roadmap { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.roadmap li { padding: 28px 24px 0 0; position: relative; }
.roadmap li::before { content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 2px solid var(--line-strong); }
.roadmap li.is-now::before { background: var(--royal); border-color: var(--royal); box-shadow: 0 0 0 6px rgba(107, 66, 38,.15); }
.roadmap .phase { font-size: 14px; font-weight: 600; color: var(--text-3); }
.roadmap .is-now .phase { color: var(--royal); }
.roadmap h3 { font-size: 26px; margin: 8px 0 8px; }
.roadmap p { font-size: 15px; color: var(--text-2); }
.loteria { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s-8); align-items: center; padding: 56px; border-radius: 24px; background: #F7EEE2; border: 1px solid rgba(185, 130, 78,.55); }
.loteria h2 { max-width: 12ch; }
.loteria .t-lead { margin-top: 16px; }
.loteria-tag { font-family: var(--f-head); font-weight: 700; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; letter-spacing: -0.02em; border-left: 3px solid var(--gold); padding-left: 24px; }
.filters { display: flex; gap: 28px; border-bottom: 1px solid var(--line-strong); margin-bottom: 8px; }
.filters button { border: 0; background: none; padding: 14px 0; font-size: 16px; font-weight: 600; color: var(--text-3); cursor: pointer; position: relative; }
.filters button[aria-pressed="true"] { color: var(--navy); }
.filters button[aria-pressed="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--royal); }
.filters button:hover { color: var(--navy); }
.findex li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) 130px; gap: 24px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); }
.findex h3 { font-size: 24px; letter-spacing: -0.015em; }
.findex p { color: var(--text-2); }
.findex .st { font-size: 14px; font-weight: 600; text-align: right; }
.findex .st--launch { color: #2E7D4F; }
.findex .st--soon { color: var(--royal); }
.findex li[hidden] { display: none; }

/* ---------- About ---------- */
.founder { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--s-9); align-items: center; }
.founder blockquote { margin: 0; font-family: var(--f-head); font-weight: 700; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.25; letter-spacing: -0.015em; }
.founder figcaption, .founder .sig { margin-top: 24px; font-size: 15px; color: var(--text-2); }
.founder .sig strong { display: block; color: var(--navy); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--s-9); align-items: start; }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item:first-child { border-top: 1px solid var(--line-strong); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; border: 0; background: none; text-align: left; font-family: var(--f-head); font-size: 22px; font-weight: 700; letter-spacing: -0.015em; color: var(--navy); cursor: pointer; }
.faq-q:hover { color: var(--royal); }
.faq-q .ico { display: none; }
.faq-q::after { content: "+"; font-family: var(--f-body); font-weight: 300; font-size: 30px; line-height: 1; color: var(--text-3); transition: transform var(--dur) var(--ease-out); }
.faq-q[aria-expanded="true"]::after { transform: rotate(45deg); color: var(--royal); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur) var(--ease-out); }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 0 26px; color: var(--text-2); max-width: 62ch; font-size: 17px; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }

/* ---------- El Café ---------- */
.cafe-band { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s-8); align-items: center; }
.cafe-copy h2 { margin-bottom: 28px; max-width: 16ch; }
.cafe-copy form { max-width: 480px; }
.cafe-wa { margin-top: 16px; }
.cafe-ok { flex-direction: row; justify-content: flex-start; padding: 12px 0; font-weight: 600; color: #2E7D4F; }
.cafe-ok .ico { width: 20px; height: 20px; }
.issue { padding: 28px; border-radius: 6px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-2); font-size: 15px; }
.issue-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 14px; border-bottom: 2px solid var(--navy); }
.issue-head strong { font-family: var(--f-head); font-weight: 700; font-size: 26px; }
.issue-row { padding: 14px 0; border-bottom: 1px solid var(--line); }
.issue-row p { margin-top: 2px; }
.issue-fx { display: flex; justify-content: space-between; align-items: center; border-bottom: 0; }
.issue-fx strong { font-size: 18px; }

/* ---------- Join page ---------- */
.join-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-9); align-items: start; }
.join-grid h1 { max-width: 10ch; }
.join-grid .t-lead { margin-top: 20px; max-width: 34ch; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: #fff; padding: var(--s-9) 0; position: relative; }
.cta-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.cta-band h2 { font-size: clamp(44px, 6vw, 80px); max-width: 12ch; }
.cta-band .t-lead { color: var(--on-navy-2); margin-top: 20px; max-width: 42ch; }
.cta-ssn { margin-top: 12px; font-size: 16px; font-weight: 600; color: var(--sky); }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.cta-micro { font-size: 14px; color: var(--on-navy-2); }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #fff; padding: var(--s-8) 0 var(--s-7); border-top: 1px solid var(--line-navy); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 32px; padding-bottom: 48px; border-bottom: 1px solid var(--line-navy); }
.foot-brand .logo-word { font-size: 40px; }
.foot-line { font-family: var(--f-head); font-weight: 700; font-size: 22px; color: var(--on-navy-2); margin: 16px 0 24px; }
.footer .social-row a { border-color: var(--line-navy); color: #fff; }
.footer .social-row a:hover { border-color: var(--sky); color: var(--sky); }
.foot-col { display: flex; flex-direction: column; gap: 12px; }
.foot-col h2 { font-family: var(--f-body); font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--on-navy-2); margin-bottom: 4px; }
.foot-col a { color: #fff; font-size: 15px; }
.legal { font-size: 13px; line-height: 1.6; color: var(--on-navy-2); max-width: 860px; margin: 32px 0; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; font-size: 13px; color: var(--on-navy-2); }

/* Bilingual long-form blocks (privacy page) */
html[lang="es"] [data-only="en"], html[lang="en"] [data-only="es"] { display: none; }
.doc { max-width: 720px; }
.doc h2 { font-size: var(--t-h3); margin: 40px 0 12px; }
.doc p, .doc li { color: var(--text-2); margin-bottom: 12px; }
.doc ul { list-style: disc; padding-left: 20px; }
.draft { background: var(--ice); border-radius: 10px; padding: 16px; font-size: 14px; color: var(--navy) !important; }

/* Sticky join (mobile) */
.sticky-join { display: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1279px) {
  .nav-links { display: none; }
  .nav-burger { display: grid; }
}
@media (max-width: 1023px) {
  .hero-home .hero-grid, .page-hero-grid, .split, .split--even, .preview, .learn-grid, .mani-grid, .tool, .heir-section .tool,
  .fam-grid, .founder, .faq-grid, .cafe-band, .join-grid, .loteria, .cta-inner { grid-template-columns: minmax(0, 1fr); }
  .tool--flip .tool-copy { order: 0; }
  .roadmap { grid-template-columns: minmax(0, 1fr); border-top: 0; border-left: 1px solid var(--line-strong); margin-left: 6px; }
  .roadmap li { padding: 0 0 32px 28px; }
  .roadmap li::before { top: 6px; left: -6px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hero-media { max-width: 520px; }
  .page-hero-media { max-width: 520px; }
}
@media (max-width: 767px) {
  :root { --bar-h: 36px; }
  .ssn-bar { font-size: 14px; }
  .ssn-bar-sub { display: none; }
  .nav-cta { display: none; }
  .hero-home, .page-hero { padding: var(--s-6) 0 var(--s-8); }
  .hero-form-row { flex-direction: column; }
  .hero-form-row .btn { width: 100%; }
  .hero-media { padding-left: 0; margin-top: 8px; }
  .hero-media .hero-phone { scale: .52; bottom: -24px; left: -8px; }
  .hero-media .note-sample { position: static; margin-top: 12px; }
  .row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; padding: 22px 0; }
  .row h3 { grid-column: 1; }
  .row p { grid-column: 1; grid-row: 2; font-size: 16px; }
  .row-go { grid-column: 2; grid-row: 1 / span 2; width: 48px; height: 48px; }
  .band-royal { padding: var(--s-8) 0; }
  .band-steps, .numlist--cols, .cols3 { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .band-steps li { padding-bottom: 24px; }
  .band-steps { margin-top: var(--s-7); }
  .cols3 > div { padding-bottom: 32px; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat, .stat + .stat { padding: 24px 0; border-left: 0; }
  .stat + .stat { border-top: 1px solid var(--line); }
  .vs { grid-template-columns: 1fr; }
  .tool { padding: var(--s-7) 0; gap: var(--s-6); }
  .tool-demo { padding: 20px 16px; min-height: 0; }
  .form-card { padding: 24px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .findex li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .findex .st { text-align: left; }
  .filters { gap: 20px; overflow-x: auto; }
  .loteria { padding: 32px 24px; }
  .start-now { grid-template-columns: minmax(0, 1fr); }
  .lesson-path { padding: 24px 16px; }
  .lesson-path::before { left: 42px; }
  .lesson:nth-child(even) { padding-left: 0; }
  .tanda-card, .crew-card { padding: 24px 20px; }
  .crew-stats strong { font-size: 24px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .footer { padding-bottom: 112px; }
  .share-row .btn { width: 100%; }
  .faq-q { font-size: 21px; }

  /* App preview on mobile: the site becomes the app (no phone frame) */
  .preview-tabs { flex-direction: row; border-top: 0; border-bottom: 1px solid var(--line-strong); position: sticky; top: calc(var(--nav-h) + 4px); z-index: 5; background: var(--ice); overflow-x: auto; }
  .ptab { padding: 12px 14px; border-bottom: 0; flex: none; width: auto; }
  .ptab::before { left: 10px; right: 10px; top: auto; bottom: 0; width: auto; height: 3px; }
  .ptab strong { font-size: 20px; }
  .ptab small { display: none; }
  .device--preview { width: 100%; height: auto; padding: 0; background: transparent; box-shadow: none; border-radius: 0; }
  .device--preview .device-notch { display: none; }
  .device--preview .device-screen { border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--sh-2); min-height: 600px; touch-action: pan-y; }
  .device--preview .app { font-size: 15px; padding: 20px; }
  .device--preview .sbar { display: none; }

  .sticky-join { display: inline-flex; position: fixed; z-index: 90; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); box-shadow: var(--sh-3); transition: transform var(--dur) var(--ease-out), opacity var(--dur); }
  .sticky-join.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
}
@media (max-width: 380px) {
  .ssn-bar-link span { display: none; }
  .lang-toggle button { padding: 0 6px; }
  .crew-stats { flex-wrap: wrap; }
  .crew-arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header { transition: none; }
  .float-wrap { transform: none !important; }
  .gbar-bars i, .crew-bars .cb i { transform: scaleY(var(--h)) !important; }
  .heir-lines path { stroke-dashoffset: 0 !important; }
  .hn, .heir-msg, .msg, .findex li { opacity: 1 !important; transform: none !important; }
}

/* ---------- Photo art direction (focal points per image) ---------- */
.photo img[src*="home."] { object-position: 50% 40%; }
.photo img[src*="ti."] { object-position: 62% 50%; }
.photo img[src*="familia."] { object-position: 50% 38%; }
.photo img[src*="empresas."] { object-position: 64% 50%; }
.photo img[src*="nosotros."] { object-position: 53% 50%; }
.hero-home .photo--hero { aspect-ratio: 1 / 1; }
.hero-home .hero-media { margin-bottom: 150px; }
.hero-home .hero-media .hero-phone { scale: .6; bottom: -190px; }
.hero-home .hero-media .note-sample { bottom: -40px; }
@media (max-width: 767px) {
  .hero-home .hero-media { margin-bottom: 72px; }
  .hero-home .hero-media .hero-phone { scale: .44; bottom: -80px; left: -4px; }
  .hero-home .hero-media .note-sample { display: flex; justify-content: flex-end; }
}

/* Founder block: until the real photo exists, show the quote full width instead of an empty frame */
.founder:has(> .photo--empty) { grid-template-columns: minmax(0, 1fr); }
.founder > .photo--empty { display: none; }
.founder:has(> .photo--empty) blockquote { max-width: 30ch; }
@media (max-width: 767px) { .hero-home .hero-media { margin-bottom: 48px; } }
@media (max-width: 767px) {
  .btn-row .btn { width: 100%; max-width: 100%; white-space: normal; height: auto; min-height: var(--h); padding-top: 12px; padding-bottom: 12px; text-align: center; line-height: 1.25; }
}

/* ITIN service band: four steps */
.band-steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* Café: photo with the newsletter card overlapping */
.cafe-media { position: relative; padding-bottom: 40px; }
.photo--cafe { aspect-ratio: 4 / 3; }
.cafe-media .issue { position: absolute; left: -48px; bottom: 0; width: min(340px, 80%); }
.photo img[src*="cafe."] { object-position: 60% 50%; }
/* Plan Heredero photo under the list */
.photo--heir { aspect-ratio: 3 / 2; margin-top: 28px; }
.photo img[src*="heredero."] { object-position: 50% 35%; }
.photo img[src*="itin."] { object-position: 40% 30%; }
@media (max-width: 1023px) {
  .band-steps--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cafe-media .issue { left: 16px; }
}
@media (max-width: 767px) {
  .band-steps--4 { grid-template-columns: minmax(0, 1fr); }
  .cafe-media { padding-bottom: 0; }
  .cafe-media .issue { position: relative; left: auto; bottom: auto; width: auto; margin: -48px 12px 0; }
}
/* Café v2: wide photo on top, card overlapping only its bottom edge */
.cafe-media { padding-bottom: 0; }
.photo--cafe { aspect-ratio: 3 / 2; }
.cafe-media .issue { position: relative; left: auto; bottom: auto; width: 82%; margin: -84px 0 0 auto; }
@media (max-width: 767px) { .cafe-media .issue { width: auto; margin: -48px 12px 0; } }
/* "A real person helps you" callout (ITIN service) */
.human { display: flex; gap: 16px; align-items: flex-start; margin-top: 28px; padding: 20px; border-radius: 16px; background: var(--ice); }
.human-dot { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--royal); color: #fff; display: grid; place-items: center; }
.human-dot .ico { width: 20px; height: 20px; }
.human strong { display: block; font-size: 18px; }
.human p { color: var(--text-2); margin-top: 2px; }
/* ITIN welcome bonus */
.bonus { margin-top: var(--s-8); padding: 24px 28px; border-radius: 20px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.3); max-width: 760px; }
.bonus-tag { display: inline-block; font-size: 13px; font-weight: 700; color: var(--navy); background: var(--gold); padding: 4px 12px; border-radius: 999px; }
.bonus-t { font-family: var(--f-head); font-weight: 700; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.25; letter-spacing: -0.015em; margin: 14px 0 10px; color: #fff; }
.bonus-fine { font-size: 13px; color: #fff; }
.bonus--light { margin-top: 20px; background: #F7EEE2; border-color: rgba(185, 130, 78,.6); padding: 20px; }
.bonus--light .bonus-t { color: var(--navy); font-size: 22px; }
.bonus--light .bonus-fine { color: var(--text-2); }
/* Referral program */
.ref-first { margin-top: 20px; font-weight: 600; color: var(--royal); }
.ref-visual { display: flex; flex-direction: column; gap: 16px; }
.ref-msg { align-self: flex-end; max-width: 380px; background: var(--royal); color: #fff; padding: 16px 18px; border-radius: 20px 20px 4px 20px; box-shadow: var(--sh-2); }
.ref-from { display: block; font-size: 12px; font-weight: 700; opacity: .85; margin-bottom: 4px; }
.ref-msg p { font-size: 15px; line-height: 1.45; }
.ref-link { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 700; background: rgba(255,255,255,.18); padding: 4px 10px; border-radius: 8px; }
.ref-family { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; box-shadow: var(--sh-2); max-width: 420px; }
.rf-head { display: flex; justify-content: space-between; align-items: baseline; }
.rf-head strong { font-size: 17px; }
.rf-head span { font-weight: 700; color: var(--royal); }
.rf-bar { height: 8px; border-radius: 8px; background: var(--ice); margin: 12px 0 8px; overflow: hidden; }
.rf-bar i { display: block; height: 100%; border-radius: 8px; background: var(--sky); }
.ref-family ul li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.ref-family ul li:last-child { border-bottom: 0; }
.rf-av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--ice); color: var(--text-2); font-weight: 700; font-size: 13px; flex: none; }
.ref-family li.ok .rf-av { background: var(--royal); color: #fff; }
.ref-family li em { margin-left: auto; font-style: normal; font-size: 13px; color: var(--text-3); }
.ref-family li.ok em { color: #2E7D4F; font-weight: 600; }
.rf-goal { margin-top: 8px; font-size: 14px; font-weight: 700; color: #7A5230; background: #F5E9DA; padding: 8px 12px; border-radius: 10px; }
@media (max-width: 767px) { .ref-msg { align-self: stretch; max-width: none; } .ref-family { max-width: none; } }

/* ---------- Live classes (clases) ---------- */
.live { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-8); align-items: start; }
.live-head .t-lead { margin: 20px 0 28px; max-width: 38ch; }
.live-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.live-list li { display: grid; grid-template-columns: 96px 88px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line-strong); }
.live-day { font-weight: 600; color: var(--navy); }
.live-time { color: var(--royal); font-weight: 600; }
.live-list strong { font-family: var(--f-head); font-weight: 500; font-size: 20px; line-height: 1.3; color: var(--navy); }
.live-topics-t { margin: 36px 0 14px; font-size: 15px; font-weight: 600; color: var(--text-2); }
.live-topics { columns: 2; column-gap: 32px; margin: 0 0 20px; padding-left: 22px; color: var(--text-2); }
.live-topics li { padding: 4px 0; break-inside: avoid; }

/* ---------- Tax preparer partners (empresas) ---------- */
.band-royal--tight { padding: var(--s-9) 0; }
.prep { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s-8); align-items: center; }
.prep-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.25); }
.prep-list li { display: flex; gap: 12px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.25); font-size: 18px; }
.prep-list .ico { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--sky); }

@media (max-width: 900px) {
  .live, .prep { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .live-list li { grid-template-columns: 84px minmax(0, 1fr); }
  .live-list strong { grid-column: 1 / -1; font-size: 18px; }
  .live-topics { columns: 1; }
  .live-head .btn { width: 100%; justify-content: center; white-space: normal; text-align: center; }
}

/* =========================================================
   PHASE 1 (Dec 2026): cocoa/cream brand, services today,
   booking profile, referrals, tools.
   ========================================================= */
/* Header: launch banner + cream nav + logo pack */
.launch-bar { position: relative; background: var(--royal); color: var(--cream); padding-right: 44px; }
.launch-bar .ssn-bar-sub { color: rgba(251, 246, 239, .82); }
.launch-bar .ssn-bar-link { color: var(--cream); text-decoration: none; }
.launch-bar .ssn-bar-link:hover .ico { transform: translateX(3px); }
.bar-x { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; background: none; color: var(--cream); cursor: pointer; display: grid; place-items: center; border-radius: 8px; opacity: .8; }
.bar-x:hover { opacity: 1; background: rgba(251, 246, 239, .12); }
.bar-x .ico { width: 16px; height: 16px; }
.no-bar { --bar-h: 0px; }
.no-bar .launch-bar { display: none; }
.nav, .mobile-menu { background: var(--cream); }
.logo-img { height: 40px; width: auto; display: block; margin: 0 -4px; }
.logo--light { display: inline-flex; align-items: center; gap: 10px; color: var(--cream); }
.logo-mark-img { width: 44px; height: 44px; margin: -6px -2px; }
.footer .foot-brand .logo-word { font-weight: 800; letter-spacing: -0.04em; }
.foot-contact { margin: 0 0 24px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--on-navy-2); }
.foot-contact a { color: var(--cream); }
.footer .social-row a { color: var(--cream); border-color: var(--line-navy); }
.footer .social-row a:hover { border-color: var(--sky); color: var(--sky); }
.footer .legal + .legal { margin-top: 8px; }
.hero-soon { margin-bottom: 14px; }

/* Buttons: WhatsApp green */
.btn--wa { background: var(--wa); color: #fff; border-color: var(--wa); }
.btn--wa:hover { background: #18753F; border-color: #18753F; color: #fff; }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 95; display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 20px 0 16px; border-radius: 999px; background: var(--wa); color: #fff; font-weight: 700; font-size: 15px; box-shadow: 0 10px 30px rgba(31, 138, 76, .35); text-decoration: none !important; transition: transform var(--dur-fast) var(--ease-out); }
.wa-float:hover { transform: translateY(-2px); color: #fff; }
.wa-float svg { width: 22px; height: 22px; }

/* Hero: buttons + "coming soon" pill on the phone */
.hero-btns { margin-top: 28px; }
.soon-pill { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--sky); color: var(--navy); font-size: 13px; font-weight: 700; white-space: nowrap; box-shadow: var(--sh-2); }
.soon-pill--phone { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); z-index: 5; scale: 1.3; }

/* Service cards */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.svc-card { display: flex; flex-direction: column; gap: 8px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); }
.svc-card--best { border: 2px solid var(--royal); box-shadow: var(--sh-2); }
.svc-top { display: flex; gap: 6px; min-height: 24px; }
.svc-card h3 { font-size: 20px; }
.svc-price { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; color: var(--royal); line-height: 1.1; }
.svc-price small { font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--text-3); }
.svc-ask { font-size: 17px; font-weight: 700; letter-spacing: 0; color: var(--text-2); }
.svc-d { color: var(--text-2); font-size: 15px; flex: 1; }
.svc-card .btn { margin-top: 10px; }
.svc-foot { margin-top: 24px; }
.svc-clear { font-size: 17px; }
.svc-clear span { color: var(--text-2); }
.booking-note:empty { display: none; }

/* Free 15-minute review */
.review-box { margin-top: 40px; display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 32px; border-radius: 20px; background: var(--ice); }
.section--ice .review-box { background: #fff; border: 1px solid var(--line); }
.review-box h3 { margin: 12px 0 14px; max-width: 26ch; }
.review-list { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.review-list li { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.review-list .ico { width: 18px; height: 18px; color: var(--gain); }
.review-act { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: none; }
.review-act small { color: var(--text-3); }

/* Free tools (home cards) */
.tool-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tool-card { display: flex; flex-direction: column; gap: 8px; padding: 28px; border-radius: var(--r-card); background: #fff; border: 1px solid var(--line); color: var(--text); text-decoration: none !important; transition: border-color var(--dur-fast), transform var(--dur-fast) var(--ease-out); }
.tool-card:hover { border-color: var(--royal); transform: translateY(-2px); }
.tool-card > .ico { width: 30px; height: 30px; color: var(--royal); }
.tool-card p { color: var(--text-2); }
.tool-go { margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--link); }
.tool-go .ico { width: 18px; height: 18px; }

/* Referral band */
.ref-band { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.ref-band .t-lead { margin-top: 12px; max-width: 46ch; }
.ref-band--card { margin-top: 40px; padding: 24px 28px; border-radius: var(--r-card); background: var(--ice); font-weight: 600; }

/* App section */
.app-title { margin-top: 14px; }
.counters { display: flex; flex-wrap: wrap; gap: 16px 48px; margin-bottom: 40px; }
.counters b { display: block; font-size: 44px; font-weight: 800; letter-spacing: -0.03em; color: var(--royal); line-height: 1; }
.counters span { color: var(--text-2); font-weight: 600; }
.app-why { margin-top: 48px; }
.app-join { margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 28px; border-radius: var(--r-card); background: #fff; border: 1px solid var(--line); }
.app-join p { font-size: 19px; font-weight: 700; }

/* Trust */
.trust-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px 32px; }
.trust-list li { display: flex; gap: 14px; }
.trust-list .ico { width: 26px; height: 26px; color: var(--royal); margin-top: 2px; }
.trust-list h3 { font-size: 18px; margin-bottom: 4px; }
.trust-list p { color: var(--text-2); font-size: 15px; }
.reviews-ph { margin-top: 48px; padding: 28px; border-radius: var(--r-card); border: 1.5px dashed var(--line-strong); }
.reviews-ph p { color: var(--text-2); margin-top: 6px; }

/* Short page heroes + forms */
.page-hero--short { padding: var(--s-7) 0 var(--s-8); }
.page-hero--short .t-lead { margin-top: 18px; max-width: 46ch; }
.field--full { grid-column: 1 / -1; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field .chips { margin-top: 4px; }
.field.has-error .chips .chip span { border-color: var(--loss); }
.textarea { height: auto; padding: 12px 16px; resize: vertical; line-height: 1.5; }
.home-rules { padding: 12px 16px; border-radius: 10px; background: var(--ice); font-size: 14px; color: var(--text); font-weight: 600; }
.promo-note { margin-top: 18px; display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--sky); color: var(--navy); font-weight: 700; font-size: 14px; }
.bk-points { margin-top: 24px; }
.bk-points li { font-size: 15px; color: var(--text-2); }
.bk-free, .bk-privacy { margin-top: 0; }

/* Thank-you */
.thanks { max-width: 720px; }
.thanks h1 { margin-top: 20px; }
.gr-member { margin-top: 10px; font-size: 22px; font-weight: 800; color: var(--royal); }
.thanks .t-lead { margin-top: 12px; }
.gr-next { margin-top: 40px; }
.gr-next h2 { margin-bottom: 12px; }

/* Referral page */
.tiers { margin-top: 36px; }
.tier-bar { position: relative; height: 10px; border-radius: 999px; background: var(--ice); margin: 16px 0 18px; }
.tier-bar i { position: absolute; inset: 0 auto 0 0; width: 100%; border-radius: 999px; background: var(--sky); }
.tier-bar b { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--royal); border: 3px solid var(--cream); }
.tier-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tier-list li { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--text-2); }
.tier-list strong { color: var(--text); font-size: 16px; }
.month-ref { margin-top: 32px; padding: 18px 20px; border-radius: var(--r-card); background: var(--ice); }
.month-ref p { color: var(--text-2); margin-top: 4px; }
.ref-out .ref-link { margin: 14px 0 4px; padding: 14px 16px; border-radius: 10px; background: var(--ice); font-weight: 700; word-break: break-all; }

/* Policies */
.prose { max-width: 760px; }
.prose h2 { margin: 36px 0 6px; }
.prose p { color: var(--text-2); }
.draft-tag { display: inline-block; margin-bottom: 16px; padding: 6px 12px; border-radius: 999px; background: rgba(185, 130, 78, .18); color: #7A5230; font-size: 13px; font-weight: 700; }

/* Tools page */
.tool-wrap { max-width: 760px; }
.tool-box { padding: 36px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1); }
.tool-box h2 { margin-bottom: 20px; }
.tool-row { display: flex; gap: 10px; }
.tool-row .select { flex: 1; }
.it-result { margin-top: 24px; padding: 20px; border-radius: 14px; background: var(--ice); }
.it-status { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; font-weight: 800; font-size: 14px; }
.it-status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; margin-right: 8px; }
.it-status--ok { background: rgba(46, 125, 79, .14); color: var(--gain); }
.it-status--warn { background: rgba(185, 130, 78, .2); color: #7A5230; }
.it-status--bad { background: rgba(178, 58, 48, .12); color: var(--loss); }
.it-status--info { background: var(--sky); color: var(--navy); }
.it-result p { margin-top: 10px; font-size: 17px; }
.it-result .btn-row { margin-top: 18px; }
.doc-print { margin-top: 20px; }
.doc-for { font-size: 15px; color: var(--text-2); }
.doc-list { margin-top: 10px; display: flex; flex-direction: column; }
.doc-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.dl-box { flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 5px; border: 2px solid var(--line-strong); }
.tool-cta { margin-top: 32px; }
@media print {
  body.print-docs * { visibility: hidden; }
  body.print-docs #docPrint, body.print-docs #docPrint * { visibility: visible; }
  body.print-docs #docPrint { position: absolute; left: 0; top: 0; width: 100%; }
}

@media (max-width: 900px) {
  .review-box, .ref-band, .app-join { flex-direction: column; align-items: flex-start; }
  .review-act { align-items: flex-start; }
  .tool-cards, .tier-list { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .wa-float { bottom: calc(84px + env(safe-area-inset-bottom)); height: 48px; padding: 0 16px 0 14px; }
  .wa-float span { display: none; }
  .wa-float { width: 52px; height: 52px; padding: 0; justify-content: center; }
  .logo-img { height: 34px; }
  .tool-box { padding: 24px; }
  .tool-row { flex-direction: column; }
  .review-box { padding: 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-btns .btn { width: 100%; }
  .soon-pill--phone { scale: 1.2; }
}
.bar-short { display: none; }
.svc-top:empty { display: none; }
@media (max-width: 767px) {
  .launch-bar { font-size: 14px; }
  .launch-bar .bar-long, .launch-bar .ssn-bar-sub { display: none; }
  .launch-bar .bar-short { display: inline; }
  .launch-bar .ssn-bar-link { margin-left: 2px; }
}

/* ---------- ITIN a distancia (mail-in) ---------- */
.mail-box { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--cream); }
.upsell { padding: 14px 16px; border-radius: 12px; background: var(--sky); color: var(--navy); }
.upsell strong { display: block; font-size: 15px; }
.upsell p { font-size: 14px; margin-top: 4px; }
.upsell-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.upsell .btn--secondary { background: #fff; border-color: #fff; }
.upsell--big { padding: 28px; border-radius: 20px; display: flex; flex-direction: column; gap: 14px; }
.upsell--big strong { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.upsell--big .badge { align-self: flex-start; background: #fff; }
.review-list--col { flex-direction: column; gap: 8px; }
.ship-opts { display: grid; gap: 8px; margin-top: 6px; }
.ship-opt { position: relative; display: block; cursor: pointer; }
.ship-opt input { position: absolute; opacity: 0; inset: 0; }
.ship-opt > span { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: #fff; transition: border-color var(--dur-fast), background var(--dur-fast); }
.ship-opt b { font-size: 15px; }
.ship-opt small { font-size: 13px; color: var(--text-2); }
.ship-opt input:checked + span { border-color: var(--royal); background: var(--ice); }
.ship-opt input:focus-visible + span { outline: 2px solid var(--royal); outline-offset: 2px; }
.field.has-error .ship-opt > span { border-color: var(--loss); }
.mail-addr { gap: 12px; }
.svc-more { font-size: 14px; font-weight: 700; text-align: center; }
.mail-steps { margin-top: 8px; }
.mail-faq details { border-bottom: 1px solid var(--line-strong); padding: 16px 0; }
.mail-faq summary { cursor: pointer; font-weight: 800; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.mail-faq summary::after { content: "+"; font-weight: 800; color: var(--royal); }
.mail-faq details[open] summary::after { content: "−"; }
.mail-faq p { margin-top: 10px; color: var(--text-2); }
@media (max-width: 767px) { .mail-box { padding: 14px; } .upsell--big { padding: 20px; } }

/* ---------- Contact handoff + urgency ---------- */
.urgency { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--royal); }
.urgency::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }
.urgency[hidden] { display: none; }
p.urgency { display: flex; }
.gr-contact { margin-top: 20px; }
#grWaPhone .btn { width: 100%; }
#grWaPhone .fine { margin-top: 8px; }
.gr-desk { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 24px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.gr-desk p { color: var(--text-2); font-size: 15px; margin-top: 4px; }
.gr-desk .text-link { margin-top: 12px; }
.gr-qr { width: 150px; height: 150px; flex: none; padding: 6px; background: #fff; border-radius: 10px; border: 1px solid var(--line); }
.gr-qr svg { width: 100%; height: 100%; }

/* ---------- ZIP / served area ---------- */
.zip-note { padding: 14px 16px; border-radius: 12px; background: var(--ice); border: 1.5px solid var(--line-strong); }
.zip-note strong { display: block; font-size: 15px; }
.zip-note p { font-size: 14px; color: var(--text-2); margin: 4px 0 10px; }
.zip-msg { margin: 8px 0 0 !important; font-weight: 700; color: var(--text) !important; }
.zip-msg:empty { display: none; }
.chip.is-off span { opacity: .38; cursor: not-allowed; background: var(--ice); }
.chip.is-off input { cursor: not-allowed; }
.chip.is-off:hover span { border-color: var(--line-strong); }
.select option:disabled { color: #B4A493; }

/* ---------- Referral box + places ---------- */
.refbox { margin-top: 32px; padding: 24px; border-radius: 18px; background: var(--ice); display: flex; flex-direction: column; gap: 10px; text-align: left; }
.refbox .kicker { margin-bottom: 0; }
.refbox-t { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; }
.refbox-d { color: var(--text-2); font-size: 15px; }
.refbox .ref-link { margin: 4px 0 0; padding: 12px 14px; border-radius: 10px; background: #fff; font-weight: 700; word-break: break-all; }
.refbox .btn-row { margin-top: 8px; }
.refbox > .btn { align-self: flex-start; }
.refbox-tiers { font-size: 13px; font-weight: 600; color: var(--text-2); }
.refbox .fine { margin-top: 2px; font-size: 12px; }
.wl-place { margin-top: 10px; font-size: 18px; font-weight: 800; color: var(--royal); }
.ref-places { margin-top: 14px; font-weight: 700; }
.ref-familia { margin-top: 18px; font-size: 15px; font-weight: 600; color: var(--text-2); }

/* ---------- Printable referral cards ---------- */
.card-sheet { display: grid; grid-template-columns: repeat(2, 3.5in); gap: 0; justify-content: center; }
.bcard { width: 3.5in; height: 2in; padding: 0.16in 0.18in; border: 1px dashed var(--line-strong); background: #fff; display: grid; grid-template-columns: 1fr 1.02in; gap: 0.12in; overflow: hidden; color: var(--navy); }
.bcard-l { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bcard-logo { height: 0.28in; width: auto; align-self: flex-start; margin-bottom: 2px; }
.bcard-l strong { font-size: 12.5px; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
.bcard-l span { font-size: 9px; color: var(--text-2); }
.bcard-code { margin-top: auto; font-size: 9.5px !important; font-weight: 700; color: var(--navy) !important; display: flex; align-items: flex-end; gap: 4px; }
.bcard-code i { flex: 1; border-bottom: 1px solid var(--navy); height: 12px; }
.bcard-r { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.bcard-qr { width: 0.95in; height: 0.95in; }
.bcard-qr svg { width: 100%; height: 100%; }
.bcard-r small { font-size: 7.5px; font-weight: 700; color: var(--text-2); text-align: center; line-height: 1.2; }
@media (max-width: 767px) { .card-sheet { grid-template-columns: 3.5in; } }
@media print {
  @page { size: letter; margin: 0.5in 0.75in; }
  body[data-page="tarjeta"] { background: #fff; }
  body[data-page="tarjeta"] .site-header, body[data-page="tarjeta"] .footer, body[data-page="tarjeta"] .wa-float,
  body[data-page="tarjeta"] .sticky-join, body[data-page="tarjeta"] .no-print, body[data-page="tarjeta"] .intro, body[data-page="tarjeta"] .skip-link { display: none !important; }
  body[data-page="tarjeta"] main { padding-top: 0; }
  body[data-page="tarjeta"] .card-sheet-wrap { padding: 0; }
  body[data-page="tarjeta"] .container { padding: 0; max-width: none; }
  body[data-page="tarjeta"] .card-sheet { grid-template-columns: repeat(2, 3.5in); }
  body[data-page="tarjeta"] .bcard { break-inside: avoid; }
}

/* ---------- App waitlist nudges ---------- */
.appnudge { margin-top: 28px; display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 16px; background: #fff; border: 1.5px solid var(--sky); }
.appnudge .badge { flex: none; }
.appnudge-c { flex: 1; min-width: 0; }
.appnudge strong { display: block; font-size: 16px; }
.appnudge p { font-size: 14px; color: var(--text-2); margin-top: 2px; }
.appnudge .btn { flex: none; }
.appnudge[hidden] { display: none; }
.appnudge-wrap { padding-bottom: var(--s-7); }
.app-pop { position: fixed; z-index: 120; right: 18px; bottom: 86px; width: 340px; max-width: calc(100vw - 32px); padding: 22px 20px 16px; border-radius: 20px; background: var(--cream); border: 1px solid var(--line); box-shadow: var(--sh-3); display: flex; flex-direction: column; gap: 10px; animation: popIn 360ms var(--ease-out); }
.app-pop[hidden] { display: none; }
.app-pop .badge { align-self: flex-start; }
.app-pop h2 { font-size: 21px; font-weight: 800; line-height: 1.2; padding-right: 24px; }
.app-pop p { font-size: 14px; color: var(--text-2); }
.app-pop form { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.app-pop .input { height: 46px; }
.app-pop-msg { font-weight: 700; color: var(--text) !important; }
.app-pop-msg:empty { display: none; }
.app-pop-x { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border: 0; background: none; border-radius: 8px; cursor: pointer; color: var(--text-2); display: grid; place-items: center; }
.app-pop-x:hover { background: var(--ice); }
.app-pop-x .ico { width: 18px; height: 18px; }
.app-pop-later { border: 0; background: none; color: var(--text-3); font-size: 14px; font-weight: 600; cursor: pointer; padding: 4px; }
@keyframes popIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (max-width: 767px) {
  .appnudge { flex-wrap: wrap; }
  .appnudge .btn { width: 100%; }
  .app-pop { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); width: auto; max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .app-pop { animation: none; } }

/* ---------- Round 4: where we serve, pills, why, Ruta, credit, savings, videos, landings, Café ---------- */
.where { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--royal); font-size: 15px; }
.where .ico { width: 18px; height: 18px; }
.badge--where { background: var(--ice); color: var(--text-2); }
.badge--where.is-dfw { background: var(--sky); color: var(--navy); }
.svc-rf { font-size: 13px; font-weight: 600; color: var(--text); background: var(--ice); padding: 8px 10px; border-radius: 10px; }
.svc-rf-fine { font-size: 11.5px; color: var(--text-3); margin-top: -4px; }
.zip-itin { color: var(--text) !important; }
.why-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; counter-reset: none; }
.why-list li { display: flex; gap: 12px; align-items: flex-start; padding: 18px; border-radius: var(--r-card); background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: 16px; line-height: 1.35; }
.why-list .n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--royal); color: var(--cream); font-size: 13px; }
.agents, .reviews-row { margin-top: 40px; }
.agents h3, .reviews-row h3 { margin-bottom: 14px; }
.agent-cards, .review-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.agent-card { padding: 20px; border-radius: var(--r-card); background: #fff; border: 1px solid var(--line); text-align: center; }
.agent-card img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; }
.agent-card p { color: var(--text-2); font-size: 14px; } .agent-card small { color: var(--text-3); }
.review-card { margin: 0; padding: 20px; border-radius: var(--r-card); background: #fff; border: 1px solid var(--line); }
.review-card .stars { color: var(--gold); letter-spacing: 2px; }
.review-card blockquote { margin: 8px 0; font-size: 15px; }
.review-card figcaption { font-size: 13px; color: var(--text-3); font-weight: 600; }
.ruta-mini { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.ruta-mini li { display: flex; flex-direction: column; gap: 4px; padding: 14px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.ruta-mini .n, .ruta-step .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ice); color: var(--royal); font-weight: 800; font-size: 13px; }
.ruta-mini b { font-size: 14px; } .ruta-mini small { font-size: 11px; color: var(--text-3); font-weight: 700; }
.ruta-mini li.is-next, .ruta-step.is-next { border: 2px solid var(--royal); }
.ruta-mini li.is-next .n, .ruta-step.is-next .n { background: var(--royal); color: var(--cream); }
.ruta-wrap { max-width: 860px; }
.ruta-quiz { padding: 24px; border-radius: 20px; background: var(--ice); display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.ruta-quiz fieldset { border: 0; padding: 0; margin: 0; }
.ruta-quiz legend { font-weight: 700; margin-bottom: 8px; }
.ruta-quiz .btn { align-self: flex-start; }
.ruta-result { font-weight: 800; color: var(--royal); }
.ruta-result:empty { display: none; }
.ruta-steps { display: flex; flex-direction: column; gap: 10px; }
.ruta-step { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); scroll-margin-top: 120px; }
.ruta-step h3 { font-size: 17px; } .ruta-step p { color: var(--text-2); font-size: 14px; }
.ruta-you { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 800; color: var(--royal); }
.ruta-extra { grid-column: 3; justify-self: end; font-size: 13px; font-weight: 700; }
.ruta-next { margin-top: 24px; padding: 18px 20px; border-radius: 16px; background: var(--ice); }
.ruta-next .kicker { margin-bottom: 4px; }
.ruta-next-t { font-size: 18px; font-weight: 700; } .ruta-next-t a { font-weight: 800; }
.partner-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 16px 0; }
.partner-card { padding: 20px; border-radius: var(--r-card); background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.partner-card .badge { align-self: flex-start; }
.sv-grid { margin: 16px 0; }
.sv-board { margin-top: 20px; }
.sv-head { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; flex-wrap: wrap; }
.sv-bar { height: 12px; border-radius: 999px; background: var(--ice); margin: 10px 0 14px; overflow: hidden; }
.sv-bar i { display: block; height: 100%; width: 0; background: var(--sky); border-radius: 999px; transition: width var(--dur) var(--ease-out); }
.sv-cells { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 6px; }
.sv-cell { position: relative; cursor: pointer; }
.sv-cell input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.sv-cell span { display: grid; place-items: center; height: 42px; border-radius: 10px; border: 1.5px solid var(--line-strong); font-weight: 700; font-size: 13px; background: #fff; }
.sv-cell.is-on span { background: var(--sky); border-color: var(--sky); color: var(--navy); }
.vid-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.vid-head .text-link { margin-top: 0; }
.vid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.vid { position: relative; display: block; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--navy); cursor: pointer; text-align: left; aspect-ratio: 16 / 9; }
.vid img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.vid-play { position: absolute; left: 50%; top: 45%; width: 60px; height: 42px; margin: -21px 0 0 -30px; border-radius: 12px; background: var(--royal); }
.vid-play::after { content: ""; position: absolute; left: 24px; top: 12px; border-left: 16px solid var(--cream); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.vid-t { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px; font-weight: 700; color: var(--cream); background: linear-gradient(transparent, rgba(43,29,20,.85)); font-size: 14px; }
.vid-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; }
.vid-empty[hidden] { display: none; }
/* SEO landing pages */
.lp-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.lp-article h2 { font-size: 24px; margin: 28px 0 8px; } .lp-article h2:first-child { margin-top: 0; }
.lp-article p { margin-bottom: 12px; color: var(--text-2); }
.lp-article ul { list-style: disc; padding-left: 20px; margin-bottom: 12px; color: var(--text-2); }
.lp-article li { margin-bottom: 4px; }
.lp-aside { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 18px; background: var(--ice); }
.lp-aside a { font-weight: 700; }
.lp-faq details { border-bottom: 1px solid var(--line-strong); padding: 16px 0; }
.lp-faq summary { cursor: pointer; font-weight: 800; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.lp-faq summary::after { content: "+"; color: var(--royal); font-weight: 800; }
.lp-faq details[open] summary::after { content: "\2212"; }
.lp-faq p { margin-top: 8px; color: var(--text-2); }
/* El Café issue pages: show the block that matches the page language */
html[lang="en"] .cafe-es, html:not([lang="en"]) .cafe-en { display: none; }
.cafe-issue { max-width: 760px; }
.cafe-issue h2 { font-size: 22px; margin: 26px 0 8px; }
.cafe-issue p { margin-bottom: 10px; color: var(--text-2); }
.cafe-words { width: 100%; border-collapse: collapse; margin: 12px 0 24px; font-size: 15px; }
.cafe-words th, .cafe-words td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cafe-words th { background: var(--ice); font-size: 13px; }
.cafe-list { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.cafe-list a { display: block; padding: 18px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--line); color: var(--text); text-decoration: none !important; }
.cafe-list a:hover { border-color: var(--royal); }
.cafe-list strong { display: block; font-size: 18px; } .cafe-list small { color: var(--text-3); font-weight: 600; } .cafe-list p { color: var(--text-2); margin-top: 4px; }
@media (max-width: 900px) {
  .ruta-mini { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lp-body { grid-template-columns: 1fr; }
  .lp-aside { position: static; }
}
@media (max-width: 600px) {
  .ruta-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ruta-step { grid-template-columns: 28px minmax(0, 1fr); }
  .ruta-step .btn { grid-column: 2; justify-self: start; }
  .ruta-extra { grid-column: 2; justify-self: start; }
}

/* course.css */
/* =========================================================
   HEIRVEST COURSE: section map, lesson player, visuals, rewards
   ========================================================= */
.course-summary { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 32px; }
.course-summary:empty { display: none; }
.course-summary b { display: block; font-family: var(--f-head); font-weight: 800; font-size: 40px; line-height: 1; letter-spacing: -0.03em; }
.course-summary span { font-size: 14px; color: var(--text-2); }

/* Section chips (subsections) */
.track-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: var(--s-8); }
.track-chip { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--line-strong); border-radius: 16px; color: var(--navy); text-decoration: none !important; background: #fff; transition: border-color var(--dur-fast), transform var(--dur-fast) var(--ease-out); min-width: 0; }
a.track-chip:hover { border-color: var(--royal); transform: translateY(-2px); }
.track-chip strong { font-family: var(--f-head); font-weight: 700; font-size: 21px; line-height: 1.15; letter-spacing: -0.01em; }
.tc-lvl { font-size: 12px; font-weight: 600; color: var(--royal); }
.tc-prog { height: 5px; border-radius: 5px; background: var(--ice); overflow: hidden; margin-top: auto; }
.tc-prog i { display: block; height: 100%; background: var(--royal); }
.track-chip small { font-size: 12px; color: var(--text-3); }
.track-chip.is-done { border-color: var(--gold); background: #FBF6EF; }
.track-chip.is-soon { background: var(--ice); border-style: dashed; border-color: var(--line-strong); }
.track-chip.is-soon .tc-lvl { color: #7A5230; }
.track-chip.is-soon strong { color: var(--text-2); }

.course-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--s-9); align-items: start; }
.course-aside { position: sticky; top: calc(var(--nav-h) + 32px); }
.course-aside .t-lead { margin-top: 16px; }

/* Sections on the map */
.unit { padding: 40px 0; border-top: 1px solid var(--line-strong); scroll-margin-top: calc(var(--nav-h) + 24px); }
.unit:first-child { border-top: 0; padding-top: 0; }
.unit-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 24px; }
.unit-kicker { display: block; font-size: 14px; font-weight: 600; color: var(--royal); margin-bottom: 6px; }
.unit-head h2 { font-size: clamp(28px, 3vw, 38px); letter-spacing: -0.02em; }
.unit-d { color: var(--text-2); margin-top: 6px; font-size: 16px; }
.unit-prog { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 14px; color: var(--text-2); flex: none; }
.unit-prog .bar { width: 120px; height: 6px; border-radius: 6px; background: var(--ice); overflow: hidden; }
.unit-prog .bar i { display: block; height: 100%; background: var(--royal); border-radius: 6px; transition: width 600ms var(--ease-out); }
.unit-prog .medal { width: 44px; height: 44px; }
.unit-test { margin-top: 16px; }

.path { position: relative; display: flex; flex-direction: column; gap: 10px; }
.path::before { content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 2px; background: var(--line); }
.node button { position: relative; display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; padding: 6px 16px 6px 0; background: none; border: 0; cursor: pointer; color: var(--navy); border-radius: 999px; transition: background var(--dur-fast); }
.node:nth-child(even) button { padding-left: 32px; }
.node button:hover { background: rgba(107, 66, 38, .05); }
.node-dot { position: relative; z-index: 1; width: 56px; height: 56px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--royal); color: var(--royal); box-shadow: 0 4px 0 #E4D6C4; transition: transform var(--dur-fast) var(--ease-out); }
.node-dot b { font-size: 18px; font-weight: 700; }
.node-dot .ico { width: 22px; height: 22px; }
.node button:hover .node-dot { transform: translateY(-2px); }
.node button:active .node-dot { transform: translateY(2px); box-shadow: 0 1px 0 #E4D6C4; }
.node.is-done .node-dot { background: var(--royal); border-color: var(--royal); color: #fff; box-shadow: 0 4px 0 var(--royal-600); }
.node.is-next .node-dot { background: var(--gold); border-color: var(--gold); color: var(--navy); box-shadow: 0 4px 0 #A87443; animation: bob 2.4s ease-in-out infinite; }
.node-txt strong { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.node-txt small { font-size: 13px; color: var(--text-3); }
.node.is-next .node-txt small { color: #7A5230; font-weight: 600; }
@keyframes bob { 50% { transform: translateY(-4px); } }
.course-toast { position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 20px); opacity: 0; z-index: 300; background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 15px; transition: all var(--dur) var(--ease-out); pointer-events: none; max-width: calc(100vw - 32px); }
.course-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Lesson player ---------- */
.lesson-dlg { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: #fff; color: var(--navy); }
.lesson-dlg[open] { display: flex; flex-direction: column; }
.lesson-dlg::backdrop { background: rgba(43, 29, 20, .4); }
.ld-confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 5; }
.ld-top { display: flex; align-items: center; gap: 16px; width: 100%; max-width: 760px; margin: 0 auto; padding: 20px 24px 0; }
.ld-close, .ld-sound { width: 44px; height: 44px; border-radius: 50%; border: 0; background: none; color: var(--text-3); cursor: pointer; display: grid; place-items: center; flex: none; }
.ld-close:hover, .ld-sound:hover { background: var(--ice); color: var(--navy); }
.ld-bar { flex: 1; height: 16px; border-radius: 16px; background: var(--ice); overflow: hidden; }
.ld-bar i { display: block; height: 100%; width: 0; border-radius: 16px; background: var(--sky); transition: width 500ms var(--ease-out); position: relative; }
.ld-bar i::after { content: ""; position: absolute; left: 8px; right: 8px; top: 4px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.35); }
.ld-combo { display: inline-flex; align-items: center; gap: 2px; color: #8F4E22; font-weight: 800; font-size: 15px; }
.ld-combo .ico { width: 20px; height: 20px; color: #A8652F; fill: #B9824E; }
.ld-combo.pop { animation: pop 420ms var(--ease-out); }
@keyframes pop { 40% { transform: scale(1.35); } }
.ld-xp { font-size: 15px; font-weight: 800; color: #7A5230; flex: none; min-width: 64px; text-align: right; }
.xp-fly { position: fixed; z-index: 6; font-weight: 800; font-size: 18px; color: #7A5230; background: #F5E9DA; padding: 4px 10px; border-radius: 999px; pointer-events: none; transition: transform 700ms cubic-bezier(.3,.7,.3,1), opacity 700ms ease-in; }
.ld-body { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 40px 24px 24px; overflow-y: auto; }
.ld-anim { animation: ldIn 320ms var(--ease-out); }
@keyframes ldIn { from { opacity: 0; transform: translateX(16px); } }
.ld-kicker { display: block; font-size: 14px; font-weight: 600; color: var(--royal); margin-bottom: 14px; }
.ld-qtype { display: inline-block; font-size: 13px; font-weight: 700; color: #7A5230; background: #F5E9DA; padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.ld-h { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.08; letter-spacing: -0.02em; max-width: 20ch; }
.ld-q { font-size: clamp(24px, 3.4vw, 34px); max-width: 28ch; }
.ld-p { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--text-2); margin-top: 18px; max-width: 40ch; }
.ld-big { font-family: var(--f-head); font-weight: 700; font-size: 96px; line-height: 1; margin-top: 24px; color: var(--royal); }

/* Story */
.ld-story { display: flex; gap: 16px; align-items: flex-start; margin-top: 12px; }
.who { width: 64px; height: 64px; flex: none; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-head); font-weight: 700; font-size: 28px; color: #fff; }
.who--lupe { background: var(--royal); } .who--beto { background: var(--navy); } .who--sofi { background: var(--gold); color: var(--navy); }
.who-name { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.bubble-l { font-family: var(--f-head); font-weight: 700; font-size: clamp(24px, 3.2vw, 32px); line-height: 1.3; letter-spacing: -0.01em; background: var(--ice); padding: 20px 24px; border-radius: 4px 24px 24px 24px; max-width: 30ch; }

/* Options */
.ld-opts { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; max-width: 580px; }
.ld-tf { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; max-width: 520px; }
.ld-num { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; max-width: 520px; }
.ld-opt { display: flex; align-items: center; gap: 14px; text-align: left; padding: 18px 20px; border: 2px solid var(--line-strong); border-bottom-width: 5px; border-radius: 16px; background: #fff; font-size: 18px; font-weight: 500; color: var(--navy); cursor: pointer; transition: border-color var(--dur-fast), background var(--dur-fast), transform 90ms; }
.ld-tf .ld-opt, .ld-num .ld-opt { justify-content: center; font-size: 22px; font-weight: 700; padding: 24px 16px; font-variant-numeric: tabular-nums; }
.ld-opt:hover:not(:disabled) { border-color: var(--sky); background: #FAF4EC; }
.ld-opt:active:not(:disabled) { transform: translateY(3px); border-bottom-width: 2px; }
.ld-opt[aria-checked="true"], .ld-opt.sel { border-color: var(--royal); background: var(--ice); color: var(--royal); }
.ld-opt.ok { border-color: var(--gain); background: #E6F0E9; color: #256A42; animation: okPop 380ms var(--ease-out); }
.ld-opt.bad { border-color: var(--loss); background: #F6E4E1; color: #8F2E26; animation: shake 360ms; }
@keyframes okPop { 40% { transform: scale(1.03); } }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.ld-opt:disabled { cursor: default; }
.ld-key { width: 28px; height: 28px; flex: none; border-radius: 8px; border: 1.5px solid var(--line-strong); display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--text-3); }
.ld-match { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; max-width: 640px; }
.ld-match > div { display: flex; flex-direction: column; gap: 10px; }
.ld-match .ld-opt { font-size: 16px; padding: 14px 16px; min-height: 64px; }

/* Foot + feedback */
.ld-foot { position: relative; z-index: 1; border-top: 2px solid var(--line); padding: 18px 24px calc(18px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: flex-end; transition: background var(--dur); }
.ld-foot .btn { min-width: 200px; }
.ld-fb { flex: 1; min-width: 260px; display: flex; flex-direction: column; gap: 2px; font-size: 16px; }
.ld-fb strong { font-size: 22px; }
.ld-foot.is-ok { background: #E6F0E9; border-top-color: transparent; }
.ld-foot.is-ok .ld-fb { color: #256A42; }
.ld-foot.is-bad { background: #F6E4E1; border-top-color: transparent; }
.ld-foot.is-bad .ld-fb { color: #8F2E26; }
.ld-foot.is-ok .btn--primary { background: #2E7D4F; }
.ld-foot.is-bad .btn--primary { background: #B23A30; }

/* End screen */
.ld-medal { width: 120px; margin: 4px 0 12px; animation: medalIn 700ms var(--ease-out); }
@keyframes medalIn { from { transform: scale(.3) rotate(-30deg); opacity: 0; } 70% { transform: scale(1.1) rotate(6deg); } }
.ld-stats { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 28px; }
.ld-stats b { display: block; font-family: var(--f-head); font-weight: 800; font-size: 52px; line-height: 1; letter-spacing: -0.03em; color: var(--navy); }
.ld-stats .xp b { color: #93653A; }
.ld-stats span { font-size: 14px; color: var(--text-2); }

/* ---------- Visuals ---------- */
.ld-visual { margin-top: 28px; max-width: 560px; }
.vz-note { font-size: 13px; color: var(--text-3); margin-top: 10px; }
.vz-receipt { background: #fff; border: 1px solid var(--line-strong); border-radius: 6px; padding: 18px 20px; box-shadow: var(--sh-2); font-size: 16px; position: relative; }
.vz-receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px; background: radial-gradient(circle at 6px -2px, transparent 6px, #fff 6.5px) repeat-x; background-size: 12px 8px; }
.vr-row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px dashed var(--line-strong); opacity: 0; animation: rowIn 300ms var(--ease-out) forwards; animation-delay: var(--d); }
@keyframes rowIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.vr-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; font-weight: 700; }
.vr-total b { font-family: var(--f-head); font-weight: 800; font-size: 40px; color: #2E7D4F; letter-spacing: -0.02em; }
.vz-stack { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.vs-bills { position: relative; width: 150px; height: 120px; }
.vs-bills span { position: absolute; left: 0; bottom: calc(var(--i) * 9px); width: 140px; transform: rotate(calc((var(--i) - 3) * 2deg)); animation: billIn 420ms var(--ease-out) both; animation-delay: calc(var(--i) * 80ms); }
@keyframes billIn { from { transform: translateY(-40px) rotate(-12deg); opacity: 0; } }
.bill { width: 100%; height: auto; filter: drop-shadow(0 2px 2px rgba(43, 29, 20,.15)); }
.vs-amt b { display: block; font-family: var(--f-head); font-weight: 800; font-size: 56px; line-height: 1; letter-spacing: -0.03em; color: #2E7D4F; }
.vs-amt span { display: block; font-size: 14px; color: var(--text-2); margin-top: 8px; max-width: 28ch; }
.vz-grow { border: 1px solid var(--line-strong); border-radius: 16px; padding: 20px; }
.vg-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 12px; margin-bottom: 14px; font-size: 15px; }
.vg-row b { font-size: 20px; }
.vg-row input { grid-column: 1 / -1; width: 100%; accent-color: var(--royal); height: 28px; }
.vg-bars { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.vg-bars > div { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 14px; color: var(--text-2); }
.vg-bars i { grid-column: 1 / -1; display: block; height: 14px; border-radius: 14px; transition: width 300ms var(--ease-out); }
.vg-put { background: var(--line-strong); }
.vg-got { background: #2E7D4F; }
.vg-bars b { font-family: var(--f-head); font-weight: 800; font-size: 28px; color: var(--navy); }
.vg-bars > div:last-child b { color: #2E7D4F; }
.vz-jar { display: flex; align-items: center; gap: 28px; }
.vz-jar svg { width: 120px; flex: none; }
.vj-fill { transition: y 600ms var(--ease-out); }
.vj-info b { display: block; font-family: var(--f-head); font-weight: 800; font-size: 48px; line-height: 1; color: #2E7D4F; }
.vj-info > span { display: block; color: var(--text-2); margin: 6px 0 14px; }
.vj-msg { font-weight: 700; color: #2E7D4F; margin-top: 10px; min-height: 1.5em; }
.vz-slices { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; text-align: center; }
.vz-slices svg { width: 120px; margin: 0 auto 8px; }
.vz-slices b { display: block; font-size: 16px; }
.vz-slices span { color: var(--text-2); font-size: 15px; }
.vsl-arrow { width: 28px !important; fill: none; stroke: var(--royal); stroke-width: 2; }
.vsl-cut path { transform-origin: 60px 60px; animation: sliceOut 600ms var(--ease-out) both; animation-delay: calc(400ms + var(--i) * 40ms); }
@keyframes sliceOut { from { transform: scale(.96); } 60% { transform: scale(1.04); } }
.vsl-total { grid-column: 1 / -1; font-size: 15px; color: var(--text-2); }
.vsl-total b { color: var(--navy); font-size: 20px; }
.vz-candle svg { width: 100%; max-width: 320px; }
.vc-body { animation: grow 700ms var(--ease-out) both; transform-origin: 70px 140px; }
.vc-lbl { animation: rowIn 400ms var(--ease-out) both; animation-delay: 600ms; }
@keyframes grow { from { transform: scaleY(0); } }
.vz-gauge svg { width: 100%; max-width: 300px; }
.vgg-needle { transform-origin: 110px 110px; transition: transform 300ms var(--ease-out); transform: rotate(-90deg); }
.vgg-out { display: flex; align-items: baseline; gap: 14px; margin: 6px 0 4px; }
.vgg-out b { font-size: 22px; }
.vgg-out em { font-style: normal; font-weight: 700; color: var(--text-2); }
.vgg-out em.hi { color: #7A5230; } .vgg-out em.lo { color: var(--royal); }
.vz-gauge input { width: 100%; max-width: 300px; accent-color: var(--navy); height: 28px; }
.vz-bars .vb-row { display: flex; align-items: flex-end; gap: 8px; height: 140px; border-bottom: 2px solid var(--line-strong); }
.vb-row i { flex: 1; height: 100%; border-radius: 6px 6px 0 0; background: var(--sky); transform: scaleY(0); transform-origin: bottom; transition: transform 600ms var(--ease-out); transition-delay: var(--d); }
.vb-row i.hi { background: var(--gold); }
.vb-row.in i { transform: scaleY(var(--h)); }
.vz-basket .vbk-items { display: flex; flex-wrap: wrap; gap: 8px; }
.vbk-items span { padding: 8px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line-strong); font-weight: 700; font-size: 15px; animation: dropIn 420ms var(--ease-out) both; animation-delay: var(--d); }
.vbk-items .more { background: var(--royal); border-color: var(--royal); color: #fff; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-24px); } }
.vbk-basket { margin-top: 12px; padding: 14px 16px; border-radius: 0 0 24px 24px; border: 3px solid var(--navy); border-top: 0; text-align: center; font-weight: 600; background: var(--ice); }
.vz-line svg { width: 100%; height: 110px; }
.vl-path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1200ms var(--ease-out); }
.vl-path.in { stroke-dashoffset: 0; }
.vz-spread { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.vsp-tag { padding: 16px; border-radius: 14px; border: 2px solid var(--line-strong); text-align: center; }
.vsp-tag small { display: block; font-size: 12px; color: var(--text-2); }
.vsp-tag b { font-size: 26px; }
.vsp-tag.ask { border-color: var(--royal); }
.vsp-gap { text-align: center; color: #7A5230; }
.vsp-gap span { display: block; font-weight: 800; font-size: 18px; }
.vsp-gap small { font-size: 12px; }
.vz-pe { border: 1px solid var(--line-strong); border-radius: 16px; padding: 20px; }
.vpe-math { font-size: 18px; margin: 10px 0; }
.vpe-math b { font-family: var(--f-head); font-weight: 800; font-size: 48px; color: var(--royal); vertical-align: middle; margin-left: 6px; }
.vpe-say { font-weight: 600; }
.vz-flags { display: flex; flex-direction: column; gap: 10px; }
.vz-flags li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: #F6E4E1; color: #8F2E26; font-weight: 600; animation: rowIn 320ms var(--ease-out) both; animation-delay: var(--d); }
.vf-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--loss); flex: none; }

/* WhatsApp page bits */
.wa-hero { min-height: 0; padding: 28px 20px; }
.numlist--navy, .numlist--navy li { border-color: var(--line-navy); }
.numlist--navy .n { color: var(--sky); }
.numlist--navy p { color: var(--on-navy-2); }

@media (max-width: 1023px) {
  .course-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .course-aside { position: static; }
  .track-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .course-summary { gap: 20px; }
  .course-summary b { font-size: 30px; }
  .track-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .track-chip { padding: 14px; }
  .track-chip strong { font-size: 18px; }
  .unit-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .unit-prog { align-items: flex-start; }
  .node:nth-child(even) button { padding-left: 0; }
  .ld-top { padding: 12px 10px 0; gap: 8px; }
  .ld-body { padding: 24px 18px 16px; }
  .ld-opt { font-size: 17px; padding: 15px; }
  .ld-tf .ld-opt, .ld-num .ld-opt { font-size: 20px; padding: 20px 10px; }
  .ld-match .ld-opt { font-size: 14px; padding: 10px; min-height: 56px; }
  .ld-foot .btn { width: 100%; }
  .ld-stats { gap: 20px; }
  .ld-stats b { font-size: 40px; }
  .who { width: 48px; height: 48px; font-size: 22px; }
  .bubble-l { padding: 16px 18px; }
  .vz-jar { gap: 18px; }
  .vz-jar svg { width: 90px; }
  .vj-info b { font-size: 38px; }
  .vs-amt b { font-size: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .node.is-next .node-dot, .ld-anim, .ld-medal, .ld-opt.ok, .ld-opt.bad, .vr-row, .vs-bills span, .vbk-items span, .vz-flags li, .vc-body, .vc-lbl { animation: none !important; opacity: 1 !important; }
  .vl-path { stroke-dashoffset: 0; }
  .vb-row i { transform: scaleY(var(--h)); }
}

/* Clases hero: a live-looking lesson card instead of a stock photo */
.lesson-peek { background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--sh-3); padding: 24px; transform: rotate(-1.5deg); }
.lp-top { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.lp-x { color: var(--text-3); font-size: 22px; line-height: 1; }
.lp-bar { flex: 1; height: 12px; border-radius: 12px; background: var(--ice); overflow: hidden; }
.lp-bar i { display: block; width: 62%; height: 100%; border-radius: 12px; background: var(--sky); }
.lp-flame { display: inline-flex; align-items: center; gap: 2px; color: #8F4E22; font-weight: 800; font-size: 14px; }
.lp-flame .ico { width: 18px; height: 18px; color: #A8652F; fill: #B9824E; }
.lp-xp { font-size: 13px; font-weight: 800; color: #7A5230; background: #F5E9DA; padding: 3px 8px; border-radius: 999px; }
.lp-type { display: inline-block; font-size: 12px; font-weight: 700; color: #7A5230; background: #F5E9DA; padding: 3px 9px; border-radius: 999px; }
.lp-q { font-family: var(--f-head); font-weight: 700; font-size: 26px; line-height: 1.2; letter-spacing: -0.015em; margin: 12px 0 18px; }
.lp-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lp-opt { text-align: center; padding: 16px 8px; border: 2px solid var(--line-strong); border-bottom-width: 5px; border-radius: 14px; font-weight: 700; font-size: 18px; }
.lp-ok { border-color: var(--gain); background: #E6F0E9; color: #256A42; }
.lp-fb { margin: 16px -24px -24px; padding: 16px 24px; border-radius: 0 0 28px 28px; background: #E6F0E9; color: #256A42; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.lp-fb strong { font-size: 18px; }
.page-hero-media > .note-sample { margin-top: 18px; }
/* English word cards */
.wd { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.wd-word { font-family: var(--f-num); font-weight: 800; font-size: clamp(44px, 7vw, 72px); letter-spacing: -0.03em; color: var(--royal); }
.wd-speak { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--royal); border-bottom-width: 4px; background: #fff; color: var(--royal); font-weight: 700; font-size: 15px; cursor: pointer; }
.wd-speak .ico { width: 20px; height: 20px; }
.wd-speak:active { transform: translateY(2px); border-bottom-width: 2px; }
.wd-say { margin-top: 8px; font-size: 18px; color: var(--text-2); }
.wd-say b { color: var(--navy); letter-spacing: .02em; }
.wd-ex { margin-top: 22px; max-width: 460px; border-left: 4px solid var(--gold); background: #FBF6EF; padding: 12px 16px; border-radius: 0 12px 12px 0; }
.wd-ex span { display: block; font-size: 12px; font-weight: 700; color: #7A5230; margin-bottom: 4px; }
.wd-ex p { font-size: 16px; }
.wd-ex p[lang="en"] { font-weight: 700; color: var(--navy); }
.wd-ex p:not([lang]) { color: var(--text-2); }
/* Real-life task at the end of a lesson */
.ld-task { margin-top: 24px; max-width: 520px; padding: 18px 20px; border-radius: 16px; background: var(--ice); border: 2px solid var(--royal); }
.ld-task > span { display: block; font-size: 13px; font-weight: 800; color: var(--royal); margin-bottom: 6px; }
.ld-task p { font-size: 17px; line-height: 1.45; }
.ld-task-btn { margin-top: 12px; height: 40px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--royal); color: #fff; font-weight: 700; cursor: pointer; }
.ld-task-btn[aria-pressed="true"] { background: #2E7D4F; }

/* motion.css */
/* =========================================================
   MOTION: intro loader, hero light, band light sweeps,
   glass header, button sheen. All of it turns off for
   prefers-reduced-motion.
   ========================================================= */

/* ---------- Intro loader (first visit or refresh only) ---------- */
.intro { display: none; }
.hv-intro .intro {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 1000;
  background: var(--navy); color: #fff;
  pointer-events: none;
  animation: introOut 800ms cubic-bezier(.76, 0, .24, 1) 1450ms forwards;
}
.intro::before {
  content: ""; position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(107, 66, 38, .55), rgba(107, 66, 38, 0));
  opacity: 0; animation: introGlow 1600ms ease-out 100ms forwards;
}
.intro-mark { position: relative; display: grid; justify-items: center; gap: 14px; }
.intro-word {
  display: flex; overflow: hidden; padding: 0 2px 6px;
  font-family: var(--f-num); font-weight: 700; letter-spacing: -0.05em;
  font-size: clamp(52px, 9vw, 96px); line-height: 1;
}
.intro-word span {
  display: inline-block; transform: translateY(110%);
  animation: letterUp 650ms cubic-bezier(.2, .8, .2, 1) forwards;
  animation-delay: calc(var(--i) * 45ms + 120ms);
}
.intro-line { width: clamp(180px, 26vw, 280px); height: 44px; overflow: visible; }
.intro-line path {
  fill: none; stroke: var(--sky); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: lineDraw 900ms cubic-bezier(.65, 0, .35, 1) 480ms forwards;
}
.intro-line circle { fill: var(--gain); opacity: 0; transform-origin: 238px 4px; animation: dotIn 400ms ease-out 1250ms forwards; }
.intro-sub {
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7);
  opacity: 0; animation: fadeIn 500ms ease-out 750ms forwards;
}
@keyframes letterUp { to { transform: none; } }
@keyframes lineDraw { to { stroke-dashoffset: 0; } }
@keyframes dotIn { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes introGlow { to { opacity: 1; } }
@keyframes introOut { to { transform: translateY(-100%); visibility: hidden; } }
.hv-intro body { overflow: hidden; }

/* ---------- Page entrance (every page; waits for the intro when it plays) ---------- */
:root { --enter: 80ms; }
.hv-intro { --enter: 1550ms; }
.js-motion main > section:first-child .container > div:first-child > *,
.js-motion main > section:first-child .container > div:nth-child(2) {
  animation: enterUp 800ms cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: var(--enter);
}
.js-motion main > section:first-child .container > div:first-child > *:nth-child(2) { animation-delay: calc(var(--enter) + 90ms); }
.js-motion main > section:first-child .container > div:first-child > *:nth-child(3) { animation-delay: calc(var(--enter) + 180ms); }
.js-motion main > section:first-child .container > div:first-child > *:nth-child(4) { animation-delay: calc(var(--enter) + 270ms); }
.js-motion main > section:first-child .container > div:first-child > *:nth-child(n+5) { animation-delay: calc(var(--enter) + 340ms); }
.js-motion main > section:first-child .container > div:nth-child(2) { animation-delay: calc(var(--enter) + 220ms); }
@keyframes enterUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ---------- Hero light: slow drifting glow behind the first section ---------- */
main > section:first-child { position: relative; isolation: isolate; overflow: hidden; }
main > section:first-child::before,
main > section:first-child::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none; border-radius: 50%;
  filter: blur(60px);
}
main > section:first-child::before {
  width: 620px; height: 620px; right: -140px; top: -180px;
  background: radial-gradient(closest-side, rgba(169, 212, 245, .38), rgba(169, 212, 245, 0));
  animation: drift1 22s ease-in-out infinite alternate;
}
main > section:first-child::after {
  width: 520px; height: 520px; left: -200px; bottom: -260px;
  background: radial-gradient(closest-side, rgba(107, 66, 38, .16), rgba(107, 66, 38, 0));
  animation: drift2 28s ease-in-out infinite alternate;
}
@keyframes drift1 { to { transform: translate(-120px, 90px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(160px, -70px) scale(1.2); } }

/* ---------- Light sweep across the blue and navy bands ---------- */
.band-royal, .cta-band { position: relative; overflow: hidden; isolation: isolate; }
.band-royal > .container, .cta-band > .container { position: relative; z-index: 1; }
.band-royal::before, .cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .09) 50%, transparent 62%);
  background-size: 300% 100%; background-position: 120% 0;
  animation: sweep 9s cubic-bezier(.45, 0, .2, 1) infinite;
}
.band-royal::after, .cta-band::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none; border-radius: 50%;
  width: 760px; height: 760px; right: -260px; top: -320px; filter: blur(40px);
  background: radial-gradient(closest-side, rgba(169, 212, 245, .30), rgba(169, 212, 245, 0));
  animation: drift1 26s ease-in-out infinite alternate;
}
.cta-band::after { background: radial-gradient(closest-side, rgba(107, 66, 38, .45), rgba(107, 66, 38, 0)); left: -280px; right: auto; top: auto; bottom: -380px; }
@keyframes sweep { 0%, 35% { background-position: 120% 0; } 75%, 100% { background-position: -20% 0; } }

/* ---------- Glass header once you scroll ---------- */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header.is-scrolled .nav {
    background: rgba(255, 255, 255, .78);
    -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  }
}

/* ---------- Button sheen on hover ---------- */
.btn--primary { position: relative; overflow: hidden; isolation: isolate; }
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 700ms cubic-bezier(.2, .8, .2, 1);
}
.btn--primary:hover::after { transform: translateX(120%); }

/* ---------- Gentle float on the hero phone ---------- */
.hero-media .device { animation: phoneFloat 7s ease-in-out infinite alternate; }
@keyframes phoneFloat { to { transform: translateY(-10px); } }

@media (prefers-reduced-motion: reduce) {
  .hv-intro .intro { display: none; }
  .hv-intro body { overflow: auto; }
  .js-motion main > section:first-child .container > div:first-child > *,
  .js-motion main > section:first-child .container > div:nth-child(2) { animation: none; }
  main > section:first-child::before, main > section:first-child::after,
  .band-royal::before, .band-royal::after, .cta-band::before, .cta-band::after,
  .hero-media .device { animation: none; }
  .btn--primary::after { display: none; }
}
