/* Keepneur website. Colours and type follow docs/DESIGN.md section 11. */
:root {
  --black: #0a0a0b;
  --card: #141416;
  --card-2: #111113;
  --emerald: #0f5c43;
  --emerald-hi: #12704f;
  --emerald-line: #1f3a2f;
  --emerald-soft: #2e7d5f;
  --emerald-card: #0e1512;
  --ivory: #e9e1cc;
  --ivory-hi: #f5f1e6;
  --text: #f5f5f4;
  --muted: #9a9a9f;
  --faint: #6d6d73;
  --line: #26262a;
  --line-soft: #1c1c1f;
  --radius: 22px;
  --max: 1160px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--black); color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01";
}
img, svg { max-width: 100%; display: block; }
a { color: var(--ivory); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ivory-hi); }
:focus-visible { outline: 2px solid var(--ivory); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--emerald); color: var(--ivory-hi); }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ivory); color: var(--black); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 860px; }
section { padding: 120px 0; position: relative; }
.rule-top { border-top: 1px solid var(--line-soft); }
.tint { background: var(--emerald-card); border-block: 1px solid var(--emerald-line); }

/* Type */
.eyebrow {
  margin: 0; display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; color: var(--ivory);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--ivory); opacity: 0.6; }
.eyebrow .n { color: var(--faint); font-variant-numeric: tabular-nums; }
h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -0.03em; line-height: 1.08; }
h1 { font-size: clamp(42px, 6.4vw, 80px); font-weight: 300; letter-spacing: -0.04em; }
h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 300; letter-spacing: -0.035em; }
h3 { font-size: 19px; letter-spacing: -0.012em; line-height: 1.3; font-weight: 600; }
h1 em, h2 em { font-style: normal; color: var(--ivory); }
p { margin: 0; }
.lead { font-size: clamp(17px, 1.9vw, 20px); line-height: 1.6; color: var(--muted); max-width: 40em; }
.lead strong, .muted strong { color: var(--text); font-weight: 500; }
.muted { color: var(--muted); }
.section-head { max-width: 720px; margin-bottom: 56px; display: flex; flex-direction: column; gap: 20px; }
.fine { font-size: 14px; line-height: 1.6; color: var(--muted); margin-top: 20px; max-width: 70ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 28px; border-radius: 14px; border: 1px solid transparent;
  font: inherit; font-size: 16px; font-weight: 600; letter-spacing: -0.005em; text-decoration: none; cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn-primary { background: var(--emerald); color: var(--ivory-hi); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.btn-primary:hover { background: var(--emerald-hi); color: var(--ivory-hi); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; font-weight: 500; }
.btn-ghost:hover { border-color: var(--emerald-soft); color: var(--text); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: none; color: var(--ivory); }
.link-arrow::after { content: "→"; transition: transform 0.2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 11, 0.82); backdrop-filter: saturate(140%) blur(16px); -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand:hover { color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: var(--ivory-hi); font-weight: 600; }
.nav .btn { height: 42px; padding: 0 20px; font-size: 15px; border-radius: 12px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ivory); cursor: pointer; align-items: center; justify-content: center; }

/* Brand rings motif (from the C1a icon) */
.rings { position: absolute; pointer-events: none; color: var(--ivory); opacity: 0.07; }
.rings rect { fill: none; stroke: currentColor; stroke-width: 0.6; }

/* Hero */
.hero { padding: 88px 0 112px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; right: -12%; top: -18%; width: 820px; height: 820px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(15, 92, 67, 0.36), transparent);
}
.hero .rings { width: 760px; right: -120px; top: -40px; }
.hero-grid { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 64px; align-items: center; position: relative; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.hero-note::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--emerald-soft); box-shadow: 0 0 0 4px rgba(46, 125, 95, 0.18); }
.yours { color: var(--ivory); font-size: 20px; letter-spacing: -0.01em; }

