/* FilmSnap web: shared styles.
   Darkroom dark by default, warm paper in light mode. System type only, no external assets. */

:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;

  /* brand */
  --orange: #E85D04;
  --amber: #F39C12;
  --grad: linear-gradient(135deg, #E85D04 0%, #F39C12 100%);
  --on-grad: #1A0D03;

  /* surfaces (dark) */
  --bg: #0C0B0A;
  --bg-raise: #161412;
  --bg-sunk: #080706;
  --bg-tint: rgba(232, 93, 4, 0.08);
  --line: rgba(255, 244, 232, 0.12);
  --line-strong: rgba(255, 244, 232, 0.2);
  --img-edge: rgba(255, 255, 255, 0.1);
  --text: #F6F1EB;
  --muted: #B3AAA0;
  --accent-text: #FF9A4D;   /* 8:1 on --bg */
  --focus: #FFB067;
  --glass: rgba(12, 11, 10, 0.72);
  --panel: #0C0B0A;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 12px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.25), 0 24px 48px -12px rgba(0, 0, 0, 0.55), 0 48px 96px -24px rgba(0, 0, 0, 0.5);

  /* scale */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --r-xs: 8px;
  --r-s: 12px;
  --r-m: 18px;
  --r-l: 28px;
  --r-pill: 999px;
  --gutter: clamp(16px, 5vw, 40px);
  --maxw: 1120px;
  --header-h: 64px;

  /* motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-quick: 150ms;
  --dur-fast: 250ms;
  --dur-slow: 400ms;
  --dur-reveal: 700ms;

  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #FBF9F6;
    --bg-raise: #FFFFFF;
    --bg-sunk: #F3EFE9;
    --bg-tint: rgba(232, 93, 4, 0.07);
    --line: rgba(40, 28, 16, 0.13);
    --line-strong: rgba(40, 28, 16, 0.22);
    --img-edge: rgba(0, 0, 0, 0.1);
    --text: #1C1814;
    --muted: #5F574E;        /* 6.9:1 on --bg */
    --accent-text: #B13F00;  /* 5.9:1 on --bg */
    --focus: #B13F00;
    --glass: rgba(251, 249, 246, 0.8);
    --panel: #FBF9F6;
    --shadow-sm: 0 1px 2px rgba(60, 35, 10, 0.08), 0 4px 12px -2px rgba(60, 35, 10, 0.08);
    --shadow-lg: 0 2px 6px rgba(60, 35, 10, 0.06), 0 24px 48px -12px rgba(60, 35, 10, 0.16), 0 48px 96px -24px rgba(60, 35, 10, 0.14);
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent-text); text-underline-offset: 0.2em; text-decoration-thickness: 1px; transition: text-decoration-color var(--dur-quick); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--orange); color: #fff; }

.skip {
  position: absolute; left: 12px; top: 12px; z-index: 100; transform: translateY(-160%);
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: var(--r-s); text-decoration: none; font-weight: 600;
  transition: transform var(--dur-fast) var(--ease-out);
}
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }

/* ---------- type ---------- */
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.03em; line-height: 1.06; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.6vw, 5rem); letter-spacing: -0.045em; line-height: 1.02; }
h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); letter-spacing: -0.038em; }
h3 { font-size: 1.25rem; letter-spacing: -0.018em; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }
.lede { font-size: clamp(1.125rem, 1.9vw, 1.3125rem); color: var(--muted); max-width: 34em; line-height: 1.47; letter-spacing: -0.01em; }
.section-head { max-width: 46rem; display: grid; gap: var(--s-4); margin-bottom: clamp(36px, 6vw, 64px); }
/* large sans display type has a visible side bearing; pull it back to the text edge */
h1, h2 { margin-inline-start: -0.04em; }

section { padding-block: clamp(72px, 11vw, 144px); }

/* ---------- buttons & badge ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: var(--r-pill);
  font: inherit; font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; text-decoration: none; cursor: pointer;
  border: 0; color: var(--text); background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background-color var(--dur-quick), box-shadow var(--dur-quick), transform var(--dur-quick) var(--ease-out), filter var(--dur-quick);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--bg-raise); }
.btn:active { transform: scale(0.96); }
.btn-primary {
  background: var(--grad); color: var(--on-grad);
  box-shadow: 0 1px 2px rgba(232, 93, 4, 0.3), 0 8px 24px -8px rgba(232, 93, 4, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-primary:hover { background: var(--grad); filter: brightness(1.06); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }
/* extend small hit areas to 44px without changing the visual */
.btn-sm::after { content: ""; position: absolute; inset: -4px 0; }

