/* The public site (docs/brand/site.md): the home page and its few sister pages. Built on the tokens and components in
   app.css; nothing here is a component of the app. Tokens only, no raw color. Phone first: one column, then wider. */

/* A document that scrolls, unlike the app's fixed frame. */
body.site { display: block; height: auto; min-height: 100dvh; overflow: visible; font-size: 1rem; }
body.site main { padding: 0; max-width: none; }
body.site .cover { position: sticky; top: 0; z-index: 20; }
.site-nav { display: flex; align-items: center; gap: var(--space-1); margin-left: auto; }
.site-nav a { color: var(--cover-ink); text-decoration: none; padding: 6px 10px; border-radius: var(--radius); font-size: var(--text-base); }
.site-nav a:hover { color: var(--cover-hi); }
.site-nav a.sign-in { color: var(--cover-hi); border: 1px solid var(--cover-line); margin-left: var(--space-2); }
@media (max-width: 640px) { .site-nav a:not(.sign-in) { display: none; } }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--space-5); }
.wrap.narrow { max-width: 760px; }
body.site section { padding: var(--space-7) 0; scroll-margin-top: 52px; }      /* clear of the sticky cover */
body.site section.band { background: var(--card); border-top: var(--border); border-bottom: var(--border); }
body.site h1 { font-size: clamp(var(--text-4xl), 5.2vw, var(--text-6xl)); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 var(--space-4); }
body.site h2 { font-size: var(--text-3xl); line-height: var(--leading-tight); letter-spacing: -.015em; margin: 0 0 var(--space-4); }
body.site h3 { font-family: var(--serif); font-size: var(--text-xl); line-height: 1.25; font-weight: 600; margin: 0 0 var(--space-2); }
body.site .lead { font-size: var(--text-lg); line-height: 1.5; margin: 0 0 var(--space-5); max-width: 46ch; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.actions .button { margin: 0; width: auto; padding: 12px 20px; font-size: 1rem; }

/* Hero: the pitch, and the product itself beside it. */
.hero .wrap { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: var(--space-7); } }
.hero.plain .wrap { display: block; }
.hero.plain ul.plain { margin: 0 0 var(--space-5); }
.product { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-lg); box-shadow: var(--shadow-2);
           padding: var(--space-4) var(--space-5); display: grid; gap: var(--space-3); }
.product-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); }
.product-head .cap { display: block; margin-bottom: var(--space-2); }
.product-head .seal-mark { flex: none; }
.product .total { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4);
                  border-top: 1px solid var(--rule); padding-top: var(--space-3); }
.product .total strong { display: block; font-size: var(--text-lg); }
.product .total .hint { color: var(--muted); font-size: var(--text-sm); }
.product .total .fig-open { font-size: var(--text-3xl); letter-spacing: -.02em; white-space: nowrap; font-weight: 600; }
.product .fine { margin: 0; }

.problem { text-align: center; }
.quote { font-family: var(--serif); font-size: clamp(var(--text-2xl), 3.4vw, var(--text-4xl)); line-height: 1.2; letter-spacing: -.015em;
         font-weight: 600; margin: 0 0 var(--space-4); }
.quote.small { font-size: var(--text-xl); font-weight: 400; line-height: 1.4; }
.problem p:not(.quote) { color: var(--muted); font-size: var(--text-lg); margin: 0 auto; max-width: 56ch; }

