/* Dent Repair Pro — styles
   Two materials. PANEL: gentian-blue clear-coated paint carrying pale reflected
   lines. BOARD: matte cool white ruled with blue-black hairlines. The board
   never bends; only the panel's reflection does. */

@font-face {
  font-family: "Big Shoulders Display";
  src: url("assets/fonts/BigShouldersDisplay-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/Archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/Archivo-italic-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --panel: #15309a;
  --panel-high: #1a3bb4;
  --panel-deep: #0b1b5e;
  --line: #f2f5ff;
  --line-soft: #b7c6f2;
  --line-nav: #d5defa;
  --amber: #ffb454;
  --board: #f4f6fb;
  --board-high: #ffffff;
  --ink: #0b1340;
  --ink-soft: #3c4a86;
  --ink-hair: rgba(11, 19, 64, 0.18);
  --ink-rule: rgba(11, 19, 64, 0.82);
  --line-hair: rgba(242, 245, 255, 0.26);
  --placeholder: #5b6794;
  --display: "Big Shoulders Display", "Arial Narrow", "Helvetica Neue", sans-serif;
  --text: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --radius: 2px;
  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --focus: var(--amber);
  --lx: 58%;
  --ly: 30%;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--panel) #e3e8f7;
  scrollbar-width: thin;
}
html::-webkit-scrollbar { width: 10px; }
html::-webkit-scrollbar-track { background: #e3e8f7; }
html::-webkit-scrollbar-thumb { background: var(--panel); border-radius: 0; }

body {
  margin: 0;
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--board);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--amber); color: var(--ink); }
.panel ::selection { background: var(--amber); color: var(--ink); }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--radius);
}
.panel { --focus: var(--amber); caret-color: var(--amber); }
.board-section, .faq-section, .process-section, .footer { --focus: var(--panel); caret-color: var(--panel); }

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 1rem; top: -4rem;
  z-index: 100;
  padding: 0.75rem 1.1rem;
  background: var(--amber); color: var(--ink);
  font-weight: 600; text-decoration: none;
  border-radius: var(--radius);
  transition: top 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.skip:focus-visible { top: 1rem; outline-color: var(--ink); }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- type ---------- */

.display {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.92;
  text-wrap: balance;
}
h2.display {
  font-size: clamp(2.75rem, 5.4vw, 4.75rem);
  max-width: 14ch;
}
.intro {
  margin-top: 1.5rem;
  font-size: clamp(1.1rem, 1.35vw, 1.25rem);
  line-height: 1.5;
  max-width: 62ch;
  color: var(--ink-soft);
}
.panel .intro { color: var(--line-soft); }

/* ---------- materials ---------- */

.panel {
  position: relative;
  color: var(--line);
  background:
    linear-gradient(180deg, var(--panel-high) 0%, var(--panel) 38%, #10267f 78%, var(--panel-deep) 100%);
}

.board-section {
  position: relative;
  padding-block: clamp(4.5rem, 9vw, 8rem);
  background: var(--board);
}
.board-section + .board-section { padding-top: 0; }

/* ---------- plates (controls) ---------- */

.plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0 1.5rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 160ms cubic-bezier(0.2, 0.8, 0.2, 1), background-color 160ms, border-color 160ms, box-shadow 160ms;
}
.plate .icon { width: 1.1rem; height: 1.1rem; fill: currentColor; flex: none; }
.plate:active { transform: translateY(1px); }

.plate-light { background: var(--line); color: var(--ink); border-color: var(--line); }
.plate-light:hover { background: var(--board-high); border-color: var(--board-high); transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(2, 8, 40, 0.7); }
.callbar.plate-light { border: 0; }

.plate-outline { background: transparent; color: var(--line); border-color: rgba(242, 245, 255, 0.72); }
.plate-outline:hover { border-color: var(--line); background: rgba(242, 245, 255, 0.08); }

