
*, ::before, ::after { box-sizing: border-box; border: 0 solid; }
body, h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
button { background: transparent; }
img, svg { display: block; }
@font-face { font-family: "IBM Plex Serif"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/serif-500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/sans-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/sans-500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/sans-600.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/mono-400.woff2") format("woff2"); }
/*
 * Design tokens (docs/superpowers/plans/2026-12-01-website-look.md, sections 7 and 8). Every colour
 * is the editor's own (web/app/src/styles/theme.css), so a screenshot of the app reads as part of
 * the page: its surfaces, greys, indigo accent and code colours. The logo's violet stays in the
 * mark only. `--field` is the app's dark surface: the top of every page, which fades into the page
 * with no hard edge (`.field` in global.css). Light is the default; dark follows the system unless
 * the visitor chose a theme, in which case <html data-theme> wins. Keep the two dark blocks identical.
 */
:root {
  /* colour: the app's light theme */
  --page: #ffffff;          /* --surface */
  --paper: #ffffff;         /* --surface */
  --paper-2: #f8f9fb;       /* --canvas */
  --mist: #f3f4f6;          /* --bg */
  --ink: #161b26;           /* --text */
  --muted: #566070;         /* --muted */
  --rule: #e1e4e9;          /* --border */
  --rule-strong: #c4cad3;   /* --border-strong */
  --accent: #4f46e5;        /* --accent */
  --accent-ink: #3f37c9;    /* --accent-text */
  --accent-soft: #eef0ff;   /* --accent-soft */
  --accent-tint: #dcdffb;   /* --titlebar-selected */
  --on-accent: #ffffff;     /* --on-accent */
  --dot: #d3d8e0;           /* --canvas-dot */
  --lift: rgb(22 27 38 / 0.10);
  --warn: #8a5300;          /* --warning */
  --warn-soft: #fff4dc;     /* --warning-soft */
  --ok: #18753a;            /* --success */
  --ok-soft: #e6f5ec;       /* --success-soft */
  /* the field: the app's dark surface, in both themes */
  --field: #121419;         /* --bg, dark */
  --field-raised: #1a1d23;  /* --surface, dark */
  --field-ink: #e7e9ee;     /* --text, dark */
  --field-muted: #9aa2b0;   /* --muted, dark */
  --field-rule: #2c313a;    /* --border, dark */
  --field-accent: #8b8ff5;  /* --accent, dark */
  --field-accent-ink: #b4b6fa; /* --accent-text, dark */
  /* syntax (model.py): the app's code panel */
  --syn-comment: #5d6577;
  --syn-keyword: #7c3aed;
  --syn-string: #0f766e;
  --syn-number: #a94e08;
  --syn-call: #1d4ed8;

  /* type */
  /* Three roles: headlines in the serif, everything else in the sans, real code in the mono. */
  --font-display: "IBM Plex Serif", "Plex Serif Fallback", Georgia, "Times New Roman", serif;
  --font-sans: "IBM Plex Sans", "Plex Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  --step-4: clamp(2.125rem, 1.4rem + 2.8vw, 3.5rem);
  --leading-tight: 1.12;
  --leading-body: 1.6;

  /* space and shape */
  --gutter: 16px;
  --measure: 68ch;
  --content: 1180px;
  --radius-s: 6px;
  --radius-m: 9px;
  --radius-l: 14px;
  --border: 1px solid var(--rule);

  /* motion (prompt §6) */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: linear(0, 0.22 7%, 0.58 15%, 0.88 23%, 1.03 31%, 1.06 38%, 1.04 46%, 1.01 56%, 0.997 68%, 1);
  --t-micro: 160ms;
  --t-ui: 300ms;
  --t-reveal: 500ms;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #121419; --paper: #1a1d23; --paper-2: #16181d; --mist: #1a1d23; --ink: #e7e9ee; --muted: #9aa2b0;
    --rule: #2c313a; --rule-strong: #3d4450;
    --accent: #8b8ff5; --accent-ink: #b4b6fa; --accent-soft: #2a2c52; --accent-tint: #2a2c52;
    --on-accent: #12142b; --dot: #2c313b; --lift: rgb(0 0 0 / 0.45);
    --warn: #f0b44a; --warn-soft: #3a2d16; --ok: #5bd18a; --ok-soft: #173325;
    --field: #1a1d23; --field-raised: #22262e; --field-rule: #3d4450;
    --syn-comment: #9aa2b0; --syn-keyword: #c4a5ff; --syn-string: #5eead4; --syn-number: #f5a35c; --syn-call: #7fb2ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page: #121419; --paper: #1a1d23; --paper-2: #16181d; --mist: #1a1d23; --ink: #e7e9ee; --muted: #9aa2b0;
    --rule: #2c313a; --rule-strong: #3d4450;
    --accent: #8b8ff5; --accent-ink: #b4b6fa; --accent-soft: #2a2c52; --accent-tint: #2a2c52;
    --on-accent: #12142b; --dot: #2c313b; --lift: rgb(0 0 0 / 0.45);
    --warn: #f0b44a; --warn-soft: #3a2d16; --ok: #5bd18a; --ok-soft: #173325;
    --field: #1a1d23; --field-raised: #22262e; --field-rule: #3d4450;
    --syn-comment: #9aa2b0; --syn-keyword: #c4a5ff; --syn-string: #5eead4; --syn-number: #f5a35c; --syn-call: #7fb2ff;
    color-scheme: dark;
}
/*
 * Tailwind scans src/ only (not docs, tests or scripts), so prose there cannot add stray
 * utilities and the @property rules they register.
 */
/*
 * Five font files. Plex Serif is the headlines' face, in one weight (500). Plex Mono is only ever
 * code, so its 500 weight resolves to the 400 file (no synthesis below 600); a mono 500 file
 * would be one more high-priority request racing the LCP image for ~15 KB.
 */

/*
 * Fallbacks sized to Plex (measured in Chromium: Plex 400 is 100.2% of Arial, Plex 600 is 96.3% of
 * Arial Bold; Plex ascent 1025 / descent 275 per 1000). While the web font loads, text wraps
 * the same way, so the swap shifts nothing.
 */
@font-face {
  font-family: "Plex Fallback"; font-weight: 400 500;
  src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Arimo");
  size-adjust: 100.2%; ascent-override: 102.3%; descent-override: 27.4%; line-gap-override: 0%;
}
@font-face {
  font-family: "Plex Fallback"; font-weight: 600 700;
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Arimo Bold");
  size-adjust: 96.3%; ascent-override: 106.4%; descent-override: 28.6%; line-gap-override: 0%;
}

/* The serif's fallback, sized the same way (Plex Serif 500 is 117.1% of Times New Roman). */
@font-face {
  font-family: "Plex Serif Fallback"; font-weight: 400 700;
  src: local("Times New Roman"), local("TimesNewRomanPSMT"), local("Liberation Serif"), local("Tinos");
  size-adjust: 117.1%; ascent-override: 87.5%; descent-override: 23.5%; line-gap-override: 0%;
}

/* Tailwind reads the same tokens, so utilities and components never drift. */


/* `dark:` follows the site's theme: a choice in <html data-theme>, else the system. */


/* Without JS, motion components show their final state (the server renders their start state). */

@layer base {
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    /* The sticky header is 64px: a link focused or jumped to stops below it (WCAG 2.4.11). */
    scroll-padding-top: 80px;
  }
  body {
    margin: 0;
    background-color: var(--page);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: var(--step-0);
    line-height: var(--leading-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
  }
  h1, h2, h3, h4 {
    line-height: var(--leading-tight);
    text-wrap: balance;
    letter-spacing: -0.015em;
    font-weight: 600;
  }
  /* Headlines are the serif's one job, and it ships in one weight: no faux bold. */
  h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.018em; font-synthesis: none; }
  p { text-wrap: pretty; }
  /* Links read as links without colour alone (WCAG 1.4.1). Buttons and nav opt out. */
  a { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
  a:hover { text-decoration-thickness: 2px; }
  code, kbd, pre, .mono { font-family: var(--font-mono); }
  :focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
  }
  ::selection { background: var(--accent-tint); color: var(--ink); }
}

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px));
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

