/* flowDRIVER — phone-side driver journey kit (light theme).
   The driver-facing surfaces of YardFlow run in mobile Safari at
   web.FreightRoll.com. Layout is light, content is high-contrast.

   Brand bridge to the dark+neon YardFlow system: the FREIGHTROLL
   FAST PASS pill stays black with a neon "ROLL" accent. Everything
   else is light. */

@import url('../../colors_and_type.css');

:root {
  /* Light theme overrides used only inside this kit */
  --fd-bg:        #F5F6F8;   /* page background behind the iPhone frame */
  --fd-paper:     #FFFFFF;   /* card surfaces */
  --fd-ink:       #0B0F14;   /* primary text */
  --fd-ink-2:     #4A5563;   /* secondary text */
  --fd-ink-3:     #8A93A0;   /* tertiary text */
  --fd-rule:      #E5E8EE;   /* hairline rules */
  --fd-cta:       #4A8DE0;   /* primary CTA blue — driver-side standard */
  --fd-cta-deep:  #2C6FC2;
  --fd-link:      #2C6FC2;
  --fd-bracket:   #E91E63;   /* pink/magenta L-bracket guides (document) */
  --fd-trapezoid: #00D4FF;   /* cyan motion-detect trapezoid (vehicle) */
  --fd-verified:  #1565FF;   /* MACHINE VERIFIED chip blue */
  --fd-success:   #1FA67A;
  --fd-warn:      #E5A22B;
  --fd-ember:     #D9381D;
}

html, body {
  margin: 0; padding: 0;
  background: var(--fd-bg);
  color: var(--fd-ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  scroll-behavior: smooth;
}

/* ── App shell ─────────────────────────────────────────────────── */
.fd-app {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 100vh;
}
.fd-rail {
  background: #0F1218;
  color: #fff;
  padding: 20px 16px;
  overflow-y: auto;
  border-right: 1px solid rgba(0,180,255,0.10);
  max-height: 100vh;
  position: sticky; top: 0;
}
.fd-stage {
  display: flex; flex-direction: column;
  align-items: center;
  padding: 24px 20px 40px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 10%, rgba(74,141,224,0.08), transparent 60%),
    var(--fd-bg);
  min-height: 100vh;
  min-width: 0;
}

