@import url("/styles/tokens.css") layer(supporting);
@layer supporting {
/* ==========================================================================
   Wradial marketing site - styles.css
   Reads from /website/styles/tokens.css (the single source of truth).
   Light-first, whitespace-forward. Dark mode via [data-theme="dark"] or
   prefers-color-scheme.
   ========================================================================== */


/* Web fonts are loaded via a <link> in each page's <head> (not a CSS @import), so the
   font CSS is discovered immediately by the preload scanner instead of after styles.css
   downloads and parses. See the preconnect + stylesheet links in the HTML heads. */

/* ---------- reset ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11", "kern";
}

a {
  color: var(--sage-600);
  text-decoration: none;
  transition: color var(--t-base) var(--ease);
}

a:hover {
  color: var(--sage-700);
}

::selection {
  background: var(--selection);
  color: #0F1512;
}
::-moz-selection {
  background: var(--selection);
  color: #0F1512;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--sage-500);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* ---------- layout primitives ---------- */

.page-shell {
  position: relative;
  isolation: isolate;
}

.section {
  padding: clamp(64px, 8vw, 112px) var(--gutter);
}

.section__inner {
  max-width: var(--max-content);
  margin: 0 auto;
}

.section--narrow .section__inner {
  max-width: var(--max-prose);
}

.section--wide .section__inner {
  max-width: var(--max-wide);
}

.section--alt {
  background: var(--surface-alt);
}

.section--sunken {
  background: var(--surface-sunken);
}

/* ---------- header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-4) var(--gutter);
  min-height: var(--header-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}

/* Solid-until-scroll: a hairline that gains a subtle shadow once the page moves
   (toggled by script.js). Replaces the saturate/blur glassmorphism (W-07). */
.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border-strong);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--ink);
}

.brand-logo {
  width: 2.4rem;
  height: 2.4rem;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(15, 23, 19, 0.08));
}

.brand-lockup {
  display: grid;
  gap: 2px;
}

.brand-lockup strong {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ink);
}

.brand-lockup span {
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: var(--s-5);
  color: var(--text);
}

.site-nav a:not(.download-pill):not(.button) {
  font-size: var(--fs-body-sm);
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: color var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}

.site-nav a.is-active,
.site-nav a:not(.download-pill):not(.button):hover {
  color: var(--text);
  border-bottom-color: var(--sage-500);
}

/* ---------- buttons / pills ---------- */

.button,
.download-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 44px;
  padding: 10px 20px;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition:
    transform var(--t-base) var(--ease),
    background var(--t-base) var(--ease),
    border-color var(--t-base) var(--ease),
    color var(--t-base) var(--ease),
    box-shadow var(--t-base) var(--ease);
}

.button:hover,
.download-pill:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.button:active,
.download-pill:active {
  transform: translateY(0);
  box-shadow: var(--shadow-xs);
}

.button--primary,
.download-pill {
  border-color: transparent;
  background: var(--sage-500);
  color: var(--on-sage);
  box-shadow: var(--shadow-sm);
}

.button--primary:hover,
.download-pill:hover {
  background: var(--sage-600);
  color: var(--on-sage);
  box-shadow: var(--shadow-md);
  animation: flick-pulse 220ms var(--ease-out);
}

/* "Flick." - a quick Transform-only pop on primary-CTA hover (book §07 motion;
   the tokens.css prefers-reduced-motion block collapses this to a no-op). */
@keyframes flick-pulse {
  0%   { transform: translateY(-1px) scale(1); }
  45%  { transform: translateY(-2px) scale(1.035); }
  100% { transform: translateY(-1px) scale(1); }
}

.button--primary:active,
.download-pill:active {
  background: var(--sage-700);
}

.button--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.button--ghost:hover {
  background: var(--surface-alt);
  border-color: var(--border-strong);
}

.button--link {
  padding: 8px 0;
  background: transparent;
  border: 0;
  color: var(--sage-600);
  font-weight: 600;
  min-height: auto;
}

