/* Copied from verbatim app/assets/stylesheets/application.css on 2026-11-16, keep in step with Paper
   (docs/design/README.md in the app repo): its tokens and only the components this page uses.
   The page-local landing styles follow, from "Landing page" on. */

@font-face { font-family: "Geist"; src: url("../fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #fafafa;
  --hover: #ededf0;
  --line: #e8e8eb;
  --line-soft: #f0f0f2;
  --field: #dedee3;
  --ink: #111113;
  --text-2: #4a4d55;
  --muted: #63666e;
  --faint: #6b6e76;
  --accent: #2952e3;
  --accent-hover: #1d3db0;
  --accent-soft: #eef2ff;
  --accent-ink: #2445c2;
  --ok: #146c43;
  --ok-soft: #e9f6ef;
  --warn: #8a5a00;
  --warn-soft: #fbf3e2;
  --bad: #a8321f;
  --bad-soft: #fdecea;
  --neutral-soft: #f1f1f3;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --card: #f6f6f8;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  /* Area colours: the fill and icon ink of a .tile (docs/design/README.md, Area colours). */
  --area-docs: #cbe8f8;
  --area-docs-ink: #075f8c;
  /* Highlight of quoted text: Paper's default yellow marker. */
  --mark-rgb: 253 224 71;
  --mark-strength: 0.8;
  --mark-bg: linear-gradient(100deg, rgb(var(--mark-rgb) / 0) 0.5%, rgb(var(--mark-rgb) / calc(0.95 * var(--mark-strength))) 2.5%, rgb(var(--mark-rgb) / calc(0.75 * var(--mark-strength))) 6%, rgb(var(--mark-rgb) / calc(0.65 * var(--mark-strength))) 94%, rgb(var(--mark-rgb) / calc(0.9 * var(--mark-strength))) 97.5%, rgb(var(--mark-rgb) / 0) 99.5%);
  --mark-radius: 3px 7px 4px 8px;
}


* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 14px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; margin-bottom: 0; overflow-wrap: anywhere; }
h2 { font-size: 15px; font-weight: 600; line-height: 1.4; margin-bottom: 12px; }
h3 { font-size: 14px; font-weight: 600; line-height: 1.45; margin-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 24px; height: 24px; border-radius: 7px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 600; line-height: 1; padding-top: 5px; }
.tile { width: 36px; height: 36px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--tile-fill, var(--card)); color: var(--tile-ink, var(--text-2)); }
.tile.xs { width: 20px; height: 20px; }
.area-docs { --tile-fill: var(--area-docs); --tile-ink: var(--area-docs-ink); }
.icon-button { width: 40px; height: 40px; flex-shrink: 0; border: 0; border-radius: var(--radius); background: none; color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-button:hover { background: var(--hover); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid var(--accent); border-radius: var(--radius); background: var(--accent); color: #fff; font: inherit; font-size: 13px; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap; }
.button:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.button.large { height: 44px; padding: 0 20px; font-size: 14px; }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 500; background: var(--neutral-soft); color: var(--text-2); white-space: nowrap; }
.badge.failed, .badge.rejected, .badge.state-refused, .badge.high { background: var(--bad-soft); color: var(--bad); }
blockquote { margin: 12px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: #2b2d33; font-size: 13px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.quote-meta { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.source-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 20px 0; }
.source-chips:empty, .source-chips[hidden] { display: none; } /* chips need JS; landing.js un-hides them */
.source-chip { height: 28px; padding: 0 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--text-2); font-family: var(--mono); font-size: 11px; cursor: pointer; }
.source-chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.answer-for { margin: -12px 0 -8px; overflow-wrap: anywhere; }
.answer { display: flex; flex-direction: column; gap: 16px; overflow-wrap: anywhere; }
.question { align-self: flex-end; max-width: 80%; background: var(--card); border-radius: 14px; padding: 10px 14px; font-size: 14px; line-height: 1.5; margin: 0; white-space: pre-wrap; }
.answer-text { font-size: 15px; line-height: 1.65; }
.answer-text p { margin: 0 0 8px; }
.citation-ref { font-family: var(--mono); font-size: 11px; font-weight: 500; vertical-align: super; line-height: 1; margin-left: 2px; padding: 1px 3px; border-radius: 4px; text-decoration: none; }
.answer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.sources-button .tile { width: 18px; height: 18px; }
.sources-button { height: 26px; padding: 0 6px 0 4px; border: 1px solid var(--line); border-radius: 13px; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); text-decoration: none; }
.safety-notice { border: 1px solid #ecc9a8; background: #fff8f1; border-radius: 10px; padding: 12px 14px; }
.safety-notice pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--sans); font-size: 13px; }
.safety-notice p { margin: 8px 0 0; }
.badge.bulletin { background: var(--accent-soft); color: var(--accent-ink); }

