/* pocket-grader.app — one stylesheet for every page.
   The Open Workshop design of the app itself (Outputs/Open Workshop Reskin Design Brief.md) and of
   reidechols.com: a deep-green cutting mat with a quiet grid, warm-white paper cards, gold for the one
   action or mark that matters, dark-green ink. Never white text on gold. Headings use the system's
   rounded face, as the app does; body text uses the system face. No web fonts are loaded. */

:root {
  --mat: #173f33;
  --deep: #0f2d25;
  --gold: #edbd4f;
  --gold-soft: #f7df9e;
  --card: #fffdf8;
  --ink: #1a2923;
  --muted: #5c6963;
  --soft: #edf2ef;
  --line: rgba(23, 63, 51, 0.22);
  --on-mat: #ffffff;
  --on-mat-soft: rgba(255, 255, 255, 0.8);
  --on-mat-line: rgba(255, 255, 255, 0.16);
  --grid-line: rgba(255, 255, 255, 0.045);
  --frame: #0b211b;
  --paper-link: #173f33;
  --paper-focus: #173f33;
  --tint-yellow: #fbf0d5;
  --tint-green: #e3f1e7;
  --tint-blue: #edf2ef;
  --band: #0f2d25;
  --tape: rgba(244, 219, 153, 0.82);
  --tape-edge: rgba(120, 98, 48, 0.2);
  --shadow: 0 4px 14px rgba(6, 22, 17, 0.14), 0 14px 34px rgba(6, 22, 17, 0.16);
  --shadow-lift: 0 4px 10px rgba(6, 22, 17, 0.18), 0 24px 54px rgba(6, 22, 17, 0.26);
  --round: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --mat: #0f2d25;
    --deep: #091e19;
    --card: #182c25;
    --ink: #f7f8f4;
    --muted: #bdc8c2;
    --soft: #213c33;
    --line: rgba(255, 255, 255, 0.18);
    --grid-line: rgba(255, 255, 255, 0.06);
    --frame: #050f0c;
    --paper-link: #f7df9e;
    --paper-focus: #edbd4f;
    --tint-yellow: #3a3220;
    --tint-green: #1d3a2a;
    --tint-blue: #213c33;
    --band: #091e19;
    --shadow: 0 4px 14px rgba(0, 0, 0, 0.32);
    --shadow-lift: 0 6px 18px rgba(0, 0, 0, 0.4), 0 24px 54px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background-color: var(--mat);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--on-mat-soft);
  font: 400 1.125rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  --focus: var(--gold);
}

a { color: var(--gold-soft); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a[href^="mailto:"] { white-space: nowrap; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--round); font-weight: 700; color: var(--on-mat); letter-spacing: -0.015em; text-wrap: balance; }
p { text-wrap: pretty; }

/* Paper: every warm-white card. Text, links and focus switch from the mat's to the paper's. */
.paper, .card, .prose, .changelog, .press, .step, .note, .paper-card, .chip {
  background: var(--card);
  color: var(--muted);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  --focus: var(--paper-focus);
}
.card h1, .card h2, .card h3, .prose h1, .prose h2, .prose h3, .changelog h1, .changelog h2, .changelog h3,
.press h1, .press h2, .press h3, .step h2, .note h3, .paper-card h2 { color: var(--ink); }
.card a, .prose a, .changelog a, .press a, .step a, .note a, .paper-card a { color: var(--paper-link); }

/* Section headings in the app carry a short gold bar at their left. */
.bar-head { display: flex; align-items: center; gap: 0.65rem; }
.bar-head::before {
  content: ""; flex: 0 0 auto; width: 5px; height: 1.05em; border-radius: 3px; background: var(--gold);
}

