/* FaceHush — expressive minimalism.
   Clean, scannable structure (bento cards, clear hierarchy) with expressive touches:
   bold grotesk display type, a serif "highlighter" accent, springy micro-interactions,
   light/dark mode and a viewer-chosen accent colour (see theme.js). */

/* ---------- Tokens ---------- */
:root {
  --accent: #ff5a36;
  --on-accent: #120a06;

  --bg: #f5f3ee;
  --surface: #ffffff;
  --surface2: #ecE9e2;
  --ink: #111014;
  --ink2: #4a4752;
  --mute: #686470;
  --line: #1110141a;
  --line-strong: #11101433;
  --accent-text: color-mix(in oklab, var(--accent) 64%, #000);
  --accent-soft: color-mix(in oklab, var(--accent) 16%, transparent);
  --shadow: 0 1px 2px #1110140d, 0 18px 40px -28px #11101466;
  --shadow-lift: 0 2px 4px #1110140f, 0 30px 60px -30px #11101488;
  --ok-bg: #e3f4ea; --ok-ink: #145c39;
  --warn-bg: #fdf0dc; --warn-ink: #7a4600;
  --err-bg: #fde4df; --err-ink: #8f2414;
  --spot: #111014; --spot-ink: #f3f1ec; --spot-2: #1c1b22; --spot-line: #ffffff1c; --spot-mute: #a5a1ae;

  --spring: cubic-bezier(.2, .8, .3, 1.35);
  --pop: cubic-bezier(.2, .9, .3, 1.25);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --r-lg: 28px; --r-md: 20px; --r-sm: 14px;
  --disp: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Geist", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.5L6 6l4.5-4.5' fill='none' stroke='%23111014' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b0f; --surface: #15151b; --surface2: #1e1e26; --ink: #f3f1ec; --ink2: #bdb9c6; --mute: #85818f;
    --line: #ffffff14; --line-strong: #ffffff2e; --accent-text: var(--accent); --accent-soft: color-mix(in oklab, var(--accent) 18%, transparent);
    --shadow: 0 1px 0 #ffffff0a inset, 0 18px 40px -28px #000c; --shadow-lift: 0 1px 0 #ffffff12 inset, 0 30px 60px -30px #000;
    --ok-bg: #12301f; --ok-ink: #8fe3b5; --warn-bg: #33250d; --warn-ink: #ffcf7f; --err-bg: #3a1610; --err-ink: #ffab9b;
    --spot: #15151b; --spot-2: #1e1e26;
    --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.5L6 6l4.5-4.5' fill='none' stroke='%23f3f1ec' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0b0f; --surface: #15151b; --surface2: #1e1e26; --ink: #f3f1ec; --ink2: #bdb9c6; --mute: #85818f;
  --line: #ffffff14; --line-strong: #ffffff2e; --accent-text: var(--accent); --accent-soft: color-mix(in oklab, var(--accent) 18%, transparent);
  --shadow: 0 1px 0 #ffffff0a inset, 0 18px 40px -28px #000c; --shadow-lift: 0 1px 0 #ffffff12 inset, 0 30px 60px -30px #000;
  --ok-bg: #12301f; --ok-ink: #8fe3b5; --warn-bg: #33250d; --warn-ink: #ffcf7f; --err-bg: #3a1610; --err-ink: #ffab9b;
  --spot: #15151b; --spot-2: #1e1e26;
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.5L6 6l4.5-4.5' fill='none' stroke='%23f3f1ec' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  color-scheme: dark;
}
/* viewer-chosen accents */
:root[data-accent="lime"] { --accent: #c4f03a; }
:root[data-accent="violet"] { --accent: #9d8cff; }
:root[data-accent="aqua"] { --accent: #2fe0cf; }
:root[data-accent="pink"] { --accent: #ff6fb1; }

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16.5px/1.6 var(--sans); overflow-x: hidden;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--accent-text); }
img, canvas { max-width: 100%; }
::selection { background: var(--accent); color: var(--on-accent); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }

/* the serif "highlighter" word used in headlines */
h1 i, h2 i, .site-foot .big i {
  font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em;
  padding: 0 .12em; margin: 0 -.04em; border-radius: .18em;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 88% / 100% 42%;
  color: inherit; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 22px/1 var(--disp); letter-spacing: -.04em; color: var(--ink); text-decoration: none; }
.brand svg { width: 32px; height: 32px; transition: transform .4s var(--spring); }
.brand svg .lg-bg { fill: var(--accent); }
.brand:hover { color: var(--ink); }
.brand:hover svg { transform: rotate(-12deg) scale(1.1); }
.site-nav { display: flex; gap: 2px; margin-left: auto; }
.site-nav a { color: var(--ink2); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 14px; border-radius: 999px; transition: background .15s, color .15s; }
.site-nav a:hover { background: var(--surface2); color: var(--ink); }
.site-nav a[aria-current] { background: var(--ink); color: var(--bg); }

/* appearance popover */
.custom { position: relative; }
.icon-btn {
  appearance: none; border: 0; cursor: pointer; width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center;
  background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: transform .3s var(--spring), background .2s;
}
.icon-btn:hover { transform: rotate(-20deg) scale(1.06); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn .dot { fill: var(--accent); }
.pop {
  position: absolute; right: 0; top: calc(100% + 10px); width: 268px; z-index: 60;
  background: var(--surface); color: var(--ink); border-radius: var(--r-md); padding: 16px; box-shadow: var(--shadow-lift), inset 0 0 0 1px var(--line);
  display: grid; gap: 10px; transform-origin: top right; animation: popin .35s var(--pop) both;
}
.pop-label { margin: 2px 0 0; color: var(--mute); font-size: 11px; }
.swatches { display: flex; gap: 10px; }
.sw {
  appearance: none; border: 0; cursor: pointer; width: 36px; height: 36px; border-radius: 50%; background: var(--sw);
  box-shadow: inset 0 0 0 1px #0002; transition: transform .25s var(--spring);
}
.sw:hover { transform: scale(1.12) rotate(-8deg); }
.sw[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--ink); }
.pop-note { margin: 4px 0 0; font-size: 12.5px; color: var(--mute); line-height: 1.4; }

@media (max-width: 820px) {
  .site-head .wrap { flex-wrap: wrap; gap: 0 10px; padding-top: 8px; }
  .custom { margin-left: auto; }
  .site-nav { order: 3; width: 100%; overflow-x: auto; margin: 6px -20px 0; padding: 2px 20px 10px; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { white-space: nowrap; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); margin-right: 6px; }
}

/* ---------- Buttons ---------- */
.pill, .btn {
  appearance: none; border: 0; font: 600 15px/1 var(--sans); color: var(--ink); cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 12px 20px; min-height: 44px;
  background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong);
  transition: transform .22s var(--spring), box-shadow .2s, background .15s, color .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
.btn:active { transform: translateY(0) scale(.96); }
.btn.primary { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.btn.primary:hover { color: var(--on-accent); box-shadow: 0 14px 30px -12px color-mix(in oklab, var(--accent) 80%, transparent); }
.btn.lg { font-size: 17px; padding: 16px 30px; min-height: 56px; }
.btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.btn .arr { transition: transform .25s var(--spring); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- Hero ---------- */
.tool-hero { padding: 48px 0 12px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; }
.has-photo .hero-grid { grid-template-columns: 1fr; }
.has-photo .intro h1 { font-size: clamp(32px, 4vw, 52px); margin-bottom: 0; }
.has-photo .intro .lede, .has-photo .intro .tags, .has-photo .intro .kicker { display: none; }
.crumbs { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); margin-bottom: 18px; }
.crumbs a { color: var(--mute); text-decoration: none; }
.crumbs a:hover { color: var(--accent-text); }
.kicker {
  display: inline-flex; gap: 10px; align-items: center; color: var(--ink2); margin: 0 0 22px;
  background: var(--surface); padding: 7px 14px 7px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line);
}
.kicker b { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); display: block; box-shadow: 0 0 0 4px var(--accent-soft); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px transparent; } }
h1 {
  font-family: var(--disp); font-weight: 800; letter-spacing: -.045em; line-height: .95;
  font-size: clamp(44px, 7vw, 92px); margin: 0 0 24px; text-wrap: balance;
}
.lede { font-size: 19px; color: var(--ink2); max-width: 520px; margin: 0 0 26px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tags li { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink2); background: var(--surface); border-radius: 999px; padding: 6px 12px 6px 10px; box-shadow: inset 0 0 0 1px var(--line); }
.tags li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23120a06' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.hero.solo { padding: 64px 0 8px; max-width: 880px; }

/* ---------- Drop zone ---------- */
.drop {
  position: relative; display: grid; justify-items: center; text-align: center; gap: 12px;
  background: var(--surface); border-radius: var(--r-lg); padding: 22px 22px 24px; box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
  transition: transform .35s var(--spring), box-shadow .3s;
}
.drop::after { content: ""; position: absolute; inset: 10px; border-radius: 20px; border: 2px dashed transparent; pointer-events: none; transition: border-color .2s; }
.drop:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift), inset 0 0 0 1px var(--line); }
.drop.over { transform: scale(1.02) rotate(-.5deg); }
.drop.over::after { border-color: var(--accent); }
.drop .big { font: 800 28px/1 var(--disp); letter-spacing: -.04em; margin: 8px 0 0; }
.drop .note { font-family: var(--mono); font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--mute); margin: 0; }
.drop .safe { margin: 2px 0 0; font-size: 14px; color: var(--ink2); }
.drop .safe svg { width: 15px; height: 15px; color: var(--accent-text); vertical-align: -2px; margin-right: 6px; }

