/* ============================================================================
  cursedworks — shared stylesheet
  Built against Brand Framework v0.3 + CursedWorksDesignTokens.swift.
  Used by the homepage and every product page. The token layer is the only
  place raw values live; everything else is built from the variables.
  ============================================================================ */

/* ==========================================================================
1. TOKEN LAYER  — carried 1:1 from CursedWorksDesignTokens.swift
Build the whole site from these variables only.
========================================================================== */
:root {
  /* --- Colour (v0.3): cool machined-silver ladder + arcade accents --- */

  /* Accent family — orange LEADS, teal SUPPORTS (max two per view) */
  --accent: #e8531d; /* Hazard Orange — the one committing action per view */
  --accent-pressed: #c0410f; /* pressed / active */
  --accent-support: #1f9e8a; /* Teal — house default support: nav, hover, status */
  --cobalt: #2b5fb0; /* BrandPalette.cobalt */
  --magenta: #c8447e; /* BrandPalette.magenta */
  --red: #d8352a; /* BrandPalette.red, the PlayStation red: site actions + structure ("red on putty") */
  --red-pressed: #b0281f; /* derived: pressed red, and small text on putty */

  /* Neutral ladder — machined silver. Surfaces and fills, not just borders. */
  --ink: #16171a; /* neutral near-black, deepest ground */
  --charcoal: #25272b; /* dark surface */
  --graphite: #4e5258; /* dark grey, muted text on light */
  --slate: #7c8088; /* mid-grey workhorse */
  --steel: #a6aaae; /* light-mid grey, secondary surfaces */
  --aluminium: #c7caca; /* brushed silver, the signature retro grey */
  --silver: #dadcda; /* light grey panel / card */
  --mist: #e8e9e7; /* very light grey, light-UI background */
  --paper: #f4f5f3; /* near-white, lightest surface */

  /* Warm register — the one warm exception (PS1 / paper-pulp) */
  --putty: #d8d2c4;
  --cream: #efe8d9;

  --divider-light: #cfd1cf; /* BrandColor.divider, light */
  --divider-dark: #34373c; /* BrandColor.divider, dark */

  /* Semantic roles for this (light) marketing surface — silver ground */
  --bg: var(--putty); /* warm putty page ground */
  --surface: var(--cream); /* cards / raised surfaces, warm to sit on putty */
  --surface-alt: var(--silver);
  --text-primary: var(--ink);
  --text-secondary: var(--graphite);
  --divider: var(--steel); /* divider-light vanishes on putty */

  /* --- Spacing: 4px base, 8px rhythm (2,4,8,12,16,24,32,48,64) --- */
  --s-2: 2px;
  --s-4: 4px;
  --s-8: 8px;
  --s-12: 12px;
  --s-16: 16px;
  --s-24: 24px;
  --s-32: 32px;
  --s-48: 48px;
  --s-64: 64px;
  --s-96: 96px; /* derived: 2x rhythm step for hero breathing room */

  /* --- Shape --- */
  --radius-control: 3px; /* containers: micro-chamfer */
  --radius-pill: 999px; /* buttons + tags only */
  --hairline: 1px;

  /* --- Type scale (base 16px) --- */
  --font-grotesque: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --font-wordmark:
    "Poppins", system-ui, -apple-system, sans-serif; /* logo / stamp */
  --wordmark-weight: 700; /* LOCKED: Poppins Bold 700 Italic — wordmark + cw_ icon */

  --t-display: clamp(3.25rem, 9vw, 6rem); /* 52 → 96, stamp / hero only */
  --t-h1: 2.4375rem; /* 39 */
  --t-h2: 1.9375rem; /* 31 */
  --t-h3: 1.5625rem; /* 25 */
  --t-body: 1rem; /* 16 */
  --t-small: 0.8125rem; /* 13 */
  --t-mono: 0.875rem; /* 14 */
  --t-mono-sm: 0.8125rem; /* 13 */

  /* --- Motion: 120–200ms, ease-out, no bounce/float --- */
  --motion-quick: 120ms ease-out;
  --motion-standard: 180ms ease-out;

  /* Layout */
  --measure: 1200px; /* 12-col feel, generous gutters */
  --gutter: var(--s-24);
}