.store-badge {
  display: inline-block; line-height: 0; border-radius: 12px; -webkit-tap-highlight-color: transparent;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast);
}
.store-badge svg { height: 56px; width: auto; }
.store-badge:focus-visible { outline-offset: 4px; border-radius: 14px; }
@media (hover: hover) { .store-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); } }
.store-badge:active { transform: scale(0.96); transition-duration: var(--dur-quick); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 0 transparent;
  transition: box-shadow var(--dur-fast);
  view-transition-name: site-header;
}
.site-header.scrolled, .site-header[data-open] { box-shadow: 0 1px 0 var(--line); }
/* the glass lives on a pseudo-element: a backdrop-filter on the header itself would also filter the mobile menu panel */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
.site-header[data-open]::before { background: var(--panel); }
.bar { display: flex; align-items: center; gap: var(--s-4); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.125rem; letter-spacing: -0.022em; margin-right: auto; border-radius: var(--r-xs); }
.brand img { width: 30px; height: 30px; border-radius: 7px; box-shadow: 0 0 0 1px var(--img-edge); }
.nav-panel { display: contents; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: var(--r-pill);
  color: var(--muted); text-decoration: none; font-size: 0.9375rem; font-weight: 500; letter-spacing: -0.01em;
  transition: color var(--dur-quick), background-color var(--dur-quick);
}
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); }

.lang { display: flex; gap: 2px; padding: 3px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line); }
.lang a {
  position: relative; min-width: 36px; min-height: 30px; display: grid; place-items: center; padding: 0 8px;
  border-radius: var(--r-pill); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.01em; color: var(--muted); text-decoration: none;
  transition: color var(--dur-quick), background-color var(--dur-quick);
}
.lang a::after { content: ""; position: absolute; inset: -7px -1px; }
.lang a:hover { color: var(--text); background: var(--line); }
.lang a[aria-current="true"] { background: var(--text); color: var(--bg); }

.menu-btn {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; padding: 0;
  border: 0; border-radius: var(--r-pill); background: transparent; color: var(--text); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.menu-btn span, .menu-btn::before, .menu-btn::after {
  content: ""; grid-area: 1 / 1; width: 18px; height: 1.75px; border-radius: 2px; background: currentColor;
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-quick);
}
.menu-btn::before { transform: translateY(-5px); }
.menu-btn::after { transform: translateY(5px); }
.menu-btn span { opacity: 0; }
.menu-btn[aria-expanded="true"]::before { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"]::after { transform: rotate(-45deg); }

@media (max-width: 899px) {
  .nav-panel {
    position: absolute; top: 100%; left: 0; right: 0; display: grid; gap: var(--s-5); align-content: start;
    padding: var(--s-2) var(--gutter) var(--s-6); background: var(--panel); box-shadow: 0 1px 0 var(--line), 0 24px 40px -16px rgba(0, 0, 0, 0.35);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    opacity: 0; transform: translateY(-8px); visibility: hidden; pointer-events: none;
    transition: opacity var(--dur-quick) var(--ease-out), transform var(--dur-fast) var(--ease-out), visibility 0s linear var(--dur-fast);
  }
  .site-header[data-open] .nav-panel { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition-delay: 0s; }
  .nav-links { display: grid; gap: 0; }
  .nav-links a { min-height: 52px; padding: 0; border-radius: 0; font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; color: var(--text); box-shadow: 0 1px 0 var(--line); }
  .nav-panel .lang { justify-self: start; }
  .lang a { min-width: 48px; min-height: 40px; }
}
@media (min-width: 900px) { .menu-btn { display: none; } }

/* ---------- hero ---------- */
.hero { padding-block: clamp(40px, 8vw, 104px) clamp(64px, 9vw, 128px); position: relative; overflow-x: clip; }
.hero h1 { font-size: clamp(2.5rem, 6.2vw, 4.5rem); }
.hero h1 .l { display: inline-block; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(243, 156, 18, 0.2), rgba(232, 93, 4, 0.07) 55%, transparent 75%);
  pointer-events: none; z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent 140px, #000 420px); mask-image: linear-gradient(to bottom, transparent 0, transparent 140px, #000 420px);
}
.hero .wrap { position: relative; z-index: 1; display: grid; gap: var(--s-8); align-items: center; }
.hero-copy { display: grid; gap: var(--s-5); justify-items: start; }
.hero-copy .lede { margin-top: -4px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-5); align-items: center; margin-top: var(--s-2); }
.hero-note { color: var(--muted); font-size: 0.9375rem; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.4fr 0.6fr; } }
.hero-actions .btn { min-height: 56px; padding: 0 26px; }