.plate-dark { background: var(--panel); color: var(--line); border-color: var(--panel); }
.plate-dark:hover { background: var(--panel-high); border-color: var(--panel-high); transform: translateY(-1px); box-shadow: 0 10px 24px -14px rgba(21, 48, 154, 0.8); }

.plate-outline-dark { background: transparent; color: var(--ink); border-color: var(--ink); }
.plate-outline-dark:hover { background: rgba(11, 19, 64, 0.06); }

/* a disabled plate is visibly out of reach: dashed, faded, no cursor, no lift */
.plate:disabled,
.plate[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.45;
  border-style: dashed;
  box-shadow: none;
}
.plate:disabled:hover, .plate:disabled:active,
.plate[aria-disabled="true"]:hover, .plate[aria-disabled="true"]:active {
  transform: none;
  box-shadow: none;
  background: transparent;
}
.readback .plate-outline-dark:disabled { color: var(--line-soft); border-color: rgba(242, 245, 255, 0.45); }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

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

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  overflow: hidden;
}

.masthead {
  position: relative;
  z-index: 3;
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line-hair);
}
.brand {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  column-gap: 0.75rem;
  align-items: center;
  text-decoration: none;
}
.brand img { grid-row: 1 / 3; width: 36px; height: 36px; }
.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1;
}
.brand-place {
  font-size: 0.82rem;
  color: var(--line-soft);
  line-height: 1.1;
  margin-top: 0.15rem;
}
.nav {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 2.4vw, 2.25rem);
}
.nav a {
  color: var(--line-nav);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  padding: 0.35rem 0;
  border-bottom: 1.5px solid transparent;
  transition: border-color 160ms, color 160ms;
}
.nav a:hover { color: var(--line); border-bottom-color: var(--line); }
.masthead-call { min-height: 2.75rem; padding-inline: 1.1rem; font-size: 0.95rem; }

.hero-grid {
  position: relative;
  z-index: 2;
  flex: 1;
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 52fr) minmax(0, 48fr);
  grid-template-rows: 1fr;
  align-items: end;
  gap: 0 clamp(1rem, 3vw, 3rem);
  padding-block: clamp(2rem, 6vh, 4.5rem) clamp(1.5rem, 4vh, 3rem);
}
.hero-copy { position: relative; z-index: 2; grid-column: 1; grid-row: 1; align-self: center; padding-right: clamp(0rem, 2vw, 2rem); }
h1.display {
  font-size: clamp(3.75rem, 9.4vw, 8rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.012em;
}
.lede {
  margin-top: 1.75rem;
  max-width: 44ch;
  font-size: clamp(1.1rem, 1.35vw, 1.25rem);
  line-height: 1.5;
  color: var(--line-soft);
}
.lede + .actions { margin-top: 2rem; }

/* the hero's material: a rendered plate of a door ding under a line board, full bleed behind the copy */
.hero-plate {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: var(--panel-deep);
}
.hero-plate picture, .hero-plate img { display: block; width: 100%; height: 100%; }
.hero-plate img { object-fit: cover; object-position: 68% 50%; }
/* the copy column stays legible over the plate: a soft wash that dies before the board's reflection */
.hero-plate::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(11, 27, 94, 0.88) 0%, rgba(11, 27, 94, 0.72) 30%, rgba(11, 27, 94, 0.18) 52%, rgba(11, 27, 94, 0) 66%),
    linear-gradient(to top, rgba(11, 27, 94, 0.55) 0%, rgba(11, 27, 94, 0) 32%);
}
.hero-caption {
  margin-top: 2.25rem;
  font-size: 0.9rem;
  color: var(--line-soft);
}
.hero-caption-note { font-style: italic; }

.js-only { display: inline; }
.no-js-only { display: none; }
.no-js .js-only { display: none !important; }
.no-gl .hero .js-only { display: none !important; }
.no-js .no-js-only { display: block; }
.no-gl .hero .no-js-only { display: block; }

