/* Dandori marketing site, Phase 0 preview.
   Tokens come from the Dandori design system (dark web treatment).
   Glass comes from Liquid Glass for the Web (liquid-glass.css / .js).

   Shape rule (Nov 4): glass is rounded, as the library draws it.
   Everything else is square, with 45-degree chamfers on the right-hand corners.
   Chamfers are drawn on a ::before backplate, never with clip-path on an element
   that holds glass, because clip-path on an ancestor blanks the glass inside it. */

:root {
  --ink-1000: #0b0c0d;
  --graphite-900: #17191c;
  --steel-800: #24272b;
  --iron-600: #5b6067;
  --silver-400: #9aa0a6;
  --aluminum-200: #c9cdd1;
  --concrete-100: #e4e5e6;
  --paper-050: #f7f7f6;

  --accent: #ff2414;        /* accent-red on dark ground */
  --accent-paper: #d40f0a;  /* accent-red on light ground, for text-sized accent on paper */

  --surface-sunken: #050606;
  --line: #2e3237;
  --line-strong: #6b7077;
  --line-paper: #c9cdd1;
  --text: #eceeef;
  --text-soft: #c9cdd1;
  --text-muted: #9aa0a6;

  --font-sans: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --chamfer-sm: 6px;
  --chamfer-md: 12px;
  --chamfer-lg: 24px;

  --gutter: 16px;
  --wrap: 1200px;
  --nav-space: 84px;

  /* Liquid Glass. Stronger than the library default so the bend shows over a dark page. */
  --glass-accent: #ff2414;
  --glass-focus-ring: #ff2414;
  --glass-refraction: 1.9;

  color-scheme: dark;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--nav-space);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  background-color: var(--ink-1000);
  /* Blueprint grid: the texture the nav glass bends as the page scrolls under it. */
  background-image:
    linear-gradient(to bottom, rgb(201 205 209 / .1) 1px, transparent 1px),
    linear-gradient(to right, rgb(201 205 209 / .1) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(201 205 209 / .04) 1px, transparent 1px),
    linear-gradient(to right, rgb(201 205 209 / .04) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: center top;
}

h1, h2, h3 { margin: 0; font-stretch: 90%; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
img, svg { display: block; }

.display {
  font-size: clamp(50px, 6.2vw, 86px);
  line-height: .95;
  font-weight: 800;
  font-stretch: 88%;
  letter-spacing: -0.015em;
}
/* The name is never typeset in the display style: the wordmark stands in, sized to cap height. */
.h-mark { display: inline-block; height: .71em; width: auto; vertical-align: baseline; color: var(--aluminum-200); }
h2 { font-size: clamp(32px, 3.8vw, 48px); line-height: 1.04; font-weight: 750; }
h3 { font-size: 22px; line-height: 28px; font-weight: 700; }

.label {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.mono { font-family: var(--font-mono); }
.small { font-size: 13px; line-height: 18px; }
.muted { color: var(--text-muted); }

/* Focus: 2px accent ring, offset 2px. Glass and the lens draw their own ring. */
:focus-visible:not(.glass, .glass *, glass-lens) { outline: 2px solid var(--accent); outline-offset: 2px; }

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 300;
  padding: 10px 14px;
  background: var(--paper-050); color: var(--ink-1000);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 16px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Shape: square with right-hand chamfers ---------- */

/* Direct clip, only for elements that never hold glass. */
.cut {
  --c: var(--chamfer-md);
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%);
}

/* Backplate: the chamfered fill lives on ::before, so glass inside the panel still works. */
.plate { --c: var(--chamfer-md); --plate-fill: var(--graphite-900); position: relative; z-index: 0; }
.plate::before,
.plate--line::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--plate-fill);
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%);
}
.plate--line::before { background: var(--line-strong); }
.plate--line::after { inset: 1px; }

/* ---------- Preview-only markers ---------- */

