/* Designer Shortcuts — the marketing surface.
 *
 * Dark by decision, 29 August 2026. BRAND/04-color.md assigns the light theme
 * to the web; that is superseded here and in Step 8, and the reason is on the
 * record: the app and the Hub both ship dark, so every screenshot this page
 * carries sits on its own ground instead of fighting a white one. /signin is
 * rethemed to match, so the buyer never crosses a theme seam on the way to
 * checkout.
 *
 * Tokens are HSL triplets so opacity can be varied without a second variable.
 * `--primary` is brand amber at 39°; `--accent` is the functional indigo from
 * Step 4's dark row. Amber stays a fill with dark text on it, and is never set
 * as body text.
 */

:root {
  --background: 225 30% 7%;
  --foreground: 40 20% 96%;
  --border: 225 21% 19%;
  --card: 225 27% 11%;
  --muted: 225 27% 16%;
  --muted-foreground: 224 15% 67%;
  --primary: 39 70% 51%;
  --primary-foreground: 225 30% 7%;
  --accent: 228 82% 76%;
  --destructive: 4 78% 68%;

  /* Surfaces derived from the ground. Named for the job, not the value. */
  --surface-glass: 224 39% 10%;   /* floating panels, always with opacity */
  --surface-veil:  224 39% 9%;    /* the banded section behind the tool grid */
  --surface-hover: 225 27% 14%;
  --surface-raised: 225 27% 18%;
  --header-bg:     225 42% 7%;
  --shadow:        225 45% 3%;
  --glow:          228 47% 22%;
  --value-bg:      228 42% 22%;
  --primary-hover: 39 78% 60%;

  /* The stroke on primary buttons. Same hue order as the gradient render:
     gold -> amber -> magenta -> violet -> indigo -> cyan, closing back to gold
     so the sweep has no seam where the pill wraps. */
  --spectrum: linear-gradient(100deg,
    #F2DC68 0%, #E9A13B 16%, #E2568E 34%,
    #A46BE8 52%, #6E86F0 70%, #63C9C0 86%, #F2DC68 100%);

  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --shell: 1240px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul { padding: 0; list-style: none; }

:where(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid hsl(var(--accent));
  outline-offset: 4px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-weight: 700;
  font-size: 13px;
}
.skip:focus { left: 16px; }

/* ── Shell ─────────────────────────────────────────────────────────────── */

.site-shell {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse 80% 45% at 50% -10%, hsl(var(--glow) / .55), transparent 70%),
    radial-gradient(circle 620px at 10% 30%, hsl(var(--primary) / .07), transparent 68%),
    radial-gradient(circle 760px at 92% 52%, hsl(var(--accent) / .09), transparent 68%),
    radial-gradient(circle 600px at 14% 74%, hsl(var(--accent) / .06), transparent 70%),
    radial-gradient(circle 520px at 86% 90%, hsl(var(--primary) / .05), transparent 70%),
    hsl(var(--background));
}

/* A fixed film of noise over everything. It stops the large flat panels from
   banding on cheap monitors, which is most monitors in a print shop. */
.site-shell::before {
  content: '';
  pointer-events: none;
  position: fixed;
  z-index: 20;
  inset: 0;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E");
}

.wrap {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-inline: 20px;
}
@media (min-width: 1024px) { .wrap { padding-inline: 32px; } }

.section { padding-block: 96px; }
@media (min-width: 1024px) { .section { padding-block: 128px; } }

.section-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, hsl(var(--border)), transparent);
}

/* ── Type ──────────────────────────────────────────────────────────────── */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: hsl(var(--accent));
  font-variant-numeric: tabular-nums;
}

.mono {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: hsl(var(--muted-foreground));
  font-variant-numeric: tabular-nums;
}

h1 {
  font-size: clamp(3.25rem, 8vw, 7.2rem);
  font-weight: 600;
  line-height: .91;
  letter-spacing: -.085em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.075em;
  text-wrap: balance;
}

h3 {
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.2;
}

.lead {
  max-width: 570px;
  font-size: 15px;
  line-height: 1.75;
  color: hsl(var(--muted-foreground));
}

.amber { color: hsl(var(--primary)); }
.indigo { color: hsl(var(--accent)); }

/* ── Buttons ───────────────────────────────────────────────────────────── */

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 46px;
  padding: 0 1.1rem;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: .77rem;
  font-weight: 700;
  letter-spacing: -.01em;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  transition: transform .25s ease, background-color .25s ease, border-color .25s ease;
}

/* Gradient stroke. The fill paints to the padding box and the spectrum to the
   border box, so the border itself carries the gradient. `border: 2px solid
   transparent` is load-bearing: without a transparent border there is no border
   box for the second layer to paint into. */
.button-primary {
  color: hsl(var(--foreground));
  border: 2px solid transparent;
  background:
    linear-gradient(hsl(var(--surface-raised)), hsl(var(--surface-raised))) padding-box,
    var(--spectrum) border-box;
  box-shadow: 0 6px 26px hsl(var(--shadow) / .55);
}
.button-primary::after {
  content: '';
  position: absolute;
  inset: -6px;
  z-index: -1;
  border-radius: inherit;
  background: var(--spectrum);
  filter: blur(12px);
  opacity: .3;
  transition: opacity .25s ease;
}
.button-primary:hover { transform: translateY(-2px); }
.button-primary:hover::after { opacity: .5; }

