/* Nerd web pages, built to match the enterprise product on claude/release-next.
   Product console (shadcn new-york, inset sidebar) copied from
   ../nerd-platform/apps/web/src/styles/product-tokens.css and product-ui.css.
   Marketing site copied from ../nerd-platform/apps/web/src/styles/theme.css and
   apps/web/src/components/{SiteHeader,Footer,sections/Hero,sections/Problem}.tsx.
   Values are written out, not linked. No inline styles anywhere (CSP). */

/* Fonts copied from ../nerd-platform/apps/web/src/vendor-fonts/fonts.css (self-hosted, OFL). */
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/static/fonts/Schibsted_Grotesk_variable.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/static/fonts/Fraunces_variable.woff2") format("woff2");
}
/* Geist Mono: only for URLs and connector addresses. */
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/static/fonts/Geist_Mono_variable.woff2") format("woff2");
}

/* ===================== Tokens ===================== */

:root {
  color-scheme: light;
  --font-sans: "Schibsted Grotesk", -apple-system, system-ui, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Product (shadcn) tokens, light. product-tokens.css :root[data-surface="product"] */
  --radius: 0.625rem;
  --background: oklch(1 0 0);
  --foreground: oklch(0.202 0.031 316);
  --card: oklch(1 0 0);
  --popover: oklch(1 0 0);
  --primary: oklch(0.202 0.031 316);
  --primary-foreground: oklch(0.985 0.002 316);
  --secondary: oklch(0.968 0.005 316);
  --muted: oklch(0.968 0.005 316);
  --muted-foreground: oklch(0.512 0.031 308);
  --accent: oklch(0.968 0.005 316);
  --destructive: oklch(0.528 0.2 18.2);
  --border: oklch(0.93 0.006 316);
  --input: oklch(0.93 0.006 316);
  --ring: oklch(0.544 0.211 272.3);
  --brand: oklch(0.544 0.211 272.3);
  --brand-ink: oklch(0.458 0.2 271.3);
  --success: oklch(0.478 0.098 164.9);
  --success-fill: oklch(0.955 0.04 165);
  --warning: oklch(0.516 0.113 63.6);
  --warning-fill: oklch(0.962 0.05 85);
  --info: oklch(0.47 0.13 258);
  --info-fill: oklch(0.955 0.028 258);
  --danger-fill: oklch(0.955 0.03 20);
  --sidebar: oklch(0.988 0.003 316);
  --sidebar-accent: oklch(0.96 0.006 316);
  --cta: #4b5be8;
  --cta-hover: #4352d1;
  --cta-on: #ffffff;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);

  /* Brand library: fruit and each AI's own color. */
  --blueberry: #4b5be8;
  --plum: #8b4fe0;
  --lime: #2fb653;
  --mango: #ff8a1f;
  --watermelon: #ff4d6d;
  --host-claude: #d97757;
  --host-chatgpt: #10a37f;

  /* Marketing tokens. theme.css :root (the marketing site is light only). */
  --fig: #1c1220;
  --ink: #1c1220;
  --ink-2: #55495c;
  --ink-muted: #6f6678;
  --ink-rgb: 28 18 32;
  --line: rgb(var(--ink-rgb) / 0.085);
  --line-2: rgb(var(--ink-rgb) / 0.16);
  --mk-accent: #4b5be8;
  --accent-soft: #e9ebff;
  --accent-ink: #3542c4;
  --mango-soft: #fff0df; --mango-ink: #b35b00;
  --watermelon-soft: #ffe7eb; --watermelon-ink: #c4183c;
  --blueberry-soft: #e9ebff; --blueberry-ink: #3542c4;
  --lime-soft: #e4f8e9; --lime-ink: #17803d;
  --plum-soft: #f0e9fe; --plum-ink: #6b2fc0;
  --mk-hero: clamp(42px, 6vw, 82px);
}

/* Product dark, from product-tokens.css .dark. Follows the system unless the viewer picked a theme.
   Only the console (body.app) goes dark; the marketing site stays light like enterprise. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .app {
    color-scheme: dark;
    --background: oklch(0.145 0 0);
    --foreground: oklch(0.985 0 0);
    --card: oklch(0.205 0 0);
    --popover: oklch(0.205 0 0);
    --primary: oklch(0.985 0 0);
    --primary-foreground: oklch(0.205 0 0);
    --secondary: oklch(0.269 0 0);
    --muted: oklch(0.269 0 0);
    --muted-foreground: oklch(0.708 0 0);
    --accent: oklch(0.269 0 0);
    --destructive: oklch(0.683 0.171 19);
    --border: oklch(1 0 0 / 10%);
    --input: oklch(1 0 0 / 15%);
    --ring: oklch(0.72 0.15 272);
    --brand: oklch(0.72 0.15 272);
    --brand-ink: oklch(0.82 0.12 272);
    --success: oklch(0.845 0.106 170.2);
    --success-fill: oklch(0.3 0.055 165);
    --warning: oklch(0.855 0.092 79);
    --warning-fill: oklch(0.32 0.055 75);
    --info: oklch(0.82 0.08 258);
    --info-fill: oklch(0.3 0.055 258);
    --danger-fill: oklch(0.28 0.07 20);
    --sidebar: oklch(0.205 0 0);
    --sidebar-accent: oklch(0.269 0 0);
    --blueberry: #7d8af5;
    --blueberry-soft: oklch(0.3 0.06 272);
    --host-claude: #e58a6c;
    --cta-on: #ffffff;
  }
}
:root[data-theme="dark"] .app {
  color-scheme: dark;
  --background: oklch(0.145 0 0);
  --foreground: oklch(0.985 0 0);
  --card: oklch(0.205 0 0);
  --popover: oklch(0.205 0 0);
  --primary: oklch(0.985 0 0);
  --primary-foreground: oklch(0.205 0 0);
  --secondary: oklch(0.269 0 0);
  --muted: oklch(0.269 0 0);
  --muted-foreground: oklch(0.708 0 0);
  --accent: oklch(0.269 0 0);
  --destructive: oklch(0.683 0.171 19);
  --border: oklch(1 0 0 / 10%);
  --input: oklch(1 0 0 / 15%);
  --ring: oklch(0.72 0.15 272);
  --brand: oklch(0.72 0.15 272);
  --brand-ink: oklch(0.82 0.12 272);
  --success: oklch(0.845 0.106 170.2);
  --success-fill: oklch(0.3 0.055 165);
  --warning: oklch(0.855 0.092 79);
  --warning-fill: oklch(0.32 0.055 75);
  --info: oklch(0.82 0.08 258);
  --info-fill: oklch(0.3 0.055 258);
  --danger-fill: oklch(0.28 0.07 20);
  --sidebar: oklch(0.205 0 0);
  --sidebar-accent: oklch(0.269 0 0);
  --blueberry: #7d8af5;
  --blueberry-soft: oklch(0.3 0.06 272);
  --host-claude: #e58a6c;
}

/* ===================== Base ===================== */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: clip; }
html { scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-synthesis-weight: none;
  font-optical-sizing: auto;
}
body.app { background: var(--sidebar); }
::selection { background: var(--blueberry-soft); }
img, svg { display: block; }
.icon { flex: none; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; }
a { color: inherit; }
p a, td a, .muted a, .fine a {
  color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: color-mix(in oklch, currentColor 40%, transparent);
}
p a:hover, td a:hover { text-decoration-color: currentColor; }
button, input, select, textarea { font: inherit; color: inherit; }
code, .mono { font-family: var(--font-mono); font-size: 0.92em; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 8px 12px; border-radius: 8px; background: var(--primary); color: var(--primary-foreground); font-weight: 500; text-decoration: none; }
.skip:focus { top: 12px; }
.muted { color: var(--muted-foreground); }
.small { font-size: 13px; }
.fine { font-size: 12px; color: var(--muted-foreground); }
.inline { display: inline; }
.grow { flex: 1; min-width: 0; }
[hidden] { display: none !important; }

