/* =====================================================================
   "How Fix-EP works" walkthrough (js/tour.js) - V2 light style.
   Self-contained: the base tour layout/animation rules first, then the
   v2 light-theme overrides further down (marked). No other tour
   stylesheet is needed.
   ===================================================================== */

/* ---------- BASE (layout + animation) ---------- */
/* =====================================================================
   "How Fix-EP works" walkthrough (js/tour.js)
   A step-by-step animated overlay. Each step plays a short looping
   portrait "screen recording" built from the site's own design tokens
   (see :root in style.css) - no video files, nothing to download.
   Everything here is namespaced .fxt- so none of it can leak into the
   rest of the site, and none of the site's own rules leak into it.
   ===================================================================== */

html.fxt-lock, html.fxt-lock body { overflow: hidden; }

/* ---------- Launch buttons ---------- */
.tour-launch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 0;
  background: none;
  border: none;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.tour-launch .tour-launch-icon {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--hazard);
  color: var(--hazard);
  font-size: 0.7rem;
  transition: background 0.15s, color 0.15s;
}
.tour-launch:hover .tour-launch-icon { background: var(--hazard); color: var(--hazard-ink); }
.tour-launch:hover .tour-launch-text { text-decoration: underline; }
.tour-launch .tour-launch-len { color: var(--steel); }

/* ---------- Overlay shell ---------- */
.fxt-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;            /* above the interstitial (9999) and lightbox */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.fxt-overlay[hidden] { display: none; }
.fxt-overlay.open { opacity: 1; }
.fxt-backdrop {
  position: absolute; inset: 0;
  background: rgba(10,10,12,0.82);
  backdrop-filter: blur(4px);
}
.fxt-modal {
  position: relative;
  background: var(--asphalt);
  border: 3px solid var(--hazard);
  max-height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 23px 18px;
  transform: translateY(12px) scale(0.985);
  transition: transform 0.25s ease;
  color: var(--ink);
  font-family: var(--font-body);
}
.fxt-overlay.open .fxt-modal { transform: none; }
.fxt-modal::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 8px;
  background: repeating-linear-gradient(135deg, var(--hazard), var(--hazard) 12px, var(--asphalt) 12px, var(--asphalt) 24px);
}

.fxt-top {
  align-self: stretch;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 12px;
}
.fxt-heading { min-width: 0; }
.fxt-top .eyebrow { font-size: 0.66rem; }
.fxt-heading h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.25rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin: 5px 0 0;
}
.fxt-close {
  width: 38px; height: 38px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: none;
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.fxt-close:hover { background: var(--hazard); color: var(--hazard-ink); border-color: var(--hazard); }

.fxt-stage {
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--asphalt);
}

.fxt-controls {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
}
.fxt-controls .btn { padding: 10px 14px; font-size: 0.74rem; white-space: nowrap; }
.fxt-controls .btn:disabled { visibility: hidden; }
.fxt-dots { display: flex; gap: 5px; }
.fxt-dot {
  width: 16px; height: 6px;
  padding: 0;
  border: none;
  background: var(--asphalt-3);
  cursor: pointer;
  transition: background 0.2s;
}
.fxt-dot.done { background: var(--paper-dim); }
.fxt-dot.on { background: var(--hazard); }

/* Wide screens: animation on the left, step text on the right. The
   title in the top bar is hidden here because the side text repeats it. */
.fxt-caption { display: none; }
@media (min-width: 760px) {
  .fxt-modal {
    display: grid;
    grid-template-columns: auto minmax(260px, 340px);
    grid-template-rows: auto 1fr auto;
    column-gap: 28px;
    align-items: stretch;
  }
  .fxt-top { grid-column: 1 / -1; margin-bottom: 14px; }
  .fxt-heading h2 { display: none; }
  .fxt-stage { grid-column: 1; grid-row: 2 / 4; }
  .fxt-caption { display: block; grid-column: 2; grid-row: 2; align-self: center; padding: 10px 0; }
  .fxt-controls { grid-column: 2; grid-row: 3; border-top: 1px solid var(--border); padding-top: 16px; }
  .fxt-controls .btn { padding: 11px 18px; font-size: 0.78rem; }
  .fxt-dot { width: 20px; }
}
.fxt-caption .fxt-stepno { font-family: var(--font-display); font-size: 3.2rem; line-height: 1; color: var(--hazard); display: block; margin-bottom: 6px; }
.fxt-caption h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 1.7rem; line-height: 1.05; margin: 0 0 12px; letter-spacing: 0.02em; }
.fxt-caption p { color: var(--paper-dim); font-size: 0.95rem; line-height: 1.55; margin: 0 0 10px; }
.fxt-caption p strong { color: var(--ink); font-weight: 600; }
.fxt-caption.swap { animation: fxt-caption-in 0.35s ease; }
@keyframes fxt-caption-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Phones: full screen, animation only */
@media (max-width: 759px) {
  .fxt-overlay { padding: 0; }
  .fxt-modal {
    width: 100%;
    height: 100%;
    border: none;
    justify-content: center;
    padding: 14px 16px 16px;
  }
  .fxt-top { margin: 6px 0 10px; }
  .fxt-heading h2 { font-size: 1.1rem; }
  .fxt-dot { width: 12px; }
}

