/* Glimmer Capture marketing site. Tokens come from tokens.css. No frameworks. One web font for headlines
   (--font-display, shared with the Wherry site); body and mono are system fonts. The structure (numbered exhibits with a
   sticky Contents, Fig. N captions, Look closer, Example tags) is the Wherry site's, so the family reads as one. */

/* ---------- Fonts (self-hosted; the CSP allows font-src 'self') ----------
   Glimmer Display: Mona Sans by GitHub (SIL OFL 1.1), width 110, weights 600-800, Latin subset, renamed because "Mona"
   is a Reserved Font Name. The same file as the Wherry site's display face. The fallback face is Arial Bold scaled to
   the same average advance, so swapping fonts doesn't reflow the headlines. */
@font-face {
  font-family: "Glimmer Display";
  src: url("../fonts/glimmer-display.3ea89acb55.woff2") format("woff2");
  font-weight: 600 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Glimmer Display Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Neue Bold"), local("HelveticaNeue-Bold");
  font-weight: 600 800; size-adjust: 108%; ascent-override: 100%; descent-override: 29%; line-gap-override: 0%;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 80px; background: var(--bg-base); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text-primary);
  font: 400 17px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern";
  overflow-x: hidden;
}
img, video, svg, picture { max-width: 100%; }
img, video { height: auto; display: block; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; font-weight: 700; text-wrap: balance; }
/* Marketing headlines: the display face. Docs keep the system face (docs.css). */
.hero h1, .chapter h2, .closer h2, .page-hero h1, .page-head h1, .notfound h1, .section-faq h2, .features-head h1, .download h1 {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02;
}
p { margin: 0 0 1em; text-wrap: pretty; }
code, kbd, pre { font-family: var(--font-mono); font-size: 0.88em; }
code { background: var(--bg-raised); border: 1px solid var(--border-subtle); border-radius: 5px; padding: 0.08em 0.35em; }
kbd { border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 5px; padding: 0.05em 0.4em; color: var(--text-secondary); background: var(--bg-surface); font-size: 0.78em; }
s { color: var(--text-tertiary); }
::selection { background: rgba(79, 216, 235, 0.32); }
figure { margin: 0; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: var(--radius-control); }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.wrap-narrow { max-width: 820px; }
.wrap-mid { max-width: 980px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font: 600 15px/1 var(--font-sans); letter-spacing: -0.005em;
  padding: 12px 18px; border-radius: var(--radius-control); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background var(--motion-fast) var(--ease), border-color var(--motion-fast) var(--ease), transform var(--motion-fast) var(--ease), box-shadow var(--motion-fast) var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 1px rgba(139, 232, 245, 0.35) inset, 0 10px 30px -12px rgba(79, 216, 235, 0.55); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--bg-raised); color: var(--text-primary); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: #46507a; background: #1D2233; }
.btn-ghost { background: transparent; color: var(--text-primary); border-color: var(--border-subtle); }
.btn-ghost:hover { border-color: var(--border-strong); }
.btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }
.btn-lg { font-size: 16px; padding: 14px 22px; border-radius: 11px; }
.btn-sm { font-size: 13px; padding: 8px 12px; border-radius: var(--radius-control); box-shadow: none; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 8, 12, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text-primary); font: 800 18px/1 var(--font-display); letter-spacing: -0.02em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.site-nav { display: flex; gap: 0; margin-left: 12px; flex: 1; align-self: stretch; }
.site-nav a { display: flex; align-items: center; color: var(--text-secondary); font-size: 14px; font-weight: 500; padding: 0 16px; position: relative; }
.site-nav a:hover { color: var(--text-primary); background: var(--bg-surface); text-decoration: none; }
/* The current page: a lit edge in the glimmer gradient under the link. */
.site-nav a[aria-current="page"] { color: var(--text-primary); background: var(--bg-surface); }
.site-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--glimmer-line); }
.header-cta { margin-left: auto; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; padding: 8px; border-radius: var(--radius-control); color: var(--text-primary); display: flex; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; padding: 8px;
  background: var(--bg-raised); border: 1px solid var(--border-strong); border-radius: var(--radius-card);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); display: flex; flex-direction: column;
}
.menu-panel a { color: var(--text-primary); padding: 10px 12px; border-radius: var(--radius-control); }
.menu-panel a:hover { background: var(--bg-surface); text-decoration: none; }
@media (max-width: 860px) {
  .site-nav { display: none; }
  .menu { display: block; }
  .header-inner { gap: 12px; }
}

/* ---------- Language menu (templates/_lang.html; shown once a second language is published) ---------- */
.lang-menu { position: relative; flex: none; margin-left: auto; }
.lang-menu ~ .header-cta, .docs-search-btn ~ .lang-menu { margin-left: 0; }
.lang-menu > summary { list-style: none; }
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-button { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 9px 0 10px; border: 1px solid var(--border-subtle);
  border-radius: var(--radius-control); background: var(--bg-surface); color: var(--text-secondary); font: 600 12px/1 var(--font-mono); cursor: pointer; }