/*
 * The field: the app's dark surface at the top of a page (the website look plan, section 8).
 * Inside it the page's own tokens take the app's dark values, so every component reads right
 * on it. `.field-fade` ends it in a long eased fade into the page, never on a line: the owner's
 * "no sharp turns in colors". Text sits on the solid field or on the page, never mid-fade.
 * `--ground` is the page's colour, captured at the root before .field redefines --page.
 */
:root { --ground: var(--page); --tail: clamp(96px, 11vw, 168px); }
.field,
:root:has(.page-field):not(.past-field) .site-header {
  --page: var(--field); --paper: var(--field-raised); --paper-2: var(--field-raised); --mist: var(--field-raised);
  --ink: var(--field-ink); --muted: var(--field-muted); --rule: var(--field-rule); --rule-strong: #3d4450;
  --accent: var(--field-accent); --accent-ink: var(--field-accent-ink); --accent-soft: #2a2c52; --accent-tint: #2a2c52;
  --on-accent: #12142b; --dot: #2c313b; --lift: rgb(0 0 0 / 0.45);
  --warn: #f0b44a; --warn-soft: #3a2d16; --ok: #5bd18a; --ok-soft: #173325;
  color-scheme: dark;
}
.field { background: var(--field); color: var(--ink); }
/* Eight stops on an eased curve, so the fade shows no bands. */
.field-fade {
  padding-bottom: var(--tail);
  background: linear-gradient(to bottom,
    var(--field) calc(100% - var(--tail)),
    color-mix(in oklab, var(--field) 94%, var(--ground)) calc(100% - var(--tail) * 0.88),
    color-mix(in oklab, var(--field) 80%, var(--ground)) calc(100% - var(--tail) * 0.74),
    color-mix(in oklab, var(--field) 60%, var(--ground)) calc(100% - var(--tail) * 0.59),
    color-mix(in oklab, var(--field) 38%, var(--ground)) calc(100% - var(--tail) * 0.43),
    color-mix(in oklab, var(--field) 19%, var(--ground)) calc(100% - var(--tail) * 0.27),
    color-mix(in oklab, var(--field) 6%, var(--ground)) calc(100% - var(--tail) * 0.12),
    var(--ground) 100%);
}