.button-secondary {
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
  background: hsl(var(--surface-glass) / .65);
}
.button-secondary:hover {
  transform: translateY(-2px);
  border-color: hsl(var(--accent) / .7);
  background: hsl(var(--surface-raised));
}

.icon { width: 1em; height: 1em; flex: none; }

/* ── Header ────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid hsl(var(--border) / .6);
  background: hsl(var(--header-bg) / .76);
  backdrop-filter: blur(18px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 72px;
}

/* Was justify-content: space-between, which only behaves with two children.
   The header now carries up to four — brand, toggle, nav, avatar — so the
   brand claims the free space instead and everything else stays grouped
   right, at any width and with or without a session. */
.brand { margin-right: auto; }

.brand { display: flex; align-items: center; gap: 12px; }

/* The gradient render, which is the mark that actually exists. The prototype
   drew a rounded amber square with a notification dot; that would have been a
   fifth placeholder logo on top of the four Step 3 already retired. */
.logo-mark {
  width: 36px;
  height: 36px;
  flex: none;
  object-fit: contain;
}

.word-mark {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.06em;
}

.nav-toggle {
  display: inline-flex;
  padding: 8px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
}
.nav-toggle .icon { width: 20px; height: 20px; }

.site-nav { display: none; }
.site-nav.open {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid hsl(var(--border));
  border-radius: 16px;
  background: hsl(var(--card));
  box-shadow: 0 24px 60px hsl(var(--shadow) / .5);
}
.site-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: hsl(var(--muted-foreground));
  transition: color .2s ease;
}
.site-nav a:hover { color: hsl(var(--foreground)); }
.site-nav a.button-secondary { color: hsl(var(--foreground)); }

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .site-nav,
  .site-nav.open {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 32px;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
  }
}

/* ── Hero ──────────────────────────────────────────────────────────────── */

.hero { position: relative; overflow: hidden; }

.grid-lines {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: .7;
  background-image:
    linear-gradient(hsl(var(--border) / .42) 1px, transparent 1px),
    linear-gradient(90deg, hsl(var(--border) / .42) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 75%);
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 20px;
  align-items: center;
  padding-block: 80px 80px;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: .93fr 1.07fr; padding-block: 96px 112px; }
}
.hero-grid > * { min-width: 0; }

.hero-copy { position: relative; z-index: 10; }
.hero-copy .eyebrow { margin-bottom: 24px; }

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: hsl(var(--primary));
  animation: pulse-line 2.8s ease-in-out infinite;
}

/* Lives inside the h1 now, for SEO, so it has to reset the heading's own type
   rather than inherit it. Visually identical to when it was a <p>. */
.hero-descriptor {
  display: block;
  color: hsl(var(--foreground) / .85);
  margin-top: 28px;
  max-width: 530px;
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -.035em;
  color: hsl(var(--foreground) / .85);
}

.hero-result { margin-top: 16px; max-width: 510px; }

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 32px;
}
@media (min-width: 640px) { .hero-actions { flex-direction: row; align-items: center; } }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  max-width: 580px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid hsl(var(--border) / .8);
}
.hero-facts span { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts .icon { width: 13px; height: 13px; color: hsl(var(--primary)); }

/* ── Hero visual ───────────────────────────────────────────────────────── */

.hero-visual {
  position: relative;
  isolation: isolate;
  margin: 0;
  width: 100%;
  max-width: 620px;
  margin-inline: auto;
}

/* The render is a cut-out, so it needs no ground and no glow behind it — both
   were tried and removed. What it does need is a softer right edge: the crop
   cuts the artboard field mid-row, and a hard vertical edge there reads as a
   mistake rather than as continuation. The fade runs across the last third. */
.hero-visual img {
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(to right, #000 58%, transparent 99%);
  mask-image: linear-gradient(to right, #000 58%, transparent 99%);
}

/* ── Stories ───────────────────────────────────────────────────────────── */

.story-grid {
  display: grid;
  gap: 1px;
  margin-top: 64px;
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  border-radius: 16px;
  background: hsl(var(--border));
}
@media (min-width: 1024px) { .story-grid { grid-template-columns: repeat(3, 1fr); } }

.story-card {
  position: relative;
  overflow: hidden;
  height: 100%;
  padding: 28px;
  background: hsl(var(--card));
}
@media (min-width: 1024px) { .story-card { padding: 32px; } }

.story-card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 0;
  background: hsl(var(--primary));
  transition: height .4s ease;
}
.story-card:hover::after { height: 100%; }

.story-card .head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}
.story-card .head .mono { font-size: 12px; letter-spacing: .04em; }
.story-card .pip { width: 8px; height: 8px; border-radius: 999px; }
.story-card .pip.amber { background: hsl(var(--primary)); box-shadow: 0 0 15px hsl(var(--primary) / .8); }
.story-card .pip.indigo { background: hsl(var(--accent)); box-shadow: 0 0 15px hsl(var(--accent) / .7); }
.story-card h3 { font-size: 24px; letter-spacing: -.05em; }
.story-card .pain { margin-top: 20px; font-size: 14px; line-height: 1.7; color: hsl(var(--muted-foreground)); }
.story-card .split { height: 1px; margin-block: 24px; background: hsl(var(--border)); }
.story-card .answer { font-size: 14px; line-height: 1.7; color: hsl(var(--foreground) / .85); }
.story-card .result {
  margin-top: 28px;
  padding-left: 16px;
  border-left: 2px solid hsl(var(--primary));
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: hsl(var(--primary));
}

/* ── The suite ─────────────────────────────────────────────────────────── */

/* The suite section is the one place on the page with glass. The cards are
   translucent and blurred, so they need something behind them worth blurring —
   hence the two gradient pools below. Everything else stays flat dark. */
#tools {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-block: 1px solid hsl(var(--border) / .7);
  background: hsl(var(--surface-veil) / .5);
}

