/* ==========================================================
   Even — landing page, Horizon brand
   Tokens mirror the briefing (§5). When handoff/tokens.json
   arrives, replace this :root block with its values.
   ========================================================== */
:root {
  --mist: #edecf3;
  --night: #121530;
  --cobalt: #2e3bd1;
  --cobalt-below: #2934b4;   /* "darker below" the horizon line */
  --white: #ffffff;

  --coral: #e8553a;  --coral-tint: #fce1da; --coral-deep: #b23a20;
  --mint:  #1fa27e;  --mint-tint:  #e3f5ee; --mint-deep:  #147a5e;
  --leaf:  #5e9a2e;  --leaf-tint:  #e4f0d8; --leaf-deep:  #3e7a1e;

  --muted: #4a4d68;         /* night at reduced weight, for secondary text */
  --line: #d6d5e2;

  --display: "Unbounded", "Arial Black", sans-serif;
  --body: "Manrope", system-ui, sans-serif;

  --r-btn: 12px;
  --r-card: 20px;
  --r-band: 22px;

  --rise: 10px;
  --dur: 250ms;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--night);
  font: 400 18px/1.6 var(--body);
  overflow-x: hidden;
}
main { overflow-x: clip; }
@media (max-width: 720px) { body { font-size: 16px; } }

/* Unbounded is wide: set a size smaller than feels natural */
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(34px, 5vw, 64px); }
h2 { font-size: clamp(26px, 3vw, 40px); }
h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--cobalt); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: calc(var(--gutter) + 24px); }
.wrap-outer { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-inner { padding-inline: clamp(24px, 5vw, 72px); }
section { padding-block: clamp(72px, 10vw, 128px); }

.eyebrow { font: 700 13px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 20px; }
.section-head { max-width: 560px; }
.section-head h2 { margin-bottom: 20px; }
.section-head > p:not(.eyebrow) { color: var(--muted); }

.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--night); text-decoration: none; font: 600 26px/1 var(--display); letter-spacing: -0.03em; }
.mark { width: 30px; height: 30px; color: var(--night); }