/* animated demo: a scanner sweeps a real group photo and hides each detected face.
   Covers sit at the boxes FaceHush's detector returned (--x/--y/--w/--h, % of the photo).
   Blur and pixelate stretch a 48px copy of the same photo, so each face shows the real effect. */
.demo { position: relative; width: 100%; aspect-ratio: 1100 / 734; border-radius: 18px; overflow: hidden; background: #2f4a2a; }
.demo img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.demo .cov {
  position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: calc(var(--w) * 1%); height: calc(var(--h) * 1%);
  border-radius: 50%; border: 2.5px solid var(--accent); opacity: 0; transform: scale(.4);
  background: url("demo-friends-tiny.webp") no-repeat;
  background-size: calc(10000% / var(--w)) calc(10000% / var(--h));
  background-position: calc(var(--x) / (100 - var(--w)) * 100%) calc(var(--y) / (100 - var(--h)) * 100%);
}
[data-mode="pixelate"] .demo .cov { border-radius: 8px; image-rendering: pixelated; }
[data-mode="solid"] .demo .cov { border-radius: 8px; background: #111014; }
.demo .scan { position: absolute; top: 0; bottom: 0; width: 3px; left: -4%; background: var(--accent); box-shadow: 0 0 22px 6px color-mix(in oklab, var(--accent) 60%, transparent); animation: scan 5s var(--ease) infinite; }
/* reveal each face as the scan line passes its centre (x ≈ 45%, 66%, 78%) */
.demo .cov:nth-of-type(1) { animation: hide 5s var(--pop) infinite; }
.demo .cov:nth-of-type(2) { animation: hide2 5s var(--pop) infinite; }
.demo .cov:nth-of-type(3) { animation: hide3 5s var(--pop) infinite; }
@keyframes scan { 0% { left: -4%; opacity: 1; } 55% { left: 104%; opacity: 1; } 56%, 100% { left: 104%; opacity: 0; } }
@keyframes hide { 0%, 20% { opacity: 0; transform: scale(.4); } 26%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: scale(.9); } }
@keyframes hide2 { 0%, 34% { opacity: 0; transform: scale(.4); } 40%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: scale(.9); } }
@keyframes hide3 { 0%, 41% { opacity: 0; transform: scale(.4); } 47%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: scale(.9); } }
.demo .found {
  position: absolute; left: 12px; top: 12px; font: 600 12px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase;
  background: #111014d9; color: #f3f1ec; padding: 7px 10px; border-radius: 999px; display: inline-flex; gap: 7px; align-items: center;
}
.demo .found::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ---------- Proof strip (facts, not claims) ---------- */
.proof { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.proof li { background: var(--surface); border-radius: var(--r-md); padding: 18px 20px; box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 2px; transition: transform .3s var(--spring); }
.proof li:hover { transform: translateY(-3px); }
.proof b { font: 800 34px/1 var(--disp); letter-spacing: -.04em; }
.proof b em { font-style: normal; color: var(--accent-text); }
.proof span { color: var(--ink2); font-size: 14.5px; line-height: 1.4; }
.has-photo .proof { display: none; }

/* ---------- Workspace ---------- */
.workspace { scroll-margin-top: 80px; display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; margin-top: 20px; animation: rise .5s var(--pop) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.stage { position: relative; background: var(--surface2); border-radius: 22px; overflow: hidden; line-height: 0; box-shadow: var(--shadow); border: 5px solid var(--surface); }
.stage canvas { width: 100%; height: auto; display: block; }
.overlay { position: absolute; inset: 0; cursor: crosshair; touch-action: pan-y pinch-zoom; }
.overlay.adding { touch-action: none; box-shadow: inset 0 0 0 4px var(--accent); }
.region { position: absolute; padding: 0; margin: 0; background: transparent; cursor: pointer; border: 2.5px solid var(--accent); box-shadow: 0 0 0 1.5px #fff8; transition: transform .2s var(--spring); }
.region:hover { transform: scale(1.04); }
.region.ellipse { border-radius: 50%; }
.region.rect { border-radius: 8px; }
.region.whole { pointer-events: none; border: 0; box-shadow: none; } /* toggled by the Whole image button; lets you still draw boxes on top */
.region.whole .del { display: none; }
.region.off { border: 2.5px dashed #fff; background: color-mix(in oklab, var(--accent) 14%, transparent); box-shadow: 0 0 0 1.5px #0006; }
.overlay.fresh .region { animation: popin .55s var(--pop) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes popin { from { opacity: 0; transform: scale(.3); } }
.overlay.hide-boxes .region.on { border-color: transparent; box-shadow: none; }
.region .del { position: absolute; top: -11px; right: -11px; width: 26px; height: 26px; border-radius: 50%; background: #111014; color: #fff; font: 700 16px/23px var(--sans); text-align: center; border: 2px solid #fff; }
.draft { position: absolute; border: 2.5px dashed var(--accent); background: color-mix(in oklab, var(--accent) 16%, transparent); border-radius: 8px; pointer-events: none; }

.panel { background: var(--surface); border-radius: 22px; padding: 20px; display: grid; gap: 18px; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); position: sticky; top: 84px; }
.status { margin: 0; font-size: 15px; line-height: 1.45; min-height: 2.9em; padding: 12px 14px; border-radius: 14px; background: var(--surface2); font-weight: 500; }
.status:empty { display: none; }
.status[data-kind="ok"] { background: var(--ok-bg); color: var(--ok-ink); }
.status[data-kind="warn"] { background: var(--warn-bg); color: var(--warn-ink); }
.status[data-kind="error"] { background: var(--err-bg); color: var(--err-ink); }
.status[data-kind="busy"]::before { content: "✦"; display: inline-block; margin-right: 8px; color: var(--accent-text); animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > span, .field legend { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); padding: 0; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; background: var(--surface2); padding: 4px; border-radius: 999px; }
.seg .btn { padding: 9px 6px; min-height: 38px; font-size: 14px; box-shadow: none; }
.seg .btn:hover { transform: none; background: var(--line); }
.seg .btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.strength-row { display: flex; align-items: center; gap: 12px; }
.strength-row input { flex: 1; accent-color: var(--accent); height: 22px; }
.strength-val { font: 700 15px var(--mono); width: 2ch; text-align: right; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.check input { accent-color: var(--accent); width: 18px; height: 18px; }
.actions { display: grid; gap: 8px; }
.actions .row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.actions .btn.primary { font-size: 16px; min-height: 52px; position: relative; }
select {
  appearance: none; -webkit-appearance: none; font: 600 15px/1 var(--sans); color: var(--ink); cursor: pointer;
  min-height: 52px; padding: 0 38px 0 18px; border: 0; border-radius: 999px;
  background: var(--surface) var(--chev) no-repeat right 16px center / 12px 8px;
  box-shadow: inset 0 0 0 1.5px var(--line-strong); transition: box-shadow .2s;
}
select:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.two .btn { padding-inline: 10px; }
.hint { font-size: 13.5px; color: var(--mute); margin: 0; }

.spark { position: fixed; z-index: 200; pointer-events: none; color: var(--accent); font-size: 18px; animation: spark .9s var(--pop) forwards; }
@keyframes spark { to { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(180deg) scale(.6); } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .workspace { grid-template-columns: 1fr; }
  .panel { position: static; }
  .tool-hero { padding-top: 28px; }
  .proof { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .lede { font-size: 17px; margin-bottom: 0; }
  .tool-hero .tags { display: none; } /* same facts sit in the proof strip; keeps the drop zone near the fold */
  .tool-hero .kicker { margin-bottom: 16px; }
  .tool-hero h1 { font-size: clamp(40px, 12vw, 52px); margin-bottom: 14px; }
  .hero-grid { gap: 20px; }
  .drop .btn.lg { width: 100%; }
  .content > .steps li { padding: 18px 18px 18px 64px; }
  .content > .steps li::before { left: 18px; top: 18px; font-size: 22px; }
  .proof { gap: 10px; margin-top: 28px; }
  .proof li { padding: 16px; }
  .proof b { font-size: 28px; }
}

/* ---------- Content ---------- */
.content { padding-top: 24px; }
.content > * { max-width: 760px; }
.content > .wide { max-width: none; }
.content h2 { font-family: var(--disp); font-weight: 800; font-size: clamp(30px, 4.4vw, 50px); line-height: 1.02; letter-spacing: -.04em; margin: 88px 0 22px; text-wrap: balance; }
.content h3 { font-family: var(--disp); font-weight: 700; font-size: 24px; letter-spacing: -.03em; line-height: 1.15; margin: 40px 0 14px; }
.content ul { padding-left: 0; list-style: none; }
.content ul li { position: relative; padding-left: 28px; margin: 10px 0; }
.content ul li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); transform: rotate(45deg); }
.answer { background: var(--surface); border-radius: var(--r-md); padding: 22px 24px; margin: 0; box-shadow: inset 0 0 0 1px var(--line); border-left: 5px solid var(--accent); font-size: 18px; line-height: 1.55; }
.content .answer + *, .content .steps + p, .content .table-wrap + p, .content .faq + p { margin-top: 24px; }
.answer::before { content: "Quick answer"; display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 8px; font-weight: 700; }

/* steps: card row on wide screens */
.steps { padding: 0; margin: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.content > .steps { max-width: none; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 24px; }
.steps li { counter-increment: s; position: relative; padding: 60px 20px 20px; background: var(--surface); border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); transition: transform .3s var(--spring), box-shadow .3s; }
.steps li:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift), inset 0 0 0 1px var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 20px; top: 18px; font: 800 26px/1 var(--disp); letter-spacing: -.04em; color: var(--accent-text); }
.steps li strong { display: block; font-family: var(--disp); font-size: 19px; letter-spacing: -.02em; margin-bottom: 4px; }

/* bento */
.bento { display: grid; gap: 14px; grid-template-columns: repeat(6, 1fr); margin-top: 24px; }
.tile { position: relative; overflow: hidden; background: var(--surface); border-radius: var(--r-lg); padding: 26px; box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 6px; transition: transform .35s var(--spring), box-shadow .3s; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift), inset 0 0 0 1px var(--line); }
.tile h3 { margin: auto 0 0; font-size: 26px; }
.tile p { margin: 0; color: var(--ink2); }
.tile .viz { margin-bottom: 22px; }
.t-a { grid-column: span 4; background: var(--accent); color: var(--on-accent); box-shadow: none; }
.t-a p { color: color-mix(in oklab, var(--on-accent) 78%, transparent); }
.t-a .stat { font: 800 clamp(96px, 14vw, 168px)/.8 var(--disp); letter-spacing: -.06em; margin: 0 0 4px; }
.t-a .stat-label { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.t-b { grid-column: span 2; }
.t-c { grid-column: span 3; }
.t-d { grid-column: span 3; }
.faces-viz { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.faces-viz i { aspect-ratio: 1; border-radius: 50%; background: var(--surface2); position: relative; }
.faces-viz i.hit { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.tile:hover .faces-viz i.hit { animation: popin .5s var(--pop) both; animation-delay: calc(var(--i) * 50ms); }
.exif-viz { font: 500 13px/1.9 var(--mono); background: var(--surface2); border-radius: var(--r-sm); padding: 12px 14px; color: var(--ink2); }
.exif-viz div { display: flex; justify-content: space-between; gap: 12px; }
.exif-viz s { text-decoration-color: var(--accent); text-decoration-thickness: 2px; opacity: .7; }
.exif-viz .ok { color: var(--accent-text); font-weight: 700; }
.chips-viz { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-viz span { font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 999px; background: var(--surface2); transition: transform .3s var(--spring); }
.chips-viz span:nth-child(odd) { transform: rotate(-3deg); }
.chips-viz span:nth-child(even) { transform: rotate(2deg); }
.tile:hover .chips-viz span { transform: none; }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .t-a { grid-column: 1 / -1; }
  .t-b, .t-c, .t-d { grid-column: span 1; }
  .t-d { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .t-b, .t-c, .t-d { grid-column: auto; }
  .tile { padding: 22px; }
}

.table-wrap { overflow-x: auto; background: var(--surface); border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); padding: 4px 20px; }
.content > .table-wrap { max-width: 900px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 520px; }
th, td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.45; }
tbody tr:last-child td { border-bottom: 0; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
thead th { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); font-weight: 500; white-space: nowrap; vertical-align: bottom; }
thead th:nth-child(2) { color: var(--accent-text); font-weight: 700; }
tbody td:first-child { font-weight: 600; }

.faq { display: grid; gap: 8px; }
.faq details { background: var(--surface); border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--line); padding: 0 20px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.faq summary { font: 700 18px/1.35 var(--disp); letter-spacing: -.02em; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface2); font: 500 20px/1 var(--sans); transition: transform .3s var(--spring), background .2s, color .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--accent); color: var(--on-accent); }
.faq details p { margin: 0; padding: 0 0 18px; color: var(--ink2); }

.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 16px; }
.content > .cards { max-width: none; }
.card { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border-radius: var(--r-md); padding: 20px; text-decoration: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); transition: transform .3s var(--spring), box-shadow .3s; }
.card:nth-child(odd):hover { transform: translateY(-4px) rotate(-1deg); }
.card:nth-child(even):hover { transform: translateY(-4px) rotate(1deg); }
.card:hover { color: var(--ink); box-shadow: var(--shadow-lift), inset 0 0 0 1px var(--line); }
.card .emo { font-size: 26px; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--surface2); margin-bottom: 10px; transition: transform .35s var(--spring); }
.card:hover .emo { transform: rotate(-10deg) scale(1.08); }
.card strong { font: 700 20px/1.2 var(--disp); letter-spacing: -.03em; }
.card span { color: var(--ink2); font-size: 15px; }
.updated { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); margin-top: 56px; }
.callout { background: var(--accent); color: var(--on-accent); border-radius: var(--r-md); padding: 18px 22px; font-weight: 500; }
.callout a { color: inherit; }