.button--link:hover {
  background: transparent;
  color: var(--sage-700);
  transform: none;
  box-shadow: none;
}

.button--disabled {
  cursor: not-allowed;
  opacity: 0.55;
  pointer-events: none;
}

.button--lg {
  min-height: 52px;
  padding: 14px 24px;
  font-size: 17px;
}

/* ---------- hero ---------- */

.section--hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.86fr);
  align-items: center;
  gap: clamp(var(--s-8), 6vw, var(--s-20));
  padding: clamp(var(--s-16), 8vw, var(--s-24)) var(--gutter) clamp(var(--s-20), 10vw, var(--s-24));
  max-width: var(--max-wide);
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.section--hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(52, 164, 111, 0.10), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(72, 190, 132, 0.06), transparent 60%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin: 0 0 var(--s-5);
  padding: 6px 12px;
  color: var(--sage-700);
  background: var(--sage-50);
  border-radius: var(--r-full);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage-500);
}

/* Kicker: a restrained Space Grotesk label that replaces the dot-pill eyebrow
   everywhere except the one hero use (W-01). No pill, no dot, no background.
   The .newsletter-copy compound wins over the .newsletter-copy p body rule. */
.kicker,
.newsletter-copy .kicker {
  display: block;
  margin: 0 0 var(--s-3);
  font-family: var(--font-display);
  font-size: var(--fs-micro);
  font-weight: 600;
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-subtle);
}

.hero-copy h1,
.section-intro h2,
.download-copy h2,
.newsletter-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-tight);
}

.hero-copy h1 {
  max-width: 14ch;
  font-size: clamp(40px, 7vw, var(--fs-display-xl));
}

.lede,
.section-intro p,
.feature-card p,
.placeholder-card p,
.download-copy p,
.download-note,
.site-footer p {
  color: var(--text-muted);
  line-height: var(--lh-body);
  font-size: var(--fs-body);
}

.lede {
  max-width: 52ch;
  margin: var(--s-6) 0 0;
  font-size: var(--fs-body-lg);
  color: var(--text);
}

.hero-meta {
  margin: var(--s-4) 0 0;
  color: var(--text-subtle);
  font-size: var(--fs-body-sm);
}

/* Hairline-ruled fact row: three labelled micro-facts divided by rules instead
   of a middot-joined credential string (W-03). */
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin: var(--s-8) 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  font-size: var(--fs-body-sm);
  font-weight: 500;
}

.hero-facts li {
  display: grid;
  gap: 3px;
  padding-left: var(--s-4);
  border-left: 1px solid var(--border-strong);
}

.hero-facts li:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-facts__k {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-subtle);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-8);
}

.hero-showcase {
  position: relative;
  display: grid;
  gap: var(--s-6);
  align-items: center;
}

/* ---------- hero live wheel stage ---------- */

.hero-stage {
  display: grid;
  gap: var(--s-4);
  align-items: start;
  justify-items: center;
}

.wheel-stage {
  --wl-size: min(28rem, 70vw);
  width: var(--wl-size);
  height: var(--wl-size);
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 46%, #34A46F 0%, #1F7A50 34%, #0F1512 78%);
  box-shadow: var(--shadow-xl);
  position: relative;
}

.wheel-stage__fallback {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ---------- smartscreen note ---------- */

.smartscreen-note {
  margin: var(--s-3) 0 0;
  font-size: var(--fs-body-sm);
  color: var(--text-subtle);
  line-height: var(--lh-body);
  max-width: 48ch;
}

/* ---------- send-to-desktop inline form ---------- */

.sendtodesktop-form {
  margin-top: var(--s-4);
  padding: var(--s-5);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--surface-alt);
  display: grid;
  gap: var(--s-4);
  max-width: 28rem;
}

/* The class's display:grid outranks the UA's [hidden]{display:none} (author beats UA
   regardless of specificity), so the collapsed form was VISIBLE to every Windows
   visitor - measured live on wradial.com 2026-08-29 (N369). Same for any element a
   display rule and the hidden attribute both touch: state the hidden case explicitly. */
