/* Cadenza site. Brand: docs/BRAND.md (navy / hot orange / paper / stone, Archivo + JetBrains Mono). */
:root {
  --paper: #F3F0EA;
  --stone: #DCD8D0;
  --navy: #0E1B36;
  --orange: #FF5B1F;
  --bg: var(--paper);
  --surface: #FBFAF7;
  --ink: var(--navy);
  --muted: #4A5266;
  --line: var(--stone);
  --accent-text: #B83A0B;   /* small orange text on paper (5:1) */
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1529; --surface: #13203C; --ink: var(--paper); --muted: #AEB4C2;
    --line: #24324F; --accent-text: var(--orange);
  }
}
:root[data-theme="dark"] {
  --bg: #0B1529; --surface: #13203C; --ink: var(--paper); --muted: #AEB4C2;
  --line: #24324F; --accent-text: var(--orange);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 450 17px/1.6 "Archivo", system-ui, sans-serif;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: "Archivo", sans-serif; font-style: italic; line-height: 1.05; margin: 0; }
h1 { font-weight: 900; font-stretch: 125%; letter-spacing: -0.02em; }
h2 { font-weight: 800; font-stretch: 110%; font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.01em; }
h3 { font-weight: 800; font-stretch: 92%; font-size: 21px; }
.mono, .kicker, .tag {
  font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.kicker { font-size: 13px; color: var(--accent-text); margin-bottom: 10px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
section { padding: 64px 0; scroll-margin-top: 64px; }
.intro { max-width: 60ch; color: var(--muted); margin: 14px 0 0; }

/* header */
header.top {
  position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px);
}
header.top .wrap { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand img { height: 30px; width: auto; }
nav.links { display: none; gap: 22px; margin-left: auto; font-weight: 620; font-size: 16px; }
nav.links a { text-decoration: none; color: var(--muted); }
nav.links a:hover { color: var(--ink); }
@media (min-width: 820px) { nav.links { display: flex; } }
header.top .btn { margin-left: auto; padding: 8px 18px; }
@media (min-width: 820px) { header.top .btn { margin-left: 0; } }

.btn {
  display: inline-block; padding: 11px 22px; border-radius: 6px; font: 620 16px "Archivo", sans-serif;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
}
.btn.primary { background: var(--orange); color: var(--navy); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { border-color: currentColor; }

/* hero */
.hero { position: relative; overflow: hidden; background: var(--navy); color: var(--paper); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 55%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14,27,54,.94) 0%, rgba(14,27,54,.7) 45%, rgba(14,27,54,.1) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 80px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 74px); max-width: 12ch; }
.hero .lead { font-size: clamp(18px, 2vw, 20px); max-width: 36ch; margin: 18px 0 28px; color: #E4E2DC; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 30px 0 0; padding: 0; list-style: none; font-size: 12.5px; color: #C9CCD4; }
.facts li::before { content: ""; display: inline-block; width: 14px; height: 4px; border-radius: 2px; background: var(--orange); margin-right: 8px; vertical-align: 3px; }

/* how it works */
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px 28px; counter-reset: s; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; border-top: 3px solid var(--orange); padding-top: 12px; }
.steps li::before { content: "0" counter(s); font: 500 13px "JetBrains Mono", monospace; color: var(--muted); }
.steps b { display: block; font: italic 800 20px/1.2 "Archivo", sans-serif; font-stretch: 92%; margin: 2px 0 4px; }
.steps span { color: var(--muted); font-size: 16px; }
.screen { margin: 32px 0 0; }
.screen img { border-radius: 10px; width: 100%; box-shadow: 0 18px 50px -26px rgba(14, 27, 54, .55); }
.screen figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
.places { display: grid; gap: 12px; margin-top: 18px; }
@media (min-width: 640px) { .places { grid-template-columns: repeat(3, 1fr); } }
.places figure { margin: 0; }
.places img { border-radius: 8px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.places figcaption { font: 500 12px "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: 8px; }

/* features */
.features { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-top: 32px; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--surface); padding: 20px 22px; }
.feature h3 { font-size: 19px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.feature p { margin: 6px 0 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.tag { font-size: 10.5px; padding: 2px 7px; border-radius: 4px; font-style: normal; }
.tag.now { background: var(--orange); color: var(--navy); }
.tag.test { border: 1px solid var(--accent-text); color: var(--accent-text); }
.tag.soon { border: 1px solid var(--muted); color: var(--muted); }
.legend { display: inline-flex; gap: 6px; align-items: center; }

/* promise band */
.band { background: var(--navy); color: var(--paper); }
.band .kicker { color: var(--orange); }
.promise { display: grid; gap: 28px; margin-top: 32px; }
@media (min-width: 640px) { .promise { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .promise { grid-template-columns: repeat(4, 1fr); } }
.promise .big { font: italic 900 40px/1 "Archivo", sans-serif; font-stretch: 125%; color: var(--orange); margin-bottom: 10px; height: 44px; display: flex; align-items: center; }
.promise .big svg { height: 40px; width: auto; }
.promise h3 { font-size: 20px; }
.promise p { color: #C9CCD4; font-size: 15.5px; margin: 6px 0 0; }
.promise a { color: var(--paper); }
.band .intro { color: #C9CCD4; }

/* login */
.login .wrap { display: grid; gap: 32px; align-items: start; }
@media (min-width: 860px) { .login .wrap { grid-template-columns: 1fr 400px; gap: 56px; } }
.needs { margin: 20px 0 0; padding: 0; list-style: none; }
.needs li { padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 16px; }
.needs b { color: var(--ink); font-weight: 620; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 26px; }
.card h3 { margin-bottom: 6px; }
.card label { display: block; font-weight: 620; font-size: 15px; margin: 14px 0 6px; }
.card input {
  width: 100%; padding: 11px 12px; font: inherit; border-radius: 6px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
}
.card input:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.card .btn { width: 100%; margin-top: 20px; }
.card .row { display: flex; justify-content: space-between; font-size: 14px; margin-top: 14px; color: var(--muted); }
.msg { font-size: 15px; margin-top: 14px; min-height: 1.4em; color: var(--muted); }
.card .hint { font-size: 14px; color: var(--muted); margin-top: 12px; }
.card [hidden] { display: none; }
/* sign-up: beta terms (required) and heart-rate consent (optional), never ticked in advance */
.card label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 450; font-size: 14.5px; line-height: 1.45; margin: 14px 0 0; }
.card label.check input { width: auto; flex: none; margin: 3px 0 0; accent-color: var(--orange); }
.card label.check small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.card a.btn { display: block; text-align: center; box-sizing: border-box; }
/* Continue with Apple / Google: plain text buttons in each provider's colours (no logo files yet) */
.card .btn.provider { margin-top: 10px; font-weight: 560; }
.card .btn.provider.apple { background: #000; color: #fff; border-color: #000; }
.card .btn.provider.google { background: #fff; color: #1f1f1f; border-color: #747775; }
#acct-providers { margin-top: 10px; }
/* mail link pages (reset.html, verify.html), sign-in landing (auth-done.html) */
.single { padding: 56px 0 72px; }
.single .wrap { max-width: 460px; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 44px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--muted); }
footer .brand img { height: 22px; }

/* legal pages */
.legal { padding: 48px 0 64px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(28px, 5vw, 46px); font-stretch: 100%; margin-bottom: 8px; overflow-wrap: anywhere; hyphens: auto; }
.legal { overflow-wrap: break-word; }
@media (max-width: 480px) { header.top .btn.ghost { padding: 6px 12px; font-size: 14px; } .brand img { height: 24px; } }
.legal h2 { font-size: 22px; font-stretch: 100%; margin: 34px 0 8px; }
.legal p, .legal li { color: var(--muted); }
.legal address { font-style: normal; color: var(--ink); }
.legal .note { font-size: 14px; }