.lang-flag, .lang-item-flag { flex: none; width: 16px; height: 16px; border-radius: 50%; }
.lang-chevron { width: 10px; height: 7px; fill: none; stroke: var(--text-tertiary); stroke-width: 1.6; }
.lang-list { position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; min-width: 216px; padding: 6px; background: var(--bg-raised);
  border: 1px solid var(--border-strong); border-radius: var(--radius-card); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); }
.lang-list-title { margin: 0; padding: 6px 10px 8px; font: 500 11.5px/1.3 var(--font-mono); color: var(--text-tertiary); }
.lang-items { display: grid; margin: 0; padding: 0; list-style: none; }
.lang-item { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 6px; color: var(--text-secondary); font-size: 14px; }
.lang-item:hover { background: var(--bg-surface); color: var(--text-primary); text-decoration: none; }
.lang-item[aria-current="true"] { color: var(--text-primary); font-weight: 600; }
.lang-item-name { flex: 1; }
.lang-item-code { font: 500 11px/1 var(--font-mono); color: var(--text-tertiary); }
.lang-offer { background: var(--bg-surface); border-bottom: 1px solid var(--border-subtle); }
.lang-offer-inner { display: flex; align-items: center; gap: 12px; min-height: 52px; }
.lang-offer p { margin: 0; flex: 1; font-size: 14px; color: var(--text-secondary); }
.lang-offer-close { display: inline-flex; padding: 8px; border: 0; background: transparent; color: var(--text-tertiary); cursor: pointer; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border-subtle); background: var(--bg-base); margin-top: 96px; padding: 56px 0 28px; color: var(--text-secondary); font-size: 14px; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--glimmer-line); opacity: 0.35; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 48px; }
.footer-brand p { margin-top: 12px; max-width: 34ch; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.footer-cols h2 { font: 500 12px/1.4 var(--font-mono); color: var(--text-tertiary); margin-bottom: 12px; letter-spacing: 0; }
.footer-cols a { display: block; color: var(--text-secondary); padding: 3px 0; overflow-wrap: anywhere; }
.footer-cols a:hover { color: var(--text-primary); }
.footer-cols .footer-link { display: block; padding: 3px 0; border: 0; background: none; font: inherit; color: var(--text-secondary); text-align: start; cursor: pointer; }
.footer-cols .footer-link:hover { color: var(--text-primary); text-decoration: underline; }
.footer-cols .footer-link[hidden] { display: none; }
.footer-family span { display: block; font-size: 12.5px; color: var(--text-tertiary); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border-subtle); color: var(--text-tertiary); font-size: 13px; }
@media (max-width: 860px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Editorial pieces: Example tags, Fig. captions, Look closer, eyebrows ---------- */
.tag-example { display: inline-block; flex: none; font: 500 11.5px/1 var(--font-mono); color: var(--text-tertiary); padding: 5px 7px; border: 1px solid var(--border-strong); border-radius: 5px; background: var(--bg-base); }
.fig { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; margin: 18px 0 0; font-size: 14px; color: var(--text-tertiary); max-width: 82ch; }
.fig > b { flex: none; font: 500 12.5px/1 var(--font-mono); color: var(--text-secondary); }
.fig > span:not(.tag-example) { flex: 1 1 30ch; min-width: 0; }
.fig code { font-size: 12.5px; }
.label { font: 500 13px/1.4 var(--font-mono); color: var(--text-tertiary); margin: 0 0 14px; }
.eyebrow { font: 500 13px/1.4 var(--font-mono); color: var(--text-tertiary); margin: 0 0 18px; display: inline-flex; align-items: center; gap: 10px; }
.look { margin-top: 36px; }
.look-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 32px; }
.look-list li { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 12px; align-content: start; }
.look-n { grid-row: span 3; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 600 11.5px/1 var(--font-mono); color: var(--text-primary); background: var(--accent-soft); border: 1px solid var(--accent-line); margin-top: 1px; }
.look-n.is-redaction { background: var(--redaction-soft); border-color: rgba(255, 184, 107, 0.5); }
.look-list h3 { font-size: 15.5px; margin: 0 0 3px; letter-spacing: -0.01em; }
.look-list p { font-size: 14.5px; color: var(--text-secondary); margin: 0 0 6px; line-height: 1.5; }
.more { font-size: 14.5px; font-weight: 600; color: var(--text-primary); }
.more::after { content: " ›"; color: var(--accent-text); }
@media (max-width: 760px) { .look-list { grid-template-columns: 1fr; gap: 18px; } }

/* ---------- Hero: the lens ---------- */
.hero { position: relative; padding: 88px 0 24px; isolation: isolate; overflow-x: clip; }
.hero::before { /* the faintest wash of the ring's light on the ground */
  content: ""; position: absolute; z-index: -1; right: -10%; top: -20%; width: 70%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(155, 140, 255, 0.10), rgba(79, 216, 235, 0.05) 55%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 32px 56px; align-items: center; }
.hero h1 { font-size: clamp(48px, 7.6vw, 104px); line-height: 0.94; letter-spacing: -0.045em; margin: 0 0 28px; }
/* The full stop is a tiny lens in the glimmer colors. */
.lens-dot { display: inline-block; width: 0.2em; height: 0.2em; margin-left: 0.05em; border-radius: 50%; background: var(--glimmer);
  vertical-align: baseline; box-shadow: 0 0 0.3em rgba(155, 140, 255, 0.5); }