/* ==========================================================================
2. RESET / BASE
========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px; /* clear the sticky header on anchor jumps */
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-grotesque);
  font-size: var(--t-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Shared section rhythm + hairline structure */
section {
  padding-block: var(--s-64);
  border-top: var(--hairline) solid var(--red); /* red section breaks */
}

/* Mono eyebrow label — metadata / section index voice */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-mono-sm);
  letter-spacing: 0.04em;
  color: var(--red-pressed); /* deeper red keeps small mono text legible on putty */
  display: flex;
  align-items: center;
  gap: var(--s-8);
  margin: 0 0 var(--s-24);
}
.eyebrow .rule {
  flex: 1;
  height: var(--hairline);
  background: var(--red);
}

/* ==========================================================================
3. SIGNATURE TEXTURE — the dot grid (CSS radial-gradient, low contrast)
========================================================================== */
.dotgrid {
  /* Slate dots on the putty ground: faint, but clearly visible */
  background-image: radial-gradient(
    var(--slate) 1.1px,
    transparent 1.2px
  );
  background-size: var(--s-24) var(--s-24);
  background-position: 0 0;
  opacity: 0.55;
}

/* ==========================================================================
4. BUTTONS — pills only (the one place roundness is correct)
========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-8);
  font-family: var(--font-grotesque);
  font-size: var(--t-body);
  font-weight: 600;
  line-height: 1;
  padding: 14px var(--s-24);
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition:
    filter var(--motion-quick),
    transform var(--motion-quick),
    box-shadow var(--motion-quick);
  min-height: 44px; /* comfortable tap target */
}
/* Chunky hardware controls, matched to the deadkeys site and app: bevelled
   (light top edge, dark bottom edge), raised on a drop shadow, and they
   depress when pressed. */
.btn--primary {
  background: linear-gradient(180deg, #f26c36, var(--accent));
  color: var(--paper);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1.5px 0 rgba(0, 0, 0, 0.22),
    0 3px 7px rgba(22, 23, 26, 0.22);
} /* the loud element */
.btn--primary:hover {
  filter: brightness(1.04);
}
.btn--primary:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1.5px 0 rgba(0, 0, 0, 0.2),
    0 1px 3px rgba(22, 23, 26, 0.12);
}
/* Secondary: the dark machined button (deadkeys' Unlock), silver label */
.btn--ghost {
  background: linear-gradient(180deg, #2d3036, #1c1e22);
  color: var(--silver);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1.5px 0 rgba(0, 0, 0, 0.32),
    0 3px 7px rgba(22, 23, 26, 0.22);
}
.btn--ghost:hover {
  filter: brightness(1.1);
}
.btn--ghost:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1.5px 0 rgba(0, 0, 0, 0.28),
    0 1px 3px rgba(22, 23, 26, 0.12);
}

/* ==========================================================================
5. HEADER — sticky, hairline bottom rule
========================================================================== */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Dark band, matching the footer */
  background: var(--ink);
  color: var(--paper);
  border-bottom: var(--hairline) solid var(--divider-dark);
}
header.site .wordmark,
header.site nav.primary a,
header.site nav.primary a[aria-current="true"] {
  color: var(--paper);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
/* Wordmark logo — "cursedworks_": one lowercase word in Poppins SemiBold Italic
(geometric sans), tightly tracked, reading like a code/project name. The
orange underscore (.cursor) is its mark. */
.wordmark {
  font-family: var(--font-wordmark);
  font-weight: var(--wordmark-weight);
  font-style: italic; /* Bold 700 Italic */
  text-transform: lowercase;
  letter-spacing: -0.03em; /* tight tracking at the stamp */
  font-size: 1.125rem; /* 18px */
  line-height: 1;
  color: var(--text-primary);
  white-space: nowrap;
}
/* The signature: an orange underscore, drawn as a block (crisp at any size,
thickness controlled). Terminal-prompt cursor. */
.cursor {
  display: inline-block;
  width: 0.55em; /* ~ one mono character cell */
  height: 0.11em; /* trimmed thinner per feedback */
  margin-left: 0.06em;
  background: var(--accent);
  border-radius: 1px; /* micro-chamfer, stays rectilinear */
  vertical-align: baseline;
  transform: translateY(
    0.04em
  ); /* sit just below the baseline like a real underscore */
}
/* Hero cursor blinks like a terminal prompt — hard on/off step (no fade,
no float), ~1.1s. The global reduced-motion rule disables it. */
.hero .cursor {
  animation: cursor-blink 1.1s steps(1, end) infinite;
}
@keyframes cursor-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}
/* Short mark — "cw_" on a square ink chip, for avatars / app tiles / small
logos. Reuses the wordmark face + weight + italic + the orange .cursor.
Scale the whole mark by setting font-size on .logomark.
Usage: <span class="logomark">cw<span class="cursor"></span></span> */
.logomark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4em;
  height: 2.4em;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-control);
  font: italic var(--wordmark-weight) 1em / 1 var(--font-wordmark);
  letter-spacing: -0.04em;
}
nav.primary {
  display: flex;
  gap: var(--s-24);
}
nav.primary a {
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--text-primary);
  padding: var(--s-8) 0;
  position: relative;
  transition: opacity var(--motion-quick);
}
nav.primary a:hover {
  opacity: 0.6;
}
/* Active state: each item has its own brand accent underline
   (Work teal, About cobalt, Contact magenta) */
