/* RefundCam site. Colours come only from brand-tokens/tokens.css (var(--...)), which build.mjs puts in front of this file. */
@font-face {
  font-family: 'Instrument Serif';
  src: url('/assets/fonts/instrument-serif-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Geist;
  src: url('/assets/fonts/geist-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('/assets/fonts/geist-mono-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 Geist, system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,
svg,
video {
  max-width: 100%;
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.serif {
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.mono,
code,
pre {
  font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.muted {
  color: var(--muted);
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  background: var(--surface);
  padding: 8px 12px;
  z-index: 10;
}

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.top .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
}
.brand svg {
  width: 22px;
  height: 22px;
}
.nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
  align-items: center;
}
.nav a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}
.nav a:not(.btn):hover {
  color: var(--ink);
}
@media (max-width: 720px) {
  .nav a.hide-sm {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 120ms cubic-bezier(0.2, 0, 0, 1), color 120ms cubic-bezier(0.2, 0, 0, 1);
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn.ghost:hover {
  background: var(--surface);
}
.btn.sm {
  min-height: 36px;
  padding: 6px 14px;
  font-size: 15px;
}
.btn[disabled] {
  opacity: 0.6;
  cursor: default;
}

/* Sections */
section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}
section.hero {
  border-top: 0;
  padding: 56px 0 64px;
}
h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 12px;
}
h1 {
  font-size: clamp(40px, 6vw, 68px);
}
h2 {
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 650;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 19px;
  font-weight: 650;
}
.lead {
  font-size: clamp(18px, 2vw, 21px);
  color: var(--muted);
  max-width: 40ch;
  margin: 0 0 28px;
}
.eyebrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 10px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.fine {
  font-size: 14px;
  color: var(--muted);
  margin-top: 14px;
}

/* Phone frame showing the real result screen */
.phone {
  width: min(320px, 100%);
  margin: 0 auto;
  border: 10px solid var(--ink);
  border-radius: 36px;
  background: var(--bg);
  overflow: hidden;
}
.phone-bar {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  padding: 8px 0 6px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.phone-body {
  padding: 18px 16px 22px;
}
.claim-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.claim-row:last-child {
  border-bottom: 0;
}
.claim-row .ref {
  font-family: 'Geist Mono', ui-monospace, Menlo, monospace;
  font-size: 13px;
}
.claim-row small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

/* Status chips: lightness step + icon + word, never colour alone */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}
.chip svg {
  width: 14px;
  height: 14px;
  flex: none;
}
.chip.pass {
  background: var(--pass-bg);
  color: var(--pass);
}
.chip.retake {
  background: var(--retake-bg);
  color: var(--retake);
}
.chip.review {
  background: var(--review-bg);
  color: var(--review);
}

/* Proof numbers */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.stat {
  padding: 24px;
}
.stat + .stat {
  border-left: 1px solid var(--line);
}
.stat b {
  display: block;
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.stat p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
@media (max-width: 760px) {
  .stats {
    grid-template-columns: 1fr;
  }
  .stat + .stat {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}
.not-caught {
  margin-top: 18px;
  font-size: 15px;
  color: var(--muted);
}

/* Promises */
.promises {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 32px;
}
.promises li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 18px;
}
.promises svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 4px;
  color: var(--accent);
}
@media (max-width: 760px) {
  .promises {
    grid-template-columns: 1fr;
  }
}
.quote {
  margin: 36px 0 0;
  max-width: 62ch;
  font-size: 18px;
}

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: s;
}
.steps li {
  counter-increment: s;
}
.steps li::before {
  content: counter(s);
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  font-weight: 650;
  margin-bottom: 12px;
}
.steps p {
  margin: 0;
  color: var(--muted);
}
@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* Pricing */
.table-wrap {
  overflow-x: auto;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}
th,
td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
tr:last-child td {
  border-bottom: 0;
}
th {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}
td small {
  display: block;
  color: var(--muted);
  font-size: 14px;
}
@media (max-width: 640px) {
  .price-table thead {
    display: none;
  }
  .price-table tr {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .price-table tr:last-child {
    border-bottom: 0;
  }
  .price-table td {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border: 0;
    padding: 4px 18px;
  }
  .price-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 14px;
  }
  .price-table td:first-child {
    font-weight: 650;
  }
  .price-table td small {
    text-align: right;
  }
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 32px;
}
@media (max-width: 760px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}
.plain-list {
  margin: 0;
  padding-left: 20px;
}
.plain-list li {
  margin-bottom: 6px;
}

/* Form */
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 720px;
  margin-top: 24px;
}
.form .full {
  grid-column: 1 / -1;
}
@media (max-width: 640px) {
  .form {
    grid-template-columns: 1fr;
  }
}
label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}
label .opt {
  font-weight: 400;
  color: var(--muted);
}
input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
textarea {
  min-height: 96px;
  resize: vertical;
}
.form-note {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.form-status {
  font-weight: 600;
  margin: 0;
}
.form-status.ok {
  color: var(--success);
}
.form-status.bad {
  color: var(--error);
}

/* Footer */
.foot {
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
  font-size: 15px;
  color: var(--muted);
}
.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
}
.foot nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.foot a {
  color: var(--muted);
}