.stage { position: relative; display: grid; place-items: center; min-height: 420px; }
.phone {
  position: relative; z-index: 2; width: min(290px, 72vw); aspect-ratio: 9 / 17.5;
  background: #050505; border-radius: 48px; padding: 11px;
  box-shadow: 0 0 0 1.5px #2b2724, 0 0 0 4px #0b0a09, var(--shadow-lg);
}
.screen { position: relative; height: 100%; border-radius: 37px; overflow: hidden; background: #111; color: #fff; display: flex; flex-direction: column; }
.island { position: absolute; top: 10px; left: 50%; width: 30%; height: 22px; transform: translateX(-50%); background: #000; border-radius: 20px; z-index: 3; }
.ui-photo { margin-top: 52px; aspect-ratio: 724 / 515; background: #000; }
.ui-photo img { width: 100%; height: 100%; object-fit: cover; }
.ui-panel { flex: 1; padding: 14px 14px 18px; display: flex; flex-direction: column; gap: 14px; background: #1b1a19; border-radius: 22px 22px 0 0; margin-top: 12px; }
.ui-chips { display: flex; gap: 8px; overflow: hidden; }
.chip { flex: none; width: 54px; text-align: center; font-size: 9px; line-height: 1.2; color: #cfc8c0; }
.chip i { display: block; height: 38px; border-radius: 9px; margin-bottom: 4px; background: url("assets/img/frame-positive.jpg") center / cover; }
.chip i.f-warm { filter: sepia(.55) saturate(1.25) contrast(.92) brightness(1.06); }
.chip i.f-vivid { filter: saturate(1.9) contrast(1.12); }
.chip i.f-bw { filter: grayscale(1) contrast(1.08); }
.chip.on i { outline: 2px solid var(--orange); outline-offset: 1px; }
.chip.on { color: #fff; font-weight: 600; }
.ui-row { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 8px; font-size: 10px; color: #cfc8c0; }
.ui-row:nth-child(2) { --v: 54%; }
.ui-row:nth-child(3) { --v: 62%; }
.ui-row:nth-child(4) { --v: 40%; }
.ui-track { position: relative; height: 4px; border-radius: 4px; background: #3a3734; }
.ui-track::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v, 50%); border-radius: 4px; background: var(--grad); }
.ui-track::after { content: ""; position: absolute; top: 50%; left: var(--v, 50%); width: 14px; height: 14px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); box-shadow: 0 1px 4px rgba(0,0,0,.5); }

.neg-card {
  position: absolute; z-index: 1; width: min(250px, 58vw); left: 0; top: 14%; transform: rotate(-9deg);
  padding: 22px 0; background: #2a1708; border-radius: 6px; box-shadow: var(--shadow-lg);
}
.neg-card::before, .neg-card::after {
  content: ""; position: absolute; left: 0; right: 0; height: 12px;
  background: repeating-linear-gradient(90deg, transparent 0 7px, #f6ede2 7px 16px, transparent 16px 23px);
  opacity: .88;
}
.neg-card::before { top: 5px; } .neg-card::after { bottom: 5px; }
@media (max-width: 520px) { .neg-card { left: -4%; } }

/* negative rendering from a positive: invert, then tint with the orange mask */
.negative { position: relative; background: #e8913c; isolation: isolate; overflow: hidden; }
.negative img { width: 100%; height: 100%; object-fit: cover; filter: invert(1) contrast(.78) brightness(1.08) saturate(.9); mix-blend-mode: multiply; }

/* one orchestrated entrance on load: copy rises line by line, the phone settles, the negative slides out from behind it */
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
@keyframes settle { from { opacity: 0; transform: translateY(32px) scale(0.97); } }
@keyframes neg-out { from { opacity: 0; transform: translate(70px, 16px) rotate(-2deg); } }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 800ms var(--ease-out) both; }
  .hero-copy > :nth-child(2) { animation-delay: 70ms; }
  .hero-copy > :nth-child(3) { animation-delay: 140ms; }
  .hero-copy > :nth-child(4) { animation-delay: 210ms; }
  .phone { animation: settle 1000ms var(--ease-out) 120ms both; }
  .neg-card { animation: neg-out 1100ms var(--ease-out) 420ms both; }
}

/* ---------- compare slider ---------- */
.compare-sec { background: var(--bg-sunk); }
.compare { margin: 0; display: grid; gap: var(--s-4); max-width: 920px; }
.compare-stage {
  position: relative; aspect-ratio: 724 / 515; border-radius: var(--r-l); overflow: hidden;
  background: #000; box-shadow: var(--shadow-lg); --pos: 50%;
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize; -webkit-tap-highlight-color: transparent;
}
.compare-stage::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--img-edge); pointer-events: none; }
.compare-stage > img, .compare-neg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-neg { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 10px rgba(0,0,0,.4); pointer-events: none; }
.handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M19 17l-7 7 7 7M29 17l7 7-7 7' fill='none' stroke='%231A0D03' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 48px;
  box-shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  transform: translate(-50%, -50%) scale(var(--knob, 1));
  transition: transform var(--dur-fast) var(--ease-out);
}
@media (hover: hover) { .compare-stage:hover { --knob: 1.06; } }
.compare-stage.dragging { --knob: 1.12; cursor: grabbing; }
.compare-tag {
  position: absolute; bottom: 14px; padding: 6px 12px; border-radius: var(--r-pill); background: rgba(12,11,10,.78); color: #fff;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.005em; pointer-events: none;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: opacity var(--dur-fast) var(--ease-out);
}
.compare-tag.l { left: 14px; } .compare-tag.r { right: 14px; }
.compare-stage[data-edge="neg"] .compare-tag.r, .compare-stage[data-edge="pos"] .compare-tag.l { opacity: 0; }
/* the range input stays for keyboard and assistive tech; pointer dragging is handled on the stage */
.compare-stage input[type=range] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none;
  -webkit-appearance: none; appearance: none; background: transparent;
}
.compare-stage:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 4px; }
.compare figcaption { color: var(--muted); font-size: 0.9375rem; max-width: 40em; }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-7); counter-reset: s; }
.steps li { display: grid; align-content: start; gap: var(--s-3); padding-top: var(--s-5); box-shadow: inset 0 1px 0 var(--line); counter-increment: s; }
.steps li::before {
  content: counter(s); font-size: 3.5rem; font-weight: 300; letter-spacing: -0.05em; line-height: 1; margin: 0 0 var(--s-2) -0.06em;
  color: var(--accent-text); font-variant-numeric: tabular-nums;
}
.steps p { color: var(--muted); max-width: 30em; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); } }