/* ---------- buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border: 2px solid var(--cobalt); border-radius: var(--r-btn);
  background: var(--cobalt); color: var(--white);
  font: 800 16px/1 var(--body);
  text-decoration: none; cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn:hover { background: var(--night); border-color: var(--night); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-white { background: var(--white); border-color: var(--white); color: var(--night); }
.btn-white:hover { background: var(--mist); border-color: var(--mist); color: var(--night); }
.btn-outline-light { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--night); border-color: var(--white); }
.btn:focus-visible, input:focus-visible, a:focus-visible, .swaps label:focus-within { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.on-cobalt .btn:focus-visible, .on-cobalt input:focus-visible, .band .btn:focus-visible { outline-color: var(--white); }

.waitlist { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; max-width: 520px; }
.waitlist input {
  flex: 1 1 230px; min-height: 52px; padding: 0 18px;
  border: 2px solid var(--line); border-radius: var(--r-btn);
  background: var(--white); color: var(--night);
  font: 400 16px var(--body);
}
.waitlist input::placeholder { color: var(--muted); }
.waitlist input[aria-invalid="true"] { border-color: var(--coral-deep); }
.form-note { flex-basis: 100%; font-size: 15px; color: var(--muted); }
.waitlist.done input, .waitlist.done button { display: none; }
.waitlist.done .form-note { font: 600 20px/1.3 var(--display); color: var(--night); }
.on-cobalt input { border-color: transparent; }
.on-cobalt .form-note { color: #dfe2fb; }
.on-cobalt.done .form-note { color: var(--white); }

/* ---------- nav ---------- */
.nav { display: flex; align-items: center; gap: 32px; padding-top: 22px; padding-bottom: 22px; }
.nav nav { display: flex; gap: 28px; margin-left: auto; }
.nav nav a { color: var(--night); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav nav a:hover { color: var(--cobalt); }
@media (max-width: 760px) { .nav nav { display: none; } .nav { justify-content: space-between; } }

/* ---------- hero: the horizon ---------- */
.hero-band { padding-block: 0; }
.horizon { --below: clamp(48px, 8vw, 112px); position: relative; border-radius: var(--r-band); overflow: hidden; color: var(--white); background: var(--cobalt); }
.horizon::before { /* the horizon: 3px night line, darker cobalt below */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--below);
  background: var(--cobalt-below); border-top: 3px solid var(--night);
}
.hero {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center;
  padding-block: clamp(56px, 8vw, 96px) calc(var(--below) + 32px);
}
.hero .eyebrow { color: #dfe2fb; }
.hero h1 { max-width: 12ch; }
.hero .lede { margin-top: 24px; max-width: 30em; color: #eef0ff; }
.hero-phone { display: flex; justify-content: center; align-self: end; margin-bottom: calc(var(--below) * -1 + 24px); }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero-phone { display: none; }
}

/* ---------- phone mockup: Even v4 "Horizon" screens ----------
   Built at the app's own 390px size and scaled with --s,
   so proportions match the prototype exactly. */
.phone {
  --w: 300; --s: calc(var(--w) / 390);
  width: calc(var(--w) * 1px); aspect-ratio: 390 / 844; flex: none;
  padding: calc(10px * var(--s)); border-radius: calc(54px * var(--s)); background: var(--night);
  box-shadow: 0 24px 48px -24px rgba(18, 21, 48, .45);
  font-size: calc(16px * var(--s));
}
.screen {
  height: 100%; border-radius: calc(44px * var(--s)); overflow: hidden;
  background: var(--mist); color: var(--night);
  display: flex; flex-direction: column; line-height: 1.4;
}
.app .a-top { background: var(--cobalt); color: var(--white); padding: 3.9em 1.5em 2.2em; position: relative; flex: none; border-bottom: .25em solid var(--night); }
.a-top.short { padding: 3.9em 1.5em 1.6em; }
.a-hi { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: .94em; }
.a-av { width: 2.4em; height: 2.4em; border-radius: 50%; background: #1f2a9e; display: grid; place-items: center; font: 600 .93em var(--display); }
.a-em { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 1.9em; }
.a-k { font-size: .81em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #c9cdff; }
.a-big { font: 600 4em/.9 var(--display); letter-spacing: -.04em; margin: .1em 0 .1em; }
.a-big small { font: 700 .375em var(--body); letter-spacing: 0; }
.a-sub { font-size: .875em; color: #e3e5ff; }
.a-ring { width: 6em; height: 6em; flex: none; }
.a-body { padding: 1.25em 1.25em 0; display: flex; flex-direction: column; gap: .9em; flex: 1; }
.a-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .62em; }
.a-tile { border-radius: 1.25em; padding: 1em; display: flex; flex-direction: column; gap: .4em; }
.a-tile span { font-size: .81em; font-weight: 700; }
.a-tile b { font: 600 1.75em/1 var(--display); letter-spacing: -.03em; }
.a-tile small { font: 700 .5em var(--body); letter-spacing: 0; }
.a-tile.mint { background: var(--mint-tint); color: var(--mint-deep); }
.a-tile.leaf { background: var(--leaf-tint); color: var(--leaf-deep); }
.a-note { font-size: .78em; color: #55587a; }
.a-card { background: var(--white); border-radius: 1.4em; padding: 1.1em; display: flex; flex-direction: column; gap: .75em; }
.a-eyebrow { font-size: .75em; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--cobalt); }
.a-h { font: 600 1.12em/1.2 var(--display); letter-spacing: -.02em; }
.a-row { display: flex; align-items: center; gap: .6em; }
.a-row span { flex: 1; font-size: .875em; color: #55587a; }
.a-row b { font: 600 .94em var(--display); color: var(--mint-deep); white-space: nowrap; }
.a-btn { background: var(--cobalt); color: var(--white); border-radius: .75em; padding: .8em; text-align: center; font-size: .875em; font-weight: 800; }
.a-btn.big { margin-top: auto; margin-bottom: 1.9em; border-radius: .9em; padding: 1.05em; font-size: 1em; }
.a-btn.ghost { background: transparent; color: var(--night); box-shadow: inset 0 0 0 .14em #deddea; }
.a-two { display: grid; grid-template-columns: 1fr 1fr; gap: .5em; }
.a-flight { display: flex; align-items: center; gap: .75em; padding: .25em .1em; }
.a-flight i { width: .62em; height: .62em; border-radius: 50%; background: var(--cobalt); }
.a-flight b { flex: 1; font-size: .875em; font-weight: 700; }
.a-flight span { font-size: .81em; color: #55587a; }
/* Log / Promise: a sheet over cobalt */
.app.on-cobalt-ground { background: #2532b0; }
.a-sheet { margin-top: 6em; flex: 1; background: var(--mist); border-radius: 1.75em 1.75em 0 0; padding: .9em 1.25em 0; display: flex; flex-direction: column; gap: 1em; }
.a-grab { width: 2.5em; height: .31em; border-radius: .2em; background: #c9c8da; align-self: center; }
.a-title { font: 600 1.62em/1.1 var(--display); letter-spacing: -.03em; }
.a-title.w { color: var(--white); font-size: 1.5em; margin-top: .3em; }
.a-seg { display: flex; background: #deddea; border-radius: .75em; padding: .25em; gap: .25em; }
.a-seg span { flex: 1; text-align: center; padding: .55em; border-radius: .56em; font-size: .875em; font-weight: 700; color: #55587a; }
.a-seg span.on { background: var(--white); color: var(--night); font-weight: 800; }
.a-list { background: var(--white); border-radius: 1.25em; display: flex; flex-direction: column; overflow: hidden; }
.a-li { display: flex; align-items: center; gap: .75em; padding: .9em 1em; border-bottom: 1px solid var(--mist); }
.a-li:last-child { border-bottom: 0; }
.a-li i { width: .37em; height: 1.9em; border-radius: .2em; background: var(--b); flex: none; }
.a-li div { flex: 1; display: flex; flex-direction: column; gap: .1em; }
.a-li b { font-size: .94em; font-weight: 700; }
.a-li span { font-size: .78em; color: #55587a; }
.a-li em { font: 600 .94em var(--display); font-style: normal; }
.a-li em.m { font: 800 .81em var(--body); color: var(--mint-deep); }
.a-li.sel { background: var(--coral-tint); }
.a-li.sel span, .a-li.sel em { color: var(--coral-deep); }
.a-foot { font-size: .75em; color: #55587a; line-height: 1.5; }
.a-kept { display: flex; gap: .75em; align-items: center; padding: 1em; border-radius: 1.25em; background: var(--mint-tint); color: var(--mint-deep); }
.a-kept .ico { width: 1.25em; height: 1.25em; }
.a-kept b { display: block; font-size: .94em; font-weight: 700; color: var(--night); }
.a-kept span { font-size: .81em; font-weight: 700; }
.ico.co { color: var(--night); }
.a-tabs { margin-top: auto; height: 5.1em; flex: none; background: var(--white); border-top: 1px solid #deddea; display: flex; justify-content: space-around; align-items: flex-start; padding-top: .75em; font-size: .78em; font-weight: 700; color: #66698c; }
.a-tabs .on { color: var(--cobalt); }
.a-tabs .plus { width: 3.1em; height: 3.1em; margin-top: -.4em; border-radius: .9em; background: var(--night); color: var(--white); display: grid; place-items: center; font-size: 1.9em; font-weight: 600; }
.app .a-body + .a-tabs { margin-top: 0; }
.a-body { padding-bottom: 1em; }

/* ---------- three numbers ---------- */
.numbers-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 48px; align-items: start; }
.ledger { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card { border-radius: var(--r-card); padding: 22px; display: flex; flex-direction: column; min-height: 240px; }
.card h3 { font: 700 14px var(--body); letter-spacing: 0; }
.card .fig { font: 600 clamp(34px, 3.6vw, 48px)/1 var(--display); letter-spacing: -0.03em; margin: 12px 0 auto; display: flex; align-items: baseline; gap: 6px; }
.card .fig b { font-weight: 600; }
.card .fig span { font: 700 16px var(--body); letter-spacing: 0; }
.card p:last-child { color: var(--night); font-size: 15px; margin-top: 24px; }
.c-coral { background: var(--coral-tint); color: var(--coral-deep); }
.c-mint  { background: var(--mint-tint);  color: var(--mint-deep); }
.c-leaf  { background: var(--leaf-tint);  color: var(--leaf-deep); }
@media (max-width: 960px) {
  .numbers-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .ledger { grid-template-columns: 1fr; gap: 10px; }
  .card { min-height: 0; display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 18px 20px; }
  .card .fig { margin: 0; grid-row: 1; grid-column: 2; }
  .card p:last-child { grid-column: 1 / -1; margin-top: 8px; }
}

.try {
  margin-top: 48px; padding: clamp(24px, 4vw, 40px);
  border-radius: var(--r-card); background: var(--white);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 24px 48px;
}
.try-copy h3 { font-size: clamp(20px, 2vw, 24px); font-weight: 600; margin-bottom: 10px; }
.try-copy p { color: var(--muted); }
.swaps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.swaps label {
  display: flex; align-items: center; gap: 14px; cursor: pointer;
  padding: 14px 16px; border-radius: 14px; background: var(--mist);
  transition: background var(--dur) var(--ease);
}
.swaps input { position: absolute; opacity: 0; pointer-events: none; }
.tick { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--mint-deep); display: grid; place-items: center; flex: none; background: var(--white); transition: background var(--dur) var(--ease); }
.tick svg { width: 16px; height: 16px; fill: none; stroke: var(--white); stroke-width: 2.75; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.swaps input:checked ~ .tick { background: var(--mint-deep); }
.swaps input:checked ~ .tick svg { opacity: 1; }
.swaps label:has(input:checked) { background: var(--mint-tint); }
.sw-name { flex: 1; font-weight: 600; }
.sw-kg { font: 600 15px var(--display); color: var(--mint-deep); white-space: nowrap; }
.try-result { margin-top: 18px; font: 600 17px/1.4 var(--display); color: var(--night); letter-spacing: -0.01em; }
.fine { font-size: 14px; color: var(--muted); margin-top: 8px; }
@media (max-width: 860px) { .try { grid-template-columns: 1fr; } }

/* ---------- how it works ---------- */
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.step { display: flex; flex-direction: column; gap: 32px; justify-content: space-between; border-top: 2px solid var(--night); padding-top: 18px; }
.step-n { font: 600 14px var(--display); color: var(--cobalt); margin-bottom: 8px; }
.step h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.step-copy p:last-child { color: var(--muted); font-size: 16px; }
.step .phone { --w: 270; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 56px; }
  .step { flex-direction: row; align-items: flex-start; }
  .step-copy { flex: 1; }
  .step .phone { --w: 240; }
}
@media (max-width: 620px) {
  .step { flex-direction: column; }
  .step .phone { --w: 270; }
}

/* ---------- circles: the night band ---------- */
.circles { padding-block: 0; }
.band { background: var(--night); color: var(--white); border-radius: var(--r-band); }
.circles-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-block: clamp(56px, 8vw, 96px); }
.band .eyebrow { color: #a9acc9; }
.band .section-head > p:not(.eyebrow) { color: #d4d6ea; }
.band .btn { margin-top: 28px; }
.band .form-note { margin-top: 12px; color: #d4d6ea; }
.circle-card { background: #1e2140; border-radius: var(--r-card); padding: 22px 24px; }
.cc-k { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #b7bad8; margin-bottom: 6px; }
.circle-card ul { list-style: none; margin: 0 0 22px; padding: 0; }
.circle-card li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid #2a2e55; }
.circle-card li:last-child { border-bottom: 0; }
.cc-n { font: 600 13px var(--display); color: #66698c; width: 14px; }
.cc-av { width: 36px; height: 36px; border-radius: 50%; background: #33365a; display: grid; place-items: center; font: 600 13px var(--display); }
.cc-av.you { background: var(--cobalt); }
.circle-card li b { flex: 1; font-weight: 700; }
.circle-card em { font: 600 20px var(--display); font-style: normal; color: #4bd3a9; }
.cc-ev { display: flex; gap: 10px; font-size: 15px; margin-top: 10px; }
.cc-ev i { width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; flex: none; }
.cc-ev i.mint { background: #4bd3a9; } .cc-ev i.cob { background: #6e79ff; }
.cc-foot { margin-top: 20px; font-size: 13px; color: #b7bad8; }
@media (max-width: 860px) { .circles-inner { grid-template-columns: 1fr; } }

/* ---------- trees ---------- */
.trees { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.trees-copy { display: grid; gap: 16px; color: var(--muted); max-width: 32em; }
.tbd { white-space: nowrap; background: var(--leaf-tint); color: var(--leaf-deep); padding: 0 6px; border-radius: 6px; font-weight: 700; }
@media (max-width: 760px) { .trees { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- what it doesn't do ---------- */
.nots { padding-top: 0; }
.nots h2 { font-size: clamp(20px, 2vw, 24px); margin-bottom: 20px; }
.nots-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.nots-list li { padding: 18px 20px; border-radius: 16px; background: var(--white); font-weight: 600; font-size: 16px; }
@media (max-width: 960px) { .nots-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .nots-list { grid-template-columns: 1fr; } }

/* ---------- close ---------- */
.close { border-top: 2px solid var(--line); }
.close-copy { max-width: 640px; }
.close-mark { width: 44px; height: 44px; color: var(--night); margin-bottom: 24px; }
.close h2 { margin-bottom: 18px; }
.close-copy > p { color: var(--muted); max-width: 32em; }

/* ---------- footer ---------- */
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; padding-top: 32px; padding-bottom: 48px; }
.foot .logo { font-size: 20px; }
.foot .mark { width: 24px; height: 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-left: auto; }
.foot nav a { color: var(--night); font-weight: 600; font-size: 15px; text-decoration: none; }
.foot nav a:hover { color: var(--cobalt); }
@media (max-width: 620px) { .foot nav { margin-left: 0; } }

/* ---------- motion: rise 10px, fade, 250ms. Nothing loops. ---------- */
.js .rise { opacity: 0; transform: translateY(var(--rise)); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.js .rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rise { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}