/* the demonstration: a bounded card with its own live panel, the way a tech sets a board over one dent */
.board-card {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  z-index: 2;
  align-self: end;
  justify-self: end;
  width: min(100%, 30rem);
  display: grid;
  gap: 0.75rem;
  padding: 1.1rem 1.25rem 1.1rem;
  background: rgba(11, 27, 94, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-hair);
  border-radius: var(--radius);
  box-shadow: 0 24px 48px -28px rgba(2, 8, 40, 0.9);
}
.board-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.board-card-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.005em;
}
.board-stage {
  position: relative;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  border-radius: calc(var(--radius) - 2px);
  background: var(--panel-deep);
  cursor: pointer;
}
.board-stage canvas,
.board-stage .board-static {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.board-stage .board-static img { display: block; width: 100%; height: 100%; object-fit: cover; }
.board-stage canvas { display: none; }
.js .board-stage canvas { display: block; }
.js .board-stage .board-static { display: none; }
.js.no-gl .board-stage canvas { display: none; }
.js.no-gl .board-stage .board-static { display: block; }
.no-js .board-stage, .no-gl .board-stage { cursor: default; }

.push {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
}
.push label { font-weight: 600; font-size: 1rem; white-space: nowrap; }
.push-readout {
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
  color: var(--amber);
  white-space: nowrap;
}
.no-js .push, .no-gl .push { display: none; }

.push-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2.5rem;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
.push-range::-webkit-slider-runnable-track {
  height: 2px;
  background: linear-gradient(to right, var(--amber) 0 var(--fill, 0%), rgba(242, 245, 255, 0.55) var(--fill, 0%) 100%);
  border-radius: 1px;
}
.push-range::-moz-range-track { height: 2px; background: rgba(242, 245, 255, 0.55); border-radius: 1px; }
.push-range::-moz-range-progress { height: 2px; background: var(--amber); }
.push-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1.75rem; height: 1.75rem;
  margin-top: calc(-0.875rem + 1px);
  background: var(--amber);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 4px 14px -6px rgba(2, 8, 40, 0.9);
  transition: transform 140ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.push-range::-moz-range-thumb {
  width: 1.75rem; height: 1.75rem;
  background: var(--amber);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 4px 14px -6px rgba(2, 8, 40, 0.9);
}
.push-range:hover::-webkit-slider-thumb, .push-range:active::-webkit-slider-thumb { transform: scale(1.08); }
.push-range:focus-visible { outline: none; }
.push-range:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--amber); outline-offset: 3px; }
.push-range:focus-visible::-moz-range-thumb { outline: 3px solid var(--amber); outline-offset: 3px; }

.board-status {
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--line);
  min-height: 2.9em;
}
.board-note {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--line-soft);
}

.hero-light {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  mix-blend-mode: screen;
  background:
    radial-gradient(42rem 34rem at var(--lx) var(--ly), rgba(255, 244, 222, 0.07) 0%, rgba(255, 240, 210, 0.025) 40%, rgba(255, 240, 210, 0) 70%);
}

/* ---------- section heads ---------- */

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 1.5rem clamp(2rem, 5vw, 5rem);
  align-items: end;
}
.section-head .intro { margin-top: 0; padding-bottom: 0.35rem; }

/* ---------- fit (what PDR fixes) ---------- */

.fit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.fit-col { border-top: 2px solid var(--ink-rule); padding-top: 1.25rem; }
.fit-col h3 {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.7rem;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 1;
}
.fit-col .mark { width: 1.1rem; height: 1.1rem; color: var(--panel); flex: none; }
.fit-col ul { margin-top: 1rem; }
.fit-col li {
  padding: 0.7rem 0;
  border-top: 1px solid var(--ink-hair);
  line-height: 1.4;
}
.fit-col li:first-child { border-top: 0; }
.fit-foot { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--ink-hair); font-size: 0.98rem; line-height: 1.5; color: var(--ink-soft); }
.fit-foot a { color: var(--panel); font-weight: 500; }