/* ---------- profiles ---------- */
.profiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-6) var(--s-3); }
@media (min-width: 760px) { .profiles { grid-template-columns: repeat(3, 1fr); gap: var(--s-7) var(--s-5); } }
.profile { margin: 0; display: grid; gap: var(--s-3); align-content: start; }
.profile .thumb { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-m); overflow: hidden; background: #000; }
.profile .thumb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--img-edge); pointer-events: none; }
.profile img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
@media (hover: hover) { .profile:hover img { transform: scale(1.04); } }
.profile figcaption { display: grid; gap: 2px; }
.profile h3 { font-size: 1.0625rem; letter-spacing: -0.012em; }
.profile p { color: var(--muted); font-size: 0.9375rem; line-height: 1.4; }
.fine { color: var(--muted); font-size: 0.875rem; margin-top: var(--s-6); max-width: 46em; }

/* ---------- lightbox teaser ---------- */
.lightbox-sec { background: var(--bg-sunk); }
.split { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 80px; } }
.split .copy { display: grid; gap: var(--s-5); justify-items: start; }
.mini-lb {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-l); background: #FFFDF9; overflow: hidden;
  box-shadow: 0 0 0 1px var(--img-edge), 0 0 90px rgba(255, 233, 200, .18), var(--shadow-lg);
  display: grid; place-items: center;
}
.mini-lb .strip { position: absolute; top: 22%; left: 8%; right: 8%; height: 26%; border: 2px dashed rgba(30, 20, 10, .42); border-radius: 6px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 10px 8px; }
.mini-lb .strip i { border: 2px solid rgba(30, 20, 10, .28); border-radius: 3px; }
.mini-lb .strip::before, .mini-lb .strip::after { content: ""; position: absolute; top: -14px; width: 12%; height: 22px; background: rgba(232, 93, 4, .5); border-radius: 2px; }
.mini-lb .strip::before { left: -2%; } .mini-lb .strip::after { right: -2%; }
.mini-lb .pill { position: absolute; bottom: 7%; left: 10%; right: 10%; height: 54px; border-radius: 18px; background: rgba(20, 16, 12, .88); display: grid; grid-template-rows: 1fr 1fr; gap: 9px; padding: 14px 18px; align-content: center; }
.mini-lb .pill b { display: block; height: 4px; border-radius: 4px; background: #4a443e; position: relative; }
.mini-lb .pill b::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 70%; border-radius: 4px; background: var(--grad); }
.mini-lb .pill b + b::before { width: 45%; }
.duo { display: flex; gap: var(--s-4); align-items: flex-start; padding: 18px 20px; border-radius: var(--r-m); background: var(--bg-raise); box-shadow: inset 0 0 0 1px var(--line); max-width: 34em; margin-top: var(--s-2); }
.duo svg { flex: none; width: 28px; height: 28px; margin-top: 2px; color: var(--accent-text); }
.duo p { color: var(--muted); font-size: 0.9375rem; }
.duo strong { color: var(--text); display: block; margin-bottom: 2px; letter-spacing: -0.01em; }