.ph {
  font-family: var(--font-mono);
  font-size: .92em;
  color: var(--aluminum-200);
  outline: 1px dashed var(--line-strong);
  outline-offset: 1px;
  padding: 0 3px;
  white-space: nowrap;
}
.preview-note {
  max-width: 62em;
  margin-top: 18px;
  padding: 10px 12px;
  border: 1px dashed var(--line-strong);
  color: var(--text-muted);
  font: 500 12px/18px var(--font-mono);
}
.preview-note strong {
  margin-right: 6px;
  color: var(--aluminum-200);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
/* Hidden unless ?notes=on. */
.preview-note { display: none; }
html[data-notes="on"] .preview-note { display: block; }

/* ---------- Glass tuning ---------- */

.glass-button { text-decoration: none; font-weight: 600; }
/* Glass labels use the brand's UI face instead of the library's system font. */
.glass, .glass-switch { font-family: var(--font-sans); }
/* Segmented controls size to their labels instead of stretching across the row.
   Segments split the width equally, so each control sets a minimum segment width. */
.glass-segmented { width: max-content; max-width: 100%; }
.glass-segmented > label { min-width: var(--seg-min, 48px); }
/* Trial (Nov 4): square glass. ?shape=round in the URL shows the rounded version.
   The magnifier stays round. */
html[data-shape="square"] :is(.glass-bar, .glass-item, .glass-button, .glass-segmented, .glass-segmented-lens, .glass-segmented-pill, .call-card),
html[data-shape="square"] .glass-segmented > label,
html[data-shape="square"] .glass-switch :is(input, .glass-switch-track, .glass-switch-thumb, .glass-switch-face),
html[data-shape="square"] .glass-switch .glass-switch-track::before,
html[data-shape="square"] .glass-switch .glass-switch-track::after {
  border-radius: 0;
  --glass-radius: 0px;
}
/* A wider refracting rim on the controls, so the bend is visible. */
:is(.glass-bar, .glass-button, .glass-segmented, .call-card) { --glass-bezel: 16px; }

/* Buttons get the brand's cut: 45-degree chamfers on the right-hand corners, like the D.
   The library draws glass on two layers: ::before (backdrop and fill, overscanned by --_lg-o
   and clipped back to the shape) and ::after (rim highlight and depth). Both get the cut. */
/* Only the last button in a row is cut, so a pair reads as one bar with a cut end. */
html[data-shape="square"] .glass.glass-button {
  --cut: 0px;
  --_ct: calc(var(--_lg-o, 0px) + var(--_lg-bw, 0px));
  --_cl: calc(var(--_lg-ol, var(--_lg-o, 0px)) + var(--_lg-bw, 0px));
  --_cr: calc(var(--_lg-or, var(--_lg-o, 0px)) + var(--_lg-bw, 0px));
  --_ca: var(--_lg-bw, 0px);
}
html[data-shape="square"] .glass.glass-button:last-child { --cut: 10px; }
html[data-shape="square"] .glass.glass-button::before {
  clip-path: polygon(
    var(--_cl) var(--_ct),
    calc(100% - var(--_cr) - var(--cut)) var(--_ct),
    calc(100% - var(--_cr)) calc(var(--_ct) + var(--cut)),
    calc(100% - var(--_cr)) calc(100% - var(--_ct) - var(--cut)),
    calc(100% - var(--_cr) - var(--cut)) calc(100% - var(--_ct)),
    var(--_cl) calc(100% - var(--_ct))
  );
}
html[data-shape="square"] .glass.glass-button::after {
  clip-path: polygon(
    var(--_ca) var(--_ca),
    calc(100% - var(--_ca) - var(--cut)) var(--_ca),
    calc(100% - var(--_ca)) calc(var(--_ca) + var(--cut)),
    calc(100% - var(--_ca)) calc(100% - var(--_ca) - var(--cut)),
    calc(100% - var(--_ca) - var(--cut)) calc(100% - var(--_ca)),
    var(--_ca) calc(100% - var(--_ca))
  );
}
/* Buttons: one highlight on the top and left edges, as if lit from the top left.
   Replaces the library's all-round rim and its drop shadow; the refraction is untouched. */
.glass.glass-button[data-lg-ready]::after {
  border-image: none;
  box-shadow: inset 1px 1px 0 rgb(255 255 255 / .5);
}
/* The library's focus ring sits outside the shape and would be cut off, so draw our own. */
html[data-shape="square"] .glass.glass-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.copy-toggle { --seg-min: 104px; }
.who-toggle { --seg-min: 140px; }
.form-lang { --seg-min: 96px; }
/* Prominent glass: accent tint with the design system's on-accent ink label.
   95 % tint keeps the label at 4.5:1 or better over both dark ground and paper. */
.glass.glass-prominent {
  --_lg-label: var(--ink-1000);
  --_lg-fill: color-mix(in oklab, var(--glass-accent) 95%, transparent);
}
/* The phone bar's plain button sits over whatever scrolls under it, white report pages included,
   where its adaptive tone could leave a pale label on pale glass (Nov 6, Pearce's phone).
   A dark plate keeps the label readable over any page. */
.bottom-bar .glass.glass-button:not(.glass-prominent) {
  --_lg-label: rgb(255 255 255 / .94);
  --_lg-fill: rgb(17 18 20 / .9);
  color: rgb(255 255 255 / .94);
}

/* ---------- Nav (glass) ---------- */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(14px + env(safe-area-inset-top)) max(var(--gutter), calc((100% - var(--wrap)) / 2)) 14px;
  pointer-events: none;
}
.site-nav > * { pointer-events: auto; }
.site-bar { flex: none; }
.bar-brand {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 14px 0 12px;
  color: var(--aluminum-200);
  text-decoration: none;
}
.bar-brand svg { height: 19px; width: auto; }
.lockup .rim { fill: var(--accent); }
/* When the bar turns light over a report sheet, the lockup turns ink and drops its rim. */
.site-bar[data-lg-tone="light"] .bar-brand { color: var(--ink-1000); }
.site-bar[data-lg-tone="light"] .rim { fill: transparent; }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.lang-note {
  position: absolute;
  top: calc(100% - 4px);
  right: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  max-width: 300px;
  padding: 10px 12px;
  background: var(--ink-1000);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font: 500 12px/18px var(--font-mono);
}