/* Two small pools rather than a wash: indigo high on the right, a weaker amber
   low on the left. Kept low-opacity on purpose — the cards sit on top of them
   and the body copy inside has to stay above 4.5:1. */
#tools::before,
#tools::after {
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 999px;
}
#tools::before {
  width: 760px;
  height: 760px;
  top: 30%;
  right: -200px;
  background: radial-gradient(circle, hsl(var(--accent) / .30), transparent 65%);
}
#tools::after {
  width: 560px;
  height: 560px;
  bottom: -90px;
  left: -170px;
  background: radial-gradient(circle, hsl(var(--primary) / .17), transparent 66%);
}

.suite-head {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}
@media (min-width: 768px) { .suite-head { flex-direction: row; align-items: flex-end; } }

.suite-count {
  flex: none;
  padding: 12px 16px;
  border: 1px solid hsl(var(--border));
  border-radius: 12px;
  background: hsl(var(--card));
}
.suite-count .n { margin-top: 4px; font-size: 24px; font-weight: 600; letter-spacing: -.04em; }
.suite-count .n small { margin-left: 4px; font-size: 14px; font-weight: 400; color: hsl(var(--muted-foreground)); }
.suite-count .asof { margin-top: 2px; font-size: 11px; color: hsl(var(--primary)); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 48px; }
.filters button {
  padding: 8px 16px;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  background: hsl(var(--card));
  color: hsl(var(--muted-foreground));
  font-family: inherit;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.filters button:hover { border-color: hsl(var(--primary) / .5); color: hsl(var(--foreground)); }
.filters button[aria-pressed="true"] {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.tool-grid {
  display: grid;
  gap: 12px;
  margin-top: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .tool-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tool-grid { grid-template-columns: repeat(4, 1fr); } }

/* Frosted glass. The translucent fill is what `backdrop-filter` blurs, so the
   two go together — an opaque background would blur nothing. The hairline is
   white rather than a grey token, and the inset highlight fakes the lit top
   edge that makes a pane read as glass rather than as a flat tint. */
.tool-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px;
  border: 1px solid hsl(0 0% 100% / .10);
  border-radius: 14px;
  background: hsl(var(--card) / .42);
  -webkit-backdrop-filter: blur(20px) saturate(135%);
  backdrop-filter: blur(20px) saturate(135%);
  box-shadow:
    inset 0 1px 0 hsl(0 0% 100% / .07),
    0 10px 30px hsl(var(--shadow) / .35);
  transition: transform .3s ease, border-color .3s ease, background-color .3s ease;
}
.tool-card:hover {
  transform: translateY(-6px);
  border-color: hsl(var(--accent) / .5);
  background: hsl(var(--card) / .62);
}

/* Firefox before 103 and anything else without backdrop-filter would show the
   gradient straight through the card and drop the body copy under AA. Give
   those an opaque card instead. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .tool-card { background: hsl(var(--card) / .96); }
  .tool-card:hover { background: hsl(var(--surface-hover)); }
}
.tool-card .top { display: flex; align-items: flex-start; justify-content: space-between; }
.tool-card .glyph {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
}
.tool-card .glyph .icon { width: 19px; height: 19px; }
/* A real plugin icon from the catalogue fills the tile; the tinted background
   is for the fallback sprite only. */
.tool-card .glyph.has-icon { background: none; }
.tool-card .glyph img { width: 40px; height: 40px; border-radius: 8px; object-fit: contain; }
.tool-card .glyph.amber { background: hsl(var(--primary) / .1); color: hsl(var(--primary)); }
.tool-card .glyph.indigo { background: hsl(var(--accent) / .1); color: hsl(var(--accent)); }
.tool-card .included { font-size: 9px; text-transform: uppercase; letter-spacing: .12em; color: hsl(var(--muted-foreground)); }
.tool-card h3 { margin-top: 28px; font-size: 18px; }
.tool-card p { flex: 1; margin-top: 8px; font-size: 13px; line-height: 1.6; color: hsl(var(--muted-foreground)); }
.tool-card .cat {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: hsl(var(--muted-foreground));
}
.tool-card .cat i { width: 4px; height: 4px; border-radius: 999px; background: hsl(var(--primary)); }

.suite-more { margin-top: 32px; text-align: center; }
.suite-more .icon { transition: transform .25s ease; }
.suite-more button[aria-expanded="true"] .icon { transform: rotate(180deg); }

.suite-note { margin-top: 24px; font-size: 13px; color: hsl(var(--muted-foreground)); }

/* ── Inside the install ────────────────────────────────────────────────── */

.facts {
  display: grid;
  gap: 0 48px;
  margin-top: 56px;
  border-top: 1px solid hsl(var(--border));
}
@media (min-width: 768px) { .facts { grid-template-columns: repeat(2, 1fr); } }

.fact {
  display: flex;
  gap: 16px;
  padding-block: 32px;
  border-bottom: 1px solid hsl(var(--border));
}
.fact .glyph {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border: 1px solid hsl(var(--border));
  border-radius: 8px;
  background: hsl(var(--card));
  color: hsl(var(--accent));
}
.fact .glyph .icon { width: 18px; height: 18px; }
.fact h3 { font-size: 18px; }
.fact p { max-width: 440px; margin-top: 8px; font-size: 14px; line-height: 1.6; color: hsl(var(--muted-foreground)); }

.platform {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
  padding: 24px;
  border: 1px solid hsl(var(--primary) / .3);
  border-radius: 16px;
  background: hsl(var(--primary) / .06);
}
@media (min-width: 768px) {
  .platform { flex-direction: row; align-items: center; justify-content: space-between; padding: 32px; }
}
.platform .kicker { display: flex; align-items: center; gap: 8px; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: hsl(var(--primary)); }
.platform .kicker .icon { width: 14px; height: 14px; }
.platform h3 { margin-top: 12px; font-size: 24px; letter-spacing: -.05em; }
.platform p { max-width: 700px; margin-top: 8px; font-size: 14px; line-height: 1.6; color: hsl(var(--muted-foreground)); }
.platform .button-secondary { flex: none; align-self: flex-start; }
@media (min-width: 768px) { .platform .button-secondary { align-self: center; } }

/* ── Maintained: shipped recently, and a name ──────────────────────────── */

.maintained {
  margin-top: 40px;
  padding: 24px;
  border: 1px solid hsl(var(--border));
  border-radius: 16px;
  background: hsl(var(--card) / .5);
}
@media (min-width: 1024px) { .maintained { padding: 28px 32px; } }

.shipped {
  display: grid;
  gap: 12px 40px;
  margin-top: 18px;
}
@media (min-width: 768px) { .shipped { grid-template-columns: repeat(3, 1fr); } }

.shipped li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding-top: 12px;
  border-top: 1px solid hsl(var(--border));
}
.shipped .tool { font-size: 14px; font-weight: 600; letter-spacing: -.02em; }
.shipped .ver {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  color: hsl(var(--primary));
  font-variant-numeric: tabular-nums;
}
.shipped .when {
  flex-basis: 100%;
  font-size: 12px;
  color: hsl(var(--muted-foreground));
  font-variant-numeric: tabular-nums;
}