.lede { font-size: clamp(18px, 1.7vw, 20px); color: var(--text-secondary); max-width: 36em; margin: 0 0 32px; line-height: 1.55; }
.lede strong { color: var(--text-primary); font-weight: 600; }
.lede-sm { font-size: 18px; color: var(--text-secondary); max-width: 42em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { color: var(--text-tertiary); font-size: 14px; margin-top: 18px; }
.hero-meta a { color: var(--text-secondary); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }

.lens { position: relative; width: min(100%, 460px); aspect-ratio: 1; justify-self: center; --ring: 7%; }
.lens-halo { position: absolute; inset: -14%; border-radius: 50%; background: var(--glimmer); filter: blur(60px); opacity: 0.22; }
/* --sweep: how much of the ring is drawn, clockwise from 12 o'clock. 360deg (all of it) unless the draw-in animation
   below runs, so the ring is whole with reduced motion, without @property support and without JavaScript. site.js reads
   it each frame to spark bubbles off the drawing edge. */
@property --sweep { syntax: "<angle>"; inherits: false; initial-value: 360deg; }
.lens-ring { position: absolute; inset: 0; border-radius: 50%; background: var(--glimmer);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--ring)), #000 calc(100% - var(--ring) + 1px)),
    conic-gradient(from -1deg, #000 calc(var(--sweep) + 1deg), transparent 0);
  -webkit-mask-composite: source-in;
  mask: radial-gradient(farthest-side, transparent calc(100% - var(--ring)), #000 calc(100% - var(--ring) + 1px)),
    conic-gradient(from -1deg, #000 calc(var(--sweep) + 1deg), transparent 0);
  mask-composite: intersect;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06); }
.lens-ring::after { /* a hairline of light on the inner edge of the ring */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(farthest-side, transparent calc(100% - var(--ring) - 1px), rgba(255, 255, 255, 0.55) calc(100% - var(--ring)), transparent calc(100% - var(--ring) + 3px)); }
/* Inside the glass: a frozen app window, magnified (the SVG scene in home.html). */
.lens-glass { position: absolute; inset: calc(var(--ring) - 1px); border-radius: 50%; overflow: hidden; background: #0F1320;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.65), inset 0 0 0 1px rgba(0, 0, 0, 0.6); }
.lens-scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lens-shine { position: absolute; inset: -20%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(255, 255, 255, 0.0) 200deg, rgba(255, 255, 255, 0.10) 230deg, rgba(255, 255, 255, 0.0) 260deg, transparent 360deg); }
/* The icon's capture-frame corners, one per hue of the ring. */
.lens-corner { position: absolute; width: 13%; height: 13%; border: 0 solid; border-radius: 4px; }
.lens-corner:nth-of-type(1) { left: -9%; top: -9%; border-width: 5px 0 0 5px; border-color: var(--g-corner-tl); border-top-left-radius: 14px; }
.lens-corner:nth-of-type(2) { right: -9%; top: -9%; border-width: 5px 5px 0 0; border-color: var(--g-corner-tr); border-top-right-radius: 14px; }
.lens-corner:nth-of-type(3) { right: -9%; bottom: -9%; border-width: 0 5px 5px 0; border-color: var(--g-corner-br); border-bottom-right-radius: 14px; }
.lens-corner:nth-of-type(4) { left: -9%; bottom: -9%; border-width: 0 0 5px 5px; border-color: var(--g-corner-bl); border-bottom-left-radius: 14px; }
.lens-readout { position: absolute; left: 50%; bottom: -2px; transform: translate(-50%, 50%); margin: 0; display: flex; gap: 8px; white-space: nowrap; }
.lens-readout > span { font: 600 12.5px/1 var(--font-mono); padding: 8px 10px; border-radius: 7px; }
.lens-frozen { display: inline-flex; align-items: center; gap: 7px; background: var(--bg-raised); color: var(--text-primary); border: 1px solid var(--border-strong); }
.lens-frozen i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.lens-size { background: var(--accent); color: var(--on-accent); }
@media (prefers-reduced-motion: no-preference) {
  .lens-shine { animation: lens-turn 18s linear infinite; }
  .lens-halo { animation: lens-breathe 9s ease-in-out infinite alternate; }
  .lens { animation: lens-in 900ms var(--ease) both; }
  .lens-ring { animation: lens-draw 1.8s cubic-bezier(0.5, 0.05, 0.3, 1) 0.35s both; }
}
@keyframes lens-draw { from { --sweep: 0deg; } to { --sweep: 360deg; } }
.lens-sparks { position: absolute; left: -35%; top: -35%; width: 170%; height: 170%; pointer-events: none; z-index: 3; }
@keyframes lens-turn { to { transform: rotate(360deg); } }
@keyframes lens-breathe { from { opacity: 0.16; } to { opacity: 0.28; } }
@keyframes lens-in { from { opacity: 0; transform: scale(0.94); } }
@media (max-width: 960px) {
  .hero { padding-top: 56px; }
  .hero-grid { grid-template-columns: 1fr; }
  .lens { width: min(70vw, 320px); margin: 36px 0 48px; justify-self: center; }
}

/* ---------- The live demo under the hero ---------- */
.demo-hero { padding: 72px 0 0; }
.demo { position: relative; margin: 0; }
.demo-frame > .shot img, .demo-frame .shot img { border-radius: 14px; }
.demo-narrow { max-width: 540px; }
/* "Try it" hints: demos.js un-hides them once its demo is mounted. */
.demo-try { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font: 500 12.5px/1.4 var(--font-mono); color: var(--text-tertiary); }
.demo-try[hidden] { display: none; }
.demo-try-label { color: var(--accent-text); }
.demo-try li:not(.demo-try-label)::before { content: "→ "; color: var(--text-tertiary); }

/* ---------- The film ---------- */
.film { padding: 96px 0 0; }
.film-video { width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; border: 1px solid var(--border-strong); background: var(--bg-surface); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); }