/* spotlight section (dark in light mode, raised surface in dark mode) */
.night { max-width: none !important; background: var(--spot); color: var(--spot-ink); border-radius: 36px; padding: 48px clamp(20px, 5vw, 56px); margin: 88px 0 0; position: relative; overflow: hidden; box-shadow: inset 0 0 0 1px var(--spot-line); }
.night::before { content: ""; position: absolute; width: 420px; height: 420px; right: -140px; top: -160px; border-radius: 50%; background: var(--accent); filter: blur(120px); opacity: .32; pointer-events: none; }
.night > * { position: relative; max-width: 860px; }
.night h2 { color: var(--spot-ink); margin-top: 0; }
.night > :last-child { margin-bottom: 0; }
.night .answer { background: var(--spot-2); color: var(--spot-ink); box-shadow: inset 0 0 0 1px var(--spot-line); }
.night .answer::before { color: var(--accent); }
.night .table-wrap { background: var(--spot-2); box-shadow: inset 0 0 0 1px var(--spot-line); margin-top: 24px; }
.night th, .night td { border-bottom-color: var(--spot-line); }
.night thead th { color: var(--spot-mute); }
.night thead th:nth-child(2) { color: var(--spot-mute); font-weight: 500; }
.night a { color: var(--spot-ink); }
@media (max-width: 600px) {
  .night { border-radius: 26px; padding: 32px 18px; margin-inline: -6px; }
  .answer { font-size: 17px; padding: 18px 18px 18px 16px; }
  .table-wrap { padding: 4px 14px; }
}

