/* Resistance static shell — landing, pricing, guide, legal, docs. Standalone (no build); brand
   tokens inlined so the shell has zero dependency on the app's theme pipeline. Flat, calm,
   content-first.

   The token block below MIRRORS the app's `carbon` theme (packages/design/src/theme.ts) — the
   default theme every product screenshot on this site is shot in. If carbon moves, move these
   with it, or the site and its own screenshots stop agreeing. */
:root {
  --bg: #000000; /* OLED black */
  --panel: #0c0c0c;
  --panel-2: #171717;
  --border: #272727;
  --text: #fafafa;
  --muted: #8b8b8b;
  --accent: #c8ff37; /* carbon lime */
  --accent-ink: #000000; /* text on the lime accent — pure black */
  /* carbon's `danger`. A FILLED destructive control takes this as its background with
     `--accent-ink` as its label, which is what the app does (`variant="danger"` in
     apps/mobile/src/components/ui.tsx fills with `theme.color.danger` and tints the label
     `theme.color.bg`), so the two surfaces agree on what a delete button looks like. */
  --danger: #ff5d5d;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

/* The `hidden` attribute must win over component display rules (e.g. .btn's inline-flex). */
[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  /* Every in-page anchor on this site lands under the sticky header without this. Desktop clears
     the 60px header; the phone value also clears the homepage's sticky section strip. */
  scroll-padding-top: 76px;
}

body {
  background: var(--bg);
  color: var(--text);
  font:
    15px/1.6 ui-sans-serif,
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Keyboard focus is always visible — never `outline: none` without a replacement ring. */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

.wrap {
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Skip link — first focusable element on every page. */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--panel-2);
  color: var(--text);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  z-index: 20;
}
.skip:focus {
  left: 12px;
  top: 12px;
}

/* Header */
.site-head {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  z-index: 10;
}
.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 60px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 16px;
}
.wordmark:hover {
  text-decoration: none;
}
.wordmark .mark {
  width: 8px;
  height: 18px;
  border-radius: 2px;
  background: var(--accent);
}
.site-head nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
/* Text links only (:not(.btn)) — the CTA .btn keeps its own black-on-lime styling, which this
   rule would otherwise override on specificity. */
.site-head nav a:not(.btn) {
  color: var(--text);
  padding: 7px 12px;
  border-radius: var(--radius-md);
  font-size: 14px;
}
.site-head nav a:not(.btn):hover {
  background: var(--panel-2);
  text-decoration: none;
}
.site-head nav a[aria-current='page'] {
  color: var(--accent);
}

/* Phone menu — a <details> disclosure, so the nav works with zero JavaScript (the site's CSP
   forbids inline script and this must not depend on a bundle). */
.menu {
  display: none;
  position: relative;
  margin-left: auto;
}
.menu > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  padding: 0 12px;
  gap: 8px;
}
.menu > summary::-webkit-details-marker {
  display: none;
}
.menu[open] > summary {
  background: var(--panel-2);
}
.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  padding: 6px;
  display: flex;
  flex-direction: column;
}
.menu-panel a {
  color: var(--text);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 15px;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.menu-panel a:hover {
  background: var(--panel-2);
  text-decoration: none;
}

/* In-page section nav (homepage, phones only) — a scrollable strip of jump chips that sits
   directly under the sticky header so a long page is navigable instead of endless. The chips are
   real anchors; /section-nav.js only adds aria-current. Hidden at desktop widths, where the
   header's own nav already does this job. */
.section-nav {
  display: none;
  position: sticky;
  top: 60px; /* the header's exact height — the two stack, they never overlap */
  z-index: 9;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.section-nav .wrap {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-top: 7px;
  padding-bottom: 7px;
}
.section-nav .wrap::-webkit-scrollbar {
  display: none;
}
.section-nav a {
  flex: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  white-space: nowrap;
}
.section-nav a:hover {
  text-decoration: none;
  color: var(--text);
}
.section-nav a[aria-current='location'] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid transparent;
}
.btn:hover {
  text-decoration: none;
  filter: brightness(1.05);
}
.btn.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn.secondary:hover {
  background: var(--panel-2);
  filter: none;
}

/* Hero */
main {
  flex: 1 0 auto;
}
/* Single-block pages (404): center the block in the viewport instead of top-anchoring it above a
   large void. */
main.center {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
main.center .hero {
  padding-top: 24px;
  padding-bottom: 24px;
}
/* Sections sharing .wrap must pad vertically with LONGHAND — a `padding: X 0 Y` shorthand's
   horizontal 0 overrides .wrap's side padding on the same element (the recurring squeeze bug). */
.hero {
  padding-top: 96px;
  padding-bottom: 48px;
}
.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.05;
  letter-spacing: -1px;
  margin: 0 0 18px;
  max-width: 18ch;
  text-wrap: balance;
}
.hero p.lead {
  color: var(--muted);
  font-size: 18px;
  max-width: 56ch;
  margin: 0 0 28px;
}
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.cta-note {
  color: var(--muted);
  font-size: 14px;
  margin: 18px 0 0;
}

/* Embedded product shot — a framed panel with a bottom fade, so any crop reads as an intentional
   mask rather than a botched capture. */
.shot {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
}
.shot::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), var(--bg));
  pointer-events: none;
}