/* ---------- process strip ---------- */

.process-section {
  padding-block: clamp(4.5rem, 9vw, 8rem);
  background: var(--board-high);
  border-top: 1px solid var(--ink-hair);
}
.strip {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
}
.strip figure { margin: 0; }
.strip img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
}
.strip figcaption { padding-top: 1.1rem; border-top: 2px solid var(--ink-rule); margin-top: 1rem; }
.strip h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 2rem;
  text-transform: uppercase;
  line-height: 1;
}
.strip p { margin-top: 0.6rem; font-size: 1rem; line-height: 1.5; color: var(--ink-soft); }
.strip-note { margin-top: 1.5rem; font-style: italic; font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- compare ---------- */

.compare-section { padding-block: clamp(4.5rem, 9vw, 8rem); }
.compare {
  width: 100%;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-collapse: collapse;
  font-size: 1.05rem;
}
.compare th, .compare td {
  text-align: left;
  vertical-align: top;
  padding: 1.1rem 1.25rem 1.1rem 0;
  border-top: 1px solid var(--line-hair);
}
.compare thead th {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1;
  border-top: 0;
  padding-top: 0;
  padding-bottom: 0.9rem;
}
.compare tbody th { font-weight: 600; width: 16%; color: var(--line); }
.compare td:nth-child(2) { color: var(--line-soft); width: 38%; }
.compare td:nth-child(3) { color: var(--line); font-weight: 500; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 1px solid var(--line-hair); }

/* ---------- prepare (worksheet) ---------- */

.prepare-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 4vw, 4rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}
.worksheet { display: grid; gap: 1.6rem; }
.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend {
  display: block;
  font-weight: 600;
  font-size: 0.98rem;
  margin-bottom: 0.55rem;
  padding: 0;
}
.optional { font-weight: 400; color: var(--ink-soft); font-style: italic; margin-left: 0.3rem; }
.worksheet input[type="text"], .worksheet select, .worksheet textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--board-high);
  border: 1.5px solid #8d9bcb;
  border-radius: var(--radius);
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--ink);
  transition: border-color 140ms;
}
.worksheet textarea { resize: vertical; min-height: 4.5rem; }
.worksheet input::placeholder, .worksheet textarea::placeholder { color: var(--placeholder); opacity: 1; }
.worksheet input:hover, .worksheet select:hover, .worksheet textarea:hover { border-color: var(--ink-soft); }
.worksheet input:focus-visible, .worksheet select:focus-visible, .worksheet textarea:focus-visible {
  border-color: var(--panel);
  outline-offset: 2px;
}
.worksheet select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M5 8l5 5 5-5' fill='none' stroke='%230b1340' stroke-width='1.6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 1.1rem;
}
.choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choices-stack { flex-direction: column; align-items: flex-start; }
.choices label { position: relative; display: inline-flex; }
.choices input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  margin: 0;
  pointer-events: none;
}
.choices span {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border: 1.5px solid #8d9bcb;
  border-radius: var(--radius);
  background: var(--board-high);
  line-height: 1.3;
  cursor: pointer;
  transition: background-color 140ms, border-color 140ms, color 140ms;
}
.choices span:hover { border-color: var(--ink-soft); }
.choices input:checked + span { background: var(--panel); border-color: var(--panel); color: var(--line); }
.choices input:focus-visible + span { outline: 3px solid var(--panel); outline-offset: 3px; }