/* Decorative tape, as on the app's Home card and finished-files card */
.taped { position: relative; }
.taped::before {
  content: ""; position: absolute; z-index: 2; top: -15px; left: calc(50% - 56px);
  width: 112px; height: 30px; rotate: -2deg;
  background: var(--tape); border: 1px solid var(--tape-edge); border-radius: 2px;
  box-shadow: 0 2px 6px rgba(6, 22, 17, 0.12);
}

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--card); color: var(--ink); padding: 0.5rem 1rem; border-radius: 8px; z-index: 10;
}
.skip:focus { top: 1rem; }

/* Header: a floating dark-green bar set in from the page edges */
.site-header {
  max-width: 1120px;
  margin: 16px auto 0;
  padding: 0 16px;
  position: sticky;
  top: 12px;
  z-index: 5;
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: rgba(15, 45, 37, 0.88);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--on-mat-line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 10px 12px 10px 14px;
}
.brand {
  display: flex; white-space: nowrap; align-items: center; gap: 0.6rem;
  color: var(--on-mat); text-decoration: none;
  font-family: var(--round); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em;
}
.brand img { width: 34px; height: 34px; border-radius: 8px; display: block; box-shadow: 0 0 0 1px var(--on-mat-line); }
.site-header nav ul { list-style: none; display: flex; gap: 0.25rem; margin: 0; padding: 0; }
.site-header nav a {
  display: block; white-space: nowrap; padding: 0.4rem 0.7rem; border-radius: 10px;
  color: var(--on-mat-soft); font-size: 0.95rem; font-weight: 500; text-decoration: none;
}
.site-header nav a:hover { color: var(--on-mat); background: rgba(255, 255, 255, 0.08); }
.site-header nav a[aria-current="page"] { color: var(--on-mat); font-weight: 600; box-shadow: inset 0 -2px 0 var(--gold); border-radius: 10px 10px 2px 2px; }

/* Home: hero */
.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 16px 88px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.1rem);
  line-height: 1.06;
  margin: 0 0 1.5rem;
}
.hero h1 .accent { display: block; color: var(--gold); }
.hero .lede p { margin: 0 0 1rem; max-width: 34rem; font-size: 1.2rem; color: var(--on-mat-soft); }
.hero .lede p + p { font-size: 1.05rem; }

.status {
  display: inline-flex; align-items: center; gap: 0.55rem;
  margin-top: 1.25rem;
  padding: 0.55rem 1.1rem;
  border: 1.5px dashed var(--gold);
  border-radius: 999px;
  color: var(--on-mat); font-family: var(--round); font-weight: 700; font-size: 0.98rem;
  background: rgba(255, 255, 255, 0.05);
}
.status::before {
  content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--gold);
}

.phone { position: relative; justify-self: center; width: min(330px, 100%); margin: 0; }
.phone img {
  display: block; width: 100%; height: auto;
  border: 10px solid var(--frame);
  border-radius: 46px;
  box-shadow: var(--shadow-lift);
  background: #fff;
}
.chip {
  position: absolute;
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--ink);
  border-radius: 12px;
  padding: 0.5rem 0.8rem;
  font-family: var(--round); font-size: 0.88rem; font-weight: 700; white-space: nowrap;
}
.chip-comment { top: 18%; left: -64px; }
.chip-comment::before {
  content: "✓"; display: grid; place-items: center;
  width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: #173f33; color: #fff; font-size: 0.75rem;
}
.chip-rubric { bottom: 24%; right: -52px; }
.chip-rubric::before {
  content: ""; width: 0.8rem; height: 0.8rem; border-radius: 3px; background: var(--gold);
}

/* Home: sections below the hero */
.section-head { text-align: center; max-width: 46rem; margin: 0 auto 2.5rem; }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 2.8rem); line-height: 1.1; margin: 0; }
.section-head h2::after {
  content: ""; display: block; width: 56px; height: 5px; margin: 1rem auto 0;
  border-radius: 3px; background: var(--gold);
}
.section-head p { margin: 1rem 0 0; color: var(--on-mat-soft); }

