/* PixScan — marketing site
   Identity carried over from the App Store set: white ground, crimson accent,
   heavy tight type, hard offset shadows, and the wordmark in the icon's own
   gradient colours. */

:root {
  --ink: #0b0b0d;
  --bg: #ffffff;
  --bg-alt: #f4f4f6;
  --rule: #e4e4ea;
  --muted: #55555f;
  --crimson: #B8003F;
  --purple: #b0649d;
  --blue: #296fa0;
  --keep: #00B84D;
  --kill: #FF2D20;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --page: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2f2f5;
    --bg: #0c0c0f;
    --bg-alt: #15151a;
    --rule: #26262e;
    --muted: #9a9aa6;
  }
}
/* Dark keeps the crimson but lifts it for contrast on a dark ground. */
@media (prefers-color-scheme: dark) {
  :root { --crimson: #ff2f68; --purple: #d18cbf; --blue: #5aa6d0; }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 28px; }

/* ── nav ─────────────────────────────────────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
nav { display: flex; align-items: center; gap: 14px; height: 74px; }
nav .mark { display: flex; align-items: center; gap: 12px; text-decoration: none; }
nav .mark img { width: 38px; height: 38px; border-radius: 10px; }
nav .mark span { font-size: 25px; font-weight: 800; letter-spacing: -.035em; }
nav .links { margin-left: auto; display: flex; gap: 30px; align-items: center; }
nav .links a {
  color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600;
}
nav .links a:hover { color: var(--ink); }
.pix { color: var(--purple); } .scan { color: var(--blue); }

/* ── buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--crimson); color: #fff; text-decoration: none;
  font-weight: 800; font-size: 17px; letter-spacing: -.01em;
  padding: 15px 26px; border-radius: 12px;
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--ink); }
.btn.ghost {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 3px var(--ink);
}
.btn.ghost:hover { box-shadow: inset 0 0 0 3px var(--crimson); color: var(--crimson); }

/* ── type ────────────────────────────────────────────────────────────── */
h1 {
  font-size: clamp(56px, 9vw, 116px); line-height: .88; font-weight: 800;
  letter-spacing: -.055em; text-transform: uppercase;
}
h2 {
  font-size: clamp(38px, 5.2vw, 68px); line-height: .94; font-weight: 800;
  letter-spacing: -.045em; text-transform: uppercase;
}
h3 { font-size: 23px; font-weight: 800; letter-spacing: -.02em; }
.eyebrow {
  font-size: 14px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase;
  color: var(--crimson); margin-bottom: 20px;
}
.lede { font-size: 21px; line-height: 1.5; color: var(--muted); max-width: 56ch; }
.lede b { color: var(--ink); font-weight: 800; }
em.hl { font-style: normal; color: var(--crimson); }

section { padding: 108px 0; border-bottom: 1px solid var(--rule); }

/* ── hero ────────────────────────────────────────────────────────────── */
.hero { padding: 96px 0 100px; }
.hero-grid {
  display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center;
}
.hero .lede { margin-top: 28px; }
.hero .cta { margin-top: 38px; display: flex; gap: 16px; flex-wrap: wrap; }
.note { margin-top: 22px; font-size: 14.5px; color: var(--muted); }

/* ── device frame (same geometry as the App Store set) ───────────────── */
.device { position: relative; width: 100%; max-width: 340px; margin: 0 auto; }
.device .shell {
  background: #0b0b0d; padding: 11px; border-radius: 55px;
  box-shadow: 13px 13px 0 var(--crimson), 0 26px 60px rgba(0,0,0,.20);
}
.device img { display: block; width: 100%; border-radius: 44px; }
.device .island {
  position: absolute; top: 24px; left: 50%; transform: translateX(-50%);
  width: 29%; aspect-ratio: 100/30; background: #0b0b0d; border-radius: 99px;
}
.device.plain .shell { box-shadow: 0 30px 70px rgba(0,0,0,.24); }

/* A photo card mid-swipe, breaking out of the frame. */
/* Geometry lifted from App Store slide 02 so the card sits where it does there:
   24.8% down the phone, -30.9% of its width to the left, 78.8% wide, -18deg. */
.device .flycard {
  position: absolute; left: -31%; top: 25%; width: 79%;
  border-radius: 20px; overflow: hidden; background: #fff;
  transform: rotate(-18deg);
  box-shadow: 0 26px 54px rgba(0,0,0,.34), 0 0 0 1px rgba(0,0,0,.05);
}
.device .flycard img { border-radius: 20px; }
.device .flycard .pill {
  position: absolute; top: 13px; left: 50%; transform: translateX(-50%);
  background: var(--kill); color: #fff; font-weight: 800; font-size: 15px;
  padding: 6px 15px; border-radius: 8px; white-space: nowrap;
}

/* ── the gesture diagram: drawn here, not screenshotted ──────────────── */
.gestures {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 52px;
}
.gesture {
  border: 3px solid var(--ink); border-radius: 18px; padding: 26px 22px;
  background: var(--bg); box-shadow: 7px 7px 0 var(--ink);
}
.gesture .glyph {
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 800; color: #fff; margin-bottom: 18px;
}
.gesture h3 { margin-bottom: 8px; }
.gesture p { font-size: 15.5px; color: var(--muted); line-height: 1.45; }

/* ── alternating feature rows ────────────────────────────────────────── */
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.row.flip .copy { order: 2; }
.row .lede { margin-top: 22px; }
.row ul { margin-top: 26px; list-style: none; display: grid; gap: 13px; }
.row ul li { padding-left: 30px; position: relative; font-size: 17px; color: var(--muted); }
.row ul li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 13px; height: 13px; border-radius: 3px; background: var(--crimson);
}
.row ul li b { color: var(--ink); font-weight: 800; }

/* ── OCR demo: real photo, real extracted text as live text ──────────── */
.ocr { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
.ocr figure {
  border: 3px solid var(--ink); border-radius: 20px; overflow: hidden;
  box-shadow: 9px 9px 0 var(--ink); background: var(--bg-alt);
}
.ocr figure img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ocr .out {
  border: 3px solid var(--ink); border-radius: 20px; padding: 30px;
  box-shadow: 9px 9px 0 var(--crimson); background: var(--bg);
  display: flex; flex-direction: column;
}
.ocr .out .cap {
  font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--crimson); margin-bottom: 16px;
}
.ocr .out pre {
  font: 15px/1.62 ui-monospace, "SF Mono", Menlo, monospace;
  white-space: pre-wrap; color: var(--ink); margin: 0; flex: 1;
}
.ocr .out .meta {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rule);
  font-size: 14px; color: var(--muted);
}