/* The app canvas's dot grid, faint, on the field's solid part only: it thins out before the fade. */
.page-field { position: relative; isolation: isolate; }
.page-field::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgb(255 255 255 / 0.09) 1px, transparent 1.4px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, transparent 0, #000 72px, #000 calc(100% - var(--tail) - 48px), transparent calc(100% - var(--tail) * 0.5));
}
/* A screenshot (or the film) rising out of the field: the fade runs behind its lower 40%, and the
   field ends where the picture does, so the app joins the dark top to the page. */
.has-shot { --tail: calc(min(var(--content), 100vw - 2 * var(--gutter)) * 0.4); padding-bottom: 0; }
.bridge { margin-top: 40px; }
.bridge .window, .bridge .frame { box-shadow: 0 24px 48px -24px rgb(0 0 0 / 0.5); }
@media (min-width: 768px) { .bridge { margin-top: 56px; } }
/* A sheet rising out of the field: the page's main content on one raised surface, its top on the
   solid field and the fade behind it, so its own background carries the text across. */
.has-sheet { --tail: 220px; padding-bottom: calc(var(--tail) + 24px); }
.sheet {
  position: relative; z-index: 1; margin-top: calc(-1 * var(--tail) - 24px + 40px);
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-l);
  box-shadow: 0 24px 48px -28px rgb(0 0 0 / 0.45); padding: 4px 20px;
}
@media (min-width: 768px) { .sheet { padding: 8px 36px; } }
/* A sheet's small heading ("Your order", "Your license key"): quiet, in the text face. */
.sheet-label { margin: 0; font: 500 var(--step-0)/1.4 var(--font-sans); letter-spacing: 0; color: var(--muted); }

/* The app's canvas: a faint dot grid. Pure CSS, no image request. */
.dot-grid {
  background-image: radial-gradient(circle at 1px 1px, var(--dot) 1px, transparent 1.4px);
  background-size: 22px 22px;
}

