/* Worth & Keep marketing site. Colours and type mirror apps/mobile/src/theme (design system v1, 1 Oct 2026). */

:root {
  --ground: #f3f3f0;
  --surface: #ffffff;
  --sunken: #e8e9e6;
  --hairline: #d5d8dc;
  --hairline-strong: #868d99;
  --ink: #121a2b;
  --ink-muted: #4f5868;
  --lapis: #1b3a6b;
  --lapis-deep: #0e1f3b;
  --on-lapis-deep: #ffffff;
  --lapis-tint: #dfe6f1;
  --on-lapis: #ffffff;
  --brass: #ad8540;
  --brass-text: #7a5a22;
  --brass-tint: #efe4cc;
  --gain: #1d6b5a;
  --gain-tint: #ddeee8;
  --loss: #a8421a;
  --focus: #1b3a6b;

  --display: "Bodoni Moda", "Bodoni 72", Didot, Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --gutter: 16px;
  --measure: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0b1220;
    --surface: #141d2f;
    --sunken: #070c16;
    --hairline: #273349;
    --hairline-strong: #66738b;
    --ink: #eceef2;
    --ink-muted: #a4acbb;
    --lapis: #8fb0e6;
    --lapis-deep: #24477f;
    --on-lapis-deep: #eceef2;
    --lapis-tint: #1a2a47;
    --on-lapis: #0b1220;
    --brass: #d4ae63;
    --brass-text: #ddbb76;
    --brass-tint: #3a2f1a;
    --gain: #5fc3a6;
    --gain-tint: #12322b;
    --loss: #f08a5d;
    --focus: #8fb0e6;
    color-scheme: dark;
  }
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
figure { margin: 0; }
[id] { scroll-margin-top: 88px; }

a { color: var(--lapis); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: var(--gutter); top: -60px;
  background: var(--lapis); color: var(--on-lapis); padding: 8px 14px; border-radius: 4px; z-index: 10;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--measure); margin: 0 auto; padding: 0 var(--gutter); }

/* ------------------------------------------------------------------ type */

