/* WDJF "Night Track" — exact palette/type from DECISIONS.md and the
   Claude Design mockups (WDJF Reveal Explorations.dc.html), not the
   holding page's own slightly different marketing tokens — this is the
   product surface DECISIONS.md is the spec for. */
:root{
  --bg:#0b1220;
  --sheet:rgba(15,23,38,0.95);
  --sheet-solid:#0f1726;
  --ink:#ece7db;
  --ink-dim:#aab6c8;
  --ink-muted:#93a5c0;
  --ink-faint:#5f7489;
  --accent:#ef7440;
  --accent-soft:rgba(239,116,64,0.14);
  --accent-border:rgba(239,116,64,0.4);
  --amber:#eba43f;
  --amber-ink:#221a0c;
  --line:rgba(147,165,192,0.18);
  --line-strong:rgba(147,165,192,0.3);
  --card:rgba(147,165,192,0.07);
  --radius-lg:18px;
  --radius-md:14px;
  --radius-sm:10px;
  --font-sans:'Space Grotesk',system-ui,sans-serif;
  --font-mono:'IBM Plex Mono',ui-monospace,monospace;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:var(--bg);
  color:var(--ink);
  font-family:var(--font-sans);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
#app-root{
  position:relative;
  min-height:100vh;
  min-height:100dvh;
  width:100%;
  max-width:560px;
  margin:0 auto;
  overflow:hidden;
}
.screen{
  position:relative;
  min-height:100vh;
  min-height:100dvh;
  padding:28px 20px 44px;
  display:flex;
  flex-direction:column;
}
.screen.no-scroll{overflow:hidden}
.eyebrow{
  font:600 10.5px var(--font-mono);
  letter-spacing:0.18em;
  color:var(--accent);
  text-transform:uppercase;
}
h1.title{font-size:24px;font-weight:600;color:var(--ink);margin:6px 0 0;line-height:1.25}
p.subtitle{margin:8px 0 0;font-size:13.5px;line-height:1.5;color:var(--ink-muted)}

.privacy-card{
  margin-top:18px;padding:16px;border-radius:16px;
  background:var(--accent-soft);border:1px solid var(--accent-border);
  display:flex;gap:13px;align-items:flex-start;
}
.privacy-card .headline{font-size:14.5px;font-weight:600;color:var(--ink);line-height:1.4}
.privacy-card .detail{font-size:12px;line-height:1.5;color:var(--ink-muted);margin-top:4px}

.card{
  border-radius:16px;background:var(--card);border:1px solid var(--line);
  padding:16px;
}
.card + .card{margin-top:12px}

.btn{
  width:100%;padding:15px;border-radius:999px;border:none;cursor:pointer;
  font:600 15px var(--font-sans);
}
.btn-primary{background:var(--amber);color:var(--amber-ink)}
.btn-secondary{background:none;color:var(--ink-muted);border:1px solid var(--line-strong)}
.btn-block + .btn-block{margin-top:10px}
.btn:disabled{opacity:0.45;cursor:not-allowed}

.mono-caption{
  font:400 10px var(--font-mono);letter-spacing:0.06em;color:var(--ink-faint);
  text-align:center;
}

