@font-face {
  font-family: Anton;
  src: url("fonts/anton-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("fonts/inter-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("fonts/inter-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("fonts/inter-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #1B3A78;
  --red: #C62C2F;
  --text: #1d2433;
  --muted: #5d6678;
  --bg: #f3f6fc;
  --line: #d9deea;
  --light-red: #ffb3b4;
  --chip-d: #8a94a8;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}
button, input, select { font-family: inherit; font-size: 16px; }
button { cursor: pointer; }
button:disabled { opacity: 0.55; cursor: default; }
#decoder {
  position: fixed;
  left: 0;
  top: 0;
  width: 2px;
  height: 2px;
  opacity: 0;
  pointer-events: none;
}
#demo-btn { margin-top: 12px; width: 100%; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }

.app-header {
  background: var(--navy);
  color: #fff;
  padding: calc(12px + env(safe-area-inset-top)) 16px 14px;
}
.stripe { height: 5px; background: var(--red); }
.brand-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  max-width: 980px;
  margin: 0 auto;
}
.brand-title {
  font-family: Anton, Inter, sans-serif;
  font-size: 34px;
  letter-spacing: 0.045em;
  line-height: 0.95;
  margin: 0;
}
.brand-title .eval { color: var(--light-red); }
.brand-loc {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: right;
  line-height: 1.35;
}
.header-tools {
  max-width: 980px;
  margin: 10px auto 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}
.signed-in { font-size: 14px; color: rgba(255, 255, 255, 0.88); }
.header-btn, .text-btn {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
}
.text-btn { color: var(--navy); border-color: var(--navy); background: #fff; }

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 16px 16px 48px;
}
.demo-banner, .install, .setup-note {
  background: #fff8e8;
  border: 1px solid #e4d3a2;
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 12px;
}
.demo-banner { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.install { display: flex; justify-content: space-between; gap: 12px; align-items: center; }

.card, .step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  margin: 0 0 14px;
  box-shadow: 0 1px 2px rgba(27, 58, 120, 0.05);
}
.step h2, .card h2 {
  font-family: Anton, Inter, sans-serif;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--navy);
  font-size: 26px;
  margin: 0 0 12px;
  line-height: 1;
}
label.field { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 14px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wide { grid-column: 1 / -1; }
.name-wrap { position: relative; }
input, select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #c5cedf;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
}
.suggest {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(27, 58, 120, 0.12);
  max-height: 260px;
  overflow: auto;
}
.suggest button {
  display: block;
  width: 100%;
  text-align: left;
  min-height: 48px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 0 12px;
}
.retest {
  margin-top: 12px;
  background: #e8eefb;
  border-left: 4px solid var(--navy);
  border-radius: 8px;
  padding: 12px 14px;
}
.past { margin-top: 14px; }
.past h3 { margin: 0 0 8px; font-size: 16px; color: var(--navy); }
.past-row, .saved-table button.link {
  min-height: 44px;
}