.bottom-bar { display: none; }

@media (max-width: 767px) {
  .nav-link, .nav-cta { display: none; }
  .bottom-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    gap: 4px;
    padding: 10px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    pointer-events: none;
  }
  .bottom-bar > * { pointer-events: auto; flex: 1 1 0; max-width: 200px; justify-content: center; }
}

/* ---------- Sections ---------- */

.section { position: relative; z-index: 0; padding-block: 120px; }
.section-head { max-width: 800px; }
.section-head .label { margin-bottom: 16px; }
.section-head .intro { margin-top: 18px; max-width: 36em; font-size: 18px; line-height: 27px; color: var(--text-soft); }
@media (max-width: 767px) { .section { padding-block: 80px; } }

/* ---------- Hero ---------- */

.hero { position: relative; z-index: 0; padding-top: calc(var(--nav-space) + 36px); padding-bottom: 72px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  min-height: min(720px, calc(100svh - var(--nav-space) - 110px));
}
.hero-copy { max-width: 610px; }
.hero-copy > .label { margin-bottom: 22px; }
.lede { margin-top: 22px; font-size: 24px; line-height: 30px; font-weight: 600; font-stretch: 90%; color: var(--text-soft); }
.actions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 36px; }

.hero-visual { position: relative; height: 640px; }
.hero-sheet-track {
  position: absolute;
  top: 0; bottom: 0; left: 56px; right: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 0 68%, transparent 98%);
  mask-image: linear-gradient(#000 0 68%, transparent 98%);
}
.sheet--hero { animation: drift 30s ease-in-out infinite alternate; }
.hero.is-paused .sheet--hero { animation-play-state: paused; }
@keyframes drift { from { transform: translateY(28px); } to { transform: translateY(-190px); } }