/* ===================== Buttons (shadcn new-york, product sizes) ===================== */

.button, .icon-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 16px; border-radius: 8px;
  font-size: 14px; font-weight: 500; line-height: 1; white-space: nowrap; text-decoration: none;
  cursor: pointer; border: 1px solid transparent;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.button .icon, .icon-button .icon { width: 16px; height: 16px; }
/* Default and primary: the blueberry product CTA (personal-cta). */
.button {
  background: var(--cta); color: var(--cta-on);
  border-color: color-mix(in srgb, #fff 25%, var(--cta));
  box-shadow: var(--shadow-xs);
}
.button:hover { background: var(--cta-hover); }
.button.ghost, .icon-button.outline {
  background: var(--background); color: var(--foreground);
  border-color: var(--border); box-shadow: var(--shadow-xs);
}
.button.ghost:hover, .icon-button.outline:hover { background: var(--accent); }
.button.quiet, .icon-button {
  background: transparent; color: var(--foreground); border-color: transparent; box-shadow: none;
}
.button.quiet:hover, .icon-button:hover { background: var(--accent); }
.button.secondary { background: var(--secondary); color: var(--foreground); border-color: transparent; box-shadow: none; }
.button.danger { background: var(--destructive); color: #fff; border-color: transparent; }
.button.danger:hover { background: color-mix(in oklch, var(--destructive) 88%, #000); }
.button.small { height: 32px; padding: 0 12px; gap: 6px; }
.button.big { height: 40px; padding: 0 24px; }
.icon-button { width: 32px; height: 32px; padding: 0; }
.button:focus-visible, .icon-button:focus-visible {
  outline: none; border-color: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--ring) 50%, transparent);
}
.button.ghost[aria-pressed="true"], .button.quiet[aria-pressed="true"] {
  background: color-mix(in oklch, var(--brand) 12%, var(--background)); color: var(--brand-ink);
  border-color: color-mix(in oklch, var(--brand) 30%, transparent);
}
button.link {
  border: 0; background: none; padding: 0; cursor: pointer;
  color: var(--brand-ink); font-size: 14px; font-weight: 500;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in oklch, currentColor 40%, transparent);
}
button.link:hover { text-decoration-color: currentColor; }
.textlink { display: inline-flex; align-items: center; gap: 4px; color: var(--brand-ink); font-weight: 500; font-size: 14px; text-decoration: none; }
.textlink:hover { text-decoration: underline; text-underline-offset: 3px; }
.textlink .icon { width: 14px; height: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ===================== Badges, chips, tags ===================== */

.badge {
  display: inline-flex; align-items: center; gap: 4px; width: fit-content; white-space: nowrap;
  padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--secondary); color: var(--foreground);
  font-size: 12px; font-weight: 500; line-height: 16px;
}
.badge .icon { width: 12px; height: 12px; }
.badge.ok, .badge.tested { background: var(--success-fill); color: var(--success); border-color: color-mix(in oklch, var(--success) 25%, transparent); }
.badge.warn { background: var(--warning-fill); color: var(--warning); border-color: color-mix(in oklch, var(--warning) 25%, transparent); }
.badge.info { background: var(--info-fill); color: var(--info); border-color: color-mix(in oklch, var(--info) 25%, transparent); }
.badge.danger { background: var(--danger-fill); color: var(--destructive); border-color: color-mix(in oklch, var(--destructive) 25%, transparent); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.badges.centered { justify-content: center; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--background);
  font-size: 13px; font-weight: 500; text-decoration: none; color: var(--foreground); cursor: pointer;
}
.chip:hover { background: var(--accent); }
.chip .icon { width: 14px; height: 14px; color: var(--muted-foreground); }
.area-tag { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 999px; background: var(--tone, var(--muted-foreground)); flex: none; }
.f-blueberry { --tone: var(--blueberry); --tone-soft: var(--blueberry-soft); --tone-ink: var(--blueberry-ink); }
.f-plum { --tone: var(--plum); --tone-soft: var(--plum-soft); --tone-ink: var(--plum-ink); }
.f-lime { --tone: var(--lime); --tone-soft: var(--lime-soft); --tone-ink: var(--lime-ink); }
.f-mango { --tone: var(--mango); --tone-soft: var(--mango-soft); --tone-ink: var(--mango-ink); }
.f-watermelon { --tone: var(--watermelon); --tone-soft: var(--watermelon-soft); --tone-ink: var(--watermelon-ink); }

/* Each AI's chip: its own color as a dot. */
.host { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.host::before { content: ""; width: 10px; height: 10px; border-radius: 999px; background: var(--host, var(--muted-foreground)); flex: none; }
.host.claude { --host: var(--host-claude); }
.host.chatgpt { --host: var(--host-chatgpt); }
.host.grok { --host: var(--foreground); }
.host.dots { --host: var(--host-chatgpt); }
.host.muse { --host: var(--plum); }

/* Avatars and monogram tiles: radius 10, like the workspace and user buttons. */
.avatar, .tile-mono {
  display: inline-grid; place-items: center; flex: none; overflow: hidden;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--tone-soft, var(--muted)); color: var(--tone-ink, var(--foreground));
  font-weight: 600; font-size: 14px;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 32px; height: 32px; font-size: 13px; }
.avatar.md, .nerd-id .tile-mono { width: 56px; height: 56px; border-radius: 14px; font-size: 22px; }

/* ===================== Console shell (inset sidebar) ===================== */

.side-toggle { position: fixed; top: 0; left: 0; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.shell { display: flex; min-height: 100svh; background: var(--sidebar); }
.side {
  width: 240px; flex: none; position: sticky; top: 0; height: 100svh;
  display: flex; flex-direction: column; padding: 8px;
  background: var(--sidebar); color: var(--foreground);
  transition: margin-left 0.2s ease;
}
.side-scroll { flex: 1; min-height: 0; overflow-y: auto; margin: 0 -8px; padding: 0 8px; }
.ws {
  display: flex; align-items: center; gap: 8px; height: 48px; padding: 8px; border-radius: 8px;
  text-decoration: none; color: var(--foreground);
}
.ws:hover { background: var(--sidebar-accent); }
.ws-mark {
  position: relative; width: 32px; height: 32px; border-radius: 10px; flex: none;
  background: var(--blueberry);
}
.ws-mark::before {
  content: ""; position: absolute; inset: 5px; background: #fff;
  -webkit-mask: url("/static/mascot/nerd-mention-mark.png") center / contain no-repeat;
  mask: url("/static/mascot/nerd-mention-mark.png") center / contain no-repeat;
}
.ws-text { display: grid; min-width: 0; line-height: 1.25; }
.ws-name { font-size: 14px; font-weight: 500; }
.ws-text small { font-size: 12px; color: var(--muted-foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-group {
  padding: 16px 8px 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: color-mix(in oklch, var(--foreground) 75%, transparent);
}
.side-nav a, .side-row {
  display: flex; align-items: center; gap: 8px; height: 36px; padding: 8px 8px 8px 14px; border-radius: 8px;
  font-size: 14px; color: var(--foreground); text-decoration: none; white-space: nowrap;
}
.side-nav a .icon, .side-row .icon { width: 20px; height: 20px; color: var(--muted-foreground); }
.side-nav a:hover, .side-row:hover { background: var(--sidebar-accent); }
.side-nav a:hover .icon, .side-row:hover .icon, .side-nav a[aria-current="page"] .icon { color: inherit; }
.side-nav a[aria-current="page"] {
  background: color-mix(in oklch, var(--brand) 12%, transparent);
  color: var(--brand-ink); font-weight: 500;
}
.side-nav a strong { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
.side-foot { display: flex; flex-direction: column; gap: 4px; padding-top: 8px; }
.theme-switch {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; width: 192px; height: 36px; padding: 3px; margin: 2px 8px 4px;
  border-radius: 8px; background: var(--muted);
}
.theme-switch button {
  display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; cursor: pointer;
  color: var(--muted-foreground);
}
.theme-switch button .icon { width: 16px; height: 16px; }
.theme-switch button[aria-pressed="true"] { background: var(--background); color: var(--foreground); box-shadow: var(--shadow-sm); }
.user-menu { position: relative; }
.user-menu > summary {
  list-style: none; display: flex; align-items: center; gap: 8px; height: 48px; padding: 8px; border-radius: 8px; cursor: pointer;
}
.user-menu > summary::-webkit-details-marker { display: none; }
.user-menu > summary:hover, .user-menu[open] > summary { background: var(--sidebar-accent); }
.user-menu .who { display: grid; min-width: 0; flex: 1; line-height: 1.25; }
.user-menu .who strong { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-menu .who small { font-size: 12px; color: var(--muted-foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-menu > summary > .icon { width: 16px; height: 16px; color: var(--muted-foreground); }
.menu {
  position: absolute; left: 0; right: 0; bottom: calc(100% + 4px); z-index: 30;
  display: flex; flex-direction: column; padding: 4px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--popover); box-shadow: var(--shadow-md);
}
.menu a, .menu button {
  display: flex; align-items: center; gap: 8px; width: 100%; height: 32px; padding: 0 8px; border: 0; border-radius: 6px;
  background: none; cursor: pointer; text-decoration: none; font-size: 14px; color: var(--foreground); text-align: left;
}
.menu a:hover, .menu button:hover { background: var(--accent); }
.menu .icon { width: 16px; height: 16px; color: var(--muted-foreground); }
.menu form { margin: 0; }
.menu hr { border: 0; border-top: 1px solid var(--border); margin: 4px -4px; }

.shell-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bar { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 24px; flex: none; }
.trigger {
  display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: -4px; border-radius: 8px; cursor: pointer;
  color: var(--foreground);
}
.trigger:hover { background: var(--sidebar-accent); }
.trigger .icon { width: 16px; height: 16px; }
.side-toggle:focus-visible ~ .shell .trigger { outline: 2px solid var(--ring); outline-offset: 2px; }
.bar-sep { width: 1px; height: 16px; background: var(--border); margin: 0 4px; flex: none; }
.bar-search {
  position: relative; display: flex; align-items: center; gap: 8px; margin: 0;
  width: min(32rem, 48vw); height: 32px; padding: 0 6px 0 10px; border-radius: 8px;
  background: var(--secondary); color: var(--muted-foreground);
}
.bar-search .icon { width: 16px; height: 16px; }
.bar-search input {
  flex: 1; min-width: 0; height: 100%; border: 0; padding: 0; background: transparent; outline: none; font-size: 14px; color: var(--foreground);
}
.bar-search input::placeholder { color: var(--muted-foreground); }
.bar-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.bar-search:focus-within { box-shadow: 0 0 0 3px color-mix(in oklch, var(--ring) 40%, transparent); }
kbd {
  display: inline-grid; place-items: center; height: 20px; min-width: 20px; padding: 0 5px; border-radius: 6px;
  background: var(--muted); color: var(--muted-foreground); font: 500 12px/1 var(--font-sans);
}
.bar-search kbd { background: var(--background); }
.bar-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.bar-end .icon-button .icon { width: 20px; height: 20px; }

.inset {
  flex: 1; display: flex; flex-direction: column; min-width: 0;
  margin: 0 8px 8px 0; border-radius: 14px; background: var(--background); box-shadow: var(--shadow-sm);
}
.c-main { width: 100%; max-width: 1600px; margin: 0 auto; padding: 32px; display: flex; flex-direction: column; gap: 24px; flex: 1; }
.c-foot { padding: 0 32px 24px; text-align: center; font-size: 12px; color: var(--muted-foreground); }
.scrim { display: none; }

/* Collapsed on desktop when the trigger is used. */
@media (min-width: 768px) {
  .side-toggle:checked ~ .shell .side { margin-left: -240px; }
  .side-toggle:checked ~ .shell .inset { margin-left: 8px; }
}
@media (prefers-reduced-motion: reduce) { .side { transition: none; } }

/* Mobile: the sidebar becomes a drawer over the page. */
@media (max-width: 767px) {
  .side {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 50; width: 280px; height: 100svh;
    transform: translateX(-100%); transition: transform 0.2s ease; box-shadow: var(--shadow-md);
  }
  .side-toggle:checked ~ .shell .side { transform: none; }
  .side-toggle:checked ~ .shell .scrim { display: block; position: fixed; inset: 0; z-index: 40; background: rgb(0 0 0 / 0.4); }
  .bar { padding: 0 12px; }
  .bar-search { width: auto; flex: 1; }
  .bar-search kbd { display: none; }
  .bar-end .button span { display: none; }
  .bar-end .button { width: 32px; padding: 0; }
  .inset { margin: 0; border-radius: 14px 14px 0 0; }
  .c-main { padding: 20px 16px; gap: 20px; }
  .c-foot { padding: 0 16px 20px; }
}

/* ===================== Console content ===================== */

.c-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; }
.c-head h1 { font-size: 24px; font-weight: 600; letter-spacing: -0.6px; line-height: 32px; }
.c-head p { margin-top: 4px; font-size: 14px; color: var(--muted-foreground); max-width: 72ch; }
.c-head p.lede { font-size: 14px; }
.c-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nerd-id { display: flex; gap: 16px; align-items: flex-start; min-width: 0; }
.nerd-id .badges { margin-top: 10px; }
.subbed {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 8px;
  background: var(--success-fill); color: var(--success); font-weight: 500; text-decoration: none;
  border: 1px solid color-mix(in oklch, var(--success) 25%, transparent);
}

.c-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1200px) { .c-grid { grid-template-columns: minmax(0, 1fr) 360px; } }
.c-col, .side-col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.c-section { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.c-section > h2, .c-section-head h2 { font-size: 16px; font-weight: 600; line-height: 1.25; }
.c-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.c-section > p.muted { margin-top: -6px; }

.c-card {
  background: var(--card); color: var(--foreground);
  border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow-sm); min-width: 0;
}
.c-pad { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.c-pad > h2 { font-size: 16px; font-weight: 600; line-height: 1.2; display: flex; align-items: center; gap: 8px; }
.c-pad > h2 .icon { width: 16px; height: 16px; color: var(--muted-foreground); }
.c-pad > h2 + p.muted { margin-top: -4px; }
.c-pad h3 { font-size: 14px; font-weight: 600; margin-top: 8px; }
.c-pad ul:not([class]) { padding-left: 20px; display: grid; gap: 4px; }
.c-pad .lede { font-size: 15px; line-height: 1.55; }
.group-foot { font-size: 13px; color: var(--muted-foreground); }

.c-stats { list-style: none; display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.c-stats li {
  display: flex; flex-direction: column; gap: 6px; padding: 20px 24px;
  background: var(--card); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow-sm);
}
.c-stats li > span { font-size: 14px; color: var(--muted-foreground); }
.c-stats strong { font-size: 24px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; letter-spacing: -0.5px; }
.c-stats.inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.c-stats.inner li { box-shadow: none; padding: 12px 16px; }
@media (max-width: 900px) { .c-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Item rows (shadcn Item, outline variant). */
.c-rows { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.c-row {
  display: flex; align-items: center; gap: 16px; padding: 16px;
  border: 1px solid var(--border); border-radius: 8px; background: var(--card); font-size: 14px;
}
.c-row-title { font-size: 14px; font-weight: 500; text-decoration: none; color: var(--foreground); }
a.c-row-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.c-row .muted.small { margin-top: 2px; }
.c-row-sub { margin-top: 2px; color: var(--muted-foreground); font-size: 14px; }
.c-row-end { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) {
  .c-row { flex-wrap: wrap; align-items: flex-start; }
  .c-row-end { width: 100%; justify-content: flex-start; padding-left: 52px; }
}

/* Tables. */
.c-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.c-table th, .c-table td { padding: 8px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--border); }
.c-table thead th { height: 40px; font-weight: 500; color: var(--foreground); white-space: nowrap; }
.c-table tbody tr:hover { background: color-mix(in oklch, var(--muted) 50%, transparent); }
.c-table tbody tr:last-child td, .c-table tbody tr:last-child th { border-bottom: 0; }
.c-table th:first-child, .c-table td:first-child { padding-left: 16px; }
.c-table th:last-child, .c-table td:last-child { padding-right: 16px; }
.c-table td.end, .c-table th.end { text-align: right; }
.c-table .c-group th { background: color-mix(in oklch, var(--muted) 50%, transparent); font-weight: 500; }
.c-card > .c-table, .c-card > .table-scroll { border-radius: 8px; overflow: hidden; }
.area-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: none; color: var(--foreground); }
.area-link:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) {
  .c-table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .c-table.stack tr { display: block; padding: 12px 16px; border-bottom: 1px solid var(--border); }
  .c-table.stack tbody:last-child tr:last-child { border-bottom: 0; }
  .c-table.stack td, .c-table.stack th { display: flex; gap: 12px; padding: 4px 0 !important; border: 0; text-align: left; }
  .c-table.stack td[data-label]::before { content: attr(data-label); flex: 0 0 104px; color: var(--muted-foreground); font-size: 13px; }
  .c-table.stack td.end { justify-content: flex-start; }
}

/* Tabs (pill list). */
.c-tabs {
  display: inline-flex; align-items: center; width: fit-content; max-width: 100%; overflow-x: auto;
  height: 36px; padding: 3px; border-radius: 8px; background: var(--muted); color: var(--muted-foreground);
}
.c-tabs a {
  display: inline-flex; align-items: center; height: 100%; padding: 0 12px; border-radius: 6px;
  font-size: 14px; font-weight: 500; text-decoration: none; color: inherit; white-space: nowrap;
}
.c-tabs a:hover { color: var(--foreground); }
.c-tabs a[aria-current="page"] { background: var(--background); color: var(--foreground); box-shadow: var(--shadow-sm); }

/* Inputs and search. */
.search { display: flex; gap: 8px; }
.search input, .field {
  flex: 1; min-width: 0; height: 36px; padding: 0 12px; border-radius: 8px;
  border: 1px solid var(--input); background: transparent; box-shadow: var(--shadow-xs); font-size: 14px;
}
.search input:focus, .field:focus { outline: none; border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in oklch, var(--ring) 40%, transparent); }
.search-note { margin-top: -12px; }

/* Empty state (shadcn Empty). */
.empty {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: 32px 24px; border: 1px dashed var(--border); border-radius: 8px; color: var(--muted-foreground);
}
.empty strong { color: var(--foreground); font-weight: 600; }
.empty .actions { margin-top: 8px; justify-content: center; }

/* Prompt boxes to paste into your AI. */
.c-try ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.c-try li {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 8px 8px 12px; border-radius: 8px; background: color-mix(in oklch, var(--muted) 30%, transparent);
  border: 1px solid var(--border); font-size: 14px;
}

/* Copyable address. */
.copy { display: flex; align-items: center; gap: 8px; }
.copy code {
  flex: 1; min-width: 0; display: block; height: 36px; line-height: 34px; padding: 0 12px; border-radius: 8px;
  border: 1px solid var(--border); background: color-mix(in oklch, var(--muted) 30%, transparent);
  font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; user-select: all;
}
.copy .button { flex: none; }

/* Life area segments on Home. */
.segment { overflow: hidden; }
.segment-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 16px 12px; }
.segment-head h3 { font-size: 14px; font-weight: 600; }
.segment-nerds { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; }
.segment-nerds a {
  display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 6px;
  background: var(--secondary); font-size: 13px; font-weight: 500; text-decoration: none;
}
.segment-nerds a:hover { background: var(--sidebar-accent); text-decoration: underline; }
.segment > .c-table { border-top: 1px solid var(--border); }
.segment-empty { padding: 0 16px 16px; }
.add-areas { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.add-areas > .muted { margin-right: 4px; }
.add-areas form { margin: 0; }

/* Nerd Studio steps. */
.c-steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.c-steps li { counter-increment: step; display: flex; flex-direction: column; gap: 6px; padding: 20px 24px; }
.c-steps li + li { border-left: 1px solid var(--border); }
.c-steps li::before {
  content: counter(step); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 999px;
  background: var(--muted); font-size: 12px; font-weight: 600; margin-bottom: 4px;
}
.c-steps h2 { font-size: 14px; font-weight: 600; }
.c-steps p { color: var(--muted-foreground); font-size: 14px; flex: 1; }
.c-steps .say {
  display: block; margin-top: 6px; padding: 8px 12px; border-radius: 8px; font-size: 13px;
  background: color-mix(in oklch, var(--muted) 30%, transparent); border: 1px solid var(--border);
}
@media (max-width: 1000px) {
  .c-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-steps li:nth-child(3) { border-left: 0; }
  .c-steps li:nth-child(n + 3) { border-top: 1px solid var(--border); }
}
@media (max-width: 560px) {
  .c-steps { grid-template-columns: 1fr; }
  .c-steps li + li { border-left: 0; border-top: 1px solid var(--border); }
}

/* Process: the creator's order of work. */
.proc { list-style: none; counter-reset: proc; display: flex; flex-direction: column; gap: 8px; }
.proc li {
  counter-increment: proc; display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 12px; row-gap: 4px; align-items: center;
  padding: 12px 16px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px;
}
.proc li::before {
  content: counter(proc); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 999px;
  background: var(--muted); font-size: 12px; font-weight: 600;
}
.proc li > * { grid-column: 2; }
.proc li > :first-child { grid-row: 1; }

.rate { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rate form { margin: 0; }
.rate > .muted { margin-right: 4px; }

.flash {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-radius: 8px; font-size: 14px; font-weight: 500;
  background: var(--success-fill); color: var(--success); border: 1px solid color-mix(in oklch, var(--success) 25%, transparent);
}
.danger-card { border-color: color-mix(in oklch, var(--destructive) 30%, var(--border)); }
.danger-card h2 { color: var(--destructive); }
.danger-card p { color: var(--muted-foreground); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.check input { width: 16px; height: 16px; accent-color: var(--destructive); }
.crumbs { font-size: 13px; color: var(--muted-foreground); }
.crumbs a { color: var(--muted-foreground); text-decoration: none; }
.crumbs a:hover { color: var(--foreground); text-decoration: underline; }

/* ===================== Marketing site ===================== */

.mk { background: #fff; color: var(--ink); --foreground: var(--ink); }
.t-display {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.015em; line-height: 1;
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 24; color: var(--ink);
}

/* Logo: the @ mark and the "nerd" wordmark. Logo.tsx */
.logo { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); }
.logo-mark {
  display: block; width: 29px; height: 29px; background: currentColor; transform: translateY(1px);
  -webkit-mask: url("/static/mascot/nerd-mention-mark.png") center / contain no-repeat;
  mask: url("/static/mascot/nerd-mention-mark.png") center / contain no-repeat;
}
.logo-word { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.015em; line-height: 1; font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 24; }

/* Marketing buttons. theme.css .btn-* */
.btn-ink, .btn-accent, .btn-tint {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: 999px; font-family: var(--font-sans); font-weight: 600; letter-spacing: -0.01em;
  cursor: pointer; border: 1px solid transparent; text-decoration: none; white-space: nowrap; line-height: 1;
  height: 44px; padding: 0 24px; font-size: 15px;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn-ink { background: var(--fig); color: #fff; box-shadow: 0 1px 2px rgba(20, 24, 31, 0.12); }
.btn-ink:hover { background: color-mix(in oklab, var(--fig) 88%, #000); }
.btn-accent { background: var(--mk-accent); color: #fff; box-shadow: 0 1px 2px rgba(20, 24, 31, 0.12); }
.btn-accent:hover { background: color-mix(in oklab, var(--mk-accent) 88%, #000); }
.btn-tint { background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn-tint:hover { background: var(--accent-soft); border-color: var(--mk-accent); color: var(--accent-ink); }
.btn-ink:active, .btn-accent:active, .btn-tint:active { filter: brightness(0.97); }
.btn-ink:focus-visible, .btn-accent:focus-visible, .btn-tint:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-soft), 0 0 0 1px var(--mk-accent); }
.btn-ink.sm, .btn-accent.sm, .btn-tint.sm { height: 36px; padding: 0 20px; font-size: 14px; }
.btn-ink.lg, .btn-accent.lg, .btn-tint.lg { height: 48px; padding: 0 28px; font-size: 16px; }
.btn-tint.on-art { background: rgba(255, 255, 255, 0.72); border-color: rgba(255, 255, 255, 0.34); color: var(--ink); }
.btn-tint.on-art:hover { background: rgba(255, 255, 255, 0.92); color: var(--ink); border-color: rgba(255, 255, 255, 0.6); }

/* Site header. SiteHeader.tsx */
.site-header {
  position: sticky; top: 0; z-index: 40; background: rgb(255 255 255 / 0.92); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
}
.site-header.over {
  position: absolute; left: 0; right: 0; background: transparent; border-bottom-color: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none; transition: background-color 0.2s, border-color 0.2s;
}
.site-header.over:hover, .site-header.over:focus-within { background: #fff; border-bottom-color: var(--line); }
.site-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1280px; margin: 0 auto; padding: 16px 24px 14px; min-height: 42px; }
.site-right { display: flex; align-items: center; gap: 10px; }
.site-nav { display: flex; align-items: center; gap: 2px; margin-right: 6px; }
.nav-link {
  padding: 10px; border-radius: 999px; font-size: 14.5px; font-weight: 500; letter-spacing: -0.01em; line-height: 1;
  color: var(--ink); text-decoration: none;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--accent-ink); background: var(--accent-soft); }
.site-header.over .nav-cta { color: var(--ink); background: rgba(255, 255, 255, 0.72); border-color: rgba(255, 255, 255, 0.34); box-shadow: none; }
.site-header.over .nav-cta:hover { background: rgba(255, 255, 255, 0.88); }
.site-header.over:hover .nav-cta, .site-header.over:focus-within .nav-cta { background: var(--mk-accent); color: #fff; border-color: transparent; }
.mk-menu { display: none; position: relative; }
.mk-menu > summary {
  list-style: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px;
  background: var(--fig); color: #fff; cursor: pointer;
}
.mk-menu > summary::-webkit-details-marker { display: none; }
.mk-menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); width: min(280px, calc(100vw - 32px)); z-index: 50;
  display: flex; flex-direction: column; padding: 8px; border-radius: 16px; background: #fff;
  border: 1px solid var(--line); box-shadow: 0 18px 48px rgb(var(--ink-rgb) / 0.14);
}
.mk-menu-panel a { padding: 12px; border-radius: 10px; font-size: 16px; font-weight: 500; color: var(--ink); text-decoration: none; }
.mk-menu-panel a:hover { background: var(--accent-soft); color: var(--accent-ink); }
.mk-menu-panel .btn-ink { margin-top: 6px; color: #fff; }
.mk-menu-panel .btn-ink:hover { background: color-mix(in oklab, var(--fig) 88%, #000); color: #fff; }
@media (max-width: 860px) {
  .site-nav, .site-right > .nav-cta { display: none; }
  .mk-menu { display: block; }
  .site-in { padding: 12px 16px; }
}

/* Early access pill. EarlyAccessPill.tsx */
.ea-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: color-mix(in oklab, var(--lime-soft) 84%, #fff);
  border: 1px solid color-mix(in oklab, #34c759 34%, var(--line));
  color: var(--lime-ink); font-size: 12.5px; font-weight: 600; box-shadow: 0 12px 32px rgba(28, 18, 32, 0.07);
}
.ea-dot { width: 7px; height: 7px; border-radius: 999px; background: #22b07e; box-shadow: 0 0 0 3px rgb(34 176 126 / 0.2); animation: ea-pulse 2.8s ease-in-out infinite; }
@keyframes ea-pulse { 50% { box-shadow: 0 0 0 5px rgb(34 176 126 / 0.08); } }

/* Pill label above a section head. PillLabel.tsx */
.pill-label {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 13px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink); border: 1px solid rgb(75 91 232 / 0.1);
  font-size: 12.5px; font-weight: 650;
}
.sec-head { max-width: 720px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.sec-head h2, .sec-head h1 {
  margin-top: 20px; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.025em; line-height: 1.05;
  font-size: clamp(30px, 3.6vw, 44px); color: var(--ink); font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 24;
  text-wrap: balance;
}
.sec-head p { margin-top: 16px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: var(--ink-2); max-width: 56ch; }

.mk-section { position: relative; padding: clamp(80px, 9vw, 112px) 24px; }
.mk-in { max-width: 1180px; margin: 0 auto; }
.mk-section.tinted {
  border-top: 1px solid rgb(var(--ink-rgb) / 0.06);
  background:
    radial-gradient(60% 50% at 12% 0%, rgb(75 91 232 / 0.07), transparent 70%),
    radial-gradient(50% 50% at 92% 100%, rgb(52 199 89 / 0.07), transparent 70%),
    linear-gradient(180deg, #fff, #fbfafc);
}
.mk-caption { margin-top: 20px; text-align: center; font-size: 13px; color: var(--ink-muted); }

/* Hero. sections/Hero.tsx */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(900px, 100vh); padding: clamp(116px, 13vh, 156px) 24px clamp(34px, 5vw, 66px);
  display: flex; flex-direction: column; align-items: center;
  background:
    radial-gradient(40% 40% at 7% 78%, rgb(255 77 109 / 0.18), transparent 70%),
    radial-gradient(40% 40% at 92% 18%, rgb(75 91 232 / 0.14), transparent 70%),
    radial-gradient(40% 40% at 78% 88%, rgb(52 199 89 / 0.15), transparent 70%),
    #fff5e8;
}
.hero-art { position: absolute; inset: 0; z-index: -1; }
.hero-art img { position: absolute; top: 0; left: 0; width: 112%; max-width: none; height: 100%; object-fit: cover; object-position: left center; filter: saturate(1.08) contrast(1.01); }
.hero-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgb(255 245 232 / 0.88) 0%, rgb(255 245 232 / 0.66) 32%, rgb(255 245 232 / 0.1) 60%, rgb(255 245 232 / 0) 100%);
}
.hero-copy { width: 100%; min-width: 0; max-width: 980px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-copy .ea-pill { margin-bottom: 22px; }
.hero h1 { font-size: var(--mk-hero); max-width: 24ch; margin-bottom: 20px; text-wrap: balance; }
.hero-lede { font-size: clamp(18px, 1.55vw, 22px); line-height: 1.48; color: var(--ink-2); max-width: 42ch; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-work { width: min(100%, 560px); min-width: 0; margin-top: clamp(20px, 2.8vw, 30px); padding-top: 12px; text-align: center; }
.hero-work > p { font-size: 13.5px; font-weight: 600; color: rgb(var(--ink-rgb) / 0.62); margin-bottom: 12px; }
.marquee { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 34px; width: max-content; animation: marquee 44s linear infinite; }
.marquee ul { list-style: none; display: flex; gap: 34px; }
.marquee li { display: flex; align-items: center; gap: 8px; height: 24px; font-size: 13px; font-weight: 600; color: rgb(var(--ink-rgb) / 0.52); white-space: nowrap; }
.marquee li img { width: 22px; height: 22px; filter: grayscale(1) opacity(0.55); }
@keyframes marquee { to { transform: translateX(calc(-50% - 17px)); } }
@media (prefers-reduced-motion: reduce) { .marquee-track, .ea-dot { animation: none; } }
@media (max-width: 760px) {
  .hero { min-height: 100svh; padding-top: 104px; }
  .hero-art { top: 52%; -webkit-mask: linear-gradient(180deg, transparent, #000 22%); mask: linear-gradient(180deg, transparent, #000 22%); }
  .hero-art img { width: 100%; object-position: 78% center; }
  .hero-art::after { display: none; }
}
@media (max-width: 640px) {
  .hero-actions { flex-direction: column; width: 280px; max-width: 100%; }
  .marquee-track { animation-duration: 108s; }
}

/* Same question, two answers. */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 48px; align-items: start; }
@media (max-width: 860px) { .compare { grid-template-columns: 1fr; } }
.chat {
  display: flex; flex-direction: column; background: #fff; border: 1px solid color-mix(in oklab, var(--fig) 7%, var(--line));
  border-radius: 12px; box-shadow: 0 14px 38px rgba(28, 18, 32, 0.055); overflow: hidden; text-align: left; margin: 0;
}
.chat .chrome { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.chat .chrome .host { margin-right: auto; }
.chat .body { display: flex; flex-direction: column; gap: 12px; padding: 18px 18px 20px; font-size: 14.5px; line-height: 1.55; color: var(--ink); }
.chat .you { align-self: flex-end; max-width: 86%; padding: 10px 14px; border-radius: 14px 14px 4px 14px; background: #f4f2f6; }
.chat .tool {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 4px 10px 4px 4px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink); font-size: 12.5px; font-weight: 600;
}
.chat .tool img { width: 20px; height: 20px; border-radius: 999px; }
.chat .ai { display: flex; flex-direction: column; gap: 8px; }
.chat .ai ol, .chat .ai ul { padding-left: 20px; display: grid; gap: 4px; }
.chat .credit { font-size: 12.5px; color: var(--ink-muted); }
.chat .label, .chat figcaption { padding: 10px 16px; border-top: 1px solid var(--line); background: #fbfafc; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.chat.dim .body { color: var(--ink-2); }

/* Use. Create. Follow. Proof cards with a fruit bar. sections/Problem.tsx */
.proof-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 48px; }
@media (max-width: 900px) { .proof-grid { grid-template-columns: 1fr; } }
.proof {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: clamp(22px, 2.8vw, 30px) clamp(22px, 2.8vw, 30px) clamp(22px, 2.8vw, 30px) clamp(30px, 3.2vw, 38px);
  border: 1px solid color-mix(in oklab, var(--fig) 7%, var(--line)); border-radius: 8px; background: #fff;
  box-shadow: 0 14px 38px rgba(28, 18, 32, 0.055); overflow: hidden;
}
.proof::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: var(--tone); }
.proof .num { font: 660 clamp(52px, 6.8vw, 86px) / 0.88 var(--font-sans); letter-spacing: -0.052em; color: var(--ink); }
.proof h3 { font-size: 18px; font-weight: 650; letter-spacing: -0.01em; color: var(--ink); }
.proof p { color: var(--ink-2); font-size: clamp(15.5px, 1.32vw, 18px); line-height: 1.38; flex: 1; }
.proof a { color: var(--accent-ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.proof a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Top Nerds grid on Home. */
.head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.head-row h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3vw, 36px); letter-spacing: -0.025em; line-height: 1.05; font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 24; }
.head-row .textlink, .mk .textlink { color: var(--accent-ink); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid, .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid, .grid.four { grid-template-columns: 1fr; } }
.ncard {
  position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-sm);
}
.mk .ncard { border-color: color-mix(in oklab, var(--fig) 7%, var(--line)); box-shadow: 0 14px 38px rgba(28, 18, 32, 0.045); border-radius: 12px; }
.ncard .cover { position: relative; height: 96px; background: var(--tone-soft); display: flex; align-items: flex-end; padding: 12px 14px; overflow: hidden; }
.ncard .mono-letter { position: absolute; right: 14px; bottom: -8px; font: 700 76px/1 var(--font-display); color: var(--tone); opacity: 0.85; letter-spacing: -0.04em; }
.ncard .tag { position: relative; font-size: 12px; font-weight: 600; color: var(--tone-ink); background: rgb(255 255 255 / 0.75); padding: 3px 8px; border-radius: 999px; }
.ncard .cover .badge { position: absolute; top: 12px; right: 12px; }
.ncard .meta-row { display: flex; gap: 12px; padding: 16px; }
.ncard h3 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.ncard h3 a { text-decoration: none; color: inherit; }
.ncard h3 a::after { content: ""; position: absolute; inset: 0; }
.ncard h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ncard .by { font-size: 13px; color: var(--muted-foreground); }
.ncard .pitch { margin-top: 6px; font-size: 14px; color: var(--muted-foreground); line-height: 1.45; }
.ncard .stats { margin-top: 8px; font-size: 12.5px; color: var(--muted-foreground); }
.mk .ncard .by, .mk .ncard .stats { color: var(--ink-muted); }
.mk .ncard .pitch { color: var(--ink-2); }

/* Get started band. components/Footer.tsx #get-started */
.get-started {
  position: relative; overflow: hidden; isolation: isolate; min-height: 112svh; background: #d7f2f3;
  display: grid; align-items: start;
}
.get-started-art { position: absolute; inset: 0; z-index: -1; }
.get-started-art img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.get-started-art::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(255, 248, 238, 0.12) 0%, rgba(255, 255, 255, 0.03) 44%, rgba(189, 232, 230, 0.18) 100%);
}
.get-started-art::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; z-index: 1;
  background: linear-gradient(180deg, rgba(215, 242, 243, 0) 0%, rgba(215, 242, 243, 0.82) 58%, #d7f2f3 100%);
}
.get-started-in { max-width: 1180px; margin: 0 auto; padding: clamp(70px, 8vw, 104px) 24px; display: grid; justify-items: center; text-align: center; gap: 20px; }
.get-started h2 { font-size: clamp(48px, 7vw, 94px); max-width: 13ch; text-wrap: balance; }
.get-started p { font-size: clamp(15px, 1.3vw, 17px); line-height: 1.55; font-weight: 500; color: rgba(28, 18, 32, 0.68); max-width: 560px; }
@media (max-width: 760px) { .get-started { min-height: 92svh; } }

/* Footer. components/Footer.tsx FooterNav */
.mk-foot { position: relative; overflow: hidden; background: #d7f2f3; color: var(--ink); }
.mk-foot-in { position: relative; max-width: 1280px; margin: 0 auto; padding: clamp(48px, 6vw, 76px) 24px clamp(30px, 4vw, 44px); }
.mk-foot-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px; }
.mk-foot-note { display: flex; flex-direction: column; gap: 14px; max-width: 360px; }
.mk-foot-note p { font-size: 14.5px; line-height: 1.5; color: rgba(28, 18, 32, 0.78); }
.mk-foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.mk-foot-cols h2 { font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.mk-foot-cols ul { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.mk-foot-cols a { font-size: 14.5px; color: rgba(28, 18, 32, 0.78); text-decoration: none; }
.mk-foot-cols a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.mk-foot-meta {
  position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: clamp(140px, 22vw, 260px);
  font-size: 13px; font-weight: 500; color: rgba(28, 18, 32, 0.68);
}
.mk-foot-meta span:first-child { margin-right: auto; }
.mk-foot-backdrop {
  position: absolute; left: 50%; bottom: clamp(56px, 7vw, 84px); transform: translateX(-50%); z-index: 0;
  display: flex; align-items: center; gap: 0.06em; white-space: nowrap; pointer-events: none;
  color: rgba(28, 18, 32, 0.042); font: 650 clamp(150px, 30vw, 380px) / 0.72 var(--font-display); letter-spacing: -0.04em;
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 144;
}
.mk-foot-backdrop .logo-mark { width: 0.9em; height: 0.9em; transform: none; }
@media (max-width: 980px) {
  .mk-foot-grid { grid-template-columns: 1fr; }
  .mk-foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Signed-out product pages inside the marketing frame. */
.page { background: #fff; }
.page > .wrap { max-width: 1200px; margin: 0 auto; padding: 40px 24px 72px; display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 640px) { .page > .wrap { padding: 24px 16px 56px; } }

/* Centered single card: sign in, consent, invite-only, errors. */
.solo {
  min-height: calc(100svh - 72px); display: grid; place-items: center; padding: 48px 16px 72px;
  background:
    radial-gradient(40% 50% at 10% 20%, rgb(75 91 232 / 0.08), transparent 70%),
    radial-gradient(40% 50% at 90% 80%, rgb(52 199 89 / 0.08), transparent 70%),
    var(--sidebar);
}
.solo .wrap { width: 100%; max-width: 420px; }
.solo .wrap.wide { max-width: 520px; }
.solo .card {
  display: flex; flex-direction: column; gap: 16px; padding: 32px 28px; text-align: center;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-sm);
}
.solo .mascot { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto; }
.solo h1 { font-size: 24px; font-weight: 600; letter-spacing: -0.6px; line-height: 1.3; }
.solo h2 { font-size: 14px; font-weight: 600; }
.solo .lede { color: var(--muted-foreground); font-size: 14px; }
.solo .actions { justify-content: center; }
.solo .button.big { width: 100%; }
.solo .or { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted-foreground); }
.solo .or::before, .solo .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
/* Account screens share Deal Desk's form-first split, without the marketing frame. */
.auth-shell { display: grid; min-height: 100svh; grid-template-rows: 1fr auto; }
.auth-form-side { display: flex; flex-direction: column; gap: 16px; padding: 24px; min-width: 0; }
.auth-brand { display: flex; justify-content: center; }
.auth-content { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 0; }
.auth-shell .solo { min-height: 0; display: block; background: none; padding: 0; width: 100%; max-width: 448px; }
.auth-shell .solo .wrap { max-width: none; }
.auth-shell .solo .card { border: 0; border-radius: 0; box-shadow: none; background: none; padding: 0; gap: 20px; }
.auth-shell .mascot { display: none; }
.auth-shell #status:empty { display: none; }
.auth-shell #google { background: var(--background); color: var(--foreground); border: 1px solid var(--input); box-shadow: var(--shadow-xs); gap: 10px; }
.auth-shell #google:hover { background: var(--muted); }
.auth-shell .google-mark { flex: none; }
.auth-art { margin: 0; position: relative; height: 260px; overflow: hidden; background: var(--fig); }
.auth-art > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.auth-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgb(28 18 32 / 0.65), transparent 42%); }
.auth-art > p { position: absolute; z-index: 1; top: 24px; left: 24px; right: 24px; font-family: var(--font-display); font-size: clamp(24px, 3.5vw, 48px); font-weight: 600; line-height: 1.08; letter-spacing: -0.035em; color: var(--background); text-wrap: balance; }
@media (min-width: 768px) { .auth-form-side { padding: 40px; } }
@media (min-width: 1024px) {
  .auth-shell { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .auth-brand { justify-content: flex-start; }
  .auth-content { padding: 48px 0; }
  .auth-art { height: 100svh; position: sticky; top: 0; align-self: start; }
  .auth-art > p { top: 48px; left: 48px; right: 48px; }
}
.dev { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.dev label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.dev input[type="email"] {
  height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--input); background: transparent; box-shadow: var(--shadow-xs);
}
.dev input[type="email"]:focus { outline: none; border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in oklch, var(--ring) 40%, transparent); }
.dev .button { width: 100%; }
.consent { display: flex; flex-direction: column; gap: 16px; text-align: left; }
.consent .group { list-style: none; border: 1px solid var(--border); border-radius: 8px; }
.consent .group li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; font-size: 14px; }
.consent .group li + li { border-top: 1px solid var(--border); }
.consent .k { color: var(--muted-foreground); }
.consent .v { font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.consent .lists { display: flex; flex-direction: column; gap: 8px; }
.consent .lists ul { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.consent .lists li { display: flex; gap: 8px; font-size: 14px; }
.consent .can li::before, .consent .cannot li::before {
  flex: none; display: grid; place-items: center; width: 18px; height: 18px; margin-top: 1px; border-radius: 999px; font-size: 11px; font-weight: 700;
}
.consent .can li::before { content: "\2713"; background: var(--success-fill); color: var(--success); }
.consent .cannot li::before { content: "\2715"; background: var(--danger-fill); color: var(--destructive); }
.consent .actions .button { flex: 1; }

/* Connect: accordion of AIs (shadcn Accordion). */
.accs { padding: 4px 24px; }
.acc { border-bottom: 1px solid var(--border); }
.acc:last-child { border-bottom: 0; }
.acc > summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0; cursor: pointer;
}
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary h2 { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.acc > summary:hover h2 { text-decoration: underline; text-underline-offset: 3px; }
.acc > summary > .icon { width: 16px; height: 16px; color: var(--muted-foreground); transition: transform 0.2s; }
.acc[open] > summary > .icon { transform: rotate(180deg); }
.acc-body { padding: 0 0 20px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.ol { list-style: none; counter-reset: ol; display: flex; flex-direction: column; gap: 12px; }
.ol li { counter-increment: ol; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; }
.ol li::before {
  content: counter(ol); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 999px;
  background: var(--muted); font-size: 12px; font-weight: 600;
}
.ol li > div { padding-top: 2px; min-width: 0; }
.ol li > div > :is(div, p, ul, ol, form, label) { margin-top: 8px; }
.solo .ea-pill { align-self: center; box-shadow: none; }

/* Sign-up step (src/web/account.ts) */
.signup { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.signup > label { font-size: 14px; font-weight: 500; }
.signup .handle-field { display: flex; align-items: center; height: 36px; border: 1px solid var(--input); border-radius: 8px; padding: 0 10px; background: transparent; box-shadow: var(--shadow-xs); }
.signup .handle-field span { color: var(--muted-foreground); font-size: 14px; }
.signup .handle-field input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font: inherit; font-size: 14px; color: inherit; padding: 0 2px; }
.signup .handle-field input:focus { outline: none; }
.signup .handle-field:focus-within { border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in oklch, var(--ring) 40%, transparent); }
.signup .handle-status:empty { display: none; }
.signup .handle-status[data-state="free"] { color: var(--foreground); }
.signup .handle-status[data-state="taken"] { color: var(--destructive); }
.signup .tick { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; font-weight: 400; margin-top: 6px; }
.signup .tick input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--primary); }
.signup .button.big { margin-top: 10px; }
.signup-error { color: var(--destructive); font-size: 13px; }
.done-say { font-size: 16px; }
.done-say .thing { color: var(--muted-foreground); font-style: italic; }

/* ---------- Public previews: the AI note, the first step, report links ---------- */

/* A plain line for AIs reading the page. Quiet for people, still real text for any reader. */
.ai-note { margin: 0 0 12px; font-size: 0.8125rem; color: var(--muted-foreground); }
.ai-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.does { margin: 8px 0 16px; padding-left: 1.25rem; display: grid; gap: 6px; }
.does li::marker { color: var(--muted-foreground); }
/* Only the first step's title shows; the list still says "this is step one of a sequence". */
.preview-steps { margin: 8px 0 6px; padding-left: 1.5rem; }
.preview-steps li { font-weight: 500; }
.preview-steps li::marker { color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.chip.quiet { background: transparent; }
.new-dot { display: inline-block; width: 8px; height: 8px; margin-left: 6px; border-radius: 50%; background: var(--brand); vertical-align: middle; }
.version-note { margin: 4px 0 0; color: var(--info); }
.report-link { margin: 4px 0 0; text-align: right; }
.report-link a { color: var(--muted-foreground); }
.report-link a:hover, .report-link a:focus-visible { color: var(--foreground); }
@media (max-width: 640px) { .report-link { text-align: left; } }
form.stack fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
form.stack legend { padding: 0; margin-bottom: 4px; font-weight: 600; }

/* Terms and Privacy: a plain, left-aligned reading column. */
.legal { padding: 48px 16px 72px; background: var(--background); }
.legal-in { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; line-height: 1.65; font-size: 15px; }
.legal h1 { font-size: 30px; font-weight: 600; letter-spacing: -0.8px; line-height: 1.25; }
.legal h2 { font-size: 17px; font-weight: 600; margin-top: 18px; }
.legal section { display: flex; flex-direction: column; gap: 10px; }
.legal ul { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; list-style: disc; }
.legal .lede { color: var(--muted-foreground); font-size: 16px; }
.legal a { text-decoration: underline; }
.legal-summary { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; }
.legal-summary h2 { margin-top: 0; }
