/* app/static/site/site-a.css — the public site's page design.

   Home page A ("refined current", 2026-10-18) set the look; on 2026-10-22
   every page linked from the site nav and footer moved onto it (John: "redo
   all the footer pages too to match"). This file is the ONE source both use:
   type scale, section rhythm, buttons, hero, real-screen figures, cards,
   FAQ, blog cards, plan cards. home.css keeps only what is unique to the
   landing page. The markup comes from site/_page_a.html.

   Everything here is scoped to main.site-a or to its own ha-/hb-/pa- class
   names, so a page that has not opted in is untouched. Uses the site's own
   tokens (styles.css + the vercel theme pack). Light-first since 2026-10-22
   (admin): a visitor with no saved choice gets html[data-theme="light"]
   (site/_layout.html), and dark appears only as accent bands (below); a
   visitor who chose dark still gets the whole site dark.

   Contrast: body copy is --ink, secondary copy --ink-2 (AA in both themes:
   about 8:1 on black, 7.8:1 on white). --ink-3 is never used for text here;
   it fails AA at small sizes. Tap targets are at least 44px tall. */

.site-a { font-size: 17px; line-height: 1.55; }
.site-a section { padding: clamp(64px, 8vw, 112px) 0; border-bottom: 1px solid var(--line); }
.site-a h1, .site-a h2, .site-a h3 { margin: 0; font-weight: 600; text-wrap: balance; }
/* Inner pages carry longer titles than the landing page; home.css sets the
   landing page's larger, narrower h1 on top of this. */
.site-a h1 { font-size: clamp(38px, 5.2vw, 64px); letter-spacing: -0.04em; line-height: 1.04; max-width: 20ch; }
.site-a h2 { font-size: clamp(30px, 3.8vw, 48px); letter-spacing: -0.035em; line-height: 1.06; }
.site-a h3 { font-size: clamp(21px, 2vw, 26px); letter-spacing: -0.025em; line-height: 1.18; }
/* :where() keeps this default at element weight, so the classes below win. */
:where(.site-a) p { margin: 0 0 1em; }

/* Buttons: the site's pill .btn, raised to a 44px tap target here. */
.site-a .btn { height: auto; min-height: 44px; padding: 0 20px; font-size: 15px; font-weight: 600; justify-content: center; }

.ha-lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 38em; margin: 0; }
.ha-lede--section { margin: 16px 0 36px; }
.ha-lede--wide { margin-bottom: clamp(48px, 6vw, 80px); }
.ha-note { font-size: 14px; color: var(--ink-2); margin-top: 16px; }
/* Links: Clean Pro blue (#005ca8) in light, ink in dark; underlined either way (admin 17:32Z). */
.ha-link { color: var(--site-link, var(--ink)); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in oklab, currentColor 45%, transparent); }
.ha-link:hover { text-decoration-color: currentColor; }
.ha-narrow { max-width: 900px; }
.ha-center { text-align: center; }
.ha-center .ha-lede { margin-left: auto; margin-right: auto; }
.ha-center h1, .ha-center h2 { margin-left: auto; margin-right: auto; }

/* ── Hero ── */
.site-a .ha-hero { padding: clamp(56px, 7vw, 96px) 0 clamp(56px, 7vw, 88px); }
.ha-tag { font-size: 14px; color: var(--ink-2); margin-bottom: 22px !important; }
.ha-hero .ha-lede { margin-top: 24px; margin-bottom: 30px; }
.ha-ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.ha-ctas--center { justify-content: center; }
.ha-cta-note { font-size: 14px; color: var(--ink-2); margin-top: 14px !important; }
.ha-hero .ha-shot { margin-top: clamp(40px, 5vw, 64px); }

/* ── A real screen. width/height on the <img> (where known) reserve the box,
   so nothing shifts while it loads. ── */
.ha-shot { margin: 0; }
.ha-shot img, .ha-shot video {
  display: block; width: 100%; height: auto;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
}
.ha-shot figcaption { font-size: 13px; color: var(--ink-2); margin-top: 10px; }