/* ---- Sections (bands) ---- */
.band {
  padding-top: 64px;
  padding-bottom: 64px;
}
.band + .band {
  border-top: 1px solid var(--border);
}
.band h2 {
  font-size: clamp(24px, 3.4vw, 32px);
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin: 0 0 14px;
  max-width: 22ch;
  text-wrap: balance;
}
.band h3 {
  font-size: 17px;
  margin: 0 0 6px;
}
.band p {
  color: var(--muted);
  max-width: 68ch;
  margin: 0 0 14px;
}
.band p.tight {
  margin-bottom: 8px;
}
.band p strong,
.band li strong {
  color: var(--text);
  font-weight: 600;
}
.band .btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.overline {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.trust {
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
  max-width: 62ch;
  margin: 28px 0 0;
}

/* Product figure — an image slot with a caption. Also the shape used for the
   "founder must shoot this on device" placeholders. */
.figure {
  margin: 26px 0 0;
}
.figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
}
.figure figcaption {
  color: var(--muted);
  font-size: 13px;
  margin-top: 10px;
}
.figure.phone {
  max-width: 300px;
}
/* A watch capture is square, so it needs a tighter cap than a phone's tall portrait — left at the
   figure's natural width it upscales past its own 454px source and goes soft. */
.figure.watch {
  max-width: 280px;
}
.figure.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.figure.pair figcaption {
  grid-column: 1 / -1;
}
/* Phone screens are tall; cap the paired figures so a 2-up doesn't dwarf the copy beside it. */
.figure.pair {
  max-width: 620px;
}
.figure.hero-shot {
  max-width: 660px;
  margin: 8px auto 0;
}
/* A tall phone capture whose lower half is empty chat space: mask it instead of making everyone
   scroll a black rectangle. Same idiom as .shot — the fade makes the crop read as intentional.
   Assumes no <figcaption> (the ::after is pinned to the figure box, which is the image). */
.figure.crop {
  position: relative;
}
.figure.crop img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top;
}
.figure.crop::after {
  content: '';
  position: absolute;
  left: 1px;
  right: 1px;
  bottom: 1px;
  height: 60px;
  border-radius: 0 0 11px 11px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), var(--bg));
  pointer-events: none;
}

