:root {
  color-scheme: light;
  --paper: #f4f0e8;
  --paper-deep: #e9e3d5;
  --surface: #faf7f0;
  --ink: #111111;
  --red: #ff3b30;
  --red-dark: #c9221b;
  --yellow: #ffcc00;
  --muted: #666158;
  --danger: #b31812;
  --display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --slab: "Archivo Black", "Arial Black", sans-serif;
  --body: "Plus Jakarta Sans", "Avenir Next", Arial, sans-serif;
  --mono: "Courier Prime", "Courier New", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background-color: var(--paper);
  background-image: radial-gradient(rgb(17 17 17 / 0.2) 0.75px, transparent 0.75px);
  background-size: 8px 8px;
  color: var(--ink);
  font-family: var(--body);
  text-rendering: optimizeLegibility;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  content: "";
  opacity: 0.06;
  background: repeating-linear-gradient(104deg, transparent 0 31px, var(--ink) 32px 33px, transparent 34px 71px);
  mix-blend-mode: multiply;
}
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
img { display: block; width: 100%; height: auto; }
fieldset { min-width: 0; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 12px 16px;
  border: 3px solid var(--ink);
  background: var(--yellow);
  font-family: var(--mono);
  font-weight: 700;
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 4px solid #1557ff; outline-offset: 4px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 76px;
  align-items: center;
  padding: 10px clamp(16px, 4vw, 52px);
  border-bottom: 4px solid var(--ink);
  background: rgb(244 240 232 / 0.96);
  box-shadow: 0 4px 0 var(--ink);
}
.brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--display);
  font-size: 1.9rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}
.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 3px solid var(--ink);
  background: var(--red);
  box-shadow: 4px 4px 0 var(--ink);
  color: white;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  transform: rotate(-3deg);
}
.desktop-nav { display: flex; gap: 26px; }
.desktop-nav button,
.site-footer button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}
.desktop-nav button:hover,
.site-footer button:hover { border-bottom-color: var(--red); }
.topbar > .button { justify-self: end; }

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 3px solid var(--ink);
  border-radius: 0;
  box-shadow: 5px 5px 0 var(--ink);
  cursor: pointer;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.035em;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}
.button:hover:not(:disabled) { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--ink); }
.button:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.button:disabled { cursor: not-allowed; opacity: 0.52; }
.button-primary { background: var(--red); color: white; }
.button-primary:hover:not(:disabled) { background: var(--red-dark); }
.button-secondary { background: var(--paper-deep); color: var(--ink); }
.button-danger { background: var(--ink); color: white; }
.button-small { min-height: 42px; padding-inline: 18px; font-size: 1rem; box-shadow: 3px 3px 0 var(--ink); }
.button-hero { width: 100%; min-height: 72px; border-width: 4px; font-size: clamp(1.7rem, 4vw, 2.5rem); box-shadow: 8px 8px 0 var(--ink); }

.view { min-height: calc(100dvh - 76px); }
.view.is-active { animation: page-hit 360ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.home-shell { width: min(1280px, calc(100% - 40px)); margin: 0 auto; padding: 42px 0 92px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(360px, 5fr);
  min-height: calc(100dvh - 150px);
  align-items: center;
  gap: clamp(36px, 6vw, 84px);
  padding: 24px 0 70px;
}
.hero-copy { display: grid; align-content: center; justify-items: start; }
.sticker,
.ink-label,
.warning-label {
  width: max-content;
  max-width: 100%;
  margin: 0 0 18px;
  padding: 7px 10px;
  border: 2px solid var(--ink);
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transform: rotate(-1deg);
}
.ink-label { background: var(--ink); color: var(--paper); box-shadow: 3px 3px 0 var(--red); }
.warning-label { background: var(--red); color: white; }
.hero-copy h1,
.section-heading h2,
.hardware-ticket h2,
.app-title h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 0.88;
  text-transform: uppercase;
}
.hero-copy h1 { max-width: 8ch; font-size: clamp(5.2rem, 8.6vw, 8.2rem); }
.hero-copy h1 span {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px 2px;
  border: 4px solid var(--ink);
  background: var(--red);
  box-shadow: 7px 7px 0 var(--ink);
  color: white;
  transform: rotate(-1deg);
}
.hero-lede {
  max-width: 34rem;
  margin: 30px 0 0;
  padding: 16px 18px;
  border: 3px solid var(--ink);
  border-left-width: 8px;
  background: var(--surface);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.55;
}
.action-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.truth-note {
  max-width: 42rem;
  margin: 24px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}