.film-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.film-grid > .angle { min-width: 0; }
.angle {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #f8faff;
  min-width: 0;
}
.angle h3 {
  margin: 0 0 4px;
  font-family: Anton, Inter, sans-serif;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--navy);
  font-size: 20px;
}
.angle p { margin: 0 0 10px; color: var(--muted); }
.btn-row { display: flex; flex-direction: column; gap: 8px; }
.btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 10px;
  font-weight: 700;
  overflow: hidden;
}
.btn input {
  position: absolute;
  inset: 0;
  opacity: 0;
  font-size: 16px;
  cursor: pointer;
}
.btn-red { background: var(--red); color: #fff; }
.btn-navy { background: #fff; color: var(--navy); border: 2px solid var(--navy); }
.status { min-height: 1.3em; font-weight: 600; margin: 8px 0 0; }
.status.ready { color: var(--navy); }
.thumbs, .timer-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  max-width: 100%;
  padding: 8px 2px 4px;
  -webkit-overflow-scrolling: touch;
}
.thumbs img { width: 104px; height: 64px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); background: #fff; }
.tips { background: var(--bg); border: 1px dashed #c5cedf; border-radius: 12px; padding: 12px; margin-top: 12px; }
.tips strong { color: var(--navy); }

.timer-strip { padding-bottom: 8px; }
.tframe {
  flex: 0 0 auto;
  width: 78px;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: center;
}
.tframe img {
  width: 78px;
  height: 52px;
  object-fit: cover;
  display: block;
  border: 3px solid transparent;
  border-radius: 6px;
  background: #fff;
}
.tframe.selected img { border-color: #d4a017; }
.tframe.load img { border-color: var(--navy); }
.tframe.contact img { border-color: var(--red); }
.tframe .fn { display: block; font-size: 12px; color: var(--muted); }
.tframe .tag { display: none; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; }
.tframe.load .load-tag { display: block; color: var(--navy); }
.tframe.contact .contact-tag { display: block; color: var(--red); }
.timer-readout { margin: 8px 0; }
.timer-big {
  font-family: Anton, Inter, sans-serif;
  font-size: 42px;
  color: var(--navy);
  letter-spacing: 0.03em;
  line-height: 1;
}
.timer-sub { color: var(--muted); margin-top: 4px; }
.mark-row { display: flex; gap: 8px; flex-wrap: wrap; }

.actions { display: flex; gap: 8px; align-items: stretch; }
.primary {
  flex: 1;
  min-height: 56px;
  border: 0;
  border-radius: 12px;
  background: var(--red);
  color: #fff;
  font-family: Anton, Inter, sans-serif;
  font-size: 26px;
  letter-spacing: 0.06em;
}
.stop {
  min-height: 56px;
  min-width: 96px;
  border-radius: 12px;
  border: 2px solid var(--navy);
  background: #fff;
  color: var(--navy);
  font-weight: 700;
}
.hint, .msg { color: var(--muted); margin: 8px 0 0; }
.msg.bad { color: var(--red); font-weight: 600; }
.msg.good { color: var(--navy); font-weight: 700; }

.report-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.report-actions button, .secondary {
  min-height: 48px;
  padding: 0 16px;
  border-radius: 10px;
  border: 2px solid var(--navy);
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}
.report-actions .ghost, .secondary.ghost { background: #fff; color: var(--navy); }
.draft-note { color: var(--muted); margin: 8px 0 0; }
.slide-hint { display: none; color: var(--muted); margin: 0 0 8px; }

#report-viewport {
  overflow-x: auto;
  background: #d9e0ee;
  border-radius: 12px;
  padding: 12px;
}
#report-root { width: 8.5in; margin: 0 auto; }
#report-root .sheet + .sheet { margin-top: 14px; }
#report-root .sheet { box-shadow: 0 8px 24px rgba(27, 58, 120, 0.16); }
body.pdf-capturing { overflow: hidden; }
body.pdf-capturing #report-viewport { overflow: visible; }
body.pdf-capturing #report-root {
  position: fixed;
  left: 0;
  top: 0;
  margin: 0;
  z-index: 40;
  width: 8.5in;
}
body.pdf-capturing #report-root .sheet {
  box-shadow: none;
  margin-top: 0;
}

.saved-table { width: 100%; border-collapse: collapse; }
.saved-table th, .saved-table td {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.saved-table th { color: var(--muted); font-size: 13px; font-weight: 700; }
.saved-table button.link {
  background: none;
  border: 0;
  color: var(--navy);
  font-weight: 700;
  padding: 8px 0;
  text-align: left;
}
.search { margin-bottom: 10px; }

.sheet {
  width: 8.5in;
  height: 11in;
  padding: 0.26in 0.3in 0.22in;
  background: #fff;
  color: var(--text);
  font-family: Inter, sans-serif;
  font-size: 9px;
  line-height: 1.25;
  overflow: hidden;
  box-sizing: border-box;
}
.sheet-inner {
  min-height: 10.52in;
  display: flex;
  flex-direction: column;
}
.sheet-inner > * { flex-shrink: 0; }
.past-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
}
.past-row button {
  min-height: 44px;
  background: none;
  border: 0;
  color: var(--navy);
  font-weight: 700;
  padding: 8px 0;
}
.banner {
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  border-bottom: 4px solid var(--red);
  padding: 8px 10px 7px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.banner .eyebrow {
  margin: 0;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.banner h2 {
  font-family: Anton, Inter, sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin: 2px 0;
  text-transform: uppercase;
}
.banner h2 .report { color: var(--light-red); }
.banner .sub { margin: 0; font-size: 9px; letter-spacing: 0.03em; }
.wordmark {
  font-family: Anton, Inter, sans-serif;
  font-size: 16px;
  line-height: 0.9;
  letter-spacing: 0.04em;
  text-align: right;
  text-transform: uppercase;
}
.sample-flag {
  display: block;
  margin-top: 4px;
  color: var(--light-red);
  font-family: Inter, sans-serif;
  font-size: 8px;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  background: var(--bg);
  border: 1px solid var(--line);
  margin-top: 8px;
}
.info-grid div { padding: 4px 5px 5px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.info-grid .k {
  display: block;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.info-grid .v { display: block; font-size: 9.5px; font-weight: 700; line-height: 1.2; word-break: break-word; }
.sec-h { display: flex; align-items: center; gap: 6px; margin: 8px 0 4px; }
.sec-n {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-family: Anton, Inter, sans-serif;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.sec-t {
  font-family: Anton, Inter, sans-serif;
  color: var(--navy);
  letter-spacing: 0.04em;
  font-size: 13px;
  text-transform: uppercase;
}
.sec-rule { flex: 1; height: 1px; background: #c5cedf; }
.score-row {
  display: grid;
  grid-template-columns: 118px 1fr 132px;
  gap: 8px;
  align-items: center;
}
.dial { position: relative; width: 112px; height: 112px; }
.dial svg { width: 112px; height: 112px; display: block; }
.dial-num {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: Inter, sans-serif;
}
.dial-num strong { font-size: 28px; line-height: 1; color: var(--navy); }
.dial-num span { font-size: 8px; color: var(--muted); }
.summary { margin: 0 0 4px; font-size: 9.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 6px;
  color: #fff;
  font-size: 8px;
  font-weight: 700;
}
.chip.g { background: var(--navy); }
.chip.d { background: var(--chip-d); }
.chip.p { background: var(--red); }
.chip.n { background: #e6e9f0; color: var(--muted); }
.load-box { border: 2px solid var(--red); text-align: center; padding: 6px 4px 7px; }
.load-box .k { color: var(--red); font-size: 7px; font-weight: 800; letter-spacing: 0.08em; }
.load-box .n {
  font-family: Anton, Inter, sans-serif;
  font-size: 26px;
  color: var(--navy);
  line-height: 1;
  margin-top: 2px;
}
.load-box .s { font-size: 8px; color: var(--muted); margin-top: 2px; }
.snaps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.snap-frame {
  height: var(--snap-h, 1.42in);
  border: 2px solid var(--navy);
  background: #eef2f8;
  overflow: hidden;
}
.snap-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.snap-frame .ph {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 8px;
  text-align: center;
  padding: 4px;
}
.snap-label {
  display: block;
  text-align: center;
  font-family: Anton, Inter, sans-serif;
  letter-spacing: 0.04em;
  font-size: 11px;
  margin-top: 2px;
  text-transform: uppercase;
}
.snap .cap { display: block; text-align: center; font-size: 7.5px; line-height: 1.2; min-height: 2.3em; }
.snap-note { margin: 2px 0 0; color: var(--muted); font-size: 8px; }
.score-table { width: 100%; border-collapse: collapse; }
.score-table th {
  background: var(--navy);
  color: #fff;
  text-align: left;
  font-size: 7.5px;
  font-weight: 700;
  padding: 3px 4px;
}
.score-table td { padding: 2px 4px; border-bottom: 1px solid #e6ebf4; vertical-align: top; font-size: 8px; }
.score-table .phase td { background: #e7f0fb; color: var(--navy); font-weight: 700; padding: 3px 4px; }
.score-table .num { width: 22px; color: var(--muted); }
.score-table .saw {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pill {
  display: inline-block;
  min-width: 16px;
  text-align: center;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  font-size: 8px;
  padding: 0 4px;
}
.pill.G { background: var(--navy); }
.pill.D { background: var(--chip-d); }
.pill.P { background: var(--red); }
.pill.N { background: #e6e9f0; color: var(--muted); }
.progress {
  background: var(--navy);
  color: #fff;
  border-radius: 6px;
  padding: 7px 9px 8px;
}
.progress h3, .block-title, .strength h3, .fix-h span {
  font-family: Anton, Inter, sans-serif;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.progress h3 { margin: 0 0 3px; font-size: 13px; }
.progress .big { font-size: 14px; font-weight: 700; }
.progress p { margin: 3px 0 0; }
.up { color: #9be7b8; }
.down { color: #ffb4b4; }
.strength { border: 2px solid var(--navy); padding: 6px 8px; margin-top: 6px; }
.strength h3 { margin: 0; color: var(--navy); font-size: 13px; }
.strength .name-line { color: var(--text); font-size: 9.5px; font-weight: 700; margin: 2px 0; }
.block-title { margin: 8px 0 4px; color: var(--navy); font-size: 13px; }
.bench { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.bench article { border: 1.5px solid var(--navy); padding: 4px 5px; }
.bench strong { display: block; color: var(--navy); font-size: 8.5px; }
.bench p { margin: 2px 0 0; }
.fine { color: var(--muted); margin: 3px 0 0; font-size: 7.5px; }
.fix { border: 1.5px solid var(--red); margin-top: 4px; font-size: var(--fix-fs, 8px); }
.fix-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  background: #fff5f5;
  color: var(--red);
  padding: 2px 6px;
  font-size: 11px;
}
.fix-b { padding: 3px 6px 4px; }
.lbl { color: var(--red); font-size: 7px; font-weight: 800; letter-spacing: 0.06em; display: block; }
.cue { color: var(--navy); font-style: italic; font-weight: 700; margin: 0; }
.fix-grid { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 6px; margin-top: 2px; }
.weeks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.week { border-top: 3px solid var(--navy); background: var(--bg); padding: 4px; min-height: 0.72in; }
.week b {
  display: block;
  font-family: Anton, Inter, sans-serif;
  font-weight: 400;
  color: var(--navy);
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.program { border: 1px solid var(--line); padding: 5px 8px; margin-top: 6px; }
.check { display: flex; align-items: center; gap: 6px; margin: 2px 0; }
.box { width: 9px; height: 9px; border: 1.5px solid var(--navy); display: inline-block; flex: none; }
.sigs { display: flex; gap: 16px; margin-top: 4px; }
.footer {
  margin-top: auto;
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 5px 8px;
  font-size: 8px;
  line-height: 1.35;
}

@media (max-width: 720px) {
  .brand-row { flex-direction: column; align-items: flex-start; }
  .brand-loc { text-align: left; }
  .brand-title { font-size: 28px; }
  .fields, .film-grid { grid-template-columns: 1fr; }
  .slide-hint { display: block; }
  .demo-banner, .install { flex-direction: column; align-items: stretch; }
}