.prepare-side { position: sticky; top: 1.5rem; display: grid; gap: 1.5rem; }
.readback {
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  background: var(--panel);
  color: var(--line);
  border-radius: var(--radius);
  caret-color: var(--amber);
  --focus: var(--amber);
}
.readback h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 2rem;
  text-transform: uppercase;
  line-height: 1;
}
.readback-body {
  display: block;
  margin-top: 1rem;
  font-size: 1.1rem;
  line-height: 1.55;
  min-height: 8em;
  white-space: pre-line;
}
.readback-body .hint { color: var(--line-soft); }
.readback-body .aside { display: block; margin-top: 1.1em; padding-top: 1em; border-top: 1px solid rgba(242, 245, 255, 0.22); color: var(--line-soft); font-size: 0.95em; }
.readback-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 1.5rem; }
.readback-actions .plate-dark { grid-column: 1 / -1; }
.readback .plate-dark { background: var(--line); color: var(--ink); border-color: var(--line); }
.readback .plate-dark:hover { background: var(--board-high); border-color: var(--board-high); box-shadow: 0 10px 24px -12px rgba(2, 8, 40, 0.7); }
.readback .plate-outline-dark { color: var(--line); border-color: rgba(242, 245, 255, 0.72); }
.readback .plate-outline-dark:hover { border-color: var(--line); background: rgba(242, 245, 255, 0.08); }
.readback-status { margin-top: 0.9rem; min-height: 1.5em; font-size: 0.95rem; color: var(--line-soft); }
.readback-status:empty { display: none; }

.photos { padding-top: 1.25rem; border-top: 2px solid var(--ink-rule); }
.photos h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.7rem;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 1;
}
.photo-guides { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 1rem; }
.photo-guides figure { margin: 0; }
.photo-guides img { width: 100%; height: auto; aspect-ratio: 3 / 2; background: var(--panel); border-radius: var(--radius); }
.photo-guides figcaption { margin-top: 0.6rem; font-size: 0.95rem; line-height: 1.45; color: var(--ink-soft); }
.photo-guides strong { color: var(--ink); font-weight: 600; }

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

