/* Apphaven brand tokens (Brand Theme v0.4). Paper first: ink does the work, gold marks the
   one thing on a page that has been earned. Dark mode is the studio at night: paper becomes
   ink, cards become black soft, the mark's structure turns paper and its insert stays gold.
   Follow the system, or force with <html data-theme="dark|light">. */

:root {
  color-scheme: light dark;

  /* Palette (fixed) */
  --ah-paper: #f8f7f5;
  --ah-white: #ffffff;
  --ah-panel: #f0ede6;
  --ah-grey-light: #dfdeda;
  --ah-grey-mid: #a8a8a3;
  --ah-grey-warm: #6b6b65;
  --ah-granite: #555555;
  --ah-ink: #1e1e1e;
  --ah-black-soft: #2a2a2a;
  --ah-gold: #cfb055;
  --ah-gold-bright: #f5db7b;
  --ah-gold-deep: #9a7d2e;
  --ah-running: #7ab892;
  --ah-needs-you: #c9793a;
  --ah-broke: #c75d5d;
  --ah-note: #7a9eb8;

  /* Roles (switch with the theme) */
  --bg: var(--ah-paper);
  --surface: var(--ah-white);
  --surface-2: var(--ah-panel);
  --ink: var(--ah-ink);
  --ink-2: var(--ah-granite);
  --muted: var(--ah-grey-warm);
  --placeholder: var(--ah-grey-mid);
  --line: var(--ah-grey-light);
  --line-strong: #c9c8c3;
  --action: var(--ah-ink);
  --action-hover: var(--ah-black-soft);
  --action-ink: var(--ah-paper);
  --earned: var(--ah-gold);
  --earned-ink: var(--ah-ink);
  --link-hover: var(--ah-gold-deep);
  --ok: var(--ah-running);
  --warn: var(--ah-needs-you);
  --danger: var(--ah-broke);
  --info: var(--ah-note);
  --ok-soft: #e3f0e8;
  --warn-soft: #f6e6da;
  --danger-soft: #f5e0e0;
  --info-soft: #e3ecf3;
  --backdrop: rgb(30 30 30 / 0.45);
  --pinstripe: repeating-linear-gradient(90deg, transparent, transparent 1px, rgb(30 30 30 / 0.03) 1px, rgb(30 30 30 / 0.03) 2px);
  --mark-structure: var(--ah-ink);
  --mark-insert: var(--ah-gold);

  /* Type */
  --font-display: "Rajdhani", "Outfit Variable", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Outfit Variable", "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono Variable", "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --text-h1: 4rem;
  --text-h2: 2.5rem;
  --text-h3: 1.5rem;
  --text-h4: 1.25rem;
  --text-body: 1rem;
  --text-small: 0.875rem;
  --text-caption: 0.75rem;
  --track-display: 0.3px;

  /* Shape */
  --r-sm: 4px;
  --r-md: 4px;
  --r-lg: 6px;
  --r-tile: 22%;
  --gutter: 16px;
  --content: 1100px;
  --measure: 640px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--ah-ink);
    --surface: var(--ah-black-soft);
    --surface-2: #262623;
    --ink: var(--ah-paper);
    --ink-2: #d6d4ce;
    --muted: var(--ah-grey-mid);
    --placeholder: #7d7d78;
    --line: #3a3a37;
    --line-strong: #4b4b47;
    --action: var(--ah-paper);
    --action-hover: var(--ah-white);
    --action-ink: var(--ah-ink);
    --link-hover: var(--ah-gold);
    --ok-soft: #26362d;
    --warn-soft: #3b2a1c;
    --danger-soft: #3b2323;
    --info-soft: #243039;
    --backdrop: rgb(0 0 0 / 0.6);
    --pinstripe: repeating-linear-gradient(90deg, transparent, transparent 1px, rgb(255 255 255 / 0.02) 1px, rgb(255 255 255 / 0.02) 2px);
    --mark-structure: var(--ah-paper);
    --mark-insert: var(--ah-gold);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: var(--ah-ink);
  --surface: var(--ah-black-soft);
  --surface-2: #262623;
  --ink: var(--ah-paper);
  --ink-2: #d6d4ce;
  --muted: var(--ah-grey-mid);
  --placeholder: #7d7d78;
  --line: #3a3a37;
  --line-strong: #4b4b47;
  --action: var(--ah-paper);
  --action-hover: var(--ah-white);
  --action-ink: var(--ah-ink);
  --link-hover: var(--ah-gold);
  --ok-soft: #26362d;
  --warn-soft: #3b2a1c;
  --danger-soft: #3b2323;
  --info-soft: #243039;
  --backdrop: rgb(0 0 0 / 0.6);
  --pinstripe: repeating-linear-gradient(90deg, transparent, transparent 1px, rgb(255 255 255 / 0.02) 1px, rgb(255 255 255 / 0.02) 2px);
  --mark-structure: var(--ah-paper);
  --mark-insert: var(--ah-gold);
}