.sendtodesktop-form[hidden] {
  display: none;
}

.std-form {
  display: grid;
  gap: var(--s-4);
}

.std-success {
  padding: var(--s-4);
  border: 1px solid color-mix(in srgb, var(--success) 34%, transparent);
  background: color-mix(in srgb, var(--success) 10%, var(--surface));
  border-radius: var(--r-md);
  font-size: var(--fs-body-sm);
}

/* ---------- label shared rule (was also .orbital-wheel__core span) ---------- */

.download-slot span,
.placeholder-card__tag,
.step-number {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--sage-700);
}

/* ---------- placeholder / intro ---------- */

.placeholder-card {
  position: relative;
  padding: var(--s-6);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: none;
}

.placeholder-card strong {
  display: block;
  margin-top: var(--s-2);
  font-size: var(--fs-h4);
  line-height: var(--lh-snug);
  color: var(--ink);
}

.placeholder-card--hero {
  max-width: 22rem;
  margin-left: auto;
}

.section-intro {
  max-width: 52rem;
}

.section-intro h2,
.download-copy h2,
.newsletter-copy h2 {
  font-size: clamp(28px, 4vw, var(--fs-display));
}

.intro-strip {
  padding-top: var(--s-8);
}

.callout-line {
  margin: var(--s-5) 0 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-snug);
}

.feature-card,
.download-card,
.download-panel,
.newsletter-card {
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.feature-card h3 {
  margin: var(--s-3) 0 var(--s-2);
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--ink);
}

.feature-card p {
  margin: 0;
  font-size: var(--fs-body);
  color: var(--text-muted);
  line-height: var(--lh-body);
}

/* ---------- feature grid ---------- */

.feature-grid,
.gallery-grid {
  display: grid;
  gap: var(--s-5);
  margin-top: var(--s-8);
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-grid--beta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card {
  padding: var(--s-6);
  display: grid;
  gap: var(--s-2);
  align-content: start;
  background: var(--surface-alt);
  box-shadow: none;
  transition:
    transform var(--t-base) var(--ease),
    border-color var(--t-base) var(--ease),
    box-shadow var(--t-base) var(--ease);
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.gallery-grid {
  grid-template-columns: 1.2fr 1fr 1fr;
}

.placeholder-card--panel {
  min-height: 18rem;
}

/* ---------- download card ---------- */

.download-card {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(18rem, 0.8fr);
  gap: var(--s-6);
  padding: clamp(var(--s-6), 3vw, var(--s-10));
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-lg);
}

.download-copy p {
  margin-top: var(--s-4);
  font-size: var(--fs-body-lg);
  color: var(--text-muted);
  max-width: 48ch;
}

.download-slot {
  display: grid;
  gap: 6px;
  padding: var(--s-5);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface-alt);
}

.download-slot strong {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  line-height: var(--lh-snug);
  color: var(--ink);
}

.download-slot small {
  color: var(--text-muted);
  font-size: var(--fs-body-sm);
}

.download-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}

.download-link {
  flex: 1 1 12rem;
}

/* SHA verification: demoted to collapsible advanced section */
.download-proof {
  margin-top: var(--s-3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface-alt);
  overflow: hidden;
}

.download-proof summary {
  cursor: pointer;
  padding: var(--s-4) var(--s-5);
  color: var(--text-muted);
  font-size: var(--fs-body-sm);
  font-weight: 600;
  list-style: none;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.download-proof summary::-webkit-details-marker {
  display: none;
}

.download-proof summary::after {
  content: "+";
  font-size: 18px;
  color: var(--text-muted);
  transition: transform var(--t-base) var(--ease);
}

.download-proof[open] summary::after {
  content: "−";
}

.download-proof__body {
  padding: 0 var(--s-5) var(--s-5);
  display: grid;
  gap: var(--s-3);
}

.download-proof__label {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--sage-700);
}

.download-hash,
.download-command code {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
}

.download-hash {
  overflow-wrap: anywhere;
  color: var(--text);
}