nav.primary a[aria-current="true"] {
  color: var(--text-primary);
}
nav.primary a[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent-support);
}
nav.primary a[href$="#about"]::after {
  background: var(--cobalt);
}
nav.primary a[href$="#contact"]::after {
  background: var(--magenta);
}

/* ==========================================================================
6. HERO — airy, orange leads (CTA), dot-grid behind, the wordmark moment
========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  border-top: none;
}
.hero .dotgrid {
  position: absolute;
  inset: 0;
  z-index: 0;
  -webkit-mask-image: linear-gradient(180deg, #000 35%, transparent 92%);
  mask-image: linear-gradient(180deg, #000 35%, transparent 92%);
}
/* FLAW SIGNATURE — the single deliberate imperfection on the whole page.
One dot removed from the grid, lower-left, ~quarter height. Static, faint,
reads as intentional. Used exactly once. */
.hero .flaw {
  position: absolute;
  z-index: 1;
  left: 96px;
  bottom: 120px;
  width: var(--s-24);
  height: var(--s-24);
  background: var(--bg);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  z-index: 2;
  padding-block: clamp(var(--s-64), 12vw, 140px);
}
/* Hero is the wordmark moment: "cursedworks_" set large in Poppins SemiBold Italic,
lowercase — the logo as the hero, with its blinking orange cursor. */
.hero h1 {
  font-family: var(--font-wordmark);
  font-weight: var(--wordmark-weight);
  font-style: italic; /* Bold 700 Italic */
  text-transform: lowercase;
  font-size: clamp(
    3rem,
    12vw,
    6.5rem
  ); /* geometric sans — room to go big */
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0;
  max-width: 14ch;
}
.hero .lede {
  margin: var(--s-24) 0 0;
  max-width: 52ch;
  font-size: clamp(var(--t-body), 2.4vw, 1.1875rem);
  color: var(--text-secondary);
}
.hero .cta-row {
  margin-top: var(--s-32);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-12);
  align-items: center;
}
.hero .meta {
  margin-top: var(--s-48);
  font-family: var(--font-mono);
  font-size: var(--t-mono-sm);
  color: var(--text-secondary);
  display: flex;
  gap: var(--s-16);
  flex-wrap: wrap;
}

/* ==========================================================================
7. WORK — responsive grid of project cards (1 / 2 / 3 columns)
========================================================================== */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-24);
  margin-bottom: var(--s-48);
  flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--font-grotesque);
  font-weight: 600;
  font-size: var(--t-h2);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 22ch;
}
.section-head p {
  margin: var(--s-8) 0 0;
  color: var(--text-secondary);
  max-width: 40ch;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-24);
}
@media (min-width: 600px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 960px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Card — rectilinear, 3px radius, hairline border, flat (no shadow) */
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: var(--hairline) solid var(--divider);
  border-radius: var(--radius-control);
  overflow: hidden;
  transition: border-color var(--motion-standard);
}
.card:hover {
  border-color: var(--slate);
}
.card:focus-visible {
  outline: 2px solid var(--accent-support);
  outline-offset: 2px;
}

/* Seamless image placeholder — warm putty sweep (Cream → Putty → deep putty),
ready for product-on-seamless. The greys carry the surface. */
.card .shot {
  position: relative;
  aspect-ratio: 4 / 3;
  background: radial-gradient(
    120% 90% at 50% 18%,
    var(--cream) 0%,
    var(--putty) 52%,
    color-mix(in srgb, var(--putty) 78%, var(--graphite)) 100%
  );
  border-bottom: var(--hairline) solid var(--divider);
}
/* faint dot texture inside the sweep to echo the signature motif */
.card .shot::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    var(--graphite) 0.8px,
    transparent 0.9px
  );
  background-size: var(--s-16) var(--s-16);
  opacity: 0.1;
}
/* Pointer revealed only on the hovered card. Teal by default; per-app
colours are set in section 11. Orange is never spent here. */
.card .shot::after {
  content: "↗";
  position: absolute;
  top: var(--s-12);
  right: var(--s-12);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1;
  color: var(--paper);
  background: var(--accent-support);
  border-radius: var(--radius-pill);
  opacity: 0;
  transform: translateY(-2px);
  transition:
    opacity var(--motion-quick),
    transform var(--motion-quick);
}
.card:hover .shot::after,
.card:focus-visible .shot::after {
  opacity: 1;
  transform: translateY(0);
}

