/* =====================================================================
   CENTERA v3 — foundation stylesheet
   Phone-first. Dark only (void is the brand). No build step.
   Sections: 1 tokens · 2 reset · 3 layout · 4 type · 5 nav · 6 footer
   7 buttons · 8 badges/pills · 9 cards · 10 stats/proof · 11 pricing
   12 steps · 13 faq · 14 forms · 15 tables · 16 phone/chat
   17 section header · 18 hero · 19 motion/reveal · 20 utilities
   ===================================================================== */

/* ---------- 1. TOKENS ---------- */
:root {
  /* brand (fixed) */
  --void: #0D0D12;
  --bone: #F5F5F7;
  --ember: #785CFF;

  /* derived — ratios are against --void unless noted (WCAG 2.x) */
  --ember-600: #6A4DF5;        /* primary button fill: white text 5.26:1 */
  --ember-700: #5E3FE8;        /* hover/pressed fill: white text 6.26:1 */
  --ember-soft: #A78BFA;       /* accent TEXT on dark: 7.12:1 */
  --ember-tint: rgba(120, 92, 255, 0.14);
  --ember-tint-2: rgba(120, 92, 255, 0.24);
  --ember-line: rgba(120, 92, 255, 0.5);
  --ember-glow: rgba(120, 92, 255, 0.45);

  --bone-2: #B4B4B7;           /* secondary text: 9.37:1 */
  --muted: #A1A1A8;            /* meta/sub text: 7.55:1 (6.03:1 on surface-3) */
  --surface-1: #15151F;        /* cards */
  --surface-2: #1C1B27;        /* raised, inputs */
  --surface-3: #24232F;        /* hover, incoming chat bubble */
  --line: rgba(245, 245, 247, 0.12);   /* decorative dividers only */
  --line-2: rgba(245, 245, 247, 0.2);
  --line-strong: #6B6A7B;      /* control borders: 3.22:1 on surface-2 (non-text AA) */

  --ok: #34D399;               /* 10.08:1 */
  --warn: #FBBF24;             /* 11.61:1 */
  --err: #F87171;              /* 7.01:1 */
  --ok-tint: rgba(52, 211, 153, 0.14);
  --warn-tint: rgba(251, 191, 36, 0.14);
  --err-tint: rgba(248, 113, 113, 0.14);

  /* legacy aliases (v1/v2 pages use these names) */
  --primary: var(--ember);
  --smoke: var(--muted);
  --display: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font: var(--display);

  /* type scale — fluid, 390px → 1280px */
  --step--1: clamp(0.9375rem, 0.91rem + 0.12vw, 1rem);       /* 15–16 (was 13–14, Haris 2026-10-01: bigger) */
  --step-0: clamp(1.0625rem, 1.02rem + 0.18vw, 1.1875rem);   /* 17–19 (was 16–18) */
  --step-1: clamp(1.1875rem, 1.12rem + 0.3vw, 1.375rem);     /* 19–22 (was 18–21) */
  --step-2: clamp(1.375rem, 1.26rem + 0.55vw, 1.6875rem);    /* 22–27 (was 21–26) */
  --step-3: clamp(1.625rem, 1.4rem + 1.1vw, 2.25rem);        /* 26–36 */
  --step-4: clamp(2rem, 1.62rem + 1.9vw, 3.125rem);          /* 32–50 */
  --step-5: clamp(2.25rem, 1.7rem + 2.8vw, 4rem);            /* 36–64 */
  --h1: var(--step-5);
  --h2: var(--step-4);
  --h3: var(--step-2);
  --body: var(--step-0);
  --price: clamp(2.25rem, 1.9rem + 1.8vw, 3.25rem);
  --lh-tight: 1.08;
  --lh-snug: 1.25;
  --lh-body: 1.6;

  /* spacing (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --gutter: 16px;                                 /* phone side gutter */
  --section-y: clamp(56px, 7vw + 28px, 112px);

  /* radius */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* shadows */
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 12px 32px -12px rgba(0, 0, 0, 0.7);
  --shadow-3: 0 24px 60px -20px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 14px 40px -14px var(--ember-glow);

  /* motion */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-1: 120ms;
  --dur-2: 200ms;
  --dur-3: 320ms;
  --reveal-y: 14px;

  /* layout */
  --container: 1200px;
  --nav-h: 64px;
  --tap: 44px;                                    /* minimum touch target */

  color-scheme: dark;
}
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; --nav-h: 72px; } }
@media (prefers-reduced-motion: reduce) {
  :root { --dur-1: 0ms; --dur-2: 0ms; --dur-3: 0ms; --reveal-y: 0px; }
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  min-height: 100vh;
  font-family: var(--font);
  font-size: var(--body);
  line-height: var(--lh-body);
  font-weight: 400;
  background: var(--void);
  color: var(--bone);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; }