.hero-collage { display: grid; align-content: center; gap: 26px; }
.quote-card {
  position: relative;
  z-index: 2;
  margin: 0 10px -40px -28px;
  padding: 22px;
  border: 4px solid var(--ink);
  background: var(--surface);
  box-shadow: 6px 6px 0 var(--ink);
  transform: rotate(1deg);
}
.quote-card::before {
  position: absolute;
  top: -14px;
  left: 35%;
  width: 72px;
  height: 22px;
  border-right: 2px dashed rgb(17 17 17 / 0.25);
  border-left: 2px dashed rgb(17 17 17 / 0.25);
  background: rgb(255 255 235 / 0.86);
  content: "";
  transform: rotate(-3deg);
}
.quote-card p { margin: 0; font-family: var(--slab); font-size: 1.25rem; line-height: 1.25; }
.quote-card cite { display: block; margin-top: 10px; color: var(--muted); font-family: var(--mono); font-size: 0.68rem; font-style: normal; text-transform: uppercase; }
.poster-frame { margin: 0; border: 5px solid var(--ink); background: var(--ink); box-shadow: 10px 10px 0 var(--ink); transform: rotate(-1deg); }
.poster-frame figcaption,
.poster-frame p,
.hardware-image figcaption {
  margin: 0;
  padding: 9px 12px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}
.poster-frame img { aspect-ratio: 4 / 3; object-fit: cover; }
.poster-frame p { background: var(--paper-deep); border-top: 4px solid var(--ink); }

.workflow-section { padding: 90px 0; border-top: 5px solid var(--ink); }
.section-heading { display: grid; justify-items: start; max-width: 760px; margin-bottom: 44px; }
.section-heading h2,
.hardware-ticket h2 { font-size: clamp(3.8rem, 7vw, 6.5rem); }
.section-heading > p:last-child,
.hardware-copy > p { max-width: 42rem; margin: 22px 0 0; font-weight: 600; line-height: 1.55; }
.workflow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.module { display: grid; grid-template-rows: auto 1fr auto; border: 4px solid var(--ink); background: var(--surface); box-shadow: 6px 6px 0 var(--ink); }
.module:nth-child(1) { transform: rotate(-0.5deg); }
.module:nth-child(3) { transform: rotate(0.6deg); }
.module header { display: flex; align-items: center; gap: 12px; padding: 14px; border-bottom: 4px solid var(--ink); background: var(--paper-deep); font-family: var(--mono); font-weight: 700; text-transform: uppercase; }
.module header strong { display: grid; width: 38px; height: 38px; place-items: center; border: 2px solid var(--ink); background: var(--ink); color: var(--yellow); }
.module-alert header { background: var(--red); color: white; }
.module-alert header strong { background: var(--paper); color: var(--ink); }
.module > div { padding: 22px; }
.module h3 { margin: 0; font-family: var(--slab); font-size: 1.25rem; line-height: 1.15; text-transform: uppercase; }
.module p { margin: 12px 0 0; line-height: 1.55; }
.module footer { padding: 12px 16px; border-top: 3px solid var(--ink); background: var(--paper-deep); color: var(--muted); font-family: var(--mono); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; }