.card .body {
  padding: var(--s-16) var(--s-16) var(--s-24);
  display: flex;
  flex-direction: column;
  gap: var(--s-8);
  flex: 1;
}
.card h3 {
  font-family: var(--font-grotesque);
  font-weight: 600;
  font-size: var(--t-h3);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}
.card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--t-small);
}
/* Mono metadata line — year / platform / status */
.card .meta {
  margin-top: auto;
  padding-top: var(--s-12);
  font-family: var(--font-mono);
  font-size: var(--t-mono-sm);
  color: var(--graphite);
  letter-spacing: 0.02em;
}

/* ==========================================================================
8. ABOUT — short confident statement + mono spec row + the one dry line
========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-32);
  align-items: start;
}
@media (min-width: 960px) {
  .about-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: var(--s-64);
  }
}
.about-title {
  font-family: var(--font-grotesque);
  font-weight: 600;
  font-size: var(--t-h2);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 var(--s-24);
}
.about-statement p {
  font-size: clamp(1.0625rem, 2.4vw, var(--t-h3));
  line-height: 1.4;
  margin: 0 0 var(--s-16);
  max-width: 40ch;
}
/* The single dry, knowing line on the whole page (carries the name's wink) */
.about-statement .dry {
  color: var(--text-secondary);
}

/* Mono spec table, hairline rows */
.specs {
  border-top: var(--hairline) solid var(--divider);
}
.specs .row {
  display: flex;
  justify-content: space-between;
  gap: var(--s-16);
  padding: var(--s-12) 0;
  border-bottom: var(--hairline) solid var(--divider);
  font-family: var(--font-mono);
  font-size: var(--t-mono-sm);
}
.specs .row .k {
  color: var(--text-secondary);
}
.specs .row .v {
  color: var(--text-primary);
}

/* ==========================================================================
9. CONTACT / FOOTER — the single dark band, orange leads (email)
========================================================================== */
footer.site {
  background: var(--ink);
  color: var(--paper);
  border-top: var(--hairline) solid var(--divider-dark);
}
footer.site .wrap {
  padding-block: var(--s-64);
}
.contact {
  display: grid;
  gap: var(--s-24);
}
.contact .eyebrow {
  color: var(--red);
}
.contact .eyebrow .rule {
  background: var(--red);
}
.contact h2 {
  font-family: var(--font-grotesque);
  font-weight: 600;
  font-size: var(--t-h2);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 18ch;
}
.contact .email {
  font-family: var(--font-wordmark); /* Poppins — matches the wordmark */
  font-weight: var(--wordmark-weight);
  text-transform: none;
  font-size: clamp(1.4rem, 5vw, 2.25rem);
  color: var(--red); /* the dark band's leading element */
  letter-spacing: -0.02em;
  width: fit-content;
  transition: color var(--motion-quick);
}
.contact .email:hover {
  color: var(--red-pressed);
}

.footer-base {
  margin-top: var(--s-48);
  padding-top: var(--s-24);
  border-top: var(--hairline) solid var(--divider-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-16);
  flex-wrap: wrap;
}
.footer-base .wordmark {
  color: var(--paper);
}
.footer-base .colophon {
  font-family: var(--font-mono);
  font-size: var(--t-mono-sm);
  color: var(--steel);
  display: flex;
  gap: var(--s-16);
  flex-wrap: wrap;
}

/* ==========================================================================
10. RESPONSIVE — type + rhythm step down gracefully
========================================================================== */
@media (max-width: 600px) {
  :root {
    --gutter: var(--s-16);
  }
  section {
    padding-block: var(--s-48);
  }
  .section-head {
    margin-bottom: var(--s-32);
  }
  .hero .flaw {
    left: 40px;
    bottom: 80px;
  }
  nav.primary {
    gap: var(--s-16);
  }
}

/* ==========================================================================
11. PRODUCTS — card art on the homepage + the product page template
========================================================================== */