/* ---------- privacy ---------- */
.privacy-sec h2 { max-width: 14em; }
.facts { display: grid; gap: var(--s-6); margin-top: clamp(36px, 6vw, 64px); }
@media (min-width: 800px) { .facts { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.facts div { padding-top: var(--s-5); box-shadow: inset 0 2px 0 var(--orange); display: grid; gap: var(--s-2); align-content: start; }
.facts p { color: var(--muted); }

/* ---------- pricing ---------- */
.pricing-sec { background: var(--bg-sunk); }
.tiers { display: grid; gap: var(--s-3); margin-bottom: var(--s-7); }
@media (min-width: 760px) { .tiers { grid-template-columns: 1fr 1fr; gap: var(--s-5); } }
.tier { padding: 26px 26px 28px; border-radius: var(--r-l); background: var(--bg-raise); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: var(--s-4); align-content: start; }
.tier-premium { background: linear-gradient(var(--bg-tint), var(--bg-tint)), var(--bg-raise); box-shadow: inset 0 0 0 1px rgba(232, 93, 4, 0.35); }
.tier h3 { font-size: 1.375rem; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before {
  content: ""; position: absolute; left: 1px; top: 0.36em; width: 16px; height: 16px;
  background: var(--accent-text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tier:not(.tier-premium) .checks li::before { background: var(--muted); }
.plans { display: grid; gap: var(--s-3); align-items: stretch; }
@media (min-width: 860px) { .plans { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); } }
.plan {
  position: relative; display: grid; gap: 6px; align-content: start; padding: 28px 26px 30px;
  background: var(--bg-raise); box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--r-l);
}
.plan .name { font-weight: 600; color: var(--muted); }
.price { font-size: clamp(2.5rem, 5vw, 3.25rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: -0.005em; margin-left: 4px; }
.plan .detail { color: var(--muted); font-size: 0.9375rem; }
.plan.best {
  border: 2px solid transparent; box-shadow: 0 2px 4px rgba(232, 93, 4, .08), 0 24px 56px -16px rgba(232, 93, 4, .3);
  background: linear-gradient(var(--bg-raise), var(--bg-raise)) padding-box, var(--grad) border-box;
}
@media (min-width: 860px) { .plan.best { margin-block: -14px; padding-block: 40px; } }
.trial {
  display: inline-block; justify-self: start; margin-bottom: var(--s-2); padding: 5px 12px; border-radius: var(--r-pill);
  background: var(--grad); color: var(--on-grad); font-weight: 700; font-size: 0.8125rem;
}
.free-line { margin-top: var(--s-7); display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6); align-items: center; justify-content: space-between; }
.free-line p { max-width: 36em; font-weight: 500; }

/* ---------- FAQ ---------- */
.faq { max-width: 46rem; box-shadow: 0 -1px 0 var(--line); }
.faq details { box-shadow: 0 1px 0 var(--line); }
.faq summary {
  position: relative; list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--s-5); align-items: center;
  min-height: 64px; padding: 18px 0; font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3;
  transition: color var(--dur-quick); -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
@media (hover: hover) { .faq summary:hover { color: var(--accent-text); } }
.faq summary:focus-visible { outline-offset: 2px; }
.faq summary::after {
  content: ""; flex: none; width: 20px; height: 20px; background: var(--accent-text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 7.5l5 5 5-5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 7.5l5 5 5-5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--dur-fast) var(--ease-out);
}
.faq details[open]:not(.is-closing) summary::after { transform: scaleY(-1); }
.faq details > div { padding: 0 0 var(--s-5); color: var(--muted); max-width: 40em; }
.faq details > div p + p { margin-top: 10px; }

/* ---------- footer ---------- */
.site-footer { box-shadow: 0 -1px 0 var(--line); padding-block: var(--s-7) var(--s-8); color: var(--muted); font-size: 0.9375rem; }
.foot { display: grid; gap: var(--s-6); }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot .brand { margin: 0; justify-self: start; }
@media (min-width: 800px) { .foot { grid-template-columns: 1fr auto; align-items: center; } .foot .legal { grid-column: 1 / -1; } }

/* ---------- inner pages (support, legal, 404) ---------- */
.page-head { padding-block: clamp(48px, 9vw, 112px) clamp(28px, 4vw, 48px); display: grid; gap: var(--s-4); }
.prose { max-width: 44rem; padding-bottom: var(--s-9); }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 2.2em 0 0.5em; letter-spacing: -0.03em; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.8em 0 0.4em; font-size: 1.1875rem; }
.prose p, .prose li { color: var(--muted); }
.prose p { margin: 0 0 1em; }
.prose strong { color: var(--text); }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.35em; }
.prose li::marker { color: var(--accent-text); }
.prose .faq { margin: 1.25em 0 2em; }
.prose .updated { font-size: 0.9375rem; }
.contact { margin-top: var(--s-5); padding: 28px; border-radius: var(--r-l); background: var(--bg-raise); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: var(--s-2); justify-items: start; }
.contact a { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; }
.cards3 { display: grid; gap: var(--s-3); margin: 0 0 var(--s-8); }
@media (min-width: 800px) { .cards3 { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); } }
.cards3 > div { padding: 24px; border-radius: var(--r-m); background: var(--bg-raise); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: var(--s-2); align-content: start; }
.cards3 p { font-size: 0.9375rem; color: var(--muted); }