/* ── Blog cards (landing "From the blog" and /resources/blog) ── */
.hb-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 4vw, 48px); }
.hb-head .ha-lede--section { margin-bottom: 0; }
.hb-all { flex: none; }
.hb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.hb-card { padding: 0; overflow: hidden; display: flex; transition: border-color 0.2s ease, transform 0.2s ease; }
.hb-card:hover { transform: translateY(-2px); }
.hb-link { display: flex; flex-direction: column; width: 100%; color: inherit; }
.hb-thumb { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.hb-thumb--blank {
  background:
    radial-gradient(ellipse 70% 80% at 30% 20%, color-mix(in oklab, var(--accent) 16%, transparent), transparent 60%),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    var(--bg-2);
  background-size: auto, 24px 24px, 24px 24px, auto;
}
.hb-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.hb-meta { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.hb-title { font-size: 19px !important; font-weight: 600; letter-spacing: -0.025em; line-height: 1.25; margin: 0 0 10px !important; color: var(--ink); }
.hb-excerpt { margin: 0 0 18px !important; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.hb-more { margin-top: auto; font-size: 14px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent); }
@media (max-width: 1000px) { .hb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  .hb-head { flex-direction: column; align-items: flex-start; }
  .hb-grid { grid-template-columns: 1fr; gap: 12px; }
}

/* ── Plan cards ── */
.ha-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.ha-plan { border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px; background: var(--bg-1); }
.ha-plan--pick { border-color: var(--accent); }
.ha-plan h3 { font-size: 20px; margin-bottom: 6px; }
.ha-price { font-size: 40px; font-weight: 600; letter-spacing: -0.04em; margin: 0 !important; }
.ha-price .per { font-size: 15px; color: var(--ink-2); font-weight: 400; letter-spacing: 0; }
.ha-plan ul { padding: 0; margin: 18px 0 0; list-style: none; font-size: 15px; color: var(--ink-2); }
.ha-plan li { padding: 7px 0; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .ha-plans { grid-template-columns: 1fr; } }

/* ── FAQ: native <details>, no JavaScript. The summary row is the 44px+
   tap target and takes the site's focus ring. ── */
.ha-faq { margin-top: 36px; border-top: 1px solid var(--line); }
.ha-faq details { border-bottom: 1px solid var(--line); }
.ha-faq summary {
  cursor: pointer; list-style: none; position: relative;
  min-height: 44px; padding: 20px 44px 20px 0;
  font-size: 19px; font-weight: 600; letter-spacing: -0.02em;
}
.ha-faq summary::-webkit-details-marker { display: none; }
.ha-faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 24px; font-weight: 400; color: var(--ink-2); }
.ha-faq details[open] summary::after { content: "\2212"; }
.ha-faq .a { padding: 0 0 22px; color: var(--ink-2); max-width: 46em; font-size: 16px; }
.ha-faq .a p:last-child { margin-bottom: 0; }

/* ── Final call to action ── */
.site-a .ha-final { border-bottom: 0; }

/* ════════════════════════════════════════════════════════════════════════
   Inner pages (pa-*): the pieces the landing page does not have, drawn in
   the same hand — hairline rules, 12px radii, ink/ink-2 copy, mono only for
   menu paths.
   ════════════════════════════════════════════════════════════════════════ */

.pa-eyebrow { font-size: 14px; color: var(--ink-2); margin: 0 0 12px !important; }
.pa-head { margin-bottom: clamp(32px, 4vw, 48px); }
.pa-head .ha-lede--section { margin-bottom: 0; }
.pa-meta { font-size: 14px; color: var(--ink-2); margin: 16px 0 0 !important; }

/* Feature rows: text beside a real screen, alternating sides like the
   landing page's questions. A row with no screen is one readable column. */
.pa-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.pa-row + .pa-row { margin-top: clamp(64px, 8vw, 104px); }
.pa-row--flip .pa-row-text { order: 2; }
.pa-row--text { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.pa-row-text h3 { margin-bottom: 14px; }
.pa-row-body { color: var(--ink); font-size: 18px; margin-bottom: 18px !important; }
.pa-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.pa-list li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; color: var(--ink-2); }
@media (max-width: 860px) {
  .pa-row { grid-template-columns: 1fr; }
  .pa-row--flip .pa-row-text { order: 0; }
}

/* Stats */
.pa-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.pa-stat { border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; background: var(--bg); }
.pa-stat-value { font-size: 36px; font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; color: var(--ink); }
.pa-stat-label { font-size: 15px; color: var(--ink); margin-top: 8px; }
.pa-stat-note { font-size: 13px; color: var(--ink-2); margin-top: 8px; }

/* Steps (platform pages: how the feature works, in order) */
.pa-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.pa-step { position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px 20px; background: var(--bg); }
.pa-step-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; background: var(--accent); color: var(--bg); font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.pa-step h3 { font-size: 18px; letter-spacing: -0.02em; margin-bottom: 6px; }
.pa-step p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.pa-where { margin-top: 12px !important; font-size: 13px !important; color: var(--ink-2); }
.pa-where::before { content: "In the app: "; color: var(--ink); }

/* Connections (/api): integrations by group */
.pa-connsec + .pa-connsec { padding-top: 0; }
.pa-conns { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.pa-conn { border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; background: var(--bg); display: flex; flex-direction: column; }
.pa-conn h3 { font-size: 17px; letter-spacing: -0.015em; margin-bottom: 6px; }
.pa-conn p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.pa-conn .pa-where { margin-top: auto !important; padding-top: 12px; }

/* Link cards (industries, guides) */
.pa-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.pa-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; padding: 22px 22px 20px; background: var(--bg); color: inherit; transition: border-color 0.2s ease, transform 0.2s ease; }
.pa-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.pa-card h3 { font-size: 18px; letter-spacing: -0.02em; margin-bottom: 6px; }
.pa-card p { margin: 0 0 16px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.pa-card-more { margin-top: auto; font-size: 14px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent); }

/* Three-up commitments / plain boxes */
.pa-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.pa-box { border: 1px solid var(--line); border-radius: 12px; padding: 24px; background: var(--bg); }
.pa-box h3 { font-size: 18px; letter-spacing: -0.02em; margin-bottom: 10px; }
.pa-box p { margin: 0; font-size: 15px; color: var(--ink-2); }

/* A boxed aside: draft notices, status notes, the founders' note. */
.pa-notice { border: 1px solid var(--line); border-radius: 12px; background: var(--bg-1); padding: 14px 18px; font-size: 14px; color: var(--ink-2); margin: 0 0 32px; }
.pa-banner { margin-top: 32px; padding: 22px 26px; border-radius: 18px; border: 1px solid var(--accent); background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 6%, transparent), transparent); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.pa-banner p { margin: 0; font-size: 17px; font-weight: 600; color: var(--ink); }
.pa-banner small { display: block; font-size: 14px; font-weight: 400; color: var(--ink-2); margin-top: 4px; }

