/* Run52 site. Matches Figma "Landing A" (light 703:11845, dark 883:24746, mobile 797:17885 / 883:28142).
   Hero on the page colour (white / black); every section after it on the grey canvas; cards are surface + Depth/Card
   (finmoy-style tier shadow, radius 32). Headlines in Archivo ExtraBold capitals, body in Inter. Text colours pass
   WCAG AA on bg, canvas and cards in both modes; the white label on brand orange is the owner's choice (2.6:1). */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* ---- Tokens (Figma variables, collection 334:13) ---- */
:root {
  color-scheme: light dark;
  --bg: #ffffff;              /* color/bg: the hero */
  --canvas: #ededed;          /* color/canvas */
  --surface: #ffffff;         /* color/surface: cards */
  --plate: #ffffff;           /* pricing, "And more" (dark: color/plate-45) */
  --card: #f4f4f5;            /* color/card: panels inside cards */
  --card-2: #e8e8ea;          /* color/card-2: chips, tiles, tracks */
  --line: rgba(0, 0, 0, .08); /* color/line */
  --text: #0a0a0a;
  --text-2: #55555c;          /* 6.6:1 on canvas, 7.6:1 on white */
  --text-3: #6e6e73;          /* 4.6:1 on white; icons and quiet marks */
  --accent: #ff7a1f;          /* brand orange (color/accent) */
  --accent-strong: #e8590c;   /* the "on the list" check circle, compare checks, the week-20 number */
  --link: #c2410c;            /* orange text: 5.2:1 on white */
  --illo-line: rgba(110, 110, 115, .7);
  --illo-top: rgba(10, 10, 10, .03);
  --illo-side: rgba(10, 10, 10, .07);
  --illo-deep: rgba(10, 10, 10, .11);
  --depth: inset 0 0 0 .5px #dcdcdc, 0 24px 24px rgba(0, 0, 0, .04), 0 12px 12px rgba(0, 0, 0, .04),
           0 6px 6px rgba(0, 0, 0, .06), 0 3px 3px rgba(0, 0, 0, .06), 0 1px 1px rgba(0, 0, 0, .06);
  --card-border: 0 0 0 0 transparent;
  --btn: #0a0a0a;             /* the black button on the small pages */
  --btn-text: #ffffff;
  --display: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: 20px;
  --max: 1200px;
  --section: 80px;
  --radius: 32px;
}
@media (min-width: 900px) {
  :root { --gutter: 40px; --section: 160px; }
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --canvas: #1c1c1e;          /* the owner's dark pass: sections on color/surface */
    --surface: rgba(255, 255, 255, .10);
    --plate: rgba(255, 255, 255, .10); /* the owner's dark card colour: every card, no outline */
    --card: #2c2c2e;
    --card-2: #2c2c2e;
    --line: rgba(255, 255, 255, .10);
    --text: #ffffff;
    --text-2: #aeaeb2;          /* 7.6:1 on canvas */
    --text-3: #98989f;
    --accent: #ff8a33;
    --link: #ff9a55;
    --illo-line: rgba(152, 152, 159, .7);
    --illo-top: rgba(255, 255, 255, .05);
    --illo-side: rgba(255, 255, 255, .10);
    --illo-deep: rgba(255, 255, 255, .16);
    --depth: 0 0 0 0 transparent;
    --card-border: 0 0 0 0 transparent;
    --btn: #f5f5f5;
    --btn-text: #0a0a0a;
  }
}

