@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/hanken-grotesk-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Red Hat Mono";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/red-hat-mono-latin.woff2") format("woff2");
}

:root {
  --bench: #f4f4f2;
  --paper: #ffffff;
  --ink: #111111;
  --ink-2: #3a3a3a;
  --muted: #6a6a68;
  --rule: #e2e2de;
  --blue: #1884f6;
  --blue-ink: #0a64c9;
  --blue-deep: #0852a6;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "Red Hat Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --shadow-print: 0 1px 2px rgba(17,17,17,.08), 0 12px 32px -8px rgba(17,17,17,.22), 0 36px 80px -24px rgba(17,17,17,.18);
  --shadow-sheet: 0 1px 2px rgba(17,17,17,.06), 0 10px 40px -16px rgba(17,17,17,.14);
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: var(--bench);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(244, 244, 242, .82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--rule); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 4px; font-size: 15px; }
.nav-links a:not(.btn) { padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--ink-2); transition: color .2s, background .2s; }
.nav-links a:not(.btn):hover { color: var(--ink); background: rgba(17,17,17,.05); }
@media (max-width: 720px) { .nav-links .opt { display: none; } }
@media (max-width: 360px) { .nav-links .opt-sm { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  font: 600 15px/1 var(--sans); letter-spacing: -0.01em; text-decoration: none;
  transition: transform .2s var(--ease-out), background .2s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn-blue { background: var(--blue-ink); color: #fff; }
.btn-blue:hover { background: var(--blue-deep); }
.btn svg { width: 18px; height: 18px; flex: none; }

.appstore {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 60px; padding: 0 26px 0 20px; border-radius: 16px;
  background: var(--ink); color: #fff; text-decoration: none;
  transition: transform .25s var(--ease-out), box-shadow .25s;
  box-shadow: 0 10px 30px -12px rgba(17,17,17,.55);
}
.appstore:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(17,17,17,.6); }
.appstore:active { transform: scale(.97); }
.appstore svg { width: 26px; height: 26px; }
.appstore span { display: grid; text-align: left; }
.appstore small { font-size: 11.5px; line-height: 1.1; opacity: .8; }
.appstore b { font-size: 21px; line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; }

/* ---------- Hero ---------- */
.hero { padding: clamp(28px, 5vw, 56px) 0 clamp(56px, 8vw, 104px); }
.hero .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 {
  font-size: clamp(44px, 6.2vw, 84px); line-height: .98; letter-spacing: -0.04em; font-weight: 700;
  text-wrap: balance;
}
.hero .lede { margin-top: 22px; font-size: clamp(18px, 1.6vw, 20px); color: var(--ink-2); max-width: 30ch; }
.hero .actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.hero .meta { font-size: 14px; color: var(--muted); }

/* Index print sheet */
.bench { position: relative; --pw: 34%; padding-bottom: calc(var(--pw) * 4 / 3 + 10px); }
.sheet {
  position: relative; background: var(--paper); border-radius: 6px; box-shadow: var(--shadow-sheet);
  padding: 18px 18px 14px; width: 86%;
}
.sheet-head {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font: 500 11.5px/1.2 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
  padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--rule);
}
.sheet-head b { color: var(--ink); font-weight: 600; }
.frames { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px 6px; list-style: none; }
.frame {
  position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; color: inherit; text-align: center; border-radius: 3px;
}
.frame img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 2px; transition: transform .35s var(--ease-out); }
.frame:hover img { transform: scale(1.04); }
.frame .no { display: block; margin-top: 5px; font: 500 11.5px/1 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.frame[aria-pressed="true"] .no { color: var(--blue-ink); font-weight: 700; }
.frame:focus-visible { outline-offset: 5px; }

.print {
  position: absolute; right: 0; bottom: 0; width: var(--pw);
  background: #fff; padding: 8px 8px 0; border-radius: 4px; box-shadow: var(--shadow-print);
  transform: rotate(2.2deg); transform-origin: 60% 80%;
}
.print img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 2px; background: #dfe6ea; }
.print .stamp {
  display: flex; justify-content: space-between; gap: 8px; padding: 9px 2px 10px;
  font: 500 11.5px/1.2 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .02em;
}
.print .stamp b { color: var(--ink); font-weight: 600; }
.print .stamp > * { white-space: nowrap; }
.print img.develop { animation: develop 900ms var(--ease-out) both; }
@keyframes develop {
  from { filter: blur(10px) brightness(1.6) saturate(.2); }
  to { filter: none; }
}

.js .print.enter { animation: slide-out 1000ms 700ms var(--ease-out) both; }
.js .print.enter img { animation: develop 1400ms 900ms var(--ease-out) both; }
@keyframes slide-out {
  from { transform: translate(-28%, -30%) rotate(0deg) scale(.55); opacity: 0; }
  to { transform: rotate(2.2deg); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .js .print.enter, .js .print.enter img, .print img.develop { animation: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .lede { max-width: 36ch; }
}
@media (max-width: 600px) {
  .frames { grid-template-columns: repeat(6, 1fr); gap: 8px 5px; }
  .frames li:nth-child(n+19) { display: none; }
  .sheet { width: 100%; padding: 12px 12px 10px; }
  .bench { --pw: 54%; padding-bottom: calc(var(--pw) * 4 / 3 + 14px); }
  .print { right: 6px; }
  .print .stamp span:last-child { display: none; }
  .appstore { width: 100%; justify-content: center; }
}

/* ---------- Sections ---------- */
section.band { padding: clamp(72px, 10vw, 128px) 0; }
section.paper { background: var(--paper); }
h2 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; text-wrap: balance; max-width: 18ch; }
.intro { margin-top: 18px; font-size: 19px; color: var(--ink-2); max-width: 56ch; }
h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 650; }

/* Screenshot vs frame */
.compare { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.verdict { margin-top: 36px; width: 100%; border-collapse: collapse; font-size: 16px; }
.verdict th, .verdict td { text-align: left; vertical-align: top; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--rule); }
.verdict thead th { font: 600 12px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-bottom: 10px; }
.verdict thead th:last-child { color: var(--ink); }
.verdict tbody th { font-weight: 600; width: 28%; }
.verdict td { color: var(--muted); width: 36%; }
.verdict td:last-child { color: var(--ink); font-weight: 600; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Drag slider: screenshot vs Frozeo, same frame, same crop */
.slider {
  position: relative; width: 100%; max-width: 460px; justify-self: end; aspect-ratio: 3 / 4;
  background: #fff; padding: 8px; border-radius: 6px; box-shadow: var(--shadow-print);
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.slider img { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); object-fit: cover; border-radius: 3px; pointer-events: none; }
.slider .s-shot { clip-path: inset(0 calc(100% - var(--p) * 1%) 0 0); }
.slider .tag {
  position: absolute; top: 18px; padding: 6px 10px; border-radius: 999px; pointer-events: none;
  font: 600 12px/1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: .02em;
  background: rgba(255,255,255,.92); color: var(--ink); white-space: nowrap;
}
.slider .tag.left { left: 18px; }
.slider .tag.right { right: 18px; background: var(--ink); color: #fff; }
.slider .handle { position: absolute; top: 8px; bottom: 8px; left: calc(8px + (100% - 16px) * var(--p) / 100); width: 0; pointer-events: none; }
.slider .handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(17,17,17,.12); }
.slider .knob {
  position: absolute; top: 50%; left: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--ink); box-shadow: 0 4px 16px rgba(17,17,17,.25);
  transition: transform .2s var(--ease-out);
}
.slider .knob svg { width: 20px; height: 20px; }
.slider:hover .knob, .slider.dragging .knob { transform: scale(1.08); }
.slider input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.slider:has(input:focus-visible) .knob { outline: 2px solid var(--blue); outline-offset: 3px; }
@media (max-width: 900px) {
  .compare { grid-template-columns: 1fr; }
  .slider { justify-self: stretch; max-width: none; margin-top: 8px; }
}
@media (max-width: 520px) { .verdict { font-size: 14px; } .verdict tbody th { width: 30%; } }

/* App steps */
.steps { margin-top: clamp(40px, 6vw, 64px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); list-style: none; }
.steps img { width: 100%; max-width: 280px; border-radius: 6px; background: #fff; padding: 8px 8px 28px; box-shadow: var(--shadow-print); margin-bottom: 32px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--ink-2); font-size: 16px; max-width: 34ch; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .steps li { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center; }
  .steps img { width: 120px; margin: 0; padding: 5px 5px 16px; }
}

/* Details */
.details { margin-top: clamp(40px, 6vw, 64px); display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--rule); }
.details > div { padding: 28px 0 32px; border-bottom: 1px solid var(--rule); }
.details > div:nth-child(odd) { padding-right: clamp(20px, 4vw, 56px); }
.details > div:nth-child(even) { padding-left: clamp(20px, 4vw, 56px); border-left: 1px solid var(--rule); }
.details dt { font-size: 21px; font-weight: 650; letter-spacing: -0.02em; }
.details dd { margin-top: 8px; color: var(--ink-2); font-size: 16px; max-width: 46ch; }
.files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.files span { font: 500 13px/1 var(--mono); padding: 8px 10px; border-radius: 6px; background: var(--bench); color: var(--ink-2); }
.files span b { color: var(--blue-ink); font-weight: 600; }
@media (max-width: 760px) {
  .details { grid-template-columns: 1fr; }
  .details > div:nth-child(n) { padding: 24px 0 26px; border-left: 0; }
}