/* ---------- More tools from the maker ---------- */
.more-tools { margin-top: 88px; }
.more-tools h2 { color: var(--mute); font-weight: 500; font-size: 11.5px; margin: 0 0 14px; }
.more-tools-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.maker-card {
  display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: start; padding: 18px 20px;
  background: var(--surface); color: var(--ink); text-decoration: none; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .3s var(--spring), box-shadow .3s;
}
.maker-card:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-lift), inset 0 0 0 1px var(--line); }
.maker-card svg { width: 48px; height: 48px; transition: transform .35s var(--spring); }
.maker-card:hover svg { transform: rotate(-10deg) scale(1.06); }
.maker-body { display: grid; gap: 4px; min-width: 0; }
.maker-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.maker-card strong { font: 700 20px/1.2 var(--disp); letter-spacing: -.03em; }
.maker-tag { font-size: 10.5px; color: var(--accent-text); font-weight: 700; }
.maker-text { color: var(--ink2); font-size: 15px; line-height: 1.5; }
.maker-go { color: var(--accent-text); font-size: 20px; line-height: 1.2; transition: transform .25s var(--spring); }
.maker-card:hover .maker-go { transform: translateX(4px); }

/* ---------- Footer ---------- */
.site-foot { margin-top: 96px; padding: 0 0 64px; font-size: 15px; color: var(--ink2); }
.site-foot .wrap { border-top: 1px solid var(--line); padding-top: 56px; }
.site-foot .big { font: 800 clamp(40px, 7vw, 84px)/.95 var(--disp); letter-spacing: -.05em; color: var(--ink); margin: 0 0 48px; max-width: 900px; text-wrap: balance; }
.site-foot .cols { display: grid; gap: 28px; grid-template-columns: 1.4fr repeat(3, 1fr); }
.site-foot h2 { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); margin: 0 0 12px; font-weight: 500; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-foot a { color: var(--ink2); text-decoration: none; }
.site-foot a:hover { color: var(--accent-text); }
.site-foot .foot-blurb { margin: 12px 0 0; max-width: 300px; }
@media (max-width: 760px) { .site-foot .cols { grid-template-columns: 1fr 1fr; } .site-foot .cols > div:first-child { grid-column: 1 / -1; } }
.lt-badge { display: inline-block; margin-top: 16px; }
.lt-badge img { display: block; height: auto; max-width: 100%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .demo .cov { opacity: 1; transform: none; }
  .demo .scan { display: none; }
}