/* ---- Base ---- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--sans);
  overflow-x: hidden;
}
body.landing { background: var(--canvas); }
em, i, cite, dfn { font-style: normal; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 16px; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.75rem, 5vw + 1rem, 4.5rem); line-height: .96; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 3vw + 1rem, 3.5rem); line-height: 1.02; }
h3 { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.005em; line-height: 1.15; }
.title-l { font-size: clamp(1.75rem, 2vw + 1rem, 3rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
.overline {
  font: 600 13px/1.5 var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-2);
  margin: 0;
}
.body-l { font-size: 1.125rem; line-height: 1.55; color: var(--text-2); max-width: 34rem; margin: 0; }
.small { font-size: 0.8125rem; line-height: 1.5; color: var(--text-2); }
.small.strong { font-weight: 600; color: var(--text); }
.muted { color: var(--text-2); }

.wrap { max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
section { padding-block: var(--section); }
.canvas { background: var(--canvas); }
.sec-head { display: grid; gap: 20px; margin-bottom: 64px; }
@media (max-width: 899px) { .sec-head { gap: 16px; margin-bottom: 40px; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 999px;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px; }

/* Cards: surface + Depth/Card in light; a soft white fill in dark (the owner's dark pass). */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--depth); }
.card.plate { background: var(--plate); box-shadow: var(--depth), var(--card-border); }
.card.outline { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
@media (prefers-color-scheme: dark) { .card.outline { background: var(--line); box-shadow: none; } }

/* Icon defaults (Lucide, 1.5 px) and the grey hairline illustrations. */
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.illo { fill: none; }
.illo [data-s] { stroke: var(--illo-line); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.illo [data-f="t"] { fill: var(--illo-top); }
.illo [data-f="s"] { fill: var(--illo-side); }
.illo [data-f="d"] { fill: var(--illo-deep); }
.illo.big { width: 200px; height: 140px; margin: 0 auto 8px; }
.tile {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
  background: var(--card-2); color: var(--text);
}
.tile.sm { width: 32px; height: 32px; border-radius: 9px; }
.tile.sm .i { width: 16px; height: 16px; }
.tile-placeholder { background: transparent; box-shadow: inset 0 0 0 1.5px var(--text-3); border-radius: 12px; }

/* ---- Buttons ---- */
/* Primary = the app's primary button: brand orange glass, white label, no drop shadow (owner). */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 28px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .28);
  background: var(--accent); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
  font: 700 19px/1 var(--display); text-transform: uppercase; letter-spacing: 0;
  text-decoration: none; cursor: pointer;
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-primary .short { display: none; }
@media (max-width: 479px) { .btn-primary .long { display: none; } .btn-primary .short { display: inline; } }
/* The black button on the small pages (thanks, confirmed, 404). */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px;
  background: var(--btn); color: var(--btn-text);
  font: 700 0.95rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer;
}
.btn-small { min-height: 40px; padding: 0 16px; font-size: 0.9rem; }

/* ---- Nav ---- */
.nav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.nav-inner { display: flex; align-items: center; gap: 16px; max-width: 1440px; margin-inline: auto; padding: 12px 32px; min-height: 80px; }
.brand { display: inline-flex; color: var(--text); margin-right: auto; }
.brand svg { fill: currentColor; height: 16px; width: auto; }
.nav ul { display: none; gap: 8px; }
.nav ul a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; font-size: 15px; font-weight: 500; text-decoration: none; color: var(--text); }
.nav ul a:hover { background: var(--card); }
.btn-nav { min-height: 44px; padding: 0 18px; font-size: 15px; white-space: nowrap; }
@media (max-width: 400px) { .btn-nav { padding: 0 14px; font-size: 14px; } }
@media (min-width: 900px) {
  .nav ul { display: flex; }
  .btn-nav { display: none; } /* hidden on desktop by the owner */
}
@media (max-width: 899px) { .nav-inner { padding: 12px 20px; min-height: 68px; gap: 10px; } }