/* Hidden above the page by its own height and a little more, so no edge of it shows on the dark field. */
.skip-link {
  position: absolute; left: 12px; top: 0; transform: translateY(calc(-100% - 8px)); z-index: 50;
  background: var(--paper); color: var(--ink); border: var(--border);
  padding: 8px 14px; border-radius: var(--radius-s);
}
.skip-link:focus { top: 12px; transform: none; }

/* A small line above a number or a group. Sentence case: no all-caps labels on this site. */
.eyebrow { font-size: var(--step--1); font-weight: 500; color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 18px;
  border-radius: var(--radius-m); border: 1px solid transparent;
  font: 500 var(--step-0)/1 var(--font-sans); text-decoration: none; cursor: pointer;
  transition: transform var(--t-micro) var(--ease), background-color var(--t-micro) var(--ease),
    border-color var(--t-micro) var(--ease), box-shadow var(--t-ui) var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { background: var(--paper); color: var(--ink); border-color: var(--rule-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { min-height: 52px; padding: 0 22px; font-size: var(--step-1); }
.btn small { font: 400 var(--step--1)/1 var(--font-sans); opacity: 0.85; }

/* ---------- shared page layouts ---------- */
.split { display: grid; gap: 32px; align-items: center; }
.split > .text { display: grid; gap: 14px; max-width: 52ch; }
.split > .text :is(h2, h3) { margin: 0; font-size: var(--step-2); }
.split > .text p { margin: 0; color: var(--muted); }
@media (min-width: 960px) {
  .split { grid-template-columns: 5fr 7fr; gap: 56px; }
  .split.flip > .text { order: 2; }
}
.stack-l { display: grid; gap: 72px; }
/* Two screenshots side by side, the same size. */
.duo { display: grid; gap: 24px; align-items: start; }
@media (min-width: 768px) { .duo { grid-template-columns: 1fr 1fr; } }
.more { font-weight: 500; }
.btn, .site-logo { text-decoration: none; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: var(--muted); }
/* A plan's features take a check mark; running text takes plain discs. */
.ticks li::before {
  content: ''; position: absolute; left: 2px; top: 0.45em; width: 12px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.ticks li b { color: var(--ink); font-weight: 600; }
.note {
  border: var(--border); border-left: 3px solid var(--warn); background: var(--warn-soft);
  border-radius: 0 var(--radius-m) var(--radius-m) 0; padding: 14px 16px; color: var(--ink);
}
.note p { margin: 0; }
.card-plain { background: var(--paper); border: var(--border); border-radius: var(--radius-l); padding: 28px; }

/* Long-form copy (Privacy, Legal, Terms, Refunds, Get help). */
.prose { max-width: 68ch; font-size: var(--step-0); }
.prose > * + * { margin-top: 1em; }
.prose :is(h2) { font-size: var(--step-2); margin-top: 2.2em; }
.prose :is(h3) { font-size: var(--step-1); margin-top: 1.6em; }
.prose p, .prose li { color: color-mix(in srgb, var(--ink) 85%, var(--muted)); }
.prose ol { list-style: decimal; padding-left: 1.25em; display: grid; gap: 6px; }
.prose ul { list-style: disc; margin-top: 1em; padding-left: 1.25em; display: grid; gap: 6px; }
.prose ul > li::marker { color: inherit; }
.prose code { font-size: 0.9em; background: var(--paper-2); border: var(--border); border-radius: 4px; padding: 0.05em 0.35em; }
.prose strong { color: var(--ink); }
/* A link inside a sentence reaches the 24 px target height without moving the lines around it. */
.prose a { padding-block: 0.2em; }

/* ---------- owner-decision placeholders: loud on purpose ---------- */
.ph {
  display: inline-block;
  font: 600 0.85em/1.3 var(--font-mono);
  letter-spacing: 0.02em;
  color: var(--warn);
  background: var(--warn-soft);
  border: 1px dashed currentColor;
  border-radius: 4px;
  padding: 0 0.35em;
  /* Long placeholders wrap rather than push the page wider than a phone. */
  white-space: normal;
  overflow-wrap: anywhere;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- screenshots ---------- */
.window {
  position: relative;
  border: var(--border);
  border-radius: var(--radius-l);
  background: var(--paper);
  overflow: hidden;
}
.window-bar {
  display: flex; gap: 6px; align-items: center;
  height: 28px; padding-inline: 12px;
  border-bottom: var(--border); background: var(--paper-2);
}
/* A Windows-style title bar: the app's icon and name on the left, the window controls on the right. */
.window-bar { justify-content: space-between; }
.wb-app { display: inline-flex; gap: 6px; align-items: center; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0.01em; }
.wb-app img { display: block; width: 14px; height: 14px; }
.wb-ctl { display: inline-flex; gap: 14px; align-items: center; }
.wb-ctl i { position: relative; display: block; width: 9px; height: 9px; color: var(--rule-strong); }
.wb-ctl .min::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; border-top: 1px solid currentColor; }
.wb-ctl .max { border: 1px solid currentColor; border-radius: 1px; }
.wb-ctl .close::before, .wb-ctl .close::after { content: ""; position: absolute; left: -1px; right: -1px; top: 4px; border-top: 1px solid currentColor; transform: rotate(45deg); }
.wb-ctl .close::after { transform: rotate(-45deg); }
.window-body { position: relative; aspect-ratio: 16 / 10; }
.window-body img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Phones show a crop (lib/shots.ts), each its own shape. */
@media (max-width: 767px) { .window-body { aspect-ratio: auto; } .window-body img { height: auto; } }

/*
 * Theme-matched screenshots. `.shot-auto` follows the system through <source media>,
 * so only one file loads. When the visitor picks a theme by hand, the forced pair takes
 * over; they are lazy, so the hidden one never downloads.
 */
.shot-forced { display: none; }
:root[data-theme="light"] .shot-auto, :root[data-theme="dark"] .shot-auto { display: none; }
:root[data-theme="light"] .shot-forced.is-light { display: block; }
:root[data-theme="dark"] .shot-forced.is-dark { display: block; }

.placeholder-shot {
  display: grid; place-items: center; height: 100%;
  color: var(--warn); font: 500 var(--step--1)/1.4 var(--font-mono); text-align: center; padding: 16px;
  background: repeating-linear-gradient(135deg, transparent 0 12px, var(--warn-soft) 12px 13px);
}

/* ---------- page transitions (cross-document, no JS) ---------- */
/* Only the header logo carries the name: two elements with one name would cancel the transition. */
.site-header .site-logo { view-transition-name: site-logo; }
main { view-transition-name: main; }
::view-transition-old(main) { animation: vt-out 180ms var(--ease) both; }
::view-transition-new(main) { animation: vt-in 320ms var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

/* Theme toggle runs its own circular reveal; turn the default crossfade off for it. */
:root.theme-vt::view-transition-old(root),
:root.theme-vt::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
:root.theme-vt::view-transition-old(main),
:root.theme-vt::view-transition-new(main) { animation: none; }
/* During a theme swap the whole page is one snapshot, so the circular reveal covers everything. */
:root.theme-vt main, :root.theme-vt .site-header .site-logo { view-transition-name: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 120ms !important;
    scroll-behavior: auto !important;
  }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .btn:active { transform: none; }
}

/* ---------- forms (the sales pages: Education's quote, Home Plus) ---------- */
.form { display: grid; gap: 18px; }
.form label { display: grid; gap: 6px; font-weight: 500; color: var(--ink); }
.form label small { font-weight: 400; color: var(--muted); }
.form :is(input:not([type="checkbox"]), textarea) {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--rule-strong); border-radius: var(--radius-m);
  background: var(--page); color: var(--ink); font: 400 var(--step-0)/1.4 var(--font-sans);
}
.form textarea { min-height: 96px; resize: vertical; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form .check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.form .btn { justify-self: start; }
.form label > span { display: block; }
.form-notes { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: var(--step--1); }

:root {
  --danger: #b3261e;
  --k-pro: #7c3aed;
  --k-plus: #0f766e;
  --k-edu: #15803d;
  --k-off: #64748b;
}
@media (prefers-color-scheme: dark) {
  :root {
    --danger: #ffa198;
    --k-pro: #a78bfa;
    --k-plus: #2dd4bf;
    --k-edu: #4ade80;
    --k-off: #94a3b8;
  }
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* The header: the website's, on the dark top, with the account's two pages. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--page);
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  transition: background-color var(--t-ui) var(--ease), border-color var(--t-ui) var(--ease);
}
/* On the dark top the header has no edge; past it, the site's rule (Header.astro). */
:root:has(.page-field):not(.past-field) .site-header { border-bottom-color: transparent; }
.bar {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  column-gap: 16px;
  min-height: 64px;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.015em;
  text-decoration: none;
}
.site-logo img { border-radius: 22%; box-shadow: 0 0 0 1px var(--rule); }
.acct-nav ul { display: flex; gap: 4px; }
.acct-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-s);
  color: var(--muted);
  text-decoration: none;
}
.acct-nav a:hover, .acct-nav a[aria-current="page"] { color: var(--ink); }
.acct-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}
.acct-out { min-height: 40px; padding: 0 14px; }
@media (max-width: 639px) { .acct-nav { order: 3; flex-basis: 100%; margin-left: -12px; } }