.faq-section {
  padding-block: clamp(4.5rem, 9vw, 8rem);
  background: var(--board-high);
  border-top: 1px solid var(--ink-hair);
}
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 2rem clamp(2rem, 5vw, 5rem); align-items: start; }
.faq-head { grid-template-columns: 1fr; align-items: start; position: sticky; top: 1.5rem; }
.faq-head h2.display { max-width: 10ch; }
.faq-head .intro { margin-top: 1.25rem; padding-bottom: 0; }
.faq { border-top: 2px solid var(--ink-rule); padding-top: 0.5rem; }
.faq details { border-bottom: 1px solid var(--ink-hair); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--panel); }
.faq .toggle { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.faq .toggle .v { transform-origin: 50% 50%; transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 160ms; }
.faq details[open] .toggle .v { transform: rotate(90deg); opacity: 0; }
.faq .answer { padding: 0 0 1.5rem; max-width: 62ch; }
.faq .answer p { font-size: 1.05rem; line-height: 1.6; }
.faq .answer a { color: var(--panel); font-weight: 500; }
.faq summary em { font-style: italic; }

/* ---------- closing ---------- */

.closing { position: relative; padding-block: clamp(5rem, 11vw, 9.5rem); text-align: left; isolation: isolate; overflow: hidden; }
.closing-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("assets/lines-tile.svg");
  background-size: 8px 44px;
  background-repeat: repeat;
  opacity: 0.9;
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 58%, rgba(0,0,0,0.9) 76%, #000 100%);
  mask-image: linear-gradient(to right, rgba(0,0,0,0) 58%, rgba(0,0,0,0.9) 76%, #000 100%);
}
.closing .wrap { position: relative; z-index: 1; }
.closing-number {
  display: inline-block;
  font-size: clamp(3.4rem, 10.5vw, 8rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.015em;
  text-decoration: none;
  color: var(--line);
  transition: color 160ms;
}
.closing-number:hover { color: var(--amber); }
.closing-line {
  margin-top: 1.5rem;
  max-width: 58ch;
  font-size: clamp(1.1rem, 1.35vw, 1.25rem);
  line-height: 1.5;
  color: var(--line-soft);
}
.closing-line a { color: var(--line); }
.closing .actions { margin-top: 2rem; }

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

.footer { padding-block: 2.25rem 2.5rem; background: var(--board); border-top: 1px solid var(--ink-hair); font-size: 0.95rem; line-height: 1.6; color: var(--ink-soft); }
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.footer strong { color: var(--ink); font-weight: 600; }
.footer p:last-child { text-align: right; }

/* ---------- mobile call bar ---------- */

.callbar {
  position: fixed;
  left: 0.75rem; right: 0.75rem;
  bottom: calc(0.75rem + env(safe-area-inset-bottom));
  z-index: 50;
  display: none;
  visibility: hidden;
  box-shadow: 0 14px 30px -14px rgba(2, 8, 40, 0.8);
  transform: translateY(calc(100% + 1.5rem));
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 260ms;
}
.callbar.is-visible { transform: none; visibility: visible; transition-delay: 0s; }

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

@media (max-width: 1100px) {
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head { grid-template-columns: 1fr; gap: 0; }
  .section-head .intro { margin-top: 1.5rem; padding-bottom: 0; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-head { position: static; }
  .faq-head h2.display { max-width: 14ch; }
}

@media (max-width: 900px) {
  .prepare-grid { grid-template-columns: 1fr; }
  .prepare-side { position: static; }
}

@media (max-width: 820px) {
  .nav { display: none; }
  .masthead { grid-template-columns: 1fr auto; gap: 1rem; }
  .hero { min-height: 0; }
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 2rem;
    padding-block: 2.25rem 1.5rem;
  }
  .hero-copy { grid-column: 1; grid-row: 1; padding-right: 0; }
  .hero-copy .lede { max-width: 38ch; }
  .hero-grid { grid-template-columns: 1fr; grid-template-rows: auto auto; align-items: start; }
  .board-card { grid-column: 1; grid-row: 2; justify-self: stretch; width: 100%; margin-top: 2.5rem; }
  .hero-plate img { object-position: 62% 50%; }
  .hero-plate::after {
    background:
      linear-gradient(to bottom, rgba(11, 27, 94, 0.80) 0%, rgba(11, 27, 94, 0.62) 55%, rgba(11, 27, 94, 0.30) 100%);
  }
  .hero-caption { margin-top: 1.5rem; }
  .hero-light { display: none; }
  .fit-grid { grid-template-columns: 1fr; gap: 2rem; }
  .closing-lines {
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 12%, #000 30%, #000 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 12%, #000 30%, #000 100%);
    top: auto; height: 32%;
    opacity: 0.55;
  }
  .closing { padding-bottom: calc(clamp(5rem, 11vw, 9.5rem) + 6rem); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer p:last-child { text-align: left; }
  .callbar { display: inline-flex; }
  body.has-callbar { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom)); }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .masthead-call span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .masthead-call { padding-inline: 0.8rem; min-width: 2.75rem; }
  h1.display { font-size: clamp(3.4rem, 18vw, 5rem); }
  .strip { grid-template-columns: 1fr; }
  .compare { font-size: 0.95rem; }
  .compare th, .compare td { padding: 0.9rem 0.6rem 0.9rem 0; }
  .compare thead th { font-size: 1.3rem; }
  .compare tbody th { width: 22%; }
  .closing-number { font-size: clamp(2.6rem, 13.5vw, 4rem); }
  .actions .plate { flex: 1 1 auto; }
  .readback-actions .plate { flex: 1 1 100%; }
  .push { grid-template-columns: auto 1fr; }
  .push-readout { grid-column: 2; text-align: left; }
  .readback-actions { grid-template-columns: 1fr; }
  .photo-guides { grid-template-columns: 1fr 1fr; }
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .hero-light { --lx: 58%; --ly: 30%; }
}