img, video { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
p, li, h1, h2, h3, h4, dd, td, th, summary { overflow-wrap: break-word; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: var(--lh-snug); letter-spacing: -0.015em; text-wrap: balance; hyphens: auto; }
p { text-wrap: pretty; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ember-soft); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--ember-600); color: #fff; }

/* ---------- 3. LAYOUT ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 760px; }
.section { padding-block: var(--section-y); }
.section-tight { padding-block: calc(var(--section-y) * 0.6); }
.section-alt { background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); border-block: 1px solid var(--line); }

/* 12-col grid: 1 col on phones; .col-N from 768px, .lg-col-N from 1024px */
.grid { display: grid; gap: var(--gap, var(--space-4)); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) {
  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap, var(--space-5)); }
  .grid > * { grid-column: span 12; }
  .col-1 { grid-column: span 1; } .col-2 { grid-column: span 2; } .col-3 { grid-column: span 3; }
  .col-4 { grid-column: span 4; } .col-5 { grid-column: span 5; } .col-6 { grid-column: span 6; }
  .col-7 { grid-column: span 7; } .col-8 { grid-column: span 8; } .col-9 { grid-column: span 9; }
  .col-10 { grid-column: span 10; } .col-11 { grid-column: span 11; } .col-12 { grid-column: span 12; }
}
@media (min-width: 1024px) {
  .lg-col-1 { grid-column: span 1; } .lg-col-2 { grid-column: span 2; } .lg-col-3 { grid-column: span 3; }
  .lg-col-4 { grid-column: span 4; } .lg-col-5 { grid-column: span 5; } .lg-col-6 { grid-column: span 6; }
  .lg-col-7 { grid-column: span 7; } .lg-col-8 { grid-column: span 8; } .lg-col-9 { grid-column: span 9; }
  .lg-col-10 { grid-column: span 10; } .lg-col-11 { grid-column: span 11; } .lg-col-12 { grid-column: span 12; }
}
/* auto grid: as many --min wide columns as fit; never wider than the screen */
.grid-auto { display: grid; gap: var(--gap, var(--space-4)); grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 260px)), 1fr)); }

.stack { display: flex; flex-direction: column; gap: var(--stack, var(--space-4)); }
.stack-sm { --stack: var(--space-2); }
.stack-lg { --stack: var(--space-6); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cluster, var(--space-3)); }
.cluster-between { justify-content: space-between; }
.cluster-center { justify-content: center; }

/* ---------- 4. TYPE ---------- */
.display { font-size: var(--step-5); line-height: var(--lh-tight); font-weight: 800; letter-spacing: -0.025em; }
.h1 { font-size: var(--h1); line-height: var(--lh-tight); font-weight: 800; letter-spacing: -0.025em; }
.h2 { font-size: var(--h2); line-height: 1.12; letter-spacing: -0.02em; }
.h3 { font-size: var(--h3); }
.lead { font-size: var(--step-1); color: var(--bone-2); line-height: 1.55; }
.small { font-size: var(--step--1); }
.muted { color: var(--muted); }
.accent { color: var(--ember-soft); }
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1em; }
.prose a, .link { color: var(--ember-soft); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover, .link:hover { color: var(--bone); }

/* ---------- 5. NAV ---------- */
.skip-link { position: absolute; left: var(--space-3); top: -60px; z-index: 200; padding: 10px 14px; background: var(--ember-600); color: #fff; border-radius: var(--radius-sm); font-weight: 700; }
.skip-link:focus { top: var(--space-3); }
.nav { position: sticky; top: 0; z-index: 90; background: rgba(13, 13, 18, 0.86); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(1px)) { .nav { background: rgba(13, 13, 18, 0.72); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); } }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: var(--nav-h); }
.logo { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; white-space: nowrap; display: inline-flex; align-items: center; min-height: var(--tap); }
.logo em { font-style: normal; color: var(--ember); }
.nav-links { display: none; align-items: center; gap: var(--space-5); font-size: 16px; font-weight: 600; color: var(--bone-2); }
.nav-links a { display: inline-flex; align-items: center; min-height: var(--tap); transition: color var(--dur-2) var(--ease); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--bone); }
.nav-right { display: flex; align-items: center; gap: var(--space-2); }
.nav .nav-cta { display: none; }
.langtog { display: inline-flex; flex: none; border: 1px solid var(--line-2); border-radius: var(--radius-pill); overflow: hidden; }
.langtog .lt { background: none; border: 0; color: var(--bone-2); font-size: 14px; font-weight: 700; letter-spacing: 0.04em; min-width: var(--tap); min-height: var(--tap); padding: 0 10px; transition: color var(--dur-2) var(--ease), background var(--dur-2) var(--ease); }
.langtog .lt.on, .langtog .lt[aria-pressed="true"] { background: var(--ember-600); color: #fff; }
.nav-burger { display: inline-flex; align-items: center; justify-content: center; width: var(--tap); height: var(--tap); border-radius: var(--radius); border: 1px solid var(--line-2); background: none; color: var(--bone); padding: 0; }
.burger-bars, .burger-bars::before, .burger-bars::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform var(--dur-2) var(--ease), opacity var(--dur-2) var(--ease); }
.burger-bars { position: relative; }
.burger-bars::before, .burger-bars::after { content: ""; position: absolute; left: 0; }
.burger-bars::before { top: -6px; }
.burger-bars::after { top: 6px; }
.nav-burger[aria-expanded="true"] .burger-bars { background: transparent; }
.nav-burger[aria-expanded="true"] .burger-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-burger[aria-expanded="true"] .burger-bars::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 89; max-height: calc(100dvh - var(--nav-h)); overflow-y: auto; overscroll-behavior: contain; background: rgba(13, 13, 18, 0.98); border-bottom: 1px solid var(--line); padding: var(--space-2) var(--gutter) var(--space-5); }
.mobile-menu:not(.open) { display: none; }
.mobile-menu a:not(.btn) { display: flex; flex-direction: column; justify-content: center; min-height: 52px; padding: 10px 2px; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-menu a small { color: var(--muted); font-weight: 400; font-size: 14px; }
.mobile-menu .mm-label { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ember-soft); font-weight: 800; padding: var(--space-4) 0 var(--space-1); }
.mobile-menu .btn { margin-top: var(--space-5); width: 100%; }
@media (min-width: 480px) { .nav .nav-cta { display: inline-flex; } }
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-burger, .mobile-menu { display: none !important; }
}