:root[data-theme="light"] {
  color-scheme: light;
}

/* The public site. Tokens come first in the served stylesheet (tokens.css from @apphaven/brand). */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--placeholder); text-underline-offset: 3px; }
a:hover { color: var(--link-hover); text-decoration-color: var(--link-hover); }
code { font-family: var(--font-mono); font-size: 0.86em; background: var(--surface-2); padding: 1px 5px; }
.wrap { max-width: var(--content); margin: 0 auto; padding: 0 20px; }
@media (min-width: 720px) { .wrap { padding: 0 40px; } }

/* Top */
header.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 72px; }
/* The lockup is sized by font-size: 5.52em wide at the wordmark's type size, never under 120px. */
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); font-size: 1.5rem; line-height: 1; }
.brand svg { display: block; width: 5.5247373em; height: auto; }
.brand:hover { color: var(--ink); }
.top nav { display: flex; gap: 1.4rem; }
.top nav a { text-decoration: none; color: var(--muted); font-size: 0.95rem; font-weight: 500; }
.top nav a:hover { color: var(--ink); }
@media (max-width: 480px) { .top nav { gap: 1rem; } .top nav a:nth-child(2), .top nav a:nth-child(3) { display: none; } }

/* Type */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.3px; line-height: 1.1; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.6rem, 2rem + 3.2vw, 4rem); letter-spacing: 0.01em; max-width: 14ch; }
h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); }
h3 { font-size: 1.25rem; margin: 0 0 0.2em; }
p { margin: 0 0 1em; }
.lede { font-size: 1.25rem; max-width: 36rem; color: var(--ink-2); }
.muted { color: var(--muted); }

/* Shared hero spacing for pricing and legal pages. */
.hero { padding: 56px 0; }
.hero h1 { max-width: 20ch; text-wrap: balance; }
.cta { display: flex; flex-wrap: wrap; gap: 0.9rem 1.4rem; align-items: center; margin: 1.8rem 0 0; }
.btn { display: inline-block; background: var(--action); color: var(--action-ink); text-decoration: none; font-weight: 600; padding: 0.75rem 1.2rem; border-radius: var(--r-sm); font-size: 1rem; line-height: 1.2; }
.btn:hover { background: var(--action-hover); color: var(--action-ink); }
/* The one earned thing on this page. */
.btn-gold { background: var(--earned); color: var(--earned-ink); }
.btn-gold:hover { background: var(--ah-gold-bright); color: var(--earned-ink); }

