/* Stellar marketing site.
   Poster series on warm paper, two lights. Criteria CF Bold for headlines, Geist for everything readable, Geist Mono for labels and data.
   Ember and lime only ever appear as light (image, texture, highlight), never as text or a UI fill on paper.
   Download is the one solid button per view: night on paper, lime on night. No italics. */

@font-face { font-family: 'Geist'; src: url('/assets/fonts/Geist-Variable.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/assets/fonts/GeistMono-Variable.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
/* Headline face, the same file the old stellarco/site ships. One weight only, so every weight maps to it rather than being faked. */
@font-face { font-family: 'CriteriaCF-Bold'; src: url('/assets/fonts/CriteriaCF-Bold.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'CriteriaCF-Bold'; src: url('/assets/fonts/CriteriaCF-BoldOblique.woff2') format('woff2'); font-weight: 100 900; font-style: italic; font-display: swap; }
/* Only for the Halden brand book example */
@font-face { font-family: 'Fraunces'; src: url('/assets/fonts/Fraunces-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --primary: #ED785D;        /* Ember: upper leaf, dither fields */
  --secondary: #D1F96C;      /* Signal Lime: lower leaf, the download band */
  --paper: #ECE9E1;          /* page ground */
  --surface: #F5F3EE;        /* cards and screenshot frames on paper */
  --night: #0B0A0C;          /* night bands, headline ink, Download on paper */
  --night-2: #1A181B;        /* surfaces inside night bands */
  --fg: #141215;             /* body text on paper */
  --fg-2: #66625B;           /* captions, corner labels (5.1:1 on paper) */
  --rule: #CFCAC0;           /* hairlines on paper */
  --rule-night: #2E2B2F;     /* hairlines on night */
  --fg-night: #ECE9E1;
  --fg-night-2: #9B978F;

  --display: 'Geist', -apple-system, 'Helvetica Neue', sans-serif;
  --sans: 'Geist', -apple-system, 'Helvetica Neue', sans-serif;
  --headline: 'CriteriaCF-Bold', 'Geist', -apple-system, 'Helvetica Neue', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', monospace;

  /* Side margin of the page. On wide screens it grows instead, so the content stops at --page and sits in the
     middle while the bands keep their color edge to edge. The frame (content plus the 56px margins) is 1552px. */
  --page: 1440px;
  --frame: calc(var(--page) + 112px);
  --margin: max(clamp(20px, 4.375vw, 56px), (100vw - var(--page)) / 2);
  --sec-top: clamp(48px, 7.5vw, 96px);   /* corner marks to a band's content */
  --sec-pad: clamp(72px, 8.75vw, 112px); /* bottom of a band */
  --r-ui: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
/* What shows past the end of the page, under Safari's floating toolbar, is the footer's night, not paper */
html { -webkit-text-size-adjust: 100%; background: var(--night); }
/* Smooth for in-page link clicks only; a deep link on load jumps straight there */
@media (prefers-reduced-motion: no-preference) { html:focus-within { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--fg); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
:where(i, em, q, cite, address, dfn) { font-style: normal; }
q { quotes: none; }
:focus-visible { outline: 2px solid var(--night); outline-offset: 3px; }
.on-night :focus-visible, .s-footer :focus-visible { outline-color: var(--fg-night); }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 300; background: var(--night); color: var(--fg-night); padding: 10px 14px; border-radius: 8px; font-size: 15px; }
.skip-link:focus { top: 12px; }
#main:focus { outline: none; } /* where Skip lands: focused only to move the reading position */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---- primitives ---------------------------------------------------------------- */
.headline { font-family: var(--headline); font-weight: 700; color: var(--night); letter-spacing: -0.02em; line-height: .96; text-wrap: balance; }
.on-night .headline { color: var(--fg-night); }
h3, dt, .wm, .spec { font-weight: 500; letter-spacing: -0.03em; }
.lead { font-size: 21px; line-height: 1.45; color: var(--fg); max-width: 34ch; text-wrap: pretty; }
.body { font-size: 17px; line-height: 1.55; color: var(--fg-2); max-width: 46ch; text-wrap: pretty; }
.on-night .lead { color: var(--fg-night); }
.on-night .body { color: var(--fg-night-2); }
.label { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-2); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .01em; color: var(--fg-2); }
.on-night .label, .on-night .mono { color: var(--fg-night-2); }
.marks { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--sans); font-size: 16px; font-weight: 500; padding: 14px 24px; border-radius: 999px; border: 1px solid transparent; line-height: 1; white-space: nowrap; letter-spacing: -.01em; cursor: pointer; background: none; transition: background .2s, color .2s; }
.btn-solid { background: var(--night); color: var(--fg-night); }
.btn-solid:hover { background: #2A272B; }
.btn-ghost { border-color: var(--fg); color: var(--fg); }
.btn-ghost:hover { background: var(--night); color: var(--fg-night); }
.link { font-size: 16px; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: color .2s; }
.link:hover { color: var(--fg-2); }

.grain::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .18; mix-blend-mode: multiply; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Screenshot placeholder on night */
.shot { aspect-ratio: 16 / 10; border-radius: var(--r-ui); border: 1px dashed #3A363B; background: repeating-linear-gradient(0deg, transparent 0 47px, #1E1C20 47px 48px), repeating-linear-gradient(90deg, transparent 0 47px, #1E1C20 47px 48px), var(--night-2); display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 20px 24px; }
/* The real thing: a looping video of the Stellar window, edge to edge in the same 16:10 box */
.shot.vid { display: block; padding: 0; border: 1px solid var(--rule-night); background: var(--night-2); overflow: hidden; }
.shot.vid video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---- nav ----------------------------------------------------------------------- */
.s-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; height: 80px; padding: 0 var(--margin); background: var(--paper); border-bottom: 1px solid var(--rule); }
.s-nav .wm { justify-self: start; display: block; line-height: 0; }
.s-nav .wm img { height: 28px; width: auto; }
.s-nav nav { display: flex; gap: 36px; font-size: 15px; font-weight: 500; }
.s-nav nav a { transition: color .2s; }
.s-nav nav a:hover { color: var(--fg-2); }
.s-nav .r { justify-self: end; display: flex; align-items: center; gap: 20px; }
.s-nav .btn { padding: 11px 18px; font-size: 14px; }

/* ---- hero: the same poster Stellar draws in the tour ----------------------------- */
.s-hero { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: clamp(600px, calc(100svh - 80px), 68.75vw); padding: 28px var(--margin) clamp(32px, 4.375vw, 56px); }
.s-hero .tl { position: absolute; left: var(--margin); right: var(--margin); top: 84px; z-index: 1; display: flex; justify-content: space-between; border-top: 1px solid var(--rule); }
.s-hero .tl span { font-family: var(--mono); font-size: 11px; color: var(--fg-2); border-left: 1px solid var(--fg-2); padding: 4px 0 0 6px; height: 20px; }
.s-hero .art { position: absolute; left: 0; top: 8.6vw; width: 100%; height: auto; z-index: 0; }
.s-hero .title { position: relative; z-index: 2; margin: auto 0 clamp(24px, 2.6vw, 40px); max-width: 9.2em; font-weight: 700; letter-spacing: -.03em; line-height: .9; font-size: clamp(64px, min(13.44vw, 19svh, (100vw - 2 * var(--margin)) / 7.8), 240px); } /* "Design with AI." is about 7.4em in Criteria; capped by the column so it stays on one line inside the margins */
.s-hero .title em { font-style: italic; font-synthesis: none; } /* "with" in Criteria Bold Oblique (never a fake slant: no synthesis if the file doesn't load) */
.s-hero .title br { display: none; } /* phones break after "Design" instead (below) */
.s-hero .row { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; border-top: 2px solid var(--night); padding-top: 24px; }
.s-hero .row .lead { max-width: 40ch; font-size: 20px; }
.s-hero .cta { display: flex; align-items: center; gap: 24px; }
.s-hero .cta .btn { padding: 18px 30px; font-size: 17px; font-weight: 600; }
.s-hero .small { margin-top: 12px; text-align: right; }

/* ---- 00 under the hood ------------------------------------------------------------ */
.s-runs { background: var(--night); color: var(--fg-night); padding: 28px var(--margin) var(--sec-pad); }
.s-runs .grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; margin-top: var(--sec-top); align-items: end; }
.s-runs h2 { font-size: clamp(44px, 5.625vw, 88px); max-width: 10ch; }
.s-runs ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; border-top: 1px solid var(--rule-night); padding-top: 24px; }
.s-runs li .mono { display: block; margin-bottom: 14px; }
.s-runs li p { font-size: 17px; line-height: 1.5; color: var(--fg-night); }
.s-runs li p span { color: var(--fg-night-2); }
.s-runs .shot { margin-top: clamp(48px, 5.6vw, 72px); }

/* ---- 01 board ------------------------------------------------------------------------ */
.s-board { position: relative; height: 1080px; padding: 28px var(--margin); overflow: hidden; }
.s-board .center { position: absolute; left: 50%; top: 57%; z-index: 1; width: 580px; transform: translate(-50%, -50%); text-align: center; }
.s-board h2 { font-size: 96px; }
.s-board .center .body { margin: 28px auto 0; max-width: 38ch; }
.s-board .ext { margin-top: 28px; display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px 9px 10px; background: var(--surface); border: 1px solid var(--rule); border-radius: 999px; font-size: 14px; font-weight: 500; box-shadow: 0 14px 30px -18px rgba(20,18,21,.4); }
.s-board .ext i { width: 18px; height: 18px; border-radius: 50%; background: var(--night); display: grid; place-items: center; }
.s-board .ext i::after { content: ''; width: 7px; height: 7px; border-radius: 0 100% 0 100%; background: var(--secondary); }
.s-board .cards { position: absolute; inset: 0; }
.s-board .c { position: absolute; width: var(--w); }
.s-board .th { position: relative; overflow: hidden; width: 100%; aspect-ratio: var(--ar, 4 / 5); background: var(--night); }
.s-board figcaption { margin-top: 10px; display: flex; flex-direction: column; gap: 3px; }
.s-board figcaption .mono { font-size: 11px; }
.s-board figcaption q { font-size: 15px; line-height: 1.3; color: var(--fg); }
.s-board .t-check { background: conic-gradient(#0C7F63 25%, #000 0 50%, #0C7F63 0 75%, #000 0) 0 0 / 44px 44px; }
.s-board .t-blur { background: var(--surface); border: 1px solid var(--rule); }
.s-board .t-blur::before, .s-board .t-blur::after { content: ''; position: absolute; left: 10%; width: 90%; height: 34%; border-radius: 0 100% 0 100%; filter: blur(16px); }
.s-board .t-blur::before { top: 16%; background: var(--primary); }
.s-board .t-blur::after { top: 52%; left: 0; background: var(--secondary); }
.s-board .t-half { background: var(--surface); border: 1px solid var(--rule); }
.s-board .t-half::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at center, var(--night) 0 36%, transparent 40%) 0 0 / 9px 9px; -webkit-mask: radial-gradient(ellipse 62% 52% at 42% 58%, #000 25%, transparent 70%); mask: radial-gradient(ellipse 62% 52% at 42% 58%, #000 25%, transparent 70%); }
.s-board .t-type { background: var(--surface); border: 1px solid var(--rule); display: grid; place-items: center; font-family: var(--display); font-weight: 500; letter-spacing: -.05em; font-size: clamp(56px, 8.6vw, 110px); color: var(--night); line-height: 1; }
.s-board .t-scan::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, var(--primary) 0 5px, transparent 5px 8px); -webkit-mask: linear-gradient(170deg, #000 40%, transparent 41%, transparent 58%, #000 59%); mask: linear-gradient(170deg, #000 40%, transparent 41%, transparent 58%, #000 59%); }

/* ---- 02 plan -------------------------------------------------------------------------- */
.s-plan { padding: 28px var(--margin) var(--sec-pad); border-top: 1px solid var(--rule); }
.s-plan .g { display: grid; grid-template-columns: 5fr 6fr; gap: 80px; margin-top: var(--sec-top); align-items: end; }
.s-plan h2 { font-size: clamp(52px, 8.125vw, 112px); }
.s-plan .l .body { margin-top: 32px; }
.s-plan .steps { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px 28px; }
.s-plan .steps li { display: flex; align-items: center; gap: 10px; }
.s-plan .steps b { font-family: var(--mono); font-weight: 400; font-size: 12px; width: 24px; height: 24px; border: 1px solid var(--fg); border-radius: 50%; display: grid; place-items: center; }
.s-plan .doc { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-ui); box-shadow: 0 30px 60px -30px rgba(20,18,21,.35); padding: clamp(20px, 2.5vw, 32px); padding-top: clamp(20px, 2.2vw, 28px); }
.s-plan .you { margin-left: auto; max-width: 78%; background: var(--night); color: var(--fg-night); padding: 12px 16px; border-radius: 14px 14px 4px 14px; font-size: 15px; line-height: 1.45; }
.s-plan .ai { margin-top: 14px; font-size: 15px; color: var(--fg-2); }
.s-plan .sheet { margin-top: 22px; border-top: 1px solid var(--rule); }
.s-plan .sheet > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.s-plan .sheet p { font-size: 16px; line-height: 1.45; }
.s-plan .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.s-plan .chip { font-size: 13px; font-weight: 500; border: 1px dashed #A9A398; padding: 5px 10px; border-radius: 6px; }
.s-plan .sw { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.s-plan .sw i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0,0,0,.08); }
.s-plan .sw span { font-size: 16px; margin-left: 6px; font-weight: 500; letter-spacing: -.03em; }
.s-plan .foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; }
.s-plan .foot .btn { padding: 11px 18px; font-size: 14px; cursor: default; }
.s-plan .foot .btn:hover { background: none; color: var(--fg); }

/* ---- 03 canvas ------------------------------------------------------------------------- */
.s-canvas { position: relative; overflow: hidden; background: var(--night); color: var(--fg-night); padding: 28px var(--margin) var(--sec-pad); }
.s-canvas h2 { margin-top: var(--sec-top); max-width: 13ch; font-size: clamp(52px, 9vw, 160px); }
/* The draft stack: eight old drafts edge on, each a step further right and a little brighter, under the current one
   (Drift's two screens). The current card has the brightest edge on the band, so the quiet ones behind read as history.
   site.js moves these same cards when the last three drafts play in, the first time the stack comes into view */
.s-canvas .drafts { position: relative; margin-top: clamp(48px, 5vw, 72px); aspect-ratio: 16 / 7; }
.s-canvas .drafts i, .s-canvas .draft { position: absolute; top: 0; bottom: 0; width: 70.2%; border-radius: var(--r-ui); }
.s-canvas .drafts i { left: calc(var(--i) * 3.725%); background: var(--night); border: 1px solid rgba(236, 233, 225, calc(.05 + var(--i) * .035)); }
/* Drift's sky deepening to dusk behind its night screens (its App Store blue), so the navy screens stand clear of the
   card. Night covers it as a card steps back into the stack (site.js sets --solid, 1 to 0); both are the card's own
   background, so they follow its corners exactly and the edge sits on the sky as a light rim */
.s-canvas .draft { right: 0; margin: 0; display: flex; align-items: center; justify-content: center; gap: 3.2%; background: linear-gradient(rgba(11, 10, 12, calc(1 - var(--solid, 1))) 0 0), linear-gradient(180deg, #8DC5F1, #4C7FC0); border: 1px solid rgba(236, 233, 225, .55); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.s-canvas .draft img { height: 88%; width: auto; aspect-ratio: 600 / 1301; border-radius: clamp(10px, 2.6vw, 34px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 18px 36px -20px rgba(3, 25, 50, .5); }
.s-canvas .hist { margin-top: clamp(32px, 4.4vw, 64px); }
.s-canvas .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 3.1vw, 56px); margin-top: clamp(48px, 5.6vw, 80px); }
.s-canvas .cols > div { border-top: 2px solid var(--fg-night); padding-top: clamp(24px, 2.8vw, 40px); }
.s-canvas .cols .mono { color: var(--fg-night-2); }
.s-canvas .cols h3 { margin-top: 16px; font-size: clamp(26px, 2.35vw, 34px); line-height: 1.15; color: var(--fg-night); }
.s-canvas .cols .body { margin-top: 10px; font-size: 18px; color: #B9B5AD; }

/* ---- 04 brands ------------------------------------------------------------------------- */
.s-brand { padding: 28px var(--margin) calc(var(--sec-pad) + 16px); }
.s-brand .g { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(48px, 5.6vw, 72px); margin-top: var(--sec-top); align-items: center; }
.s-brand .book { display: grid; grid-template-columns: 1fr 1fr; aspect-ratio: 16 / 10.5; box-shadow: 0 0 0 1px rgba(20,18,21,.09), 0 1px 2px rgba(20,18,21,.06), 0 10px 22px -14px rgba(20,18,21,.14), 0 30px 54px -36px rgba(20,18,21,.2); transform: rotate(-2deg); } /* the light page is close to the paper: a hairline and a close shadow keep its edges, a soft long one lifts the book */
.s-brand .pg { position: relative; min-width: 0; padding: clamp(16px, 2.2vw, 28px); display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.s-brand .p1 { background: linear-gradient(270deg, rgba(0,0,0,.28), rgba(0,0,0,0) 22px) #2B2420; color: #EFE7DA; } /* both pages darken into the gutter, so it reads as an open book */
.s-brand .p1 .mono, .s-brand .p1 .label { color: #B9AE9E; }
.s-brand .p1 .bt { font-family: 'Fraunces', Georgia, serif; font-weight: 400; font-size: clamp(32px, 4.2vw, 54px); line-height: .95; letter-spacing: -.02em; }
.s-brand .p1 .mk { width: 56px; height: 56px; border-radius: 50%; background: #B8643E; position: relative; }
.s-brand .p1 .mk::after { content: ''; position: absolute; inset: 16px; border-radius: 50%; background: #2B2420; }
.s-brand .p2 { background: linear-gradient(90deg, rgba(43,36,32,.10), rgba(43,36,32,0) 18px) #FAF7F1; color: #2B2420; }
.s-brand .p2 .label { color: #6E6458; }
.s-brand .stripes { display: grid; grid-template-rows: 2fr 1fr 1fr 1fr; gap: 6px; flex: 1; margin: 6px 0; }
.s-brand .stripes div { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding: 8px 10px; font-family: var(--mono); font-size: 12px; font-weight: 500; }
.s-brand .stripes div:last-child { box-shadow: inset 0 0 0 1px rgba(43,36,32,.10); } /* Slip is nearly the page's own color */
.s-brand .p2 .spec { font-family: 'Fraunces', Georgia, serif; font-weight: 400; font-size: clamp(22px, 2.35vw, 30px); line-height: 1; letter-spacing: 0; }
.s-brand h2 { font-size: clamp(48px, 6.875vw, 96px); }
.s-brand .r .body { margin-top: 28px; }
.s-brand dl { margin-top: 36px; border-top: 1px solid var(--rule); }
.s-brand dl div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 16px; align-items: baseline; }
.s-brand dl dt { letter-spacing: .06em; }
.s-brand dd { color: var(--fg); }

/* ---- 05 made in stellar ----------------------------------------------------------------- */
.s-made { padding: 28px var(--margin) var(--sec-pad); border-top: 1px solid var(--rule); }
.s-made .hd { display: grid; grid-template-columns: 7fr 4fr; gap: 64px; align-items: end; margin-top: var(--sec-top); }
.s-made h2 { font-size: clamp(52px, 8.125vw, 112px); }
.s-made .sheet { display: grid; grid-template-columns: 6fr 3fr 3fr; gap: 24px; margin-top: clamp(40px, 5vw, 64px); align-items: start; }
.s-made .col { display: flex; flex-direction: column; gap: 24px; }
.s-made .sub { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.s-made .art { display: block; width: 100%; height: auto; border-radius: 6px; background: var(--night); }
.s-made video.art { aspect-ratio: 1200 / 630; object-fit: cover; } /* the share card's own shape, so nothing is cropped */
.s-made .ph { border: 1px dashed #A9A398; background: var(--surface); }
.s-made figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; }

/* ---- 06 questions ------------------------------------------------------------------------ */
.s-faq { padding: 28px var(--margin) calc(var(--sec-pad) + 16px); border-top: 1px solid var(--rule); }
.s-faq .g { display: grid; grid-template-columns: 4fr 7fr; gap: 80px; margin-top: var(--sec-top); }
.s-faq h2 { font-size: clamp(48px, 6.875vw, 96px); }
.s-faq dl { border-top: 1px solid var(--night); }
.s-faq dl > div { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; padding: 26px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.s-faq dt { font-size: 26px; line-height: 1.15; color: var(--night); text-wrap: balance; }
.s-faq dd { font-size: 17px; line-height: 1.55; color: var(--fg-2); }
.s-faq dd code { font-family: var(--mono); font-size: 14px; color: var(--fg); }
.s-faq dd a { color: var(--fg); border-bottom: 1px solid currentColor; }
.s-faq dd a:hover { color: var(--fg-2); }

/* ---- 07 download + footer ---------------------------------------------------------------- */
.s-download { position: relative; overflow: hidden; background: var(--secondary); color: var(--night); padding: 28px var(--margin) 0; }
.s-download .label { color: #3D4A1A; }
.s-download .top { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; margin-top: clamp(48px, 5.6vw, 72px); align-items: end; }
.s-download .top > p { font-size: clamp(19px, 1.72vw, 22px); line-height: 1.4; max-width: 30ch; }
.s-download .act { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 16px 24px; }
.s-download .act .btn { padding: 20px 34px; font-size: 18px; font-weight: 600; }
.s-download .alt { margin-top: 14px; text-align: right; }
.s-download .alt a { border-bottom: 1px solid currentColor; }
/* Same echo as "Nine drafts." above: outline slices of the word build up to the solid one. Sized so the word always fits the band. */
/* Edge to edge: the word bleeds about half a vw off both sides so no lime ever shows at either edge; the band clips the overshoot. */
.s-download .stack { margin: clamp(40px, 5vw, 64px) calc(-1 * var(--margin)) 0; padding-bottom: .05em; font-size: 20.6vw; text-indent: calc(-.055em - .5vw); }
.s-download .bw { display: block; font-family: var(--headline); font-weight: 700; letter-spacing: -.04em; line-height: .74; white-space: nowrap; }
/* Outline drafts: whole words, each stepped .26em down so they overlap, under the solid final one */
.s-download .bw.o { height: .26em; color: transparent; -webkit-text-stroke: 1.5px var(--night); }
/* Same stroke as the outlines, so the solid word reaches exactly as far as they do */
.s-download .bw.fin { -webkit-text-stroke: 1.5px var(--night); }

.s-footer { background: var(--night); color: var(--fg-night); padding: 40px var(--margin) 32px; }
.s-footer .cols { display: grid; grid-template-columns: 3fr 2fr 2fr 2fr; gap: 32px; }
.s-footer .label, .s-footer .mono { color: var(--fg-night-2); }
.s-footer .wm { display: block; line-height: 0; }
.s-footer .wm img { height: 34px; width: auto; }
.s-footer .tag { margin-top: 14px; max-width: 28ch; font-size: 15px; color: var(--fg-night-2); }
.s-footer ul { margin-top: 12px; display: grid; gap: 8px; font-size: 15px; }
.s-footer ul a { transition: color .2s; }
.s-footer ul a:hover { color: var(--fg-night-2); }
.s-footer .legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--rule-night); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; }
/* the right of the bottom line: the requirements, then Privacy and Terms in the same small gray, lighter on hover */
.s-footer .fine { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.s-footer .fine a { transition: color .2s; }
.s-footer .fine a:hover { color: var(--fg-night); }
/* X and Instagram under the tagline: round outline buttons, the icon in the footer's text color */
.s-footer .social { margin-top: 20px; display: flex; gap: 10px; }
.s-footer .social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--rule-night); color: var(--fg-night); transition: border-color .2s, color .2s; }
.s-footer .social a:hover { border-color: var(--fg-night-2); color: var(--fg-night-2); }
.s-footer .social svg { width: 16px; height: 16px; }

/* ---- responsive ---------------------------------------------------------------------------- */
@media (max-width: 1099px) {
  .s-board { height: auto; padding-bottom: var(--sec-pad); }
  .s-board .center { position: static; width: auto; max-width: 640px; margin: var(--sec-top) auto 0; transform: none; }
  .s-board h2 { font-size: clamp(48px, 9vw, 88px); }
  .s-board .cards { position: static; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 20px; margin-top: 64px; align-items: start; }
  .s-board .c { position: static; width: auto; }
  .s-board .c:last-child { grid-column: span 2; }
}

@media (max-width: 999px) {
  .s-nav .r .label { display: none; }

  .s-hero { min-height: 0; padding-bottom: 40px; }
  .s-hero .tl { position: relative; left: auto; right: auto; top: auto; margin-top: 28px; }
  .s-hero .art { position: relative; top: auto; width: 160%; max-width: none; margin: 4px 0 -19% -52%; }
  .s-hero .title { margin: 0 0 28px; font-size: clamp(36px, min(20vw, (100vw - 2 * var(--margin)) / 4.6), 128px); } /* two lines, Design / with AI.; "with AI." is about 4.1em */
  .s-hero .title br { display: inline; }
  .s-hero .row { flex-direction: column; align-items: stretch; gap: 28px; }
  .s-hero .small { text-align: left; }

  .s-runs .grid, .s-plan .g, .s-brand .g, .s-faq .g { grid-template-columns: 1fr; gap: 48px; }
  .s-canvas .cols { grid-template-columns: 1fr; gap: 40px; }
  .s-brand .book { max-width: 640px; }
  .s-made .hd { grid-template-columns: 1fr; gap: 24px; }
  .s-made .sheet { grid-template-columns: 1fr 1fr; }
  .s-made .col:first-child { grid-column: 1 / -1; }
  .s-download .top { grid-template-columns: 1fr; gap: 32px; }
  .s-download .act { justify-content: flex-start; }
  .s-download .alt { text-align: left; }
}

@media (max-width: 799px) {
  .s-canvas .drafts { aspect-ratio: 4 / 3; }
}

@media (max-width: 699px) {
  .s-nav { grid-template-columns: auto 1fr; height: 64px; }
  .s-nav .wm img { height: 24px; }
  .s-nav nav { justify-self: end; gap: 20px; }
  .s-nav .r { display: none; }

  .s-hero .cta { flex-direction: row-reverse; justify-content: flex-end; flex-wrap: wrap; gap: 16px 24px; }
  .s-hero .cta .btn { padding: 16px 24px; font-size: 16px; }

  .s-runs ol { grid-template-columns: 1fr; gap: 24px; }
  .shot { padding: 14px 16px; }
  .s-board .cards { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .s-plan .sheet > div { grid-template-columns: 76px 1fr; gap: 12px; }
  .s-plan .you { max-width: 92%; }
  .s-brand .book { aspect-ratio: auto; min-height: 300px; }
  .s-brand .p1 .mk { width: 40px; height: 40px; }
  .s-brand .p1 .mk::after { inset: 12px; }
  .s-brand .stripes div { padding: 6px 8px; font-size: 10px; }
  .s-brand .stripes div span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .s-brand dl div { grid-template-columns: 84px 1fr; }
  .s-faq dl > div { grid-template-columns: 1fr; gap: 10px; padding: 22px 0; }
  .s-faq dt { font-size: 22px; }
  .s-download .act .btn { padding: 18px 28px; font-size: 17px; }
  .s-footer .cols { grid-template-columns: 1fr 1fr; }
  .s-footer .cols > :first-child { grid-column: 1 / -1; }
}

/* ---- fit fixes ------------------------------------------------------------------------------ */
/* Screenshots never run taller than the window: at most 100vh less 160px (80 above, 80 below),
   narrowing and centering to keep 16:10 rather than cropping. */
.shot { width: min(100%, calc(max(100vh - 160px, 320px) * 1.6)); margin-inline: auto; }
/* Criteria is wider than the old headline face: at 96px "remembers" alone outgrew the 580px column,
   so the title broke onto four lines and its top ran into the card above. 80px keeps it to three. */
@media (min-width: 1100px) { .s-board h2 { font-size: 80px; } }
/* Download line is two sentences on two lines; 30ch would break the first one again */
.s-download .top > p { max-width: none; }
/* "Inspiration that remembers why." on two lines on desktop, rather than four stacked words */
@media (min-width: 1100px) { .s-board .center { width: 640px; } .s-board h2 { font-size: 72px; } }
/* Below 1100px the same title stacked into four lines: 48px on phones and 88px on tablets were both too big
   for "remembers why." on one line. Size it to the column instead (that line measures about 8.7em in Criteria)
   so it sits on two lines everywhere, capped at 70px against the 640px column. */
@media (max-width: 1099px) { .s-board h2 { font-size: min(70px, calc((100vw - 2 * var(--margin)) / 9)); } }
/* iOS Safari colors the strip under its floating toolbar from the body's background, not html's, and
   body was paper. Paint the paper on #site instead and leave body clear, so what shows past the page is
   html: night under the footer, the canvas color during the tour (html.tour-on in tour.css). */
body { background: transparent; }
#site { background: var(--paper); }
/* ...but with body clear, the status bar took html's night. Safari tints the status bar from body's
   background-color, so make that paper and paint the body itself night (hidden under #site anyway). */
body { background: #ECE9E1 linear-gradient(#0B0A0C, #0B0A0C); }
/* Corrects the two notes above, from testing in the iOS 26 Simulator: a body background-color, if set, tints
   both the status bar and the toolbar solid. With body clear, both take html's background, live, with the
   toolbar fading over the page under it. So: body stays clear, html is paper, and turns night while the
   footer is on screen (site.js adds html.at-foot). */
body { background: transparent; }
html { background: var(--paper); }
html.at-foot { background: var(--night); }

/* ---- wide screens ---------------------------------------------------------------------------- */
/* Past the 1552px frame, --margin keeps the content at 1440px and centered (see :root). These are the pieces that
   sized themselves off the window's width rather than the column: they size off the frame instead, so wider windows
   get the 1552px layout with more of each band's color on either side. Heights still follow the window's height. */
@media (min-width: 1553px) {
  .s-hero { min-height: clamp(600px, calc(100svh - 80px), calc(var(--frame) * .6875)); }
  .s-hero .art { left: max(0px, calc((100% - var(--frame)) / 2)); width: min(100%, var(--frame)); top: calc(var(--frame) * .086); }
  .s-runs h2 { font-size: calc(var(--frame) * .05625); }
  .s-board .cards { left: max(0px, calc((100% - var(--frame)) / 2)); right: max(0px, calc((100% - var(--frame)) / 2)); }
  .s-canvas h2 { font-size: calc(var(--frame) * .09); }
  .s-canvas .cols { gap: calc(var(--frame) * .031); }
  /* the Download word spans the frame instead of the window, overshooting it a little on each side as it does the window */
  .s-download .stack { margin-inline: -56px; font-size: calc(var(--frame) * .206); text-indent: calc(-.055em - var(--frame) * .005); }
}
