/* stance: the sprig material, verbatim — near-black field, one violet accent, Sprig Sans at
   one weight with scale doing all the hierarchy, glass panels on hairlines; refusing every
   tell the product itself polices. this is sprig's design product wearing sprig. */
@font-face {
  font-family: 'Sprig Sans';
  font-style: normal;
  font-weight: 500;
  font-display: block;
  src: url('/fonts/DMSans-Medium-latin.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --bg: #0a0a0c;
  --panel: rgba(255, 255, 255, 0.028);
  --raised: rgba(255, 255, 255, 0.05);
  --hairline: rgba(255, 255, 255, 0.07);
  --ink: rgba(255, 255, 255, 0.9);
  --ink-55: rgba(255, 255, 255, 0.55);
  --ink-40: rgba(255, 255, 255, 0.4);
  --accent: 90, 30, 255;              /* #5A1EFF, bare triplet like the app's tokens */
  --accent-text: rgb(158, 122, 255);  /* the accent lifted for text on the dark field */
  --font: 'Sprig Sans', 'DM Sans', system-ui, -apple-system, sans-serif;
  --radius-card: 16px;
  --radius-btn: 8px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 500 15.5px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
main { max-width: 1020px; margin: 0 auto; padding: 0 24px; }

a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
p { max-width: 62ch; color: var(--ink-55); }
strong { color: var(--ink); font-weight: 500; }

/* nav: the mark, one action, a hairline. brand lives here and in the footer. */
nav { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--hairline); }
nav .mark { display: flex; align-items: center; gap: 12px; color: var(--ink); }
nav .mark svg { height: 26px; fill: #fff; }
nav .mark span { font-size: 16px; }
nav a.action { font-size: 14.5px; }

/* hero: the claim at poster scale, one paragraph, one action. size is the whole hierarchy. */
header.hero { padding: 104px 0 96px; border-bottom: 1px solid var(--hairline); }
header.hero h1 { font-size: clamp(44px, 7.5vw, 84px); line-height: 1.04; letter-spacing: -0.02em; font-weight: 500; max-width: 14ch; }
header.hero p { font-size: 18px; margin: 28px 0 36px; }

.btn {
  display: inline-block; cursor: pointer;
  background: rgb(var(--accent)); color: #fff;
  font: 500 15px/1 var(--font);
  padding: 14px 26px; border: 0; border-radius: var(--radius-btn);
  transition: transform 0.32s var(--ease), filter 0.2s var(--ease);
}
.btn:hover { filter: brightness(1.15); transform: translateY(-1px); text-decoration: none; }
.btn.quiet { background: var(--raised); color: var(--ink); border: 1px solid var(--hairline); }
.btn.quiet:hover { filter: none; border-color: rgba(255, 255, 255, 0.2); }

/* editorial rows: ruled, stacked, term left — never matched columns under anything. */
section { padding: 72px 0; border-bottom: 1px solid var(--hairline); }
section > h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.12; letter-spacing: -0.01em; margin-bottom: 36px; max-width: 22ch; }
.row { display: grid; grid-template-columns: minmax(190px, 300px) 1fr; gap: 20px 48px; padding: 28px 0; border-top: 1px solid var(--hairline); }
.row h3 { font-size: 19px; line-height: 1.3; color: var(--ink); }
.row p + p { margin-top: 10px; }
@media (max-width: 700px) { .row { grid-template-columns: 1fr; gap: 6px; } }

/* pricing: one tier on a glass panel — the card radius is the brand's, nothing floats. */
.tier { background: var(--panel); border: 1px solid var(--hairline); border-radius: var(--radius-card); padding: 32px; max-width: 560px; }
.price { font-size: 44px; line-height: 1; }
.price small { font-size: 15px; color: var(--ink-55); }
.tier ul { list-style: none; margin: 22px 0 26px; }
.tier li { padding: 9px 0; border-top: 1px solid var(--hairline); color: var(--ink-55); font-size: 14.5px; }
.tier li:first-child { border-top: 0; }
.simulated { font-size: 13.5px; color: var(--ink-40); margin-top: 14px; }

footer { padding: 44px 0 72px; font-size: 13.5px; color: var(--ink-40); display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
footer a { color: var(--ink-40); }
footer svg { height: 16px; fill: rgba(255, 255, 255, 0.4); }

/* ── account page ── */
.panel { padding: 36px 0; border-bottom: 1px solid var(--hairline); }
.panel h2 { font-size: 24px; letter-spacing: -0.01em; margin-bottom: 12px; }
input[type="email"] {
  font: inherit; color: var(--ink); background: var(--raised);
  border: 1px solid var(--hairline); border-radius: var(--radius-btn);
  padding: 13px 16px; width: min(340px, 100%);
}
input[type="email"]:focus { outline: none; border-color: rgba(var(--accent), 0.6); }
.match-code { font-size: 40px; margin: 14px 0; letter-spacing: 0.02em; }
.linkbox {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--hairline); border-radius: var(--radius-card);
  padding: 16px 18px; margin: 16px 0; font-size: 14px; word-break: break-all;
}
.linkbox .grow { flex: 1; min-width: 200px; color: var(--ink-55); }
.briefs { list-style: none; margin-top: 8px; }
.briefs li { padding: 12px 0; border-top: 1px solid var(--hairline); font-size: 14.5px; display: flex; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.briefs li:first-child { border-top: 0; }
.briefs .id { color: var(--ink-40); font-size: 13px; }
.briefs .st-working { color: var(--accent-text); }
.briefs .st-failed { color: var(--ink-40); }
table.usage { border-collapse: collapse; font-size: 14.5px; margin-top: 12px; }
table.usage td, table.usage th { text-align: left; padding: 8px 26px 8px 0; border-top: 1px solid var(--hairline); color: var(--ink-55); }
table.usage th { color: var(--ink); }
.note { font-size: 13.5px; color: var(--ink-40); max-width: 62ch; }
.error { color: var(--accent-text); font-size: 14px; margin-top: 12px; }
details.advanced { margin-top: 18px; }
details.advanced summary { cursor: pointer; font-size: 13.5px; color: var(--ink-40); }
details.advanced pre { background: var(--panel); border: 1px solid var(--hairline); border-radius: var(--radius-btn); padding: 12px 14px; margin-top: 10px; font-size: 12.5px; overflow-x: auto; color: var(--ink-55); }
[hidden] { display: none !important; }