.download-command {
  margin: 0;
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  overflow-x: auto;
}

.download-note code {
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface-alt);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.94em;
}

/* ---------- newsletter ---------- */

.newsletter-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.85fr);
  gap: var(--s-6);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.newsletter-copy h2 {
  font-size: clamp(28px, 4vw, var(--fs-display));
}

.newsletter-copy p {
  margin-top: var(--s-4);
  font-size: var(--fs-body-lg);
  color: var(--text-muted);
  max-width: 48ch;
}

.newsletter-points {
  margin: var(--s-5) 0 0;
  color: var(--text-muted);
  font-size: var(--fs-body-sm);
  font-weight: 500;
}

.newsletter-signup,
.newsletter-form,
.download-panel {
  display: grid;
  gap: var(--s-4);
  align-content: start;
}

.newsletter-body {
  display: grid;
  gap: var(--s-4);
}

.newsletter-signup {
  padding: var(--s-5);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--surface-alt);
  position: relative;
}

.newsletter-form {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.download-panel {
  padding: var(--s-5);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: none;
}

.newsletter-label {
  color: var(--text);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.newsletter-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}

.newsletter-input::placeholder {
  color: var(--text-subtle);
}

.newsletter-input:focus {
  border-color: var(--sage-500);
  box-shadow: var(--focus-ring);
}

.newsletter-help {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body);
}

.newsletter-submit {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.newsletter-success,
.newsletter-error {
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-md);
  line-height: var(--lh-body);
  font-size: var(--fs-body-sm);
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
}

.newsletter-success {
  border: 1px solid color-mix(in srgb, var(--success) 34%, transparent);
  background: color-mix(in srgb, var(--success) 10%, var(--surface));
  color: var(--text);
}

.newsletter-error {
  border: 1px solid color-mix(in srgb, var(--danger) 34%, transparent);
  background: var(--danger-bg);
  color: var(--danger-fg);
}

/* ---------- faq ---------- */

.faq-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4);
  margin-top: var(--s-8);
}

.faq-item {
  padding: var(--s-5) var(--s-6);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}

.faq-item[open] {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.faq-item summary {
  position: relative;
  padding-right: var(--s-8);
  list-style: none;
  cursor: pointer;
  color: var(--text);
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 600;
  line-height: var(--lh-snug);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 0;
  right: 0;
  color: var(--sage-600);
  font-size: 22px;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: var(--s-3) 0 0;
  color: var(--text-muted);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

/* ---------- footer ---------- */

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-8) var(--gutter) var(--s-10);
  color: var(--text-muted);
  font-size: var(--fs-body-sm);
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer a:hover {
  color: var(--text);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
}

/* ---------- reveal-on-scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity var(--t-reveal) var(--ease-out),
    transform var(--t-reveal) var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- prose pages (/privacy, /terms, /legal) ---------- */

.prose {
  max-width: var(--max-prose);
  margin: 0 auto;
  padding: clamp(var(--s-12), 8vw, var(--s-20)) var(--gutter);
  font-size: var(--fs-body-lg);
  line-height: var(--lh-loose);
  color: var(--text);
}

.prose h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, var(--fs-h1));
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 var(--s-3);
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-tight);
}

.prose .page-meta {
  color: var(--text-subtle);
  font-size: var(--fs-body-sm);
  margin: 0 0 var(--s-10);
}

.prose h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--ink);
  margin: var(--s-10) 0 var(--s-3);
  line-height: var(--lh-snug);
}

.prose h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--ink);
  margin: var(--s-8) 0 var(--s-2);
}

.prose p {
  margin: 0 0 var(--s-4);
  color: var(--text);
}

.prose ul,
.prose ol {
  margin: 0 0 var(--s-4);
  padding-left: var(--s-6);
  color: var(--text);
}

.prose li {
  margin: var(--s-2) 0;
}

.prose a {
  color: var(--sage-600);
  border-bottom: 1px solid color-mix(in srgb, var(--sage-500) 30%, transparent);
}