/* Language switcher: the UI is built; only English is live. */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--text);
  font: 600 14px/1 var(--sans); cursor: pointer;
}
.lang-btn .i { width: 16px; height: 16px; }
.lang-btn .chev { width: 14px; height: 14px; color: var(--text-2); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); width: 248px; max-height: min(70vh, 520px); overflow: auto;
  padding: 8px; border-radius: 20px; background: var(--plate); box-shadow: var(--depth), var(--card-border);
}
@media (prefers-color-scheme: dark) { .lang-menu { background: #2c2c2e; } }
.lang-note { margin: 6px 10px 8px; font-size: 13px; line-height: 1.4; color: var(--text-2); }
.lang-menu li { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 0 10px; border-radius: 10px; font-size: 15px; color: var(--text-2); }
.lang-menu li.on { color: var(--text); font-weight: 600; background: var(--card); }
.lang-menu li small { font-size: 12px; color: var(--text-2); }

/* ---- Hero ---- */
.hero { background: var(--bg); padding: 40px 0 0; overflow: hidden; }
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero h1 { max-width: 15ch; }
.hero-sub { font-size: clamp(1.0625rem, .5vw + .9rem, 1.3125rem); line-height: 1.45; color: var(--text-2); margin: 20px 0 0; max-width: 40rem; }
.ticker {
  display: inline-flex; align-items: center; gap: 10px; order: -1; margin: 0 0 28px;
  padding: 4px 4px 4px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px; color: var(--text);
}
.ticker-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text); flex: none; }
.ticker-line { display: inline-block; min-width: 14ch; text-align: left; white-space: nowrap; }
.ticker button {
  width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent;
  color: var(--text-2); cursor: pointer; font: inherit; font-size: 11px; line-height: 1;
}
@media (max-width: 899px) {
  .ticker { order: 0; margin: 24px 0 0; box-shadow: none; padding-left: 0; font-size: 13.5px; }
}
.hero .waitlist { margin-top: 32px; }
.hero-phones { position: relative; height: 600px; margin-top: 72px; overflow: hidden; }
.hero-phones .ph { position: absolute; left: 50%; height: auto; }
.ph-c { width: 367px; top: 0; transform: translateX(-50%); z-index: 2; }
.ph-l, .ph-r { width: 316px; top: 80px; }
.ph-l { transform: translateX(calc(-50% - min(350px, 50vw - 182px))); } /* never past the screen edge */
.ph-r { transform: translateX(calc(-50% + min(350px, 50vw - 182px))); }
@media (max-width: 899px) {
  .hero { padding-top: 24px; }
  .hero-phones { height: 420px; margin-top: 32px; }
  .ph-l, .ph-r { display: none; }
  .ph-c { width: 276px; }
}