/* Product-on-seamless: the app icon sits centred on the card's metal sweep */
.card .shot {
  display: grid;
  place-items: center;
}
.card .shot img {
  position: relative;
  z-index: 1;
  width: 34%;
  height: auto;
  filter: drop-shadow(0 8px 12px color-mix(in srgb, var(--ink) 18%, transparent));
}
.card .shot::after {
  z-index: 2;
}
/* Each app keeps its own pointer colour, from the nav underline set:
   Mission Control Close teal, deadkeys cobalt, Cut To It magenta. */
.card[href*="deadkeys"] .shot::after {
  background: var(--cobalt);
}
.card[href*="cut-to-it"] .shot::after {
  background: var(--magenta);
}

/* Inline text link — teal support accent, never orange */
.text-link {
  border-bottom: var(--hairline) solid var(--accent-support);
  transition: color var(--motion-quick);
}
.text-link:hover {
  color: var(--accent-support);
}

/* --- Product hero: crumbs, icon, name, lede, one orange action --- */
.product-hero {
  position: relative;
  overflow: hidden;
  border-top: none;
  padding-block: var(--s-48) var(--s-64);
}
.product-hero .dotgrid {
  position: absolute;
  inset: 0;
  z-index: 0;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 90%);
  mask-image: linear-gradient(180deg, #000 30%, transparent 90%);
}
.product-hero .wrap {
  position: relative;
  z-index: 1;
}
.crumbs {
  font-family: var(--font-mono);
  font-size: var(--t-mono-sm);
  color: var(--text-secondary);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-8);
  margin: 0 0 var(--s-48);
}
.crumbs a {
  transition: color var(--motion-quick);
}
.crumbs a:hover {
  color: var(--accent-support);
}
.crumbs [aria-current] {
  color: var(--text-primary);
}
.product-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-32);
  align-items: start;
}
@media (min-width: 960px) {
  .product-head {
    grid-template-columns: auto 1fr;
    gap: var(--s-48);
  }
}
.product-icon {
  width: 96px;
  height: 96px;
}
@media (min-width: 600px) {
  .product-icon {
    width: 128px;
    height: 128px;
  }
}
.product-head h1 {
  font-family: var(--font-grotesque);
  font-weight: 600;
  font-size: clamp(var(--t-h1), 7vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
}
.product-head .lede {
  margin: var(--s-24) 0 0;
  max-width: 58ch;
  font-size: clamp(var(--t-body), 2.4vw, 1.1875rem);
  color: var(--text-secondary);
}
.product-head .cta-row {
  margin-top: var(--s-32);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-12);
  align-items: center;
}
.product-head .meta {
  margin: var(--s-32) 0 0;
  font-family: var(--font-mono);
  font-size: var(--t-mono-sm);
  color: var(--text-secondary);
  display: flex;
  gap: var(--s-16);
  flex-wrap: wrap;
}

/* --- Stage: the product shown on the seamless sweep --- */
.stage-section {
  padding-top: 0;
  border-top: none;
}
.stage {
  position: relative;
  overflow: hidden;
  margin: 0;
  display: grid;
  place-items: center;
  gap: var(--s-16);
  padding: clamp(var(--s-24), 5vw, var(--s-64));
  background: radial-gradient(
    120% 90% at 50% 18%,
    var(--cream) 0%,
    var(--putty) 52%,
    color-mix(in srgb, var(--putty) 78%, var(--graphite)) 100%
  );
  border: var(--hairline) solid var(--divider);
  border-radius: var(--radius-control);
}
.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--graphite) 0.8px, transparent 0.9px);
  background-size: var(--s-16) var(--s-16);
  opacity: 0.1;
}
.stage > * {
  position: relative;
  z-index: 1;
}
.stage video {
  width: 100%;
  height: auto;
  background: var(--ink);
  border: var(--hairline) solid var(--divider);
  border-radius: var(--radius-control);
}
.stage .window {
  width: min(100%, 420px);
  height: auto;
}
.stage .phones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(var(--s-12), 3vw, var(--s-32));
  width: min(100%, 760px);
}
.stage .phones img {
  width: 100%;
  height: auto;
  border: var(--hairline) solid var(--divider);
  border-radius: var(--radius-control);
}
.stage figcaption {
  font-family: var(--font-mono);
  font-size: var(--t-mono-sm);
  color: var(--graphite);
  text-align: center;
}