/* Three steps, numbered as a form's lines are, each with the product's own piece under it. */
ol.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5); counter-reset: step; }
@media (min-width: 900px) { ol.steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
ol.steps > li { counter-increment: step; border-top: 1px solid var(--rule); padding-top: var(--space-3); display: flex; flex-direction: column; }
ol.steps > li::before { content: counter(step, decimal-leading-zero); font-family: var(--mono); font-size: var(--text-sm); color: var(--muted); }
ol.steps > li > p { color: var(--muted); margin: 0 0 var(--space-4); }
.moment { margin-top: auto; background: var(--card); border: var(--border); border-radius: var(--radius); padding: var(--space-4);
          display: grid; gap: var(--space-3); }
.moment .cap, .moment p { margin: 0; }
.moment .ok { color: var(--green); font-weight: 600; font-size: var(--text-base); }
dl.proof, dl.flows { margin: 0; display: grid; gap: var(--space-1); }
dl.proof > div, dl.flows > div { display: flex; justify-content: space-between; gap: var(--space-4); }
dl.proof dd, dl.flows dd { margin: 0; }
dl.proof .sum, dl.flows .sum { border-top: 1px solid var(--rule); padding-top: var(--space-1); font-weight: 600; }
ul.legs { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
ul.legs li { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
ul.legs .leg { text-align: right; white-space: nowrap; }
.gross { margin-top: var(--space-6); display: grid; gap: var(--space-5); align-items: center; border-top: 1px solid var(--rule); padding-top: var(--space-5); }
@media (min-width: 900px) { .gross { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-7); } }
.gross p { color: var(--muted); margin: 0; }
dl.flows { background: var(--card); border: var(--border); border-radius: var(--radius); padding: var(--space-4); }
dl.flows .net { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }

ul.points { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
ul.points li { display: grid; gap: var(--space-1); align-content: start; }
ul.points .icon { color: var(--navy); margin-bottom: var(--space-1); }
ul.points span { color: var(--muted); font-size: var(--text-base); }

.built { display: grid; gap: var(--space-5); }
@media (min-width: 900px) { .built { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.built h3 { display: flex; align-items: center; gap: var(--space-2); }
/* Planned work: apart from the lists of what is built, under a dashed rule, in the muted voice. No button. */
.planned { margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px dashed var(--rule); }
.planned h3 { display: flex; align-items: center; gap: var(--space-2); color: var(--muted); }
body.site details.record > summary { padding: 4px 0; font-size: 1rem; }
body.site details.record p { color: var(--muted); margin: var(--space-1) 0 var(--space-2); max-width: 60ch; }

.wrap.two { display: grid; gap: var(--space-6); }
@media (min-width: 900px) { .wrap.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-7); } }
.founder .cap { margin: 0; }
.closing { text-align: center; }
.closing .actions { justify-content: center; }

.site-foot { border-top: var(--border); }
.site-foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); padding-top: var(--space-4); padding-bottom: var(--space-4); }
.site-foot .brand { color: var(--ink); }
.site-foot .fine { margin: 0; flex: 1 1 20rem; }
.site-foot .foot-nav { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); flex: 1 1 100%; font-size: var(--text-base); }

/* The sister pages: a plain hero, then groups of short points in columns. */
.hero.plain h1 { max-width: 20ch; }
.hero .also, p.more { margin: var(--space-4) 0 0; font-size: var(--text-base); }
body.site section.group { padding: var(--space-6) 0; }
ul.points.wide { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-5) var(--space-6); }
ul.points.wide li { border-top: 1px solid var(--rule); padding-top: var(--space-2); }
body.site section.group h2 { display: flex; align-items: center; gap: var(--space-2); }
body.site video.walkthrough { margin: 0 0 var(--space-4); border: var(--border); border-radius: var(--radius); }

/* The pilot request form (ADR 0101): four fields in a card. The trap field is for robots; a person never sees it. */
.hero.plain .wrap.two { display: grid; align-items: start; }
.pilot-form { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: var(--space-5);
              display: grid; gap: var(--space-1); }
.pilot-form label { margin: var(--space-2) 0 var(--space-1); }
.pilot-form button.primary { margin-top: var(--space-4); padding: 12px 20px; font-size: 1rem; }
.pilot-form .fine { margin: var(--space-3) 0 0; }
.pilot-form.sent h2, .pilot-form.sent p { margin: 0 0 var(--space-3); }
.pilot-form .trap { position: absolute; left: -200vw; width: 1px; height: 1px; overflow: hidden; }