.prose a:hover {
  color: var(--sage-700);
  border-bottom-color: var(--sage-600);
}

.prose code {
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface-alt);
  font-family: var(--font-mono);
  font-size: 0.94em;
  color: var(--text);
}

.prose hr {
  margin: var(--s-10) 0;
  border: 0;
  border-top: 1px solid var(--divider);
}

.release-entry {
  padding: var(--s-6);
  margin: 0 0 var(--s-5);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.release-entry__head {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
  flex-wrap: wrap;
}

.release-entry h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
}

.release-entry .tag {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: var(--sage-100);
  color: var(--sage-700);
}

.release-entry .date {
  color: var(--text-subtle);
  font-size: var(--fs-body-sm);
  margin-left: auto;
}

/* ---------- prose / section helpers for GTM pages ---------- */

.section--prose {
  padding-top: var(--s-10);
  padding-bottom: var(--s-16);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, var(--fs-h1));
  font-weight: 800;
  color: var(--ink);
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-tight);
  margin: var(--s-3) 0 var(--s-4);
  max-width: 24ch;
}

.section__lede {
  max-width: 60ch;
  font-size: var(--fs-body-lg);
  color: var(--text-muted);
  line-height: var(--lh-loose);
  margin: 0 0 var(--s-4);
}

.prose__lede {
  font-size: var(--fs-body-lg);
  color: var(--text-muted);
  line-height: var(--lh-loose);
  margin: 0 0 var(--s-4);
}

.prose__meta {
  color: var(--text-subtle);
  font-size: var(--fs-body-sm);
  margin: 0 0 var(--s-10);
}

/* ---------- release log (BEM variant used by /releases.html) ---------- */

.release-log {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--s-5);
}

.release-entry__version {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: var(--tracking-tight);
}

.release-entry__date {
  color: var(--text-subtle);
  font-size: var(--fs-body-sm);
  margin: 4px 0 0;
}

.release-entry__tag {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: var(--surface-alt);
  color: var(--text-muted);
  border: 1px solid var(--border);
  white-space: nowrap;
}

.release-entry__tag--current {
  background: var(--sage-100);
  color: var(--sage-700);
  border-color: color-mix(in srgb, var(--sage-500) 28%, transparent);
}

.release-entry__head {
  align-items: center;
  justify-content: space-between;
}

.release-entry__body h3 {
  font-family: var(--font-display);
  font-size: var(--fs-body-lg);
  font-weight: 700;
  color: var(--ink);
  margin: var(--s-4) 0 var(--s-2);
}

.release-entry__body h3:first-child {
  margin-top: 0;
}

.release-entry__body ul {
  margin: 0 0 var(--s-3);
  padding-left: var(--s-5);
  color: var(--text);
}

.release-entry__body li {
  margin: 4px 0;
  line-height: 1.55;
}

.release-entry__body code {
  padding: 1px 6px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface-alt);
  font-family: var(--font-mono);
  font-size: 0.94em;
}

/* ---------- theme toggle ---------- */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--r-full);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  font-size: var(--fs-body-sm);
  font-weight: 500;
  line-height: 1;
  transition: background var(--t-base) var(--ease), color var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}

.theme-toggle:hover {
  background: var(--surface-alt);
  color: var(--text);
  border-color: var(--border-strong);
}

.theme-toggle__icon {
  width: 16px;
  height: 16px;
  display: inline-block;
}

/* ---------- films: the tour + sequences deep dive (#tour, N369) ----------
   The section and each card carry `hidden` until the capture pipeline splices the
   generated per-film regions in (showcase_lint.splice_film_fragment). The classes
   inside the region (.film-video / .wradial-film-duration / .wradial-film-chapters /
   .wradial-film-transcript / .film-provenance) are emitted by card_renderer.py's
   generate_page_fragment - rename them in BOTH places or not at all. */

[data-films-section][hidden],
.film-card[hidden] {
  display: none;
}