/* Plan cards on /pricing: the catalog card plus its own button. */
.pa-plan { display: flex; flex-direction: column; }
.pa-plan-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pa-plan-top h3 { margin-bottom: 0; }
.pa-pick { font-size: 12px; font-weight: 600; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.pa-plan .ha-price { margin-top: 14px !important; }
.pa-plan-blurb { font-size: 15px; color: var(--ink-2); margin: 10px 0 0 !important; }
.pa-plan ul { flex: 1; }
.pa-plan .btn { width: 100%; margin-top: 22px; }

/* Quote */
.pa-quote { margin: 0; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.35; letter-spacing: -0.02em; color: var(--ink); }
.pa-cite { font-size: 14px; color: var(--ink-2); margin-top: 16px; }

/* Long-form text: legal pages, About, Contact. Rules between items, no
   cards — reading comfort first. */
.pa-prose { max-width: 760px; color: var(--ink-2); font-size: 17px; line-height: 1.7; }
.pa-prose > :first-child { margin-top: 0; }
.pa-prose h2 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.025em; line-height: 1.2; color: var(--ink); margin: 48px 0 14px; }
.pa-prose h3 { font-size: 19px; letter-spacing: -0.015em; color: var(--ink); margin: 28px 0 10px; }
.pa-prose p { margin: 0 0 1em; }
.pa-prose ul, .pa-prose ol { margin: 0 0 1em; padding-left: 1.3em; }
.pa-prose li { margin: 0 0 0.5em; }
.pa-prose strong { color: var(--ink); font-weight: 600; }
.pa-prose a { color: var(--site-link, var(--ink)); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent); overflow-wrap: anywhere; }
.pa-prose a:hover { text-decoration-color: var(--ink); }
.pa-prose table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: 15px; display: block; overflow-x: auto; }
.pa-prose th, .pa-prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.pa-prose th { color: var(--ink); background: var(--bg-1); }
.pa-prose pre { white-space: pre-wrap; font-family: inherit; margin: 0; }
.pa-items { max-width: 760px; border-top: 1px solid var(--line); }
.pa-item { padding: 28px 0; border-bottom: 1px solid var(--line); }
.pa-item h2 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.025em; line-height: 1.2; margin-bottom: 12px; }
.pa-item p { margin: 0; color: var(--ink-2); line-height: 1.7; }