/* --- Split: plain question-shaped heading left, prose right --- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-32);
  align-items: start;
}
@media (min-width: 960px) {
  .split {
    grid-template-columns: 1fr 1.4fr;
    gap: var(--s-64);
  }
}
.split h2 {
  font-family: var(--font-grotesque);
  font-weight: 600;
  font-size: var(--t-h2);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 18ch;
}
.prose p {
  margin: 0 0 var(--s-16);
  max-width: 60ch;
  font-size: 1.0625rem;
  line-height: 1.6;
}
.prose p:last-child {
  margin-bottom: 0;
}
.prose .dry {
  color: var(--text-secondary);
}
.prose .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-12);
  margin: var(--s-24) 0;
}
.prose h3 {
  font-family: var(--font-grotesque);
  font-weight: 600;
  font-size: 1.1875rem;
  margin: var(--s-32) 0 var(--s-12);
}

/* --- Steps: three numbered moves, hairline-topped --- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-32);
}
@media (min-width: 960px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}
.steps li {
  border-top: var(--hairline) solid var(--text-primary);
  padding-top: var(--s-16);
}
.steps .n {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--t-mono-sm);
  color: var(--text-secondary);
  margin-bottom: var(--s-12);
}
.steps h3 {
  font-family: var(--font-grotesque);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.2;
  margin: 0 0 var(--s-8);
}
.steps p {
  margin: 0;
  color: var(--text-secondary);
}

/* --- Features: a hairline list, name left, detail right --- */
.features {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: var(--hairline) solid var(--divider);
}
.features li {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  padding: var(--s-16) 0;
  border-bottom: var(--hairline) solid var(--divider);
}
@media (min-width: 600px) {
  .features li {
    grid-template-columns: minmax(11rem, 1fr) 2fr;
    gap: var(--s-24);
  }
}
.features strong {
  font-weight: 600;
}
.features span {
  color: var(--text-secondary);
}
.specs-block {
  margin-top: var(--s-48);
}
.specs .row .v {
  text-align: right;
}

/* --- FAQ: native disclosure, server-rendered answers --- */
.faq {
  border-top: var(--hairline) solid var(--divider);
  max-width: 820px;
}
.faq details {
  border-bottom: var(--hairline) solid var(--divider);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: var(--s-16);
  padding: var(--s-16) 0;
  font-weight: 600;
  font-size: 1.0625rem;
  transition: color var(--motion-quick);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--text-secondary);
}
.faq details[open] summary::after {
  content: "\2212";
}
.faq summary:hover {
  color: var(--accent-support);
}
.faq summary:focus-visible {
  outline: 2px solid var(--accent-support);
  outline-offset: 2px;
}
.faq details p {
  margin: 0 0 var(--s-16);
  max-width: 64ch;
  color: var(--text-secondary);
}

/* --- Legal: long-form policy pages (headings, lists, a summary panel) --- */
.legal {
  max-width: 720px;
}
.legal h2 {
  font-family: var(--font-grotesque);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: var(--s-48) 0 var(--s-16);
  padding-top: var(--s-24);
  border-top: var(--hairline) solid var(--divider);
}
.legal h3 {
  font-family: var(--font-grotesque);
  font-weight: 600;
  font-size: 1.125rem;
  margin: var(--s-32) 0 var(--s-8);
}
.legal p,
.legal li {
  font-size: 1.0625rem;
  line-height: 1.6;
}
.legal p {
  margin: 0 0 var(--s-16);
}
.legal ul {
  margin: 0 0 var(--s-16);
  padding-left: var(--s-24);
}
.legal li {
  margin-bottom: var(--s-8);
}
.legal a {
  border-bottom: var(--hairline) solid var(--accent-support);
  transition: color var(--motion-quick);
}
.legal a:hover {
  color: var(--accent-support);
}
.legal .summary {
  background: var(--surface);
  border: var(--hairline) solid var(--divider);
  border-radius: var(--radius-control);
  padding: var(--s-24);
  margin: 0 0 var(--s-32);
}
.legal .summary ul {
  margin: 0;
}
.legal .summary li:last-child {
  margin-bottom: 0;
}
.colophon a:hover {
  color: var(--paper);
}

/* Mono text is always lowercase: section labels, meta lines, specs, captions,
   breadcrumbs, step numbers and the footer colophon. */
.eyebrow,
.hero .meta,
.card .meta,
.specs .row,
.footer-base .colophon,
.crumbs,
.product-head .meta,
.stage figcaption,
.steps .n {
  text-transform: lowercase;
}