.hardware-ticket {
  position: relative;
  display: grid;
  grid-template-columns: 7fr 5fr;
  align-items: center;
  gap: 50px;
  margin: 50px 0 90px;
  padding: clamp(30px, 5vw, 62px);
  border: 4px dashed var(--ink);
  background: var(--surface);
  box-shadow: 10px 10px 0 var(--ink);
}
.cut-label { position: absolute; top: -14px; left: 30px; padding: 3px 10px; border: 2px solid var(--ink); background: var(--paper); font-family: var(--mono); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; }
.inline-form { display: flex; align-items: end; gap: 14px; margin-top: 30px; }
.inline-form .field-stack { flex: 1; }
.waitlist-wordpress-form { margin-top: 30px; }
.waitlist-wordpress-form .wpcf7-form { display: grid; gap: 14px; }
.waitlist-wordpress-form .wpcf7-form p { margin: 0; }
.waitlist-wordpress-form .wpcf7-form label { font-family: var(--slab); font-size: 0.92rem; text-transform: uppercase; }
.waitlist-wordpress-form .wpcf7-form-control-wrap { display: block; margin-top: 8px; }
.waitlist-wordpress-form .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.waitlist-wordpress-form .wpcf7-acceptance label { display: flex; align-items: flex-start; gap: 10px; font-family: var(--body); font-size: 0.86rem; line-height: 1.45; text-transform: none; }
.waitlist-wordpress-form .wpcf7-acceptance input { width: 20px; height: 20px; flex: 0 0 20px; accent-color: var(--red); }
.waitlist-wordpress-form .wpcf7-submit {
  min-height: 54px;
  padding: 13px 22px;
  border: 3px solid var(--ink);
  border-radius: 0;
  background: var(--red);
  box-shadow: 4px 4px 0 var(--ink);
  color: white;
  cursor: pointer;
  font-family: var(--slab);
  font-weight: 800;
  text-transform: uppercase;
}
.waitlist-wordpress-form .wpcf7-submit:hover { background: var(--red-dark); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.waitlist-wordpress-form .wpcf7-not-valid-tip { margin-top: 6px; color: var(--danger); font-weight: 800; }
.waitlist-wordpress-form .wpcf7-response-output { margin: 0 !important; padding: 14px !important; border: 3px solid var(--ink) !important; background: var(--yellow); font-weight: 800; }
.form-privacy-note { margin-top: 14px !important; color: var(--muted); font-family: var(--mono); font-size: 0.68rem; font-weight: 700; line-height: 1.45; text-transform: uppercase; }
.hardware-image { margin: 0; border: 4px solid var(--ink); background: var(--ink); box-shadow: 7px 7px 0 var(--ink); transform: rotate(1deg); }
.hardware-image img { aspect-ratio: 1; object-fit: cover; }
.hardware-image figcaption { border-top: 4px solid var(--ink); background: var(--ink); color: var(--paper); }

.safety-block { display: flex; align-items: flex-start; gap: 18px; padding: 20px; border: 4px solid var(--ink); background: var(--paper-deep); box-shadow: 5px 5px 0 var(--ink); }
.safety-mark { display: grid; width: 46px; height: 46px; flex: 0 0 46px; place-items: center; border: 3px solid var(--ink); background: var(--red); color: white; font-family: var(--slab); font-size: 1.5rem; }
.safety-block h2 { margin: 0; font-family: var(--slab); font-size: 1.15rem; text-transform: uppercase; }
.safety-block p { margin: 5px 0 0; font-size: 0.92rem; font-weight: 600; line-height: 1.5; }
.compact-safety { margin-top: 34px; }

.step-strip { display: flex; justify-content: space-between; gap: 18px; padding: 9px clamp(16px, 4vw, 52px); border-bottom: 3px solid var(--ink); background: var(--yellow); font-family: var(--mono); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; }
.app-shell { width: min(920px, calc(100% - 32px)); margin: 0 auto; padding: 52px 0 140px; }
.app-title { margin-bottom: 38px; padding-bottom: 24px; border-bottom: 4px solid var(--ink); }
.app-title .sticker { margin-bottom: 16px; }
.app-title h1 { max-width: 10ch; font-size: clamp(4.2rem, 9vw, 7rem); }
.app-title > p:last-child { max-width: 42rem; margin: 20px 0 0; font-weight: 600; line-height: 1.55; }
.setup-form, .result-form, .settings-form { display: grid; gap: 24px; }
.form-module { margin: 0; padding: 24px; border: 4px solid var(--ink); background: var(--surface); box-shadow: 6px 6px 0 var(--ink); }
.form-module legend, .field-stack label { font-family: var(--slab); font-size: 1rem; text-transform: uppercase; }
.form-module legend { padding: 0 10px; }
.choice-grid { display: grid; gap: 14px; }
.choice-grid-two { grid-template-columns: repeat(2, 1fr); }
.choice-grid-three { grid-template-columns: repeat(3, 1fr); }
.option-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.choice-card { position: relative; display: grid; min-height: 112px; align-content: center; gap: 6px; padding: 18px; border: 3px solid var(--ink); background: var(--paper); box-shadow: 3px 3px 0 var(--ink); cursor: pointer; }
.choice-card input { position: absolute; top: 12px; right: 12px; width: 18px; height: 18px; accent-color: var(--red); }
.choice-card:has(input:checked) { background: var(--red); color: white; box-shadow: 6px 6px 0 var(--ink); transform: translate(-2px, -2px); }
.choice-card strong { font-family: var(--display); font-size: 2rem; font-weight: 400; text-transform: uppercase; }
.choice-card span { font-family: var(--mono); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; }
.select-choice { min-height: 78px; padding-right: 44px; }
.select-choice strong { font-family: var(--slab); font-size: 0.82rem; }
.compact-choices .choice-card { min-height: 88px; }
.split-fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.field-stack { display: grid; gap: 8px; }
.field-stack > span { color: var(--muted); font-family: var(--mono); font-size: 0.68rem; font-weight: 700; line-height: 1.35; text-transform: uppercase; }
input[type="email"], select, textarea {
  width: 100%;
  min-height: 54px;
  padding: 12px 14px;
  border: 3px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 3px 3px 0 var(--ink);
}
textarea { resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #726d64; opacity: 1; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); outline: 3px solid rgb(179 24 18 / 0.2); }
fieldset[aria-invalid="true"] { border-color: var(--danger); outline: 3px solid rgb(179 24 18 / 0.2); }
.field-error { min-height: 1.1em; color: var(--danger) !important; }
.range-readout { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.range-readout strong { font-family: var(--display); font-size: 3rem; font-weight: 400; }
.range-readout span, .range-labels { color: var(--muted); font-family: var(--mono); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; }
input[type="range"] { width: 100%; height: 14px; border: 2px solid var(--ink); border-radius: 0; appearance: none; background: var(--paper-deep); accent-color: var(--red); }
input[type="range"]::-webkit-slider-thumb { width: 26px; height: 26px; border: 3px solid var(--ink); border-radius: 0; appearance: none; background: var(--red); box-shadow: 2px 2px 0 var(--ink); }
.range-labels { display: flex; justify-content: space-between; margin-top: 10px; }
.browning-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.browning-choice { position: relative; display: grid; min-height: 116px; align-content: end; padding: 12px; border: 3px solid var(--ink); background: var(--paper); box-shadow: 3px 3px 0 var(--ink); cursor: pointer; }
.browning-choice::before { height: 34px; margin-bottom: 20px; border: 2px solid var(--ink); background: var(--toast-color); content: ""; }
.browning-choice input { position: absolute; top: 9px; right: 9px; accent-color: var(--red); }
.browning-choice:has(input:checked) { outline: 5px solid var(--red); outline-offset: -7px; transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.browning-choice strong { font-family: var(--display); font-size: 1.6rem; font-weight: 400; text-transform: uppercase; }
.level-1 { --toast-color: #f5e6cc; }.level-2 { --toast-color: #deb887; }.level-3 { --toast-color: #c68642; }.level-4 { --toast-color: #8b4513; }.level-5 { --toast-color: #2f1e1e; }
.prediction-ticket { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 28px; padding: 26px; border: 4px dashed var(--ink); background: var(--paper-deep); box-shadow: 7px 7px 0 var(--ink); }
.prediction-ticket > div { display: grid; align-content: center; }
.prediction-ticket span { font-family: var(--mono); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; }
.prediction-ticket > div strong { font-family: var(--display); font-size: clamp(4rem, 9vw, 6.5rem); font-weight: 400; line-height: 0.9; }
.prediction-ticket dl { margin: 0; }
.prediction-ticket dl div { display: flex; justify-content: space-between; gap: 18px; padding: 9px 0; border-bottom: 2px solid var(--ink); }
.prediction-ticket dt, .prediction-ticket dd { margin: 0; font-family: var(--mono); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; }
.form-error-summary { padding: 18px; border: 4px solid var(--danger); background: #fff0ed; box-shadow: 5px 5px 0 var(--ink); color: var(--danger); font-weight: 800; }

.timer-shell { max-width: 1100px; }
.timer-heading { margin-bottom: 24px; }
.batch-card { display: grid; gap: 10px; padding: 22px; border: 4px solid var(--ink); background: var(--surface); box-shadow: 7px 7px 0 var(--ink); }
.batch-card span, .batch-card strong { font-family: var(--mono); text-transform: uppercase; }
.batch-card span { width: max-content; padding: 4px 8px; background: var(--yellow); font-size: 0.7rem; }
.timer-stage { display: grid; place-items: center; padding: 58px 0; }
.timer-ring { --progress: 0deg; display: grid; width: min(430px, 82vw); aspect-ratio: 1; place-items: center; border: 4px solid var(--ink); border-radius: 50%; background: conic-gradient(var(--red) var(--progress), var(--paper-deep) 0); box-shadow: 10px 10px 0 var(--ink); transform: rotate(-1deg); }
.timer-face { display: grid; width: 72%; aspect-ratio: 1; place-content: center; place-items: center; border: 4px solid var(--ink); border-radius: 50%; background: var(--surface); text-align: center; }
.timer-face span, .timer-face small { font-family: var(--mono); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; }
.timer-face strong { font-family: var(--mono); font-size: clamp(3.5rem, 11vw, 6.5rem); line-height: 1; }
.alert-panel { overflow: hidden; border: 5px solid var(--ink); background: var(--surface); box-shadow: 9px 9px 0 var(--ink); }
.hazard-stripe { height: 26px; border-bottom: 4px solid var(--ink); background: repeating-linear-gradient(-45deg, var(--yellow) 0 18px, var(--ink) 18px 36px); }
.alert-copy { margin: 22px; padding: 22px; border: 4px solid var(--ink); background: var(--paper-deep); }
.alert-copy > span { display: inline-block; padding: 5px 8px; background: var(--yellow); font-family: var(--mono); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; }
.alert-copy h2 { margin: 14px 0 0; font-family: var(--slab); font-size: clamp(1.6rem, 4vw, 2.5rem); text-transform: uppercase; }
.alert-copy p { margin: 10px 0 0; font-weight: 600; line-height: 1.5; }
.alert-panel.is-early .alert-copy, .alert-panel.is-critical .alert-copy { background: var(--red); color: white; }
.alert-panel.is-critical { animation: alert-knock 700ms steps(2, jump-none) infinite; }
.alert-options { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0 22px 24px; border: 0; }
.alert-options legend { width: 100%; margin-bottom: 8px; font-family: var(--mono); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; }
.alert-options label, .toggle-list label { display: flex; min-height: 48px; align-items: center; gap: 9px; padding: 10px 14px; border: 3px solid var(--ink); background: var(--paper); box-shadow: 3px 3px 0 var(--ink); font-family: var(--mono); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; }
.alert-options input, .toggle-list input, .consent-check input { width: 20px; height: 20px; accent-color: var(--red); }
.timer-actions { display: grid; gap: 18px; margin-top: 34px; }
.cancel-panel { margin-top: 24px; padding: 22px; border: 4px solid var(--ink); background: var(--yellow); box-shadow: 7px 7px 0 var(--ink); }
.cancel-panel h2 { margin: 0; font-family: var(--slab); text-transform: uppercase; }
.cancel-panel p { margin: 8px 0 0; }

.result-timing { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 26px; padding: 22px; border: 4px solid var(--ink); background: var(--paper-deep); box-shadow: 6px 6px 0 var(--ink); }
.result-timing div { display: grid; gap: 4px; }
.result-timing span { font-family: var(--mono); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; }
.result-timing strong { font-family: var(--display); font-size: 4rem; font-weight: 400; line-height: 1; }
.result-timing p { grid-column: 1 / -1; margin: 0; font-weight: 700; }
.photo-module header { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.photo-module h2 { margin: 0; font-family: var(--slab); text-transform: uppercase; }
.simulation-badge { padding: 7px 10px; border: 2px solid var(--ink); background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); font-family: var(--mono); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; }
.consent-check { display: flex; align-items: flex-start; gap: 12px; margin: 24px 0; padding: 16px; border: 3px solid var(--ink); background: var(--paper-deep); font-weight: 700; line-height: 1.45; }
.photo-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
#toast-photo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.photo-preview { display: grid; min-height: 240px; place-items: center; margin-top: 20px; overflow: hidden; border: 4px solid var(--ink); background: var(--paper); }
.photo-preview img { max-height: 420px; object-fit: contain; }
.photo-preview p { max-width: 30rem; padding: 30px; color: var(--muted); text-align: center; }
.estimate-card { display: grid; gap: 5px; margin-top: 18px; padding: 16px; border: 3px solid var(--ink); background: var(--yellow); box-shadow: 4px 4px 0 var(--ink); }
.estimate-card span, .estimate-card p { font-family: var(--mono); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; }
.estimate-card strong { font-family: var(--slab); text-transform: uppercase; }
.estimate-card p { margin: 0; }
.correction-module > p { margin: 0 0 18px; line-height: 1.5; }
.correction-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.correction-grid label { position: relative; display: grid; min-height: 104px; align-content: end; padding: 12px; border: 3px solid var(--ink); background: var(--paper); box-shadow: 3px 3px 0 var(--ink); cursor: pointer; }
.correction-grid input { position: absolute; top: 10px; right: 10px; accent-color: var(--red); }
.correction-grid label:has(input:checked) { background: var(--red); color: white; box-shadow: 6px 6px 0 var(--ink); transform: translate(-2px, -2px); }
.correction-grid strong { font-family: var(--display); font-size: 1.45rem; font-weight: 400; text-transform: uppercase; }
.result-success { margin-top: 30px; }
.result-success h2 { margin: 0; font-family: var(--slab); text-transform: uppercase; }
.account-ticket { margin-top: 22px; padding: 18px; border: 3px dashed var(--ink); background: var(--paper); }
.account-ticket p { margin-bottom: 0; }

.empty-state { padding: clamp(28px, 6vw, 64px); border: 4px dashed var(--ink); background: var(--surface); box-shadow: 8px 8px 0 var(--ink); text-align: center; }
.empty-state strong { font-family: var(--display); font-size: clamp(2.8rem, 8vw, 5rem); font-weight: 400; text-transform: uppercase; }
.empty-state p { max-width: 34rem; margin: 16px auto 28px; line-height: 1.55; }
.history-list { display: grid; gap: 20px; }
.history-card { display: grid; grid-template-columns: 1fr auto; gap: 22px; padding: 22px; border: 4px solid var(--ink); background: var(--surface); box-shadow: 6px 6px 0 var(--ink); }
.history-card h2 { margin: 0; font-family: var(--slab); font-size: 1.15rem; text-transform: uppercase; }
.history-card p { margin: 8px 0 0; color: var(--muted); font-family: var(--mono); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; }
.history-score { display: grid; min-width: 100px; place-items: center; border: 3px solid var(--ink); background: var(--yellow); font-family: var(--display); font-size: 2rem; text-align: center; }
.toggle-list { display: grid; gap: 12px; }
.danger-zone { margin-top: 42px; padding: 24px; border: 4px dashed var(--danger); background: #fff0ed; }
.danger-zone h2 { margin: 0; font-family: var(--slab); text-transform: uppercase; }
.success-panel { margin-top: 18px; padding: 18px; border: 3px solid var(--ink); background: var(--yellow); box-shadow: 5px 5px 0 var(--ink); font-weight: 700; }

.bottom-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 70; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 4px solid var(--ink); background: var(--paper-deep); box-shadow: 0 -4px 0 var(--ink); }
.bottom-nav button { min-height: 64px; border: 0; border-right: 2px solid var(--ink); background: transparent; cursor: pointer; font-family: var(--mono); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; }
.bottom-nav button:last-child { border-right: 0; }
.bottom-nav button[aria-current="page"] { background: var(--red); color: white; transform: translateY(-5px); box-shadow: 0 5px 0 var(--ink); }
.site-footer { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 24px; min-height: 112px; padding: 24px clamp(16px, 4vw, 52px); border-top: 5px solid var(--ink); background: var(--ink); color: var(--paper); }
.site-footer strong { font-family: var(--display); font-size: 2rem; font-weight: 400; text-transform: uppercase; }
.site-footer p { margin: 0; font-family: var(--mono); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; }
.site-footer button { color: var(--paper); }

body.is-flashing::after { position: fixed; inset: 0; z-index: 90; pointer-events: none; background: rgb(255 204 0 / 0.34); content: ""; animation: screen-flash 450ms steps(2, jump-none) 2; }

@keyframes page-hit { from { opacity: 0; transform: translateY(18px) rotate(0.25deg); } to { opacity: 1; transform: none; } }
@keyframes alert-knock { 0%, 100% { transform: translate(0); } 50% { transform: translate(-2px, 1px); } }
@keyframes screen-flash { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }

@media (min-width: 901px) {
  .timer-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
    gap: 24px 40px;
    align-items: start;
  }

  .timer-heading {
    grid-column: 1;
    margin-bottom: 0;
  }

  .timer-heading h1 {
    max-width: 8ch;
    font-size: clamp(3.6rem, 6vw, 5.8rem);
  }

  .batch-card { grid-column: 1; }

  .timer-stage {
    grid-column: 2;
    grid-row: 1 / 3;
    padding: 20px 0;
  }

  .alert-panel,
  .timer-shell > .compact-safety,
  .timer-actions,
  .cancel-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .topbar { grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .hero-grid, .hardware-ticket { grid-template-columns: 1fr; }
  .hero-grid { min-height: auto; }
  .hero-copy h1 { max-width: 9ch; }
  .hero-collage { max-width: 680px; }
  .quote-card { margin: 0 20px -34px 10px; }
  .workflow-grid { grid-template-columns: 1fr; }
  .module:nth-child(n) { transform: none; }
  .hardware-image { max-width: 520px; }
  .browning-grid, .correction-grid { grid-template-columns: repeat(3, 1fr); }
  .prediction-ticket { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 70px; }
  .topbar { min-height: 66px; padding: 8px 14px; }
  .brand-name { display: none; }
  .brand-mark { width: 38px; height: 38px; box-shadow: 3px 3px 0 var(--ink); }
  .button-small { padding-inline: 12px; font-size: 0.92rem; }
  .home-shell { width: min(100% - 28px, 1280px); padding-top: 30px; }
  .hero-grid { gap: 56px; padding-top: 24px; }
  .hero-copy h1 { font-size: clamp(4.4rem, 22vw, 6.2rem); }
  .hero-lede { margin-top: 24px; }
  .action-row, .inline-form, .photo-controls { display: grid; grid-template-columns: 1fr; width: 100%; }
  .action-row .button, .inline-form .button, .photo-controls .button { width: 100%; }
  .quote-card { margin: 0 8px -24px; }
  .workflow-section { padding-block: 70px; }
  .section-heading h2, .hardware-ticket h2 { font-size: clamp(3.6rem, 18vw, 5rem); }
  .hardware-ticket { gap: 32px; padding: 34px 18px 22px; }
  .step-strip { font-size: 0.68rem; }
  .app-shell { width: min(100% - 28px, 920px); padding-top: 38px; }
  .app-title h1 { font-size: clamp(4rem, 19vw, 5.5rem); }
  .choice-grid-two, .choice-grid-three, .split-fields { grid-template-columns: 1fr; }
  .compact-choices { grid-template-columns: repeat(2, 1fr); }
  .browning-grid, .correction-grid { grid-template-columns: repeat(2, 1fr); }
  .browning-choice:last-child, .correction-grid label:last-child { grid-column: 1 / -1; }
  .prediction-ticket > div strong { font-size: 5.5rem; }
  .prediction-ticket dl div { display: grid; gap: 4px; }
  .timer-stage { padding-block: 38px; }
  .alert-options { display: grid; }
  .photo-module header { display: grid; }
  .simulation-badge { width: max-content; }
  .result-timing strong { font-size: 3rem; }
  .history-card { grid-template-columns: 1fr; }
  .history-score { min-height: 62px; }
  .site-footer { grid-template-columns: 1fr; padding-bottom: 94px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
  .view.is-active { animation: none; }
}