/* ---- Waitlist form (Figma: Web/Waitlist form · Founding 885:24773) ---- */
.waitlist { display: grid; gap: 12px; width: 100%; max-width: 480px; text-align: left; }
.email-row {
  display: flex; align-items: center; gap: 8px; min-height: 58px; padding: 6px;
  border: 1px solid var(--text-3); border-radius: 999px; background: var(--bg);
}
.final-card .email-row { background: transparent; }
.email-row:focus-within { outline: 2px solid var(--text); outline-offset: 2px; }
.waitlist .field { display: block; flex: 1; min-width: 0; }
.waitlist input[type="email"] {
  width: 100%; min-width: 0; height: 44px; padding: 0 4px 0 16px; border: 0; outline: 0;
  background: transparent; color: var(--text); font: 400 16px/1 var(--sans);
}
.email-row .btn-primary { flex: none; min-height: 44px; padding: 0 20px; font-size: 15px; }
@media (max-width: 389px) {
  .email-row .btn-primary { padding: 0 14px; font-size: 14px; }
  .waitlist input[type="email"] { padding-left: 12px; }
}
.waitlist input[type="email"]::placeholder { color: var(--text-3); opacity: 1; }
.waitlist fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.choices { display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border-radius: 999px; background: var(--card); }
.choices label {
  position: relative; display: flex; align-items: center; justify-content: center; min-height: 44px;
  border-radius: 999px; cursor: pointer; font-size: 15px; font-weight: 500; color: var(--text-2);
}
.choices input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choices label:has(input:checked) { background: var(--bg); color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 0 0 .5px rgba(0, 0, 0, .06); }
@media (prefers-color-scheme: dark) { .choices label:has(input:checked) { background: #000; box-shadow: none; } }
.choices label:has(input:focus-visible) { outline: 2px solid var(--text); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0; font-size: 15px; color: var(--text); cursor: pointer; }
.check input {
  appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 0;
  border: 1.5px solid var(--text-2); border-radius: 6px; background: transparent; cursor: pointer; display: grid; place-items: center;
}
.check input:checked { background: var(--text); border-color: var(--text); }
.check input:checked::after { content: ""; width: 10px; height: 6px; border: solid var(--bg); border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.check span b { display: block; font-weight: 600; line-height: 1.4; }
.check span small { display: block; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.check[hidden] { display: none; }
.form-note { font-size: 13px; line-height: 1.5; color: var(--text-2); margin: 4px 0 0; }
.founding-left { font-weight: 600; color: var(--text); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---- How Run52 works · 52 weeks ---- */
.weeks-grid { display: grid; gap: 56px; }
@media (min-width: 900px) { .weeks-grid { grid-template-columns: minmax(0, 520px) 1fr; gap: 96px; align-items: start; } }
.weeks-left { display: grid; gap: 20px; }
.weeks-left .body-l { max-width: 520px; }
.counter { padding-top: 32px; border-top: 1px solid var(--line); display: grid; gap: 16px; }
.counter-num { display: flex; align-items: baseline; gap: 12px; margin: 0; font: 800 clamp(5rem, 7vw, 7.5rem)/.85 var(--display); letter-spacing: -0.04em; }
.counter-num span { font-variant-numeric: tabular-nums; }
.counter-num small { font: 700 clamp(1.5rem, 2.4vw, 2.5rem)/1 var(--display); letter-spacing: 0; color: var(--text-2); }
.ticks { display: flex; gap: 4px; height: 32px; }
.ticks i { flex: 1; border-radius: 2px; background: color-mix(in srgb, var(--text-3) 35%, transparent); }
.ticks i.on { background: var(--accent); }
.milestones { border-top: 1px solid var(--line); }
.milestones li { display: grid; grid-template-columns: 150px 1fr; gap: 32px; align-items: center; padding: 32px 0; border-bottom: 1px solid var(--line); }
.ms-num { font: 800 clamp(3.5rem, 5vw, 6rem)/.9 var(--display); letter-spacing: -0.04em; color: var(--text-2); transition: color .3s; }
.milestones li > span:last-child { display: grid; gap: 8px; }
.milestones b { font: 700 clamp(1.25rem, 1.4vw + .6rem, 1.625rem)/1.15 var(--display); text-transform: uppercase; letter-spacing: -0.005em; color: var(--text-2); transition: color .3s; }
.milestones li.active .ms-num { color: var(--accent-strong); }
@media (prefers-color-scheme: dark) { .milestones li.active .ms-num { color: var(--accent); } }
.milestones li.active b { color: var(--text); }
.milestones + .small { margin-top: 16px; }
@media (max-width: 899px) { .milestones li { grid-template-columns: 76px 1fr; gap: 16px; padding: 24px 0; } }

/* ---- Calculator v2 ---- */
.calc-card { display: grid; overflow: hidden; }
@media (min-width: 900px) { .calc-card { grid-template-columns: minmax(0, 520px) 1fr; } }
.calc-in { display: grid; gap: 28px; padding: 40px; align-content: start; }
.calc-in h3 { font-size: 1.375rem; }
.calc-in fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.calc-in legend { font-size: 15px; font-weight: 600; padding: 0; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--card); font-size: 15px; font-weight: 500; cursor: pointer; }
.chips input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chips label:has(input:checked) { background: var(--text); color: var(--bg); }
.chips label:has(input:focus-visible) { outline: 2px solid var(--text); outline-offset: 2px; }
.slider .head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.slider label { font-size: 15px; font-weight: 600; }
.slider output { font-size: 15px; font-weight: 500; color: var(--text-2); }
.slider input[type="range"] {
  --p: 50%;
  -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 44px; margin: 12px 0 0;
  border-radius: 999px; cursor: pointer;
  background: linear-gradient(to right, var(--accent) 0, var(--accent) calc(var(--p) * .86 + 44px), var(--card) calc(var(--p) * .86 + 44px));
}
.slider input[type="range"]::-webkit-slider-runnable-track { height: 44px; border-radius: 999px; background: transparent; }
.slider input[type="range"]::-moz-range-track { height: 44px; border-radius: 999px; background: transparent; }
.slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 44px; height: 44px; border-radius: 50%;
  background: #fff; border: 8px solid var(--accent); box-sizing: border-box;
}
.slider input[type="range"]::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 8px solid var(--accent); }
.slider input[type="range"]:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.calc-out { display: grid; gap: 20px; align-content: start; padding: 40px; background: var(--card); }
@media (prefers-color-scheme: dark) { .calc-out { background: rgba(255, 255, 255, .06); } }
.big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 0; }
.big b { font: 800 clamp(3.5rem, 5vw, 5rem)/1 var(--display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.big span { font-size: 15px; font-weight: 500; color: var(--text-2); }
.rows { margin: 0; }
.rows div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; }
.rows dt { color: var(--text-2); }
.rows dd { margin: 0; font-weight: 600; text-align: right; white-space: nowrap; }
.bars { display: grid; grid-template-columns: repeat(52, 1fr); align-items: end; gap: 3px; height: 160px; }
.bars i { display: block; border-radius: 2px 2px 0 0; background: var(--accent); height: var(--h, 10%); transition: height .35s cubic-bezier(.22, 1, .36, 1); }
.bars i.easy { background: var(--card-2); }
@media (prefers-color-scheme: dark) { .bars i.easy { background: rgba(255, 255, 255, .16); } }
.phases { position: relative; height: 18px; font-size: 12px; color: var(--text-2); }
.phases > span { position: absolute; left: calc((var(--w) - 1) / 52 * 100%); white-space: nowrap; }
.legend { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: var(--text-2); }
.legend .k { width: 10px; height: 10px; border-radius: 2px; background: var(--card-2); margin-left: 12px; }
.legend .k.on { background: var(--accent); margin-left: 0; }
@media (max-width: 899px) {
  .calc-in, .calc-out { padding: 32px 20px; }
  .rows div { flex-direction: column; gap: 2px; }
  .rows dd { text-align: left; }
  .bars { gap: 2px; height: 120px; }
  .ph-long { display: none; }
}

/* ---- Works with ---- */
.works-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.works-row li { display: grid; gap: 12px; align-content: start; padding: 24px; }
.works-row h3 { font-size: 15px; font-weight: 700; margin-top: 4px; }
.works-row p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.works-row .tile svg[role="img"] { color: var(--text); }
@media (max-width: 899px) { .works-row { grid-template-columns: 1fr 1fr; } }

/* ---- Grids, pillars, privacy points ---- */
.grid3 { display: grid; gap: 24px; }
@media (min-width: 900px) { .grid3 { grid-template-columns: repeat(3, 1fr); } }
.grid2 { display: grid; gap: 24px; }
@media (min-width: 900px) { .grid2 { grid-template-columns: repeat(2, 1fr); } }
.pillar, .point { display: grid; gap: 16px; align-content: start; padding: 40px; }
.pillar h3 { font-size: 1.875rem; letter-spacing: -0.01em; }
.point { padding: 32px; gap: 12px; }
.point h3 { font-size: 1.25rem; }
.pillar p, .point p { margin: 0; color: var(--text-2); line-height: 1.55; }
@media (max-width: 899px) { .pillar, .point { padding: 32px 24px; } }

/* ---- Stories ---- */
.stories-row { --edge: max(var(--gutter), calc((100% - var(--max)) / 2)); display: flex; gap: 28px; padding: 0 var(--edge); scroll-padding-inline: var(--edge); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.stories-row::-webkit-scrollbar { display: none; }
.stories-row li { flex: none; width: 256px; scroll-snap-align: start; }
.stories-row li:nth-child(even) { padding-top: 56px; }
.stories-row img { width: 256px; }
.stories .wrap:last-child { margin-top: 48px; }
@media (max-width: 899px) { .stories-row { gap: 16px; } .stories-row li, .stories-row img { width: 200px; } .stories-row li:nth-child(even) { padding-top: 40px; } }

/* ---- Features ---- */
.feature { display: grid; gap: 40px; align-items: center; }
.feature + .feature { margin-top: 96px; }
.f-text { display: grid; gap: 20px; }
.f-text .body-l { max-width: 520px; }
.ticks-list { display: grid; gap: 12px; padding-top: 8px; }
.ticks-list li { display: flex; gap: 10px; align-items: center; font-size: 15px; font-weight: 500; }
.ticks-list li::before { content: ""; width: 16px; height: 16px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }
.f-visual { border-radius: 40px; overflow: hidden; aspect-ratio: 584 / 528; }
.f-visual img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .feature { grid-template-columns: minmax(0, 520px) 1fr; gap: 96px; }
  .feature.flip { grid-template-columns: 1fr minmax(0, 520px); }
  .feature.flip .f-text { order: 2; }
  .feature + .feature { margin-top: 120px; }
}
@media (max-width: 899px) { .feature + .feature { margin-top: 72px; } .f-visual { border-radius: var(--radius); } }

/* ---- AI coach ---- */
.ai-card { display: grid; grid-template-rows: auto auto 1fr; gap: 12px; padding: 40px 40px 0; height: 620px; overflow: hidden; }
.ai-card h3 { font-size: 1.875rem; line-height: 1.15; letter-spacing: -0.01em; }
.ai-card p { margin: 0; color: var(--text-2); line-height: 1.55; }
.ai-card img { width: 316px; align-self: start; justify-self: center; margin-top: 36px; }
@media (max-width: 899px) { .ai-card { height: 520px; padding: 32px 24px 0; } .ai-card h3 { font-size: 1.375rem; } .ai-card img { width: 260px; margin-top: 24px; } }

/* ---- And there's more ---- */
.more-grid { display: grid; padding: 16px 40px; }
.more-grid li { display: grid; gap: 12px; align-content: start; padding: 32px 0; border-top: 1px solid var(--line); }
.more-grid h3 { font-size: 1.375rem; letter-spacing: -0.005em; margin-top: 4px; }
.more-grid p { margin: 0; font-size: 15px; color: var(--text-2); line-height: 1.55; }
@media (min-width: 900px) {
  .more-grid { grid-template-columns: repeat(3, 1fr); column-gap: 40px; }
  .more-grid li:nth-child(-n + 3) { border-top: 0; }
}
@media (max-width: 899px) { .more-grid { padding: 8px 24px; } .more-grid li:first-child { border-top: 0; } }

/* ---- Everywhere (ASCII globe) ---- */
.globe-card { display: grid; gap: 8px; padding: 32px 24px 0; overflow: hidden; }
.globe-copy { display: grid; gap: 20px; }
.langs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.langs li { padding: 10px 16px; border-radius: 999px; background: var(--card-2); font-weight: 600; font-size: 15px; line-height: 1.2; }
.globe { position: relative; height: 300px; }
.globe-box {
  position: absolute; top: 32px; left: 50%; width: 360px; aspect-ratio: 1; margin-left: -180px;
  color: var(--text); border-radius: 50%; cursor: grab; touch-action: pan-y;
}
.globe-box:active { cursor: grabbing; }
.globe-box:focus-visible { border-radius: 50%; outline-offset: -2px; }
.globe-box canvas {
  display: block; width: 100%; height: 100%;
  color: var(--text-3); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; /* the ASCII globe's soft grey ink */
}
.globe-toggle {
  position: absolute; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg); color: var(--text-2); cursor: pointer; font: inherit; line-height: 1;
}
@media (min-width: 640px) {
  .globe { height: 420px; }
  .globe-box { width: 520px; margin-left: -260px; }
}
@media (min-width: 1100px) {
  .globe-card { grid-template-columns: minmax(0, 520px) 1fr; align-items: center; gap: 48px; padding: 0 0 0 96px; min-height: 640px; }
  .globe { align-self: stretch; height: auto; min-height: 640px; }
  .globe-box { top: 70px; left: 20px; width: 620px; margin-left: 0; }
}

/* ---- Pricing (Figma: Pricing · v2) ---- */
.plans { display: grid; gap: 20px; }
@media (min-width: 768px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { display: flex; flex-direction: column; gap: 24px; padding: 40px; }
.plan-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.plan h3 { color: var(--link); font: 800 clamp(1.4rem, 2vw + .5rem, 2rem)/1.1 var(--display); text-transform: uppercase; }
.plan h3 span { display: block; }
.plan-badge {
  flex: none; display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--text); color: var(--bg); font: 600 15px/1.4 var(--sans); letter-spacing: 0.06em; text-transform: uppercase;
}
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0; font: 800 clamp(2rem, 4vw, 3.5rem)/1 var(--display); letter-spacing: -0.02em; }
.plan-price s { color: var(--text-2); }
.plan-price small { font: 600 15px/1 var(--sans); color: var(--text-2); letter-spacing: 0; }
.plan-caption { margin: 0; flex: 1; color: var(--text-2); }
.plan .small { margin: 0; min-height: 3em; } /* two lines in both cards, so the buttons line up */
.plan .btn-primary { width: 100%; }
@media (max-width: 899px) { .plan { padding: 32px 24px; } }
@media (max-width: 479px) { .plan .btn-primary { font-size: 16px; } }
.compare { width: 100%; margin-top: 64px; border-collapse: collapse; }
.compare th, .compare td { padding: 20px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.compare thead th { padding-top: 0; font: 800 clamp(1.1rem, 2.4vw, 2rem)/1.2 var(--display); text-transform: uppercase; }
.compare thead th + th { font: 700 1.375rem/1.2 var(--display); }
.compare th + th, .compare td { width: 160px; text-align: center; }
.compare tbody th b { display: block; font-weight: 600; font-size: 15px; }
.compare tbody th span { display: block; font-size: 13px; color: var(--text-2); }
.mark { display: inline-block; width: 24px; height: 24px; border-radius: 50%; vertical-align: middle; }
.mark.yes {
  background: var(--accent-strong) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.mark.no { box-shadow: inset 0 0 0 1.5px var(--text-2); }
@media (max-width: 767px) {
  .compare th + th, .compare td { width: 56px; }
  .compare thead th + th { font-size: 15px; }
  .compare tbody th { padding-right: 8px; }
}

/* ---- FAQ ---- */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; padding: 24px 0;
  font: 700 1.125rem/1.3 var(--display); text-transform: uppercase; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--text-2); transition: transform .2s; }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq details p { margin: -8px 0 24px; max-width: 60rem; color: var(--text-2); }

