@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/fonts/atkinson-hyperlegible-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/fonts/atkinson-hyperlegible-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --album: #1c1814;
  --print: #f6f6f4;
  --red: #b01a2e;
  --red-dark: #8e1424;
  --gelatin: #6e6a64;
  --silver: #d0cbc3;
  --ink: #1c1814;
  --white: #ffffff;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--album);
  color: var(--print);
  font-family: "Atkinson Hyperlegible", sans-serif;
  font-size: 21px;
  line-height: 1.45;
}
img { max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0 0 0.6em; }
h1 { font-size: clamp(32px, 4vw, 44px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
h2 { font-size: 34px; line-height: 1.2; letter-spacing: -0.02em; }
h3 { font-size: 26px; line-height: 1.25; }
a { color: var(--red); }
a:hover { text-decoration-thickness: 2px; }

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  background: var(--print);
  color: var(--album);
  padding: 8px 12px;
  z-index: 5;
}
.skip:focus { top: 12px; }

.top, .foot-inner, .wrap { width: min(1120px, calc(100% - 40px)); margin-left: auto; margin-right: auto; }
.wrap.narrow { width: min(760px, calc(100% - 40px)); }
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px 28px;
  padding: 22px 0 8px;
  width: min(1120px, calc(100% - 48px));
}
.logo { color: var(--print); font-weight: 700; font-size: 20px; text-decoration: none; }
.nav, .foot-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.nav a, .foot-nav a { color: var(--print); text-decoration: none; font-size: 18px; }
.nav a:hover, .foot-nav a:hover, .nav a:focus-visible, .foot-nav a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }

.hero-screen { background: var(--album); }
.hero { padding: 8px 0 28px; }
.hero-stack { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.hero h1 { color: var(--white); margin: 10px 0 16px; }
.mat { background: var(--white); padding: 10px; }
.compare {
  position: relative;
  width: 100%;
  aspect-ratio: 1400 / 919;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  cursor: ew-resize;
  background: #111;
  --pos: 80%;
}
.compare:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.compare-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.sweep {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  transform: translateX(-50%);
  background: #ff3b4e;
  box-shadow: 0 0 8px 2px rgba(255, 59, 78, 0.95), 0 0 18px 6px rgba(176, 26, 46, 0.55);
  pointer-events: none;
}
.handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.2);
}
.tag {
  position: absolute;
  bottom: 12px;
  color: var(--white);
  font-size: 16px;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
}
.tag-before { left: 14px; }
.tag-after { right: 14px; }
.cta { text-align: center; margin: 22px 0 0; }

html:not(.js) .compare { display: block; aspect-ratio: auto; height: auto; cursor: auto; touch-action: auto; }
html:not(.js) .compare img { position: static; clip-path: none; height: auto; }
html:not(.js) .sweep { display: none; }
html:not(.js) .tag { position: static; display: block; color: var(--album); text-shadow: none; background: var(--print); padding: 8px 10px; }

.btn {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border: 0;
  padding: 16px 22px;
  min-height: 56px;
  cursor: pointer;
}
.btn:hover { background: var(--red-dark); }
.btn:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
.btn-small { font-size: 18px; padding: 12px 16px; min-height: 48px; }
.btn-ghost { background: transparent; color: var(--red); box-shadow: inset 0 0 0 2px var(--red); }
.btn-ghost:hover { background: var(--red); color: var(--white); }
.btn-disabled { background: var(--gelatin); cursor: not-allowed; }
.sheet .btn:focus-visible, .sheet .btn-ghost:focus-visible { outline-color: var(--album); }

.sheet { background: var(--print); color: var(--ink); padding: 36px 0 56px; }
.sheet a { color: var(--red); }
.sheet a.btn, .sheet a.btn:hover { color: var(--white); }
.sheet a.btn-ghost { color: var(--red); }
.sheet a.btn-ghost:hover { color: var(--white); }
.sheet h1, .sheet h2, .sheet h3 { color: var(--ink); }
.lead { font-size: 22px; }
.hint, .note, .credit, .foot-note { color: var(--gelatin); font-size: 18px; }
.sheet .hint, .sheet .note { color: #4e4a45; }
.steps { list-style: none; padding: 0; margin: 18px 0 0; }
.steps li { display: grid; grid-template-columns: 48px 1fr; gap: 8px 14px; margin: 0 0 22px; }
.step-num { font-size: 40px; line-height: 1; font-weight: 700; color: var(--red); }
.prices { display: grid; gap: 28px; margin: 22px 0; }
.price { border-top: 4px solid var(--red); padding-top: 14px; }
.amount { font-size: 56px; line-height: 1; font-weight: 700; color: var(--red); margin: 0 0 8px; }
.sheet-page { min-height: 60vh; }
.stack { display: grid; gap: 8px; margin: 18px 0 24px; }
.stack label { font-weight: 700; font-size: 20px; margin-top: 8px; }
input[type="email"], input[type="text"], input[type="file"] {
  font-family: inherit;
  font-size: 20px;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--album);
  padding: 12px 14px;
  width: 100%;
  min-height: 56px;
}
input.license-key {
  font-size: 32px;
  min-height: 84px;
  padding: 18px 16px;
  letter-spacing: 0.04em;
}
input:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.alert, .success, .callout { padding: 14px 16px; margin: 0 0 16px; }
.alert { background: #f8e6e9; color: var(--red-dark); font-weight: 700; }
.success { background: #e7f0e4; color: #1d3b16; }
.callout { background: var(--white); border: 2px solid var(--silver); margin-top: 28px; }
.result { margin: 12px 0 18px; background: var(--white); padding: 8px; }
.result img { display: block; width: 100%; height: auto; }
.foot { background: var(--album); color: var(--print); padding: 28px 0 40px; }
.foot-inner { display: grid; gap: 14px; }
.foot .logo { display: inline-block; margin-bottom: 4px; }
.foot .credit, .foot-note { color: var(--silver); }
.credit { max-width: 70ch; }

@media (min-width: 800px) {
  .prices { grid-template-columns: repeat(3, 1fr); gap: 32px; align-items: start; }
  .foot-inner { grid-template-columns: 1fr 2fr; }
  .credit { grid-column: 1 / -1; }
}

@media (min-width: 1000px) and (max-height: 900px) {
  .hero-screen { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
  .hero { flex: 1; min-height: 0; display: flex; padding-bottom: 16px; }
  .hero-stack {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero h1 {
    font-size: 40px;
    margin: 4px 0 12px;
    white-space: nowrap;
    width: min(100%, calc((100dvh - 200px) * 1400 / 919));
  }
  .mat {
    flex: 1;
    min-height: 0;
    width: auto;
    max-width: 100%;
    padding: 8px;
    display: flex;
  }
  .compare { height: 100%; width: auto; max-width: 100%; aspect-ratio: 1400 / 919; }
  .cta { margin-top: 12px; }
  .top { padding-top: 14px; }
}

@media (max-width: 720px) {
  body { font-size: 20px; }
  .top, .hero-stack { width: min(1120px, calc(100% - 28px)); }
  .top { align-items: flex-start; flex-direction: column; gap: 10px; padding-top: 16px; }
  .nav { gap: 8px 16px; }
  .nav a { font-size: 17px; }
  .hero h1 { font-size: 32px; }
  .mat { padding: 8px; }
  .cta .btn, .sheet-page .btn { display: block; text-align: center; }
  .actions { display: grid; }
  h2 { font-size: 30px; }
  .amount { font-size: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