/* FAQ */
.faq { margin-top: clamp(32px, 5vw, 48px); max-width: 820px; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 22px 48px 22px 0; font-size: 18px; font-weight: 600; letter-spacing: -0.015em;
  transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -8px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg);
  transition: transform .3s var(--ease-out), margin .3s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { color: var(--blue-ink); }
.faq details p { padding: 0 0 24px; color: var(--ink-2); max-width: 64ch; }

/* Close */
.close .wrap { display: grid; justify-items: center; text-align: center; }
.close h2 { margin: 0 auto; }
.close .intro { margin: 16px auto 32px; }
.social { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.social a {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 18px 0 14px; border-radius: 999px;
  background: var(--bench); text-decoration: none; font-weight: 550; font-size: 15px; color: var(--ink);
  transition: background .2s, transform .2s var(--ease-out);
}
.social a:hover { background: #ebebe7; transform: translateY(-2px); }
.social a:active { transform: scale(.97); }
.social svg { width: 18px; height: 18px; }

/* Close: the saved prints fanned on the bench */
.fan { display: flex; justify-content: center; margin: 0 auto 36px; padding: 0 24px; }
.fan img {
  width: clamp(64px, 9vw, 104px); aspect-ratio: 3 / 4; object-fit: cover;
  background: #fff; padding: 5px 5px 14px; border-radius: 3px; box-shadow: var(--shadow-print);
  margin: 0 -10px; transform: rotate(var(--r)) translateY(var(--y));
  transition: transform .4s var(--ease-out);
}
.fan:hover img { transform: rotate(calc(var(--r) * 1.4)) translateY(calc(var(--y) - 4px)); }

/* Footer */
footer { padding: 28px 0 36px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; }
footer nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
footer a { text-decoration: none; padding: 12px 0; display: inline-block; }
footer a:hover { color: var(--ink); }

/* ---------- Legal pages ---------- */
.legal { background: var(--paper); padding: clamp(40px, 6vw, 72px) 0 96px; }
.legal .wrap { max-width: 800px; }
.legal h1 { font-size: clamp(38px, 5.4vw, 60px); line-height: 1.02; letter-spacing: -0.035em; margin: 18px 0 10px; }
.legal .meta { font: 500 13px/1.4 var(--mono); color: var(--muted); margin-bottom: 40px; }
.legal h2 { font-size: 23px; letter-spacing: -0.02em; margin: 40px 0 10px; max-width: none; }
.legal p, .legal li { color: var(--ink-2); font-size: 17px; }
.legal p + p { margin-top: 14px; }
.legal ul { margin: 14px 0 0 22px; display: grid; gap: 8px; }
.legal a { color: var(--blue-ink); text-underline-offset: 3px; }
.legal a.back { color: var(--muted); text-decoration: none; font-size: 15px; display: inline-block; padding: 10px 0; }
.legal a.back:hover { color: var(--ink); }
.legal a.btn { color: #fff; text-decoration: none; }