/* Landing page: page-local CSS on Paper's tokens only. Proposed Paper additions are marked [P]. */
.lp-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; padding: 0 32px; }
.lp-header .brand { padding: 4px 0; }
.lp-header .actions { gap: 20px; }
.lp-signin { font-size: 13px; color: var(--muted); text-decoration: none; }
.lp-signin:hover { color: var(--ink); }
/* [P] Landing title: Paper's largest is 22px; a public page opens bigger. */
.lp-title { font-size: clamp(32px, 4.2vw, 48px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 16px; text-wrap: balance; }
.lp-lede { font-size: 17px; line-height: 1.55; color: var(--text-2); margin: 0 0 28px; max-width: 34em; text-wrap: pretty; }
/* [P] Fold: a quiet details row for what is out of sight. */
.lp-fold { font-size: 13px; color: var(--text-2); }
.lp-fold > summary { cursor: pointer; width: fit-content; padding: 6px 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--field); border-radius: 4px; }
.lp-fold > summary:hover { color: var(--ink); }
.lp-fold p, .lp-fold ul { margin: 4px 0 8px; max-width: 40em; }
.lp-fold ul { padding-left: 18px; }
.lp-more { max-width: 1200px; margin: 0 auto; padding: 24px 32px 48px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: 0 32px; align-items: flex-start; }
.lp-more .lp-fold { flex: 1 1 220px; }
/* [P] Carousel: no auto-advance; arrows, dots, keyboard and swipe; one slide announced as "2 of 5". */
.lp-controls { display: flex; align-items: center; gap: 4px; }
.lp-controls[hidden] { display: none; } /* shown by landing.js; without it the controls would do nothing */
.lp-count { font-family: var(--mono); font-size: 12px; color: var(--faint); min-width: 4.5em; text-align: center; }
.lp-dots { display: flex; align-items: center; }
.lp-dot { width: 24px; height: 32px; border: 0; background: none; padding: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; }
.lp-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--field); }
.lp-dot:hover::before { background: var(--faint); }
.lp-dot[aria-current="true"]::before { background: var(--accent); }
button.citation-ref { background: none; border: 0; color: var(--accent); cursor: pointer; }
button.citation-ref:hover { background: var(--accent-soft); }
.lp-chat .answer-text p { margin: 0; }
.lp-chat .question { max-width: 85%; }
@media (max-width: 760px) { .lp-header { padding: 0 16px; } .lp-more { padding: 16px 16px 32px; } .lp-chat .question { max-width: 92%; } }