/* Contact form */
.pa-form { display: grid; gap: 14px; max-width: 760px; }
.pa-field {
  width: 100%; min-height: 48px; padding: 12px 16px; font: inherit; font-size: 16px;
  color: var(--ink); background: var(--bg-1);
  border: 1px solid var(--line-2); border-radius: 12px;
}
.pa-field::placeholder { color: var(--ink-2); }
.pa-field:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 25%, transparent); }
.pa-form .btn { justify-self: start; }
.pa-inboxes { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); max-width: 760px; }
.pa-inboxes li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }

/* Founders list (/founding) */
.pa-ranks { display: flex; flex-direction: column; gap: 8px; max-width: 640px; margin: 0 auto; }
.pa-rank { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 11px 16px; background: var(--bg); text-align: left; }
.pa-rank-n { flex: 0 0 26px; text-align: center; font: 600 15px/1 "Geist Mono", ui-monospace, monospace; color: var(--accent); }
.pa-rank img { width: 36px; height: 36px; object-fit: contain; flex: none; }
.pa-rank-who { min-width: 0; flex: 1; }
.pa-rank-who b { display: block; font-size: 15px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pa-rank-who span { font-size: 13px; color: var(--ink-2); }

/* Live-diagram / video frames carried over from the old pages */
.pa-figure { margin: 0; }
.pa-figure svg { max-width: 100%; height: auto; }
.pa-video { position: relative; border-radius: 12px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; border: 1px solid var(--line-2); }
.pa-video video { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 600px) {
  .site-a { font-size: 16px; }
  .ha-faq summary { font-size: 17px; }
  .ha-ctas .btn { flex: 1 1 auto; }
  .pa-row-body { font-size: 17px; }
  .pa-banner { flex-direction: column; align-items: flex-start; }
  .pa-banner .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hb-card, .hb-card:hover, .pa-card, .pa-card:hover { transition: none; transform: none; }
}

/* A notice under the hero's buttons */
.pa-notice--after { margin: 28px 0 0; max-width: 760px; }
.pa-hero-video { margin-top: clamp(40px, 5vw, 64px); }
.pa-subhead { font-size: clamp(24px, 2.6vw, 32px) !important; margin: clamp(48px, 6vw, 72px) 0 16px !important; }
.pa-after-lede { margin-top: -6px; }
.pa-team-note { margin-top: 48px; }
.site-a .pa-error { padding: clamp(96px, 12vw, 160px) 0; }

/* /resources/blog: the landing page's blog cards, as a list */
.pa-bloglist { list-style: none; padding: 0; margin: 0; }
.pa-tags { list-style: none; padding: 0; margin: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.pa-tags li { font-size: 12px; color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.post-related { margin: 48px 0 0; max-width: 760px; }
.post-related p { margin: 0; }
.pa-prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.pa-prose code { font-family: "Geist Mono", ui-monospace, monospace; font-size: 0.88em; background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.pa-prose img { max-width: 100%; height: auto; border-radius: 12px; }
.pa-lede-2 { margin-top: 16px !important; }
.pa-founders-note { margin: 36px auto 0; max-width: 640px; text-align: left; font-size: 15px; }
.pa-founders-note strong { color: var(--ink); }

/* Text pages (legal, About, Contact, a blog post): the title sits on the text
   it introduces, without a rule and a second section gap between them. */
.site-a .pa-doc-hero { padding-bottom: clamp(32px, 4vw, 48px); border-bottom: 0; }
.site-a .pa-doc-hero + section { padding-top: 0; }
/* The document body under that title (legal pages, a blog post): the page's
   last section, so no closing rule. Not .ha-final, which is the dark
   closing call-to-action band in the light theme. */
.site-a .pa-doc-body { border-bottom: 0; }
.ha-hero .pa-notice { max-width: 760px; }

/* ── Dark accent bands in the light theme (admin 10-22: light-first, dark
   only where it helps). The closing call to action on every page and the
   home video strip re-declare the dark tokens for themselves, so everything
   inside them (buttons, links, cards) follows. Contrast on these bands:
   --ink 18:1 and --ink-2 9.9:1 on #0a0a0a. ── */
html[data-theme="light"] .site-a .ha-final,
html[data-theme="light"] .site-a #videos {
  --bg: #0a0a0a; --bg-1: #111113; --bg-2: #18181b; --bg-3: #1f1f23;
  --line: rgba(255,255,255,0.10); --line-2: rgba(255,255,255,0.18);
  --ink: #f4f4f5; --ink-2: #b4b4b8; --ink-3: #8b8b90;
  background: var(--bg); color: var(--ink); border-bottom-color: transparent;
}
html[data-theme="light"] .site-a .ha-final h2,
html[data-theme="light"] .site-a #videos h2 { color: var(--ink); }