/* Off-homepage links to a film (N372) carry `hidden` until that film exists, toggled by
   the same pass (showcase_lint.splice_film_links). Stated explicitly rather than left to
   the UA rule: an author `display` on ANY class these elements also wear would outrank it
   silently, which is how the hero send-to-desktop form shipped visible for weeks. The
   attribute selector (0,2,0) outranks a class, so a later `.something { display: block }`
   cannot undo it by accident. */
[data-film-link][hidden] {
  display: none;
}

.films {
  border-top: 1px solid var(--border);
}

.films-head {
  max-width: 46rem;
}

.films-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-tight);
  font-size: clamp(28px, 4vw, var(--fs-display));
}

.films-lede {
  margin: var(--s-4) 0 0;
  max-width: 52ch;
  color: var(--text-muted);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.films-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: clamp(var(--s-6), 4vw, var(--s-10));
  margin-top: var(--s-10);
  align-items: start;
}

.film-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: clamp(var(--s-5), 3vw, var(--s-8));
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.film-card__head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--ink);
}

.film-card__head p {
  margin: var(--s-2) 0 0;
  color: var(--text-muted);
  font-size: var(--fs-body);
}

.film-figure {
  position: relative;
  margin: 0;
}

.film-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  background: #0F1512;
}

/* Runtime badge over the film's mat (always dark canvas, so the glass is constant
   across themes). pointer-events off: it must never shadow the native controls. */
.wradial-film-duration {
  position: absolute;
  top: var(--s-3);
  right: var(--s-3);
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(15, 21, 18, 0.72);
  color: #E7F0EA;
  font-family: var(--font-display);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.6;
  pointer-events: none;
}

.film-provenance {
  margin-top: var(--s-2);
  font-size: var(--fs-body-sm);
  color: var(--text-subtle);
}

.wradial-film-chapters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.wradial-film-chapters button {
  min-height: 32px;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--text);
  font-size: var(--fs-body-sm);
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}

.wradial-film-chapters button:hover {
  background: var(--surface);
  border-color: var(--sage-400);
}

.wradial-film-transcript {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface-alt);
}

.wradial-film-transcript summary {
  padding: var(--s-3) var(--s-4);
  cursor: pointer;
  font-size: var(--fs-body-sm);
  font-weight: 600;
  color: var(--text);
}

.wradial-film-transcript p {
  margin: 0;
  padding: 0 var(--s-4) var(--s-3);
  font-size: var(--fs-body-sm);
  color: var(--text-muted);
  line-height: var(--lh-body);
}

.film-cta {
  margin-top: auto;
  display: grid;
  gap: var(--s-2);
  padding-top: var(--s-2);
  border-top: 1px solid var(--border);
}

.film-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}

.film-cta .smartscreen-note {
  margin-top: 0;
}

/* Four single-idea clips under the two films (2026-10-05). A clip is a bare figure, not a
   card: the duration badge reuses .wradial-film-duration, which is positioned against the
   nearest positioned ancestor, so the figure is that ancestor. */
.films-clips-head {
  margin-top: var(--s-10);
  max-width: 46rem;
}

.films-clips-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--ink);
}

.films-clips-head p {
  margin: var(--s-2) 0 0;
  color: var(--text-muted);
  font-size: var(--fs-body);
}

.films-clips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: var(--s-5);
  margin-top: var(--s-6);
  align-items: start;
}

.film-clip {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin: 0;
}

.film-clip figcaption {
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body);
  color: var(--text-muted);
}

.film-clip figcaption strong {
  display: block;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .section--hero,
  .newsletter-card,
  .download-card,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .faq-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .placeholder-card--hero {
    max-width: none;
    margin-left: 0;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .site-header {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    padding-inline: var(--s-4);
  }

  .site-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--s-3);
  }

  .hero-copy h1 {
    max-width: none;
    font-size: clamp(36px, 10vw, 56px);
  }

  .wheel-stage {
    --wl-size: min(22rem, 84vw);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button,
  .hero-actions .download-pill {
    width: 100%;
  }

  .feature-grid,
  .faq-layout {
    grid-template-columns: 1fr;
  }
}

}