.strip { max-width: 1120px; margin: 0 auto; padding: 0 16px 88px; text-align: center; }
.strip p { margin: 0 0 1rem; color: var(--on-mat-soft); font-size: 0.95rem; font-weight: 600; }
.strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.strip li {
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--on-mat-line); border-radius: 999px;
  padding: 0.4rem 1rem; color: var(--on-mat); font-size: 0.95rem; font-weight: 500;
}

.features { max-width: 1120px; margin: 0 auto; padding: 0 16px 96px; }
.group + .group { margin-top: 2.75rem; }
.group-label {
  display: flex; align-items: center; gap: 0.65rem;
  margin: 0 0 1rem; color: var(--on-mat);
  font-family: var(--round); font-size: 1.3rem; font-weight: 700;
}
.group-label::before {
  content: ""; width: 5px; height: 1.05em; border-radius: 3px; background: var(--gold);
}
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; grid-auto-flow: dense; }
.card {
  border-radius: 18px;
  padding: 24px 24px 22px; display: flex; flex-direction: column; overflow: hidden;
}
.card h3 { font-size: 1.3rem; line-height: 1.25; margin: 0.9rem 0 0.5rem; }
.card p { margin: 0; font-size: 1.02rem; }
.card .icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--soft); color: var(--paper-link);
}
.card.has-shot { grid-row: span 2; padding-bottom: 0; }
.card.wide { grid-column: span 2; }
.tint-yellow { background: var(--tint-yellow); }
.tint-green { background: var(--tint-green); }
.tint-blue { background: var(--tint-blue); }
.tint-yellow .icon, .tint-green .icon, .tint-blue .icon { background: var(--card); }
.shot {
  margin: 1.5rem auto 0; width: min(260px, 100%); height: 300px; flex: 1 0 300px;
  border: 8px solid var(--frame); border-bottom: 0; border-radius: 34px 34px 0 0;
  overflow: hidden; background: #fff;
}
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.crop-top img { object-position: top; }
.crop-bottom img { object-position: 50% 92%; }

.privacy-band { background: var(--band); color: var(--on-mat-soft); border-block: 1px solid var(--on-mat-line); }
.privacy-band .inner { max-width: 1120px; margin: 0 auto; padding: 88px 16px; }
.privacy-band ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px;
}
.privacy-band li { border-top: 2px dashed var(--gold); padding-top: 1rem; font-size: 1.02rem; }
.privacy-band li strong {
  display: block; margin-bottom: 0.35rem; color: var(--on-mat);
  font-family: var(--round); font-weight: 700; font-size: 1.3rem;
}
.privacy-band ul + p { margin: 2.5rem 0 0; text-align: center; }