.badge{
  display:inline-flex;align-items:center;gap:6px;padding:3px 9px;border-radius:999px;
  font:500 9.5px var(--font-mono);letter-spacing:0.08em;
}
.badge-gps{background:rgba(239,116,64,0.14);border:1px solid rgba(239,116,64,0.45);color:#f5a37e}
.badge-gps .dot{width:7px;height:7px;border-radius:50%;background:var(--accent)}
.badge-est{background:rgba(147,165,192,0.08);border:1px dashed rgba(147,165,192,0.5);color:var(--ink-muted)}
.badge-est .dot{width:7px;height:7px;border-radius:50%;border:1.4px dashed var(--accent);box-sizing:border-box}

.why-btn{
  width:20px;height:20px;border-radius:50%;border:1px solid var(--line-strong);background:none;
  color:var(--ink-muted);font:600 11px var(--font-mono);display:flex;align-items:center;
  justify-content:center;cursor:pointer;padding:0;flex:none;
}
.why-note{
  margin:8px 0 0;padding:8px 11px;border-radius:10px;background:rgba(147,165,192,0.1);
  border:1px solid rgba(147,165,192,0.22);font-size:12px;line-height:1.5;color:#aeb9cc;
}

.photo-grid{
  margin-top:10px;display:grid;grid-template-columns:repeat(4,1fr);gap:7px;
}
.photo-grid .tile{
  aspect-ratio:1;border-radius:9px;overflow:hidden;background:#1a2638;
}
.photo-grid .tile img{width:100%;height:100%;object-fit:cover;display:block}
.photo-grid .tile.more{
  border:1px dashed rgba(147,165,192,0.4);display:flex;align-items:center;justify-content:center;
  color:var(--ink-muted);font:500 11px var(--font-mono);background:none;
}

.selected-row{margin-top:18px;display:flex;align-items:baseline;justify-content:space-between}
.selected-row .label{font:600 9.5px var(--font-mono);letter-spacing:0.16em;color:var(--ink-muted)}
.selected-row .count{font:700 16px var(--font-mono);color:var(--accent)}
.hint-row{margin-top:12px;display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:10px;
  background:rgba(147,165,192,0.06);border:1px solid rgba(147,165,192,0.14)}
.hint-row .dot{width:6px;height:6px;border-radius:50%;background:var(--amber);flex:none}
.hint-row .text{font-size:11.5px;line-height:1.45;color:var(--ink-muted)}
.screen-actions{margin-top:auto;padding-top:18px;display:flex;flex-direction:column;gap:10px}

.field-row{display:flex;gap:10px;margin-top:12px}
.field{
  flex:1;display:flex;align-items:center;justify-content:space-between;padding:10px 12px;
  border-radius:10px;border:1px solid var(--line-strong);background:rgba(11,18,32,0.5);
}
.field input{
  background:none;border:none;color:var(--ink);font:600 14px var(--font-mono);width:100%;
  outline:none;
}
/* An empty field must read as empty. Filled values are bright (--ink) and bold; the placeholder is
   muted, lighter-weight and italic so a suggested-but-unfilled field (esp. the arrival time/airport
   left blank by the collapse-detection fix) invites typing instead of looking like real data the
   user shouldn't touch. opacity:1 overrides Firefox's default placeholder dimming so the token
   colour is exact. Scoped to .field input, so it covers both the time and airport-code inputs. */
.field input::placeholder{
  color:var(--ink-faint);font-weight:400;font-style:italic;opacity:1;
}
.field .edit-tag{font:500 9px var(--font-mono);letter-spacing:0.08em;color:var(--accent);white-space:nowrap}

.signal-bars{display:flex;align-items:center;gap:12px}
.signal-bars svg{flex:none}

.top-bar{
  position:absolute;top:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between;
  padding:18px 20px;z-index:5;
}
.top-bar button{background:none;border:none;color:var(--ink-muted);font-size:20px;cursor:pointer;padding:4px 8px}

.bottom-sheet{
  position:absolute;left:0;right:0;bottom:0;top:auto;background:var(--sheet);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border-top:1px solid var(--line);border-radius:22px 22px 0 0;padding:10px 20px 34px;
  display:flex;flex-direction:column;
  transition:top 0.28s ease, border-radius 0.28s ease;
}
/* Photo-dominant state: the sheet grows to cover the screen (var(--sheet) is 95% opaque, so this
   also naturally hides the map behind it, without a separate show/hide toggle for <flight-map>). */
.bottom-sheet.expanded{top:0;border-radius:0}

.sheet-toggle{
  display:flex;align-items:center;justify-content:center;width:100%;height:30px;margin:-6px 0 8px;
  border:none;background:none;color:var(--ink-muted);cursor:pointer;padding:0;
}
.sheet-toggle svg{transition:transform 0.2s ease}
.bottom-sheet.expanded .sheet-toggle svg{transform:rotate(180deg)}

.frame-row{display:flex;gap:14px;align-items:flex-start}
.bottom-sheet.expanded .frame-row{flex:1;min-height:0;flex-direction:column;align-items:stretch;gap:12px}
.frame-thumb{
  position:relative;width:92px;height:92px;flex:none;border-radius:12px;overflow:hidden;background:#16233a;
}
.bottom-sheet.expanded .frame-thumb{width:100%;height:auto;flex:1;min-height:0;border-radius:16px}
.frame-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.frame-meta{min-width:0;flex:1}
.bottom-sheet.expanded .frame-meta{flex:none}
.frame-meta .stage{font:600 10.5px var(--font-mono);letter-spacing:0.16em;color:var(--accent)}
.frame-meta .place{font-size:20px;font-weight:600;color:var(--ink);margin-top:3px}
.frame-meta .datarow{font:500 11px var(--font-mono);color:var(--ink-muted);margin-top:5px}
.frame-text{margin:14px 0 0;font-size:14.5px;line-height:1.55;color:#b9c3d6;min-height:44px}

.nav-row{display:flex;align-items:center;justify-content:space-between;margin-top:12px}
.round-btn{
  width:38px;height:38px;border-radius:50%;border:1px solid var(--line-strong);background:none;
  display:flex;align-items:center;justify-content:center;color:var(--ink);font-size:16px;cursor:pointer;
  font-family:inherit;
}
.round-btn.play{border-color:rgba(239,116,64,0.55);background:rgba(239,116,64,0.12);color:var(--accent);font-size:11px}
.dots{display:flex;gap:5px;align-items:center}
.dots span{height:5px;border-radius:99px;background:rgba(147,165,192,0.35);transition:width 0.25s,background 0.25s;display:block}
.dots span.active{background:var(--accent)}
.counter{font:500 10.5px var(--font-mono);color:var(--ink-muted)}

flight-map{display:block}

.processing-screen{align-items:center;justify-content:center;text-align:center}
.processing-arc{margin:0 auto}
.processing-title{font-size:22px;font-weight:600;color:var(--ink);margin-top:26px}
.processing-steps{margin-top:22px;display:flex;flex-direction:column;gap:11px;width:100%;max-width:260px;
  margin-left:auto;margin-right:auto;text-align:left}
.processing-steps .step{display:flex;align-items:center;gap:10px;font:500 11px var(--font-mono);
  letter-spacing:0.08em;color:var(--ink-muted)}
.processing-steps .step.done .mark{color:var(--accent);font-weight:600}
.processing-steps .step.active{color:var(--ink);animation:wdjf-pulse 1.4s ease-in-out infinite}
.processing-steps .step.active .mark{color:var(--amber);font-weight:600}
.processing-steps .step.pending{opacity:0.4}
@keyframes wdjf-draw{to{stroke-dashoffset:0}}
@keyframes wdjf-pulse{0%,100%{opacity:1}50%{opacity:0.35}}

/* GONE WITH THE THREE-JOURNEY CAP (1 Sept): .paywall-overlay, .paywall-title, .paywall-perks,
   .blurred-behind and .email-field. Checked rather than assumed -- .email-field looked like a
   general form style but the subscribe overlay was its only user, and .blurred-behind existed
   solely to dim the confirm screen behind it. Nothing in app/ or index.html references any of
   them now. The subscribe form they dressed is not coming back in this shape: what is sold is the
   export, and that checkout lives in app/pdf/checkout.js. */

.keepsake-card{border-radius:18px;overflow:hidden;border:1px solid var(--line);background:#0d3252;margin-top:18px}
.keepsake-card .kmap{width:100%;height:170px}
.keepsake-card .kinfo{padding:14px 16px;background:rgba(15,23,38,0.95)}
.keepsake-card .kinfo .route{display:flex;align-items:baseline;justify-content:space-between}
.keepsake-card .kinfo .route .name{font-size:16px;font-weight:600;color:var(--ink)}
.keepsake-card .kinfo .route .flight{font:500 10px var(--font-mono);color:var(--accent)}
.keepsake-card .kinfo .meta{font:500 10px var(--font-mono);color:var(--ink-muted);margin-top:4px}

/* Opt-in telemetry row (accuracy-tips.js). Deliberately shaped like the tip cards around it
   rather than as a settings-panel control -- it is a choice being offered in passing, not a
   preferences screen, and WDJF has no other settings surface to put it on. */
.stats-optin-row{
  display:flex;gap:11px;align-items:flex-start;cursor:pointer;
}
.stats-optin-row input[type="checkbox"]{
  flex:none;width:18px;height:18px;margin:1px 0 0;accent-color:var(--accent);cursor:pointer;
}
.stats-optin-head{
  display:block;font-size:14px;font-weight:600;color:var(--ink);line-height:1.35;
}
.stats-optin-detail{
  display:block;font-size:12px;line-height:1.5;color:var(--ink-muted);margin-top:4px;
}

/* Per-share photo consent (save-share.js). Reuses .stats-optin-row wholesale rather than growing a
   second checkbox style: the app has exactly one shape for "an opt-in offered in passing", and this
   is the second instance of it, not a new pattern. The only thing it needs of its own is spacing
   inside the action stack, which the tips screen's card did not need. */
.photo-consent{
  margin:2px 0 4px;text-align:left;
}

.menu-link{
  display:block;text-align:center;margin-top:16px;font:500 11.5px var(--font-sans);
  color:var(--ink-muted);text-decoration:underline;cursor:pointer;background:none;border:none;
}

a{color:var(--accent)}

/* ── <flight-map> (MapLibre) ────────────────────────────────────────────────────
   touch-action:none on the map surface is what lets MapLibre receive two-finger
   pinch/rotate/tilt instead of the browser swallowing them as page gestures. The
   reveal screen is .no-scroll so there is no page scroll to preserve, and the
   bottom sheet has NO touch handlers of its own (its toggle is click-only, by
   deliberate design) -- so nothing competes for the gesture. */
flight-map{display:block;position:relative;touch-action:none}
flight-map .maplibregl-canvas-container,
flight-map .maplibregl-canvas{touch-action:none}
/* The sheet sits above the map and must keep its own taps; it is opaque where it
   overlaps, so the map is only reachable in the area above it. */
.bottom-sheet{touch-action:auto}

/* Active-frame marker pulse. Replaces the SVG <animate> the d3 renderer used --
   same intent: the current position reads as live wherever it sits, including
   when the whole-route fit puts it in a corner (DD-001 option A). */
@keyframes fm-pulse{
  0%{transform:scale(0.85);opacity:0.7}
  50%{transform:scale(1.9);opacity:0}
  100%{transform:scale(0.85);opacity:0.7}
}
flight-map .fm-pulse{animation:fm-pulse 2.4s cubic-bezier(0.4,0,0.6,1) infinite}
@media (prefers-reduced-motion: reduce){
  flight-map .fm-pulse{animation:none;opacity:0.45}
}

/* DD-011 postcard style picker. Sits below the save/share actions -- the choice is a finishing
   touch after the reveal, not a gate in front of it. */
.style-picker{display:flex;gap:8px;margin-top:10px}
.style-chip{flex:1;display:flex;align-items:center;justify-content:center;gap:7px;
  font:600 11.5px 'IBM Plex Mono',ui-monospace,monospace;letter-spacing:.04em;
  padding:9px 10px;border-radius:12px;cursor:pointer;
  background:rgba(147,165,192,.06);border:1px solid rgba(147,165,192,.18);color:var(--ink-muted)}
.style-chip[aria-checked="true"]{border-color:var(--amber);color:var(--ink);background:rgba(235,164,63,.10)}
.style-swatch{position:relative;width:18px;height:18px;border-radius:5px;border:1px solid;display:inline-block;flex:none}
.style-swatch i{position:absolute;left:2px;right:2px;top:7px;height:2.5px;border-radius:2px}