.c-hero { max-width: 760px; margin: 0 auto; padding: 56px 24px 40px; text-align: center; }
.c-hero .lp-title { font-size: clamp(36px, 5vw, 56px); }
.c-hero .lp-lede { margin: 0 auto 28px; }
/* Waiting-list form. The state classes (wl-msg, wl-thanks) show through :target, so the states work without JS. */
.text-input { display: block; width: 100%; height: 44px; padding: 0 12px; font: inherit; font-size: 16px; color: var(--ink); border: 1px solid var(--field); border-radius: var(--radius); background: var(--bg); }
.field { min-width: 0; text-align: left; }
.field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; }
.field-error { margin: 6px 0 0; font-size: 12px; color: var(--bad); }
.notice { padding: 12px 14px; margin: 0 auto 16px; max-width: 560px; border-radius: var(--radius); font-size: 13px; text-align: left; }
.notice.alert { background: var(--bad-soft); color: var(--bad); }
.wl-status { margin: 0 0 16px; font-size: 14px; color: var(--muted); }
.wl-note { margin: 12px 0 0; font-size: 12px; color: var(--faint); }
.wl-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; max-width: 520px; margin: 0 auto; }
.wl-form .button { margin-top: 26px; } /* the label's height, so the button sits level with the input even when an error is under it */
.wl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wl-msg, .wl-thanks { display: none; }
.wl-msg:target, .wl-thanks:target { display: block; scroll-margin-top: 420px; } /* keep the title in view when the fragment scrolls here */
.wl-msg:focus, .wl-thanks:focus { outline: none; }
.field:has(.wl-msg:target) .text-input { border-color: var(--bad); }
.wl-box:has(.wl-msg:target) .wl-status, .wl-box:has(.wl-thanks:target) :is(.wl-status, .wl-form) { display: none; }
.wl-thanks { max-width: 560px; margin: 0 auto; padding: 20px; background: var(--ok-soft); border-radius: var(--radius-lg); color: var(--ok); }
.wl-thanks h2 { display: flex; gap: 10px; align-items: center; justify-content: center; margin: 0 0 6px; font-size: 20px; }
.wl-thanks p { margin: 0; }
.wl-check { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--bg); }
.c-story { max-width: 1200px; margin: 0 auto; padding: 0 32px 56px; }
.c-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; min-height: 40px; }
.c-head h2 { margin: 0; font-size: 18px; flex: 1; min-width: 0; }
.lp-scroller { align-items: flex-start; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; border-radius: var(--radius-xl); }
.lp-scroller::-webkit-scrollbar { display: none; }
.c-slide { flex: 0 0 100%; scroll-snap-align: center; background: var(--card); border-radius: var(--radius-xl); padding: 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.c-slide .lp-chat { gap: 18px; }
.c-slide .answer-text { font-size: 18px; line-height: 1.6; }
.c-slide .question { background: var(--bg); font-size: 15px; max-width: 90%; }
.c-evi { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; align-self: start; }
.c-evi .source-chips { padding: 0; }
.c-evi blockquote { margin: 0; font-size: 15px; }
.c-evi .quote-meta { margin: 0; overflow-wrap: anywhere; }
.c-evi .lp-src { display: flex; flex-direction: column; gap: 12px; }
.c-evi .lp-src[hidden] { display: none; }
.c-none { align-self: center; color: var(--muted); font-size: 14px; margin: 0; }
/* [P] Page crop: the real PDF page, zoomed on the verified quote and marked with Paper's highlight. */
.lp-crop { container-type: inline-size; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.lp-pg { position: absolute; }
.lp-pg img { display: block; width: 100%; height: auto; }
.lp-pg i { position: absolute; background: var(--mark-bg); border-radius: var(--mark-radius); mix-blend-mode: multiply; }
.c-bar { display: none; }
@media (max-width: 860px) {
  .c-hero { padding: 28px 16px 24px; }
  .c-hero .lp-lede { font-size: 16px; margin-bottom: 20px; }
  .c-story { padding: 0 16px 96px; }
  .c-slide { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 16px; }
  .c-slide .answer-text { font-size: 16px; }
  .c-head h2 { font-size: 16px; }
  .lp-more { padding-bottom: 96px; }
  .c-bar { display: flex; transform: translateY(100%); transition: transform .2s ease; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); }
  .c-bar.show { transform: none; }
  .c-bar .wl-status { margin: 0; font-size: 13px; }
  .wl-form { grid-template-columns: minmax(0, 1fr); }
  .wl-form .button { width: 100%; margin-top: 0; }
  body:has(#waitlist-thanks:target) .c-bar { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-scroller { scroll-behavior: auto; }
  .c-bar { transition: none; }
}

/* Legal pages (/legal): a plain reading column on the landing's tokens. `mark` shows an open item the owner fills before publishing, so it must not be missed. */
mark { background: rgb(var(--mark-rgb)); color: var(--ink); padding: 0 3px; border-radius: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.lp-legal-page { max-width: 760px; margin: 0 auto; padding: 24px 32px 56px; font-size: 15px; line-height: 1.6; }
.lp-legal-page h1 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 8px; }
.lp-legal-page h2 { font-size: 20px; letter-spacing: -0.01em; margin: 36px 0 12px; scroll-margin-top: 16px; }
.lp-legal-page h3 { margin-top: 24px; scroll-margin-top: 16px; }
.lp-legal-date { color: var(--muted); margin-bottom: 28px; }
.lp-legal-page p, .lp-legal-page li { overflow-wrap: anywhere; }
.lp-legal-page ul, .lp-legal-page ol { padding-left: 22px; }
.lp-legal-page code { font-family: var(--mono); font-size: 0.9em; background: var(--neutral-soft); padding: 1px 4px; border-radius: 4px; }
.lp-legal-page table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 16px 0; font-size: 13px; line-height: 1.5; }
.lp-legal-page th, .lp-legal-page td { text-align: left; vertical-align: top; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); min-width: 120px; }
.lp-legal-page th { font-weight: 600; border-bottom-color: var(--field); }
.lp-legal-page hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.lp-legal-page .lp-legal-index { list-style: none; padding: 0; margin: 20px 0 0; }
.lp-legal-index li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.lp-legal-index span { color: var(--muted); font-size: 13px; }
/* The footer's legal line sits under the folds, across the full width. */
.lp-legal { flex: 0 0 100%; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--muted); }
.lp-legal ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 8px; padding: 0; }
.lp-legal li + li::before { content: "·"; margin: 0 8px; color: var(--faint); }
.lp-legal a { color: var(--muted); }
.lp-legal a:hover { color: var(--ink); }
.lp-legal p { margin: 0; max-width: 40em; }
@media (max-width: 760px) { .lp-legal-page { padding: 16px 16px 40px; } }
/* Keyboard focus is never scrolled under the phone sticky bar. 65px: its measured height at 390px wide. */
@media (max-width: 860px) { html { scroll-padding-bottom: 65px; } }