/* The page's top: its title and one line, on the field. */
.page-head { padding-top: 48px; }
.page-head .inner { display: grid; gap: 16px; }
.page-head .title {
  max-width: 20ch;
  font-size: clamp(2.25rem, 1.5rem + 3.2vw, 3.75rem);
  line-height: 1.06;
}
.page-head .lede {
  max-width: 58ch;
  font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.3125rem);
  color: var(--muted);
}
.page-head .lede b { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
@media (min-width: 768px) { .page-head { padding-top: 88px; } }
.svc-footer { border-top: var(--border); padding-block: 28px; }
.svc-footer ul { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.svc-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--muted);
  text-decoration: none;
}
.svc-footer a:hover { color: var(--ink); text-decoration: underline; }

/* The page head's dot grid: PageHead.astro's own, on the solid part only. */
.page-head { position: relative; isolation: isolate; }
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(
    circle at 1px 1px, rgb(255 255 255 / 0.09) 1px, transparent 1.4px
  );
  background-size: 22px 22px;
  mask-image: linear-gradient(
    to bottom, transparent 0, #000 72px, #000 calc(100% - var(--tail) - 48px),
    transparent calc(100% - var(--tail) * 0.5)
  );
}
/* A form being sent: the one press counts, and says so. */
form[aria-busy="true"] .btn { cursor: progress; opacity: 0.7; }