/* =====================================================================
   The stage: a fixed 360 x 640 portrait "phone screen", scaled to fit.
   ===================================================================== */
.fxt-screen {
  position: absolute;
  left: 0; top: 0;
  width: 360px;
  height: 640px;
  transform-origin: 0 0;
  overflow: hidden;
  background: var(--asphalt);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
  user-select: none;
  pointer-events: none;
}
.fxt-screen.fade-in { animation: fxt-screen-in 0.4s ease; }
@keyframes fxt-screen-in { from { opacity: 0; } to { opacity: 1; } }
.fxt-screen * { box-sizing: border-box; }
.fxt-reduced .fxt-screen *, .fxt-reduced .fxt-screen { transition: none !important; animation: none !important; }

/* Mini header (mobile layout of the real site header) */
.fxt-nav {
  position: absolute; left: 0; right: 0; top: 0;
  height: 50px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px;
  background: rgba(23,24,26,0.96);
  border-bottom: 1px solid var(--border);
  z-index: 20;
}
.fxt-brand {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 20px;
}
.fxt-brand img { width: 24px; height: 24px; object-fit: contain; }
.fxt-burger {
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.fxt-burger i { display: block; width: 16px; height: 2px; background: var(--ink); transition: transform 0.2s, opacity 0.2s; }
.fxt-burger.open i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.fxt-burger.open i:nth-child(2) { opacity: 0; }
.fxt-burger.open i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.fxt-stripe {
  position: absolute; left: 0; right: 0; top: 50px; height: 7px; z-index: 20;
  background: repeating-linear-gradient(135deg, var(--hazard), var(--hazard) 10px, var(--asphalt) 10px, var(--asphalt) 20px);
}
.fxt-menu {
  position: absolute; left: 0; right: 0; top: 50px; z-index: 19;
  background: var(--asphalt-2);
  border-bottom: 1px solid var(--border);
  padding: 8px 14px 14px;
  transform: translateY(-110%);
  transition: transform 0.3s ease;
}
.fxt-menu.open { transform: translateY(7px); }
.fxt-menu span {
  display: block;
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--paper-dim);
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.fxt-menu .fxt-cta {
  margin-top: 12px;
  border: none;
  background: var(--alert); color: var(--ink);
  text-align: center;
  padding: 10px;
}

/* Page body under the header */
.fxt-body {
  position: absolute; left: 0; right: 0; top: 57px; bottom: 0;
  overflow: hidden;
}
.fxt-scroll { position: absolute; left: 0; right: 0; top: 0; transition: transform 0.7s cubic-bezier(.45,.05,.25,1); }
.fxt-page { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s; }
.fxt-page.on { opacity: 1; visibility: visible; }
.fxt-pad { padding: 16px; }

/* Type */
.fxt-eyebrow { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.14em; font-size: 9px; color: var(--hazard); }
.fxt-h1 { font-family: var(--font-display); text-transform: uppercase; font-size: 34px; line-height: 1.02; margin: 8px 0 10px; }
.fxt-h1 span { display: block; }
.fxt-h1 em { font-style: normal; color: var(--alert); }
.fxt-h2 { font-family: var(--font-display); text-transform: uppercase; font-size: 24px; line-height: 1.05; margin: 0 0 6px; }
.fxt-h3 { font-weight: 600; font-size: 13px; margin: 0 0 8px; }
.fxt-p { color: var(--paper-dim); font-size: 11.5px; line-height: 1.5; margin: 0 0 12px; }
.fxt-label { font-family: var(--font-mono); font-size: 8.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--paper-dim); margin: 0 0 5px; display: block; }
.fxt-hint { font-size: 10px; color: var(--steel); margin: 4px 0 0; }