.signed {
  max-width: 62ch;
  margin-top: 28px;
  font-size: 14px;
  line-height: 1.65;
  color: hsl(var(--muted-foreground));
}
.signed a { color: hsl(var(--accent)); text-decoration: underline; text-underline-offset: 2px; }

/* ── Glass ─────────────────────────────────────────────────────────────────
   Every box on the page shares one recipe: a translucent fill for the blur to
   work on, a white hairline instead of a grey token, and an inset top highlight
   for the lit edge that makes a pane read as glass. The ambient pools on
   .site-shell are what it has to refract — glass over flat colour is just a
   tinted box.

   Contrast was measured over the brightest pool before this went in; body copy
   holds above 4.5:1 on every surface listed here. Raise a pool's opacity and
   that stops being true. */
.story-card,
.platform,
.maintained,
.value-body .pull,
.plan,
.licence,
.questions,
.mac,
.suite-count {
  -webkit-backdrop-filter: blur(20px) saturate(135%);
  backdrop-filter: blur(20px) saturate(135%);
  box-shadow: inset 0 1px 0 hsl(0 0% 100% / .06);
}

.story-card { background: hsl(var(--card) / .5); }
.platform   { background: hsl(var(--primary) / .07); border-color: hsl(var(--primary) / .32); }
.maintained,
.licence,
.questions  { background: hsl(var(--card) / .45); border-color: hsl(0 0% 100% / .09); }
.plan       { background: hsl(var(--card) / .5);  border-color: hsl(0 0% 100% / .1); }
.mac        { background: hsl(var(--accent) / .07); border-color: hsl(var(--accent) / .3); }
.suite-count { background: hsl(var(--card) / .5); border-color: hsl(0 0% 100% / .1); }
.value-body .pull { background: hsl(var(--accent) / .07); border-color: hsl(var(--accent) / .28); }

/* The annual plan keeps its amber wash on top of the glass. */
.plan.best {
  background: linear-gradient(140deg, hsl(var(--primary) / .13), hsl(var(--card) / .55) 48%);
  border-color: hsl(var(--primary) / .55);
}

/* No backdrop-filter means the pools would show straight through the copy. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .story-card, .maintained, .licence, .questions, .plan, .suite-count {
    background: hsl(var(--card) / .96);
  }
  .plan.best { background: linear-gradient(140deg, hsl(var(--primary) / .16), hsl(var(--card)) 48%); }
}

/* ── Value ─────────────────────────────────────────────────────────────── */

#value {
  position: relative;
  overflow: hidden;
  border-block: 1px solid hsl(var(--border) / .7);
  background: hsl(var(--value-bg) / .22);
}
#value .blob {
  position: absolute;
  right: -112px;
  top: 50%;
  width: 320px;
  height: 320px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: hsl(var(--accent) / .1);
  filter: blur(64px);
}
.value-grid { position: relative; display: grid; gap: 48px; }
@media (min-width: 1024px) { .value-grid { grid-template-columns: .82fr 1.18fr; align-items: center; } }
.value-body { display: flex; flex-direction: column; gap: 20px; font-size: 15px; line-height: 1.75; color: hsl(var(--muted-foreground)); }
.value-body .pull {
  padding: 20px;
  border: 1px solid hsl(var(--accent) / .25);
  border-radius: 12px;
  background: hsl(var(--accent) / .05);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.55;
  color: hsl(var(--foreground));
}

/* ── Pricing ───────────────────────────────────────────────────────────── */