/* Sections */
section { padding: 56px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { section { padding: 72px 0; } }
.cols { display: grid; gap: 2rem; }
@media (min-width: 820px) { .cols { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 4rem; } }
ol.steps { padding: 0; margin: 0; list-style: none; counter-reset: step; }
ol.steps li { position: relative; padding: 1.1rem 0 1.1rem 3.2rem; border-top: 1px solid var(--line); counter-increment: step; }
ol.steps li:last-child { border-bottom: 1px solid var(--line); }
ol.steps li::before { content: counter(step); position: absolute; left: 0; top: 1.05rem; width: 2rem; height: 2rem; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
ol.steps b { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: 0.3px; display: block; margin-bottom: 0.1rem; }
ul.gets { list-style: none; padding: 0; margin: 0; }
ul.gets li { padding: 1rem 0; border-top: 1px solid var(--line); display: grid; gap: 0.2rem 1.5rem; }
@media (min-width: 720px) { ul.gets li { grid-template-columns: 12rem 1fr; } }
ul.gets li:last-child { border-bottom: 1px solid var(--line); }
ul.gets b { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: 0.3px; }
.note { background: var(--surface); border: 1px solid var(--line); padding: 1.4rem 1.6rem; max-width: 40rem; }
.note p { margin: 0; }
.note.transition { margin: 1rem 0 1.5rem; }

/* Legal pages */
.legal h1 { font-size: clamp(2.2rem, 1.8rem + 2vw, 3rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.legal .hero { padding: 56px 0 8px; }
.legal p.meta { color: var(--muted); font-size: 0.95rem; }
.legal p { max-width: 40rem; }
.legal ul:not([class]) { max-width: 40rem; padding-left: 1.2rem; }
.legal ul:not([class]) li + li { margin-top: 0.4rem; }

footer.foot { padding: 2rem 0 3rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.4rem; font-size: 0.9rem; color: var(--muted); }
footer.foot a { color: inherit; text-decoration: none; }
footer.foot a:hover { color: var(--ink); }
footer.foot .brand { font-size: 1.375rem; margin-right: auto; color: var(--ink); }

/* Pricing */
.plans { display: grid; gap: 1rem; margin: 1.5rem 0 2.5rem; }
@media (min-width: 820px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plan { background: var(--surface); border: 1px solid var(--line); padding: 1.4rem 1.5rem 1.6rem; }
.plan h2 { font-size: 1.6rem; margin: 0 0 0.2em; }
.plan .price { font-family: var(--font-mono); font-size: 1.6rem; margin: 0 0 0.6rem; }
.plan .price span { font-size: 0.85rem; color: var(--muted); margin-left: 4px; }
.plan ul { margin: 0.8rem 0 0; padding-left: 1.1rem; display: grid; gap: 0.3rem; font-size: 0.95rem; }
.legal .plans p { max-width: none; }

/* The owner, the agent, and a useful app in its Apphaven home. The original
   photo and subject mask remain separate, aligned layers. */
.landing-page { color-scheme: light; }
.landing-wrap { max-width: 1680px; margin-inline: auto; }
.landing-wrap .top { padding-inline: 5%; height: 80px; background-image: var(--pinstripe); }
.landing-wrap .top .brand { font-size: 1.7rem; }
.landing-wrap .top nav a { display: inline; }
.landing-wrap .top nav a:last-child { color: var(--ink); }
.landing-hero { padding: 0; border: 0; }
.hero-scene { position: relative; isolation: isolate; container-type: inline-size; }
.hero-visual { position: relative; container-type: inline-size; }
.hero-photograph { position: relative; }
.hero-photo { display: block; width: 100%; height: auto; }
.hero-shader, .hero-copy-wash { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-shader { opacity: .4; }
.hero-copy { position: absolute; left: 5%; top: 4%; width: 43%; z-index: 2; }
.hero-copy h1 { font-size: clamp(44px, 4.3cqw, 72px); max-width: none; line-height: .99; margin-bottom: .32em; letter-spacing: -.025em; }
.hero-lead { font-size: clamp(16px, 1.28cqw, 20px); max-width: 42ch; line-height: 1.5; color: var(--ink-2); margin-bottom: 1.2em; }
.hero-actions { display: flex; align-items: center; gap: 20px; }
.hero-copy .btn { flex: none; padding: 15px 21px; font-size: 16px; min-height: 48px; }
.arrow-icon { display: inline-block; width: 14px; height: 14px; vertical-align: -.1em; }
.hero-copy .btn .arrow-icon { margin-left: 20px; }
.hero-price { font-size: 12px; line-height: 1.55; margin: 0; color: var(--ink-2); }
.idea-projection, .idea-projection-mobile { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.idea-current { fill: url(#idea-current); }
.idea-thread { fill: none; stroke: var(--surface); stroke-opacity: .65; stroke-width: 3; }
.idea-projection-mobile { display: none; }
/* Original third-party artwork retains its own brand colors. */
.agent-group { position: absolute; left: 45%; top: 52%; transform: translate(-50%, -50%); }
.agent-list { position: relative; list-style: none; margin: 0; padding: 0; width: clamp(84px, 8.5cqw, 130px); aspect-ratio: 1; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--bg); }
.agent { position: absolute; display: grid; place-items: center; width: 30%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.agent svg { display: block; width: 100%; height: 100%; }
/* Equal spacing around the circle's center; the more open silhouettes need
   slightly more size to carry the same visual weight as the ChatGPT mark. */
.agent:nth-child(1) { left: 50%; top: 27%; }
.agent:nth-child(2) { left: 30%; top: 62%; width: 32%; }
.agent:nth-child(3) { left: 70%; top: 62%; width: 36%; }
.agent-heading { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); margin: 0; padding: 2px 6px; border-radius: var(--r-sm); width: max-content; background: var(--bg); font-size: 12px; color: var(--ink-2); }
.idea-note { position: absolute; left: 5%; bottom: 4%; width: max-content; max-width: 36%; padding: 10px 16px; border-left: 2px solid var(--ink); background: var(--bg); border-radius: 0 var(--r-sm) var(--r-sm) 0; margin: 0; font-size: clamp(14px, 1.12cqw, 18px); line-height: 1.45; }
.idea-note > span { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .09em; font-size: .66em; font-weight: 500; margin-bottom: .2em; }
/* Apphaven and the view controls are annotations outside the customer's app.
   Only the captured Sunday Studio interface appears inside each device. */
.app-home { position: absolute; left: 55.5%; right: 2.5%; top: 6%; font-size: clamp(12px, .95cqw, 15px); line-height: 1.45; }
.example-label { font-size: .88em; letter-spacing: .01em; margin: 0 0 .35em; color: var(--ink-2); }
.home-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.home-title { font: 600 2.5em/1.1 var(--font-display); letter-spacing: -.025em; white-space: nowrap; }
.home-brand { display: flex; align-items: center; gap: .8em; padding: .85em 1.1em; background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-sm); }
.home-brand > span:first-child { font-size: .85em; color: var(--muted); white-space: nowrap; }
.home-lockup { display: block; width: max(120px, 10.5em); flex: none; color: var(--ink); }
.home-lockup svg { display: block; width: 100%; height: auto; }
.app-example { display: flex; flex-direction: column; }
.example-tabs { display: grid; grid-template-columns: 1.1fr 1fr .9fr; order: 2; align-self: center; width: min(100%, 440px); margin: 18px 0 12px; padding: 4px; gap: 4px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--bg); }
.example-tabs button { appearance: none; background: none; border: 0; border-radius: 2px; padding: .7em .5em; min-height: 44px; color: var(--muted); cursor: pointer; font: 500 .92em var(--font-body); white-space: nowrap; }
.example-tabs button[aria-selected="true"] { color: var(--action-ink); background: var(--action); }
.example-tabs button:hover:not([aria-selected="true"]) { color: var(--ink); background: var(--surface-2); }
.example-views { display: grid; order: 1; container-type: inline-size; }
.example-panel { grid-area: 1 / 1; min-width: 0; line-height: 0; }
.example-panel[hidden] { display: block !important; visibility: hidden; }
/* Hardware proportions are shared at every width. Rounded glass and bezels
   describe the devices; Apphaven's own controls keep the 4px brand corners. */
.example-device-pair { display: block; position: relative; aspect-ratio: 1.4; color: var(--ink); text-decoration: none; }
.device-monitor { display: block; width: 91%; }
.monitor-body { display: block; position: relative; padding: 1.3cqw 1.3cqw 0; border: 1px solid var(--placeholder); border-radius: 1.8cqw; background: var(--ink); }
.monitor-body::before { content: ""; position: absolute; top: .45cqw; left: calc(50% - .2cqw); width: .4cqw; height: .4cqw; border-radius: 50%; background: var(--ink-2); }
.monitor-screen { display: block; overflow: hidden; border-radius: .4cqw; }
.example-screenshot { display: block; width: 100%; height: auto; object-fit: cover; object-position: top; }
.monitor-screen .example-screenshot { aspect-ratio: 16 / 10; }
.monitor-chin { display: block; height: 3.6cqw; margin: 1.2cqw -1.3cqw 0; border-top: 1px solid var(--placeholder); border-radius: 0 0 1.55cqw 1.55cqw; background: linear-gradient(100deg, var(--line), var(--bg) 52%, var(--line)); }
.monitor-stand { display: block; position: relative; width: 25%; height: 9cqw; margin: 0 auto; }
.monitor-stand::before { content: ""; position: absolute; inset: 0 23% 12%; background: linear-gradient(var(--placeholder), var(--line) 35%, var(--bg) 92%, var(--line)); clip-path: polygon(16% 0, 84% 0, 100% 100%, 0 100%); }
.monitor-stand::after { content: ""; position: absolute; inset: auto 0 0; height: 1.5cqw; border: 1px solid var(--line-strong); border-bottom-color: var(--placeholder); border-radius: 50% 50% .5cqw .5cqw; background: linear-gradient(var(--bg), var(--line)); }
.device-phone { display: block; position: absolute; right: 0; bottom: 0; width: 26%; padding: .85cqw; border: 1px solid var(--placeholder); border-radius: 4.2cqw; background: var(--ink); }
.device-phone::before { content: ""; position: absolute; right: -.45cqw; top: 22%; width: .35cqw; height: 9%; background: var(--ink-2); border-radius: 0 .3cqw .3cqw 0; }
.phone-screen { display: block; position: relative; overflow: hidden; padding-bottom: 2.5cqw; border-radius: 3.35cqw; background: var(--bg); }
.phone-screen::after { content: ""; position: absolute; bottom: .85cqw; left: 32%; width: 36%; height: .45cqw; border-radius: 1cqw; background: var(--ink); }
.phone-status { display: flex; align-items: center; justify-content: space-between; position: relative; height: 3.8cqw; padding: 0 1.7cqw; font: 600 1.35cqw/1 var(--font-body); }
.phone-status::after { content: ""; position: absolute; top: .85cqw; left: calc(50% - 2.7cqw); width: 5.4cqw; height: 1.5cqw; border-radius: 1cqw; background: var(--ink); }
.phone-status svg { display: block; width: 3.5cqw; height: 1.5cqw; }
.phone-screen .example-screenshot { aspect-ratio: 430 / 1000; }
.example-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; order: 3; margin-inline: 4%; font-size: 11px; line-height: 1.4; color: var(--muted); }
.example-open-link { display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 44px; padding: 0 10px; border-radius: var(--r-sm); background: var(--bg); font-size: 12px; font-weight: 500; color: var(--ink); text-decoration: none; }
.example-open-link:hover { text-decoration: underline; }
.home-foundation { display: flex; align-items: center; gap: .75em; background: var(--bg); padding: .85em 1em; border-radius: var(--r-sm); }
.foundation-icon { display: grid; place-items: center; width: 2.2em; height: 2.2em; border: 1px solid var(--line-strong); border-radius: 50%; flex: none; }
.foundation-icon svg { width: 65%; }
.home-foundation p { font-size: 11px; line-height: 1.5; color: var(--ink-2); margin: 0; }
.home-foundation strong { font-weight: 500; color: var(--ink); }
.hero-outcomes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 36px 5%; border-top: 1px solid var(--line); background: var(--bg); }
.outcome { display: flex; align-items: baseline; gap: 14px; }
.outcome-number { font: 11px var(--font-mono); color: var(--muted); }
.outcome h2 { font-size: 24px; letter-spacing: -.01em; margin-bottom: .4em; }
.outcome p { font-size: 15px; line-height: 1.6; color: var(--ink-2); margin: 0; max-width: 36ch; }
.hero-access { margin: 0; padding: 16px 5%; font-size: 13px; color: var(--muted); border-block: 1px solid var(--line); }
.hero-access a { color: var(--ink); margin-left: .35em; }
.landing-page :is(a, button, [tabindex="0"]):focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.example-tabs button:focus-visible { outline-offset: 1px; outline-color: var(--placeholder); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
/* Preserve the visual story on small screens; let the words and working
   example use real reading sizes and touch targets independently. */
@media (max-width: 1199px) {
  .hero-scene { display: flex; flex-direction: column; }
  .hero-copy { position: static; width: auto; max-width: 650px; padding: 38px 32px 28px; }
  .hero-copy h1 { font-size: clamp(42px, 6.5vw, 64px); }
  .hero-lead { font-size: 18px; max-width: 46ch; }
  .hero-price { font-size: 13px; }
  .hero-visual { width: 100%; aspect-ratio: 375 / 242; overflow: hidden; }
  .hero-photograph { width: 116%; }
  .hero-copy-wash { display: none; }
  .idea-projection { display: none; }
  .idea-projection-mobile { display: block; }
  .agent-group { left: 76%; top: 58%; }
  .agent-list { width: clamp(84px, 20cqw, 150px); }
  .agent-heading { font-size: 13px; }
  .idea-note { left: 5%; top: 5%; bottom: auto; max-width: 53%; font-size: clamp(14px, 2.4cqw, 20px); padding: 8px 12px; }
  .app-home { position: relative; inset: auto; align-self: center; width: calc(100% - 64px); max-width: 720px; margin: 8px auto 32px; font-size: 16px; }
  .example-label { width: fit-content; }
  .hero-outcomes { padding: 30px 32px; gap: 24px; }
  .outcome { gap: 8px; }
  .outcome h2 { font-size: 23px; }
  .outcome p { font-size: 14px; }
}
@media (max-width: 600px) {
  .landing-wrap .top { height: 68px; padding-inline: 24px; }
  .landing-wrap .top .brand { font-size: 1.4rem; }
  .landing-wrap .top nav { gap: 16px; }
  .landing-wrap .top nav a { font-size: 14px; }
  .landing-wrap .top nav a:first-child { display: none; }
  .hero-copy { padding: 30px 24px 26px; }
  .hero-copy h1 { font-size: clamp(36px, 9.5vw, 52px); line-height: 1.02; margin-bottom: 18px; }
  .hero-lead { font-size: 16px; margin-bottom: 22px; }
  .hero-actions { gap: 14px; flex-wrap: wrap; }
  .hero-copy .btn { padding: 15px 18px; }
  .hero-copy .btn .arrow-icon { margin-left: 12px; }
  .hero-price { font-size: 11px; }
  .agent-heading { width: 105px; text-align: center; font-size: 11px; line-height: 1.3; }
  .idea-note { max-width: 55%; font-size: 13px; padding: 7px 10px; }
  .app-home { width: calc(100% - 40px); font-size: 13px; margin-top: 14px; margin-bottom: 28px; }
  .example-label { font-size: 11px; }
  .home-title { font-size: 28px; }
  .home-brand { padding: 10px 8px; gap: 6px; }
  .home-brand > span:first-child { font-size: 10px; }
  .home-lockup { width: 120px; }
  .home-heading { gap: 8px; margin-bottom: 20px; }
  .example-tabs { margin-top: 20px; }
  .example-tabs button { font-size: 12px; padding: 10px 2px; }
  .example-footer { flex-wrap: wrap; justify-content: center; gap: 2px 8px; margin-inline: 0; }
  .example-open-link { min-height: 44px; font-size: 11px; gap: 7px; }
  .home-foundation { padding: 8px 0; }
  .home-foundation p { font-size: 11px; }
  .hero-outcomes { grid-template-columns: 1fr; padding: 8px 24px 28px; gap: 0; border-top: 0; }
  .outcome { padding: 23px 0; gap: 14px; border-top: 1px solid var(--line); }
  .outcome:last-child { padding-bottom: 0; }
  .outcome h2 { font-size: 25px; }
  .outcome p { font-size: 15px; max-width: none; }
  .hero-access { padding: 18px 24px; font-size: 12px; line-height: 1.65; }
}

/* Docs: the owner page and the agent's guide rendered from docs/agent/*.md. */
.docs ol.howto { padding-left: 1.4rem; max-width: 40rem; }
.docs ol.howto li { margin: 0.4rem 0; }
.docs .address { max-width: none; }
.docs .address code { display: inline-block; font-size: 1rem; padding: 10px 14px; border: 1px solid var(--line); background: var(--surface); overflow-wrap: anywhere; }
.docs ul.gets span { color: var(--ink-2); }
.doc h1 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.6rem); margin: 0 0 0.6em; max-width: none; }
.doc h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.doc h3 { margin-top: 1.6rem; }
.doc p, .doc li { max-width: 44rem; }
.doc ul, .doc ol { padding-left: 1.4rem; }
.doc pre { max-width: 44rem; overflow-x: auto; padding: 14px 16px; border: 1px solid var(--line); background: var(--surface); font-family: var(--font-mono); font-size: 0.86rem; line-height: 1.5; }
.doc pre code { background: none; padding: 0; font-size: inherit; }
.doc table { border-collapse: collapse; max-width: 44rem; font-size: 0.95rem; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 8px 12px 8px 0; border-top: 1px solid var(--line); }
.doc th { font-weight: 600; border-top: 0; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.doc blockquote { margin: 1rem 0; padding-left: 1rem; border-left: 3px solid var(--line); color: var(--ink-2); }

/* The report page's form (report/). */
.report { display: grid; gap: 0.6rem; max-width: 40rem; margin: 1.5rem 0 3rem; }
.report fieldset { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0.8rem 1rem 1rem; margin: 0 0 0.6rem; display: grid; gap: 0.45rem; }
.report legend { font-weight: 600; padding: 0 0.3rem; }
.report label { font-weight: 500; }
.report fieldset label, .report label.check { font-weight: 400; display: flex; gap: 0.6rem; align-items: flex-start; }
.report input[type="url"], .report input[type="email"], .report input:not([type]), .report textarea { width: 100%; box-sizing: border-box; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 0.6rem 0.7rem; margin: 0 0 0.6rem; }
.report input[type="radio"], .report input[type="checkbox"] { margin: 0.2em 0 0; flex: none; accent-color: var(--ink); }
.report input:focus-visible, .report textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.report .hint { color: var(--muted); font-size: 0.95rem; margin: 0.4rem 0; }
.report button.btn { border: 0; cursor: pointer; justify-self: start; margin-top: 0.4rem; font-family: var(--font-body); }
.report .trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