/* Phone mock */
.phone-wrap { display: flex; justify-content: center; position: relative; }
.phone {
  width: 320px; border-radius: 46px; padding: 10px; background: linear-gradient(160deg, #222226, #141416);
  border: 1px solid #2c2c31; box-shadow: 0 50px 100px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(233, 225, 204, 0.04);
}
.screen { border-radius: 37px; background: var(--black); padding: 30px 20px 22px; display: flex; flex-direction: column; gap: 20px; font-size: 14px; line-height: 1.4; }
.screen .top { display: flex; justify-content: space-between; align-items: center; }
.screen .hello { display: flex; flex-direction: column; gap: 1px; }
.screen .hello small { color: var(--muted); font-size: 12px; }
.screen .hello b { font-size: 16px; font-weight: 600; }
.shield { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ivory); display: grid; place-items: center; }
.bal { border-radius: 22px; padding: 20px; background: var(--emerald-card); border: 1px solid var(--emerald-line); display: flex; flex-direction: column; gap: 16px; }
.bal .row { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.bal .row b { letter-spacing: 0.16em; text-transform: uppercase; color: var(--ivory); font-weight: 600; }
.bal .amt { font-size: 34px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.bal .sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.bal .prot { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); }
.actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.actions span { height: 62px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; font-size: 11px; font-weight: 500; }
.actions span:first-child { background: var(--emerald); border-color: var(--emerald); color: var(--ivory-hi); font-weight: 600; }
.screen h4 { margin: 0 0 4px; font-size: 12px; font-weight: 400; color: var(--muted); }
.contacts { display: flex; gap: 14px; }
.contacts span { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11px; }
.contacts i { width: 44px; height: 44px; border-radius: 50%; background: #1c1c1f; border: 1px solid var(--emerald-soft); display: grid; place-items: center; font-style: normal; font-weight: 600; font-size: 12px; }
.act { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.act:last-child { border: 0; }
.act small { display: block; color: var(--muted); font-size: 11px; }
.act em { font-style: normal; font-variant-numeric: tabular-nums; }
.act .in { color: var(--ivory); }
.phone-cap { text-align: center; font-size: 12px; color: var(--faint); margin-top: 18px; }

/* Key facts */
.facts { border-block: 1px solid var(--line-soft); background: var(--card-2); }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li { padding: 36px 28px; display: flex; flex-direction: column; gap: 6px; border-left: 1px solid var(--line-soft); }
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts b { font-size: 44px; font-weight: 300; letter-spacing: -0.04em; line-height: 1; color: var(--ivory); font-variant-numeric: tabular-nums; }
.facts span { font-size: 14px; color: var(--muted); line-height: 1.45; }

/* Statement */
.statement { overflow: hidden; }
.statement .rings { width: 620px; left: -160px; bottom: -220px; opacity: 0.06; }
.statement-head { display: flex; flex-direction: column; gap: 24px; max-width: 900px; margin-bottom: 64px; position: relative; }
.statement-head h2 { font-size: clamp(38px, 5.6vw, 68px); }

/* Money path diagram */
.path { display: grid; grid-template-columns: 1fr 120px 1fr 120px 1fr; align-items: stretch; position: relative; }
.node { border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.node.key { background: linear-gradient(180deg, #11201a, var(--emerald-card)); border-color: var(--emerald-soft); }
.node .ico { width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--emerald-line); background: var(--emerald-card); color: var(--ivory); display: grid; place-items: center; margin-bottom: 8px; }
.node p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.node .k { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.link { position: relative; display: flex; align-items: center; justify-content: center; }
.link::before { content: ""; position: absolute; left: 10px; right: 14px; top: 50%; height: 1px; background: linear-gradient(90deg, var(--emerald-soft), var(--ivory)); }
.link::after { content: ""; position: absolute; right: 10px; top: calc(50% - 4px); border: 4px solid transparent; border-left: 7px solid var(--ivory); border-right: 0; }
.link span { position: relative; background: var(--black); padding: 4px 10px; font-size: 12px; color: var(--ivory); border: 1px solid var(--emerald-line); border-radius: 999px; white-space: nowrap; }
.tint .link span { background: var(--emerald-card); }
.outside { margin-top: 28px; display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; border: 1px dashed #3a3a3f; border-radius: var(--radius); padding: 24px 28px; }
.outside .badge { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; white-space: nowrap; }
.outside .badge img { width: 30px; height: 30px; border-radius: 8px; }
.outside p { color: var(--muted); font-size: 15px; }
.outside p strong { color: var(--text); font-weight: 500; }

/* Cards and grids */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 12px; transition: border-color 0.2s var(--ease); }
.card p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.card.green { background: var(--emerald-card); border-color: var(--emerald-line); }
a.card { text-decoration: none; color: var(--text); }
a.card:hover { border-color: var(--emerald-soft); color: var(--text); }
a.card .link-arrow { margin-top: auto; padding-top: 8px; }
.icon { width: 44px; height: 44px; border-radius: 14px; background: var(--emerald-card); border: 1px solid var(--emerald-line); color: var(--ivory); display: grid; place-items: center; margin-bottom: 8px; }
.tag { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; color: var(--ivory); }

/* Feature list (editorial) */
.features { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.feature { padding: 36px 32px 40px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.feature:not(:nth-child(3n + 1)) { padding-left: 32px; border-left: 1px solid var(--line); }
.feature p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.feature .tag { color: var(--faint); }
.feature .tag b { color: var(--ivory); font-weight: 600; }

/* Steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { position: relative; padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; gap: 12px; }
.step::before { counter-increment: s; content: "0" counter(s); font-size: 13px; letter-spacing: 0.12em; color: var(--ivory); font-weight: 600; margin-bottom: 18px; }
.step p { color: var(--muted); font-size: 15px; line-height: 1.6; }

/* Safety rules */
.rules { display: grid; gap: 14px; counter-reset: r; }
.rule { display: flex; gap: 20px; padding: 24px 26px; border-radius: 18px; background: var(--emerald-card); border: 1px solid var(--emerald-line); }
.rule::before { counter-increment: r; content: counter(r); color: var(--ivory); font-weight: 300; font-size: 30px; line-height: 1; min-width: 24px; }
.rule b { display: block; font-weight: 600; margin-bottom: 4px; }
.rule span { color: var(--muted); font-size: 15px; }
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: center; }
.split.top { align-items: start; }
.split .copy { display: flex; flex-direction: column; gap: 24px; }

/* Tables */
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 540px; }
th, td { text-align: left; padding: 18px 24px; border-bottom: 1px solid var(--line-soft); vertical-align: top; line-height: 1.55; }
th { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: var(--card-2); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 500; }
td.free, td.fee { color: var(--ivory); font-weight: 600; white-space: nowrap; }
td.muted { color: var(--muted); }
th.us, td.us { background: rgba(15, 92, 67, 0.12); }
th.us { color: var(--ivory); }

/* Yes / no answers */
.answers { border-top: 1px solid var(--line); }
.answer { display: grid; grid-template-columns: 1fr 1.25fr; gap: 32px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.answer h3 { font-weight: 500; font-size: 18px; }
.answer .a { display: flex; gap: 16px; align-items: flex-start; color: var(--muted); font-size: 15px; }
.verdict { flex: none; min-width: 62px; text-align: center; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; border-radius: 999px; padding: 4px 12px; margin-top: 1px; }
.verdict.no { background: var(--emerald); color: var(--ivory-hi); }
.verdict.partly { border: 1px solid var(--ivory); color: var(--ivory); }

/* Fees */
.fee-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 20px; align-items: stretch; }
.earn { display: flex; flex-direction: column; gap: 14px; }
.earn .big { font-size: 56px; font-weight: 300; letter-spacing: -0.04em; color: var(--ivory); line-height: 1; }

/* FAQ */
.faq { display: grid; max-width: 860px; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 24px 0; font-weight: 500; font-size: 18px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--ivory); font-size: 26px; font-weight: 300; line-height: 1; flex: none; transition: transform 0.2s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details > div { padding: 0 48px 26px 0; color: var(--muted); display: grid; gap: 12px; }

/* Limits list */
.limits { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.limits li { display: flex; gap: 16px; color: var(--muted); font-size: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.limits li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ivory); margin-top: 10px; }
.limits b { color: var(--text); font-weight: 600; }

/* Waitlist */
.cta { padding: 0 0 120px; }
.cta-box {
  border-radius: 36px; padding: 80px 40px; text-align: center; background: radial-gradient(ellipse at 50% 0%, #13251d, var(--emerald-card) 70%); border: 1px solid var(--emerald-line);
  display: flex; flex-direction: column; align-items: center; gap: 22px; position: relative; overflow: hidden;
}
.cta-box .rings { width: 560px; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: 0.06; }
.cta-box > * { position: relative; }
.cta-box > .rings { position: absolute; }
.cta-box img.logo { width: 76px; height: 76px; border-radius: 19px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); }
.cta-box .lead { margin: 0 auto; }
.waitlist { display: flex; gap: 10px; width: 100%; max-width: 500px; margin-top: 6px; }
.waitlist input { flex: 1; min-width: 0; height: 54px; border-radius: 14px; border: 1px solid var(--line); background: var(--black); color: var(--text); font: inherit; font-size: 16px; padding: 0 18px; }
.waitlist input::placeholder { color: var(--faint); }
.waitlist input:focus { outline: none; border-color: var(--emerald-soft); box-shadow: 0 0 0 3px rgba(46, 125, 95, 0.3); }
.form-msg { min-height: 24px; font-size: 14px; color: var(--ivory); }
.form-msg.err { color: #e7a39a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Inner pages */
.page-head { padding: 96px 0 56px; overflow: hidden; }
.page-head .rings { width: 640px; right: -140px; top: -120px; }
.page-head .wrap > div { display: flex; flex-direction: column; gap: 24px; max-width: 860px; position: relative; }
.page-head h1 { font-size: clamp(40px, 5.6vw, 68px); }
.chapter { padding: 72px 0; border-top: 1px solid var(--line-soft); }
.chapter h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 16px 0 18px; }
.chapter .lead { margin-bottom: 32px; }
.chapter p + p { margin-top: 16px; }
.prose p { color: var(--muted); max-width: 66ch; }
.prose p strong { color: var(--text); font-weight: 500; }
.callout { border-radius: 18px; padding: 24px 26px; background: var(--emerald-card); border: 1px solid var(--emerald-line); color: var(--muted); font-size: 16px; }
.callout b { color: var(--text); }
.tech { font-size: 15px; color: var(--muted); margin: 0; }
.tech dt { color: var(--text); font-weight: 600; margin-top: 18px; }
.tech dd { margin: 4px 0 0; }

/* Learn layout with contents */
.learn { display: grid; grid-template-columns: 220px 1fr; gap: 72px; align-items: start; }
.learn > div, .learn > article { min-width: 0; }
.toc { position: sticky; top: 112px; padding-top: 72px; }
.toc p { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); font-weight: 600; margin-bottom: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: t; }
.toc a { display: flex; gap: 12px; padding: 7px 0; color: var(--muted); text-decoration: none; font-size: 14px; line-height: 1.4; }
.toc a::before { counter-increment: t; content: "0" counter(t); color: var(--faint); font-variant-numeric: tabular-nums; }
.toc a:hover, .toc a.on { color: var(--text); }
.toc a.on::before { color: var(--ivory); }

/* Exchange-rate demo */
.fx { border-radius: var(--radius); border: 1px solid var(--emerald-line); background: var(--emerald-card); padding: 32px; display: grid; gap: 24px; }
.fx-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.fx-row div { display: flex; flex-direction: column; gap: 6px; }
.fx-row small { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.fx-row output, .fx-row b { font-size: clamp(30px, 4vw, 42px); font-weight: 300; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.fx-row output { color: var(--ivory); }
.fx label { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.fx label span { color: var(--text); font-variant-numeric: tabular-nums; }
.fx input[type=range] { width: 100%; accent-color: var(--emerald-soft); height: 28px; }
.fx .fine { margin: 0; }

/* Glossary */
.gloss { display: grid; grid-template-columns: 200px 1fr; margin: 0; border-top: 1px solid var(--line); }
.gloss dt, .gloss dd { padding: 18px 0; border-bottom: 1px solid var(--line); margin: 0; }
.gloss dt { font-weight: 600; }
.gloss dd { color: var(--muted); font-size: 15px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line-soft); padding: 72px 0 44px; font-size: 14px; color: var(--muted); background: var(--card-2); }
.promise { display: flex; align-items: center; gap: 18px; padding: 22px 26px; border: 1px solid var(--emerald-line); background: var(--emerald-card); border-radius: 18px; margin-bottom: 56px; color: var(--text); font-size: 16px; }
.promise svg { flex: none; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.foot-grid h5 { margin: 0 0 14px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ivory); font-weight: 600; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-grid a { color: var(--muted); text-decoration: none; }
.foot-grid a:hover { color: var(--text); }
.foot-grid a.brand, .foot-grid a.brand:hover { color: var(--text); }
.tagline { margin-top: 18px; color: var(--ivory); font-size: 16px; }
.by { display: flex; align-items: center; gap: 10px; margin-top: 22px; }
.by img { height: 18px; width: auto; }
.foot-legal { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line-soft); }
.legal-line { font-size: 13px; line-height: 1.7; color: var(--faint); max-width: 92ch; }
.legal-line strong { color: var(--muted); font-weight: 500; }

/* Reveal on scroll (only when JS runs) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1020px) {
  section { padding: 88px 0; }
  .hero-grid, .split, .fee-grid { grid-template-columns: 1fr; gap: 56px; }
  .grid-3, .features { grid-template-columns: repeat(2, 1fr); }
  .feature, .feature:not(:nth-child(3n + 1)) { padding: 32px 28px 36px 0; border-left: 0; }
  .feature:nth-child(2n) { padding-left: 28px; border-left: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; }
  .facts ul { grid-template-columns: repeat(2, 1fr); }
  .facts li:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts li:nth-child(n + 3) { border-top: 1px solid var(--line-soft); }
  .path { grid-template-columns: 1fr; }
  .link { height: 64px; }
  .link::before { left: 50%; right: auto; top: 6px; bottom: 12px; width: 1px; height: auto; background: linear-gradient(180deg, var(--emerald-soft), var(--ivory)); }
  .link::after { right: auto; left: calc(50% - 4px); top: auto; bottom: 6px; border: 4px solid transparent; border-top: 7px solid var(--ivory); border-bottom: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .learn { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
}
@media (max-width: 780px) {
  .menu-btn { display: inline-flex; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 76px; flex-direction: column; align-items: stretch; gap: 0; background: var(--black); border-bottom: 1px solid var(--line-soft); padding: 8px 24px 22px; }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line-soft); }
  .nav-links li:last-child a { display: flex; padding: 0; height: 50px; border: 0; margin-top: 16px; font-size: 16px; }
  .answer { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  section { padding: 72px 0; }
  .grid-3, .grid-2, .features, .fx-row { grid-template-columns: 1fr; }
  .feature, .feature:nth-child(2n), .feature:not(:nth-child(3n + 1)) { padding: 28px 0; border-left: 0; }
  .facts ul { grid-template-columns: 1fr 1fr; }
  .facts li { padding: 26px 0 26px 16px; }
  .facts li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .facts b { font-size: 36px; }
  .hero { padding: 48px 0 72px; }
  .hero-actions .btn { width: 100%; }
  .phone { width: 100%; max-width: 320px; }
  .outside { grid-template-columns: 1fr; gap: 12px; padding: 22px; }
  .node, .card, .step { padding: 24px; }
  .cta-box { padding: 56px 20px; border-radius: 26px; }
  .waitlist { flex-direction: column; }
  .waitlist .btn { width: 100%; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .promise { align-items: flex-start; }
  .page-head { padding: 64px 0 40px; }
  .chapter { padding: 56px 0; }
  .gloss { grid-template-columns: 1fr; }
  .gloss dt { padding-bottom: 4px; border-bottom: 0; }
  .gloss dd { padding-top: 0; }
  details > div { padding-right: 0; }
  table { min-width: 0; font-size: 14px; }
  th, td { padding: 14px 12px; }
  th { letter-spacing: 0.08em; font-size: 10px; }
  .fx { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, .js .reveal { transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Legal documents */
.toc.plain a::before { content: none; }
.doc { padding: 24px 0 120px; max-width: 760px; }
.doc > p:first-child strong { display: inline-block; color: var(--ivory); border: 1px solid var(--emerald-line); background: var(--emerald-card); border-radius: 999px; padding: 4px 14px; font-size: 13px; font-weight: 600; }
.doc h1 { display: none; }
.doc h2 { font-size: clamp(22px, 2.4vw, 26px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; margin: 56px 0 16px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.doc p, .doc li { color: var(--muted); font-size: 16px; line-height: 1.7; }
.doc p + p, .doc ul + p, .doc p + ul { margin-top: 14px; }
.doc ul { padding-left: 20px; margin: 14px 0 0; display: grid; gap: 8px; }
.doc li::marker { color: var(--ivory); }
.doc strong { color: var(--text); font-weight: 600; }
.doc em { font-style: italic; }
.doc code { font-family: inherit; font-size: 0.92em; color: var(--ivory); background: var(--emerald-card); border: 1px dashed var(--emerald-line); border-radius: 6px; padding: 1px 6px; }
.doc .table-wrap { margin-top: 18px; }
.doc table { font-size: 14px; }
.doc td { color: var(--muted); }
.doc td:first-child { color: var(--text); }
.doc thead th:empty { display: none; }
.doc thead:has(th:empty) { display: none; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--muted); }
.doc-meta a { color: var(--ivory); }
.doc p, .doc li { overflow-wrap: anywhere; }
@media (max-width: 600px) { .doc table { min-width: 600px; } }