.plans { display: grid; gap: 16px; margin-top: 48px; }
@media (min-width: 768px) { .plans { grid-template-columns: repeat(2, 1fr); } }

.plan {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px;
  border: 1px solid hsl(var(--border));
  border-radius: 16px;
  background: hsl(var(--card));
}
@media (min-width: 1024px) { .plan { padding: 36px; } }

.plan.best {
  position: relative;
  overflow: hidden;
  border-color: hsl(var(--primary) / .6);
  background: linear-gradient(140deg, hsl(var(--primary) / .1), hsl(var(--card) / .94) 48%);
}
.plan .flag {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 4px 12px;
  border-radius: 999px;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.plan .tier { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: hsl(var(--muted-foreground)); }
.plan.best .tier { color: hsl(var(--primary)); }
.plan .price { margin-top: 28px; font-size: 60px; font-weight: 600; letter-spacing: -.08em; line-height: 1; }
.plan .price small { margin-left: 8px; font-size: 16px; font-weight: 400; letter-spacing: normal; color: hsl(var(--muted-foreground)); }
.plan .terms { margin-top: 12px; font-size: 14px; color: hsl(var(--muted-foreground)); }
.plan .button-primary,
.plan .button-secondary { margin-top: 32px; width: 100%; }

.guarantee {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: none;
  margin-top: 16px;
  padding: 16px 20px;
  border: 1px solid hsl(var(--primary) / .35);
  border-radius: 999px;
  background: hsl(var(--primary) / .06);
  font-size: 14px;
  line-height: 1.5;
  color: hsl(var(--muted-foreground));
}
.guarantee .icon { width: 18px; height: 18px; margin-top: 1px; color: hsl(var(--primary)); }
.guarantee strong { color: hsl(var(--foreground)); font-weight: 600; }
.guarantee a { color: hsl(var(--accent)); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 560px) { .guarantee { border-radius: 16px; } }

.licence {
  display: grid;
  gap: 16px;
  margin-top: 16px;
  padding: 24px;
  border: 1px solid hsl(var(--border));
  border-radius: 16px;
  background: hsl(var(--card) / .5);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
@media (min-width: 1024px) { .guarantee {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: none;
  margin-top: 16px;
  padding: 16px 20px;
  border: 1px solid hsl(var(--primary) / .35);
  border-radius: 999px;
  background: hsl(var(--primary) / .06);
  font-size: 14px;
  line-height: 1.5;
  color: hsl(var(--muted-foreground));
}
.guarantee .icon { width: 18px; height: 18px; margin-top: 1px; color: hsl(var(--primary)); }
.guarantee strong { color: hsl(var(--foreground)); font-weight: 600; }
.guarantee a { color: hsl(var(--accent)); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 560px) { .guarantee { border-radius: 16px; } }

.licence { padding: 32px; } }
.licence h3 { font-size: 16px; letter-spacing: -.03em; }
.licence p { margin-top: 8px; font-size: 14px; line-height: 1.6; color: hsl(var(--muted-foreground)); }

.mac {
  margin-top: 40px;
  padding: 24px;
  border: 1px solid hsl(var(--accent) / .3);
  border-radius: 16px;
  background: hsl(var(--accent) / .06);
}
@media (min-width: 1024px) { .mac { padding: 32px; } }
.mac .row { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
@media (min-width: 768px) { .mac .row { flex-direction: row; align-items: flex-end; } }
.mac .eyebrow .icon { width: 15px; height: 15px; color: hsl(var(--accent)); }
.mac h3 { margin-top: 12px; font-size: 24px; letter-spacing: -.05em; }
.mac p { max-width: 580px; margin-top: 8px; font-size: 14px; line-height: 1.6; color: hsl(var(--muted-foreground)); }
.mac form { display: flex; flex-direction: column; gap: 8px; width: 100%; }
@media (min-width: 640px) { .mac form { flex-direction: row; } }
@media (min-width: 768px) { .mac form { width: auto; } }
.mac input {
  width: 100%;
  height: 46px;
  padding-inline: 16px;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .2s ease;
}
@media (min-width: 640px) { .mac input { width: 220px; } }
.mac input::placeholder { color: hsl(var(--muted-foreground)); }
.mac input:focus { border-color: hsl(var(--accent)); }
.mac .said { margin-top: 12px; font-size: 10px; }
.mac .said.error { color: hsl(var(--destructive)); }
.mac .said.ok { color: hsl(var(--primary)); }
.mac .fine { margin-top: 16px; font-size: 11px; color: hsl(var(--muted-foreground)); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

[hidden] { display: none !important; }

/* ── Questions before buying ───────────────────────────────────────────── */

.questions {
  margin-top: 16px;
  padding: 24px;
  border: 1px solid hsl(var(--border));
  border-radius: 16px;
  background: hsl(var(--card) / .5);
}
@media (min-width: 1024px) { .questions { padding: 32px; } }

.questions-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: hsl(var(--muted-foreground));
}

.questions dl {
  display: grid;
  gap: 24px 48px;
  margin: 24px 0 0;
}
@media (min-width: 768px) { .questions dl { grid-template-columns: repeat(2, 1fr); } }

.questions dt {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: hsl(var(--foreground));
}
.questions dd {
  max-width: 60ch;
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: hsl(var(--muted-foreground));
}
.questions dd a { color: hsl(var(--accent)); text-decoration: underline; text-underline-offset: 2px; }
.questions dd b { color: hsl(var(--foreground)); font-weight: 600; }

/* ── Honest limits ─────────────────────────────────────────────────────── */

.limits {
  display: grid;
  gap: 0 48px;
  margin-top: 56px;
  border-top: 1px solid hsl(var(--border));
}
@media (min-width: 768px) { .limits { grid-template-columns: repeat(2, 1fr); } }

.limits li {
  padding-block: 28px;
  border-bottom: 1px solid hsl(var(--border));
}
.limits h3 { font-size: 17px; }
.limits p { max-width: 440px; margin-top: 8px; font-size: 14px; line-height: 1.65; color: hsl(var(--muted-foreground)); }

/* ── Footer ────────────────────────────────────────────────────────────────
   Set apart from the page by colour alone: a flatter, lighter band with a
   hairline above it, so the page reads as finished rather than trailing off.
   No glass and nothing decorative — the footer is wayfinding, not selling. */

.site-footer {
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--surface-veil));
}

.site-footer .row {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding-block: 64px;
}
@media (min-width: 768px) { .site-footer .row { flex-direction: row; } }

.site-footer .about { max-width: 420px; }
.site-footer .about p { margin-top: 20px; font-size: 14px; line-height: 1.6; color: hsl(var(--muted-foreground)); }
.site-footer .about .legal {
  margin-top: 28px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: hsl(var(--muted-foreground));
}
.site-footer .legal-links { margin-top: 8px; font-size: 12px; color: hsl(var(--muted-foreground)); }
.site-footer .legal-links a { color: hsl(var(--muted-foreground)); text-decoration: underline; text-underline-offset: 2px; }
.site-footer .legal-links a:hover { color: hsl(var(--foreground)); }

.foot-nav { display: flex; flex-direction: column; gap: 14px; font-size: 14px; }
.foot-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: hsl(var(--muted-foreground));
  transition: color .2s ease;
}
.foot-nav a:hover { color: hsl(var(--foreground)); }
.foot-nav .icon { width: 13px; height: 13px; }