/* 404: an empty frame on a strip of film */
.nf { padding-block: clamp(48px, 10vw, 120px) var(--s-9); display: grid; gap: var(--s-7); }
.nf-strip { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 26px 10px; width: min(520px, 100%); background: #2a1708; border-radius: 6px; box-shadow: var(--shadow-lg); }
.nf-strip::before, .nf-strip::after { content: ""; position: absolute; left: 0; right: 0; height: 10px; background: repeating-linear-gradient(90deg, transparent 0 7px, #f6ede2 7px 15px, transparent 15px 22px); opacity: .85; }
.nf-strip::before { top: 8px; } .nf-strip::after { bottom: 8px; }
.nf-strip i { aspect-ratio: 3 / 2; border-radius: 3px; overflow: hidden; }
.nf-strip i:nth-child(2) { background: #F7E4CB; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.nf-copy { display: grid; gap: var(--s-4); }
.nf-langs { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); max-width: 46rem; }
@media (min-width: 760px) { .nf-langs { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); } }
.nf-langs li { display: grid; gap: 6px; align-content: start; padding-top: var(--s-4); box-shadow: inset 0 1px 0 var(--line); }
.nf-langs p { color: var(--muted); font-size: 0.9375rem; }
.nf-langs strong { color: var(--text); font-size: 1.0625rem; letter-spacing: -0.01em; }

/* ---------- scroll reveal (added by script only to content below the fold) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(24px); }
  .rv.in {
    opacity: 1; transform: none;
    transition: opacity var(--dur-reveal) var(--ease-out) var(--d, 0ms), transform 900ms var(--ease-out) var(--d, 0ms);
  }
}

/* ---------- page transitions ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 180ms var(--ease-out) both vt-out; }
::view-transition-new(root) { animation: 320ms var(--ease-out) both vt-in; }
::view-transition-group(site-header) { animation-duration: 0s; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

/* ================= capture: the lightbox tool ================= */
body.capture { --lb: #fff; background: var(--lb); color: #1c1814; height: 100vh; height: 100dvh; overflow: hidden; overscroll-behavior: none; touch-action: manipulation; }
.capture #light { position: fixed; inset: 0; background: var(--lb); display: grid; place-items: center; }
body.capture.ui-hidden { cursor: none; }

/* tape guide: horizontal on landscape screens, vertical on portrait ones */
.guide { position: absolute; inset: 0; pointer-events: none; display: grid; place-items: center; opacity: 1; transition: opacity var(--dur-fast) var(--ease-out); }
.guide[data-off] { opacity: 0; }
.guide-strip {
  position: relative; width: min(84vw, 1040px); aspect-ratio: 6.4 / 1; margin-top: -22vh;
  border: 2px dashed rgba(20, 14, 8, .45); border-radius: 8px;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.2%; padding: 3.4% 1.4%;
}
.guide-strip i { border: 1.5px solid rgba(20, 14, 8, .32); border-radius: 4px; }
.guide-strip::before, .guide-strip::after { content: ""; position: absolute; top: -22px; width: 10%; height: 36px; background: rgba(232, 93, 4, .32); box-shadow: inset 0 0 0 1px rgba(232, 93, 4, .55); border-radius: 3px; }
.guide-strip::before { left: -1.5%; } .guide-strip::after { right: -1.5%; }
.guide-label { position: absolute; left: 0; right: 0; top: -54px; text-align: center; font-size: .875rem; font-weight: 600; letter-spacing: -0.005em; color: rgba(20, 14, 8, .62); }
@media (orientation: portrait) {
  .guide-strip {
    height: min(60dvh, 1040px); width: calc(min(60dvh, 1040px) / 6.4); aspect-ratio: auto; margin-top: -10dvh;
    grid-template-columns: 1fr; grid-template-rows: repeat(6, 1fr); gap: 6px; padding: 8px 14px;
  }
  .guide-strip::before, .guide-strip::after { left: -24%; right: -24%; width: auto; height: 5%; }
  .guide-strip::before { top: -2.5%; } .guide-strip::after { top: auto; bottom: -2.5%; }
  .guide-label { top: auto; bottom: calc(100% + 28px); left: 50%; right: auto; transform: translateX(-50%); white-space: nowrap; }
}

/* the dock */
.ui { transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out), visibility 0s; }
body.ui-hidden .ui { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out), visibility 0s linear var(--dur-slow); }
.dock {
  position: fixed; z-index: 10; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(920px, calc(100vw - 24px)); max-height: calc(100dvh - 28px); overflow-y: auto; overscroll-behavior: contain;
  padding: 14px 16px 16px; border-radius: 26px;
  background: rgba(18, 15, 12, .9); color: #F6F1EB;
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 2px 6px rgba(0,0,0,.18), 0 24px 64px -12px rgba(0,0,0,.45);
  display: grid; gap: 14px; font-size: .9375rem;
  scrollbar-width: none;
}
body.ui-hidden .dock { transform: translate(-50%, 16px); }
.dock a, .dock button, .dock output { color: inherit; }
.dock :focus-visible { outline-color: #FFB067; }
.dock-top { display: flex; align-items: center; gap: 10px; min-height: 36px; }
.dock-top .brand { color: #F6F1EB; font-size: 1rem; gap: 8px; }
.dock-top .brand img { width: 24px; height: 24px; border-radius: 6px; box-shadow: none; }
.dock .lang { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.dock .lang a { color: #CFC6BB; min-height: 28px; min-width: 34px; }
.dock .lang a:hover { color: #fff; background: rgba(255,255,255,.1); }
.dock .lang a[aria-current="true"] { background: #F6F1EB; color: #0C0B0A; }

.ibtn {
  position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: var(--r-pill);
  background: rgba(255,255,255,.08); cursor: pointer; transition: background-color var(--dur-quick), transform var(--dur-quick) var(--ease-out);
}
.ibtn::after { content: ""; position: absolute; inset: -4px; }
.ibtn:hover { background: rgba(255,255,255,.16); }
.ibtn:active { transform: scale(.96); }
.ibtn svg, .cbtn svg { width: 18px; height: 18px; flex: none; }

/* help: grows inside the dock instead of covering the light */
.howto { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows var(--dur-slow) var(--ease-out), opacity var(--dur-fast) var(--ease-out); }
.howto > div { overflow: hidden; min-height: 0; visibility: hidden; transition: visibility 0s linear var(--dur-slow); }
.howto[data-open] { grid-template-rows: 1fr; opacity: 1; }
.howto[data-open] > div { visibility: visible; transition-delay: 0s; }
.howto-inner { padding: 4px 2px 6px; display: grid; gap: 10px; justify-items: start; }
.howto h2 { font-size: 1.125rem; letter-spacing: -0.02em; }
.howto ol { margin: 0; padding-left: 1.25em; color: #D9D1C7; display: grid; gap: 6px; max-width: 60ch; }
@media (min-width: 900px) { .howto ol { grid-template-columns: 1fr 1fr; gap: 8px 36px; max-width: none; } }
.howto li::marker { color: #FF9A4D; font-variant-numeric: tabular-nums; }

.sliders { display: grid; gap: 12px 28px; }
@media (min-width: 640px) { .sliders { grid-template-columns: 1fr 1fr; } }
.sl { display: grid; gap: 4px; align-content: start; }
.sl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; }
.sl output { font-weight: 500; color: #CFC6BB; font-variant-numeric: tabular-nums; font-size: .875rem; }
.sl .ends { display: flex; justify-content: space-between; font-size: .75rem; color: #A89F95; margin-top: -2px; }
.sl input[type=range] { width: 100%; height: 36px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; touch-action: none; }
.sl input[type=range]::-webkit-slider-runnable-track { height: 8px; border-radius: 8px; background: var(--track, #4a443e); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.sl input[type=range]::-moz-range-track { height: 8px; border-radius: 8px; background: var(--track, #4a443e); }
.sl input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: #fff; border: 0;
  box-shadow: 0 0 0 .5px rgba(0,0,0,.2), 0 2px 8px rgba(0,0,0,.45); transition: transform var(--dur-quick) var(--ease-out);
}
.sl input[type=range]::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 2px 8px rgba(0,0,0,.45); }
.sl input[type=range]:active::-webkit-slider-thumb { transform: scale(1.1); }
.sl input[type=range]:focus-visible { outline: none; }
.sl input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px #FFB067, 0 2px 8px rgba(0,0,0,.45); }
.sl input[type=range]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px #FFB067, 0 2px 8px rgba(0,0,0,.45); }
#temp { --track: linear-gradient(90deg, #C4DCFF, #FFFFFF 50%, #FFC48A); }
#bright { --track: linear-gradient(90deg, #26231F, #F6F1EB); }

.dock-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.dock-row .group { display: flex; flex-wrap: wrap; gap: 8px; }
.cbtn {
  position: relative; min-height: 40px; padding: 0 14px 0 12px; border-radius: var(--r-pill); border: 0;
  background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
  font: inherit; font-size: .875rem; font-weight: 600; letter-spacing: -0.005em; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 7px; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur-quick), box-shadow var(--dur-quick), color var(--dur-quick), transform var(--dur-quick) var(--ease-out);
}
.cbtn:hover { background: rgba(255,255,255,.15); }
.cbtn:active { transform: scale(.96); }
.cbtn:disabled { opacity: .45; cursor: not-allowed; }
.cbtn:disabled:active { transform: none; }
.cbtn .sw { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.25), 0 0 0 1px rgba(255,255,255,.3); }
.sw-white { background: #fff; }
.sw-warm { background: #FFD3A6; }
.cbtn[data-active] { box-shadow: inset 0 0 0 1.5px #F6F1EB; background: rgba(255,255,255,.14); }
/* toggles: the switch state is the icon dot plus a filled pill */
.tog .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.3); transition: background-color var(--dur-fast), box-shadow var(--dur-fast); }
.tog[aria-pressed="true"] { background: rgba(243, 156, 18, .18); box-shadow: inset 0 0 0 1.5px #F39C12; color: #FFD9B0; }
.tog[aria-pressed="true"] .dot { background: #F39C12; box-shadow: 0 0 0 3px rgba(243, 156, 18, .28); }
.tog .i-on { display: none; }
.tog[aria-pressed="true"] .i-on { display: block; }
.tog[aria-pressed="true"] .i-off { display: none; }
.status { font-size: .8125rem; color: #CFC6BB; min-height: 1.2em; margin-top: -4px; }
.status:empty { display: none; }

.hint {
  position: fixed; z-index: 9; left: 50%; top: max(16px, env(safe-area-inset-top)); transform: translate(-50%, -8px);
  padding: 8px 16px; border-radius: var(--r-pill); background: rgba(18,15,12,.86); color: #F6F1EB; font-size: .875rem; font-weight: 500;
  opacity: 0; pointer-events: none; white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis;
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.hint.show { opacity: 1; transform: translate(-50%, 0); }

/* compact dock for phones and short landscape screens */
@media (max-width: 520px) {
  .dock { padding: 12px 12px 14px; gap: 12px; border-radius: 22px; }
  .cbtn { padding: 0 12px 0 10px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .dock { gap: 8px; padding: 10px 14px 12px; width: min(820px, calc(100vw - 24px)); bottom: max(8px, env(safe-area-inset-bottom)); }
  .dock-top .brand span, .sl .ends { display: none; }
  .sl input[type=range] { height: 30px; }
  .guide-strip { margin-top: -26vh; width: min(70vw, 1040px); }
}

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0s !important; }
  @view-transition { navigation: none; }
}

/* ---------- film profile previews (CSS filters on one photo) ---------- */
.f-natural { filter: none; }
.f-warm { filter: sepia(.55) saturate(1.25) contrast(.92) brightness(1.06); }
.f-vivid { filter: saturate(1.9) contrast(1.12); }
.f-bw { filter: grayscale(1) contrast(1.08); }
.f-bwhi { filter: grayscale(1) contrast(1.55) brightness(.92); }
.f-slide { filter: saturate(1.35) contrast(1.35) brightness(.92) hue-rotate(-8deg); }
.f-cool { filter: saturate(1.25) contrast(1.18) brightness(.97) hue-rotate(10deg); }