/* ---- Flat lists (the canonical shared pattern with the app's DataRow) ---- */
.rows {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}
.rows > li,
.row {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.row-head h3 {
  margin: 0;
  font-size: 17px;
}
.row-value {
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.row p {
  margin: 6px 0 0;
  color: var(--muted);
  max-width: 68ch;
}
.rows > li p {
  margin: 6px 0 0;
  color: var(--muted);
  max-width: 68ch;
}
.row .btn {
  margin-top: 14px;
}

/* ---- Card grid (guide hub, FAQ groups, developer surfaces) ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.cards > a,
.cards > div {
  background: var(--bg);
  padding: 20px;
  color: var(--text);
  display: block;
}
.cards > a:hover {
  background: var(--panel-2);
  text-decoration: none;
}
.cards h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.cards p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Legacy 3-up feature grid (kept: the 404 and worker-rendered pages may still use it). */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
}
.feature h3 {
  font-size: 16px;
  margin: 0 0 6px;
}
.feature p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

/* ---- Pricing ladder ---- */
.tiers {
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.tier {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.tier-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.tier-name {
  font-size: 20px;
  font-weight: 650;
  margin: 0;
}
.tier-price {
  font-size: 20px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.tier-blurb {
  color: var(--muted);
  margin: 8px 0 0;
  max-width: 62ch;
}
.tier ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.tier li {
  color: var(--muted);
  padding: 5px 0 5px 20px;
  position: relative;
  font-size: 14px;
}
.tier li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Notice / banner — a genuinely distinct standalone block, so it earns a panel. */
.notice {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  margin: 0 0 32px;
}
.notice h2,
.notice h3 {
  margin: 0 0 8px;
  font-size: 17px;
}
.notice p {
  margin: 0;
  color: var(--muted);
  max-width: 68ch;
}
.notice p + p {
  margin-top: 10px;
}

/* ---- FAQ (native disclosure — no JS) ---- */
.faq {
  border-top: 1px solid var(--border);
}
.faq details {
  border-bottom: 1px solid var(--border);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 32px 16px 0;
  font-weight: 600;
  position: relative;
  min-height: 44px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 15px;
  color: var(--muted);
  font-weight: 400;
  font-size: 18px;
}
.faq details[open] summary::after {
  content: '–';
}
.faq details > p,
.faq details > ul {
  color: var(--muted);
  margin: 0 0 18px;
  max-width: 68ch;
}
.faq details > ul {
  padding-left: 20px;
}

/* ---- Long-form prose: legal pages and guide articles ---- */
.legal,
.article {
  padding-top: 48px;
  padding-bottom: 72px;
  max-width: 760px;
}
.legal h1,
.article h1 {
  font-size: clamp(28px, 4.4vw, 36px);
  letter-spacing: -0.5px;
  margin: 0 0 6px;
}
.legal h2,
.article h2 {
  font-size: 20px;
  margin: 36px 0 10px;
}
.article h3 {
  font-size: 16px;
  margin: 24px 0 6px;
}
.legal p,
.legal li,
.article p,
.article li {
  color: var(--text);
  line-height: 1.7;
}
.article p,
.article li {
  color: var(--muted);
}
.article p strong,
.article li strong {
  color: var(--text);
  font-weight: 600;
}
.article .lead {
  color: var(--text);
  font-size: 17px;
}
.legal ul,
.legal ol,
.article ul,
.article ol {
  margin: 0 0 14px;
  padding-left: 22px;
}
.legal li,
.article li {
  margin-bottom: 6px;
}
/* A flat list inside prose (the subprocessor list) keeps its full-bleed hairlines — the bullet
   indent above is for real bullets, and it would inset the dividers off the text column. */
.legal .rows,
.article .rows {
  padding-left: 0;
  margin-bottom: 0;
}
.legal .rows > li,
.article .rows > li {
  margin-bottom: 0;
}
.article ol > li {
  padding-left: 4px;
}
.breadcrumb {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 18px;
}
.breadcrumb a {
  color: var(--muted);
}
.related {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding-top: 20px;
}
.related p {
  margin: 0;
  font-size: 14px;
}

/* Tables inside articles — scroll on their own so the page body never scrolls sideways. */
.table-scroll {
  overflow-x: auto;
  margin: 0 0 18px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
th,
td {
  text-align: left;
  padding: 10px 14px 10px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--muted);
}
th {
  color: var(--text);
  font-weight: 650;
  white-space: nowrap;
}

/* Inline code / terminal lines */
code {
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--panel-2);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  color: var(--text);
}
pre {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  overflow-x: auto;
  margin: 0 0 18px;
}
pre code {
  background: none;
  padding: 0;
}

/* ---- Footer ---- */
.site-foot {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}
.site-foot .wrap {
  padding-top: 40px;
  padding-bottom: 40px;
}
.foot-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 24px;
  margin-bottom: 32px;
}
.foot-col h2 {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 12px;
}
.foot-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.foot-col li {
  margin-bottom: 9px;
}
.foot-col a {
  color: var(--muted);
}
.foot-col a:hover {
  color: var(--text);
}
.foot-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 22px;
}
.site-foot nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.site-foot a {
  color: var(--muted);
}
.site-foot a:hover {
  color: var(--text);
}

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .foot-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  /* Stack into one column with hairline separators between blocks (flat, per house language). */
  .features {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .feature {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    margin-top: 20px;
  }
  .feature:first-child {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
  }
  .hero {
    padding-top: 52px;
    padding-bottom: 36px;
  }
  .band {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

/* Narrow screens: the inline nav links collapse into the <details> menu (they are NOT hidden —
   a marketing site whose only phone affordance is a CTA loses its own guide traffic), and the
   homepage's in-page jump strip appears in their place. */
@media (max-width: 700px) {
  .site-head nav {
    display: none;
  }
  .menu {
    display: block;
  }
  .section-nav {
    display: block;
  }
  /* Only the page that RENDERS the strip needs to clear it: header (60) + strip (~54) + a little
     air. As a blanket `html` rule this over-scrolled every other page's anchors by ~63px (/faq's
     own jump links landed a whole heading below the heading you asked for). The global 76px above
     — header + air — is the right landing everywhere the strip is absent.
     `:has()` keeps the allowance tied to the strip actually being in the document instead of a
     hand-maintained class on <html>, so adding the strip to a second page needs no CSS edit. It is
     Baseline widely available (Chrome 105 / Safari 15.4 / Firefox 121) and strictly better
     supported than `text-wrap: balance`, which this file already relies on; where it is missing,
     the homepage simply falls back to the 76px landing the site shipped before the strip existed. */
  html:has(.section-nav) {
    scroll-padding-top: 124px;
  }
  /* Paired phone screenshots stay SIDE BY SIDE here rather than stacking. Stacking two 780×1688
     shots costs ~1500px of scroll per figure — three of those figures were most of what made this
     page a wall, and two phones next to each other is what the pair is a picture of anyway. */
  .figure {
    margin-top: 20px;
  }
  .figure.pair {
    gap: 12px;
  }
  .figure.phone {
    max-width: 260px;
  }
  /* A capture of a desktop browser is illegible once it is 350px wide, so a phone spends its
     height on the things a visitor can actually use. */
  .figure-wide {
    display: none;
  }
  .trust {
    font-size: 16px;
    margin-top: 22px;
  }
}

@media (max-width: 560px) {
  /* Sides only — the shorthand `padding: 0 16px` was zeroing .hero's vertical padding (both
     classes sit on the same element and this rule comes later in the file). */
  .wrap {
    padding-left: 20px;
    padding-right: 20px;
  }
  .hero {
    padding-top: 44px;
    padding-bottom: 32px;
  }
  .hero p.lead {
    font-size: 16px;
  }
  /* Two columns, not one: a single column turns 14 links into most of a phone screen of footer. */
  .foot-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
  }
}

/* ---- Auth completion pages — verify-email, reset-password, contact ---- */
.auth {
  display: flex;
  justify-content: center;
  padding-top: 72px;
  padding-bottom: 72px;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px 28px;
}
.auth-card h1 {
  font-size: 22px;
  margin: 0 0 10px;
}
.status-msg {
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}
#status-action {
  margin-top: 22px;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}
.auth-form label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}
.auth-form input,
.auth-form textarea {
  width: 100%;
  padding: 11px 13px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
}
.auth-form textarea {
  min-height: 120px;
  resize: vertical;
}
.auth-form input:focus,
.auth-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-error {
  color: var(--danger);
  font-size: 13px;
  min-height: 18px;
  margin: 0;
}
.btn.full {
  width: 100%;
  justify-content: center;
  cursor: pointer;
}

