/* The site is drawn with the application's own tokens, so the page somebody
   buys from and the window they open afterwards are recognisably one thing.
   Monochrome throughout: no accent, no semantic colour, weight doing the work
   colour does elsewhere. The values are copied from internal/webui/app.css. */

:root {
  color-scheme: dark;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --c-page: #070707;
  --c-panel: #121212;
  --c-sheet: #181818;

  --c-ink: #fbfbfb;
  --c-ink-bright: #ffffff;
  --c-t-90: rgba(251, 251, 251, .9);
  --c-t-70: rgba(251, 251, 251, .7);
  --c-t-50: rgba(251, 251, 251, .5);
  --c-t-40: rgba(251, 251, 251, .4);

  --c-surface: rgba(217, 217, 217, .05);
  --c-btn: rgba(255, 255, 255, .03);
  --c-btn-hover: rgba(255, 255, 255, .07);
  --c-hairline: rgba(255, 255, 255, .08);
  --c-ring: inset 0 0 0 1px rgba(255, 255, 255, .06);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

body {
  background: var(--c-page);
  color: var(--c-ink);
  font: 400 16px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

/* Something for the glass to catch.
   Frosted surfaces are only frosted when there is something behind them, and a
   flat black page gives a blur nothing to do. Two very large, very faint
   washes — monochrome, because there is no accent anywhere in this system —
   are enough to make the blur read as depth rather than as a grey rectangle.
   Fixed, so they stay put while the page moves over them. */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 12% -8%, rgba(255,255,255,.055), transparent 60%),
    radial-gradient(48rem 34rem at 92% 8%, rgba(255,255,255,.035), transparent 62%);
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 940px; margin-inline: auto; padding-inline: 24px; }
.narrow { max-width: 660px; }

/* ── Header ── */
/* The header is the one piece of real glass on the page: it is sticky, so what
   it blurs is the page sliding underneath it. Everything else that looks like
   glass is a surface with a translucent fill, which is the honest amount of it
   for a page that does not otherwise overlap itself. */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 20px;
  height: 72px;
  background: rgba(7, 7, 7, .72);
  box-shadow: inset 0 -1px 0 0 var(--c-hairline);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .top {
    background: rgba(7, 7, 7, .55);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
            backdrop-filter: blur(20px) saturate(140%);
  }
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 600; letter-spacing: -.01em; }
.brand svg { width: 26px; height: 26px; }
.top nav { margin-left: auto; display: flex; gap: 22px; font-size: 14px; }
.top nav a { color: var(--c-t-50); text-decoration: none; transition: color .15s var(--ease); }
.top nav a:hover { color: var(--c-ink); }

/* ── Type ── */
h1 { font: 600 clamp(34px, 6vw, 54px)/1.08 var(--font-sans); letter-spacing: -.028em; }
h2 { font: 600 22px/1.3 var(--font-sans); letter-spacing: -.015em; }
h3 { font: 600 15px/1.4 var(--font-sans); }
p { color: var(--c-t-70); text-wrap: pretty; }
.lead { font-size: 18.5px; color: var(--c-t-90); max-width: 46ch; }
.eyebrow {
  font: 400 12px/1 var(--font-mono);
  letter-spacing: .1em; text-transform: uppercase; color: var(--c-t-40);
}
.mono { font-family: var(--font-mono); }

/* ── Hero ── */
.hero { padding: 92px 0 76px; }
.hero h1 { margin: 18px 0 20px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  height: 46px; padding: 0 22px; border-radius: 999px;
  background: var(--c-ink); color: #0d0d0d;
  font: 600 15px/1 var(--font-sans); text-decoration: none;
  transition: opacity .15s var(--ease);
}
.btn:hover { opacity: .87; }
.btn-quiet {
  background: var(--c-btn); color: var(--c-t-70); box-shadow: var(--c-ring);
  transition: background .15s var(--ease), color .15s var(--ease);
}
.btn-quiet:hover { background: var(--c-btn-hover); color: var(--c-ink); opacity: 1; }
.under { font-size: 13.5px; color: var(--c-t-40); margin-top: 14px; }

/* ── Sections ── */
section { padding: 64px 0; }
section + section { box-shadow: inset 0 1px 0 0 var(--c-hairline); }
.head { max-width: 52ch; margin-bottom: 40px; }
.head h2 { margin: 12px 0 12px; }