.call-card {
  position: absolute;
  left: 0;
  bottom: 70px;
  width: 348px;
  height: 206px;
  border-radius: 28px;
  padding: 18px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #fff;
  --glass-fill-opacity-dark: .72;
}
.call-head { display: flex; align-items: center; gap: 8px; }
.call-card .label { color: #eceeef; }
.call-live { flex: none; width: 7px; height: 7px; background: var(--accent); }
.call-time { margin-left: auto; font: 500 13px/14px var(--font-mono); color: #fff; }
.call-line { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 15px; line-height: 21px; }
.call-who { width: 22px; height: 22px; display: grid; place-items: center; }
.call-who svg { width: 18px; height: 18px; }
.call-avatar {
  border-radius: 9999px; /* the SMS avatar circle: one of the two rounded shapes in the system */
  background: var(--aluminum-200);
  color: var(--ink-1000);
  font: 600 9px/1 var(--font-mono);
  letter-spacing: .04em;
}
.call-a { font-weight: 600; }
.call-a.is-waiting { font-weight: 400; letter-spacing: .2em; }
.call-foot { margin-top: auto; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.call-btn {
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgb(255 255 255 / .6);
  background: transparent;
  color: #fff;
  font: 600 11px/14px var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.call-btn:hover { background: rgb(255 255 255 / .12); }
@media (prefers-reduced-motion: no-preference) {
  .call-live { animation: live 1.4s steps(1, end) infinite; }
}
@keyframes live { 50% { background: transparent; box-shadow: inset 0 0 0 1px var(--accent); } }

@media (max-width: 1100px) and (min-width: 768px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 32px; }
  .call-card { width: 316px; }
}
@media (max-width: 767px) {
  .hero { padding-top: calc(var(--nav-space) + 20px); padding-bottom: 56px; }
  .hero-grid { display: block; min-height: 0; }
  .hero-visual { display: contents; }
  /* On a phone the report sits behind the text as a faint backdrop. */
  .hero-sheet-track { top: 24px; bottom: 0; left: 32%; right: 0; z-index: -1; opacity: .1; }
  .hero-sheet-track .sheet--hero { width: 560px; }
  .lede { font-size: 21px; line-height: 26px; }
  .call-card { position: relative; left: auto; bottom: auto; width: 100%; max-width: 380px; margin-top: 40px; }
}

/* ---------- Report sheet (always light paper) ---------- */

.sheet {
  --c: var(--chamfer-lg);
  --plate-fill: var(--paper-050);
  padding: 32px 36px 26px;
  color: var(--ink-1000);
  font-size: 14px;
  line-height: 20px;
}
.sheet .label { color: var(--iron-600); }
.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 3px solid var(--ink-1000);
}
.sheet-head .lockup { width: 210px; height: auto; color: var(--ink-1000); }
.sheet-meta { text-align: right; }
.sheet-date { margin-top: 4px; font-size: 26px; line-height: 30px; font-weight: 750; font-stretch: 90%; white-space: nowrap; }
.sheet-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-paper);
}
.sheet .status { color: var(--accent-paper); }
.sheet-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 16px;
  margin: 0;
  border-bottom: 1px solid var(--line-paper);
}
.sheet-fields > div { padding: 12px 6px; margin-inline: -6px; }
.sheet-fields dd { margin: 4px 0 0; font: 500 14px/20px var(--font-mono); }
.sheet-sec { margin-top: 20px; }
.sheet-sec h3 { font-size: 17px; line-height: 22px; font-weight: 700; font-stretch: 100%; letter-spacing: 0; }
.rows { list-style: none; margin: 8px 0 0; padding: 0; }
.row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin-inline: -8px;
  padding: 9px 8px;
  border-top: 1px solid var(--line-paper);
  transition: background-color .2s, box-shadow .2s;
}
.row .t { flex: 1 1 0; min-width: 0; }
.row .t .label { margin-left: 6px; }
.cells { flex: none; display: flex; align-items: baseline; gap: 14px; }
.n { font-family: var(--font-mono); font-weight: 500; white-space: nowrap; text-align: right; }
.n.code { color: var(--iron-600); }
.n.qty { min-width: 104px; }
.n.pct { min-width: 34px; }
.n.hrs { min-width: 48px; }
.play {
  min-width: 52px;
  margin: -4px -4px;
  padding: 4px 4px;
  border: 0;
  background: none;
  color: var(--accent-paper);
  font: 600 12px/20px var(--font-mono);
  text-align: right;
  white-space: nowrap;
  cursor: pointer;
}
button.play:hover { text-decoration: underline; text-underline-offset: 3px; }
.sheet .is-live,
.sheet .is-active { background: var(--concrete-100); box-shadow: inset 3px 0 0 var(--accent-paper); }
.flag-line { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding-top: 6px; font-size: 13px; line-height: 18px; }
.flag {
  --c: var(--chamfer-sm);
  display: inline-block;
  padding: 3px 10px 3px 7px;
  background: var(--accent-paper);
  color: #fff;
  font: 600 11px/14px var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%);
}
.flag--dark { background: var(--accent); color: var(--ink-1000); }
.photos { display: flex; gap: 12px; margin-top: 10px; }
.photo { flex: 0 1 168px; margin: 0; padding: 6px; margin: -6px; transition: background-color .2s, box-shadow .2s; }
.photo-box {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-paper);
  background: repeating-linear-gradient(-45deg, #e4e5e6 0 7px, #edeeef 7px 14px);
}
.photo-box .ph { color: var(--iron-600); outline-color: var(--iron-600); }
.photo figcaption { margin-top: 6px; font-size: 12px; line-height: 16px; color: var(--iron-600); }
.sheet-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 10px;
  border-top: 1px solid var(--line-paper);
}