/* ---------- Long form: sticky numbered Contents + chapters ---------- */
.longform { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 56px; padding-top: 128px; align-items: start; }
.contents { position: sticky; top: 92px; font-size: 14.5px; }
.contents summary { list-style: none; font: 500 13px/1.4 var(--font-mono); color: var(--text-tertiary); margin-bottom: 14px; cursor: default; }
.contents summary::-webkit-details-marker { display: none; }
.contents ol { list-style: none; margin: 0; padding: 0; }
.contents li a { display: grid; grid-template-columns: 30px minmax(0, 1fr); padding: 6px 0; color: var(--text-secondary); line-height: 1.35; position: relative; }
.contents li a:hover { color: var(--text-primary); text-decoration: none; }
.contents li a span { font: 500 12px/1.6 var(--font-mono); color: var(--text-tertiary); }
.contents li a[aria-current="true"] { color: var(--text-primary); }
.contents li a[aria-current="true"] span { color: var(--accent-text); }
.contents li a[aria-current="true"]::before { content: ""; position: absolute; left: -14px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--glimmer); }
.contents .contents-extra { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border-subtle); }
.chapters { min-width: 0; }
.chapter { padding: 0 0 120px; scroll-margin-top: 84px; }
.chapter-n { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 14px; font-size: 15px; color: var(--text-secondary); }
.chapter-n > span:first-child { font: 500 13px/1 var(--font-mono); color: var(--accent-text); }
.chapter h2 { font-size: clamp(36px, 4.8vw, 60px); max-width: 16ch; margin: 0 0 24px; }
.chapter-text { max-width: 640px; }
.chapter-text p { font-size: 18px; line-height: 1.6; color: var(--text-secondary); }
.chapter-text p strong { color: var(--text-primary); font-weight: 600; }
.chapter h3 { font-size: 20px; letter-spacing: -0.015em; }
.exhibit { margin: 40px 0 0; }
/* Meaning colors mark their chapters (never decoration elsewhere). */
.chapter-redaction .chapter-n > span:first-child, .chapter-redaction .chapter-text strong { color: var(--redaction); }
.chapter-time-travel .chapter-n > span:first-child, .chapter-time-travel .chapter-text strong { color: var(--time-travel); }
.chapter-record .chapter-n > span:first-child, .chapter-record .chapter-text strong { color: var(--record); }
.chapter-redaction .demo-frame .shot img { box-shadow: 0 0 0 1px rgba(255, 184, 107, 0.25), 0 30px 80px rgba(0, 0, 0, 0.55); }
.chapter-time-travel .demo-frame .shot img { box-shadow: 0 0 0 1px rgba(155, 140, 255, 0.28), 0 30px 80px -10px rgba(155, 140, 255, 0.18); }
.chapter-record .demo-frame .shot img { box-shadow: 0 0 0 1px rgba(255, 92, 122, 0.25), 0 30px 80px -10px rgba(255, 92, 122, 0.14); }
strong.verified { color: var(--verified); }
@media (max-width: 1000px) {
  .longform { grid-template-columns: 1fr; gap: 0; padding-top: 96px; }
  .contents { position: static; margin-bottom: 56px; border: 1px solid var(--border-subtle); border-radius: var(--radius-card); background: var(--bg-surface); padding: 4px 16px; }
  .contents summary { cursor: pointer; margin: 0; padding: 12px 0; display: flex; justify-content: space-between; color: var(--text-secondary); }
  .contents summary::after { content: "+"; color: var(--text-tertiary); }
  .contents details[open] summary::after { content: "–"; }
  .contents ol { padding-bottom: 10px; }
  .contents li a[aria-current="true"]::before { display: none; }
  .chapter { padding-bottom: 96px; }
}

/* ---------- Pieces reused inside chapters ---------- */
.shot { display: block; }
.shot img { width: 100%; border-radius: 12px; border: 1px solid var(--border-strong); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); background: var(--app-ground); }

.points { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 36px; }
.points h3 { font-size: 16.5px; letter-spacing: -0.01em; margin-bottom: 4px; }
.points p { font-size: 15px; margin: 0; color: var(--text-secondary); }
@media (max-width: 560px) { .points { grid-template-columns: 1fr; gap: 20px; } }