.result {
  max-width: 1120px; margin: 0 auto; padding: 104px 16px;
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center;
}
.result h2 { font-size: clamp(2rem, 4.2vw, 2.8rem); line-height: 1.1; margin: 0 0 1.25rem; }
.result h2::after { content: ""; display: block; width: 56px; height: 5px; margin-top: 1rem; border-radius: 3px; background: var(--gold); }
.result-text p { margin: 0 0 1rem; }
.sheets { position: relative; margin: 0; aspect-ratio: 1 / 0.92; }
.sheet {
  position: absolute; background: #fff; border-radius: 8px; overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.sheet img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.sheet-draft { top: 0; right: 0; width: 66%; height: 86%; }
.sheet-feedback { left: 0; bottom: 0; width: 74%; padding: 22px 24px 0; max-height: 62%; }
.sheet-feedback img { height: auto; object-fit: initial; }

.closing { max-width: 40rem; margin: 0 auto; padding: 24px 16px 104px; text-align: center; }
.closing img { display: block; margin: 0 auto 1.25rem; border-radius: 16px; box-shadow: var(--shadow-lift); }
.closing h2 { font-size: clamp(2rem, 4.2vw, 2.6rem); line-height: 1.1; margin: 0 0 0.75rem; }
.closing p { margin: 0; }

/* How It Works: numbered steps, each a paper card with a phone screenshot, alternating sides */
.steps-page { max-width: 1040px; margin: 0 auto; padding: 64px 16px 48px; }
.steps-head { max-width: 44rem; margin: 0 auto 3rem; text-align: center; }
.steps-head h1 { font-size: clamp(2.4rem, 5.4vw, 3.4rem); line-height: 1.08; margin: 0 0 1rem; }
.steps-head .lede { margin: 0 0 1.75rem; font-size: 1.2rem; }
.steps-head .sample { margin: 0; padding: 1.4rem 1.5rem 1.2rem; font-size: 1rem; text-align: left; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.step {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 52px; align-items: center;
  padding: 44px 48px; border-radius: 26px;
}
.step:nth-child(even) { grid-template-columns: 260px minmax(0, 1fr); }
.step:nth-child(even) .step-shot { order: -1; }
.step-num {
  display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--gold); color: #0f2d25;
  font-family: var(--round); font-weight: 800; font-size: 1.2rem;
}
.step h2 { font-size: clamp(1.7rem, 3.4vw, 2.2rem); line-height: 1.15; margin: 1rem 0 0.9rem; }
.step-text p { margin: 0 0 1rem; }
.step-text ul { margin: 0; padding-left: 1.2rem; }
.step-text li { margin: 0.45rem 0; }
.step-text strong { color: var(--ink); }
.step-shot { margin: 0; }
.step-shot img {
  display: block; width: 100%; height: auto;
  border: 8px solid var(--frame); border-radius: 40px;
  box-shadow: var(--shadow); background: #fff;
}

/* Paper pages: Support, Privacy, FAQ, Changelog, Press Kit, 404. One large card on the mat. */
.prose, .changelog, .press {
  width: min(48rem, calc(100% - 32px));
  margin: 48px auto 72px;
  padding: 52px 56px 56px;
  border-radius: 26px;
}
.changelog { width: min(56rem, calc(100% - 32px)); }
.press { width: min(68rem, calc(100% - 32px)); }
.prose h1, .page-head h1 {
  font-size: clamp(2.2rem, 5vw, 3rem);
  line-height: 1.1;
  margin: 0 0 0.5rem;
}
.prose .meta { color: var(--muted); font-size: 0.95rem; margin: 0 0 2rem; }
.prose h1 + p { margin-top: 1.5rem; }
.prose h3, .press-text h2, .press-icons h2, .press-shots h2, .month h2 {
  display: flex; align-items: center; gap: 0.65rem;
  font-size: 1.45rem; line-height: 1.25;
  margin: 2.75rem 0 0.75rem;
}
.prose h3::before, .press-text h2::before, .press-icons h2::before, .press-shots h2::before, .month h2::before {
  content: ""; flex: 0 0 auto; width: 5px; height: 1.05em; border-radius: 3px; background: var(--gold);
}
.prose h4 {
  font-family: var(--round); font-size: 1.12rem; font-weight: 700; color: var(--ink);
  margin: 1.75rem 0 0.4rem;
}
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--ink); }
.prose ul { padding-left: 1.25rem; }
.prose li { margin: 0.35rem 0; }