.grid {
  display: grid; gap: 1px; background: var(--c-hairline);
  border-radius: 16px; overflow: hidden;
  box-shadow: var(--c-ring);
}
@media (min-width: 700px) { .grid { grid-template-columns: repeat(2, 1fr); } }
.cell {
  background: rgba(255, 255, 255, .022);
  padding: 26px 24px;
  transition: background .2s var(--ease);
}
.cell:hover { background: rgba(255, 255, 255, .045); }
.cell h3 { margin-bottom: 8px; }
.cell p { font-size: 14.5px; }

/* ── Pricing ── */
.plans { display: grid; gap: 18px; }
@media (min-width: 700px) { .plans { grid-template-columns: 1fr 1fr; } }
/* A raised surface is a translucent fill plus one lit pixel along its top
   edge — the light catching a lip. That single highlight does more for depth
   than any amount of blur, and it costs nothing to render. */
.plan {
  padding: 30px 28px; border-radius: 18px;
  background: rgba(255, 255, 255, .028);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, .07),
    inset 0 0 0 1px rgba(255, 255, 255, .055),
    0 18px 40px rgba(0, 0, 0, .3);
}
.plan.paid {
  background: rgba(255, 255, 255, .055);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, .12),
    inset 0 0 0 1px rgba(255, 255, 255, .1),
    0 22px 52px rgba(0, 0, 0, .42);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .plan {
    -webkit-backdrop-filter: blur(26px) saturate(130%);
            backdrop-filter: blur(26px) saturate(130%);
  }
}
.price { font: 600 40px/1 var(--font-sans); letter-spacing: -.03em; margin: 14px 0 6px; }
.price small { font: 400 14px/1 var(--font-mono); color: var(--c-t-40); margin-left: 6px; }
.plan ul { list-style: none; margin: 22px 0 26px; display: grid; gap: 11px; }
/* The tick is the only flex item beside the text, and the text is one span
   rather than loose nodes. Left as bare children, a bold lead and the words
   after it become two flex items and lay out as two ragged columns. */
.plan li {
  display: flex; gap: 11px; align-items: flex-start;
  font-size: 14.5px; line-height: 1.55; color: var(--c-t-70);
}
.plan li > span { flex: 1; min-width: 0; }
.plan li b { color: var(--c-t-95); font-weight: 600; }
.plan li svg { width: 14px; height: 14px; flex: none; margin-top: 6px; color: var(--c-t-50); }
/* Two cards of different lengths look wrong side by side, so they share a
   height and the shorter one keeps its button at the bottom. */
.plans { align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan ul { flex: 1; }

/* ── Long-form pages ── */
.doc { padding: 60px 0 90px; }
.doc h1 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 10px; }
.doc h2 { margin: 40px 0 12px; font-size: 19px; }
.doc p, .doc li { color: var(--c-t-70); font-size: 15.5px; }
.doc p + p { margin-top: 14px; }
.doc ul { margin: 14px 0 0 20px; display: grid; gap: 9px; }
.doc .updated { font: 400 13px/1 var(--font-mono); color: var(--c-t-40); }

/* ── Claim form ── */
.form { display: grid; gap: 14px; max-width: 420px; margin-top: 28px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13.5px; color: var(--c-t-50); }
.field input {
  height: 44px; padding: 0 14px; border: 0; border-radius: 11px;
  background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
  color: var(--c-ink); font: 400 15px/1 var(--font-sans);
  transition: background .15s var(--ease), box-shadow .15s var(--ease);
}
.field input:focus {
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
}
.result {
  margin-top: 26px; padding: 18px; border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, .08),
    inset 0 0 0 1px rgba(255, 255, 255, .06);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .result {
    -webkit-backdrop-filter: blur(22px);
            backdrop-filter: blur(22px);
  }
}
.key {
  font: 400 12.5px/1.7 var(--font-mono); color: var(--c-ink);
  word-break: break-all; user-select: all;
}

/* ── Changelog ── */
.release { padding: 26px 0; box-shadow: inset 0 -1px 0 0 var(--c-hairline); }
.release:last-child { box-shadow: none; }
.release h2 { display: flex; align-items: baseline; gap: 14px; font-size: 18px; }
.release .when { font: 400 13px/1 var(--font-mono); color: var(--c-t-40); }
.release ul { margin: 12px 0 0 20px; display: grid; gap: 8px; }
.release li { color: var(--c-t-70); font-size: 15px; }

/* ── Footer ── */
footer {
  padding: 40px 0 56px;
  box-shadow: inset 0 1px 0 0 var(--c-hairline);
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center;
  font-size: 13.5px; color: var(--c-t-40);
}
footer nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 20px; }
footer a { color: var(--c-t-40); text-decoration: none; transition: color .15s var(--ease); }
footer a:hover { color: var(--c-ink); }