/* ---------- Feedback chat launcher ---------- */
.chat-launch { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: grid; justify-items: end; gap: 12px; transition: opacity .2s, transform .3s var(--spring); }
.chat-launch.is-open { opacity: 0; pointer-events: none; transform: scale(.8); }
.chat-btn {
  appearance: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--bg); font: 600 15px var(--sans); padding: 12px 18px 12px 14px; border-radius: 999px;
  box-shadow: 0 16px 36px -14px #000c; transition: transform .25s var(--spring), background .2s, color .2s;
}
.chat-btn:hover { transform: translateY(-3px) rotate(-2deg); background: var(--accent); color: var(--on-accent); }
.chat-btn:active { transform: scale(.95); }
.chat-ico { font-size: 20px; line-height: 1; display: inline-block; transition: transform .35s var(--spring); }
.chat-btn:hover .chat-ico { transform: rotate(-14deg) scale(1.15); }
.chat-tease {
  position: relative; max-width: 260px; background: var(--surface); color: var(--ink); border-radius: 20px 20px 6px 20px;
  padding: 14px 16px; box-shadow: var(--shadow-lift), inset 0 0 0 1px var(--line); animation: popin .5s var(--pop) both; cursor: pointer;
}
.chat-tease p { margin: 0; font-size: 14.5px; line-height: 1.45; padding-right: 10px; }
.chat-tease b { color: var(--accent-text); }
.chat-x { position: absolute; top: 6px; right: 8px; border: 0; background: none; font-size: 18px; color: var(--mute); cursor: pointer; line-height: 1; }
.chat-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 210; background: var(--ink); color: var(--bg);
  padding: 12px 20px; border-radius: 999px; font-weight: 600; box-shadow: var(--shadow-lift); animation: rise .45s var(--pop) both; transition: opacity .5s;
}
.chat-toast.out { opacity: 0; }
@media (max-width: 600px) { .chat-label { display: none; } .chat-btn { padding: 14px; } .chat-launch { right: 14px; bottom: 14px; } }