/* ---------- 6. FOOTER ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: var(--space-7) var(--space-6); color: var(--bone-2); font-size: 16px; }
.footer-grid { display: grid; gap: var(--space-6) var(--space-5); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-brand { grid-column: 1 / -1; max-width: 36ch; }
.footer-brand .logo { color: var(--bone); }
.footer-brand p { margin-top: var(--space-2); color: var(--muted); }
.footer-title { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone); font-weight: 800; margin-bottom: var(--space-2); }
.footer-col a { display: flex; align-items: center; min-height: var(--tap); transition: color var(--dur-2) var(--ease); }
.footer-col a:hover { color: var(--bone); }
.footer-bottom { margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; justify-content: space-between; font-size: var(--step--1); color: var(--muted); }
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: auto; }
}

/* ---------- 7. BUTTONS ---------- */
.btn {
  --btn-h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--btn-h); padding: 0 22px; border-radius: var(--radius);
  border: 1px solid transparent; background: none; color: var(--bone);
  font-size: 16px; font-weight: 700; line-height: 1.1; text-align: center; white-space: nowrap;
  transition: transform var(--dur-1) var(--ease), background-color var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), color var(--dur-2) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary { background: var(--ember-600); color: #fff; box-shadow: var(--shadow-glow); }
.btn-primary:hover { background: var(--ember-700); box-shadow: 0 18px 48px -12px var(--ember-glow); }
.btn-secondary { border-color: var(--ember-line); color: var(--bone); background: var(--ember-tint); }
.btn-secondary:hover { border-color: var(--ember-soft); background: var(--ember-tint-2); }
.btn-ghost { color: var(--bone); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(245, 245, 247, 0.06); border-color: var(--line-strong); }
.btn-link { padding: 0 4px; min-height: var(--tap); color: var(--ember-soft); text-decoration: underline; text-underline-offset: 4px; }
.btn-link:hover { color: var(--bone); }
.btn-sm { --btn-h: 44px; padding: 0 16px; font-size: 16px; border-radius: 10px; }
.btn-lg { --btn-h: 56px; padding: 0 28px; font-size: 17px; border-radius: 14px; }
.btn-block { display: flex; width: 100%; white-space: normal; }
.btn .arrow { transition: transform var(--dur-2) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn.is-loading { pointer-events: none; opacity: 0.75; }
.btn.is-loading::after { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: c-spin 0.7s linear infinite; }
@keyframes c-spin { to { transform: rotate(360deg); } }
@media (max-width: 479px) { .btn-row-stack > .btn { width: 100%; } }

/* ---------- 8. BADGES + PILLS ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 6px; background: var(--surface-2); color: var(--bone-2); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.3; white-space: nowrap; }
.badge-ember { background: var(--ember-tint); color: var(--ember-soft); }
.badge-ok { background: var(--ok-tint); color: var(--ok); }
.badge-warn { background: var(--warn-tint); color: var(--warn); }
.badge-err { background: var(--err-tint); color: var(--err); }
.badge-example { background: transparent; color: var(--warn); border: 1px dashed rgba(251, 191, 36, 0.7); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 40px; padding: 0 16px; border-radius: var(--radius-pill); border: 1px solid var(--line-2); color: var(--bone-2); font-size: 16px; font-weight: 600; background: none; transition: border-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease), background var(--dur-2) var(--ease); }
a.pill:hover, button.pill:hover { color: var(--bone); border-color: var(--line-strong); }
.pill.is-active, .pill[aria-pressed="true"] { background: var(--ember-tint); border-color: var(--ember-line); color: var(--bone); }

/* ---------- 9. CARDS ---------- */
.card { position: relative; display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); border-radius: var(--radius-lg); background: var(--surface-1); border: 1px solid var(--line); }
.card-kicker { font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ember-soft); }
.card-title { font-size: var(--step-1); font-weight: 700; line-height: var(--lh-snug); }
.card-text { color: var(--bone-2); }
.card-foot { margin-top: auto; padding-top: var(--space-2); }
.card-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius); background: var(--ember-tint); color: var(--ember-soft); }
.card-icon svg { width: 22px; height: 22px; }
.card-link { transition: border-color var(--dur-2) var(--ease), background var(--dur-2) var(--ease), transform var(--dur-2) var(--ease); }
.card-link:hover { border-color: var(--ember-line); background: #181724; }
.card-link a.stretch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-link:focus-within { outline: 2px solid var(--ember-soft); outline-offset: 3px; }
.card-link a.stretch:focus-visible { outline: none; }
.card-flat { background: transparent; }
.card-raised { background: var(--surface-2); box-shadow: var(--shadow-2); }

/* ---------- 10. STAT + PROOF TILES ---------- */
.stat { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-5); border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface-1); }
.stat-num { font-size: var(--step-4); font-weight: 800; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat-num .unit { font-size: 0.5em; color: var(--ember-soft); margin-left: 2px; letter-spacing: 0; }
.stat-label { font-weight: 600; color: var(--bone); margin-top: var(--space-2); }
.stat-note { font-size: var(--step--1); color: var(--muted); }

.proof { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); border-radius: var(--radius-lg); background: var(--surface-1); border: 1px solid var(--line); border-left: 3px solid var(--ember); }
.proof-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.proof-who { font-weight: 700; font-size: var(--step-1); line-height: 1.25; }
.proof-where { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: var(--step--1); }
.proof-line { color: var(--bone-2); }
.proof-link { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); color: var(--ember-soft); font-weight: 700; }
.proof-link:hover { color: var(--bone); }

