/* filmgate.app — always dark. No external requests.
   Tokens come from the app, so the site reads as a continuation of its interface:
   - Figma "Film Gate" (qFcwmp2uuQeyYYLvhwRG6Y), frame 56:537 "Viewfinder — LIVE · streaming · panel closed"
   - App code: DPPanelKit.swift (ground, hairlines), DPFont.swift (F1.8) */

@font-face {
  font-family: "F1.8";
  src: url("/assets/F1.8-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #000;                         /* 56:537 frame fill */
  --pill: #1e1e1e;                    /* 56:582 Date pill, 56:617 NOW pill */
  --rule: rgba(255, 255, 255, .10);   /* DPPanel.rule */
  --plate: rgba(255, 255, 255, .08);  /* DPPanel.selectedPlate */
  --edge: rgba(255, 255, 255, .30);   /* 56:549 "Picture edge (white 30%)" */
  --fg: #fff;
  --fg-2: rgba(255, 255, 255, .60);   /* 56:618 NOW (inactive) */
  --fg-3: rgba(255, 255, 255, .35);   /* 56:646 1× (unselected lens) */
  --accent: #ff9230;                  /* 56:666 SUN (active) — Denis: orange accent */
  --capsule: 999px;                   /* capsules fully rounded: 56:546 r12 @ h24 */
  --display: "F1.8", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.5 var(--text); -webkit-font-smoothing: antialiased; }
a { color: var(--fg); text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Header */
.top { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 18px; padding-bottom: 12px; }
.wordmark { font-family: var(--display); font-size: 18px; letter-spacing: .18em; text-decoration: none; color: var(--fg); }
.capsule { display: inline-flex; align-items: center; gap: 8px; background: var(--pill); border-radius: var(--capsule); padding: 4px 12px; font-family: var(--display); font-size: 13px; letter-spacing: .04em; color: var(--fg-2); }
.capsule .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Hero */
/* The phone is the hero: centred, wider than the text column (1404 px = 1080 × 1.3). */
.hero { max-width: calc(1404px + 2 * var(--gutter)); margin: 0 auto; padding: clamp(12px, 3vw, 32px) var(--gutter) clamp(28px, 4vw, 48px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; }
h1 { font-size: clamp(44px, 8vw, 96px); line-height: .95; }
.hero picture { display: block; }
.hero img { display: block; width: 100%; height: auto; }

/* Feature groups: compact, hairline rules instead of cards (DPPanelKit) */
.group { padding: clamp(28px, 4vw, 44px) 0; border-top: 1px solid var(--rule); }
.head { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.label { font-family: var(--display); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0; }
h2 { font-size: clamp(24px, 3.2vw, 34px); line-height: 1.15; }
.rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 24px; margin-top: 18px; text-align: center; }
.row { border-top: 1px solid var(--rule); padding: 14px 0 16px; }
h3 { font-size: 17px; line-height: 1.25; margin-bottom: 6px; }
.row p { margin: 0; color: var(--fg-2); font-size: 15px; line-height: 1.5; }
.also { color: var(--fg-2); font-size: 14px; margin: 12px auto 0; max-width: 52em; text-align: center; }
sup { line-height: 0; font-size: 11px; margin-left: 2px; }
sup a { color: var(--accent); text-decoration: none; }

/* Subscribe */
.subscribe .intro { color: var(--fg-2); max-width: 44em; margin: 12px 0 0; font-size: 15px; }
.subscribe form { margin-top: 16px; display: grid; gap: 12px; max-width: 560px; }
.field { display: flex; gap: 8px; flex-wrap: wrap; }
.field label, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hp { left: -10000px; }
input[type=email] { flex: 1 1 220px; min-width: 0; font: 16px var(--text); color: var(--fg); background: var(--pill); border: 1px solid var(--rule); border-radius: var(--capsule); padding: 10px 16px; }
input[type=email]::placeholder { color: var(--fg-3); }
button { font: 14px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--fg); background: var(--plate); border: 1px solid var(--edge); border-radius: var(--capsule); padding: 10px 20px; cursor: pointer; }
button:hover { border-color: var(--accent); color: var(--accent); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--fg-2); }
.consent input { margin: 3px 0 0; width: 17px; height: 17px; accent-color: var(--accent); flex: none; }

/* Release, notes, footer */
.release { border-top: 1px solid var(--rule); padding: clamp(32px, 5vw, 56px) 0 clamp(20px, 3vw, 32px); display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.release h2 { font-size: clamp(28px, 4.6vw, 48px); }
.release p { margin: 0; color: var(--fg-2); }
.notes { padding-bottom: 24px; color: var(--fg-3); font-size: 12.5px; text-align: center; }
.notes p { margin: 4px 0; }
.notes a { color: var(--accent); text-decoration: none; margin-right: 6px; }
.foot-wrap { border-top: 1px solid var(--rule); }
.foot { display: grid; grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 18px; padding-top: 24px; padding-bottom: 32px; font-size: 14px; color: var(--fg-2); }
.foot p { margin: 6px 0 0; }
.foot-title { font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; font-size: 11px; color: var(--fg-3); margin: 2px 0 0 !important; }
.copy { grid-column: 1 / -1; font-size: 12.5px; }

/* Simple pages: 404, privacy, form result */
.page { padding: clamp(40px, 8vw, 96px) 0 clamp(32px, 5vw, 56px); max-width: 44em; }
.page h1 { font-size: clamp(36px, 7vw, 64px); }
.page h2 { font-size: 22px; margin: 28px 0 6px; }
.page p, .page li { color: var(--fg-2); }
.page .lead { color: var(--fg); font-size: 18px; }
.page .label { margin-bottom: 12px; }
.todo { color: var(--accent); background: rgba(255, 146, 48, .08); border: 1px dashed var(--accent); padding: 0 4px; }

@media (max-width: 640px) {
  .rows { text-align: center; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