/* ── privacy statement ───────────────────────────────────────────────── */
.statement { background: #0b0b0d; color: #fff; border: 0; }
/* Pinned rather than tokenised: --ink flips to near-white in dark mode,
   which put white type on a white ground. */
.statement h2 { color: #fff; }
.statement .lede { color: rgba(255,255,255,.76); }
.statement .lede b { color: #fff; }
.statement .cols {
  margin-top: 52px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px;
}
.statement .cols div h3 { color: #fff; margin-bottom: 9px; }
.statement .cols div p { color: rgba(255,255,255,.68); font-size: 16px; }

/* ── footer ──────────────────────────────────────────────────────────── */
footer { padding: 66px 0 84px; }
.foot { display: flex; gap: 40px; align-items: flex-start; flex-wrap: wrap; }
.foot .about { max-width: 44ch; }
.foot .about p { margin-top: 12px; color: var(--muted); font-size: 15.5px; }
.foot nav { height: auto; }
.foot-links { margin-left: auto; display: flex; gap: 60px; }
.foot-links div h4 {
  font-size: 12.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.foot-links div a {
  display: block; color: var(--ink); text-decoration: none; font-size: 15.5px;
  font-weight: 600; margin-bottom: 10px;
}
.foot-links div a:hover { color: var(--crimson); }
.colophon {
  margin-top: 54px; padding-top: 24px; border-top: 1px solid var(--rule);
  font-size: 14px; color: var(--muted);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}

/* ── responsive ──────────────────────────────────────────────────────── */
@media (max-width: 940px) {
  .hero-grid, .row, .ocr { grid-template-columns: 1fr; gap: 44px; }
  .row.flip .copy { order: 0; }
  .gestures { grid-template-columns: repeat(2, 1fr); }
  .statement .cols { grid-template-columns: 1fr; gap: 26px; }
  nav .links { display: none; }
  section { padding: 76px 0; }
  .foot-links { margin-left: 0; gap: 44px; }
}
@media (max-width: 540px) {
  .gestures { grid-template-columns: 1fr; }
  .device .flycard { left: -20%; width: 74%; }
}

/* ── built-by mark, matching the other sites ─────────────────────────── */
.builtby {
  display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none; color: var(--muted);
  font-size: 14px; font-weight: 700;
}
.builtby img { width: 21px; height: 21px; opacity: .72; }
.builtby:hover { color: var(--crimson); }
.builtby:hover img { opacity: 1; }
@media (prefers-color-scheme: dark) {
  .builtby img { filter: invert(1); }
}

/* ── legal / prose pages ─────────────────────────────────────────────── */
.prose-head { padding: 84px 0 40px; }
.prose-head h1 { font-size: clamp(46px, 7vw, 92px); }
.prose-head .updated { margin-top: 18px; color: var(--muted); font-size: 16px; }
.prose { padding: 0 0 110px; border: 0; }
.prose .body { max-width: 68ch; }
.prose .callout {
  border: 3px solid var(--ink); border-radius: 18px; padding: 26px 28px;
  box-shadow: 8px 8px 0 var(--crimson); margin-bottom: 46px;
}
.prose .callout p { font-size: 19px; font-weight: 600; margin: 0; }
.prose h2 {
  font-size: 26px; text-transform: none; letter-spacing: -.02em;
  margin: 46px 0 12px; line-height: 1.25;
}
.prose p { color: var(--muted); font-size: 17.5px; margin-bottom: 14px; }
.prose p b, .prose li b { color: var(--ink); font-weight: 800; }
.prose ul { margin: 6px 0 18px; padding-left: 0; list-style: none; }
.prose ul li {
  position: relative; padding-left: 28px; margin-bottom: 10px;
  color: var(--muted); font-size: 17.5px;
}
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 12px; height: 12px; border-radius: 3px; background: var(--crimson);
}
.prose a { color: var(--crimson); font-weight: 700; }
.prose .back {
  display: inline-block; margin-top: 50px; font-weight: 800;
  text-decoration: none; color: var(--ink);
}
.prose .back:hover { color: var(--crimson); }