/* ── Tool pages ────────────────────────────────────────────────────────────
   Generated by Admin/scripts/build-tool-pages.js. They share the landing
   page's shell, type and glass, so a visitor arriving from a search result
   lands somewhere that is recognisably the same product. */

.tool-page { padding-block: 40px 96px; }
@media (min-width: 1024px) { .tool-page { padding-block: 48px 128px; } }

.crumbs { font-size: 12px; color: hsl(var(--muted-foreground)); }
.crumbs a { color: hsl(var(--accent)); }
.crumbs span { margin-inline: 4px; }

.tool-head { max-width: 720px; margin-top: 32px; }
.tool-head h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.tool-head .tool-name {
  margin-top: 16px;
  font-size: 15px;
  font-weight: 600;
  color: hsl(var(--foreground));
}
.tool-head .tool-name .ver {
  margin-left: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: hsl(var(--primary));
}
.tool-head .lead { margin-top: 16px; }
.tool-head .hero-actions { margin-top: 28px; }
.tool-plat { margin-top: 24px; }

.tool-page h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: -.045em;
  line-height: 1.1;
}

.shots { display: grid; gap: 16px; margin-top: 56px; }
@media (min-width: 768px) { .shots { grid-template-columns: repeat(2, 1fr); } }
.shot { margin: 0; overflow: hidden; border: 1px solid hsl(0 0% 100% / .1); border-radius: 14px; background: hsl(var(--card) / .5); }
.shot img { width: 100%; height: auto; display: block; }

.tool-body, .tool-video, .tool-log, .tool-cta, .tool-siblings { margin-top: 64px; }

.prose { margin-top: 20px; max-width: 68ch; color: hsl(var(--muted-foreground)); font-size: 15px; line-height: 1.75; }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { margin: 14px 0 14px 20px; list-style: revert; }
.prose li { margin-bottom: 6px; }
.prose strong, .prose b { color: hsl(var(--foreground)); font-weight: 600; }
.prose h3, .prose h4 { margin: 24px 0 8px; color: hsl(var(--foreground)); font-size: 17px; }

/* 16:9 without a wrapper hack, and the iframe cannot overflow its box. */
.embed {
  margin-top: 20px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid hsl(0 0% 100% / .1);
  border-radius: 14px;
  background: hsl(var(--card));
}
.embed iframe { width: 100%; height: 100%; border: 0; display: block; }

.log { margin-top: 20px; display: flex; flex-direction: column; gap: 0; }
.log li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  padding-block: 14px;
  border-bottom: 1px solid hsl(var(--border));
  font-size: 14px;
}
.log .ver { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: hsl(var(--primary)); font-variant-numeric: tabular-nums; }
.log .when { font-size: 12px; color: hsl(var(--muted-foreground)); font-variant-numeric: tabular-nums; }
.log .note { flex-basis: 100%; color: hsl(var(--muted-foreground)); }

.tool-cta {
  padding: 28px;
  border: 1px solid hsl(0 0% 100% / .09);
  border-radius: 16px;
  background: hsl(var(--card) / .45);
  -webkit-backdrop-filter: blur(20px) saturate(135%);
  backdrop-filter: blur(20px) saturate(135%);
  box-shadow: inset 0 1px 0 hsl(0 0% 100% / .06);
}
.tool-cta p { margin-top: 12px; max-width: 62ch; color: hsl(var(--muted-foreground)); font-size: 15px; line-height: 1.7; }
.tool-cta .hero-actions { margin-top: 24px; }

