/* Web equivalents of the Bench tokens in ios/Priced/Design.swift. */
:root {
  --bg: #ffffff;
  --ink: #17181a;
  --surface: #f7f7f6;
  --secondary: #77787c;
  --hairline: rgba(23, 24, 26, 0.08);
  --accent: #fe441a;
  --on-accent: #ffffff;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  --inset: 24px;
  --max: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101114; --ink: #eceae5; --surface: #191b1e; --secondary: #8e8e93;
    --hairline: rgba(236, 234, 229, 0.1); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #101114; --ink: #eceae5; --surface: #191b1e; --secondary: #8e8e93;
  --hairline: rgba(236, 234, 229, 0.1); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.5 var(--font); -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; }
h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; }
h3 { font-size: 18px; font-weight: 500; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--inset); }
.muted { color: var(--secondary); }
.price { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 500; }

/* Header */
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
/* Priced wordmark (Brand.xcassets/Wordmark), swapped for dark appearance */
.wordmark { display: inline-flex; align-items: center; text-decoration: none; }
.wordmark img { height: 28px; width: auto; }
.wordmark .on-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wordmark .on-light { display: none; }
  :root:not([data-theme="light"]) .wordmark .on-dark { display: block; }
}
:root[data-theme="dark"] .wordmark .on-light { display: none; }
:root[data-theme="dark"] .wordmark .on-dark { display: block; }
.app-icon { width: 72px; height: 72px; border-radius: 22.5%; }

/* BenchButton */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 24px; border-radius: 999px; border: 0;
  background: var(--accent); color: var(--on-accent); font: 500 17px var(--font);
  text-decoration: none; cursor: pointer;
  transition: transform 0.16s ease-out, opacity 0.16s ease-out;
}
.btn:active { transform: scale(0.97); opacity: 0.85; }
.btn.secondary { background: var(--surface); color: var(--ink); }
.btn.ink { background: var(--ink); color: var(--bg); }
.btn.small { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn svg { width: 20px; height: 20px; }
a:focus-visible, .btn:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn:focus-visible { outline-color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .btn:active { transform: none; } }

/* Phone screenshot */
.phone {
  border-radius: 13.5% / 6.2%; overflow: hidden; background: var(--surface);
  box-shadow: 0 0 0 1px var(--hairline);
}
.phone img { width: 100%; }

/* InstantShape tile, clipped with #instant (see the inline SVG in each page) */
.instant { clip-path: url(#instant); aspect-ratio: 0.86; background: var(--surface); }
.instant img { width: 100%; height: 100%; object-fit: cover; }

/* StackCard: newest capture on top, two more tilted behind (tilt 0/-9/8 deg, shift 0/-24/24 pt at a 170 pt tile) */
.stack { position: relative; aspect-ratio: 0.86; }
.stack .instant { position: absolute; inset: 0; transform: scale(0.84); }
.stack .layer { position: absolute; inset: 0; filter: drop-shadow(0 4px 6px rgba(0,0,0,.08)); }
.stack .l1 { transform: translate(-14%, -2%) rotate(-9deg); }
.stack .l2 { transform: translate(14%, 2%) rotate(8deg); }
.stack .top { filter: drop-shadow(0 4px 10px rgba(0,0,0,.16)); }

/* Scan box: 2 pt orange outline, 8 pt radius, price label on 68% black */
.box { position: absolute; border: 2px solid var(--accent); border-radius: 8px; }
.box .tag { position: absolute; left: -2px; bottom: calc(100% + 6px); white-space: nowrap; padding: 6px 8px; border-radius: 6px; background: rgba(0,0,0,.68); color: #fff; font: 500 12px var(--mono); font-variant-numeric: tabular-nums; }

.footer { padding-top: 40px; padding-bottom: 56px; font-size: 14px; color: var(--secondary); display: flex; gap: 24px; justify-content: space-between; flex-wrap: wrap; }
.footer nav { display: flex; gap: 20px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* Clean demo shelf (ios/Priced/Resources/shelf.png) with scan boxes positioned in percent */
.scene { position: relative; aspect-ratio: 2 / 3; width: 100%; }
.scene > img { width: 100%; height: 100%; }
.scene .box:nth-of-type(1) { left: 4.7%; top: 20.3%; width: 26.3%; height: 21.8%; }
.scene .box:nth-of-type(2) { left: 37.1%; top: 31.5%; width: 22.9%; height: 10%; }
.scene .box:nth-of-type(3) { left: 69.2%; top: 21.5%; width: 22.7%; height: 20.4%; }
.scene .box:nth-of-type(4) { left: 0.6%; top: 60.4%; width: 29.4%; height: 18.4%; }
.scene .box:nth-of-type(5) { left: 34.1%; top: 50.6%; width: 33.8%; height: 25%; }
.scene .box:nth-of-type(6) { left: 71.3%; top: 61%; width: 28.1%; height: 17.4%; }
.scene .box:nth-of-type(3) .tag, .scene .box:nth-of-type(6) .tag { left: auto; right: -2px; }

/* Framed screenshot: thin light bezel with padding, hairline edge and soft shadow */
:root { --bezel: #ffffff; --bezel-edge: rgba(23, 24, 26, 0.1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bezel: #24262a; --bezel-edge: rgba(236, 234, 229, 0.12); } }
:root[data-theme="dark"] { --bezel: #24262a; --bezel-edge: rgba(236, 234, 229, 0.12); }
.device {
  padding: 3.2%; background: var(--bezel); border-radius: 15.5% / 7.2%;
  box-shadow: 0 0 0 1px var(--bezel-edge), 0 24px 48px -18px rgba(23, 24, 26, 0.22), 0 4px 12px -4px rgba(23, 24, 26, 0.08);
}
.device .phone { box-shadow: 0 0 0 1px var(--hairline); }