/* ---------- Cookie consent ---------- */
.consent {
  position: fixed; left: 20px; bottom: 20px; z-index: 95; max-width: 380px; background: var(--surface); color: var(--ink);
  border-radius: 22px; padding: 18px 20px; box-shadow: var(--shadow-lift), inset 0 0 0 1px var(--line); animation: rise .45s var(--pop) both;
}
.consent p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.5; }
.consent .consent-title { font: 700 18px var(--disp); letter-spacing: -.02em; margin-bottom: 6px; }
.consent a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.consent-actions .btn { justify-content: center; }
@media (max-width: 600px) {
  .consent { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .consent-open .chat-launch { display: none; }
}

/* ---------- Mobile app shell ----------
   Under 760px the site behaves like an installed app: compact top bar, a bottom tab
   bar in thumb reach, safe-area padding for notched phones, and the Download button
   pinned above the tabs while a photo is open. */
.tabbar, .fb-btn { display: none; }
@media (max-width: 760px) {
  html { -webkit-tap-highlight-color: transparent; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .site-head { padding-top: env(safe-area-inset-top); }
  .site-head .wrap { flex-wrap: nowrap; min-height: 56px; padding-top: 0; }
  .site-head .site-nav { display: none; }
  .brand { font-size: 20px; }
  .brand svg { width: 30px; height: 30px; }
  .icon-btn { width: 40px; height: 40px; }
  .crumbs { display: none; }

  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    display: grid; grid-template-columns: repeat(5, 1fr);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    background: color-mix(in oklab, var(--bg) 84%, transparent);
    backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
    border-top: 1px solid var(--line);
  }
  .tabbar a {
    display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 54px;
    text-decoration: none; color: var(--mute); font: 600 11px/1.1 var(--sans); letter-spacing: .01em;
    -webkit-user-select: none; user-select: none; touch-action: manipulation;
  }
  .tab-ico { width: 58px; height: 32px; border-radius: 999px; display: grid; place-items: center; transition: background .25s, color .25s, transform .3s var(--spring); }
  .tab-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tab-ico .fill { fill: currentColor; stroke: none; opacity: .9; }
  .tabbar a[aria-current] { color: var(--ink); }
  .tabbar a[aria-current] .tab-ico { background: var(--accent); color: var(--on-accent); animation: tabpop .45s var(--pop) both; }
  .tabbar a:active .tab-ico { transform: scale(.86); }
  @keyframes tabpop { from { transform: scaleX(.5); } }

  /* feedback moves into the top bar, so nothing floats over the content */
  .custom { margin-left: 0; }
  .fb-btn { display: grid; margin-left: auto; }
  .chat-launch { display: none; }
  .consent { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .chat-toast { bottom: calc(92px + env(safe-area-inset-bottom)); }

  /* photo open: pin Download above the tabs, hide the chat bubble */
  .workspace { animation: none; }
  .stage { animation: rise .5s var(--pop) both; }
  .has-photo .actions .row {
    position: fixed; z-index: 79; left: 0; right: 0; bottom: calc(66px + env(safe-area-inset-bottom));
    padding: 10px 16px; background: color-mix(in oklab, var(--bg) 84%, transparent);
    backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
    border-top: 1px solid var(--line);
  }
  .has-photo .panel { margin-bottom: 76px; }
}