/* ── Rail: brand + journey toggle + step list ─────────────────── */
.fd-rail-brand { display: flex; gap: 10px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.fd-rail-brand .lockup { font-weight: 700; letter-spacing: -0.02em; font-size: 17px; line-height: 1.05; }
.fd-rail-brand .lockup .by { display: block; font-size: 9px; color: rgba(255,255,255,0.45); letter-spacing: 0.20em; font-weight: 500; margin-top: 3px; text-transform: uppercase; }

.fd-rail-section { margin-top: 20px; }
.fd-rail-heading {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.22em;
  color: rgba(255,255,255,0.45);
  margin: 0 0 10px;
  font-family: var(--font-mono);
}

.fd-toggle {
  display: grid; grid-template-columns: 1fr 1fr;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 18px;
}
.fd-toggle button {
  background: transparent; border: none; color: rgba(255,255,255,0.55);
  padding: 9px 10px; border-radius: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  cursor: pointer; transition: all 0.15s var(--ease-standard);
  font-family: var(--font-sans);
}
.fd-toggle button.is-active {
  background: var(--neon);
  color: var(--void);
  box-shadow: 0 0 18px rgba(0,180,255,0.25);
}

.fd-step-list { display: flex; flex-direction: column; gap: 2px; }
.fd-step {
  display: grid; grid-template-columns: 28px 1fr;
  gap: 10px; align-items: center;
  padding: 8px 8px;
  border-radius: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.12s var(--ease-standard);
}
.fd-step:hover { background: rgba(255,255,255,0.04); color: #fff; }
.fd-step.is-active {
  background: rgba(0,180,255,0.10);
  border-color: rgba(0,180,255,0.25);
  color: var(--neon);
  box-shadow: inset 2px 0 0 var(--neon);
}
.fd-step .num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 10px;
  color: rgba(255,255,255,0.55);
}
.fd-step.is-active .num { background: rgba(0,180,255,0.20); border-color: var(--neon); color: var(--neon); }
.fd-step.is-done .num { background: rgba(31,166,122,0.18); border-color: rgba(31,166,122,0.45); color: #5BCFA5; }
.fd-step .meta { font-family: var(--font-mono); font-size: 10px; color: rgba(255,255,255,0.35); }
.fd-step-label { display: flex; flex-direction: column; line-height: 1.25; }
.fd-step-label .top { font-weight: 500; }

.fd-rail-note {
  margin-top: 22px; padding: 12px 14px;
  background: rgba(0,180,255,0.06);
  border: 1px solid rgba(0,180,255,0.18);
  border-radius: 10px;
  font-size: 12px; color: rgba(255,255,255,0.75);
  line-height: 1.55;
}
.fd-rail-note strong { color: var(--neon); font-weight: 600; }

/* ── Stage: title + iPhone + caption ──────────────────────────── */
.fd-stage-head {
  text-align: center; max-width: 640px;
  margin-bottom: 18px;
}
.fd-stage-eyebrow {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.24em;
  color: var(--fd-cta-deep);
  font-family: var(--font-mono);
  margin: 0 0 6px;
}
.fd-stage-title {
  margin: 0;
  font-size: 22px; font-weight: 700; letter-spacing: -0.015em;
  color: var(--fd-ink);
}
.fd-stage-sub {
  margin: 8px auto 0;
  max-width: 460px;
  color: var(--fd-ink-2);
  font-size: 14px; line-height: 1.5;
}

.fd-nav {
  display: flex; gap: 8px; align-items: center;
  margin-top: 18px;
}
.fd-nav button {
  font-family: var(--font-sans);
  background: var(--fd-paper);
  color: var(--fd-ink);
  border: 1px solid var(--fd-rule);
  border-radius: 999px;
  padding: 8px 16px; font-size: 13px; font-weight: 600;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all 0.15s var(--ease-standard);
}
.fd-nav button:hover:not(:disabled) { border-color: var(--fd-cta); color: var(--fd-cta); }
.fd-nav button:disabled { opacity: 0.35; cursor: not-allowed; }
.fd-nav .counter { color: var(--fd-ink-3); font-family: var(--font-mono); font-size: 12px; }

/* ── Page (inside iPhone) ─────────────────────────────────────── */
.fd-page {
  width: 100%; height: 100%;
  background: var(--fd-paper);
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
  padding-top: 54px;       /* clear iOS status bar + dynamic island */
  padding-bottom: 28px;    /* clear iOS home indicator */
  box-sizing: border-box;
}

/* Safari chrome */
.fd-safari {
  background: #F2F2F4;
  padding: 8px 14px 10px;
  border-bottom: 1px solid #DCDDE0;
  display: flex; align-items: center; gap: 8px;
  font-family: -apple-system, system-ui, sans-serif;
  font-size: 13px; color: #1c1c1e;
}
.fd-safari .aA { color: #6B7280; font-weight: 600; }
.fd-safari .url {
  flex: 1; text-align: center;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  color: #1C1C1E;
  font-size: 13px;
}
.fd-safari .url::before { content: '🔒'; font-size: 9px; opacity: 0.6; }
.fd-safari .refresh { color: #6B7280; font-weight: 600; }

/* PickupCo./DeliveryCo. brand band */
.fd-brand-band {
  padding: 12px 18px 14px;
  background: var(--fd-paper);
  border-bottom: 1px solid var(--fd-rule);
}
.fd-brand-band .welcome {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 8px;
  font-size: 10px; line-height: 1.2;
  color: var(--fd-ink-2);
}
.fd-brand-band .welcome .name { font-weight: 600; }
.fd-brand-band .welcome .date {
  display: block; font-family: var(--font-mono);
  font-size: 9px; color: var(--fd-cta);
  letter-spacing: 0.06em; margin-top: 2px;
}
.fd-brand-band .avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, #F4A261, #E76F51);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
  flex: 0 0 auto;
}
.fd-brand-band .biz {
  margin-top: 6px;
  font-weight: 700; font-size: 22px; letter-spacing: -0.02em;
  color: var(--fd-ink);
}

/* FREIGHTROLL FAST PASS pill (dark, persistent) */
.fd-fr-pill {
  background: #0B0F14;
  color: #fff;
  padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 700; letter-spacing: 0.04em;
  font-size: 14px;
}
.fd-fr-pill .lockup .yard { color: #fff; }
.fd-fr-pill .lockup .roll { color: var(--neon); }
.fd-fr-pill .lockup .fast { color: #fff; font-weight: 700; margin-left: 6px; letter-spacing: 0.10em; }
.fd-fr-pill .menu {
  display: inline-flex; flex-direction: column; gap: 3px;
  cursor: pointer;
}
.fd-fr-pill .menu span {
  width: 16px; height: 1.5px;
  background: #fff;
}

/* Step body */
.fd-body {
  flex: 1; padding: 22px 20px 0;
  overflow-y: auto;
  background: var(--fd-paper);
}
.fd-body.bg-photo {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.84) 38%, rgba(255,255,255,0.30) 100%),
    radial-gradient(ellipse at 50% 80%, #5B8DBD 0%, #2E5278 60%, #1A3554 100%);
  background-blend-mode: normal;
}
.fd-body-h {
  margin: 0 0 18px;
  font-size: 18px; font-weight: 700;
  text-align: center;
  color: var(--fd-ink);
  letter-spacing: -0.01em;
}
.fd-body-sub {
  text-align: center;
  color: var(--fd-ink-2);
  font-size: 12.5px;
  line-height: 1.5;
  margin: 0 0 14px;
}

/* Field rows */
.fd-row {
  border-bottom: 1px solid var(--fd-rule);
  padding: 14px 4px;
  display: flex; align-items: center; gap: 12px;
}
.fd-row:last-child { border-bottom: none; }
.fd-row .ico {
  width: 24px; height: 24px;
  flex: 0 0 auto;
  color: var(--fd-ink-3);
  display: inline-flex; align-items: center; justify-content: center;
}
.fd-row .body { flex: 1; min-width: 0; }
.fd-row .k { font-size: 11px; color: var(--fd-ink-3); letter-spacing: 0.04em; }
.fd-row .v { color: var(--fd-ink); font-size: 14px; font-weight: 500; margin-top: 2px; line-height: 1.4; }
.fd-row .chev { color: var(--fd-ink-3); font-size: 14px; }

.fd-input-row {
  border: 2px solid var(--fd-cta);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 12px 0;
  display: flex; align-items: center; gap: 12px;
}
.fd-input-row.required-empty { border-color: var(--fd-cta); }
.fd-input-row .k { font-size: 11px; color: var(--fd-ink-3); letter-spacing: 0.04em; }
.fd-input-row .k .req { color: var(--fd-cta); font-weight: 700; margin-left: 4px; }
.fd-input-row input {
  border: none; outline: none; background: transparent;
  font-family: var(--font-sans); font-size: 14px;
  color: var(--fd-ink);
  width: 100%;
  margin-top: 4px;
}

/* Primary CTA */
.fd-cta {
  background: var(--fd-cta);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 14px 18px;
  font-weight: 700; font-size: 15px;
  letter-spacing: 0.01em;
  width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer;
  margin: 16px 0 14px;
  transition: all 0.15s var(--ease-standard);
  font-family: var(--font-sans);
}
.fd-cta:hover { background: var(--fd-cta-deep); }
.fd-cta.secondary {
  background: #E9EEF7;
  color: var(--fd-cta-deep);
}
.fd-cta-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }

/* Hero photo body (for steps with cinematic background) */
.fd-hero-body {
  flex: 1;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.88) 0%, rgba(255,255,255,0.55) 36%, rgba(0,0,0,0.25) 100%),
    radial-gradient(ellipse at 30% 60%, #C8A171 0%, #6E512F 50%, #2A1E13 100%);
  display: flex; flex-direction: column;
  padding: 22px 20px;
}

/* Safety agreement */
.fd-sa { padding: 18px 20px 100px; overflow-y: auto; flex: 1; }
.fd-sa h2 { margin: 0 0 12px; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.fd-sa p, .fd-sa li { color: var(--fd-ink-2); font-size: 12px; line-height: 1.55; margin: 0 0 10px; }
.fd-sa h3 { font-size: 12px; font-weight: 700; margin: 14px 0 4px; color: var(--fd-ink); }
.fd-sa ul { padding-left: 18px; margin: 0 0 10px; }
.fd-sa-cta-pinned {
  position: absolute; bottom: 16px; left: 16px; right: 16px;
  background: var(--fd-cta); color: #fff;
  border: none; border-radius: 14px;
  padding: 14px 18px; font-weight: 700; font-size: 15px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(74,141,224,0.40);
}
.fd-sa-cta-pinned:hover { background: var(--fd-cta-deep); }

/* Camera frame */
.fd-camera {
  position: relative;
  flex: 1;
  background: #000;
  color: #fff;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.fd-camera-stage {
  flex: 1; position: relative;
  background-position: center; background-size: cover;
  display: flex; align-items: center; justify-content: center;
}
.fd-camera-stage.truck-cab {
  background:
    radial-gradient(ellipse at 70% 30%, #FFB76B 0%, transparent 35%),
    linear-gradient(180deg, #2A3142 0%, #0B0F14 100%);
}
.fd-camera-stage.bol-doc {
  background:
    radial-gradient(ellipse at 50% 50%, #F4F1E8 0%, #C5B89E 60%, #1A1A1A 100%);
}
.fd-camera-stage.seal-tag {
  background:
    radial-gradient(ellipse at 50% 50%, #3D7DD9 0%, #1C3C66 50%, #0A1828 100%);
}
.fd-camera-stage.gate {
  background:
    linear-gradient(180deg, #243042 0%, #0A0E18 100%);
}

/* Subject placeholders */
.fd-camera-subject {
  width: 70%; max-width: 240px;
  aspect-ratio: 3 / 4;
  background: rgba(255,255,255,0.06);
  border: 1px dashed rgba(255,255,255,0.18);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-mono); font-size: 10px;
  text-align: center; padding: 12px;
  letter-spacing: 0.06em;
}

/* Pink L-brackets — document/seal scan */
.fd-lbracket {
  position: absolute;
  width: 38px; height: 38px;
  border-color: var(--fd-bracket);
  border-style: solid;
  border-width: 0;
}
.fd-lbracket.tl { top: 24%; left: 12%; border-top-width: 3px; border-left-width: 3px; border-top-left-radius: 4px; }
.fd-lbracket.tr { top: 24%; right: 12%; border-top-width: 3px; border-right-width: 3px; border-top-right-radius: 4px; }
.fd-lbracket.bl { bottom: 24%; left: 12%; border-bottom-width: 3px; border-left-width: 3px; border-bottom-left-radius: 4px; }
.fd-lbracket.br { bottom: 24%; right: 12%; border-bottom-width: 3px; border-right-width: 3px; border-bottom-right-radius: 4px; }

/* Cyan trapezoid — motion detect (vehicle) */
.fd-trap {
  position: absolute;
  inset: 30% 18% 24% 18%;
  border: 1.5px solid var(--fd-trapezoid);
  background: rgba(0,212,255,0.06);
  border-radius: 4px;
  clip-path: polygon(10% 0%, 90% 0%, 100% 100%, 0% 100%);
}

/* Camera tab bar (iOS-ish) */
.fd-cam-tabs {
  display: flex; justify-content: center; gap: 18px;
  padding: 14px 0 6px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.55));
}
.fd-cam-tabs .t {
  font-size: 9.5px; font-family: -apple-system, system-ui, sans-serif;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  padding: 4px 6px;
}
.fd-cam-tabs .t.active { color: #FFD60A; }
.fd-cam-shutter-row {
  display: grid; grid-template-columns: 1fr 64px 1fr;
  align-items: center; padding: 8px 14px 18px;
  background: rgba(0,0,0,0.40);
}
.fd-cam-shutter {
  width: 56px; height: 56px; border-radius: 50%;
  background: #fff; border: 4px solid rgba(255,255,255,0.95);
  box-shadow: 0 0 0 2px #000 inset;
  cursor: pointer;
}
.fd-cam-thumb {
  width: 36px; height: 36px; border-radius: 6px;
  background: linear-gradient(135deg, #E76F51, #F4A261);
  border: 1px solid rgba(255,255,255,0.3);
  justify-self: start;
}
.fd-cam-swap {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px;
  justify-self: end;
}

/* Floating capture confirmation card (over the camera) */
.fd-capture-card {
  position: absolute; left: 18px; right: 18px; top: 22%;
  background: #fff; color: var(--fd-ink);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.45);
  display: flex; flex-direction: column; gap: 6px;
}
.fd-capture-card .h { font-size: 14px; font-weight: 700; }
.fd-capture-card .s { font-family: var(--font-mono); font-size: 11px; color: var(--fd-ink-2); }
.fd-capture-card .bar {
  height: 4px; border-radius: 999px;
  background: var(--fd-rule); position: relative; overflow: hidden;
  margin-top: 4px;
}
.fd-capture-card .bar::after {
  content: ''; position: absolute; inset: 0;
  width: 65%; background: var(--fd-cta);
  border-radius: 999px;
  animation: fd-progress 1.6s var(--ease-standard) infinite alternate;
}
@keyframes fd-progress { from { transform: translateX(-40%); } to { transform: translateX(40%); } }
.fd-capture-card .badge {
  align-self: flex-start;
  font-family: var(--font-mono); font-size: 9.5px;
  background: rgba(74,141,224,0.10); color: var(--fd-cta);
  padding: 2px 8px; border-radius: 999px;
  letter-spacing: 0.10em; text-transform: uppercase;
}

/* "Code Captured" small confirmation overlay */
.fd-confirm {
  position: absolute; left: 50%; bottom: 22%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.78);
  color: #fff; padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
  backdrop-filter: blur(6px);
}
.fd-confirm .check {
  width: 18px; height: 18px;
  border-radius: 50%; background: var(--fd-success);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800;
}

/* SMS (iMessage) frame */
.fd-sms {
  flex: 1;
  background: #fff; color: var(--fd-ink);
  display: flex; flex-direction: column;
  font-family: -apple-system, system-ui, sans-serif;
}
.fd-sms-head {
  padding: 8px 14px 10px;
  border-bottom: 1px solid var(--fd-rule);
  display: grid; grid-template-columns: 24px 1fr 24px;
  align-items: center; gap: 8px;
}
.fd-sms-head .back { color: var(--fd-cta); font-size: 22px; line-height: 1; cursor: pointer; }
.fd-sms-head .contact { display: flex; flex-direction: column; align-items: center; }
.fd-sms-head .contact .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #F4A261, #E76F51);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 14px;
  margin-bottom: 4px;
}
.fd-sms-head .contact .name {
  font-size: 11px; color: var(--fd-ink); font-weight: 500;
  display: inline-flex; align-items: center; gap: 4px;
}
.fd-sms-head .video { color: var(--fd-cta); font-size: 18px; justify-self: end; }
.fd-sms-day {
  text-align: center;
  font-size: 11px; color: var(--fd-ink-3); font-weight: 600;
  padding: 8px 0;
}
.fd-sms-body { flex: 1; padding: 0 14px 12px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.fd-bubble-them {
  background: #E9E9EB;
  color: var(--fd-ink);
  align-self: flex-start;
  padding: 9px 14px;
  border-radius: 18px;
  max-width: 78%;
  font-size: 14px;
  line-height: 1.4;
  white-space: pre-line;
}
.fd-bubble-them .link { color: var(--fd-link); text-decoration: underline; cursor: pointer; }
.fd-sms-composer {
  display: grid; grid-template-columns: 24px 24px 1fr 24px;
  gap: 8px; align-items: center;
  padding: 10px 12px;
  border-top: 1px solid var(--fd-rule);
}
.fd-sms-composer .ico {
  width: 22px; height: 22px;
  border-radius: 50%; background: #E5E5EA;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--fd-ink-2);
}
.fd-sms-composer input {
  background: #fff; border: 1px solid var(--fd-rule); border-radius: 18px;
  padding: 6px 14px; font-size: 13px; font-family: inherit;
  color: var(--fd-ink); outline: none;
}

/* Drop Rules procedural checklist */
.fd-drop-list { padding: 6px 4px 18px; }
.fd-drop-list h3 {
  font-size: 14px; font-weight: 700; margin: 14px 0 4px;
  color: var(--fd-ink);
}
.fd-drop-list h3 .n { color: var(--fd-ink-3); margin-right: 4px; font-weight: 700; }
.fd-drop-list p {
  font-size: 12px; line-height: 1.55;
  color: var(--fd-ink-2);
  margin: 0 0 8px;
}

/* Gate QR final screen */
.fd-gate-qr-card {
  background: var(--fd-paper);
  border-radius: 8px;
  padding: 14px 12px;
  margin: 12px 0;
  display: grid; grid-template-columns: 18px 1fr;
  gap: 10px; align-items: center;
}
.fd-gate-qr-card .verified-rail {
  background: var(--fd-verified);
  color: #fff;
  border-radius: 4px;
  padding: 14px 4px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-mono);
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.18em;
  text-align: center;
  display: flex; align-items: center; justify-content: center;
}
.fd-gate-qr-card .qr {
  background: #fff;
  border: 1px solid var(--fd-rule);
  border-radius: 4px;
  width: 100%;
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 8px;
}
.fd-gate-qr-card .qr svg { width: 100%; height: 100%; display: block; }
.fd-gate-qr-card .label {
  text-align: center;
  font-size: 13px; font-weight: 600;
  color: var(--fd-ink);
  padding: 8px 0 4px;
}

/* Lock screen */
.fd-lock {
  flex: 1;
  position: relative;
  background: linear-gradient(180deg, #B4A78B 0%, #6E5D40 50%, #2A1F12 100%);
  color: #fff;
  display: flex; flex-direction: column;
  align-items: center;
  font-family: -apple-system, system-ui, sans-serif;
}
.fd-lock-time {
  font-size: 78px; font-weight: 300;
  letter-spacing: -0.04em;
  margin-top: 70px;
  line-height: 0.9;
  text-shadow: 0 2px 24px rgba(0,0,0,0.30);
}
.fd-lock-date {
  margin-top: 6px;
  font-size: 16px; font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.30);
}
.fd-lock-foot {
  margin-top: auto;
  display: flex; gap: 60px;
  padding-bottom: 32px;
}
.fd-lock-foot .icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18);
  display: inline-flex; align-items: center; justify-content: center;
}

/* Numeric input numeric keypad mock */
.fd-num-mock {
  background: #D2D5DA;
  padding: 6px 4px;
}
.fd-num-row {
  display: grid; grid-template-columns: repeat(10, 1fr);
  gap: 4px; padding: 4px;
}
.fd-num-row.symbols { grid-template-columns: repeat(8, 1fr); }
.fd-num-row.controls { grid-template-columns: 50px 1fr 60px; }
.fd-num-key {
  background: #fff;
  border-radius: 5px;
  padding: 8px 0;
  text-align: center;
  font-size: 14px;
  color: var(--fd-ink);
  font-family: -apple-system, system-ui, sans-serif;
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}
.fd-num-key.dim { background: #ABB0BB; color: var(--fd-ink); }
.fd-num-key.space { background: #fff; }
.fd-num-key.return { background: var(--fd-cta); color: #fff; font-weight: 600; }

/* Marketing hero card (next to phone for storytelling) */
.fd-hero-callout {
  margin-top: 28px; max-width: 540px;
  text-align: center;
  color: var(--fd-ink-2);
  font-size: 13px;
  line-height: 1.6;
}
.fd-hero-callout strong { color: var(--fd-cta-deep); font-weight: 600; }

/* ── Mode selector at the top of the stage ───────────────────── */
.fd-mode-tabs {
  display: inline-flex; gap: 0;
  background: var(--fd-paper);
  border: 1px solid var(--fd-rule);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 22px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.fd-mode-tabs button {
  font-family: var(--font-sans);
  background: transparent;
  border: none;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 12.5px; font-weight: 600;
  color: var(--fd-ink-2);
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: all 0.15s var(--ease-standard);
}
.fd-mode-tabs button:hover { color: var(--fd-ink); }
.fd-mode-tabs button.is-active {
  background: var(--fd-ink);
  color: #fff;
}

/* ── Kiosk frame — portrait touchscreen ──────────────────────── */
.fd-kiosk {
  width: 460px; height: 720px;
  border-radius: 26px;
  background: linear-gradient(180deg, #1A1A1E, #0A0A0E);
  padding: 14px;
  box-shadow: 0 50px 90px rgba(0,0,0,0.30), 0 0 0 1px rgba(0,0,0,0.20);
  position: relative;
  display: flex; flex-direction: column;
}
.fd-kiosk::before {
  content: '';
  position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%);
  width: 220px; height: 24px;
  background: linear-gradient(180deg, #2A2A30, #0A0A0E);
  border-radius: 0 0 14px 14px;
}
.fd-kiosk-screen {
  flex: 1;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04) 0%, transparent 18%),
    radial-gradient(ellipse at 50% 100%, #C8A171 0%, #6E512F 40%, #2A1E13 100%);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  display: flex; flex-direction: column;
}

/* Kiosk card sits centered, narrower than the screen */
.fd-kiosk-card {
  background: var(--fd-paper);
  margin: 18px 22px 14px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0,0,0,0.30);
  display: flex; flex-direction: column;
}
.fd-kiosk-card .welcome {
  display: flex; align-items: center; justify-content: flex-end;
  padding: 10px 16px 6px;
  gap: 8px;
  font-size: 11px;
}
.fd-kiosk-card .welcome .name { color: var(--fd-ink); font-weight: 600; }
.fd-kiosk-card .welcome .date { display: block; color: var(--fd-cta); font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.06em; margin-top: 2px; }
.fd-kiosk-card .welcome .av {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, #F4A261, #E76F51);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 11px;
}
.fd-kiosk-card .biz {
  padding: 0 16px 14px;
  font-size: 24px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--fd-ink);
}
.fd-kiosk-card .pill {
  background: #0B0F14; color: #fff;
  padding: 13px 16px;
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 700; letter-spacing: 0.04em; font-size: 14px;
}
.fd-kiosk-card .pill .lockup .yard { color: #fff; }
.fd-kiosk-card .pill .lockup .roll { color: var(--neon); }
.fd-kiosk-card .pill .lockup .fast { margin-left: 6px; letter-spacing: 0.10em; }
.fd-kiosk-card .pill .menu { display: inline-flex; flex-direction: column; gap: 3px; }
.fd-kiosk-card .pill .menu span { width: 16px; height: 1.5px; background: #fff; }

/* Tab pair — alternative path / primary path */
.fd-kiosk-tabpair {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--fd-paper);
}
.fd-kiosk-tab {
  padding: 14px 0; text-align: center;
  font-weight: 600; font-size: 14px;
  cursor: pointer;
  background: var(--fd-paper); color: var(--fd-ink-2);
  border-bottom: 1px solid var(--fd-rule);
}
.fd-kiosk-tab.primary {
  background: var(--fd-cta); color: #fff;
}

.fd-kiosk-body {
  padding: 22px 18px 18px;
  background: var(--fd-paper);
  display: flex; flex-direction: column; gap: 14px;
}
.fd-kiosk-body.center { align-items: center; text-align: center; }
.fd-kiosk-h-lg { font-size: 22px; font-weight: 700; color: var(--fd-ink); margin: 0; letter-spacing: -0.015em; }
.fd-kiosk-h-md { font-size: 17px; font-weight: 600; color: var(--fd-ink); margin: 0; text-align: center; }
.fd-kiosk-touch {
  font-size: 24px; font-weight: 700; color: var(--fd-ink); padding: 30px 0;
  display: inline-flex; align-items: center; gap: 10px;
}
.fd-kiosk-touch .finger { font-size: 28px; }
.fd-kiosk-seal-input {
  background: var(--fd-paper);
  border: 2px solid var(--fd-cta);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 18px; font-family: var(--font-mono); font-weight: 600;
  color: var(--fd-ink);
  text-align: center;
  width: 60%; margin: 0 auto;
}
.fd-kiosk-row {
  display: grid; grid-template-columns: 32px 1fr 16px;
  gap: 12px; align-items: center;
  padding: 12px 4px;
  border-bottom: 1px solid var(--fd-rule);
}
.fd-kiosk-row:last-child { border-bottom: none; }
.fd-kiosk-row .ic { color: var(--fd-ink-3); display: inline-flex; align-items: center; justify-content: center; }
.fd-kiosk-row .k { font-size: 11px; color: var(--fd-ink-3); }
.fd-kiosk-row .v { font-size: 14px; color: var(--fd-ink); font-weight: 500; margin-top: 2px; line-height: 1.4; }
.fd-kiosk-row .ch { color: var(--fd-ink-3); }

/* Embedded BOL document */
.fd-bol {
  background: var(--fd-paper);
  border: 1px solid var(--fd-rule);
  border-radius: 8px;
  padding: 16px 18px;
  font-size: 11px;
  color: var(--fd-ink-2);
  display: flex; flex-direction: column; gap: 8px;
}
.fd-bol-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.fd-bol-title { font-size: 18px; font-weight: 700; color: var(--fd-ink); letter-spacing: -0.01em; }
.fd-bol-barcode {
  display: flex; gap: 1.5px;
  align-items: flex-end;
  height: 28px;
}
.fd-bol-barcode span {
  display: inline-block; width: 1.5px; background: #000; height: 100%;
}
.fd-bol-barcode span:nth-child(2n) { height: 60%; width: 1px; }
.fd-bol-barcode span:nth-child(3n) { width: 2.5px; }
.fd-bol-barcode span:nth-child(5n) { height: 80%; }
.fd-bol-meta { display: flex; gap: 18px; }
.fd-bol-meta div { display: flex; flex-direction: column; }
.fd-bol-meta div span:first-child { color: var(--fd-ink-3); font-size: 9.5px; }
.fd-bol-meta div span:last-child { color: var(--fd-ink); font-weight: 600; font-family: var(--font-mono); }
.fd-bol-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; padding: 8px 0; border-top: 1px solid var(--fd-rule); border-bottom: 1px solid var(--fd-rule); }
.fd-bol-grid div { display: flex; flex-direction: column; gap: 3px; }
.fd-bol-grid div .lbl { color: var(--fd-ink-3); font-size: 9.5px; font-weight: 700; }
.fd-bol-grid div .val { color: var(--fd-ink); font-size: 10.5px; line-height: 1.45; }
.fd-bol-table { font-size: 10px; }
.fd-bol-table .row { display: grid; grid-template-columns: 1.4fr 0.6fr 0.7fr 0.9fr 16px; padding: 4px 0; border-bottom: 1px solid var(--fd-rule); }
.fd-bol-table .row.head { color: var(--fd-ink-3); font-weight: 600; }
.fd-bol-table .row.head + .row { border-top: 0; }

/* Signature pad */
.fd-sig-prompt {
  text-align: left;
  font-size: 16px; font-weight: 500;
  color: var(--fd-ink); margin: 4px 0 6px;
  line-height: 1.35;
}
.fd-sig-prompt strong { font-weight: 700; font-family: var(--font-mono); }
.fd-sig-pad {
  width: 100%; aspect-ratio: 16 / 7;
  background: var(--fd-paper);
  border: 1px solid var(--fd-rule);
  border-radius: 10px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.fd-sig-pad::after {
  content: ''; position: absolute; bottom: 14%; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--fd-rule), transparent);
}
.fd-sig-pad svg { width: 70%; height: 70%; }

/* Thank you state with print indicator */
.fd-kiosk-thanks {
  padding: 20px 18px;
  background: var(--fd-paper);
  color: var(--fd-ink);
  text-align: left;
}
.fd-kiosk-thanks h3 { font-size: 20px; font-weight: 700; margin: 0 0 14px; color: var(--fd-ink); }
.fd-kiosk-thanks p { font-size: 14px; color: var(--fd-ink-2); margin: 0 0 12px; line-height: 1.5; }
.fd-kiosk-print {
  margin: 18px 22px;
  background: rgba(255,255,255,0.06);
  border: 1px dashed rgba(255,255,255,0.18);
  border-radius: 10px;
  padding: 14px 16px;
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  display: flex; gap: 12px; align-items: center;
  font-family: var(--font-mono); letter-spacing: 0.04em;
}
.fd-kiosk-print .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--neon); box-shadow: 0 0 8px rgba(0,180,255,0.6);
  animation: fd-blink 1.4s ease-in-out infinite;
}
@keyframes fd-blink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.fd-kiosk-paper {
  margin: -2px 22px 0;
  height: 30px;
  background: repeating-linear-gradient(180deg, #f7f1e1 0 4px, #ede4cd 4px 8px);
  border-radius: 2px;
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.20);
  position: relative;
}
.fd-kiosk-paper::before {
  content: '';
  position: absolute; left: 8%; right: 8%; top: 6px;
  height: 4px;
  background: repeating-linear-gradient(90deg, #000 0 8px, transparent 8px 14px);
  opacity: 0.4;
}

/* ── Today vs FreightRoll comparison view ────────────────────── */
.fd-vs {
  width: 100%;
  max-width: 1100px;
  display: grid; grid-template-columns: 1fr 64px 1fr;
  gap: 22px;
  align-items: stretch;
  margin-top: 8px;
}
.fd-vs-col {
  background: var(--fd-paper);
  border-radius: 16px;
  border: 1px solid var(--fd-rule);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.fd-vs-col.today { background: linear-gradient(180deg, #FAF8F4 0%, #F2EBDE 100%); }
.fd-vs-col.now { background: linear-gradient(180deg, #FFFFFF 0%, #F1F6FF 100%); border-color: rgba(74,141,224,0.30); }
.fd-vs-col-head {
  padding: 18px 22px;
  display: flex; flex-direction: column; gap: 4px;
  border-bottom: 1px solid var(--fd-rule);
}
.fd-vs-col.today .fd-vs-col-head { background: linear-gradient(90deg, rgba(217,56,29,0.06), transparent); }
.fd-vs-col.now .fd-vs-col-head { background: linear-gradient(90deg, rgba(74,141,224,0.06), transparent); }
.fd-vs-col-head .eyebrow {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.22em;
  font-family: var(--font-mono);
  font-weight: 600;
}
.fd-vs-col.today .fd-vs-col-head .eyebrow { color: #B33420; }
.fd-vs-col.now .fd-vs-col-head .eyebrow { color: var(--fd-cta-deep); }
.fd-vs-col-head h2 {
  margin: 4px 0 0;
  font-size: 22px; font-weight: 800; letter-spacing: -0.015em;
  color: var(--fd-ink);
}
.fd-vs-col-head p { margin: 6px 0 0; color: var(--fd-ink-2); font-size: 13px; line-height: 1.5; }

.fd-vs-steps { padding: 6px 22px 14px; flex: 1; }
.fd-vs-step {
  display: grid; grid-template-columns: 28px 1fr auto;
  gap: 12px; align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px dashed var(--fd-rule);
}
.fd-vs-step:last-child { border-bottom: none; }
.fd-vs-step .n {
  font-family: var(--font-mono); font-weight: 700; font-size: 12px;
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.fd-vs-col.today .fd-vs-step .n { background: rgba(217,56,29,0.10); color: #B33420; }
.fd-vs-col.now .fd-vs-step .n { background: rgba(74,141,224,0.12); color: var(--fd-cta-deep); }
.fd-vs-step .body { display: flex; flex-direction: column; gap: 2px; }
.fd-vs-step .body .top { color: var(--fd-ink); font-weight: 600; font-size: 13.5px; }
.fd-vs-step .body .meta { color: var(--fd-ink-2); font-size: 12px; line-height: 1.45; }
.fd-vs-step .time {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fd-ink-3); font-weight: 600;
  white-space: nowrap;
}

.fd-vs-foot {
  padding: 14px 22px;
  border-top: 1px solid var(--fd-rule);
  display: flex; justify-content: space-between; align-items: baseline;
}
.fd-vs-foot .label { color: var(--fd-ink-3); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; font-family: var(--font-mono); }
.fd-vs-foot .total {
  font-family: var(--font-mono); font-weight: 700; font-size: 22px;
}
.fd-vs-col.today .fd-vs-foot .total { color: #B33420; }
.fd-vs-col.now .fd-vs-foot .total { color: var(--fd-cta-deep); }

.fd-vs-arrow {
  display: flex; align-items: center; justify-content: center;
  color: var(--fd-cta-deep);
  font-size: 28px; font-weight: 700;
}
.fd-vs-arrow-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--fd-cta-deep);
  font-family: var(--font-mono); font-size: 9.5px;
  text-transform: uppercase; letter-spacing: 0.18em;
}
.fd-vs-arrow-wrap svg { color: var(--fd-cta-deep); }

.fd-vs-savings {
  width: 100%; max-width: 1100px;
  margin-top: 22px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.fd-vs-stat {
  background: var(--fd-paper);
  border: 1px solid var(--fd-rule);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 4px;
}
.fd-vs-stat .num {
  font-family: var(--font-mono); font-size: 26px; font-weight: 700;
  letter-spacing: -0.02em; color: var(--fd-cta-deep);
}
.fd-vs-stat .lbl { font-size: 12px; color: var(--fd-ink-2); }
.fd-vs-stat .src { font-size: 10.5px; color: var(--fd-ink-3); font-family: var(--font-mono); margin-top: 2px; }

.fd-vs-callout {
  width: 100%; max-width: 1100px;
  margin: 28px 0 0;
  background: linear-gradient(135deg, #0B0F14, #1A2434);
  color: #fff;
  border-radius: 18px;
  padding: 28px 32px;
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
}
.fd-vs-callout h3 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.015em; }
.fd-vs-callout p { margin: 8px 0 0; color: rgba(255,255,255,0.75); font-size: 14px; line-height: 1.55; }
.fd-vs-callout .ratio {
  font-family: var(--font-mono); font-size: 56px; font-weight: 700;
  color: var(--neon); line-height: 1; letter-spacing: -0.04em;
  text-shadow: 0 0 32px rgba(0,180,255,0.40);
}
.fd-vs-callout .ratio span { font-size: 18px; color: rgba(255,255,255,0.55); margin-left: 6px; }

/* ── Tap-to-advance wrapper around the phone/kiosk ───────────── */
.fd-tap-wrap {
  position: relative;
  cursor: pointer;
  user-select: none;
  transition: transform 0.18s var(--ease-standard);
}
.fd-tap-wrap:hover { transform: translateY(-2px); }
.fd-tap-wrap:active { transform: translateY(0); }
.fd-tap-wrap::after {
  content: '';
  position: absolute; inset: -8px;
  border-radius: 56px;
  pointer-events: none;
  border: 1px solid transparent;
  transition: border-color 0.18s var(--ease-standard), box-shadow 0.18s var(--ease-standard);
}
.fd-tap-wrap:hover::after {
  border-color: rgba(74,141,224,0.30);
  box-shadow: 0 0 0 6px rgba(74,141,224,0.08);
}
.fd-tap-wrap.is-pulsing::after { animation: fd-tap-pulse 1.2s var(--ease-standard) 2; }
@keyframes fd-tap-pulse {
  0% { box-shadow: 0 0 0 0 rgba(74,141,224,0.45); border-color: rgba(74,141,224,0.60); }
  60% { box-shadow: 0 0 0 18px rgba(74,141,224,0); border-color: rgba(74,141,224,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,141,224,0); border-color: rgba(74,141,224,0); }
}
.fd-tap-hint {
  position: absolute; left: 50%; bottom: -32px; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--fd-ink-3); pointer-events: none;
  opacity: 0; transition: opacity 0.18s var(--ease-standard);
  white-space: nowrap;
}
.fd-tap-wrap:hover .fd-tap-hint, .fd-tap-wrap.is-pulsing .fd-tap-hint { opacity: 1; }

/* ── Video modal — real footage overlay ─────────────────────── */
.fd-video-toggle {
  width: 100%;
  background: rgba(74,141,224,0.10);
  border: 1px solid rgba(74,141,224,0.30);
  color: var(--fd-cta);
  padding: 10px 12px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-weight: 600; font-size: 13px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: all 0.15s var(--ease-standard);
}
.fd-video-toggle:hover {
  background: var(--fd-cta); color: #fff;
  border-color: var(--fd-cta);
  box-shadow: 0 6px 18px rgba(74,141,224,0.30);
}
.fd-video-modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(2, 4, 8, 0.78);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
  animation: fd-fadein 200ms var(--ease-standard);
}
@keyframes fd-fadein { from { opacity: 0; } to { opacity: 1; } }
.fd-video-modal-card {
  background: linear-gradient(180deg, #0F1218, #0A0C10);
  border: 1px solid rgba(0,180,255,0.30);
  border-radius: 18px;
  max-width: 1100px;
  width: 100%;
  max-height: 92vh;
  display: flex; flex-direction: column;
  box-shadow: 0 32px 90px rgba(0,0,0,0.55);
  overflow: hidden;
}
.fd-video-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(0,180,255,0.16);
}
.fd-video-title {
  color: #fff; font-weight: 700; font-size: 17px;
  letter-spacing: -0.01em;
}
.fd-video-sub {
  margin-top: 2px;
  font-family: var(--font-mono); font-size: 11px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.08em;
}
.fd-video-close {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  width: 32px; height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
}
.fd-video-close:hover { background: rgba(255,42,0,0.18); border-color: rgba(255,42,0,0.40); color: var(--fd-ember); }
.fd-video-player {
  width: 100%;
  max-height: calc(92vh - 140px);
  background: #000;
  display: block;
}
.fd-video-foot {
  padding: 12px 24px;
  font-size: 12px; color: rgba(255,255,255,0.55);
  border-top: 1px solid rgba(0,180,255,0.10);
  font-family: var(--font-sans);
}

.fd-play { background: var(--fd-ink) !important; color: #fff !important; border-color: var(--fd-ink) !important; }
.fd-play:hover { background: var(--fd-cta-deep) !important; border-color: var(--fd-cta-deep) !important; color: #fff !important; }
.fd-play.is-on { background: var(--fd-cta) !important; border-color: var(--fd-cta) !important; }

.fd-progress {
  display: flex; gap: 6px; margin-top: 18px;
  padding: 6px 10px; background: var(--fd-paper);
  border-radius: 999px; border: 1px solid var(--fd-rule);
}
.fd-progress .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--fd-rule); cursor: pointer;
  transition: all 0.15s var(--ease-standard);
}
.fd-progress .dot:hover { background: var(--fd-cta); transform: scale(1.25); }
.fd-progress .dot.is-done { background: var(--fd-cta-deep); }
.fd-progress .dot.is-active {
  background: var(--fd-cta); width: 22px; border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(74,141,224,0.18);
}

.fd-meta-strip {
  margin-top: 18px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  width: 100%; max-width: 540px;
}
.fd-meta-strip .slot {
  background: var(--fd-paper);
  border: 1px solid var(--fd-rule);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex; flex-direction: column; gap: 2px;
}
.fd-meta-strip .k {
  font-family: var(--font-mono); font-size: 9.5px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--fd-ink-3);
}
.fd-meta-strip .v {
  font-family: var(--font-mono); font-size: 16px; font-weight: 700;
  color: var(--fd-cta-deep); letter-spacing: -0.01em;
}
.fd-meta-strip .v.paper { color: #B33420; text-decoration: line-through; opacity: 0.8; }

/* ── Side-by-side phone + kiosk duo ──────────────────────────── */
.fd-duo {
  display: grid; grid-template-columns: auto auto auto; gap: 18px;
  align-items: center;
  position: relative;
  cursor: pointer;
  padding: 8px;
  max-width: 100%;
}
.fd-duo:hover { transform: translateY(-2px); transition: transform 0.18s var(--ease-standard); }
.fd-duo.is-pulsing::after {
  content: ''; position: absolute; inset: -8px;
  border-radius: 18px;
  animation: fd-tap-pulse 1.2s var(--ease-standard) 2;
  pointer-events: none;
}
.fd-duo-col {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  position: relative;
  transition: opacity 0.2s var(--ease-standard);
}
.fd-duo-col.is-passive { opacity: 0.42; filter: grayscale(0.35); }
.fd-duo-col.is-passive:hover { opacity: 0.7; filter: grayscale(0); }

.fd-duo-cap {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px;
  background: var(--fd-paper);
  border: 1px solid var(--fd-rule);
  border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fd-ink-2); letter-spacing: 0.10em; text-transform: uppercase;
}
.fd-duo-cap .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--fd-ink-3);
}
.fd-duo-col.is-active .fd-duo-cap {
  border-color: rgba(74,141,224,0.45);
  background: rgba(74,141,224,0.06);
  color: var(--fd-cta-deep);
}
.fd-duo-col.is-active .fd-duo-cap .dot {
  background: var(--fd-cta);
  box-shadow: 0 0 0 4px rgba(74,141,224,0.18);
  animation: fd-blink 1.4s ease-in-out infinite;
}
.fd-duo-cap .lbl { font-weight: 700; }
.fd-duo-cap .badge {
  background: var(--fd-cta); color: #fff;
  padding: 2px 8px; border-radius: 999px;
  font-size: 9px; letter-spacing: 0.12em;
}
.fd-duo-cap .badge.alt { background: var(--fd-ink); }

.fd-duo-or {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  align-self: stretch;
  justify-content: center;
}
.fd-duo-or .line {
  flex: 1; width: 1px;
  background: linear-gradient(180deg, transparent, var(--fd-rule) 30%, var(--fd-rule) 70%, transparent);
}
.fd-duo-or .word {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  color: var(--fd-ink-3); letter-spacing: 0.18em;
  padding: 6px 10px;
  background: var(--fd-paper);
  border: 1px solid var(--fd-rule);
  border-radius: 999px;
}

/* Kiosk frame — slimmer to fit side-by-side */
.fd-kiosk { width: 360px; height: 600px; }
.fd-kiosk.is-idle { opacity: 0.6; }

.fd-meta-strip { max-width: 880px; }
.fd-meta-strip .v.mini {
  font-size: 11px; color: var(--fd-cta-deep);
  font-weight: 600; letter-spacing: 0.04em;
  text-transform: lowercase;
}

.fd-tap-hint {
  position: absolute; left: 50%; bottom: -28px;
  transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--fd-ink-3);
  pointer-events: none;
  opacity: 0; transition: opacity 0.18s var(--ease-standard);
  white-space: nowrap;
}
.fd-duo:hover .fd-tap-hint, .fd-duo.is-pulsing .fd-tap-hint { opacity: 1; }

@keyframes fd-tap-pulse {
  0% { box-shadow: 0 0 0 0 rgba(74,141,224,0.30); }
  60% { box-shadow: 0 0 0 18px rgba(74,141,224,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,141,224,0); }
}

@media (max-width: 1280px) {
  .fd-duo { gap: 10px; }
  .fd-kiosk { width: 300px; height: 520px; }
  .fd-stage { padding: 20px 14px 32px; }
}
@media (max-width: 1100px) {
  .fd-app { grid-template-columns: 1fr; }
  .fd-rail { max-height: none; border-right: none; border-bottom: 1px solid rgba(0,180,255,0.10); }
  .fd-duo { grid-template-columns: 1fr; }
  .fd-duo-or { flex-direction: row; padding: 6px 0; }
  .fd-duo-or .line { width: auto; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--fd-rule), transparent); }
}

/* Scrollbars */
.fd-rail::-webkit-scrollbar { width: 6px; }
.fd-rail::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.10); border-radius: 3px; }
.fd-body::-webkit-scrollbar, .fd-sa::-webkit-scrollbar { width: 4px; }
.fd-body::-webkit-scrollbar-thumb, .fd-sa::-webkit-scrollbar-thumb { background: var(--fd-rule); border-radius: 2px; }