.sibs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.sibs a {
  display: inline-flex;
  padding: 10px 16px;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  font-size: 13px;
  color: hsl(var(--muted-foreground));
  transition: color .2s ease, border-color .2s ease;
}
.sibs a:hover { color: hsl(var(--foreground)); border-color: hsl(var(--accent) / .6); }

.tool-index { display: grid; gap: 14px; margin-top: 48px; }
@media (min-width: 640px) { .tool-index { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tool-index { grid-template-columns: repeat(3, 1fr); } }
.tool-index .tool-card { gap: 0; }
.tool-index h2 { font-size: 18px; letter-spacing: -.03em; }
.tool-index p { margin-top: 8px; font-size: 13px; line-height: 1.6; color: hsl(var(--muted-foreground)); }
.tool-index .go {
  margin-top: 16px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: hsl(var(--accent));
}

/* ── Motion ────────────────────────────────────────────────────────────── */

/* Scoped to .js, which the head script sets. No script, no hiding. */
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.revealed { animation: reveal-in .72s cubic-bezier(.2,.8,.2,1) forwards; }

@keyframes reveal-in { to { opacity: 1; transform: translateY(0); } }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-9px) rotate(1deg); }
}
@keyframes pulse-line {
  0%, 100% { opacity: .35; }
  50% { opacity: .95; }
}
@keyframes scan {
  0% { transform: translateY(-20px); opacity: 0; }
  35%, 70% { opacity: .9; }
  100% { transform: translateY(210px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; animation: none; }
  .panel-boards, .pulse-dot, .scan-line { animation: none; }
  .button-primary:hover, .button-secondary:hover, .tool-card:hover { transform: none; }
}

/* ─────────────────────────────────────────────────────────────────────────
   Account, auth and document pages
   ─────────────────────────────────────────────────────────────────────────
   /signin, /account, /link, /privacy, /terms and /refunds were built on their
   own stylesheet, with their own header, before the marketing pages existed.
   That left the buyer crossing a visual seam at the exact moment they signed
   up. These rules bring them onto the tokens above so the whole site is one
   surface; styles.css is gone.

   Nothing here restyles the landing page. The one collision was `.plan`, which
   means a pricing card on `/` and a narrower one on /signin — the signin
   markup uses .app-plan instead. */

.doc-page { padding-block: 40px 96px; }
.doc-page > h1 {
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: -.02em;
  color: hsl(var(--foreground));
}
.doc-page > .updated { margin-top: 8px; font-size: 13px; color: hsl(var(--muted-foreground)); }

/* .prose styles h3 and h4 but never h2, and every legal page's sections are
   h2 — they rendered at the browser default, larger than the page title. */
.prose h2 {
  margin: 32px 0 10px;
  color: hsl(var(--foreground));
  font-size: 20px;
  letter-spacing: -.01em;
}
.prose h2:first-child { margin-top: 0; }
.prose a { color: hsl(var(--accent)); }

/* The unanswered-question block on /privacy and /terms. Deliberately loud:
   it is publicly visible until the entity is registered, and it should look
   like something outstanding rather than part of the policy. */
.prose .todo {
  margin: 20px 0;
  padding: 14px 16px;
  border: 1px solid hsl(var(--primary) / .4);
  border-left: 3px solid hsl(var(--primary));
  border-radius: var(--radius);
  background: hsl(var(--primary) / .07);
  color: hsl(var(--foreground));
  font-size: 14px;
}

.card {
  margin-top: 20px;
  padding: 24px;
  border: 1px solid hsl(var(--border));
  border-radius: 14px;
  background: hsl(var(--card));
}
.card h2 { margin-bottom: 6px; color: hsl(var(--foreground)); font-size: 19px; letter-spacing: -.01em; }
.card p { color: hsl(var(--muted-foreground)); font-size: 15px; line-height: 1.65; }
.card p.tight { margin-bottom: 14px; }

/* Label on the left, value on the right, ruled between. */
.kv {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid hsl(var(--border));
  font-size: 14px;
}
.kv:first-of-type { border-top: 0; }
.kv span:first-child { color: hsl(var(--muted-foreground)); }
.kv span:last-child { color: hsl(var(--foreground)); font-weight: 500; text-align: right; }

.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.pill.ok   { background: hsl(152 45% 42% / .18); color: hsl(152 55% 68%); }
.pill.warn { background: hsl(var(--primary) / .18); color: hsl(var(--primary)); }
.pill.err  { background: hsl(var(--destructive) / .16); color: hsl(var(--destructive)); }

/* Hidden until a class is added, so an empty box never reserves space. */
.msg { display: none; margin-top: 14px; padding: 11px 14px; border-radius: 10px; font-size: 14px; }
.msg.show { display: block; }
.msg.err { background: hsl(var(--destructive) / .12); border: 1px solid hsl(var(--destructive) / .35); color: hsl(var(--destructive)); }
.msg.ok  { background: hsl(152 45% 42% / .12); border: 1px solid hsl(152 45% 42% / .35); color: hsl(152 55% 68%); }

.spinner {
  display: inline-block;
  width: 14px; height: 14px;
  margin-right: 9px;
  vertical-align: -2px;
  border: 2px solid hsl(var(--muted-foreground) / .3);
  border-top-color: hsl(var(--accent));
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }

/* The device-pairing code. Tabular figures so it does not jitter as it fills. */
.code {
  margin: 18px 0 10px;
  padding: 16px;
  border: 1px dashed hsl(var(--border));
  border-radius: 12px;
  background: hsl(var(--muted) / .5);
  color: hsl(var(--foreground));
  font-family: ui-monospace, 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 30px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .16em;
  text-align: center;
}

label { display: block; margin: 16px 0 6px; color: hsl(var(--foreground)); font-size: 14px; font-weight: 500; }
input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid hsl(var(--border));
  border-radius: 10px;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font: inherit;
  font-size: 15px;
}
input::placeholder { color: hsl(var(--muted-foreground) / .7); }
input:hover { border-color: hsl(var(--muted-foreground) / .5); }
input:focus { outline: 2px solid hsl(var(--accent) / .6); outline-offset: 1px; border-color: transparent; }