/* What rises out of the dark top into the page: one sheet, or the first license. */
.rise {
  position: relative;
  z-index: 1;
  margin-top: calc(-1 * var(--tail) - 24px + 40px);
  margin-bottom: 72px;
}
.sheet.pad { padding-block: 28px; margin-bottom: 72px; }
.quiet { color: var(--muted); }
.said { display: grid; gap: 16px; justify-items: start; }
.said p { max-width: 60ch; }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.sheet a:not(.btn) { display: inline-flex; align-items: center; min-height: 40px; }
.sheet .form { max-width: 28rem; }
.sheet .form .btn { justify-self: start; }

/* Signing in: the address on the left, the other ways on the right, the same width. */
.ways-2 { display: grid; gap: 28px; }
.ways-2 > * { min-width: 0; }
.ways-2 h2 {
  margin: 0 0 14px;
  font: 600 var(--step-0)/1.3 var(--font-sans);
  letter-spacing: 0;
}
.ways-2 .form { gap: 14px; max-width: none; }
.wide { width: 100%; justify-content: center; }
.ways-2 .form .btn { justify-self: stretch; }
.ways { display: grid; gap: 12px; }
.ways .g { display: inline; flex: none; }
@media (min-width: 860px) {
  .ways-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; }
  .ways-2 > :first-child { padding-right: 36px; }
  .ways-2 > :last-child { padding-left: 36px; border-left: var(--border); }
}
@media (max-width: 859px) {
  .ways-2 > :last-child { padding-top: 24px; border-top: var(--border); }
}
.form input[aria-invalid="true"] { border-color: var(--danger); border-width: 2px; }
.form label > .field-error {
  display: flex;
  gap: 8px;
  align-items: baseline;
  color: var(--danger);
  font-weight: 500;
}
.field-error::before {
  content: "!";
  flex: none;
  display: grid;
  place-items: center;
  width: 1.25em;
  height: 1.25em;
  border-radius: 50%;
  background: var(--danger);
  color: var(--page);
  font-size: 0.8em;
  font-weight: 600;
  transform: translateY(-0.05em);
}