/* ---- Final CTA ---- */
.final-card { display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 80px 24px; text-align: center; }
.final-card h2 { font-size: clamp(2rem, 5vw + .5rem, 5.5rem); line-height: .96; letter-spacing: -0.03em; }
@media (max-width: 899px) { .final-card { padding: 48px 20px; } }

/* ---- Footer ---- */
footer.site { padding: 80px 0 40px; }
.foot-top { display: grid; gap: 40px; }
.foot-brand { display: grid; gap: 16px; max-width: 360px; }
.foot-brand .brand svg { height: 20px; }
.foot-brand p { margin: 0; font-size: 15px; color: var(--text-2); }
.foot-cols { display: flex; flex-wrap: wrap; gap: 40px 80px; }
.foot-cols div { display: grid; gap: 4px; align-content: start; }
.foot-cols h2 { font: 600 15px/1.4 var(--sans); text-transform: none; letter-spacing: 0; margin-bottom: 8px; }
.foot-cols a { display: inline-flex; align-items: center; min-height: 28px; font-size: 15px; color: var(--text-2); text-decoration: none; }
.foot-cols a:hover { color: var(--text); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.foot-bottom p { margin: 0; display: flex; gap: 16px; }
.foot-bottom a { text-decoration: none; }
@media (min-width: 900px) { .foot-top { grid-template-columns: 1fr auto; } }
@media (max-width: 767px) { footer.site { padding-bottom: 120px; } } /* room for the sticky bar */

/* ---- Small pages (thanks, confirmed, 404) and the privacy page ---- */
.logo { font: 800 1.15rem/1 var(--display); letter-spacing: -0.02em; text-decoration: none; color: var(--text); white-space: nowrap; }
.logo span { font-weight: 300; }
body.simple { min-height: 100vh; display: grid; place-items: center; padding: 40px var(--gutter); text-align: center; }
body.simple main { max-width: 32rem; display: grid; justify-items: center; gap: 8px; }
body.simple .logo { margin-bottom: 32px; }
body.simple h1 { font-size: clamp(2.2rem, 7vw, 3.4rem); margin-bottom: 12px; }
body.simple p { color: var(--text-2); }
.doc { max-width: 720px; margin-inline: auto; padding: 32px var(--gutter) 80px; }
.doc header { margin-bottom: 48px; }
.doc h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); margin: 24px 0 20px; }
.doc h2 { font-size: 1.35rem; margin-top: 40px; margin-bottom: 12px; }
.doc p, .doc li { color: var(--text-2); }
.doc ul { list-style: disc; padding-left: 1.25rem; }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.doc th, .doc td { text-align: left; padding: 10px 8px; border-top: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--text); }
.doc .box { background: var(--card); border-radius: 16px; padding: 20px 24px; }
.doc .box p { margin: 0; color: var(--text); }
.share-box { margin: 8px 0 24px; }
.share-label { font-weight: 600; margin: 0 0 8px; }
.share-row { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 6px 6px 6px 18px; border-radius: 999px; background: var(--card); max-width: 30rem; }
.share-row span { overflow-wrap: anywhere; }