/* Controls */
.fxt-btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em;
  font-size: 10px;
  padding: 9px 14px;
  border: 1px solid var(--hazard);
  color: var(--hazard);
  background: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, opacity 0.2s, transform 0.12s;
}
.fxt-btn.solid { background: var(--hazard); color: var(--hazard-ink); }
.fxt-btn.dis { opacity: 0.4; }
.fxt-btn.hover { background: var(--hazard); color: var(--hazard-ink); }
.fxt-btn.solid.hover { background: #ffbe2e; }
.pressed { transform: scale(0.95) !important; }
.fxt-input {
  position: relative;
  height: 32px;
  display: flex; align-items: center;
  padding: 0 10px;
  background: var(--asphalt);
  border: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--ink);
  transition: border-color 0.2s;
  white-space: nowrap;
  overflow: hidden;
}
.fxt-input.tall { height: 46px; align-items: flex-start; padding-top: 8px; white-space: normal; }
.fxt-input .ph { color: #6d6e70; }
.fxt-input .v:not(:empty) + .ph { display: none; }
.fxt-input.focus { border-color: var(--hazard); }
.fxt-input.focus .v::after {
  content: ""; display: inline-block; width: 1px; height: 13px; background: var(--hazard);
  vertical-align: -2px; margin-left: 1px; animation: fxt-caret 0.9s steps(1) infinite;
}
@keyframes fxt-caret { 50% { opacity: 0; } }
.fxt-row { display: flex; gap: 8px; }
.fxt-row > .fxt-input { flex: 1; }
.fxt-field { margin-bottom: 11px; }
.fxt-link { font-family: var(--font-mono); font-size: 10.5px; color: var(--hazard); text-decoration: underline; display: inline-block; }
.fxt-card { background: var(--asphalt-2); border: 1px solid var(--border); padding: 12px; }
.fxt-msg {
  font-size: 11px; line-height: 1.45;
  padding: 9px 11px;
  border-left: 3px solid var(--clean);
  background: rgba(63,143,95,0.14);
  color: var(--ink);
}
.fxt-check { display: flex; align-items: center; gap: 8px; font-size: 11.5px; margin: 7px 0; }
.fxt-box {
  width: 15px; height: 15px; flex-shrink: 0;
  border: 1px solid var(--paper-dim);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; line-height: 1; color: var(--hazard-ink);
  transition: background 0.15s, border-color 0.15s;
}
.fxt-box.on { background: var(--hazard); border-color: var(--hazard); }
.fxt-box.on::after { content: "\2713"; font-weight: 700; }

/* Reveal helpers */
.t-pop { opacity: 0; transform: translateY(10px); transition: opacity 0.45s ease, transform 0.45s ease; }
.t-pop.t-in { opacity: 1; transform: none; }
.t-fade { opacity: 0; transition: opacity 0.4s ease; }
.t-fade.t-in { opacity: 1; }
.t-grow { max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.45s ease, opacity 0.35s ease; }
.t-grow.t-in { max-height: 120px; opacity: 1; }

/* Photos: crops of the site's own hero artwork stand in for report photos */
.fxt-photo {
  position: relative;
  background-color: #222;
  background-image: url("../img/hero-litter-wide.jpg");
  background-size: auto 100%;
  background-position: 30% 50%;
  overflow: hidden;
}
/* "After" photos: a tidy, empty street - sky, trimmed verge, clear pavement */
.fxt-photo.after {
  background-image:
    linear-gradient(180deg, rgba(0,0,0,0) 70%, rgba(0,0,0,0.2) 100%),
    linear-gradient(176deg, #8ea3b6 0%, #b9c6d1 40%, #b9c6d1 40.5%, #6b7a5a 41%, #5e7a45 60%, #8f8f8a 60.5%, #a5a39c 100%);
  background-size: auto;
}
.fxt-photo.after::before {
  content: ""; position: absolute; left: -10%; right: -10%; top: 60%; height: 3px;
  background: rgba(231,227,214,0.7);
}
.fxt-photo.after::after {
  content: ""; position: absolute; left: 62%; top: 14%; width: 3px; height: 46%;
  background: #3a3c40; box-shadow: -2px -2px 0 3px #3a3c40 inset;
}
.fxt-tag {
  position: absolute; left: 6px; top: 6px;
  font-family: var(--font-mono); font-size: 8px; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 3px 6px;
  background: var(--alert); color: var(--ink);
}
.fxt-tag.clean { background: var(--clean); }

/* Flip card (before / after) */
.fxt-flip { perspective: 700px; position: relative; }
.fxt-flip-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 0.7s ease; }
.fxt-flip .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.fxt-flip .face.back { transform: rotateY(180deg); }
.fxt-flip.flipped .fxt-flip-inner { transform: rotateY(180deg); }
.fxt-flip.looping .fxt-flip-inner { animation: fxt-flip-loop 4s ease-in-out infinite; }
@keyframes fxt-flip-loop {
  0%, 40% { transform: rotateY(180deg); }
  50%, 90% { transform: rotateY(360deg); }
  100% { transform: rotateY(540deg); }
}

/* Touch indicator (the "finger") */
.fxt-touch {
  position: absolute; left: 0; top: 0;
  width: 30px; height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  background: rgba(244,242,234,0.28);
  border: 2px solid rgba(244,242,234,0.85);
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  z-index: 50;
  opacity: 0;
  transition-property: transform, opacity;
  transition-timing-function: cubic-bezier(.45,.05,.25,1);
}
.fxt-touch.show { opacity: 1; }
.fxt-touch.down { background: rgba(242,169,0,0.55); border-color: var(--hazard); }
.fxt-ripple {
  position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px;
  border-radius: 50%; border: 2px solid var(--hazard);
  z-index: 49;
  animation: fxt-ripple 0.55s ease-out forwards;
}
@keyframes fxt-ripple { from { transform: scale(0.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }

/* ---------- Scene 1: purpose ---------- */
.fxt-hero-bg {
  position: absolute; left: 0; right: 0; top: 0; height: 330px;
  background: url("../img/hero-litter-wide.jpg") 38% 100% / auto 100% no-repeat;
  opacity: 0.55;
}
.fxt-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(23,24,26,0.35) 0%, rgba(23,24,26,0.55) 60%, var(--asphalt) 100%);
}
.fxt-hero { position: relative; }
.fxt-stats { display: flex; gap: 0; margin: 4px 0 18px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.fxt-stats > div { flex: 1; padding: 10px 0 9px; font-family: var(--font-mono); }
.fxt-stats b { display: block; font-size: 22px; font-weight: 600; color: var(--hazard); line-height: 1.1; }
.fxt-stats .alert b { color: var(--alert); }
.fxt-stats span { font-size: 8px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--steel); }
.fxt-flow { display: flex; flex-direction: column; gap: 7px; }
.fxt-flow-item {
  display: flex; align-items: center; gap: 11px;
  background: var(--asphalt-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--hazard);
  padding: 8px 10px;
}
.fxt-flow-item .n {
  font-family: var(--font-display); font-size: 20px; color: var(--hazard); width: 16px; text-align: center;
}
.fxt-flow-item b { display: block; font-family: var(--font-display); text-transform: uppercase; font-size: 14px; font-weight: 400; letter-spacing: 0.02em; }
.fxt-flow-item small { display: block; font-size: 10px; color: var(--paper-dim); }
.fxt-flow-item.fixed { border-left-color: var(--clean); }
.fxt-flow-item.fixed .n { color: var(--clean); }
.fxt-flow-item.council { border-left-color: var(--alert); }
.fxt-flow-item.council .n { color: var(--alert); }
.fxt-stamp {
  position: absolute; right: 18px; top: 92px;
  font-family: var(--font-display); font-size: 30px; letter-spacing: 0.04em;
  color: var(--clean);
  border: 3px solid var(--clean);
  padding: 2px 10px;
  transform: rotate(-12deg) scale(2.2);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(.3,1.6,.5,1), opacity 0.2s;
  background: rgba(23,24,26,0.6);
}
.fxt-stamp.t-in { transform: rotate(-12deg) scale(1); opacity: 1; }

/* ---------- Scene 2: map ---------- */
.fxt-map {
  position: relative;
  height: 300px;
  overflow: hidden;
  background: #1f2023;
  border: 1px solid var(--border);
}
.fxt-map-zoom { position: absolute; inset: 0; transition: transform 1.1s cubic-bezier(.45,.05,.25,1); transform-origin: 190px 150px; }
.fxt-map-zoom.zoomed { transform: scale(1.9); }
.fxt-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.fxt-map .road { stroke: #33353b; fill: none; stroke-linecap: round; }
.fxt-map .road.major { stroke: #3e4047; }
.fxt-map .water { stroke: #1f2c36; fill: none; }
.fxt-map .park { fill: #1f2a23; }
.fxt-maplabel { position: absolute; font-family: var(--font-mono); font-size: 7px; letter-spacing: 0.1em; color: #6b6d72; text-transform: uppercase; }
.fxt-pin {
  position: absolute;
  width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%;
  border: 1.5px solid var(--asphalt);
  opacity: 0;
  transform: translateY(-24px);
  transition: transform 0.45s cubic-bezier(.3,1.6,.5,1), opacity 0.25s;
}
.fxt-pin.t-in { opacity: 1; transform: none; }
.fxt-pin.red { background: var(--alert); }
.fxt-pin.amber { background: var(--hazard); }
.fxt-pin.green { background: var(--clean); }
.fxt-halo {
  position: absolute; border-radius: 50%;
  opacity: 0; transition: opacity 0.8s ease 0.3s;
  transform: translate(-50%, -50%);
}
.fxt-halo.t-in { opacity: 0.16; }
.fxt-halo.red { background: var(--alert); }
.fxt-halo.amber { background: var(--hazard); }
.fxt-pin.pulse::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid var(--alert);
  animation: fxt-pulse 1.1s ease-out infinite;
}
@keyframes fxt-pulse { from { transform: scale(0.6); opacity: 1; } to { transform: scale(2); opacity: 0; } }
.fxt-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 10px; font-family: var(--font-mono); font-size: 9px; color: var(--paper-dim); }
.fxt-legend span { display: flex; align-items: center; gap: 5px; padding: 3px 5px; border: 1px solid transparent; transition: border-color 0.3s, color 0.3s; }
.fxt-legend i { width: 9px; height: 9px; display: inline-block; }
.fxt-legend span.hl { border-color: var(--alert); color: var(--ink); }
.fxt-lightbox {
  position: absolute; inset: 0; z-index: 30;
  background: #0c0c0d;
  opacity: 0; transform: scale(0.96);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.fxt-lightbox.t-in { opacity: 1; transform: none; }
.fxt-lb-photo { position: absolute; left: 50%; top: 116px; width: 294px; height: 392px; margin-left: -147px; }
.fxt-lb-photo .fxt-photo { position: absolute; inset: 0; animation: fxt-screen-in 0.35s ease; }
.fxt-lb-top { position: absolute; left: 0; right: 0; top: 0; padding: 14px; }
.fxt-lb-loc { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--hazard); }
.fxt-lb-cap { font-size: 12px; color: var(--ink); margin: 5px 0 10px; }
.fxt-lb-x { position: absolute; right: 14px; top: 12px; font-size: 22px; color: var(--ink); line-height: 1; }
.fxt-lb-foot { position: absolute; left: 14px; right: 14px; top: 520px; display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 10px; color: var(--steel); }
.fxt-lb-arrows { display: flex; gap: 8px; }
.fxt-lb-arrows span { width: 34px; height: 34px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--ink); }

/* ---------- Scene 3: report ---------- */
.fxt-minimap { position: relative; height: 118px; background: #1f2023; border: 1px solid var(--border); overflow: hidden; }
.fxt-minimap svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.fxt-minimap .road { stroke: #34363c; fill: none; stroke-linecap: round; }
.fxt-droppin {
  position: absolute; left: 50%; top: 50%;
  width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--hazard); border: 2px solid var(--asphalt);
  opacity: 0; transform: translateY(-40px);
  transition: transform 0.5s cubic-bezier(.3,1.6,.5,1), opacity 0.2s;
}
.fxt-droppin.t-in { opacity: 1; transform: none; }
.fxt-droppin.t-in::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid var(--hazard); animation: fxt-pulse 1.3s ease-out infinite; }
.fxt-hint.ok { color: var(--clean); }
.fxt-files { display: flex; align-items: center; gap: 8px; }
.fxt-files .fxt-btn { padding: 7px 10px; font-size: 9px; border-color: var(--paper-dim); color: var(--paper); }
.fxt-files .txt { font-size: 10.5px; color: var(--steel); }
.fxt-thumbs { display: flex; gap: 6px; margin-top: 7px; }
.fxt-thumbs .fxt-photo { width: 39px; height: 52px; }
.fxt-select { position: relative; }
.fxt-select .fxt-input::after { content: "\25BE"; position: absolute; right: 10px; color: var(--paper-dim); }
.fxt-dd {
  position: absolute; left: 0; right: 0; top: 33px; z-index: 10;
  background: var(--asphalt-3); border: 1px solid var(--hazard);
  opacity: 0; transform: translateY(-6px); transition: opacity 0.2s, transform 0.2s;
}
.fxt-dd.t-in { opacity: 1; transform: none; }
.fxt-dd div { padding: 7px 10px; font-size: 11px; color: var(--paper); transition: background 0.15s; }
.fxt-dd div.hl { background: var(--hazard); color: var(--hazard-ink); }

/* ---------- Scene 4: fix many ---------- */
.fxt-chips { display: flex; gap: 6px; margin: 10px 0; }
.fxt-chips span { font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; padding: 6px 9px; border: 1px solid var(--hazard); color: var(--hazard); }
.fxt-chips span.on { background: var(--hazard); color: var(--hazard-ink); }
.fxt-selbar { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; background: var(--asphalt-2); border: 1px solid var(--border); margin-bottom: 10px; }
.fxt-selbar .count { font-family: var(--font-mono); font-size: 10px; color: var(--paper-dim); }
.fxt-selbar .count.on { color: var(--hazard); }
.fxt-selbar .fxt-btn { padding: 7px 10px; font-size: 9px; }
.fxt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fxt-pcard { background: var(--asphalt-2); border: 1px solid var(--border); transition: border-color 0.2s, box-shadow 0.2s; }
.fxt-pcard.sel { border-color: var(--hazard); box-shadow: 0 0 0 1px var(--hazard); }
.fxt-pphoto { position: relative; aspect-ratio: 3 / 4; }
.fxt-pphoto .fxt-photo { position: absolute; inset: 0; }
.fxt-pcard .meta { padding: 6px 7px 7px; }
.fxt-pcard .st { font-size: 10px; font-weight: 600; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fxt-pcard .fxt-check { margin: 0; font-size: 10px; color: var(--paper-dim); }
.fxt-panel {
  position: absolute; left: 0; right: 0; bottom: 0; top: 0; z-index: 25;
  background: var(--asphalt);
  border-top: 3px solid var(--hazard);
  padding: 16px;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(.45,.05,.25,1);
}
.fxt-panel.t-in { transform: none; }
.fxt-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fxt-slot { padding: 6px; background: var(--asphalt-2); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
.fxt-slot .fxt-flip { width: 100%; aspect-ratio: 3 / 4; }
.fxt-slot .face .fxt-photo, .fxt-credit .face .fxt-photo { position: absolute; inset: 0; }
.fxt-slot .st { font-size: 10px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fxt-slot .fxt-btn { padding: 6px 4px; font-size: 7.5px; white-space: normal; text-align: center; line-height: 1.2; }
.fxt-slot .fxt-btn.done { border-color: var(--clean); color: var(--clean); background: none; }

/* ---------- Scene 5: events ---------- */
.fxt-event { display: flex; gap: 12px; padding: 12px; background: var(--asphalt-2); border: 1px solid var(--border); margin-bottom: 9px; }
.fxt-edate { width: 48px; flex-shrink: 0; text-align: center; border: 1px solid var(--hazard); padding: 5px 0; align-self: flex-start; }
.fxt-edate .d { display: block; font-family: var(--font-display); font-size: 22px; line-height: 1; color: var(--hazard); }
.fxt-edate .m { display: block; font-family: var(--font-mono); font-size: 8.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--paper-dim); margin-top: 2px; }
.fxt-event .t { font-weight: 600; font-size: 12.5px; margin-bottom: 3px; }
.fxt-event .d2 { font-size: 10.5px; color: var(--paper-dim); margin-bottom: 4px; }
.fxt-event .w { font-family: var(--font-mono); font-size: 9px; color: var(--steel); margin-bottom: 8px; }
.fxt-rsvp { display: flex; align-items: center; gap: 10px; position: relative; }
.fxt-rsvp .fxt-btn { padding: 7px 11px; font-size: 9px; }
.fxt-rsvp .fxt-btn.yes { border-color: var(--clean); color: var(--clean); background: rgba(63,143,95,0.12); }
.fxt-rsvp .c { font-family: var(--font-mono); font-size: 10px; color: var(--paper-dim); }
.fxt-plus {
  position: absolute; left: 150px; top: -2px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--clean);
  opacity: 0;
}
.fxt-plus.t-in { animation: fxt-plus 1.3s ease forwards; }
@keyframes fxt-plus { 0% { opacity: 0; transform: translateY(4px); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-22px); } }
.fxt-menu .fxt-cta.ring, .fxt-cta.ring { box-shadow: 0 0 0 0 rgba(214,64,44,0.7); animation: fxt-ring 1.1s ease-out infinite; }
@keyframes fxt-ring { to { box-shadow: 0 0 0 10px rgba(214,64,44,0); } }
.fxt-burger.ring { animation: fxt-ring-y 1.1s ease-out infinite; }
@keyframes fxt-ring-y { from { box-shadow: 0 0 0 0 rgba(242,169,0,0.7); } to { box-shadow: 0 0 0 10px rgba(242,169,0,0); } }

/* ---------- Scene 6: sponsor ---------- */
.fxt-btnstack { display: flex; flex-wrap: wrap; gap: 8px; }
.fxt-btnstack .fxt-btn { font-size: 10px; padding: 10px 12px; }
.fxt-steps { display: flex; flex-direction: column; gap: 7px; margin-bottom: 12px; }
.fxt-steps .fxt-card { padding: 9px 11px; }
.fxt-steps b { display: block; font-size: 11.5px; font-weight: 600; margin-bottom: 2px; }
.fxt-steps small { display: block; font-size: 10px; color: var(--paper-dim); line-height: 1.4; }
.fxt-credit { position: absolute; left: 50%; top: 40px; width: 240px; margin-left: -120px; }
.fxt-credit .fxt-flip { width: 240px; height: 320px; }
.fxt-scroll.gone { opacity: 0; transition: opacity 0.4s ease; }
.fxt-credit .logo {
  position: absolute; right: 8px; top: 8px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--paper); color: var(--asphalt);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 14px;
}
.fxt-credit .line { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--hazard); padding: 9px 2px 0; }
.fxt-credit .line b { color: var(--ink); font-weight: 600; }


/* ---------- V2 LIGHT OVERRIDES ---------- */
/* =====================================================================
   "How Fix-EP works" walkthrough - V2 light / map-first style.
   Loaded AFTER css/tour.css (index-v2.html only) and overrides it, so
   the original dark tour keeps working on the old page untouched.

   Needs one change in css/style-v2.css: .fxt-overlay is no longer one
   of the "dark scopes" there, so the light :root colours apply inside
   the tour. Everything here is the v2 look: white cards, 3px ink
   borders, hard offset shadows, hazard-tape stripe, natural-colour map.
   ===================================================================== */

/* ---------- Launch link in the hero card ---------- */
.tour-launch { color: var(--ink); }
.tour-launch .tour-launch-icon {
  border: 2px solid var(--ink);
  background: var(--hazard);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.tour-launch:hover .tour-launch-icon { background: var(--ink); color: var(--hazard); }
.tour-launch .tour-launch-len { color: var(--paper-dim); }

/* ---------- Overlay shell ---------- */
.fxt-backdrop {
  background: rgba(23, 24, 26, 0.6);
  backdrop-filter: blur(2px);
}
.fxt-modal {
  background: #FFFFFF;
  border: 3px solid var(--ink);
  box-shadow: 10px 10px 0 var(--hazard);
}
.fxt-modal::before {
  height: 10px;
  background: repeating-linear-gradient(135deg, var(--hazard), var(--hazard) 12px, var(--ink) 12px, var(--ink) 24px);
}
.fxt-heading h2 { color: var(--ink); }
.fxt-close {
  background: #FFFFFF;
  border: 2px solid var(--ink);
  color: var(--ink);
}
.fxt-close:hover { background: var(--hazard); color: var(--ink); border-color: var(--ink); }

.fxt-stage {
  border: 3px solid var(--ink);
  background: var(--asphalt);
  box-shadow: 6px 6px 0 var(--ink);
}

.fxt-controls .btn:disabled { visibility: hidden; }
.fxt-dot {
  height: 8px;
  background: #FFFFFF;
  border: 2px solid var(--ink);
}
.fxt-dot.done { background: var(--ink); }
.fxt-dot.on { background: var(--hazard); }

@media (min-width: 760px) {
  .fxt-controls { border-top: 2px solid var(--ink); }
}
.fxt-caption .fxt-stepno {
  color: var(--ink);
  text-shadow: 4px 4px 0 var(--hazard);
}
.fxt-caption h3 { color: var(--ink); }
.fxt-caption p { color: #3B3A35; }

/* ---------- Inside the phone screen ---------- */
.fxt-screen { background: var(--asphalt); }

.fxt-nav {
  background: #FFFFFF;
  border-bottom: 2px solid var(--ink);
}
.fxt-burger { border: 2px solid var(--ink); background: #FFFFFF; }
.fxt-stripe {
  background: repeating-linear-gradient(135deg, var(--hazard), var(--hazard) 10px, var(--ink) 10px, var(--ink) 20px);
}
.fxt-menu { background: #FFFFFF; border-bottom: 2px solid var(--ink); }
.fxt-menu span { border-bottom: 1px solid var(--border); color: var(--ink); }
.fxt-menu .fxt-cta { background: var(--alert); color: #FFFFFF; border: 2px solid var(--ink); }

.fxt-eyebrow { color: var(--hazard-text); }
.fxt-h1, .fxt-h2 { color: var(--ink); }
.fxt-p { color: #3B3A35; }
.fxt-label { color: var(--paper-dim); }
.fxt-hint { color: var(--paper-dim); }

/* Buttons - same outline / solid pair as the real site */
.fxt-btn {
  border: 2px solid var(--ink);
  color: var(--ink);
  background: #FFFFFF;
}
.fxt-btn.solid { background: var(--hazard); color: var(--ink); }
.fxt-btn.hover { background: var(--hazard); color: var(--ink); }
.fxt-btn.solid.hover { background: #FFC33A; }
.fxt-link { color: var(--hazard-text); }

/* Inputs, cards, rows */
.fxt-input { background: #FFFFFF; border: 2px solid var(--ink); }
.fxt-input .ph { color: #8D8A7E; }
.fxt-input.focus { border-color: var(--ink); box-shadow: 3px 3px 0 var(--hazard); }
.fxt-input.focus .v::after { background: var(--ink); }
.fxt-card,
.fxt-flow-item,
.fxt-selbar,
.fxt-pcard,
.fxt-slot,
.fxt-event {
  background: #FFFFFF;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.fxt-flow-item { border-left-width: 6px; }
.fxt-flow-item .n { color: var(--ink); }
.fxt-flow-item small { color: #3B3A35; }
.fxt-flow-item.fixed { border-left-color: var(--clean); }
.fxt-flow-item.fixed .n { color: var(--clean); }
.fxt-flow-item.council { border-left-color: var(--alert); }
.fxt-flow-item.council .n { color: var(--alert); }
.fxt-pcard.sel { border-color: var(--ink); box-shadow: 3px 3px 0 var(--hazard); }
.fxt-box { border: 2px solid var(--ink); background: #FFFFFF; }
.fxt-box.on { background: var(--hazard); border-color: var(--ink); color: var(--ink); }
.fxt-msg { background: var(--clean-dim); border-left: 4px solid var(--clean); }
.fxt-panel { background: var(--asphalt); border-top: 3px solid var(--ink); }
.fxt-menu .fxt-cta.ring, .fxt-cta.ring { box-shadow: 0 0 0 0 rgba(201, 58, 39, 0.6); }

/* Stats strip + tags */
.fxt-stats { border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.fxt-stats b { color: var(--ink); }
.fxt-stats .alert b { color: var(--alert); }
.fxt-stats span { color: var(--paper-dim); }
.fxt-tag { background: var(--alert); color: #FFFFFF; border: 2px solid var(--ink); }
.fxt-tag.clean { background: var(--clean); }
.fxt-stamp { background: #FFFFFF; color: var(--clean); border-color: var(--clean); }

.fxt-chips span { border: 2px solid var(--ink); color: var(--ink); background: #FFFFFF; }
.fxt-chips span.on { background: var(--hazard); color: var(--ink); }
.fxt-selbar .count { color: var(--paper-dim); }
.fxt-selbar .count.on { color: var(--ink); font-weight: 600; }
.fxt-edate { border: 2px solid var(--ink); background: var(--hazard); }
.fxt-edate .d { color: var(--ink); }
.fxt-edate .m { color: var(--ink); }
.fxt-event .w { color: var(--paper-dim); }
.fxt-rsvp .fxt-btn.yes { border-color: var(--ink); color: var(--clean); background: var(--clean-dim); }
.fxt-slot .fxt-btn.done { border-color: var(--ink); color: var(--clean); background: var(--clean-dim); }
.fxt-files .fxt-btn { border-color: var(--ink); color: var(--ink); }
.fxt-files .txt { color: var(--paper-dim); }
.fxt-dd { background: #FFFFFF; border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.fxt-dd div { color: var(--ink); }
.fxt-dd div.hl { background: var(--hazard); color: var(--ink); }
.fxt-credit .line { color: var(--hazard-text); }
.fxt-credit .line b { color: var(--ink); }
.fxt-legend span.hl { border-color: var(--alert); }

/* Hero artwork behind the intro scenes - lighter wash instead of dark */
.fxt-hero-bg { opacity: 0.5; }
.fxt-hero-bg::after {
  background: linear-gradient(180deg, rgba(246, 243, 234, 0.25) 0%, rgba(246, 243, 234, 0.8) 62%, var(--asphalt) 100%);
}

/* ---------- Maps: natural colours like the real home map ---------- */
.fxt-map, .fxt-minimap {
  background: #EAE6D9;
  border: 2px solid var(--ink);
}
.fxt-map .road, .fxt-minimap .road { stroke: #FFFFFF; }
.fxt-map .road.major { stroke: #F6D58B; }
.fxt-map .water { stroke: #BFDCE6; }
.fxt-map .park { fill: #D3E8C6; }
.fxt-maplabel { color: #8A877C; }
.fxt-pin { border: 2px solid var(--ink); }
.fxt-droppin { border: 2px solid var(--ink); }
.fxt-halo.t-in { opacity: 0.22; }
.fxt-legend { color: #3B3A35; }
.fxt-legend i { border: 2px solid var(--ink); border-radius: 50%; }

/* The photo lightbox the map scene opens stays dark, like the real one */
.fxt-lightbox {
  --ink: #F4F2EA;
  --steel: #A8AEB4;
  --paper-dim: #B9B6AA;
  --hazard-text: #F2A900;
  --border: rgba(244, 242, 234, 0.2);
  background: #0C0C0D;
  color: #F4F2EA;
}
.fxt-lb-loc { color: var(--hazard); }

/* The little "finger" - dark so it shows on a light screen */
.fxt-touch {
  background: rgba(23, 24, 26, 0.16);
  border: 2px solid var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.fxt-touch.down { background: rgba(242, 169, 0, 0.6); border-color: var(--ink); }
.fxt-ripple { border-color: var(--ink); }

/* Phones: the tour is full screen, so no offset shadow / outer border */
@media (max-width: 759px) {
  .fxt-modal { border: none; box-shadow: none; }
}
