/* kwid — the coming-soon site. Every value comes from kwid-brand-brief.docx:
   colour §5, type §6, layout §7, page rhythm §10. One theme on the web (D7, D18). */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --deep: #12261C;
  --green: #2E8B5F;
  --green-text: #28794F;   /* the brand green darkened for small text: 5.1:1 on cream (D7) */
  --bright: #5CC98A;
  --mint: #E7F2EA;
  --mist: #C9E4D2;
  --cream: #FBFAF6;
  --white: #FFFFFF;
  --ink: #1A1C18;
  --grey: #6A6D64;
  --mute-text: #75786F;    /* labels and captions, readable (D7) */
  --line: #ECEAE3;
  --amber: #E09B2D;        /* needs your attention, never "you failed" */
  --amber-text: #96620F;
  --amber-bg: #FDF0DC;
  --bank: #7E8B84;         /* the bank's record: cool */

  --radius-card: 16px;
  --radius-inner: 12px;
  --radius-pill: 26px;
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* §9: 5% grain across the whole site — the detail that stops it reading as a template. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .05;
  z-index: 50;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.num { font-variant-numeric: tabular-nums; }

a { color: var(--green-text); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- the wordmark (§4) ----------
   Lowercase, 700, -0.045em. Dotless i with the coin drawn as a circle, centred on the stem's ink,
   its top edge at the natural tittle height. Construction measured in prototype/app.css. */
.wordmark {
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  color: var(--deep);
  text-decoration: none;
}
.wordmark .i { position: relative; display: inline-block; letter-spacing: 0; line-height: 1; }
.wordmark .coin {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: .135em; height: .135em; bottom: .71em;
  border-radius: 50%; background: var(--amber);
}
.wordmark.small .coin { width: .115em; height: .115em; }

/* ---------- header ---------- */
.top { padding: 22px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; }
.top .wordmark { font-size: 30px; }
.top .soon {
  font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; font-weight: 600;
  color: var(--green-text); background: var(--mint); padding: 6px 12px; border-radius: var(--radius-pill);
}

/* ---------- hero: the one mesh wash on the page (§9) ---------- */
.hero {
  background:
    radial-gradient(60% 70% at 85% 10%, var(--mist) 0%, transparent 70%),
    radial-gradient(70% 60% at 10% 90%, var(--mint) 0%, transparent 70%),
    var(--cream);
  padding: 24px 0 72px;
}
.hero .wrap { display: grid; gap: 40px; align-items: center; }
.eyebrow {
  font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; font-weight: 600;
  color: var(--mute-text); margin: 0 0 14px;
}
h1 {
  font-size: clamp(38px, 7vw, 56px);
  font-weight: 700;
  letter-spacing: -1.4px;
  line-height: 1.04;
  margin: 0 0 20px;
  color: var(--deep);
  text-wrap: balance;
}
.lede { font-size: 19px; color: var(--grey); margin: 0 0 28px; max-width: 34em; text-wrap: pretty; }

/* ---------- the waitlist form ---------- */
.join { max-width: 460px; }
.join .row { display: flex; gap: 8px; flex-wrap: wrap; }
.join input[type=email] {
  flex: 1 1 220px; min-width: 0;
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-inner);
  padding: 14px 16px; outline: none;
}
.join input[type=email]:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(46,139,95,.15); }
.btn {
  font: inherit; font-weight: 600; font-size: 16px;
  background: var(--deep); color: var(--cream);
  border: 0; border-radius: var(--radius-inner); padding: 14px 20px; cursor: pointer;
}
.btn:hover { background: #1c3a2b; }
.btn:disabled { opacity: .6; cursor: default; }
.who { border: 0; padding: 0; margin: 16px 0 0; }
.who legend { font-size: 13px; color: var(--mute-text); margin-bottom: 8px; padding: 0; }
.who .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.who label { position: relative; }
.who input { position: absolute; opacity: 0; pointer-events: none; }
.who span {
  display: inline-block; font-size: 14px; font-weight: 500; color: var(--grey);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 7px 14px; cursor: pointer; user-select: none;
}
.who input:checked + span { background: var(--mint); color: var(--deep); border-color: var(--mist); }
.who input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.fine { font-size: 13px; color: var(--mute-text); margin: 14px 0 0; }
.fine a { color: inherit; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.done {
  display: none; background: var(--white); border-radius: var(--radius-card); padding: 20px 22px;
}
.done strong { display: block; font-size: 19px; font-weight: 600; color: var(--deep); margin-bottom: 4px; }
.done p { margin: 0; color: var(--grey); font-size: 15px; }
.join.is-done form { display: none; }
.join.is-done .done { display: block; }
.err { display: none; margin: 10px 0 0; font-size: 14px; color: var(--amber-text); }
.join.is-err .err { display: block; }

/* ---------- claim + evidence (§10: alternate, four or five times) ---------- */
.beat { padding: 72px 0; }
.beat .wrap { display: grid; gap: 32px; align-items: center; }
.beat.mint { background: var(--mint); }
.claim h2 {
  font-size: clamp(30px, 5vw, 42px); font-weight: 700; letter-spacing: -1px; line-height: 1.08;
  color: var(--deep); margin: 0 0 16px; text-wrap: balance;
}
.claim p { margin: 0; color: var(--grey); max-width: 30em; text-wrap: pretty; }

/* cards: white on cream (or on mint), no border, no shadow (§7) */
.card { background: var(--white); border-radius: var(--radius-card); padding: 22px; }
.label {
  font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; font-weight: 600;
  color: var(--mute-text); margin: 0 0 10px;
}
.rows { list-style: none; margin: 0; padding: 0; }
.rows li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 11px 0; border-top: 1px solid var(--line);
}
.rows li:first-child { border-top: 0; }
.rows .what { font-weight: 500; }
.rows .sub { display: block; font-size: 13px; color: var(--mute-text); font-weight: 400; }
.rows .amt { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* the split: the bank's line (cool) → what you said (warm/mint) */
.bankline {
  display: flex; justify-content: space-between; align-items: baseline;
  font-weight: 600; font-size: 15px; letter-spacing: .3px; color: var(--bank);
  padding: 4px 0 18px; border-bottom: 1px dashed var(--line); margin-bottom: 18px;
}
.bankline .amt { color: var(--ink); font-variant-numeric: tabular-nums; }
.said {
  background: var(--mint); border-radius: var(--radius-inner); padding: 14px 16px; margin-bottom: 14px;
  font-size: 15px; color: var(--deep); line-height: 1.5;
}
.said::before { content: "You said  "; font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; font-weight: 600; color: var(--green-text); }

/* a day: told (green dot) and the one still to explain (amber) */
.dayhead { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.dayhead strong { font-size: 19px; font-weight: 600; color: var(--deep); }
.dayhead span { font-size: 13px; color: var(--mute-text); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 8px; background: var(--bright); vertical-align: 1px; }
.rows li.ask .dot { background: var(--amber); }
.rows li.ask .sub { color: var(--amber-text); }
.bank { font-size: 13px; letter-spacing: .3px; font-weight: 600; color: var(--bank); }

/* the pack excerpt (§10 hierarchy) */
.pack h3 { font-size: 27px; font-weight: 600; letter-spacing: -.5px; line-height: 1.2; color: var(--deep); margin: 0 0 6px; }
.pack .standfirst { color: var(--grey); font-size: 15px; margin: 0 0 18px; }
.onething {
  background: var(--deep); color: var(--cream); border-radius: var(--radius-inner);
  padding: 16px 18px; margin-top: 16px; font-size: 15px; line-height: 1.5;
}
.onething .label { color: var(--bright); margin-bottom: 6px; }

/* goals: bars 7–14px, fully rounded, line track (§7) */
.goal { padding: 14px 0; border-top: 1px solid var(--line); }
.goal:first-of-type { border-top: 0; padding-top: 4px; }
.goal .gh { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.goal .gh strong { font-weight: 600; }
.goal .gh .amt { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar { height: 10px; background: var(--line); border-radius: 99px; margin: 10px 0 6px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--green); border-radius: 99px; }
.goal .note { display: block; font-size: 13px; line-height: 1.5; color: var(--mute-text); }
.square { background: var(--mint); border-radius: var(--radius-inner); padding: 12px 14px; margin-top: 12px; font-size: 15px; color: var(--deep); }

/* ---------- close ---------- */
.close { background: var(--deep); color: var(--cream); padding: 80px 0; }
.close h2 { font-size: clamp(30px, 5vw, 42px); font-weight: 700; letter-spacing: -1px; line-height: 1.08; margin: 0 0 14px; }
.close p.body { color: #C9D6CE; margin: 0 0 26px; max-width: 32em; }
.close .join input[type=email] { border-color: transparent; }
.close .btn { background: var(--bright); color: var(--deep); }
.close .btn:hover { background: #6fd49a; }
.close .fine { color: #9FB2A7; }
.close .who legend { color: #9FB2A7; }
.close .who span { background: transparent; color: #C9D6CE; border-color: #2C4A3B; }
.close .who input:checked + span { background: var(--mint); color: var(--deep); border-color: var(--mint); }
.close .err { color: var(--amber); }

/* ---------- footer ---------- */
footer { padding: 28px 0 40px; font-size: 14px; color: var(--mute-text); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
footer .wordmark { font-size: 22px; }
footer nav { display: flex; gap: 20px; }
footer a { color: var(--mute-text); }

/* ---------- wider screens: claim beside its evidence, alternating sides ---------- */
@media (min-width: 860px) {
  .hero { padding: 40px 0 110px; }
  .hero .wrap { grid-template-columns: 1.15fr .85fr; gap: 64px; }
  .beat { padding: 110px 0; }
  .beat .wrap { grid-template-columns: 1fr 1fr; gap: 72px; }
  .beat.flip .claim { order: 2; }
  .card { padding: 28px; }
}

/* ---------- the privacy page ---------- */
.doc { max-width: 680px; margin: 0 auto; padding: 24px 20px 80px; }
.doc h1 { font-size: clamp(32px, 6vw, 44px); }
.doc h2 { font-size: 19px; font-weight: 600; color: var(--deep); margin: 34px 0 8px; }
.doc p, .doc li { color: var(--grey); }
.doc .placeholder { background: var(--amber-bg); color: var(--amber-text); padding: 0 4px; border-radius: 4px; }

/* ---------- added with the second draft of the words ---------- */
.suggest {
  background: var(--mint); border-radius: var(--radius-inner); padding: 14px 16px; margin-top: 16px;
  font-size: 15px; line-height: 1.5; color: var(--deep);
}
.suggest .label { color: var(--green-text); margin-bottom: 4px; }
.big { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 2px 0 4px; }
.big .fig { font-size: 44px; font-weight: 600; letter-spacing: -1px; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); }
.big .when { font-size: 13px; color: var(--mute-text); text-align: right; }
.cap { font-size: 14px; color: var(--grey); margin: 0 0 16px; }
.flow .arrow { color: var(--bank); padding: 0 4px; }
.flow .what { font-weight: 500; }
.tell { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; color: var(--amber-text); background: var(--amber-bg); border-radius: var(--radius-inner); padding: 10px 14px; }
.tell .dot { background: var(--amber); margin: 0; }

/* ---------- the Instagram follow button (D20: no waitlist, no personal data) ---------- */
.follow { max-width: 460px; }
.follow .btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.follow .ig { flex: none; }
.close .follow .btn { background: var(--bright); color: var(--deep); }