/* ---- Sticky bottom CTA (Figma: Web/Sticky CTA 829:20878) ---- */
:root {
  --cta-glass: rgba(255, 255, 255, .72);
  --cta-line: rgba(0, 0, 0, .08);
  --cta-text: #0a0a0a;
  --cta-text-2: #55555c;
  --cta-chip: #f4f4f5;
}
@media (prefers-color-scheme: dark) {
  :root {
    --cta-glass: rgba(0, 0, 0, .72);
    --cta-line: rgba(255, 255, 255, .10);
    --cta-text: #ffffff;
    --cta-text-2: #aeaeb2;
    --cta-chip: #1c1c1e;
  }
}
.sticky-cta {
  position: fixed; z-index: 50; left: 50%; bottom: 24px;
  width: min(720px, calc(100% - 2 * var(--gutter)));
  transform: translate(-50%, 0); opacity: 1;
  transition: transform .4s cubic-bezier(.22, 1, .36, 1), opacity .4s cubic-bezier(.22, 1, .36, 1);
}
.sticky-cta[data-state="hidden"] { transform: translate(-50%, calc(100% + 24px)); opacity: 0; pointer-events: none; }
.sticky-cta__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 72px; padding: 12px 12px 12px 24px; border-radius: 999px;
  background: var(--cta-glass); border: 1px solid var(--cta-line);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px -12px rgba(0,0,0,.10), 0 40px 90px -20px rgba(0,0,0,.12);
}
.sticky-cta__inner[hidden] { display: none; }
.sticky-cta__text { display: grid; gap: 2px; min-width: 0; margin-right: auto; }
.sticky-cta__title { margin: 0; font: 600 15px/21px var(--sans); color: var(--cta-text); }
.sticky-cta__line { margin: 0; font: 400 13px/19.5px var(--sans); color: var(--cta-text-2); }
.sticky-cta__btn {
  flex: none; display: inline-flex; align-items: center; height: 48px; padding: 0 24px; border-radius: 999px;
  background: var(--accent); color: #fff; text-decoration: none; /* brand orange, same as the app button (owner) */
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
  font: 700 19px/1 var(--display); text-transform: uppercase; letter-spacing: 0;
}
.sticky-cta__btn:hover { filter: brightness(1.06); }
.sticky-cta__btn:focus-visible, .sticky-cta__close:focus-visible { outline: 2px solid var(--cta-text); outline-offset: 3px; }
.sticky-cta__check {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px;
  background: var(--accent-strong); color: #fff;
}
.sticky-cta__inner[data-view="joined"] { gap: 12px; }
.sticky-cta__close {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 0;
  background: var(--cta-chip); color: var(--cta-text); cursor: pointer;
}
.sticky-cta .only-m { display: none; }
@media (max-width: 767px) {
  .sticky-cta { left: 0; bottom: 0; width: 100%; transform: none; }
  .sticky-cta[data-state="hidden"] { transform: translateY(100%); }
  .sticky-cta__inner {
    min-height: 0; border-radius: 24px 24px 0 0; border-width: 1px 0 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .sticky-cta__btn { padding: 0 20px; }
  .sticky-cta .only-d { display: none; }
  .sticky-cta .only-m { display: inline; }
}
.sticky-cta__title, .sticky-cta__line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 389px) {
  .sticky-cta__inner { gap: 10px; padding-left: 14px; padding-right: 14px; }
  .sticky-cta__btn { padding: 0 14px; }
}

/* ---- Reduced motion: no transitions; the GSAP code checks the same media query ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; scroll-behavior: auto !important; }
  .sticky-cta, .sticky-cta[data-state="hidden"] { transition: opacity .2s linear !important; }
  .sticky-cta[data-state="hidden"] { transform: translate(-50%, 0); }
}
@media (prefers-reduced-motion: reduce) and (max-width: 767px) {
  .sticky-cta[data-state="hidden"] { transform: none; }
}