h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(40px, 7vw, 72px); }
h2 { font-size: clamp(30px, 4.4vw, 44px); }
h3 { font-size: 24px; }
p { margin: 0; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink-muted); max-width: 36em; }
.eyebrow {
  font: 500 13px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass-text);
}
.num { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-muted); }
.after { margin-top: 24px; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.small { font-size: 14px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ header */

.top { border-bottom: 1px solid var(--hairline); background: var(--ground); position: sticky; top: 0; z-index: 5; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: block; width: 156px; flex: none; }
.brand img { width: 100%; height: auto; }
.nav { display: flex; align-items: center; gap: 4px 22px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; padding: 6px 0; }
.nav a:hover { color: var(--lapis); }
.nav a[aria-current="page"] { color: var(--lapis); box-shadow: inset 0 -2px 0 var(--brass); }
.nav .btn { padding: 9px 16px; font-size: 15px; color: var(--on-lapis); }
.nav .btn:hover { color: var(--on-lapis); }
@media (max-width: 719px) {
  .top .wrap { flex-wrap: wrap; padding-top: 12px; padding-bottom: 8px; }
  .brand { width: 132px; }
  .nav { width: 100%; justify-content: flex-start; gap: 4px 18px; }
  .nav .btn { display: none; }
}

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 4px; font: 600 16px/1 var(--sans); text-decoration: none;
  background: var(--lapis); color: var(--on-lapis); border: 1px solid var(--lapis);
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.secondary { background: transparent; color: var(--lapis); border-color: var(--hairline-strong); }
.btn.secondary:hover { border-color: var(--lapis); filter: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------------------ sections */

section { padding: 72px 0; }
@media (min-width: 900px) { section { padding: 104px 0; } }
section + section { border-top: 1px solid var(--hairline); }
.band { background: var(--surface); }
/* The deep band keeps the light theme's lapis in both themes, so brass on it passes contrast. */
.deep { background: #0e1f3b; color: #ffffff; border-top: 0 !important; }
@media (prefers-color-scheme: dark) { .deep { border-top: 1px solid var(--hairline) !important; border-bottom: 1px solid var(--hairline); } }
.deep .lead, .deep .muted { color: #c9d1de; }
.deep .eyebrow { color: #d4ae63; }
.deep a { color: inherit; }
.deep .btn { background: #d4ae63; border-color: #d4ae63; color: #0e1f3b; }

.head { display: grid; gap: 16px; margin-bottom: 48px; max-width: 760px; }

/* ------------------------------------------------------------------ hero */

.hero { padding-top: 56px; }
.hero .wrap { display: grid; gap: 56px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--brass-text); }
.hero-copy { display: grid; gap: 24px; }
.hero-note { font-size: 14px; color: var(--ink-muted); }
@media (min-width: 960px) {
  .hero { padding-top: 88px; }
  .hero .wrap { grid-template-columns: 1.1fr 0.9fr; gap: 72px; }
}

/* Phone-sized illustration of Home, built in HTML so it stays sharp and themed. Sample figures. */
.arch {
  border-radius: 999px 999px 8px 8px; background: var(--lapis-tint); padding: 64px 28px 28px;
  max-width: 420px; width: 100%; margin: 0 auto; position: relative;
}
.arch::before {
  content: ""; position: absolute; inset: 10px; border: 1px solid color-mix(in srgb, var(--lapis) 35%, transparent);
  border-radius: 999px 999px 4px 4px; pointer-events: none;
}
.screen {
  position: relative; background: var(--ground); border: 1px solid var(--hairline); border-radius: 20px;
  padding: 20px; display: grid; gap: 16px; box-shadow: 0 18px 40px -24px rgba(14, 31, 59, 0.45);
}
.screen .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.screen .label { font-size: 13px; color: var(--ink-muted); }
.screen .total { font: 500 clamp(26px, 7.4vw, 34px)/1.1 var(--mono); letter-spacing: -0.02em; }
.screen .change { white-space: nowrap; font: 500 13px/1 var(--mono); color: var(--gain); background: var(--gain-tint); padding: 4px 8px; border-radius: 2px; }
.split { display: flex; height: 8px; border-radius: 2px; overflow: hidden; gap: 2px; }
.split span:nth-child(1) { background: #1b3a6b; flex: 58; }
.split span:nth-child(2) { background: #3e6aa8; flex: 22; }
.split span:nth-child(3) { background: #7fa0cf; flex: 12; }
.split span:nth-child(4) { background: #868d99; flex: 8; }
@media (prefers-color-scheme: dark) {
  .split span:nth-child(1) { background: #8fb0e6; }
  .split span:nth-child(2) { background: #5e85c2; }
  .split span:nth-child(3) { background: #3a5f99; }
  .split span:nth-child(4) { background: #a4acbb; }
}
.items { display: grid; gap: 0; border-top: 1px solid var(--hairline); }
.items div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--hairline); font-size: 14px; }
.items small { display: block; color: var(--ink-muted); font-size: 12px; }
.alert-chip {
  display: flex; gap: 10px; align-items: flex-start; background: var(--brass-tint); border-radius: 4px; padding: 10px 12px; font-size: 13px;
}
.alert-chip i { flex: none; width: 8px; height: 8px; margin-top: 6px; background: var(--brass); transform: rotate(45deg); }
@media (max-width: 479px) {
  .arch { padding: 48px 14px 14px; }
  .screen { padding: 16px; }
  .screen .row { flex-wrap: wrap; }
}
.caption { text-align: center; font-size: 12px; color: var(--ink-muted); margin-top: 14px; }

/* ------------------------------------------------------------------ grids and cards */

.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid.two, .grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .grid.four { grid-template-columns: repeat(4, 1fr); }
}
.card { background: var(--surface); border: 1px solid var(--hairline); border-radius: 4px; padding: 28px; display: grid; gap: 12px; align-content: start; }
.band .card { background: var(--ground); }
.card h3 { font-size: 22px; }
.card p { color: var(--ink-muted); }
.card .tag { justify-self: start; font: 500 12px/1 var(--mono); color: var(--brass-text); background: var(--brass-tint); padding: 5px 8px; border-radius: 2px; }

.icon { width: 40px; height: 40px; color: var(--lapis); }
.icon path, .icon circle, .icon rect { stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; counter-reset: step; }
@media (min-width: 960px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; display: grid; gap: 10px; padding-top: 20px; border-top: 2px solid var(--lapis); }
.steps li::before { content: "0" counter(step); font: 500 14px/1 var(--mono); color: var(--brass-text); }
.steps p { color: var(--ink-muted); }

/* Split layout: text one side, panel the other. */
.split-row { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split-row { grid-template-columns: 1fr 1fr; gap: 72px; } .split-row.flip > :first-child { order: 2; } }
.stack { display: grid; gap: 20px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 9px; height: 9px; background: var(--brass); transform: rotate(45deg); }

/* A value with its evidence, as the app shows it. */
.evidence { background: var(--surface); border: 1px solid var(--hairline); border-radius: 4px; padding: 24px; display: grid; gap: 16px; }
.evidence .big { font: 500 30px/1.1 var(--mono); }
.evidence dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; font-size: 14px; }
.evidence dt { color: var(--ink-muted); }
.evidence dd { margin: 0; }
.bandbar { position: relative; height: 6px; background: var(--sunken); border-radius: 3px; margin: 6px 0 2px; }
.bandbar span { position: absolute; left: 22%; right: 30%; top: 0; bottom: 0; background: var(--lapis-tint); border: 1px solid var(--lapis); border-radius: 3px; }
.bandbar i { position: absolute; left: 47%; top: -4px; width: 2px; height: 14px; background: var(--lapis); }
.pill { white-space: nowrap; display: inline-block; font: 500 12px/1 var(--mono); padding: 5px 8px; border-radius: 2px; background: var(--sunken); color: var(--ink-muted); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--hairline); border-radius: 4px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
th { font: 600 13px/1.3 var(--sans); color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.06em; background: var(--ground); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; }
/* Phones: each row becomes a small card, so nothing scrolls sideways. */
@media (max-width: 639px) {
  .table-wrap { overflow: visible; }
  table { min-width: 0; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table, tbody, tr, td { display: block; }
  tr { padding: 16px 18px; border-bottom: 1px solid var(--hairline); }
  tr:last-child { border-bottom: 0; }
  td { padding: 4px 0; border: 0; }
  td:first-child { font: 500 20px/1.2 var(--display); padding-bottom: 8px; }
  td + td::before { content: attr(data-label); display: block; font: 600 12px/1.4 var(--sans); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-muted); }
}

/* FAQ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font: 500 20px/1.3 var(--display); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font: 400 26px/1 var(--sans); color: var(--brass-text); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 24px; color: var(--ink-muted); max-width: 46em; display: grid; gap: 12px; }

/* Waiting list (form not live yet: see README) */
.join { display: grid; gap: 28px; }
@media (min-width: 900px) { .join { grid-template-columns: 1.2fr 1fr; align-items: center; gap: 72px; } }
.notice { border: 1px solid #3e5478; border-radius: 4px; padding: 24px; display: grid; gap: 10px; }
.notice strong { font-family: var(--display); font-weight: 500; font-size: 22px; }

/* ------------------------------------------------------------------ footer */

.foot { border-top: 1px solid var(--hairline); padding: 48px 0 40px; font-size: 14px; color: var(--ink-muted); }
.foot .wrap { display: grid; gap: 28px; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-start; }
.foot img { width: 132px; height: auto; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot nav a { color: var(--ink); text-decoration: none; }
.foot nav a:hover { color: var(--lapis); }
.foot .legal { max-width: 60em; display: grid; gap: 8px; }