/* Buttons and .btn links share one look so a link and a submit sit level. */
.btn,
.card button,
form button {
  display: inline-block;
  margin-top: 18px;
  padding: 11px 20px;
  border: 0;
  border-radius: 999px;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover, .card button:hover, form button:hover { background: hsl(var(--primary-hover)); }
.btn:focus-visible, .card button:focus-visible, form button:focus-visible {
  outline: 2px solid hsl(var(--accent)); outline-offset: 2px;
}
.btn.secondary, .card button.secondary, form button.secondary {
  background: hsl(var(--surface-raised));
  color: hsl(var(--foreground));
  box-shadow: inset 0 0 0 1px hsl(var(--border));
}
.btn.secondary:hover, .card button.secondary:hover { background: hsl(var(--surface-hover)); }
button:disabled { opacity: .55; cursor: not-allowed; }
button.danger { background: hsl(var(--destructive)); color: hsl(var(--background)); }

/* Scoped: a bare .row would otherwise reach .mac .row on the landing page. */
.doc-page .row { display: flex; flex-wrap: wrap; gap: 12px; }
.doc-page .row button { flex: 1 1 140px; }

.muted { color: hsl(var(--muted-foreground)); }
.small { font-size: 13px; }
.card p.tight:last-child { margin-bottom: 0; }

/* ── Page furniture for the account pages ────────────────────────────────
   /signin and /account were a single column of full-width cards, which on a
   desktop reads as a phone screen stretched wide. These give them the same
   opening as a landing-page section — eyebrow, heading, lead — and put a
   sensible measure on the parts that are forms rather than content. */

.page-head { max-width: 640px; margin-bottom: 8px; }
.page-head h1 {
  margin-top: 14px;
  font-size: clamp(30px, 4.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -.025em;
  color: hsl(var(--foreground));
}
.page-head .lead { margin-top: 18px; }

/* A sign-in form stretched to 1240px is the single worst offender. Auth is a
   narrow task and should look like one, centred rather than left-adrift. */
.auth-shell { max-width: 460px; margin-inline: auto; }
.auth-shell .card { margin-top: 28px; }

/* The account page is a dashboard, so it gets columns. Subscription is the
   wide one because it holds four rows; the rest sit beside it. */
.account-grid { display: grid; gap: 18px; margin-top: 28px; }
@media (min-width: 900px) {
  .account-grid { grid-template-columns: 1.35fr 1fr; align-items: start; }
  .account-grid .span-2 { grid-column: 1 / -1; }
}
.account-grid .card { margin-top: 0; }

/* ── Back to top ─────────────────────────────────────────────────────────
   The landing page is long enough that returning to the nav means a lot of
   scrolling. Bottom-right is where the thumb and the cursor both already are,
   and it clears the footer's own links. Hidden until there is enough page
   behind you to want it. */
.to-top {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 60;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid hsl(var(--border));
  border-radius: 50%;
  background: hsl(var(--surface-glass) / .82);
  backdrop-filter: blur(10px);
  color: hsl(var(--foreground));
  cursor: pointer;
  box-shadow: 0 8px 24px hsl(var(--shadow) / .5);

  /* Not display:none — that cannot be transitioned, and a button that pops in
     is more distracting than the scrolling it is there to fix. */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover {
  border-color: hsl(var(--primary) / .55);
  color: hsl(var(--primary));
  transform: translateY(-2px);
}
.to-top:focus-visible { outline: 2px solid hsl(var(--accent)); outline-offset: 3px; }
.to-top svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) {
  .to-top { transition: opacity .22s ease, visibility .22s; }
  .to-top:hover { transform: none; }
}
@media print { .to-top { display: none; } }

/* ── Signed-in avatar ────────────────────────────────────────────────────
   Replaces the header's Sign in button once there is a session, so the answer
   to "am I signed in?" is on every page rather than only on /account.

   Initials come from the email, because no name is ever collected — the
   privacy policy says so explicitly, and an avatar is not a reason to start.

   The spectrum ring is the same construction as .button-primary: the fill
   paints to the padding box and the gradient to the border box, so a
   transparent border is load-bearing. */
.avatar-link {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid transparent;
  border-radius: 50%;
  background:
    linear-gradient(hsl(var(--surface-raised)), hsl(var(--surface-raised))) padding-box,
    var(--spectrum) border-box;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.avatar-link:hover { transform: translateY(-1px); box-shadow: 0 6px 18px hsl(var(--shadow) / .55); }
.avatar-link:focus-visible { outline: 2px solid hsl(var(--accent)); outline-offset: 3px; }
.avatar {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1;
  color: hsl(var(--foreground));
  /* Tabular figures are on at body level and make two letters sit oddly. */
  font-variant-numeric: normal;
}
@media (prefers-reduced-motion: reduce) { .avatar-link:hover { transform: none; } }