/* Prose pages: privacy, docs */
.prose {
  max-width: 760px;
  padding-top: 48px;
  padding-bottom: 72px;
}
.prose h1 {
  font-size: clamp(36px, 5vw, 52px);
}
.prose h2 {
  margin-top: 40px;
  font-size: 26px;
}
.prose h3 {
  margin-top: 28px;
}
.prose p,
.prose li {
  max-width: 68ch;
}
pre {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.5;
}
code {
  font-size: 0.92em;
}
p code,
li code,
td code {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 5px;
}
.prose .table-wrap table {
  font-size: 15px;
}
.toc {
  font-size: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 20px;
  background: var(--surface);
}
.toc ol {
  margin: 6px 0 0;
  padding-left: 20px;
}

/* Demo page */
.demo-main {
  padding: 32px 0 64px;
}
.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 860px) {
  .demo-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
.demo-grid h1 {
  font-size: clamp(34px, 5vw, 52px);
}
.notice {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 15px;
  margin: 18px 0;
}
.notice strong {
  display: block;
  margin-bottom: 2px;
}
/* Browser-style frame around the live demo */
.frame {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
}
.frame-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.frame-bar .dots {
  display: inline-flex;
  gap: 5px;
}
.frame-bar .dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--border);
}
.frame-bar .url {
  flex: 1;
  text-align: center;
  font-family: 'Geist Mono', ui-monospace, Menlo, monospace;
  font-size: 12px;
}
.cam {
  position: relative;
  aspect-ratio: 3 / 4;
  max-height: calc(100dvh - 200px);
  min-height: 300px;
  width: 100%;
  background: var(--bg);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.cam video,
.cam img.shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cam .brackets {
  position: absolute;
  inset: 10%;
  width: 80%;
  height: 80%;
  pointer-events: none;
}
.cam .brackets path {
  fill: none;
  stroke: var(--highlight);
  stroke-width: 3;
  stroke-linecap: round;
}
.cam .idle {
  padding: 24px;
  max-width: 340px;
}
.cam .idle p {
  color: var(--muted);
  font-size: 15px;
}
.cam-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  display: flex;
  justify-content: center;
}
.shutter {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 4px solid var(--ink);
  background: var(--highlight);
  cursor: pointer;
  padding: 0;
}
.shutter[disabled] {
  opacity: 0.5;
}
.cam .hint {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  font-size: 14px;
  background: var(--bg);
  color: var(--ink);
  border-radius: 8px;
  padding: 6px 10px;
}
.result {
  padding: 18px 18px 20px;
  border-top: 1px solid var(--line);
}
.result h2 {
  font-size: 22px;
  margin: 10px 0 6px;
}
.result ul {
  margin: 8px 0 0;
  padding-left: 20px;
  font-size: 15px;
}
.result .fine {
  margin-top: 12px;
}
.stub-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 6px;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