/* ---------- 11. PRICING (three shelves: one-time / monthly / quote) ---------- */
.price-shelves { display: grid; gap: var(--space-6); grid-template-columns: minmax(0, 1fr); }
.shelf { display: flex; flex-direction: column; gap: var(--space-4); }
.shelf-head { display: flex; align-items: baseline; gap: var(--space-2); flex-wrap: wrap; padding-bottom: var(--space-3); border-bottom: 1px solid var(--line); }
.shelf-name { font-size: 14px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ember-soft); }
.shelf-desc { font-size: var(--step--1); color: var(--muted); }
.shelf-cards { display: grid; gap: var(--space-4); }
.price-card { position: relative; display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-6) var(--space-5) var(--space-5); border-radius: var(--radius-lg); background: var(--surface-1); border: 1px solid var(--line); }
.price-card.is-popular { border: 1.5px solid var(--ember); background: linear-gradient(180deg, rgba(120, 92, 255, 0.12), rgba(120, 92, 255, 0.02) 55%), var(--surface-1); box-shadow: var(--shadow-glow); }
.ribbon { position: absolute; top: 0; right: var(--space-5); transform: translateY(-50%); padding: 5px 12px; border-radius: var(--radius-pill); background: var(--ember-600); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; box-shadow: var(--shadow-glow); }
.price-name { font-size: var(--step-1); font-weight: 700; }
.price-for { color: var(--muted); font-size: var(--step--1); margin-top: 2px; }
.price-amount { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 6px; }
.price-num { font-size: var(--price); font-weight: 800; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price-per { color: var(--muted); font-weight: 600; }
.price-note { font-size: var(--step--1); color: var(--muted); }
.price-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); color: var(--bone-2); }
.price-list li { position: relative; padding-left: 26px; }
.price-list li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 14px; height: 8px; border-left: 2px solid var(--ember-soft); border-bottom: 2px solid var(--ember-soft); transform: rotate(-45deg); }
.price-card .btn { margin-top: auto; }
@media (min-width: 1024px) {
  .price-shelves { grid-template-columns: 1fr 2fr 1fr; gap: var(--space-5); align-items: start; }
  .shelf-cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-shelves-even { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 640px) and (max-width: 1023px) { .shelf-cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.shelf-cards { align-items: stretch; }

/* ---------- 12. STEP RAIL ---------- */
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 0; }
.step { position: relative; counter-increment: step; padding: 0 0 var(--space-6) 60px; }
.step::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); border: 1.5px solid var(--ember); color: var(--bone); font-weight: 800; font-variant-numeric: tabular-nums; }
.step::after { content: ""; position: absolute; left: 21px; top: 48px; bottom: 4px; width: 2px; background: linear-gradient(var(--ember-line), var(--line)); }
.step:last-child { padding-bottom: 0; }
.step:last-child::after { display: none; }
.step-when { display: block; font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ember-soft); padding-top: 2px; }
.step-title { font-size: var(--step-1); font-weight: 700; margin-top: 2px; }
.step-text { color: var(--bone-2); margin-top: var(--space-1); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr)); gap: var(--space-5); }
  .step { padding: 64px 0 0; }
  .step::after { left: 52px; right: calc(var(--space-5) * -1 + 8px); top: 21px; bottom: auto; width: auto; height: 2px; background: linear-gradient(90deg, var(--ember-line), var(--line)); }
}

