/* ===== Beryl landing — design tokens (from app src/theme/tokens.js, light) ===== */
:root {
  --bg: #f0f4ec;
  --surface: #ffffff;
  --surface2: #e3ecdb;
  --surface-soft: #fbfdf9;
  --ink: #16291f;
  --ink2: #4d6557;
  --ink3: #88998f;
  --line: #d2dec8;
  --accent: #3fae5e;
  --accent-dark: #2f9a4e;
  --accent-ink: #ffffff;
  --accent2: #e8a13d;
  --pos: #3fae5e;
  --neg: #d65a4a;
  --chip1: #cfe5c8;
  --chip4: #f3d4c6;

  --r-sm: 10px; --r-md: 16px; --r-lg: 22px; --r-xl: 28px; --r-pill: 999px;
  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --maxw: 1100px;
  --shadow-sm: 0 4px 14px rgba(20,40,24,.06);
  --shadow-md: 0 14px 34px rgba(20,40,24,.12);
  --shadow-lg: 0 24px 60px rgba(20,40,24,.16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; color: var(--ink); }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--accent); }
.muted { color: var(--ink2); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* alternating section backgrounds */
.bg-surface { background: var(--surface); }
.bg-soft { background: var(--surface-soft); }

/* skip link (a11y) */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--r-sm) 0; z-index: 100; }
.skip-link:focus { left: 0; }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-display); font-weight: 700; border-radius: var(--r-pill); padding: 13px 22px; border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, background .12s ease, box-shadow .12s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-sm); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ===== Nav ===== */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(240,244,236,.85); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease; }
.nav.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-word { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { font-weight: 600; font-size: 15px; color: var(--ink2); }
.nav-links a:hover { color: var(--ink); }
.nav-links a.btn { color: var(--accent-ink); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.accent { color: var(--accent); }
.hero { background: linear-gradient(165deg, var(--bg) 0%, var(--surface2) 100%); padding: 56px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(34px, 7vw, 56px); margin: 14px 0 0; }
.hero-sub { font-size: clamp(15px, 2.4vw, 19px); color: var(--ink2); max-width: 30em; margin-top: 16px; }
.hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 26px; }
.store-badge { display: inline-block; transition: transform .12s ease; }
.store-badge:hover { transform: translateY(-2px); }
.ios-soon { color: var(--ink3); font-size: 14px; font-weight: 500; }
.trust-line { margin-top: 18px; color: var(--ink2); font-size: 14px; }

/* ===== Phone mockup (reused — recreates the real app screens) ===== */
.hero-art, .advisor-art { display: flex; justify-content: center; }
/* iPhone-style frame */
.phone { width: 280px; max-width: 80vw; background: #0b0f0d; border-radius: 54px; padding: 11px; box-shadow: var(--shadow-lg); position: relative; }
/* side buttons: power (right), volume pair (left) */
.phone::before { content: ""; position: absolute; right: -2px; top: 132px; width: 3px; height: 60px; background: #05070a; border-radius: 2px; }
.phone::after { content: ""; position: absolute; left: -2px; top: 104px; width: 3px; height: 34px; background: #05070a; border-radius: 2px; box-shadow: 0 -42px 0 #05070a, 0 48px 0 #05070a; }
/* Dynamic Island */
.phone-notch { position: absolute; top: 17px; left: 50%; transform: translateX(-50%); width: 88px; height: 25px; background: #05070a; border-radius: 999px; z-index: 4; }
.phone-screen { background: var(--bg); border-radius: 44px; overflow: hidden; height: 540px; position: relative; }
/* home indicator */
.phone-screen::after { content: ""; position: absolute; left: 50%; bottom: 7px; transform: translateX(-50%); width: 110px; height: 5px; border-radius: 3px; background: rgba(20, 40, 24, .28); z-index: 6; pointer-events: none; }

/* Home screen */
.homescr .scr { display: flex; flex-direction: column; gap: 11px; padding: 36px 13px 13px; }
.scr-head { display: flex; align-items: center; justify-content: space-between; }
.scr-head .who { display: flex; align-items: center; gap: 9px; }
.scr-head .hi { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--ink); }
.scr-head .day { font-size: 11px; color: var(--ink2); margin-top: 1px; }
.scr-ibtns { display: flex; gap: 6px; }
.ibtn { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.nw-card { background: var(--surface); border: 1.5px solid var(--line); border-radius: 22px; padding: 16px; }
.nw-top { display: flex; justify-content: space-between; align-items: flex-start; }
.nw-label { font-size: 10px; font-weight: 700; color: var(--ink2); letter-spacing: .02em; }
.nw-fig { font-family: var(--font-display); font-weight: 800; font-size: 28px; letter-spacing: -.03em; margin-top: 2px; color: var(--ink); }
.nw-delta { display: flex; align-items: center; gap: 6px; margin-top: 5px; }
.nw-delta .chip { background: var(--chip1); color: var(--pos); font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.nw-delta .vs { font-size: 10px; color: var(--ink2); }
.nw-spark { width: 100%; height: 52px; margin: 10px 0 8px; display: block; }
.nw-pills { display: flex; gap: 5px; }
.nw-pill { flex: 1; text-align: center; font-size: 10px; font-weight: 600; padding: 5px 0; border-radius: 999px; border: 1px solid var(--line); color: var(--ink2); }
.nw-pill.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.read-card { background: var(--ink); border-radius: 22px; padding: 14px; position: relative; overflow: hidden; }
.read-card .blob { position: absolute; right: -22px; top: -22px; width: 96px; height: 96px; border-radius: 50%; background: var(--accent); opacity: .25; }
.read-tag { position: relative; font-size: 9px; font-weight: 700; letter-spacing: .06em; color: var(--accent); }
.read-text { position: relative; margin-top: 8px; font-family: var(--font-display); font-weight: 600; font-size: 13px; line-height: 1.5; color: var(--bg); }
.stat-row { display: flex; gap: 10px; }
.stat { flex: 1; border-radius: 16px; padding: 12px; }
.stat.inc { background: var(--chip1); }
.stat.spent { background: var(--chip4); }
.stat .lbl { font-size: 9px; font-weight: 700; color: var(--ink2); letter-spacing: .02em; }
.stat .amt { font-family: var(--font-display); font-weight: 800; font-size: 17px; margin-top: 3px; color: var(--ink); }

/* Chat screen */
.chatscr { display: flex; flex-direction: column; }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 34px 12px 11px; background: var(--surface); border-bottom: 1px solid var(--line); }
.chat-head .b-id { display: flex; align-items: center; gap: 8px; }
.b-badge { width: 28px; height: 28px; border-radius: 14px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.b-title { font-family: var(--font-display); font-weight: 700; font-size: 12.5px; color: var(--ink); }
.b-sub { font-size: 9.5px; color: var(--ink2); }
.chat-body { flex: 1; display: flex; flex-direction: column; gap: 9px; padding: 13px; overflow: hidden; }
.cb { font-size: 12px; line-height: 1.45; padding: 9px 12px; border-radius: 16px; max-width: 86%; }
.cb.bot { background: var(--surface); border: 1px solid var(--line); color: var(--ink); align-self: flex-start; border-bottom-left-radius: 4px; }
.cb.user { background: var(--accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; font-weight: 500; }
.pcard { align-self: flex-start; max-width: 92%; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; border-bottom-left-radius: 4px; padding: 11px; display: flex; flex-direction: column; gap: 8px; }
.pcard .badge { font-size: 9px; font-weight: 700; color: var(--ink2); text-transform: uppercase; letter-spacing: .04em; }
.pcard .ptitle { font-size: 12px; font-weight: 700; color: var(--ink); }
.prow { display: flex; gap: 8px; align-items: flex-start; }
.pcheck { flex: 0 0 auto; width: 17px; height: 17px; border-radius: 5px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.prow .t { font-size: 11.5px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.pacts { display: flex; gap: 8px; margin-top: 2px; }
.pacts span { flex: 1; text-align: center; font-size: 11px; font-weight: 700; border-radius: 10px; padding: 8px; }
.pacts .cancel { color: var(--ink2); border: 1px solid var(--line); font-weight: 600; }
.pacts .apply { color: #fff; background: var(--accent); }
.composer { display: flex; align-items: center; gap: 8px; margin: 0 12px 14px; padding: 6px 6px 6px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; }
.composer .ph { flex: 1; font-size: 12px; color: var(--ink3); }
.composer .send { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; }

/* ===== Logo strip ===== */
.logostrip { background: var(--surface-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; }
.logostrip-label { text-align: center; color: var(--ink3); font-size: 13px; font-weight: 600; }
.logo-row { list-style: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px 36px; margin-top: 18px; }
.logo-row img { height: 26px; width: auto; filter: grayscale(1); opacity: .55; transition: opacity .15s ease, filter .15s ease; }
.logo-row li:hover img { filter: grayscale(0); opacity: 1; }
.logo-more { color: var(--ink3); font-weight: 600; font-size: 14px; }

/* ===== Advisor ===== */
.advisor-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.advisor h2 { font-size: clamp(26px, 4.5vw, 40px); }
.lead { color: var(--ink2); font-size: 17px; margin-top: 14px; max-width: 34em; }
.ticklist { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.ticklist li { position: relative; padding-left: 26px; color: var(--ink); font-style: italic; }
.ticklist li::before { content: ""; position: absolute; left: 0; top: 9px; width: 12px; height: 12px; border-radius: 50%; background: var(--chip1); border: 2px solid var(--accent); }
/* (advisor chat mockup styles live in the Phone mockup block above) */

/* ===== BYOK (bring your own AI key) ===== */
.byok-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.byok h2 { font-size: clamp(26px, 4.5vw, 38px); }
.byok-points { list-style: none; margin-top: 20px; display: grid; gap: 13px; }
.byok-points li { position: relative; padding-left: 32px; color: var(--ink2); font-size: 15px; line-height: 1.5; }
.byok-points li b { color: var(--ink); font-weight: 700; }
.byok-points .pico { position: absolute; left: 0; top: 0; font-size: 17px; line-height: 1.4; }
.byok-providers { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.prov-chip { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 9px 16px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-sm); }

/* Settings-card mockup */
.byok-art { display: flex; justify-content: center; }
.set-card { width: 350px; max-width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 20px; box-shadow: var(--shadow-md); }
.set-h { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--ink); }
.mode-row { display: flex; gap: 8px; margin: 12px 0 4px; }
.mode { flex: 1; border: 1px solid var(--line); border-radius: 12px; padding: 11px; text-align: center; font-size: 12px; font-weight: 700; color: var(--ink2); background: var(--surface); }
.mode.on { border-color: var(--accent); background: var(--chip1); color: var(--ink); }
.set-lbl { font-size: 11px; color: var(--ink3); margin: 14px 0 6px; }
.prov-row { display: flex; gap: 6px; }
.prov-opt { flex: 1; text-align: center; font-size: 11.5px; font-weight: 700; padding: 9px 0; border-radius: 10px; border: 1px solid var(--line); background: var(--surface2); color: var(--ink); }
.prov-opt.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.key-field { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; background: var(--bg); }
.key-field .mono { font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--ink2); letter-spacing: .04em; }
.key-field .ok { font-size: 11px; font-weight: 700; color: var(--pos); white-space: nowrap; }
.set-note { font-size: 10.5px; color: var(--ink3); margin-top: 12px; line-height: 1.5; }

/* ===== Section head ===== */
.section-head { text-align: center; max-width: 40em; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(26px, 4.5vw, 38px); margin: 10px 0 8px; }

/* ===== Features ===== */
.feature-grid { list-style: none; display: grid; grid-template-columns: 1fr; gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.ficon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r-md); background: var(--chip1); font-size: 22px; }
.feature h3 { font-size: 17px; margin: 14px 0 6px; }
.feature p { color: var(--ink2); font-size: 14px; }

/* ===== Steps ===== */
.steps { list-style: none; display: grid; grid-template-columns: 1fr; gap: 24px; max-width: 720px; margin: 0 auto; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.step-num { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-family: var(--font-display); font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--ink2); font-size: 15px; }

/* ===== Beryl+ compare ===== */
.compare { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 820px; margin: 0 auto; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 28px; position: relative; }
.plan h3 { font-size: 22px; margin-bottom: 16px; }
.plan-list { list-style: none; display: grid; gap: 11px; margin-bottom: 22px; }
.plan-list li { position: relative; padding-left: 28px; color: var(--ink2); font-size: 15px; }
.plan-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 19px; height: 19px; background: var(--accent); color: #fff; border-radius: 50%; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.plan .btn { width: 100%; }
.plan-featured { border-color: var(--accent); box-shadow: var(--shadow-md); }
.plan-flag { position: absolute; top: -12px; left: 28px; background: var(--accent); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 12px; padding: 5px 12px; border-radius: var(--r-pill); }

/* ===== Trust ===== */
.trust-inner { text-align: center; max-width: 44em; margin: 0 auto; }
.trust-icon { font-size: 38px; margin-bottom: 10px; }
.trust h2 { font-size: clamp(24px, 4vw, 34px); margin-bottom: 12px; }

/* ===== FAQ ===== */
.faq-wrap { max-width: 760px; margin: 0 auto; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 12px; overflow: hidden; }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 20px; font-family: var(--font-display); font-weight: 700; font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-size: 22px; font-weight: 700; transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 20px 18px; color: var(--ink2); font-size: 15px; }

/* ===== Final CTA ===== */
.finalcta { background: linear-gradient(165deg, var(--surface2), var(--bg)); padding: 72px 0; text-align: center; }
.finalcta h2 { font-size: clamp(28px, 5vw, 42px); }
.finalcta p { color: var(--ink2); margin: 12px 0 26px; font-size: 17px; }

/* ===== Footer ===== */
.footer { background: var(--ink); color: #cdd9d0; padding: 40px 0; }
.footer-inner { display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; }
.footer-word { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.footer-links a { color: #9bb3a4; font-size: 14px; font-weight: 600; }
.footer-links a:hover { color: #fff; }
.footer-fine { color: #6f8a7b; font-size: 12.5px; max-width: 42em; }

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
/* If JS never runs, reveal items must still be visible */
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero-art .phone { transform: none !important; }
}

/* ===== Interactive hero phone (mouse tilt / parallax) ===== */
.hero-art { perspective: 1100px; }
.hero-art .phone {
  transition: transform .25s ease-out;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  will-change: transform;
}
/* While actively pointing, drop the easing so it tracks the cursor 1:1. */
.hero-art.is-tilting .phone { transition: transform .05s linear; }
.hero-art .phone-screen { transform: translateZ(28px); }
/* keep the Dynamic Island in front of the 3D-lifted screen in the hero */
.hero-art .phone-notch { transform: translateX(-50%) translateZ(40px); }

/* Tools grid in the mockup */
.tools-head { font-size: 12px; font-weight: 700; color: var(--ink2); margin-top: 2px; }
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tool { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; font-size: 10px; font-weight: 700; color: var(--ink); }
.tool .ti { width: 34px; height: 34px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 17px; }

/* Scroll-driven inner scroll of the hero phone (set by JS) */
.homescr .scr { transform: translateY(calc(-1 * var(--scroll, 0px))); will-change: transform; }
@media (min-width: 960px) {
  .hero.pinnable .hero-grid { position: sticky; top: 88px; }
}

/* Bottom tab bar in the mockup */
.homescr .scr { padding-bottom: 64px; }
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-around; padding: 9px 8px 13px; background: var(--surface); border-top: 1px solid var(--line); }
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; flex: 1; font-size: 9px; font-weight: 700; color: var(--ink3); }
.tab svg { width: 20px; height: 20px; }
.tab.on { color: var(--accent); }
.tab-add { flex: 0 0 auto; justify-content: flex-end; }
.tab-add .fab { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; margin-top: -16px; box-shadow: 0 6px 14px rgba(63, 174, 94, .4); }
.tab-add .fab svg { width: 22px; height: 22px; }

/* ===== Animated advisor chat ===== */
.cbin { animation: cbin .3s ease-out both; }
@keyframes cbin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.cb.typing { display: inline-flex; gap: 4px; align-items: center; padding: 11px 13px; }
.cb.typing .d { width: 6px; height: 6px; border-radius: 50%; background: var(--ink3); animation: cbdot 1s infinite ease-in-out; }
.cb.typing .d:nth-child(2) { animation-delay: .15s; }
.cb.typing .d:nth-child(3) { animation-delay: .3s; }
@keyframes cbdot { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
.composer.typing .ph { color: var(--ink); }
.composer .caret { display: inline-block; width: 1.5px; height: 13px; background: var(--accent); margin-left: 1px; vertical-align: -2px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
/* breakdown card rows */
.bd-row { display: flex; align-items: center; gap: 8px; }
.bd-row .bl { font-size: 11px; font-weight: 600; color: var(--ink); flex: 0 0 86px; }
.bd-row .bbar { flex: 1; height: 7px; border-radius: 4px; background: var(--line); overflow: hidden; }
.bd-row .bbar > span { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.bd-row .ba { font-size: 11px; font-weight: 700; color: var(--ink2); flex: 0 0 auto; }

/* ===== Responsive ===== */
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px; box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 4px; }
  .nav-links a.btn { margin-top: 8px; }
}

@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .compare { grid-template-columns: repeat(2, 1fr); align-items: start; }
}

@media (min-width: 960px) {
  .section { padding: 88px 0; }
  .hero { padding: 80px 0 96px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 48px; }
  .advisor-grid { grid-template-columns: .95fr 1.05fr; gap: 56px; }
  .byok-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; }
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
  .phone { width: 300px; }
}

/* ===== Legal pages (terms / privacy) ===== */
.legal { padding: 48px 0 72px; }
.legal-wrap { max-width: 760px; }
.legal-back { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 14px; margin-bottom: 18px; }
.legal-back:hover { color: var(--accent-dark); }
.legal h1 { font-size: clamp(28px, 5vw, 38px); }
.legal-date { color: var(--ink3); font-size: 13px; margin-top: 8px; }
.legal-intro { color: var(--ink2); font-size: 16px; margin-top: 18px; line-height: 1.7; }
.legal-sec { margin-top: 28px; }
.legal-sec h2 { font-size: 19px; }
.legal-sec p { color: var(--ink2); font-size: 15px; margin-top: 8px; line-height: 1.7; }
.legal-sec a { color: var(--accent); text-decoration: underline; }
.legal-note { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink3); font-size: 13px; line-height: 1.6; }
.legal-xref { margin-top: 16px; font-size: 14px; }
.legal-xref a { color: var(--accent); font-weight: 600; }