.ticks { list-style: none; padding: 0; margin: 20px 0 0; }
.ticks li { position: relative; padding-left: 28px; margin: 0 0 10px; color: var(--text-secondary); font-size: 16px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.42em; width: 13px; height: 7px; border-left: 2px solid var(--accent-text); border-bottom: 2px solid var(--accent-text); transform: rotate(-45deg); }
.ticks-redaction li::before { border-color: var(--redaction); }
.ticks-verified li::before { border-color: var(--verified); }
.ticks-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.ticks-2 li { font-size: 15px; }
@media (max-width: 560px) { .ticks-2 { grid-template-columns: 1fr; } }

.badge { display: inline-block; font: 600 10.5px/1 var(--font-mono); letter-spacing: 0.03em; text-transform: uppercase; padding: 4px 6px; border-radius: 5px; vertical-align: 0.1em; white-space: nowrap; }
/* Pro wears the glimmer ring as its border: a brand moment, small. */
.badge-pro { color: var(--text-primary); border: 1px solid transparent; background: linear-gradient(var(--bg-raised), var(--bg-raised)) padding-box, var(--glimmer-line) border-box; }
.badge-beta { color: var(--text-secondary); border: 1px dashed var(--border-strong); background: transparent; }

.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.split .exhibit { margin-top: 40px; }
@media (max-width: 1100px) { .split { grid-template-columns: 1fr; gap: 8px; } }

.demo-foot { margin: 18px 0 0; font-size: 14px; color: var(--text-tertiary); max-width: 760px; }
.demo-foot a { color: var(--text-secondary); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }

/* The command line chapter: a static terminal transcript (the cli demo's no-JavaScript fallback). */
.term { border: 1px solid var(--app-border); border-radius: 12px; overflow: hidden; background: var(--app-canvas); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.75); }
.term-bar { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-bottom: 1px solid var(--app-hairline); background: var(--app-chrome); }
.term-bar span { flex: none; width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; }
.term-bar span:nth-child(2) { background: #FEBC2E; }
.term-bar span:nth-child(3) { background: #28C840; }
.term-bar b { flex: 1; margin-right: 52px; text-align: center; font-size: 13px; font-weight: 600; color: var(--app-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term-screen { margin: 0; padding: 14px 18px 20px; overflow-x: auto; color: var(--app-text-secondary); font: 13px/1.55 var(--font-mono); }
.term-ps1 { color: var(--app-text-tertiary); }
.term-cmd { color: var(--app-text-primary); }
.term-ok { color: var(--verified); }
@media (max-width: 560px) { .term-screen { font-size: 11.5px; padding: 10px 12px 14px; } .term-bar b { margin-right: 0; } }

/* Better together: Glimmer + Wherry */
.family { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 56px; align-items: center; }
.family-pair { display: flex; align-items: center; gap: 18px; }
.family-card { width: 190px; padding: 22px 20px; border: 1px solid var(--border-subtle); border-radius: var(--radius-card); background: var(--bg-surface); display: grid; gap: 6px; }
.family-card img { border-radius: 13px; margin-bottom: 8px; }
.family-card b { font: 800 19px/1.1 var(--font-display); letter-spacing: -0.02em; }
.family-card span { font-size: 13.5px; color: var(--text-secondary); line-height: 1.45; }
.family-glimmer { border-color: transparent; background: linear-gradient(var(--bg-surface), var(--bg-surface)) padding-box, var(--glimmer-line) border-box; }
.family-plus { font: 800 28px/1 var(--font-display); color: var(--text-tertiary); }
@media (max-width: 1100px) { .family { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .family-pair { flex-direction: column; align-items: stretch; } .family-card { width: auto; } .family-plus { text-align: center; } }

/* ---------- Pricing ---------- */
.section-pricing { padding: 24px 0 24px; }
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; max-width: 920px; margin: 0 auto; }
.plan { display: flex; flex-direction: column; background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 16px; padding: 28px; }
.plan header { margin-bottom: 8px; }
.plan h3 { font-size: 19px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.plan-featured { position: relative; background: linear-gradient(var(--bg-raised), var(--bg-raised)) padding-box, var(--glimmer-line) border-box; border: 1px solid transparent; box-shadow: 0 30px 80px -30px rgba(155, 140, 255, 0.35); }
.plan-price { margin: 0 0 8px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; min-height: 48px; }
.price { display: inline-flex; align-items: baseline; gap: 10px; }
.plan-price .price-now { font: 800 48px/1 var(--font-display); letter-spacing: -0.03em; }
.plan-price .price-was { font-size: 22px; font-weight: 500; }
.price-tba { font: 700 22px/1.2 var(--font-display); letter-spacing: -0.02em; color: var(--text-primary); align-self: center; }
.price-suffix { color: var(--text-tertiary); font-size: 15px; font-weight: 500; }
.plan-terms { color: var(--text-secondary); font-size: 15px; }
.plan .ticks { margin: 8px 0 24px; flex: 1; }
.plan .ticks li { font-size: 15px; }
.plan-foot { color: var(--text-tertiary); font-size: 13px; margin: 14px 0 0; line-height: 1.5; }
.pricing-note { color: var(--text-tertiary); font-size: 14px; text-align: center; max-width: 64em; margin: 28px auto 0; }
.pricing-note a { color: var(--text-secondary); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
@media (min-width: 861px) {
  @supports (grid-template-rows: subgrid) {
    .pricing-grid { grid-template-rows: auto 1fr auto auto; row-gap: 0; }
    .pricing-grid .plan { display: grid; grid-row: span 4; grid-template-rows: subgrid; }
  }
}
@media (max-width: 860px) { .pricing-grid { grid-template-columns: 1fr; max-width: 560px; } }
.chapter .pricing-grid { margin: 0; }
.chapter .pricing-note { text-align: left; margin-left: 0; }

.compare-title { font-size: 24px; margin: 72px 0 18px; text-align: center; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-card); overflow: hidden; }
.compare-wrap { max-width: 920px; margin: 0 auto; border-radius: var(--radius-card); }
.compare th, .compare td { padding: 12px 18px; border-bottom: 1px solid var(--border-subtle); text-align: left; }
.compare thead th { font: 500 12px/1.4 var(--font-mono); color: var(--text-tertiary); background: var(--bg-raised); }
.compare td, .compare thead th:not(:first-child) { text-align: center; width: 88px; }
.compare tbody th { font-weight: 500; color: var(--text-primary); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.ico-yes { color: var(--accent-text); vertical-align: middle; }
.ico-no { color: var(--text-tertiary); }
.compare-note { color: var(--text-tertiary); font-size: 14px; max-width: 920px; margin: 16px auto 0; text-align: center; }
@media (max-width: 560px) {
  .compare th, .compare td { padding: 11px 10px; }
  .compare td, .compare thead th:not(:first-child) { width: 52px; }
  .compare tbody th { font-size: 14px; }
}

/* ---------- FAQ ---------- */
.section-faq { padding: 40px 0 0; }
.section-faq h2 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 24px; }
.faq details { border-bottom: 1px solid var(--border-subtle); }
.faq details:first-child { border-top: 1px solid var(--border-subtle); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--text-tertiary); border-bottom: 2px solid var(--text-tertiary); transform: translateY(-70%) rotate(45deg); transition: transform var(--motion-fast) var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { color: var(--text-secondary); margin: -4px 0 22px; max-width: 64ch; }

/* ---------- Closer ---------- */
.closer { padding: 120px 0 24px; }
.closer-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; border-top: 1px solid var(--border-subtle); padding-top: 56px; }
.closer h2 { font-size: clamp(36px, 4.8vw, 60px); margin: 0 0 12px; }
.closer p { color: var(--text-secondary); margin: 0; }
@media (max-width: 760px) { .closer-inner { grid-template-columns: 1fr; } }

/* ---------- Generic pages ---------- */
.page-hero { padding: 80px 0 40px; text-align: center; }
.page-hero h1 { font-size: clamp(40px, 5.6vw, 68px); }
.page-hero .lede { margin-left: auto; margin-right: auto; }
.page-article { padding-top: 72px; }
.page-head { margin-bottom: 40px; }
.page-head h1 { font-size: clamp(38px, 5vw, 58px); }
.notice { border-radius: var(--radius-card); padding: 12px 16px; font-size: 15px; border: 1px solid var(--border-strong); background: var(--bg-surface); color: var(--text-secondary); }
.notice strong { color: var(--text-primary); }
.notice-warning { border-color: rgba(255, 184, 107, 0.45); background: var(--redaction-soft); color: #FFE2C2; }
.notice-warning strong { color: var(--redaction); }
.notice-soon { border-color: var(--accent-line); background: var(--accent-soft); margin: 8px 0 20px; }
.notfound { padding: 96px 24px 40px; position: relative; }
.notfound h1 { font-size: clamp(38px, 5.6vw, 60px); }
.notfound .lede-sm { margin: 0 0 28px; }
.notfound-lens { position: relative; width: 96px; height: 96px; margin-bottom: 28px; --ring: 14%; }

.download-head { display: flex; gap: 28px; align-items: center; margin-bottom: 28px; }
.download-icon { flex: none; filter: drop-shadow(0 18px 40px rgba(155, 140, 255, 0.3)); }
.download-head h1 { font-size: clamp(38px, 5vw, 58px); margin-bottom: 8px; }
.download-head .lede-sm { margin: 0; }
.download-req { color: var(--text-tertiary); font-size: 14.5px; margin: 16px 0 32px; }
@media (max-width: 560px) { .download-head { flex-direction: column; align-items: flex-start; } .download-icon { width: 96px; height: 96px; } }

/* ---------- Forms and license pages: /contact/, /recover/, /buy/, /renew/ (the Wherry site's, in Glimmer's tokens) ---------- */
[data-checkout-status].is-error { color: var(--state-danger); }
.buy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding-top: 8px; padding-bottom: 8px; }
.buy-grid .plan h2, .solo .plan h2 { font-size: 19px; letter-spacing: -0.01em; margin-bottom: 14px; }
.buy-grid .plan > .btn { margin-top: auto; }
.buy-more { text-align: center; color: var(--text-secondary); font-size: 15px; margin-top: 28px; }
.buy-page .notice, .buy-page .prose { margin-top: 24px; }
.checkout-form { display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; align-items: end; margin-top: auto; }
.checkout-form label { grid-column: 1 / -1; font-size: 13px; color: var(--text-secondary); font-weight: 600; }
.checkout-form input, .contact-form input, .contact-form select, .contact-form textarea {
  font: 15px/1.45 var(--font-sans); color: var(--text-primary); background: var(--bg-inset); border: 1px solid var(--border-strong);
  border-radius: 8px; padding: 11px 12px; min-width: 0; width: 100%;
}
.checkout-form input:focus, .contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--accent-text); outline-offset: 0; border-color: transparent; }
/* One-card pages (/recover/, /renew/, /contact/): a single centred card with its notes below. */
.solo { max-width: 520px; padding-top: 8px; }
.solo-wide { max-width: 640px; }
.solo .notice { margin-top: 16px; }
.solo.prose { padding-top: 24px; padding-bottom: 32px; }
.solo.prose h2:first-child { margin-top: 1em; }
@media (max-width: 760px) { .buy-grid { grid-template-columns: 1fr; } .checkout-form { grid-template-columns: 1fr; } }
.contact-form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 13px; color: var(--text-secondary); font-weight: 600; }
.contact-form textarea { resize: vertical; min-height: 9em; }
.contact-form select {
  appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%237C859C' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field-hint { margin: 0; font-size: 13px; color: var(--text-tertiary); line-height: 1.5; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-actions .plan-foot { margin: 0; flex: 1; min-width: 12em; }
/* The honeypot: off screen and hidden from assistive tech, but not display:none (some robots skip hidden fields). */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-alt { color: var(--text-secondary); font-size: 15px; margin: 18px 0 0; text-align: center; }
.form-privacy { color: var(--text-tertiary); font-size: 13px; margin: 8px 0 0; text-align: center; }
.form-alt a, .form-privacy a { text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
.notice-error { border-color: rgba(255, 92, 122, 0.45); background: rgba(255, 92, 122, 0.08); color: #FFD3DB; }
.notice-error a { color: inherit; text-decoration: underline; }
.form-fallback { margin: 0; }
/* Errors from a plain (no-JavaScript) post come back as ?error=<code>#error-<code> and show through :target. */
.form-error:not(:target) { display: none; }
.form-errors .form-error { margin: 0 0 16px; scroll-margin-top: 96px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* Prose (generic pages; docs extend this in docs.css) */
.prose { font-size: 17px; line-height: 1.7; }
.prose h2 { font-size: 26px; margin-top: 2em; }
.prose h3 { font-size: 20px; margin-top: 1.6em; }
.prose p, .prose li { color: var(--text-secondary); }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose strong { color: var(--text-primary); }
.prose a { text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
.prose a.anchor { text-decoration: none; }
.prose img { border-radius: var(--radius-card); border: 1px solid var(--border-subtle); }
.prose hr { border: 0; border-top: 1px solid var(--border-subtle); margin: 2.5em 0; }
.prose blockquote { margin: 1.4em 0; padding: 4px 18px; border-left: 3px solid var(--border-strong); color: var(--text-secondary); }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 0 0 1.4em; }
.prose th, .prose td { border-bottom: 1px solid var(--border-subtle); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { color: var(--text-tertiary); font: 500 12px/1.4 var(--font-mono); }
.prose td:first-child { color: var(--text-primary); }
.prose pre { background: var(--bg-inset); border: 1px solid var(--border-subtle); border-radius: var(--radius-card); padding: 16px 18px; overflow-x: auto; line-height: 1.55; }
.prose pre code { background: none; border: 0; padding: 0; font-size: 14px; }
.prose details { border: 1px solid var(--border-subtle); border-radius: var(--radius-control); padding: 8px 14px; margin: 0 0 1em; background: var(--bg-surface); }
.prose details summary { cursor: pointer; color: var(--text-secondary); }
.prose details pre { white-space: pre-wrap; font-size: 12.5px; }
/* GitHub-style alerts on generic pages (> [!NOTE] …); docs.css styles the same markup inside the docs. */
.prose blockquote[class^="markdown-alert-"] { border-left-width: 3px; border-radius: 0 var(--radius-card) var(--radius-card) 0; background: var(--bg-surface); padding: 12px 18px; }
.prose blockquote[class^="markdown-alert-"] > :last-child { margin-bottom: 0; }
.prose blockquote[class^="markdown-alert-"]::before { display: block; font: 500 12px/1.4 var(--font-mono); margin-bottom: 6px; }
.prose .markdown-alert-note { border-left-color: var(--accent-blue); }
.prose .markdown-alert-note::before { content: "Note"; color: var(--accent-text); }
.prose .markdown-alert-tip { border-left-color: var(--state-success); }
.prose .markdown-alert-tip::before { content: "Tip"; color: var(--state-success); }
.prose .markdown-alert-important { border-left-color: var(--accent-violet); }
.prose .markdown-alert-important::before { content: "Important"; color: var(--time-travel); }
.prose .markdown-alert-warning { border-left-color: var(--state-warning); }
.prose .markdown-alert-warning::before { content: "Warning"; color: var(--state-warning); }
.prose .markdown-alert-caution { border-left-color: var(--state-danger); }
.prose .markdown-alert-caution::before { content: "Caution"; color: var(--state-danger); }
.anchor { margin-left: 0.4em; color: var(--text-tertiary); opacity: 0; font-weight: 400; text-decoration: none; }
h2:hover > .anchor, h3:hover > .anchor, h4:hover > .anchor, .anchor:focus { opacity: 1; }
/* Wide pages: mapping tables get a little more room. */
.page-wide .prose table td:first-child { width: 34%; }
.page-wide .prose h2 { font: 800 clamp(26px, 3vw, 34px)/1.1 var(--font-display); letter-spacing: -0.025em; }

/* Syntax tokens (build-time highlighter) */
.tok-c { color: #6F7890; font-style: italic; }
.tok-s { color: #9BE8C4; }
.tok-n { color: #FFC98F; }
.tok-k { color: #B8ADFF; }
.tok-f { color: #8BE8F5; }
.tok-p { color: var(--text-tertiary); user-select: none; -webkit-user-select: none; }

/* ---------- Every feature (/features/) ---------- */
.features-head { padding-top: 80px; padding-bottom: 24px; }
.features-head h1 { font-size: clamp(42px, 6vw, 76px); max-width: 14ch; margin-bottom: 20px; }
.features-head .lede { margin-bottom: 0; }
.ftools { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin: 36px 0 0; }
.ftools[hidden] { display: flex; visibility: hidden; }
.fsearch { position: relative; flex: 1 1 320px; max-width: 460px; }
.fsearch input { width: 100%; font: 15px var(--font-sans); color: var(--text-primary); background: var(--bg-surface); border: 1px solid var(--border-strong); border-radius: 10px; padding: 12px 14px 12px 40px; }
.fsearch input:focus { outline: 2px solid var(--accent-text); outline-offset: 0; border-color: transparent; }
.fsearch svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-tertiary); pointer-events: none; }
.fpro { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--text-secondary); cursor: pointer; }
.fpro input { width: 16px; height: 16px; accent-color: var(--accent); }
.fcount { font: 500 13px/1.4 var(--font-mono); color: var(--text-tertiary); margin: 0 0 0 auto; }
.flist { padding-top: 56px; }
.fgroup { padding: 0 0 72px; scroll-margin-top: 84px; }
.fgroup[hidden] { display: none; }
.fgroup h2 { font: 800 clamp(28px, 3.4vw, 40px)/1.05 var(--font-display); letter-spacing: -0.03em; margin: 0 0 8px; }
.fgroup-intro { color: var(--text-secondary); margin: 0 0 22px; max-width: 64ch; }
.fgroup-redaction .chapter-n > span:first-child { color: var(--redaction); }
.fgroup-time-travel .chapter-n > span:first-child { color: var(--time-travel); }
.fgroup-record .chapter-n > span:first-child { color: var(--record); }
.fgroup-verified .chapter-n > span:first-child { color: var(--verified); }
.fitems { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border-subtle); }
.fitem { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) auto; gap: 4px 24px; padding: 13px 0; border-bottom: 1px solid var(--border-subtle); align-items: baseline; }
.fitem[hidden] { display: none; }
.fitem h3 { font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.fitem p { margin: 0; color: var(--text-secondary); font-size: 15px; line-height: 1.5; }
.fitem .fmeta { display: inline-flex; gap: 8px; align-items: baseline; white-space: nowrap; font-size: 13.5px; }
.fitem .fmeta a { color: var(--text-secondary); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.fempty { color: var(--text-secondary); padding: 24px 0 72px; }
@media (max-width: 760px) {
  .fitem { grid-template-columns: minmax(0, 1fr) auto; }
  .fitem p { grid-column: 1 / -1; grid-row: 2; }
  .fitem .fmeta { grid-column: 2; grid-row: 1; }
  .fcount { margin-left: 0; width: 100%; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hero h1 { font-size: clamp(48px, 15vw, 64px); }
  .cta-row { flex-direction: column; align-items: stretch; width: 100%; }
  .cta-row .btn { width: 100%; }
  .chapter h2 { font-size: clamp(32px, 9vw, 40px); }
  .chapter-text p { font-size: 17px; }
  .plan { padding: 22px; }
  .header-cta { display: none; }
  .fig { gap: 8px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- The cookie choice (templates/base.html, site.js) ---------- */
/* A full-width bar along the bottom of the page (owner, 2026-12-06): the text on the left, the two equal choices on the
   right, lined up with the page's content column (.wrap: 1180px, 24px gutters); stacked on narrow screens. */
.consent {
  position: fixed; z-index: 70; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 16px 32px;
  padding-top: 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  padding-left: max(24px, calc((100vw - 1180px) / 2 + 24px), env(safe-area-inset-left, 0px));
  padding-right: max(24px, calc((100vw - 1180px) / 2 + 24px), env(safe-area-inset-right, 0px));
  border-top: 1px solid var(--border-strong);
  background: var(--bg-raised); color: var(--text-secondary); box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
  font-size: 14px; line-height: 1.5;
}
.consent[hidden] { display: none; }
.consent p { margin: 0; flex: 1 1 auto; min-width: 0; max-width: 72ch; }
.consent a { color: var(--accent-text); }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: 0 0 auto; margin-left: auto; min-width: 240px; }
.consent-actions .btn { white-space: normal; text-align: center; line-height: 1.2; }
@media (max-width: 720px) {
  .consent { flex-direction: column; align-items: stretch; padding-left: 16px; padding-right: 16px; }
  .consent p { max-width: none; }
  .consent-actions { margin-left: 0; min-width: 0; }
}