/* Changelog and Press Kit */
.page-head { max-width: 44rem; margin: 0 0 1.5rem; }
.page-head h1 { margin-bottom: 1rem; }
.page-head .lede { font-size: 1.2rem; margin: 0 0 1.5rem; }
.month h2 { margin: 2.25rem 0 0; padding-bottom: 0.75rem; border-bottom: 1px solid var(--line); }
.entry {
  display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1.5rem;
  padding: 1.75rem 0; border-bottom: 1px solid var(--line);
}
.month .entry:last-child { border-bottom: 0; padding-bottom: 0.5rem; }
.entry time { color: var(--muted); font-size: 0.95rem; font-weight: 600; padding-top: 0.35rem; }
.entry h3 { font-size: 1.35rem; line-height: 1.25; margin: 0 0 0.6rem; }
.entry-text p { margin: 0 0 0.75rem; }
.entry-text ul { margin: 0; padding-left: 1.2rem; }
.entry-text li { margin: 0.4rem 0; }
.button {
  display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.6rem;
  min-height: 48px; padding: 0.8rem 1.4rem; border-radius: 999px;
  background: var(--gold); color: #0f2d25; font-family: var(--round); font-weight: 700; text-decoration: none;
  box-shadow: 0 6px 16px rgba(6, 22, 17, 0.16);
}
.press a.button { color: #0f2d25; }
.button:hover { box-shadow: 0 0 0 4px rgba(237, 189, 79, 0.32); }
.button span { font-weight: 500; font-size: 0.9rem; }
.press-text { max-width: 44rem; }
.press-text p, .press-text li, .press-icons p, .press-shots p { color: var(--muted); }
.press-text strong { color: var(--ink); }
.press-text ul { list-style: none; padding: 0; margin: 0; }
.press-text li { margin: 0.35rem 0; }
.press-icons ul, .press-shots ul { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.press-icons ul { display: flex; flex-wrap: wrap; gap: 1rem; }
.press-icons a {
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
  padding: 1.1rem 1.4rem; border: 1px solid var(--line); border-radius: 16px;
  background: var(--soft); color: var(--ink); font-size: 0.95rem; text-decoration: none;
}
.press-icons a:hover span { text-decoration: underline; }
.press-icons img { display: block; border-radius: 25px; }
.press-shots ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem 1.25rem; }
.press-shots a { display: block; color: var(--ink); font-size: 0.95rem; font-weight: 600; line-height: 1.35; text-decoration: none; }
.press-shots a:hover span { text-decoration: underline; }
.press-shots img {
  display: block; width: 100%; height: auto; margin-bottom: 0.65rem;
  border-radius: 14px; box-shadow: var(--shadow);
}

/* Question cards (FAQ, Support), and at most one soft-gold sticky note a page held by tape, as on
   reidechols.com; the tape is decoration only. Cards stay straight, without tape, so the sticky
   note is the one thing on the page that looks pinned up (Reid, 2026-11-21: fewer stickies). */
.tape {
  position: absolute; z-index: 2; top: -12px; right: 32px;
  width: 76px; height: 24px; rotate: 4deg; pointer-events: none;
  background: var(--tape); border: 1px solid var(--tape-edge); border-radius: 2px;
  box-shadow: 0 2px 5px rgba(6, 22, 17, 0.1);
}
.notes-page { max-width: 1120px; margin: 0 auto; padding: 64px 16px 80px; }
.notes-head { max-width: 46rem; }
.notes-head h1 { font-size: clamp(2.4rem, 5.4vw, 3.4rem); line-height: 1.08; margin: 0 0 1rem; }
.notes-head .lede p { margin: 0 0 1rem; font-size: 1.2rem; }
.note-group { margin-top: 3.25rem; }
.note-group > h2 { font-size: 1.6rem; line-height: 1.2; margin: 0; }
.group-intro { max-width: 46rem; margin-top: 0.75rem; }
.group-intro p { margin: 0; }
.notes {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px;
  margin-top: 2rem; align-items: start;
}
.note { position: relative; padding: 28px 30px 24px; border-radius: 18px; }
.note h3 { font-size: 1.22rem; line-height: 1.3; margin: 0 0 0.6rem; }
.note p, .note li { font-size: 1.02rem; }
.note p { margin: 0 0 0.75rem; }
.note p:last-child, .note ul:last-child { margin-bottom: 0; }
.note ul { margin: 0 0 0.75rem; padding-left: 1.2rem; }
.paper-card { position: relative; max-width: 46rem; margin-top: 2.75rem; padding: 34px 38px 30px; border-radius: 22px; }
.paper-card h2 { font-size: 1.5rem; margin: 0 0 0.75rem; }

.sticky-note, .steps-head .sample {
  position: relative; border: 0; border-radius: 16px;
  background: #f7df9e; color: #1a2923; box-shadow: var(--shadow);
  rotate: -0.6deg; --focus: #173f33;
}
.sticky-note { max-width: 46rem; margin-top: 3rem; padding: 36px 38px 28px; }
.sticky-note h2 { color: #1a2923; font-size: 1.5rem; margin: 0 0 0.75rem; }
.sticky-note p, .sticky-note li { color: #1a2923; }
.sticky-note strong { color: #0f2d25; }
.sticky-note a, .steps-head .sample a { color: #173f33; }
.sticky-note p:last-child { margin-bottom: 0; }
.sticky-note .tape, .steps-head .sample .tape { right: auto; left: calc(50% - 38px); rotate: 2deg; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--on-mat-line);
  margin-top: 24px;
}
.site-footer .inner {
  max-width: 1120px; margin: 0 auto; padding: 28px 16px 40px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  font-size: 0.95rem; color: var(--on-mat-soft);
}
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 0; padding: 0; }
.site-footer a { color: var(--on-mat-soft); }
.site-footer a:hover { color: var(--on-mat); }

/* Motion. The hero rises in on load by CSS alone, so it can never stay hidden. Later sections
   (.reveal) fade in once as they scroll into view (site.js). The grid and tape never move.
   Nothing moves for visitors who ask for reduced motion. */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero > * { animation: rise 0.6s ease both; }
  .hero > .phone { animation-delay: 0.12s; }
  .chip { animation: rise 0.5s ease 0.6s both; }
  .chip-rubric { animation-delay: 0.9s; }
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .js .reveal.shown { opacity: 1; transform: none; }
}

@media (prefers-contrast: more) {
  :root { --line: rgba(23, 63, 51, 0.5); --on-mat-soft: #ffffff; --on-mat-line: rgba(255, 255, 255, 0.4); }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 48px 16px 64px; gap: 56px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card.wide { grid-column: auto; }
  .privacy-band ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result { grid-template-columns: 1fr; gap: 40px; padding: 80px 16px; }
  .chip-comment { left: -24px; }
  .chip-rubric { right: -16px; }
  .press-shots ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .notes { grid-template-columns: 1fr; gap: 30px; }
  .note { padding: 28px 22px 22px; }
  .paper-card, .sticky-note { padding: 30px 22px 24px; }
  .step, .step:nth-child(even) { grid-template-columns: 1fr; gap: 32px; padding: 32px 24px; }
  .step:nth-child(even) .step-shot { order: 0; }
  .step-shot { width: min(240px, 78%); justify-self: center; }
  .prose, .changelog, .press { margin: 28px auto 48px; padding: 36px 24px 40px; border-radius: 22px; }
}

@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  .card.has-shot { grid-row: auto; }
  .privacy-band ul { grid-template-columns: 1fr; }
  .sheet-feedback { padding: 12px 14px 0; }
  .press-shots ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entry { grid-template-columns: 1fr; gap: 0.35rem; }
}

@media (max-width: 520px) {
  .site-header { top: 8px; margin-top: 8px; }
  .brand span { font-size: 1.05rem; }
  .site-header nav a { padding: 0.4rem 0.5rem; font-size: 0.9rem; }
  .phone { width: min(280px, 82%); }
  .chip { font-size: 0.8rem; }
  .chip-comment { left: -18px; }
  .chip-rubric { right: -14px; }
  .prose, .changelog, .press { width: calc(100% - 24px); padding: 30px 20px 34px; }
}

/* On narrow phones the header shows the icon alone; the name stays for screen readers */
@media (max-width: 430px) {
  .brand span {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
}