/* ---- Delete your account (delete-account.html) ----
   One card, four steps, one visible at a time — the script toggles `hidden`, which
   `[hidden] { display: none !important }` at the top of this file makes stick over the flex
   display below. */
.auth-card h2 {
  font-size: 18px;
  margin: 0;
}
.auth-card h3 {
  font-size: 15px;
  margin: 0;
}
.delete-step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 22px;
}
/* The step already spaces its children, so the form does not add a second gap on top. */
.delete-step .auth-form {
  margin-top: 2px;
}
/* Notes and confirmations that are written by the script: collapsed while empty so the layout does
   not carry a blank line waiting for a sentence that may never come. */
.auth-note {
  font-size: 13px;
}
.auth-note:empty {
  display: none;
}
.delete-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}
/* The export offer is boxed so it reads as the alternative to deleting rather than as one more
   paragraph about it — the last moment this file can be produced. */
.delete-export {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}
.btn.danger {
  background: var(--danger);
  border-color: var(--danger);
  color: var(--accent-ink);
}
.btn[disabled] {
  opacity: 0.6;
  cursor: default;
  filter: none;
}

/* ---- Public profile pages (/@handle — rendered by src/worker.js) ---- */
.profile-hero {
  text-align: left;
}
.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--panel-2);
  object-fit: cover;
  display: block;
  margin-bottom: 18px;
}
.profile-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 34px;
  font-weight: 650;
}
.profile-bio {
  white-space: pre-line;
}
.profile-joined {
  color: var(--muted);
  font-size: 14px;
  margin: 6px 0 0;
}
.profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  margin-top: 26px;
}
.profile-stat-value {
  font-size: 26px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.profile-stat-label {
  color: var(--muted);
  font-size: 13px;
}
.profile-lifts {
  flex-basis: 100%;
  margin-top: 10px;
  max-width: 420px;
}
.profile-lift {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.profile-lift-value {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Public program page (rezist.ai/p/{slug}) — flat, hairline-divided document preview. */
.inline-avatar {
  border-radius: 50%;
  vertical-align: middle;
  object-fit: cover;
}
.preview {
  margin-top: 22px;
  max-width: 560px;
}
.preview-name {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
}
.preview ul {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}
.preview li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.preview-sets {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---- API reference (Scalar) top bar ---- */
.docs-bar {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.docs-bar .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 52px;
  font-size: 14px;
}
.docs-bar .spacer {
  margin-left: auto;
}