@media (max-width: 767px) {
  .sheet { --c: var(--chamfer-md); padding: 22px 18px 18px; }
  .sheet-head .lockup { width: 136px; }
  .sheet-date { font-size: 20px; line-height: 24px; }
  .sheet-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row .t { flex-basis: 100%; }
  .cells { margin-left: auto; }
  .sheet-foot { flex-direction: column; gap: 4px; }
}

/* ---------- Problem ---------- */

.problem-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; margin-top: 56px; }

/* The thin report: a late, copied daily with a second form stacked behind it. */
.thin-stack { position: relative; max-width: 470px; margin: 28px 28px 0 0; }
.thin-sheet { --c: var(--chamfer-md); --plate-fill: var(--paper-050); padding: 22px 24px 10px; color: var(--ink-1000); }
.thin-sheet .label { color: var(--iron-600); }
.thin-sheet--back {
  position: absolute;
  inset: -28px -28px 28px 28px;
  --plate-fill: var(--concrete-100);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  height: auto;
  padding: 0;
  padding-right: 34px;
  align-content: start;
}
.thin-sheet--back { align-items: flex-start; padding-top: 5px; }
.thin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 3px solid var(--ink-1000); }
.thin-sent { display: inline-flex; align-items: center; gap: 8px; }
.thin-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 30px; gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line-paper); }
.thin-head + .thin-row { border-top: 0; }
.thin-val { font: 500 15px/20px var(--font-mono); }
.thin-blank { height: 1px; border-bottom: 1px dashed var(--iron-600); }

/* Numbered marks: small accent plates with the brand's cut, tying the sheet to the list. */
.mark {
  --c: 5px;
  display: inline-grid;
  place-items: center;
  justify-self: end;
  min-width: 28px;
  height: 20px;
  padding: 0 7px 0 5px;
  background: var(--accent-paper);
  color: #fff;
  font: 600 11px/1 var(--font-mono);
  letter-spacing: .04em;
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%);
}

.problem-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.problem-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; align-items: start; padding: 24px 0; border-bottom: 1px solid var(--line); }
.problem-list .mark { justify-self: start; margin-top: 4px; background: var(--accent); color: var(--ink-1000); }
.problem-list h3 { font-size: 24px; line-height: 30px; }
.problem-list p:not(.preview-note) { margin-top: 4px; color: var(--text-soft); font-size: 17px; line-height: 25px; }
@media (max-width: 900px) {
  .problem-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; margin-top: 64px; }
  .thin-stack { max-width: none; }
}
@media (max-width: 767px) {
  .thin-sheet { padding: 18px 18px 8px; }
  .thin-row { grid-template-columns: 84px minmax(0, 1fr) 30px; gap: 10px; }
  .thin-val { font-size: 14px; }
  .problem-list h3 { font-size: 21px; line-height: 27px; }
}

/* ---------- How it works ---------- */