/* A license: its block on the app's canvas, wired to its key. */
.lics { display: grid; gap: 28px; }
.lic {
  position: relative;
  min-width: 0;
  border: var(--border);
  border-radius: var(--radius-l);
  background: var(--paper);
  overflow: hidden;
  box-shadow: 0 24px 48px -28px rgb(0 0 0 / 0.45);
}
.canvas { padding: 24px 16px 28px; background-color: var(--mist); }
.chain { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.chain > li { min-width: 0; display: flex; align-items: stretch; }
.chain > li.lead { grid-column: 1 / -1; }
.blk {
  display: grid;
  gap: 2px;
  align-content: center;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 64px;
  padding: 10px 14px 11px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule-strong);
  border-left: 4px solid var(--k, var(--rule-strong));
  border-radius: var(--radius-s);
}
.blk b,
.blk h2 {
  font: 600 var(--step-0)/1.25 var(--font-sans);
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.blk h2 { font-size: var(--step-1); }
.blk b { font-variant-numeric: tabular-nums; }
.blk span {
  font-size: var(--step--1);
  line-height: 1.35;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.blk .ok { color: var(--ok); font-weight: 500; }
.blk.pro { --k: var(--k-pro); }
.blk.plus { --k: var(--k-plus); }
.blk.edu { --k: var(--k-edu); }
.blk.off { --k: var(--k-off); }
.blk.gone { border-style: dashed; border-left-style: solid; --k: var(--k-off); }
.blk progress {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  height: 6px;
  margin-top: 6px;
  border: 0;
  border-radius: 3px;
  background: var(--mist);
  overflow: hidden;
}
.blk progress::-webkit-progress-bar { background: var(--rule); }
.blk progress::-webkit-progress-value { background: var(--k-edu); }
.blk progress::-moz-progress-bar { background: var(--k-edu); }
@media (min-width: 640px) {
  .canvas { padding: 32px 36px 38px; }
  .chain { display: flex; gap: 0; }
  .chain > li { flex: 1 1 0; align-items: center; }
  .chain > li > .blk { align-self: stretch; }
  .chain > li + li::before {
    content: "";
    flex: none;
    width: 18px;
    height: 1.5px;
    background: var(--rule-strong);
  }
}
.wire {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: none;
}
.wire.is-drawn { display: block; }
.wire path { fill: none; stroke: var(--accent); stroke-width: 2; }
.wire circle { fill: var(--accent); }
.keys { border-top: 1px solid var(--rule); padding: 14px 0 16px; }
.tab {
  padding: 0 20px 6px 36px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}
.l {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  min-height: 56px;
  padding: 8px 20px 8px 36px;
}
.l + .l { border-top: 1px solid var(--rule); }
.l.on { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.l .who { flex: 0 0 100%; font-weight: 500; overflow-wrap: anywhere; }
.l code {
  flex: 1 1 12rem;
  min-width: 0;
  font: 400 var(--step-0)/1.5 var(--font-mono);
  color: var(--ink);
  overflow-wrap: anywhere;
}
.l code.masked { color: var(--muted); }
/* A shown key, as the website's thanks page writes it. */
.l.on code {
  flex: 0 1 auto;
  font: 500 var(--step-1) / 1.4 var(--font-mono);
  padding: 8px 12px;
  border: var(--border);
  border-radius: var(--radius-m);
  background: var(--page);
}
.l .btn { min-height: 40px; padding: 0 14px; flex: none; }
@media (min-width: 640px) { .l .who { flex: 0 0 13rem; } .l code { font-size: var(--step-1); } }
.said-line { padding: 12px 20px 0 36px; color: var(--ink); }
.status { color: var(--ink); font-weight: 500; }
.lic-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  padding: 8px 20px 10px 36px;
  border-top: 1px solid var(--rule);
}
.lic-foot a { display: inline-flex; align-items: center; min-height: 40px; }