/* ---------- 13. FAQ (details/summary) ---------- */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 60px; padding: var(--space-4) 0; font-weight: 600; font-size: var(--step-1); cursor: pointer; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); background:
  linear-gradient(var(--bone), var(--bone)) center / 12px 2px no-repeat,
  linear-gradient(var(--bone), var(--bone)) center / 2px 12px no-repeat; transition: transform var(--dur-2) var(--ease), background-color var(--dur-2) var(--ease); }
.faq-item[open] > summary::after { transform: rotate(45deg); background-color: var(--ember-tint-2); }
.faq-item > summary:hover { color: var(--ember-soft); }
.faq-body { padding: 0 44px var(--space-5) 0; color: var(--bone-2); }
.faq-item[open] .faq-body { animation: c-fade-down var(--dur-3) var(--ease-out); }
@keyframes c-fade-down { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- 14. FORMS ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-weight: 600; font-size: 16px; }
.field-label .opt { color: var(--muted); font-weight: 400; }
.field-hint { font-size: var(--step--1); color: var(--muted); }
.field-error { font-size: var(--step--1); color: var(--err); display: none; }
.field.is-invalid .field-error { display: block; }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--bone);
  font-size: 16px; /* 16px stops iOS zoom-on-focus */ line-height: 1.4;
  transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.textarea { min-height: 120px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: #8A8A93; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ember-soft); box-shadow: 0 0 0 3px var(--ember-tint-2); }
.field.is-invalid .input, .field.is-invalid .select, .field.is-invalid .textarea, .input[aria-invalid="true"] { border-color: var(--err); }
.select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--bone-2) 50%), linear-gradient(135deg, var(--bone-2) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.check { display: flex; align-items: flex-start; gap: var(--space-3); min-height: var(--tap); padding: 10px 0; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin-top: 1px; accent-color: var(--ember-600); }
/* big tappable choices (radio/checkbox styled as tiles) */
.choices { display: grid; gap: var(--space-2); grid-template-columns: minmax(0, 1fr); border: 0; padding: 0; }
@media (min-width: 480px) { .choices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.choice { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: flex; align-items: center; min-height: 56px; padding: 12px 16px 12px 48px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--surface-2); font-weight: 600; position: relative; transition: border-color var(--dur-2) var(--ease), background var(--dur-2) var(--ease); }
.choice span::before { content: ""; position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 6px; border: 1.5px solid var(--line-strong); background: var(--void); }
.choice input[type="radio"] + span::before { border-radius: 50%; }
.choice input:checked + span { border-color: var(--ember-soft); background: var(--ember-tint); }
.choice input:checked + span::before { border-color: var(--ember-soft); background: var(--ember-600); box-shadow: inset 0 0 0 4px var(--surface-2); }
.choice input:focus-visible + span { outline: 2px solid var(--ember-soft); outline-offset: 2px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* multi-step form shell */
.msf { display: flex; flex-direction: column; gap: var(--space-5); padding: var(--space-5); border-radius: var(--radius-xl); background: var(--surface-1); border: 1px solid var(--line); }
.msf-progress { display: flex; flex-direction: column; gap: var(--space-2); }
.msf-count { font-size: var(--step--1); color: var(--muted); font-weight: 600; }
.msf-bar { height: 6px; border-radius: var(--radius-pill); background: var(--surface-3); overflow: hidden; }
.msf-bar > i { display: block; height: 100%; width: var(--progress, 33%); background: linear-gradient(90deg, var(--ember-600), var(--ember-soft)); border-radius: inherit; transition: width var(--dur-3) var(--ease-out); }
.msf-step { border: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.msf-step > legend { font-size: var(--step-2); font-weight: 700; line-height: var(--lh-snug); padding: 0; margin-bottom: var(--space-4); }
.js .msf .msf-step:not(.is-active) { display: none; }
.msf-nav { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.msf-nav .btn-primary { flex: 1 1 auto; }
.form-status { font-size: 16px; }
.form-status > [data-state] { display: none; padding: 14px 16px; border-radius: var(--radius); }
.form-status[data-show="sending"] > [data-state="sending"] { display: block; color: var(--bone-2); background: var(--surface-2); }
.form-status[data-show="ok"] > [data-state="ok"] { display: block; color: var(--bone); background: var(--ok-tint); border: 1px solid rgba(52, 211, 153, 0.45); }
.form-status[data-show="err"] > [data-state="err"] { display: block; color: var(--bone); background: var(--err-tint); border: 1px solid rgba(248, 113, 113, 0.5); }
.form-status strong { display: block; }
.msf.is-done .msf-step, .msf.is-done .msf-nav, .msf.is-done .msf-progress { display: none; }
@media (min-width: 640px) { .msf { padding: var(--space-6); } }

/* ---------- 15. TABLES (stacked rows on phones) ---------- */
.table-wrap { border-radius: var(--radius-lg); border: 1px solid var(--line); overflow: hidden; }
.table { width: 100%; font-size: 16px; text-align: left; }
.table caption { text-align: left; padding: var(--space-4); font-weight: 700; caption-side: top; }
.table th, .table td { padding: 14px 16px; vertical-align: top; }
.table thead th { background: var(--surface-2); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bone-2); font-weight: 800; }
.table tbody tr { border-top: 1px solid var(--line); }
.table tbody th { font-weight: 700; }
.table td { color: var(--bone-2); }
.table .yes { color: var(--ok); font-weight: 700; }
.table .no { color: var(--err); font-weight: 700; }
.table .hl { background: rgba(120, 92, 255, 0.07); color: var(--bone); }
@media (max-width: 639px) {
  .table-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .table-stack, .table-stack tbody, .table-stack tr, .table-stack th, .table-stack td { display: block; width: 100%; }
  .table-stack tbody tr { padding: var(--space-2) 0; }
  .table-stack tbody th { padding: 12px 16px 6px; font-size: var(--step-1); }
  .table-stack td { display: flex; align-items: baseline; gap: 6px; padding: 8px 16px; }
  .table-stack td::before { content: attr(data-label); flex: 0 0 7.5em; margin-right: 6px; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
  .table-stack .hl { background: none; }
}

/* ---------- 16. PHONE MOCKUP + CHAT ---------- */
.phone { position: relative; width: min(320px, 100%); margin-inline: auto; aspect-ratio: 9 / 18.5; border-radius: 46px; padding: 10px; background: linear-gradient(160deg, #2A2937, #121119 60%); box-shadow: var(--shadow-3), inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 16px; background: #000; z-index: 2; }
.phone-screen { position: relative; height: 100%; border-radius: 37px; overflow: hidden; background: #0F0F16; display: flex; flex-direction: column; }
.chat-head { display: flex; align-items: center; gap: var(--space-3); padding: 56px 16px 12px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.chat-avatar { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ember-600); color: #fff; font-weight: 800; font-size: 16px; }
.chat-name { font-weight: 700; font-size: 16px; line-height: 1.2; }
.chat-status { font-size: 13px; color: var(--ok); display: flex; align-items: center; gap: 5px; }
.chat-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chat { flex: 1; display: flex; flex-direction: column; gap: var(--space-2); padding: 14px 12px 18px; overflow: hidden; font-size: 15px; line-height: 1.4; }
.chat-time { align-self: center; font-size: 13px; color: var(--muted); padding: 4px 0; }
.bubble { max-width: 84%; padding: 9px 13px; border-radius: 18px; }
.bubble-desk { align-self: flex-start; background: var(--surface-3); color: var(--bone); border-bottom-left-radius: 6px; }
.bubble-customer { align-self: flex-end; background: var(--ember-600); color: #fff; border-bottom-right-radius: 6px; }
.bubble-note { align-self: stretch; display: flex; gap: var(--space-2); align-items: flex-start; padding: 10px 12px; border-radius: var(--radius); background: var(--ok-tint); border: 1px solid rgba(52, 211, 153, 0.4); color: var(--bone); font-size: 14px; }
.bubble-note::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--ok); }
.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 18px; border-bottom-left-radius: 6px; background: var(--surface-3); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--bone-2); animation: c-typing 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes c-typing { 0%, 60%, 100% { opacity: 0.35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
/* chat outside a phone frame (inline transcript) */
.chat-card { border-radius: var(--radius-lg); border: 1px solid var(--line); background: #0F0F16; }

/* ---------- 17. SECTION HEADER ---------- */
.sec-head { display: flex; flex-direction: column; gap: var(--space-3); max-width: 720px; margin-bottom: var(--space-7); }
.sec-head.center { margin-inline: auto; text-align: center; align-items: center; }
.kicker, .eyebrow { display: inline-flex; align-items: center; gap: var(--space-2); font-size: 14px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ember-soft); }
.kicker::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--ember); }
.sec-head.center .kicker::before { display: none; }
.headline { font-size: var(--h2); line-height: 1.1; letter-spacing: -0.02em; font-weight: 800; }
.sub { font-size: var(--step-1); color: var(--bone-2); line-height: 1.5; max-width: 60ch; }

/* ---------- 18. HERO (3D/video slot + static poster fallback) ---------- */
.hero { position: relative; overflow: hidden; padding-block: var(--space-7) var(--section-y); isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -1; top: -30%; left: 50%; width: min(1000px, 200vw); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(120, 92, 255, 0.22), rgba(120, 92, 255, 0.05) 45%, transparent 68%); pointer-events: none; }
.hero-grid { display: grid; gap: var(--space-7); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: var(--space-5); }
.hero-title { font-size: var(--h1); line-height: var(--lh-tight); font-weight: 800; letter-spacing: -0.03em; }
.hero-title .hl { color: var(--ember-soft); }
.hero-sub { font-size: var(--step-1); color: var(--bone-2); max-width: 44ch; }
.hero-proof { font-size: var(--step--1); color: var(--muted); }
.hero-media { position: relative; width: 100%; aspect-ratio: var(--hero-ratio, 4 / 3); border-radius: var(--radius-xl); overflow: hidden; background: radial-gradient(120% 90% at 50% 20%, rgba(120, 92, 255, 0.35), transparent 60%), var(--surface-1); border: 1px solid var(--line); contain: layout paint; }
.hero-poster, .hero-stage, .hero-stage > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-poster { object-fit: cover; }
.hero-stage > video, .hero-stage > img { object-fit: cover; }
.hero-stage { opacity: 0; transition: opacity var(--dur-3) var(--ease); }
.hero-media.is-ready .hero-stage { opacity: 1; }
.hero-media.is-ready .hero-poster { visibility: hidden; transition: visibility 0s var(--dur-3); }
@media (min-width: 960px) {
  .hero { padding-top: var(--space-8); }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .hero-media { --hero-ratio: 1 / 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-stage { display: none; }
  .hero-media.is-ready .hero-poster { visibility: visible; }
}

/* ---------- 19. MOTION + REVEAL ---------- */
.js .reveal { opacity: 0; transform: translateY(var(--reveal-y)); transition: opacity 480ms var(--ease-out), transform 480ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- 20. UTILITIES ---------- */
.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; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: var(--space-2); } .mt-4 { margin-top: var(--space-4); } .mt-6 { margin-top: var(--space-6); } .mt-8 { margin-top: var(--space-8); }
.divider { height: 1px; background: var(--line); border: 0; margin-block: var(--space-6); }
.nowrap { white-space: nowrap; }
html[lang="es"] [data-lang-only="en"], html:not([lang="es"]) [data-lang-only="es"] { display: none !important; }

/* ---------- 21. FLOW (2026-09-26, flow build; deck 5.6) ---------- */
/* A. "Next" kicker: last child of a section's .container, names the next beat as the visitor's question.
      It takes the place of the section's bottom padding (a hand-off bar at the section's foot), so a page gets no longer. */
.beat-next { display: flex; align-items: center; gap: var(--space-2); min-height: var(--tap); margin-top: var(--space-6); padding-top: var(--space-2); border-top: 1px solid var(--line); font: 800 13px/1.3 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ember-soft); }
@media (max-width: 639px) { .beat-next { margin-top: var(--space-5); font-size: 13px; letter-spacing: 0.08em; } }
.grid > .beat-next { margin-top: calc(var(--space-5) - var(--gap, var(--space-4))); }   /* in a grid, the row gap already spaces it */
.beat-next > span:first-child { flex: none; color: var(--muted); }
.beat-next::after { content: "↓"; margin-left: auto; padding-left: var(--space-3); font-size: 16px; letter-spacing: 0; transition: transform var(--dur-2) var(--ease); }
.beat-next:hover { color: var(--bone); }
.beat-next:hover::after, .beat-next:focus-visible::after { transform: translateY(3px); }
.section-alt .beat-next { border-top-color: var(--ember-line); }
.section:has(> .container > .beat-next:last-child), .section-tight:has(> .container > .beat-next:last-child) { padding-bottom: var(--space-3); }

/* B. Exit rail: the ladder stays on screen once the page's own ladder and form are off screen (centera.js sets data-off).
      Desktop: centred at the bottom, between the walk dock (bottom-left) and the chat pill (bottom-right).
      Below 900px: a full-width bottom bar; the chat pill and the walk pill move up above it. */
.exit-rail { --rail-h: 58px; position: fixed; z-index: 79; left: 50%; bottom: calc(var(--gutter) + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: var(--space-2); padding: 6px; background: rgba(13, 13, 18, 0.94); border: 1px solid var(--line-2); border-radius: var(--radius-pill); box-shadow: var(--shadow-3); transform: translateX(-50%); transition: transform var(--dur-3) var(--ease-out), opacity var(--dur-3) var(--ease-out), visibility var(--dur-3); }
@supports (backdrop-filter: blur(1px)) { .exit-rail { background: rgba(13, 13, 18, 0.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); } }
.exit-rail[data-off] { transform: translate(-50%, 160%); opacity: 0; visibility: hidden; pointer-events: none; }
.exit-rail .btn { --btn-h: 40px; padding: 0 16px; font-size: 15px; border-radius: var(--radius-pill); box-shadow: none; }
.exit-rail .link { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 12px 0 4px; font-size: 15px; font-weight: 700; white-space: nowrap; }
html.wk-sheet .exit-rail { display: none; }
@media (max-width: 1199px) { html:has(.wk.wk-open) .exit-rail { display: none; } }
@media (max-width: 899px) {
  .exit-rail { left: 0; right: 0; bottom: 0; transform: none; border-radius: 0; border-width: 1px 0 0; padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom, 0px)); }
  .exit-rail[data-off] { transform: translateY(110%); }
  .exit-rail .btn { flex: 1 1 0; min-width: 0; white-space: normal; line-height: 1.15; }
  .exit-rail .btn ~ .btn ~ .link { display: none; }
  html.rail-on .cw-launch, html.rail-on .wk:not(.wk-open) { bottom: calc(58px + 10px + env(safe-area-inset-bottom, 0px)); }
  html.rail-on .site-footer { padding-bottom: calc(var(--space-6) + 58px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .exit-rail { transition: none; } }

/* Demo-shop gallery (home #build, /work): six made-up shops in browser frames, each tagged "Demo shop" */
.shots-row { display: flex; gap: var(--space-4); margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) var(--space-3); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); }
/* ul[role="list"] (0,1,1) zeroes the padding above: restore the phone gutter so the first card doesn't sit on the screen edge */
@media (max-width: 767px) { .shots-row[role="list"] { padding: 4px var(--gutter) var(--space-3); } }
.shots-row > li { flex: 0 0 80vw; max-width: 380px; scroll-snap-align: start; display: flex; }
.shot-card { flex: 1; padding: var(--space-4); gap: var(--space-3); }
.shot-card .card-title { font-size: var(--step-0); }
.shot-media { position: relative; }
.bframe { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); background: #0F0F16; box-shadow: var(--shadow-2); }
.bframe-bar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 6px 0 10px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.bframe-bar > i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.bframe-bar .badge { margin-left: auto; padding: 2px 7px; font-size: 12px; }
.bframe img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; object-position: top; }
.shot-phone { display: none; }
@media (min-width: 768px) {
  .shots-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); margin-inline: 0; padding: 0; overflow: visible; }
  .shots-row > li { max-width: none; }
  .shot-media--phone { padding: 0 10px 30px 0; }
  .shot-phone { display: block; position: absolute; right: 0; bottom: 0; width: 23%; height: auto; aspect-ratio: 390 / 760; object-fit: cover; object-position: top; border-radius: 12px; border: 3px solid #2A2937; background: #0F0F16; box-shadow: var(--shadow-3); }
}
@media (min-width: 1024px) { .shots-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Forms: an empty required phone says "Please fill this in." before the format message (centera.js sets .is-empty) */
.field.is-invalid.is-empty .field-error[data-err="format"], .field.is-invalid:not(.is-empty) .field-error[data-err="required"] { display: none; }