.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.step { padding: 24px 24px 28px; }
.step-top { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.step-marker { --c: 3px; flex: none; width: 10px; height: 10px; background: var(--aluminum-200); }
.step-num { font: 500 13px/14px var(--font-mono); }
.step h3 { margin-bottom: 10px; font-size: 20px; line-height: 26px; }
.step p { color: var(--text-soft); font-size: 15px; line-height: 23px; }
.how-line { margin-top: 40px; font-size: 24px; line-height: 30px; font-weight: 700; font-stretch: 90%; }
@media (max-width: 1023px) and (min-width: 768px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .steps { grid-template-columns: 1fr; gap: 0; margin-top: 40px; }
  .step { padding: 0 0 30px 30px; }
  .step.plate::before { display: none; }
  .step::after { content: ""; position: absolute; left: 4px; top: 16px; bottom: 0; width: 1px; background: var(--line-strong); }
  .step:last-child::after { display: none; }
  .step-marker { position: absolute; left: 0; top: 2px; }
  .how-line { font-size: 21px; line-height: 27px; }
}

/* ---------- Sample report ---------- */

.sample-grid { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: 56px; align-items: start; }
.sample-copy { position: sticky; top: 112px; }
.sample-copy .intro { margin-top: 18px; color: var(--text-soft); font-size: 17px; line-height: 26px; }
.sample-key { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; font-size: 14px; line-height: 21px; color: var(--text-soft); }
.sample-key li { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; align-items: baseline; }
/* Phones and other browsers without the lens: a line's source opens on a tap (site.js). */
.sample-hint { display: none; margin-top: 18px; color: var(--text-soft); font-size: 14px; line-height: 21px; }
html[data-sample="scroll"] .sample-hint { display: block; }
html[data-sample="scroll"] .sheet--sample [data-src] { cursor: pointer; }
.key-play { font: 600 12px/20px var(--font-mono); color: var(--accent); }
.gc-note { margin-top: 22px; color: var(--text-muted); font-size: 14px; line-height: 21px; }
.sample-made-up { margin-top: 22px; }
.sample-col { min-width: 0; }
.copy-toggle-row { position: relative; z-index: 2; display: flex; justify-content: center; margin-bottom: -22px; }
.sample-stage { position: relative; }
.sheet--sample { padding-top: 54px; }
glass-lens.lens { position: absolute; left: 0; top: 0; z-index: 2; }
/* With a mouse the lens follows the pointer, so clicks pass through it to the play links.
   On touch screens it stays draggable. */
@media (hover: hover) and (pointer: fine) {
  glass-lens.lens, glass-lens.lens * { pointer-events: none; }
  html[data-sample="lens"] .sample-stage { cursor: crosshair; }
}
/* Scroll mode (Safari, Firefox, phones): no lens; the line at reading height lights up. */
html[data-sample="scroll"] glass-lens.lens { display: none; }
/* Frosted tier (iPhone Safari, Firefox): no magnifying, so keep the lens nearly clear
   and the line under it readable. */
glass-lens.lens:is([data-lg-tier="b"], [data-lgc-tier="b"]) {
  --glass-blur: 0.8px;
  --glass-fill-opacity: .04;
  --glass-fill-opacity-dark: .04;
}
.source-tag {
  --c: var(--chamfer-md);
  --plate-fill: var(--ink-1000);
  position: absolute;
  left: 0; top: 0;
  z-index: 3;
  width: 288px;
  padding: 14px 16px;
  pointer-events: none;
  color: var(--text);
}
.source-tag .label { color: var(--aluminum-200); }
.src-quote { margin-top: 8px; font-size: 15px; line-height: 21px; }
.src-also { margin-top: 6px; color: var(--text-muted); }
.src-meta { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.src-at { font: 600 12px/18px var(--font-mono); color: var(--accent); }
.src-clip { font: 500 11px/16px var(--font-mono); color: var(--text-muted); }
@media (prefers-reduced-motion: no-preference) { .source-tag { transition: transform .12s ease-out; } }

/* Sub copy / GC copy: CSS does the switch, so it works without the script too. */
.gc-only { display: none; }
.sample:has(input[name="copy"][value="gc"]:checked) .sub-only,
.sample[data-copy="gc"] .sub-only { display: none; }
.sample:has(input[name="copy"][value="gc"]:checked) .gc-only,
.sample[data-copy="gc"] .gc-only { display: revert; }

@media (max-width: 1023px) {
  .sample-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .sample-copy { position: static; max-width: 640px; }
}
@media (max-width: 767px) {
  .sheet--sample { padding-top: 46px; }
  .source-tag { width: min(288px, calc(100% - 16px)); }
}

/* ---------- Foreman / office ---------- */

.who { overflow: hidden; }
.outline-word path { fill: none; stroke: rgb(201 205 209 / .11); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.who-bg { position: absolute; inset: 0; z-index: -1; display: flex; align-items: center; pointer-events: none; }
.who-bg svg { flex: none; width: 124%; height: auto; margin-left: -12%; }
.who-toggle-row { margin: 40px 0 20px; }
.who-panel { max-width: 780px; padding: 30px 32px; --plate-fill: rgb(23 25 28 / .94); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; background: var(--aluminum-200); }
.ticks--lg li { font-size: 20px; line-height: 28px; }
.ticks--lg li::before { top: 11px; }
[data-who-panel="office"] { display: none; }
.who:has(input[name="who"][value="office"]:checked) [data-who-panel="foreman"],
.who[data-who="office"] [data-who-panel="foreman"] { display: none; }
.who:has(input[name="who"][value="office"]:checked) [data-who-panel="office"],
.who[data-who="office"] [data-who-panel="office"] { display: block; }
@media (max-width: 767px) {
  .who-bg svg { width: 260%; margin-left: -40%; }
  .who-panel { padding: 24px 20px; }
  .ticks--lg li { font-size: 18px; line-height: 26px; }
  .ticks--lg li::before { top: 10px; }
}

/* ---------- Founders ---------- */

.founders-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.founder-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
/* Until there are photos: initials on a plain plate. */
.photo-ph--initials { background: #15171a; }
.photo-ph--initials .initials { font: 600 40px/1 var(--font-mono); letter-spacing: .08em; color: var(--aluminum-200); }
.founder { margin: 0; }
.photo-ph {
  aspect-ratio: 4 / 5;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 18px;
  text-align: center;
  background: repeating-linear-gradient(-45deg, #15171a 0 10px, #1c1f23 10px 20px);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 18px;
}
.founder figcaption { margin-top: 12px; display: grid; gap: 3px; }
.founder .name { font-size: 17px; line-height: 22px; font-weight: 700; }
.founder .bio { margin-top: 4px; color: var(--text-muted); font-size: 13px; line-height: 18px; }
.founders-copy .body-lg { margin-top: 20px; font-size: 18px; line-height: 28px; color: var(--text-soft); }
.founders-copy .glass-button { margin-top: 28px; }
@media (max-width: 900px) {
  .founders-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .founders-copy { order: -1; }
}

/* ---------- Pricing ---------- */

.pricing-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: start; }
.price-card { --c: var(--chamfer-lg); padding: 36px; }
.price-card.plate--line::after {
  background:
    linear-gradient(to bottom, rgb(201 205 209 / .045) 1px, transparent 1px) 0 0 / 100% 24px,
    linear-gradient(to right, rgb(201 205 209 / .045) 1px, transparent 1px) 0 0 / 24px 100%,
    var(--graphite-900);
}
.price-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.price-amt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 12px; }
.amt { font: 500 58px/1 var(--font-mono); letter-spacing: -0.03em; }
.per { font: 500 13px/18px var(--font-mono); color: var(--text-muted); }
.price-row .sub { margin-top: 12px; color: var(--text-soft); font-size: 15px; line-height: 22px; }
.price-includes { margin-top: 28px; }
.price-includes .ticks { margin-top: 14px; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.price-card .glass-button { margin-top: 32px; }
.pricing-copy .intro { margin-top: 18px; font-size: 18px; line-height: 27px; color: var(--text-soft); }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
@media (max-width: 560px) {
  .price-card { padding: 28px 22px; }
  .price-rows, .price-includes .ticks { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */

.faq-list { max-width: 860px; margin-top: 48px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item > summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 2px;
  cursor: pointer;
  list-style: none;
  font-size: 19px;
  line-height: 26px;
  font-weight: 600;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after { content: "+"; flex: none; font: 500 20px/26px var(--font-mono); color: var(--text-muted); }
.faq-item[open] > summary::after { content: "\2212"; }
.faq-a { max-width: 680px; padding: 0 2px 24px; color: var(--text-soft); font-size: 17px; line-height: 26px; }

/* ---------- Get started (form) ---------- */

.start-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.start-copy .intro { margin-top: 18px; font-size: 18px; line-height: 27px; color: var(--text-soft); }
.start-copy .small { margin-top: 16px; }
.start-form {
  --c: var(--chamfer-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 18px;
}
.field { display: grid; gap: 8px; align-content: start; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field-label {
  font: 600 11px/14px var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field-label .opt { text-transform: none; letter-spacing: 0; font-weight: 500; }
.input {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background-color: var(--surface-sunken);
  color: var(--text);
  font: 400 16px/24px var(--font-sans);
}
select.input {
  padding-right: 40px;
  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='%239aa0a6' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.input:hover { border-color: #858a91; }
.input:user-invalid { border-color: var(--accent); }
.consent {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  background: var(--surface-sunken);
}
.consent input { width: 22px; height: 22px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.consent label { font-size: 14px; line-height: 21px; cursor: pointer; }
.consent a { color: var(--text); text-underline-offset: 2px; }
.consent-help { grid-column: 1 / -1; margin-top: -10px; color: var(--text-muted); font-size: 13px; line-height: 18px; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-note {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  background: var(--surface-sunken);
  font-size: 15px;
  line-height: 22px;
}
.form-note .label { color: var(--accent); }
.form-note .small { color: var(--text-muted); }
.form-note:focus { outline: none; }
@media (max-width: 900px) { .start-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
@media (max-width: 560px) { .start-form { grid-template-columns: minmax(0, 1fr); padding: 24px 18px; } }

/* ---------- Footer: two condensed rows ---------- */

.site-footer { position: relative; z-index: 0; padding: 32px 0 28px; border-top: 1px solid var(--line); }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; }
.footer-brand { display: block; color: var(--aluminum-200); }
.footer-brand .lockup { width: 132px; height: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; line-height: 20px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-contact { margin-left: auto; font-size: 14px; line-height: 20px; color: var(--text-soft); }
.footer-contact .sep { margin: 0 10px; color: var(--text-muted); }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 12px;
  line-height: 18px;
}
.rt-switch { color: var(--text); font-size: 12px; }
.footer-base .jp { margin-left: auto; font-family: var(--font-mono); }
@media (max-width: 767px) {
  .site-footer { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .footer-contact { margin-left: 0; flex-basis: 100%; }
  .footer-base .jp { margin-left: 0; }
}

/* ---------- Placeholder legal pages ---------- */

.legal { padding-top: calc(var(--nav-space) + 64px); padding-bottom: 96px; }
.legal-card { --c: var(--chamfer-lg); max-width: 760px; padding: 40px; }
.legal-card h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1; font-weight: 800; font-stretch: 88%; margin-top: 14px; }
.draft-badge {
  --c: var(--chamfer-sm);
  display: inline-block;
  margin-top: 22px;
  padding: 6px 14px 6px 10px;
  background: var(--accent);
  color: var(--ink-1000);
  font: 600 12px/16px var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%);
}
.legal-card .intro { margin-top: 22px; color: var(--text-soft); font-size: 17px; line-height: 26px; }
.sms-lines { list-style: none; margin: 26px 0 0; padding: 0; border-top: 1px solid var(--line); }
.sms-lines li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; line-height: 26px; }
.sms-lines strong { font-family: var(--font-mono); font-weight: 600; }
.legal-contact { margin-top: 26px; color: var(--text-soft); }
.legal-links { margin-top: 18px; color: var(--text-muted); }
.legal-links a { color: var(--text); text-underline-offset: 3px; }
.sms-head { margin-top: 34px; font-size: 22px; line-height: 28px; font-weight: 700; }
.site-footer--short { padding-top: 0; border-top: 0; }
.site-footer--short .footer-base { margin-top: 0; }
@media (max-width: 767px) { .legal-card { padding: 28px 20px; } }
