/* ─── Prevoya landing — shared styles ─── */

:root {
  --bg: #0a0a14;
  --surf: #12121e;
  --glass: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.08);
  --line2: rgba(255, 255, 255, 0.06);
  --teal: #3dffd0;
  --purple: #a78bfa;
  --am: #ffb454;
  --cy: #4cc9f0;
  --rd: #ff6b6b;
  --tx: #e8e8f0;
  --mut: #7b7b9a;
  --dim: #4a4a6a;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* area terrain colors */
  --area-canggu:   #3dffd0;
  --area-ubud:     #4ade80;
  --area-seminyak: #ffb454;
  --area-uluwatu:  #a78bfa;
  --area-islands:  #4cc9f0;
  --area-sanur:    #4cc9f0;
  --area-denpasar: #ff6b6b;

  /* category colors */
  --cat-work:     #4cc9f0;
  --cat-food:     #ffb454;
  --cat-gym:      #3dffd0;
  --cat-beach:    #ff6b6b;
  --cat-night:    #a78bfa;
  --cat-wellness: #3dffd0;
  --cat-explore:  #4cc9f0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* the hidden attribute ALWAYS wins — no display rule may override it
   (this class of bug bit us twice: the auth modal, then the welcome form) */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--tx);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}
body.has-flightbar { padding-top: 52px; }

/* ─── cosmic backdrop ─── */
.cosmos {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 40% at 75% -5%, rgba(167, 139, 250, 0.14), transparent 60%),
    radial-gradient(ellipse 55% 40% at 15% 25%, rgba(61, 255, 208, 0.07), transparent 60%),
    radial-gradient(ellipse 50% 35% at 85% 75%, rgba(76, 201, 240, 0.08), transparent 60%),
    var(--bg);
}
.cosmos::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 34% 62%, rgba(255,255,255,0.35), transparent),
    radial-gradient(1.5px 1.5px at 58% 8%, rgba(255,255,255,0.45), transparent),
    radial-gradient(1px 1px at 71% 41%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 88% 22%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1.5px 1.5px at 22% 85%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 45% 33%, rgba(255,255,255,0.25), transparent),
    radial-gradient(1px 1px at 79% 88%, rgba(255,255,255,0.35), transparent),
    radial-gradient(1.5px 1.5px at 5% 48%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 93% 58%, rgba(255,255,255,0.25), transparent);
}

/* ─── flight progress bar ─── */
.flightbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 18px;
  background: rgba(10, 10, 20, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-family: var(--mono);
}
.fb-code {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--mut);
  flex-shrink: 0;
}
.fb-code.fb-dest { color: var(--teal); }
.fb-track { position: relative; flex: 1; height: 20px; }
.fb-track::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  border-top: 2px dashed rgba(255, 255, 255, 0.14);
  transform: translateY(-50%);
}
.fb-fill {
  position: absolute;
  left: 0; top: 50%;
  height: 2px;
  width: 0;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(61,255,208,0.2), var(--teal));
  box-shadow: 0 0 10px rgba(61, 255, 208, 0.5);
  transition: width 0.1s linear;
}
.fb-plane {
  position: absolute;
  left: 0; top: 50%;
  transform: translate(-50%, -54%);
  font-size: 17px;
  color: var(--teal);
  text-shadow: 0 0 12px rgba(61, 255, 208, 0.8);
  transition: left 0.1s linear;
  will-change: left;
}
.fb-stage {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--teal);
  background: rgba(61, 255, 208, 0.08);
  border: 1px solid rgba(61, 255, 208, 0.25);
  border-radius: 99px;
  padding: 4px 12px;
  min-width: 128px;
  text-align: center;
}
@media (max-width: 520px) {
  .fb-stage { min-width: 0; font-size: 10px; padding: 4px 9px; }
  .flightbar { gap: 9px; padding: 0 12px; }
}

/* ─── layout ─── */
.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px;
}
section { padding: 56px 0; }

/* ─── nav ─── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
  color: var(--tx);
  text-decoration: none;
}
.brand .orb { width: 22px; height: 22px; }
.nav-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
  border: 1px solid rgba(61, 255, 208, 0.35);
  border-radius: 99px;
  padding: 7px 16px;
  transition: background 0.2s;
}
.nav-cta:hover { background: rgba(61, 255, 208, 0.1); }
.nav-auth {
  font-size: 13px;
  font-weight: 600;
  color: var(--mut);
  text-decoration: none;
  padding: 7px 12px;
  margin-right: 4px;
  border-radius: 99px;
  transition: color 0.2s;
}
.nav-auth:hover { color: var(--teal); }

/* ─── places browser ─── */
.places-head { text-align: center; padding: 30px 0 22px; }
.places-head h1 {
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.places-head h1 .glow { color: var(--teal); text-shadow: 0 0 26px rgba(61, 255, 208, 0.45); }
.places-head p { color: var(--mut); font-size: 15px; max-width: 460px; margin: 0 auto; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 22px 0 26px;
}
.filter {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--mut);
  background: var(--glass);
  border: 1px solid var(--line2);
  border-radius: 99px;
  padding: 7px 15px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.filter:hover { color: var(--tx); }
.filter.on {
  color: #06231b;
  background: linear-gradient(135deg, #6fffdd, var(--teal));
  border-color: transparent;
}

.places-grid { display: block; }

/* ── Wave 4 · category carousels (2a): rows ARE the categories ── */
.cat-rows { display: flex; flex-direction: column; gap: 26px; }
.plb-row { min-width: 0; }
.row-head { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; padding: 0 2px; }
.row-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cc); box-shadow: 0 0 8px var(--cc); flex-shrink: 0; }
.row-name { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tx); font-weight: 700; }
.row-count { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.row-matched {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal); border: 1px solid rgba(61, 255, 208, 0.3); border-radius: 99px; padding: 2px 7px;
}
.row-all {
  margin-left: auto; background: none; border: none; cursor: pointer;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--teal); padding: 4px 2px;
}
.row-all:hover { color: var(--tx); }
.carousel {
  display: flex; gap: 14px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-padding-left: 2px;
  padding: 4px 40px 8px 2px; margin: -4px 0 -8px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel .poi-mini { flex: 0 0 240px; width: 240px; scroll-snap-align: start; min-height: 168px; padding: 16px; gap: 8px; }
.poi-mini .place-top .orb { width: 28px; height: 28px; }
.poi-mini .place-name { font-size: 15px; }
.mini-why {
  font-size: 13px; color: var(--mut);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mini-foot { display: flex; gap: 14px; align-items: center; margin-top: auto; }
.mini-foot .place-maps { font-size: 12px; }
.poi-mini .match-badge { font-size: 10px; }
/* the whole mini card is tappable — "more ›" makes that legible on phones */
.poi-mini { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.poi-mini:active { transform: scale(0.98); }
.mini-more {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--teal);
  white-space: nowrap;
}

/* see-all detail view — full cards for one category */
.cat-detail { display: flex; flex-direction: column; gap: 16px; }
.row-back {
  align-self: flex-start; background: none; border: 1px solid var(--line); border-radius: 99px; cursor: pointer;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--mut); padding: 6px 14px;
}
.row-back:hover { color: var(--tx); border-color: var(--cc); }
.cat-detail-h {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tx);
}
.poi-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 620px) { .poi-grid { grid-template-columns: 1fr 1fr; } }
.poi-grid .place-card { min-height: 140px; }

.place-card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.place-top { display: flex; align-items: flex-start; gap: 13px; }
.place-top .orb { width: 34px; height: 34px; margin-top: 2px; }
.place-name { font-size: 17px; font-weight: 700; line-height: 1.25; }
.place-area {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--dim);
  margin-top: 2px;
}
.place-verified { color: var(--teal); font-size: 12px; margin-left: 6px; }
.place-why { font-size: 14px; color: var(--tx); }
.place-meta { display: grid; gap: 7px; margin-top: 2px; }
.place-meta .row { display: flex; gap: 9px; font-size: 12.5px; color: var(--mut); }
.place-meta .row .k {
  flex-shrink: 0;
  width: 16px;
  text-align: center;
  opacity: 0.9;
}
.place-tip {
  font-size: 12.5px;
  color: var(--mut);
  border-left: 2px solid rgba(61, 255, 208, 0.4);
  padding-left: 11px;
  font-style: italic;
}
.place-personas { display: flex; flex-wrap: wrap; gap: 6px; }
.persona-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--tx);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 3px 10px 3px 8px;
}
.persona-chip .pdot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pd);
  flex-shrink: 0;
}
.persona-chip .pdot.ring {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--pd);
}
/* Guy's phone (UX pass): four actions never shrink — the price note was
   crushed into a one-word column. Let the actions row wrap below instead. */
.place-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; flex-wrap: wrap; row-gap: 8px; }
.place-foot .place-price { flex: 1 1 auto; min-width: 55%; }
.place-foot .place-price:empty { display: none; }
.place-price { font-size: 12px; color: var(--dim); }
.place-maps {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--teal);
  text-decoration: none;
  border: 1px solid rgba(61, 255, 208, 0.3);
  border-radius: 99px;
  padding: 6px 13px;
  transition: background 0.15s;
  white-space: nowrap;
}
.place-maps:hover { background: rgba(61, 255, 208, 0.1); }
button.place-maps { background: none; font: inherit; cursor: pointer; }
.pf-actions { display: flex; gap: 8px; flex-shrink: 0; align-items: center; }
.place-here { color: var(--mut); border-color: rgba(61, 255, 208, 0.18); }
.place-here:hover { color: var(--teal); }
.place-here:disabled { color: var(--teal); cursor: default; }
.places-status { text-align: center; color: var(--mut); font-size: 14px; padding: 30px 0; }

/* ─── terrain mode — area-aware backdrop tint ─── */
.terrain-tint {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
body[data-area="canggu"]   .terrain-tint { opacity: 1; background: radial-gradient(ellipse 75% 65% at 12% 88%, rgba(61, 255, 208, 0.05), transparent 65%); }
body[data-area="ubud"]     .terrain-tint { opacity: 1; background: radial-gradient(ellipse 75% 65% at 88% 10%, rgba(74, 222, 128, 0.05), transparent 65%); }
body[data-area="seminyak"] .terrain-tint { opacity: 1; background: radial-gradient(ellipse 75% 65% at 88% 88%, rgba(255, 180, 84, 0.05), transparent 65%); }
body[data-area="uluwatu"]  .terrain-tint { opacity: 1; background: radial-gradient(ellipse 75% 65% at 12% 10%, rgba(167, 139, 250, 0.05), transparent 65%); }
body[data-area="islands"]  .terrain-tint { opacity: 1; background: radial-gradient(ellipse 75% 65% at 50% 95%, rgba(76, 201, 240, 0.05), transparent 65%); }
body[data-area="sanur"]    .terrain-tint { opacity: 1; background: radial-gradient(ellipse 75% 65% at 50% 95%, rgba(76, 201, 240, 0.05), transparent 65%); }
body[data-area="denpasar"] .terrain-tint { opacity: 1; background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(255, 107, 107, 0.04), transparent 65%); }

/* ─── altitude header ─── */
.altitude-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 18px;
}
.altitude-bar .alt-value {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--teal);
  text-shadow: 0 0 14px rgba(61, 255, 208, 0.45);
  min-width: 88px;
  text-align: center;
}
.coord-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 10px 0 12px;
}
.coord-display .coord-sep { color: rgba(255, 255, 255, 0.15); }
.coord-display #coordArea { color: var(--mut); }

/* ─── area terrain cards ─── */
.area-cards {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  margin: 22px 0 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.area-cards::-webkit-scrollbar { display: none; }
.area-card {
  --ac: var(--teal);
  position: relative;
  flex: 0 0 auto;
  min-width: 128px;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  font: inherit;
  padding: 11px 13px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.12s ease, border-color 0.2s, background 0.2s;
}
.area-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 15%, color-mix(in srgb, var(--ac) 7%, transparent), transparent 70%);
  pointer-events: none;
}
.area-card:active { transform: scale(0.97); }
.area-card .ac-name {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tx);
  display: flex;
  align-items: center;
  gap: 7px;
}
.area-card .ac-pin { color: var(--ac); font-size: 12px; }
.area-card .ac-tags {
  font-size: 9.5px;
  letter-spacing: 0.05em;
  color: var(--dim);
  white-space: nowrap;
}
.area-card.on {
  background: color-mix(in srgb, var(--ac) 10%, transparent);
  border-color: color-mix(in srgb, var(--ac) 40%, transparent);
}
.area-card.on .ac-tags { color: var(--mut); }

/* ─── category legend ─── */
.legend { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 10px 0 26px; }
.legend-pill {
  --cc: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--mut);
  background: var(--glass);
  border: 1px solid color-mix(in srgb, var(--cc) 25%, transparent);
  border-radius: 99px;
  padding: 7px 14px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.legend-pill .legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cc);
  box-shadow: 0 0 8px color-mix(in srgb, var(--cc) 60%, transparent);
  flex-shrink: 0;
}
.legend-pill:hover { color: var(--tx); }
.legend-pill.on {
  color: var(--tx);
  background: color-mix(in srgb, var(--cc) 12%, transparent);
  border-color: color-mix(in srgb, var(--cc) 50%, transparent);
}

/* ─── match personalization ─── */
.match-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(61, 255, 208, 0.06);
  border: 1px solid rgba(61, 255, 208, 0.22);
  border-radius: 12px;
  padding: 10px 16px;
  margin: 18px 0 4px;
  text-align: center;
}
.match-banner .mb-note {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--mut);
  flex-basis: 100%;
}
.match-badge + .place-top { padding-right: 92px; }
.match-badge {
  position: absolute;
  top: 12px;
  right: 14px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(61, 255, 208, 0.08);
  border: 1px solid rgba(61, 255, 208, 0.3);
  border-radius: 99px;
  padding: 3px 9px;
}

/* ─── POI place cards ─── */
.place-card {
  --cc: var(--teal);
  position: relative;
  border-left: 3px solid var(--cc);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--cc) 6%, transparent), 0 4px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.place-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--cc) 15%, transparent), 0 8px 32px rgba(0, 0, 0, 0.5);
}
.poi-type {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 3px;
}
.poi-intel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  border-top: 1px dashed var(--line);
  padding-top: 11px;
  margin-top: 2px;
}
.poi-intel .cell { min-width: 0; }
.poi-intel .k {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 3px;
}
.poi-intel .v { font-size: 12.5px; color: var(--mut); }
.poi-intel .price-sym { color: var(--teal); font-weight: 700; letter-spacing: 0.1em; }

/* POI drop-in animation */
@keyframes poiDrop {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.poi-drop { animation: poiDrop 220ms ease-out both; }

/* ─── scanning state ─── */
.scan-state {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 44px 20px;
  border: 1px solid var(--line2);
  border-radius: 18px;
  background: var(--glass);
}
.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: rgba(61, 255, 208, 0.6);
  box-shadow: 0 0 12px rgba(61, 255, 208, 0.5);
  animation: scan 1.4s linear infinite;
}
@keyframes scan {
  from { top: 0; }
  to   { top: 100%; }
}
.scan-text {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
}
.scan-sub { font-size: 12.5px; color: var(--dim); margin-top: 8px; }

/* ─── mission briefing (wizard) ─── */
.mission-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(61, 255, 208, 0.6);
  margin-bottom: 12px;
}
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px rgba(61, 255, 208, 0.7);
  animation: pulseDot 1.6s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}
.mission-card { position: relative; border: none !important; }
.mission-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(61, 255, 208, 0.18), rgba(167, 139, 250, 0.18));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.ck-opt { text-align: left; padding: 13px 16px; }
.ck-q-sub { font-size: 12px; font-weight: 500; color: var(--dim); margin-left: 6px; }
.ck-multi { grid-template-columns: repeat(2, 1fr); }
.ck-pill { text-align: center; padding: 11px 8px; font-size: 13.5px; }
.ck-pill.on {
  color: #06231b;
  background: linear-gradient(135deg, #6fffdd, var(--teal));
  border-color: transparent;
  box-shadow: 0 0 14px rgba(61, 255, 208, 0.3);
}
.ck-multi-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
}
.ck-multi-actions .ck-reset { margin-top: 0; }
.ck-opt .opt-sub {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--dim);
  margin-top: 2px;
}
.ck-opt:hover .opt-sub { color: var(--mut); }

/* arrive step — landing-day date picker (.ck-opts is a 2-col grid: span it) */
.ck-wide { grid-column: 1 / -1; }
.ck-arrive { grid-column: 1 / -1; display: flex; gap: 10px; align-items: stretch; }
.ck-date {
  flex: 1;
  min-width: 0;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
  color: var(--tx);
  font: inherit;
  font-size: 15px;
  color-scheme: dark;
}
.ck-date:focus { outline: none; border-color: rgba(61, 255, 208, 0.5); }
.ck-arrive .btn { flex-shrink: 0; padding: 11px 16px; }

/* intel panel header on the generated plan */
.intel-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--teal);
  background: linear-gradient(90deg, rgba(61, 255, 208, 0.12), rgba(167, 139, 250, 0.08));
  border-top: 2px solid;
  border-image: linear-gradient(90deg, var(--teal), var(--purple)) 1;
  border-radius: 4px 4px 0 0;
  padding: 8px 12px;
  margin: -6px -4px 14px;
}

@media (prefers-reduced-motion: reduce) {
  .poi-drop { animation: none; }
  .scan-line { animation: none; }
  .pulse-dot { animation: none; }
  .place-card:hover { transform: none; }
  .panel.on { animation: none; }
  .runway { transition: none; }
  .tab-slot:active { transform: none; }
  .arrive-banner { animation: none; }
}

/* ─── app v3 shell — welcome / tabs / panels (APP_SPEC §5) ─── */
.welcome {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.w-inner { width: 100%; max-width: 360px; text-align: center; }
.w-orb { width: 52px; height: 52px; margin: 0 auto 18px; display: block; }
.w-title { font-size: 34px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 6px; }
.w-line { color: var(--mut); font-size: 15px; margin-bottom: 30px; }
.w-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 100%;
  text-align: center;
}
.w-google .g-mark { width: 18px; height: 18px; background: #fff; border-radius: 50%; padding: 2px; box-sizing: content-box; }
.w-email-toggle {
  display: block;
  margin: 16px auto 0;
  font: inherit;
  font-size: 13.5px;
  color: var(--mut);
  background: none;
  border: none;
  border-bottom: 1px dashed var(--dim);
  cursor: pointer;
  padding: 2px 0;
}
.w-email-toggle:hover { color: var(--teal); }
.w-email { margin-top: 16px; }
.w-code { max-width: 300px; margin: 10px auto 0; }
.w-foot { margin-top: 26px; font-size: 12px; color: var(--dim); }

/* passenger record */
.record { max-width: 560px; margin: 0 auto; padding: 48px 20px; }
.record .mission-tag { margin-bottom: 16px; }
.rec-ask { text-align: center; font-size: 19px; font-weight: 700; margin-bottom: 18px; }
.title-chips { display: flex; gap: 10px; margin-bottom: 12px; }
.title-chips .chip-btn {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  color: var(--tx);
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  padding: 13px 0;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.title-chips .chip-btn:hover { border-color: rgba(61, 255, 208, 0.55); }
.title-chips .chip-btn.on {
  color: #06231b;
  background: linear-gradient(135deg, #6fffdd, var(--teal));
  border-color: transparent;
  box-shadow: 0 0 18px rgba(61, 255, 208, 0.35);
}
.rec-name { width: 100%; text-align: left; margin-bottom: 16px; }
.rec-actions { display: flex; align-items: center; gap: 18px; }

/* F3: the record ON the pass — same components, pass-scale type */
.bp-record { margin: 6px 0 14px; }
.bp-rec-ask {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--mut); margin-bottom: 10px;
}
.bp-record .rec-name { margin-bottom: 12px; }
.bp-record .auth-status { margin-top: 8px; }

/* shell + panels */
#shell { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.app-top { max-width: 640px; margin: 0 auto; padding: calc(14px + env(safe-area-inset-top)) 20px 14px; }
#shell .arrive-banner { max-width: 640px; margin: 4px auto 10px; }
.panels { max-width: 640px; margin: 0 auto; padding: 0 20px; }
.panel { display: none; padding: 10px 0 56px; } /* 1.1: landing section padding leaked 56px of dead air into the app */
.panel.on { display: block; animation: panelIn 160ms ease-out; }
@keyframes panelIn { from { opacity: 0; } to { opacity: 1; } }
.inst-strip {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 14px 0 6px;
}
.inst-strip:first-line { color: var(--mut); }
.panel-h { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; margin: 2px 0 16px; }
.fuel-strip {
  display: block;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--mut);
  text-decoration: none;
  background: var(--glass);
  border: 1px solid var(--line2);
  border-radius: 12px;
  padding: 12px 15px;
}
.fuel-strip strong { color: var(--teal); }
.fuel-strip:hover { border-color: rgba(61, 255, 208, 0.3); }
.why-now {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--teal);
  background: rgba(61, 255, 208, 0.06);
  border: 1px solid rgba(61, 255, 208, 0.18);
  border-radius: 9px;
  padding: 7px 10px;
}
.up-head {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 26px 0 12px;
}

/* pulse: pace / categories / recent (slice 4 — v19 density restored) */
.k-head {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}
.pace-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pace-delta {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--mut);
}
.pace-delta.good { color: var(--teal); text-shadow: 0 0 12px rgba(61, 255, 208, 0.35); }
.pace-delta.bad { color: var(--rd); text-shadow: 0 0 12px rgba(255, 107, 107, 0.35); }
.day-strip {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 48px;
  margin: 14px 0 16px;
}
.day-bar { flex: 1; border-radius: 2px; min-height: 2px; }
.day-bar.ok { background: rgba(61, 255, 208, 0.75); box-shadow: 0 0 6px rgba(61, 255, 208, 0.25); }
.day-bar.over { background: rgba(255, 107, 107, 0.85); box-shadow: 0 0 6px rgba(255, 107, 107, 0.3); }
.day-bar.zero { background: rgba(255, 255, 255, 0.12); }
.day-bar.future { background: rgba(255, 255, 255, 0.05); height: 2px; }
.day-bar.today { outline: 1px solid rgba(232, 232, 240, 0.5); outline-offset: 1px; }
.cat-bars { display: grid; gap: 10px; margin-top: 14px; }
.cat-row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.cat-name { width: 92px; flex-shrink: 0; color: var(--mut); text-transform: capitalize; }
.cat-track {
  flex: 1;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.cat-fill { display: block; height: 100%; border-radius: 99px; }
.cat-amt {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--mut);
  width: 52px;
  text-align: right;
  flex-shrink: 0;
}
.recent-card .spend-list { margin-top: 12px; }
.sl-del {
  font: inherit;
  font-size: 12px;
  color: var(--dim);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  margin-left: 8px;
  flex-shrink: 0;
}
.sl-del:hover { color: var(--rd); }
.sl-empty { color: var(--dim); font-size: 13px; list-style: none; }

/* readiness + packing checklists (slice 6) */
.ready-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.check-list { list-style: none; margin-top: 10px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line2);
  font-size: 13.5px;
}
.check-list li:last-child { border-bottom: none; }
.chk {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 7px;
  background: none;
  color: #06231b;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.chk:hover { border-color: rgba(61, 255, 208, 0.6); }
.chk.on {
  background: linear-gradient(135deg, #6fffdd, var(--teal));
  border-color: transparent;
  box-shadow: 0 0 10px rgba(61, 255, 208, 0.35);
}
.check-list .lbl { flex: 1; color: var(--tx); }
.check-list .lbl.done { color: var(--dim); text-decoration: line-through; }
.check-list .sl-del { margin-left: 0; }
.add-form { margin-top: 12px; }
.add-form .auth-input { text-align: left; font-size: 13.5px; padding: 10px 13px; }
.ready-nudge { border-color: rgba(255, 180, 84, 0.35); color: var(--am); }
.ready-nudge strong { color: var(--am); }
.ready-nudge:hover { border-color: rgba(255, 180, 84, 0.6); }

/* wave 1: questionnaire back, editable pulse, contexts */
.ck-back {
  font: inherit;
  font-size: 12px;
  color: var(--dim);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 0 10px;
  letter-spacing: 0.04em;
}
.ck-back:hover { color: var(--teal); }
.pulse-row .cell-edit {
  font: inherit;
  color: inherit;   /* iOS Safari paints unstyled buttons blue */
  background: none;
  border: 1px dashed rgba(61, 255, 208, 0.25);  /* visible affordance, always */
  border-radius: 10px;
  cursor: pointer;
  padding: 4px 6px;
  transition: border-color 0.15s;
}
.pulse-row .cell-edit:hover { border-color: rgba(61, 255, 208, 0.55); }
.quick-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}
.quick-log { margin-top: 10px; }
.chip-x { margin-left: 7px; color: var(--rd); font-weight: 700; }
.log-extras {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.amt-preview {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--dim);
}
.retro-date { display: flex; align-items: center; gap: 8px; }
.retro-date .k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}
.retro-date .auth-input {
  font-size: 12.5px;
  padding: 6px 10px;
  text-align: left;
  color-scheme: dark;
}
.sec-context {
  font-size: 12.5px;
  color: var(--mut);
  margin: 8px 0 2px;
  line-height: 1.55;
}
.sec-context strong, .sec-context em { color: var(--tx); font-style: normal; }

/* wave 3: the orbit dial — Today's day-night instrument (WAVE3_GLOBE_SPEC) */
/* Phase COLOUR (pin/rim/ping) is set as literal hex by JS onto the elements —
   transitioning stroke/fill between literal colours interpolates cleanly, but
   through a var() it doesn't (it sticks). Only the halo uses a custom prop
   (--od-glow), because it feeds the breath keyframes. */
.today-head { display: flex; align-items: center; gap: 12px; padding: 16px 0 4px; }
.today-head-text { display: grid; gap: 3px; }
.orbit-dial {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 50%;
  animation: odBreath 8s ease-in-out infinite;
}
.orbit-dial[data-phase="dawn"]   { --od-glow: rgba(255, 180, 84, 0.40); }
.orbit-dial[data-phase="day"]    { --od-glow: rgba(61, 255, 208, 0.40); }
.orbit-dial[data-phase="golden"] { --od-glow: rgba(255, 180, 84, 0.50); }
.orbit-dial[data-phase="dusk"]   { --od-glow: rgba(167, 139, 250, 0.45); }
.orbit-dial[data-phase="night"]  { --od-glow: rgba(76, 201, 240, 0.25); }
.od-night {
  transform-box: view-box;
  transform-origin: 24px 24px;
  transform: rotate(var(--od-angle, 210deg));
  transition: transform 0.6s ease;
}
.od-rim { stroke: #3dffd0; opacity: 0.45; transition: stroke 0.6s ease; }
.od-pin { fill: #3dffd0; filter: drop-shadow(0 0 4px #3dffd0); transition: fill 0.6s ease, filter 0.6s ease; }
.od-ping { stroke: #3dffd0; animation: odPing 900ms ease-out 1; }
@keyframes odBreath {
  0%, 100% { box-shadow: 0 0 18px var(--od-glow, rgba(61, 255, 208, 0.4)); }
  50%      { box-shadow: 0 0 11px var(--od-glow, rgba(61, 255, 208, 0.4)); }
}
@keyframes odPing { from { r: 2.2; opacity: 0.8; } to { r: 9; opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .orbit-dial { animation: none; }
  .od-ping { animation: none; opacity: 0; }
  .od-night, .od-rim, .od-pin { transition: none; }
}

/* wave 3: Today as a flight plan — the timeline (WAVE3_TODAY_TIMELINE_SPEC) */
.timeline { position: relative; margin-top: 18px; padding-left: 26px; }
.timeline::before { /* the route line */
  content: ""; position: absolute; left: 16px; top: 6px; bottom: 6px;
  width: 1px; background: var(--line);
}
.rail { position: relative; padding: 4px 0 20px; }
.rail-node { /* dot on the route line */
  position: absolute; left: -14px; top: 7px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--dim); box-shadow: none;
}
.rail.current .rail-node { background: var(--teal); box-shadow: 0 0 8px rgba(61, 255, 208, 0.7); }
.rail.current::before { /* teal route segment for the current rail */
  content: ""; position: absolute; left: -10px; top: 7px; bottom: 12px; width: 2px;
  background: var(--teal); opacity: 0.6; border-radius: 2px;
}
.rail-head {
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--mut); margin-bottom: 10px;
}
.rail.current .rail-head { color: var(--teal); text-shadow: 0 0 10px rgba(61, 255, 208, 0.35); }
.rail.future .rail-head { color: var(--tx); }
/* past rail: one collapsed line */
.rail.past { padding-bottom: 12px; opacity: 0.45; }
.rail.past .rail-node { top: 13px; }
.rail-head-past {
  font: inherit; font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--mut);
  background: none; border: none; cursor: pointer; padding: 6px 0; text-align: left;
}
.rail.past.open { opacity: 0.7; }
.rail.past .rail-body { display: grid; gap: 8px; margin-top: 8px; }
.rail.past .rail-body[hidden] { display: none; }
/* you-are-here tick */
.tl-now { position: relative; margin: 2px 0 14px; height: 26px; }
.tl-now-bar { position: absolute; left: 0; right: 8px; top: 4px; height: 2px; background: rgba(61, 255, 208, 0.18); border-radius: 2px; }
.tl-now-tick { position: absolute; top: -4px; width: 2px; height: 10px; background: var(--teal); box-shadow: 0 0 6px rgba(61, 255, 208, 0.7); transform: translateX(-50%); }
.tl-now-label { position: absolute; top: 12px; transform: translateX(-50%); white-space: nowrap; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em; color: var(--teal); }
.rail-cards { display: grid; gap: 14px; }
/* future rail slot cards */
.rail-slots { display: grid; gap: 8px; }
.slot-card {
  display: flex; align-items: center; gap: 10px; min-height: 44px;
  padding: 10px 13px; text-decoration: none;
  background: var(--glass); border: 1px solid var(--line); border-left: 2px solid var(--cc, var(--teal));
  border-radius: 12px; transition: transform 80ms;
}
.slot-card:active { transform: scale(0.97); }
.slot-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cc, var(--teal)); flex-shrink: 0; }
.slot-name { flex: 1; font-size: 13.5px; color: var(--tx); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot-hint { font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; color: var(--dim); flex-shrink: 0; }
.slot-more, .rail-invite {
  display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--mut); text-decoration: none; padding: 8px 0;
}
.slot-more:hover, .rail-invite:hover { color: var(--teal); }
.rail-invite { color: var(--dim); }
@media (prefers-reduced-motion: reduce) { .slot-card:active { transform: none; } }

/* wave 4a: places search + Google-Maps discovery */
.place-search {
  width: 100%;
  text-align: left;
  font-size: 14.5px;
  padding: 12px 15px;
  margin: 6px 0 4px;
}
.place-search::placeholder { color: var(--dim); }
.disc-badge {
  position: absolute;
  top: 12px;
  right: 14px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--am);
  background: rgba(255, 180, 84, 0.08);
  border: 1px solid rgba(255, 180, 84, 0.3);
  border-radius: 99px;
  padding: 3px 9px;
}
.discover { margin: 6px 0 14px; }
.disc-search {
  width: 100%;
  font-size: 14px;
  text-align: center;
}
.disc-results { display: grid; gap: 8px; margin-top: 10px; }
.disc-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
.disc-card .place-name { font-size: 14.5px; }
.disc-add { flex-shrink: 0; color: var(--teal); }
.disc-have {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--teal);
}
.place-card.just-added {
  animation: justAdded 2.2s ease-out;
}
@keyframes justAdded {
  0% { box-shadow: 0 0 0 2px var(--teal), 0 4px 24px rgba(0, 0, 0, 0.4); }
  100% { box-shadow: 0 0 0 1px color-mix(in srgb, var(--cc) 6%, transparent), 0 4px 24px rgba(0, 0, 0, 0.4); }
}
@media (prefers-reduced-motion: reduce) { .place-card.just-added { animation: none; } }

/* wave 2: match receipts, lock upgrade, spend loop, install */
.match-why {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: rgba(61, 255, 208, 0.75);
}
.lock-list {
  list-style: none;
  text-align: left;
  font-size: 13px;
  color: var(--tx);
  display: grid;
  gap: 6px;
  margin: 2px 0 6px;
}
.lock-list li { color: var(--mut); }
.plan-lock .w-google { max-width: 300px; }
.spend-suggest {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px dashed rgba(61, 255, 208, 0.25);
  padding-top: 11px;
  margin-top: 2px;
}
.spend-suggest .ss-log { color: var(--teal); }
.spend-suggest .ck-reset { margin-top: 0; }
.ss-done {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--teal);
}
.install-card { border-color: rgba(61, 255, 208, 0.22); }
.ios-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--tx);
  padding: 9px 0;
  border-bottom: 1px dashed var(--line2);
}
.ios-step:last-child { border-bottom: none; }
.ios-n {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(61, 255, 208, 0.1);
  border: 1px solid rgba(61, 255, 208, 0.3);
  color: var(--teal);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}
.ios-glyph { color: var(--teal); }

/* first-run boot captions (N4) — the instrument powers on, once */
.boot-caption {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(61, 255, 208, 0.6);
  margin: 6px 0 2px;
  animation: bootOn 500ms ease-out both;
}
@keyframes bootOn {
  from { opacity: 0; filter: blur(2px); }
  to   { opacity: 1; filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .boot-caption { animation: none; }
}
.acct-card { margin-top: 16px; display: grid; gap: 12px; }
.acct-row { display: flex; gap: 14px; font-size: 13.5px; align-items: baseline; }
.acct-row .k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  flex-shrink: 0;
  width: 86px;
}

/* tab bar (§5.2 — Rachel) */
.tab-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  height: calc(64px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(10, 10, 20, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
}
.tab-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--mut);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s, transform 80ms;
}
.tab-slot:active { transform: scale(0.94); }
.tab-slot .tab-ic { width: 24px; height: 24px; }
.tab-slot.on {
  color: var(--teal);
  filter: drop-shadow(0 0 6px rgba(61, 255, 208, 0.4));
}
.runway {
  position: absolute;
  top: 0;
  left: 0;
  width: 25%;
  height: 2px;
  pointer-events: none;
  transition: transform 180ms ease-out;
}
.runway::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--teal);
  box-shadow: 0 0 10px rgba(61, 255, 208, 0.6);
}

/* ─── the app (/app) ─── */
.arrive-banner {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13.5px;
  color: var(--tx);
  background:
    radial-gradient(ellipse 80% 100% at 50% 0%, rgba(61, 255, 208, 0.1), transparent 70%),
    var(--glass);
  border: 1px solid rgba(61, 255, 208, 0.3);
  border-radius: 14px;
  padding: 13px 16px;
  margin: 4px 0 14px;
  animation: poiDrop 300ms ease-out both;
}
.arrive-banner .ab-tick {
  color: var(--teal);
  font-weight: 700;
  font-size: 16px;
  text-shadow: 0 0 12px rgba(61, 255, 208, 0.6);
  flex-shrink: 0;
}
.arrive-banner .ab-x {
  margin-left: auto;
  font-size: 13px;
  color: var(--mut);
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.arrive-banner .ab-x:hover { color: var(--tx); }

.gate-title {
  font-size: clamp(30px, 7vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.gate-title .glow { color: var(--teal); text-shadow: 0 0 26px rgba(61, 255, 208, 0.45); }
.gate-sub { font-size: 14.5px; color: var(--mut); max-width: 400px; margin: 0 auto 22px; }
#gate { padding-top: 46px; }
#gate .auth-form { max-width: 340px; margin: 0 auto; }

.app-h1 {
  font-size: clamp(26px, 6vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.app-sec-head { margin-bottom: 16px; }
.app-sec-head h2 { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; }
.app-sec-head p { font-size: 13.5px; color: var(--mut); }

.pulse-card { padding: 24px 22px; }
.pulse-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.pulse-row .cell { text-align: center; }
.pulse-row .k {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 4px;
}
.pulse-row strong {
  font-family: var(--mono);
  font-size: clamp(14px, 4.3vw, 19px);
  font-weight: 700;
  white-space: nowrap;  /* "700k IDR" never wraps mid-cell */
}
.pulse-teal { color: var(--teal); text-shadow: 0 0 14px rgba(61, 255, 208, 0.4); }
.pulse-note {
  font-size: 13px;
  color: var(--mut);
  text-align: center;
  margin: 12px 0 4px;
}
.quick-log { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 16px 0 12px; }
.chip-btn { font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; transition: border-color 0.15s, color 0.15s; }
.chip-btn:hover { color: var(--teal); border-color: rgba(61, 255, 208, 0.4); }
.log-form { display: flex; gap: 8px; flex-wrap: wrap; }
.log-form .auth-input { text-align: left; padding: 11px 13px; font-size: 14px; min-width: 0; }
.log-amt { flex: 1; min-width: 0; }
.log-cat { flex: 0 0 112px; }

/* preset editor — two clean rows, never overflows a phone */
.preset-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 96px) auto;
  gap: 8px;
  margin-top: 12px;
}
.preset-add #presetLabel { grid-column: 1 / -1; }
.preset-add .auth-input { text-align: left; padding: 11px 13px; font-size: 14px; min-width: 0; }
.preset-add .amt-preview { grid-column: 1 / -1; }
.chip-btn.editing { border-style: dashed; border-color: rgba(255, 107, 107, 0.35); }
.tap-hint {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: rgba(61, 255, 208, 0.65);
  margin-top: 3px;
}
.log-btn { padding: 11px 20px; font-size: 14px; border: none; cursor: pointer; font-family: inherit; }
.spend-list { list-style: none; margin-top: 14px; }
.spend-list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 13px;
  padding: 8px 2px;
  border-bottom: 1px dashed var(--line2);
}
.spend-list li:last-child { border-bottom: none; }
.spend-list .sl-cat { flex: 1; color: var(--mut); text-transform: capitalize; }
.spend-list .sl-amt { font-family: var(--mono); font-weight: 700; color: var(--tx); }
.spend-list .sl-time { font-family: var(--mono); font-size: 11px; color: var(--dim); }

/* ─── auth modal ─── */
.auth-modal[hidden] { display: none; }
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 6, 12, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.auth-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  text-align: center;
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(61, 255, 208, 0.1), transparent 70%),
    var(--surf);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px 26px 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}
.auth-x {
  position: absolute;
  top: 14px; right: 16px;
  font-size: 15px;
  color: var(--mut);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}
.auth-x:hover { color: var(--tx); }
.auth-orb { width: 44px; height: 44px; margin: 0 auto 16px; }
.auth-title { font-size: 21px; font-weight: 800; margin-bottom: 8px; }
.auth-sub { font-size: 14px; color: var(--mut); margin-bottom: 22px; }
.auth-form { display: flex; flex-direction: column; gap: 10px; }
.auth-input {
  font: inherit;
  font-size: 15px;
  color: var(--tx);
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
  text-align: center;
  outline: none;
  transition: border-color 0.15s;
}
.auth-input::placeholder { color: var(--dim); }
.auth-input:focus { border-color: rgba(61, 255, 208, 0.5); }
.auth-send { width: 100%; text-align: center; }
.auth-status {
  min-height: 20px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--teal);
}

/* ─── planet orbs ─── */
.orb {
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}
.planet-teal   { background: radial-gradient(circle at 32% 28%, #8fffe4, var(--teal) 45%, #0d8f70 100%); box-shadow: 0 0 18px rgba(61, 255, 208, 0.4); }
.planet-purple { background: radial-gradient(circle at 32% 28%, #d6c6ff, var(--purple) 45%, #5b3fb8 100%); box-shadow: 0 0 18px rgba(167, 139, 250, 0.4); }
.planet-amber  { background: radial-gradient(circle at 32% 28%, #ffd9a0, var(--am) 45%, #c26f10 100%); box-shadow: 0 0 18px rgba(255, 180, 84, 0.4); }
.planet-blue   { background: radial-gradient(circle at 32% 28%, #a5e5ff, var(--cy) 45%, #1d7fb0 100%); box-shadow: 0 0 18px rgba(76, 201, 240, 0.4); }
.planet-pink   { background: radial-gradient(circle at 32% 28%, #ffb3b3, var(--rd) 45%, #c23030 100%); box-shadow: 0 0 18px rgba(255, 107, 107, 0.4); }

/* ─── stage tags ─── */
.stage-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(61, 255, 208, 0.07);
  border: 1px solid rgba(61, 255, 208, 0.25);
  border-radius: 99px;
  padding: 6px 15px;
  margin-bottom: 18px;
}
.stage-tag .stage-num {
  color: var(--dim);
  border-right: 1px solid rgba(61, 255, 208, 0.25);
  padding-right: 9px;
}

/* ─── hook lines ─── */
.hook {
  padding: 0 0 8px;
  text-align: center;
  font-size: 14px;
  color: var(--mut);
}
.hook .hook-arrow {
  display: block;
  margin-top: 10px;
  color: var(--teal);
  font-size: 18px;
  animation: bob 1.8s ease-in-out infinite;
  text-shadow: 0 0 12px rgba(61, 255, 208, 0.6);
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ─── hero ─── */
.hero { padding: 48px 0 40px; text-align: center; }
.hero .kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(61, 255, 208, 0.08);
  border: 1px solid rgba(61, 255, 208, 0.25);
  border-radius: 99px;
  padding: 6px 14px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(34px, 8vw, 52px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.hero h1 .glow {
  color: var(--teal);
  text-shadow: 0 0 28px rgba(61, 255, 208, 0.45);
}
.hero .sub {
  font-size: 17px;
  color: var(--mut);
  max-width: 460px;
  margin: 0 auto 32px;
}
.boarding-call {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--am);
  margin-bottom: 18px;
}
.boarding-call .blink { animation: blink 1.4s step-end infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

.btn {
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 14px;
  padding: 15px 32px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-primary {
  color: #06231b;
  background: linear-gradient(135deg, #6fffdd, var(--teal));
  box-shadow: 0 4px 28px rgba(61, 255, 208, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 36px rgba(61, 255, 208, 0.45); }
.hero .note { margin-top: 14px; font-size: 13px; color: var(--dim); }

/* ─── stats strip ─── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 36px;
}
@media (max-width: 520px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  background: var(--glass);
  border: 1px solid var(--line2);
  border-radius: 14px;
  padding: 14px 8px;
  text-align: center;
}
.stat strong {
  display: block;
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--teal);
  text-shadow: 0 0 16px rgba(61, 255, 208, 0.35);
}
.stat span {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mut);
}

/* ─── section headers ─── */
.sec-head { text-align: center; margin-bottom: 32px; }
.sec-head h2 {
  font-size: clamp(24px, 5.5vw, 32px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.sec-head p { color: var(--mut); font-size: 15px; max-width: 440px; margin: 0 auto; }

/* ─── glass cards ─── */
.card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.card + .card { margin-top: 14px; }
.card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.card p { font-size: 14px; color: var(--mut); }

/* pain cards */
.pain-card { display: flex; gap: 16px; align-items: flex-start; }
.pain-card .orb { width: 38px; height: 38px; margin-top: 2px; }

/* ─── feature strip ─── */
.features { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 560px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feat { text-align: center; padding: 26px 18px; }
.feat .orb { width: 46px; height: 46px; margin-bottom: 14px; }
.feat .step {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 4px;
}

/* ─── destination block ─── */
.dest-list { list-style: none; display: grid; gap: 12px; margin-top: 8px; }
.dest-list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 15px;
  color: var(--tx);
}
.dest-list .tick { color: var(--teal); font-weight: 700; flex-shrink: 0; }
.dest-list span:last-child em { color: var(--mut); font-style: normal; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
  font-size: 12px;
  font-weight: 600;
  color: var(--mut);
  background: var(--glass);
  border: 1px solid var(--line2);
  border-radius: 99px;
  padding: 6px 13px;
}

/* ─── manifesto ─── */
.manifesto { text-align: center; }
.manifesto blockquote {
  font-size: clamp(19px, 4.5vw, 24px);
  font-weight: 600;
  line-height: 1.5;
  max-width: 520px;
  margin: 0 auto;
  color: var(--tx);
}
.manifesto blockquote .hl { color: var(--purple); }
.manifesto cite {
  display: block;
  margin-top: 18px;
  font-size: 13px;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ═══ L6 · THE CHAOS BOARD ═══════════════════════════════════════════
   THE ONE EXCEPTION: every .artifact below is DELIBERATELY off-brand —
   white/grey backgrounds, system-ui, hard shadows, emoji. That IS the
   point: the clutter of the world before the brief. These styles are
   scoped to .chaos-* / .artifact and must NEVER be reused elsewhere. */
.chaos-wrap { overflow: hidden; }
.chaos-board { position: relative; height: 400px; max-width: 420px; margin: 0 auto; }
.artifact {
  position: absolute;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #ffffff;
  color: #1a1a1f;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5), 0 2px 5px rgba(0, 0, 0, 0.3);
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.35;
  transform: rotate(var(--r, 0deg));
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
/* one-shot "gravity": artifacts settle toward the brief as the section reveals */
html.js .chaos-wrap:not(.in) .artifact { transform: translateY(-7px) rotate(calc(var(--r, 0deg) * 1.5)) scale(1.05); }
html.js .chaos-wrap.in .artifact { transform: rotate(var(--r, 0deg)); }

.art-tabs   { top: 0;      left: 0;    width: 84%; z-index: 3; --r: -4deg; }
.art-sheet  { top: 76px;   right: 0;   width: 150px; z-index: 2; --r: 4deg; filter: blur(0.4px); }
.art-ig     { top: 152px;  left: 0;    width: 150px; z-index: 4; --r: -6deg; }
.art-tiktok { top: 118px;  right: 5%;  width: 132px; z-index: 2; --r: 6deg; filter: blur(0.4px); }
.art-wa     { bottom: 4px; left: 13%;  width: 184px; z-index: 5; --r: -3deg; }

.art-tabs { background: #e8e8ee; padding: 6px 6px 0; }
.tab-strip { display: flex; gap: 4px; align-items: flex-end; overflow: hidden; }
.tab { background: #fff; border-radius: 6px 6px 0 0; padding: 5px 9px; font-size: 10.5px; white-space: nowrap; color: #555; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); max-width: 96px; overflow: hidden; text-overflow: ellipsis; }
.tab.active { color: #111; font-weight: 600; }
.tab-plus { font-size: 10px; color: #999; padding: 0 2px 5px; white-space: nowrap; }

.art-sheet { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 1px; background: #c7c7d0; padding: 1px; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.sheet-cell { background: #fff; padding: 4px 6px; font-size: 10px; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-h { background: #f0f0f4; font-weight: 600; text-align: center; color: #999; }
.sheet-cell.err { color: #c0392b; font-weight: 700; }

.art-ig { padding: 11px; }
.ig-top { font-size: 11px; font-weight: 600; margin-bottom: 7px; }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.ig-grid i { aspect-ratio: 1; border-radius: 3px; display: block; background: linear-gradient(135deg, #cfd8dc, #a9b4ba); }
.ig-grid i:nth-child(2) { background: linear-gradient(135deg, #f3c1a9, #d99873); }
.ig-grid i:nth-child(3) { background: linear-gradient(135deg, #bcd6c2, #8fb397); }
.ig-grid i:nth-child(5) { background: linear-gradient(135deg, #e6c6d6, #c295ac); }
.ig-count { font-size: 10px; color: #999; margin-top: 7px; }

.art-tiktok { background: #111116; color: #fff; }
.tt-cap { font-size: 11px; font-weight: 600; line-height: 1.3; }
.tt-meta { font-size: 10px; color: #9a9aa5; margin-top: 7px; }

.art-wa { background: #e4ddd4; padding: 10px 10px 8px; }
.wa-bubble { background: #fff; border-radius: 9px; padding: 6px 9px; font-size: 11px; margin-bottom: 5px; max-width: 84%; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.14); }
.wa-me { background: #dcf8c6; margin-left: auto; }
.wa-time { font-size: 9px; color: #6a7078; text-align: right; }

.chaos-caption { display: flex; align-items: center; justify-content: center; gap: 13px; margin: 26px 0 20px; font-family: var(--mono); font-size: 13px; }
.cc-before { color: var(--dim); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, 0.28); letter-spacing: 0.04em; }
.cc-arrow { color: var(--teal); font-style: normal; }
.cc-after { color: var(--teal); text-transform: uppercase; letter-spacing: 0.16em; font-weight: 600; }

.brief-card { border-left: 3px solid var(--teal); max-width: 440px; margin: 0 auto; }
.brief-card h3 { margin: 12px 0 8px; font-size: 19px; }
.brief-card p { color: var(--mut); font-size: 14px; line-height: 1.55; }

/* ═══ 2c · THE GRADE — "a view through our glass" (Rachel's recipe, verbatim)
   Layer 1 grayscale kills stock color casts → layer 2 teal→purple wash
   re-lights everything as brand → layer 3 fades into glass so text always
   sits on solid. One recipe, two intensities: cards ~22%, landing ~45%. */
.card-photo { position: absolute; inset: 0; z-index: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.card-photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) brightness(0.62) contrast(1.12);
  opacity: 0.55;
}
.card-photo::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(61, 255, 208, 0.16), rgba(167, 139, 250, 0.12));
  mix-blend-mode: color;
}
.card-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 20, 0.35) 0%, rgba(10, 10, 20, 0.94) 100%);
}
@supports not (mix-blend-mode: color) {
  .card-photo::before { mix-blend-mode: normal; opacity: 0.25; }
}
/* content rides above the photo; absolutely-positioned badges keep their
   own positioning — z-index alone is enough since they're already positioned */
.place-card > *:not(.card-photo) { z-index: 1; }
.place-card > *:not(.card-photo):not(.match-badge):not(.disc-badge) { position: relative; }

/* Hero photo: REMOVED by Guy's call (Jul 23) — full-bleed Bali at the hero's
   mobile crop read as mud, not place. Real Bali lives on the cards (22%
   texture windows, where the grade works). A hero treatment needs Rachel's
   art direction if we retry. hero-bali.webp stays in shared/img for that. */

/* ═══ L4 v2 · CONCIERGE LEDGER — value rows, not stat tiles ═══ */
.value-ledger {
  max-width: 560px;
  margin: 36px auto 0;
  text-align: left;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 22px 8px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.vl-head { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em; color: var(--dim); margin-bottom: 4px; }
.vl-row { display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: start; padding: 14px 0; }
.vl-row + .vl-row { border-top: 1px dashed var(--line); }
.vl-k { font-family: var(--mono); font-size: 21px; font-weight: 700; color: var(--teal); line-height: 1.1; }
.vl-k em { display: block; font-style: normal; font-size: 9.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin-top: 3px; }
.vl-v strong { display: block; font-size: 14.5px; margin-bottom: 3px; }
.vl-v span { font-size: 13px; color: var(--mut); line-height: 1.5; }

/* ═══ AI-1 · THE ROUTE INSTRUMENT ═══════════════════════════════════
   The flight-plan grammar at trip-zoom (AI_ROUTE_SURFACES_SPEC §1):
   vertical line, 12px area-orbs in terrain tints, current leg lit,
   nights in mono with dot leaders. Zero new tokens, zero new motion. */
.route-instr {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 18px 14px;
  margin-top: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.ri-head { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--dim); }
.ri-head em { font-style: normal; color: var(--teal); }
.ri-summary { font-size: 13.5px; color: var(--mut); line-height: 1.5; margin: 10px 0 4px; }
.ri-legs { position: relative; margin-top: 10px; }
.ri-legs::before {
  content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px;
  width: 2px; background: var(--line); border-radius: 2px;
}
.ri-leg { position: relative; padding-left: 26px; }
.ri-orb {
  position: absolute; left: 0; top: 14px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--at, var(--teal));
  box-shadow: 0 0 0 3px rgba(10, 10, 20, 0.9);
}
.ri-leg.current .ri-orb { box-shadow: 0 0 0 3px rgba(10, 10, 20, 0.9), 0 0 12px var(--at, var(--teal)); }
.ri-leg.done { opacity: 0.45; }
.ri-row {
  display: flex; align-items: baseline; gap: 8px; width: 100%;
  min-height: 44px; padding: 10px 0 4px;
  background: none; border: none; cursor: pointer; text-align: left;
  font: inherit; color: var(--tx);
}
.ri-row:disabled { cursor: default; }
.ri-name { font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; }
.ri-leg.current .ri-name { color: var(--at, var(--teal)); }
.ri-dots { flex: 1; border-bottom: 1px dotted rgba(255, 255, 255, 0.22); transform: translateY(-3px); min-width: 18px; }
.ri-n { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--mut); white-space: nowrap; }
.ri-leg.current .ri-n { color: var(--teal); }
.ri-caret { font-size: 10px; color: var(--dim); flex-shrink: 0; }
.ri-why { padding: 0 0 12px; }
.ri-why p { font-size: 13px; color: var(--mut); line-height: 1.5; margin-bottom: 8px; }
.ri-places { font-size: 11.5px; }
.ri-foot { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 12px; }
.ri-replan {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--teal); background: none; cursor: pointer;
  border: 1px solid rgba(61, 255, 208, 0.3); border-radius: 99px; padding: 7px 14px;
}
.ri-replan:hover { border-color: var(--teal); }
.ri-confirm p { font-size: 12.5px; color: var(--mut); margin-bottom: 10px; }
.ri-confirm .ri-go { padding: 8px 18px; margin-right: 14px; }
.ri-locked { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; color: var(--dim); }
/* AI-2.5 · deviation controls */
.ri-foot { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.ri-foot .ri-locked, .ri-foot .ri-offroute, .ri-foot .ri-areas, .ri-foot .ri-confirm { flex-basis: 100%; }
.ri-offroute { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--am); line-height: 1.6; }
.ri-offroute strong { color: var(--am); }
.ri-areas { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 2px; }
.ri-area-chip {
  display: inline-flex; align-items: center; gap: 7px;
  font: inherit; font-size: 12.5px; font-weight: 600; color: var(--tx);
  background: var(--glass); border: 1px solid var(--line); border-radius: 99px;
  padding: 8px 14px; cursor: pointer;
}
.ri-area-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--at, var(--teal)); }
.ri-area-chip:active { transform: scale(0.96); }
.ri-fade { opacity: 0; transition: opacity 0.22s ease; }
/* ═══ A1 · THE PASSPORT ══════════════════════════════════════════════
   Object semantics, never skeuomorphism: stamps/pages/visas rendered in
   glass + instrument ink + terrain tints. Deterministic rotation per
   place; ceremony = drop-in + settle composed, nothing new. */
.you-index {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px;
}
.you-index button {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em;
  color: var(--mut); background: none; cursor: pointer;
  border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px;
}
.you-index button.on { color: var(--teal); border-color: rgba(61, 255, 208, 0.35); }

.passport-card { margin-top: 16px; }
.pp-head { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--dim); margin-bottom: 12px; }
.pp-head em { font-style: normal; color: var(--teal); }
.pp-toggle { display: flex; gap: 8px; margin-bottom: 12px; }
.pp-toggle button {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em;
  color: var(--mut); background: none; cursor: pointer;
  border: 1px solid var(--line); border-radius: 99px; padding: 7px 14px;
}
.pp-toggle button.on { color: var(--teal); border-color: rgba(61, 255, 208, 0.35); }
.pp-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.pp-cat {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600; color: var(--mut);
  background: none; border: 1px solid var(--line); border-radius: 99px;
  padding: 5px 11px; cursor: pointer;
}
.pp-cat.on { color: var(--tx); border-color: rgba(255, 255, 255, 0.25); }

.pp-page { margin-bottom: 22px; }
.visa {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  border: 1.5px solid var(--st, var(--teal)); border-radius: 12px;
  padding: 10px 14px; margin-bottom: 12px;
  box-shadow: 0 0 12px color-mix(in srgb, var(--st, var(--teal)) 12%, transparent);
}
.visa-name { font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 0.16em; color: var(--st, var(--teal)); }
.visa-date { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; color: var(--dim); }

.stamp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stamp {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 92px; padding: 12px 10px;
  font: inherit; color: var(--tx); text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid var(--st, var(--teal));
  cursor: pointer;
  transform: rotate(var(--rot, 0deg));
  -webkit-tap-highlight-color: transparent;
}
div.stamp { cursor: default; }
.stamp.st-circle { border-radius: 50%; aspect-ratio: 1; }
.stamp.st-diamond { border-radius: 22px 8px 22px 8px; }
.stamp:active { transform: rotate(var(--rot, 0deg)) scale(0.97); }
.st-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.st-name { font-size: 12px; font-weight: 700; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st-date { font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; color: var(--dim); }
.st-v { color: var(--teal); }
.st-v.st-disc { color: var(--dim); }
.st-count {
  position: absolute; top: 6px; right: 10px;
  font-family: var(--mono); font-size: 9.5px; color: var(--st, var(--teal));
}
.st-meta { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.08em; color: var(--teal); }
.pp-pulse { display: inline-block; margin-top: 10px; }

/* BY DAY — memory-zoom on the route line */
.pp-days { position: relative; padding-left: 18px; }
.pp-days::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 2px; background: var(--line); border-radius: 2px; }
.pp-day { position: relative; padding: 8px 0 14px; }
.pp-day::before { content: ""; position: absolute; left: -17px; top: 13px; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px rgba(10, 10, 20, 0.9); }
.pp-day.dim::before { background: var(--dim); }
.pp-day-label { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--dim); margin-bottom: 10px; }
.pp-day.dim .pp-day-label { margin-bottom: 0; }
.pp-ghost { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--mut); opacity: 0.45; padding: 4px 0; }

/* the ceremony: drop-in + press settle, composed — one shot */
@keyframes stampIn {
  0%   { opacity: 0; transform: translateY(-10px) rotate(var(--rot, 0deg)) scale(1.06); }
  70%  { opacity: 1; transform: translateY(0)     rotate(var(--rot, 0deg)) scale(1.03); }
  100% { opacity: 1; transform: translateY(0)     rotate(var(--rot, 0deg)) scale(1); }
}
.stamp.st-new { animation: stampIn 0.4s ease-out both; }
@media (prefers-reduced-motion: reduce) { .stamp.st-new { animation: none; } }

/* ═══ A3 · THE SHARED PASSPORT (public page /s/) ═══ */
.share-wrap { max-width: 560px; }
.sh-center { text-align: center; padding: 80px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.sh-gone-h { font-size: 26px; }
.sh-hero { text-align: center; padding: 26px 0 10px; }
.sh-dial { width: 84px; height: 84px; margin: 0 auto 14px; }
.sh-title { font-family: var(--mono); font-size: clamp(22px, 6vw, 30px); letter-spacing: 0.14em; margin-bottom: 10px; }
.sh-counts { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--dim); }
.sh-counts em { font-style: normal; color: var(--teal); }
.sh-cap { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; color: var(--dim); margin-top: 10px; }
.sh-sec { margin-top: 34px; }
.sh-sec-cap { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; color: var(--dim); margin-bottom: 12px; text-transform: uppercase; }
.sh-cta { text-align: center; margin: 44px 0 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.sh-cta-line { font-size: 19px; font-weight: 700; }
.sh-foot { text-align: center; padding: 24px 0 40px; }
.sh-foot a { color: var(--mut); font-size: 13px; }
.sh-mini {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(4, 4, 12, 0.72); backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center; padding: 18px;
}
.sh-mini-card {
  width: 100%; max-width: 420px;
  background: var(--surface, #12121e); border: 1px solid var(--line); border-radius: 18px;
  padding: 20px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px;
}
/* owner side: share sheet in the passport */
.pp-share-row { margin: 0 0 12px; }
.pp-share-sheet { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.pp-share-link {
  font-family: var(--mono); font-size: 11px; color: var(--teal);
  word-break: break-all; background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px;
}
.pp-share-priv { font-size: 12px; color: var(--mut); line-height: 1.5; }
.pp-share-acts { display: flex; gap: 16px; align-items: center; }

/* A2: zero-friction check-in — chip on Today + the nearest-places sheet */
.gps-row { margin: 10px 0 4px; }
.gps-sheet { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; margin-bottom: 10px; }
.gps-sheet .gps-pick { text-align: left; }
.pp-retro-form { margin-top: 10px; }
.pp-retro-form .auth-input { font-size: 13px; }

/* AI-3: the live concierge — input on Today + reply line above the timeline */
.cx-form { margin-bottom: 4px; }
.cx-form .auth-input { font-size: 13.5px; }
.cx-reply {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--teal);
  line-height: 1.6;
  border-left: 2px solid rgba(61, 255, 208, 0.4);
  padding-left: 11px;
  margin-bottom: 18px;
}

/* ═══ FIRST-OPEN CORRIDOR (FIRST_OPEN_SPEC §A–§E) ═══ */

/* §A · Bali is already alive — one surface, one action */
.corr-a {
  min-height: 100dvh; display: flex; align-items: center;
  padding: calc(24px + env(safe-area-inset-top, 0px)) 24px 40px;
}
.corr-a-inner { width: 100%; max-width: 420px; margin: 0 auto; text-align: center; }
.corr-dial { display: inline-block; margin-bottom: 12px; }
.corr-clock { justify-content: center; padding: 0; margin-bottom: 26px; letter-spacing: 0.18em; }
.corr-h1 { font-size: 34px; font-weight: 800; line-height: 1.15; margin-bottom: 26px; }
.corr-tonight {
  display: flex; gap: 12px; align-items: flex-start; text-align: left;
  background: var(--glass); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px; min-height: 76px; margin-bottom: 14px;
}
.corr-t-orb { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.corr-t-name { font-weight: 700; font-size: 15px; }
.corr-t-area { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--mut); margin-left: 6px; }
.corr-t-why {
  font-size: 12.5px; color: var(--mut); line-height: 1.5; margin-top: 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.corr-counts { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--mut); margin-bottom: 26px; }
.corr-cta {
  width: 100%; font-family: var(--mono); letter-spacing: 0.14em;
  text-transform: uppercase; font-size: 14px; padding: 16px;
}

/* §C · the ceremony — the gift being unwrapped */
.ceremony {
  min-height: 100dvh;
  padding: calc(28px + env(safe-area-inset-top, 0px)) 20px 48px;
}
.cer-inner { max-width: 460px; margin: 0 auto; }
.cer-map { margin: 8px 0 4px; }
.cer-map text { font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; }
.cer-legs { margin: 10px 0; }
.cer-leg { padding: 10px 2px; border-bottom: 1px dashed var(--line); }
.cer-leg:last-child { border-bottom: none; }
.cer-leg-row { display: flex; align-items: center; gap: 10px; }
.cer-leg-orb { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.cer-leg-name { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; font-weight: 700; }
.cer-leg-n { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--mut); margin-left: auto; }
.cer-leg-why { font-size: 12.5px; color: var(--mut); line-height: 1.55; margin: 6px 0 0 22px; }
.cer-summary { margin: 16px 0 20px; }
.cer-sum-main { font-family: var(--mono); font-size: 14px; letter-spacing: 0.06em; color: var(--teal); }
.cer-sum-sub { font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; color: var(--mut); margin-top: 6px; }
.cer-share { margin: 18px 0 6px; }
.cer-share-line { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; color: var(--teal); }
.cer-ask { margin-top: 22px; border-top: 1px dashed var(--line); padding-top: 18px; }
.cer-ask-line { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.05em; margin-bottom: 12px; }
.cer-ask-chips { display: flex; gap: 12px; }
.cer-ask-chips .swap-chip { min-height: 40px; padding: 9px 18px; font-size: 12px; }
/* §E re-ask: banner form — glass card, not the ceremony's ruled section */
.cer-ask.reask {
  border: 1px solid var(--line); border-top: 1px solid var(--line);
  border-radius: 12px; background: var(--glass);
  padding: 13px 14px; margin: 0 0 12px;
}

/* ceremony pops — existing drop-in vocabulary, ceremony-scale */
.cer-pop { animation: cerPop 0.3s ease-out backwards; }
@keyframes cerPop {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* §B · the tab bar rises — once, ever */
.tab-bar.rising .tab-slot {
  opacity: 0; transform: translateY(16px);
  animation: tabRise 0.3s ease-out forwards;
}
.tab-bar.rising .tab-slot:nth-of-type(2) { animation-delay: 0.04s; }
.tab-bar.rising .tab-slot:nth-of-type(3) { animation-delay: 0.08s; }
.tab-bar.rising .tab-slot:nth-of-type(4) { animation-delay: 0.12s; }
@keyframes tabRise { to { opacity: 1; transform: none; } }

/* §G · route awaiting (You) — grey field + the quiet sweep */
.ri-awaiting { position: relative; overflow: hidden; opacity: 0.75; }
.ri-awaiting .ri-head { color: var(--mut); }

/* §F · layer-unlock captions — the boot-caption pattern, one line, mono */
.layer-cap {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--teal); opacity: 0.85; margin: 4px 0 12px;
  animation: cerPop 0.3s ease-out backwards;
}

/* §H day-7 · a mark in a logbook */
.pp-week-line {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--mut); margin: 2px 0 10px;
}

/* §D · the public route page */
.rt-wrap { max-width: 480px; margin: 0 auto; padding: 48px 22px 64px; min-height: 100dvh; }
.rt-center { text-align: center; padding-top: 18vh; }
.rt-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--teal); margin-bottom: 10px; }
.rt-h1 { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.rt-sub { color: var(--mut); font-size: 14px; margin-bottom: 22px; }
.rt-facts { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--mut); margin-bottom: 10px; }
.rt-summary { color: var(--tx); font-size: 14.5px; line-height: 1.6; margin: 14px 0; }
.rt-counts { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--mut); margin-bottom: 26px; }
.rt-cta { text-align: center; margin-top: 26px; }
.rt-cta .btn { width: 100%; }
.rt-cta .note { margin-top: 10px; }

/* §G · no-brief Places banner — nothing locked, nothing blurred */
.nobrief-banner {
  background: var(--glass); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; margin: 12px 0;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.05em; color: var(--mut);
}
.nobrief-banner .ck-reset { margin: 0; color: var(--teal); }

/* build #5 (UX audit): swap is a TEXT chip everywhere — bordered mono,
   visible-affordance rule (Guy couldn't see the icon) */
.swap-chip {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em;
  color: var(--teal); background: none; cursor: pointer; white-space: nowrap;
  border: 1px solid rgba(61, 255, 208, 0.35); border-radius: 8px;
  padding: 5px 9px; min-height: 30px;
}
.swap-chip:active { border-color: rgba(61, 255, 208, 0.7); }
.slot-card .swap-chip { margin-left: auto; min-height: 26px; padding: 3px 7px; }

/* build #5: the rail footer — the menu must be felt */
.rail-more {
  display: block; margin: 8px 0 2px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--mut); text-decoration: none;
}
.rail-more:active { color: var(--teal); }

/* F7: generation gets a visible moment — the quiet scan row, rails-scale */
.rail-scan {
  position: relative; overflow: hidden;
  border: 1px dashed var(--line); border-radius: 12px;
  padding: 14px 12px; margin-bottom: 10px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em;
  color: var(--teal);
}
.rail-scan .scan-line { position: absolute; inset: 0 auto 0 0; }

/* F5: pride-moment share bridges — quiet, earned, never nagging */
.nudge-share {
  display: block; margin-top: 6px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em;
  color: var(--am); opacity: 0.9;
}
.pp-share-nudge { font-family: var(--mono); letter-spacing: 0.08em; color: var(--teal); }

/* F9: the worth-it echo on the traveler's own stamps (never on the share page) */
.st-worth { color: var(--teal); }

/* F4: the update chip — above the tab bar, dismissible, never a modal */
.update-chip {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  z-index: 60; display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--teal); cursor: pointer; white-space: nowrap;
  background: rgba(18, 18, 30, 0.92); backdrop-filter: blur(8px);
  border: 1px solid rgba(61, 255, 208, 0.4); border-radius: 999px;
  padding: 9px 14px; min-height: 36px;
}
.update-chip .uc-x { color: var(--mut); padding: 2px 4px; }

/* F6: the provenance thread on the landing hero */
.via-line {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em;
  color: var(--teal); margin: 10px 0 4px;
}

/* F1 (UX audit): off-route announces itself ON Today — one amber instrument
   line at the top of the rails, the way back lives in the line */
.offroute-line {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.05em;
  color: var(--am); line-height: 1.5;
  border: 1px solid rgba(255, 180, 84, 0.35); border-radius: 10px;
  padding: 10px 12px; margin-bottom: 16px;
}
.or-return {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  color: var(--am); background: none; cursor: pointer; white-space: nowrap;
  border: 1px solid rgba(255, 180, 84, 0.45); border-radius: 8px;
  padding: 6px 10px; min-height: 32px;
}
.or-return:active { border-color: rgba(255, 180, 84, 0.8); }

/* AI-2a: planned slots on the rails — teal ✦ tag, accent border, no new tokens */
.slot-card.is-planned { border-color: rgba(61, 255, 208, 0.35); }
.slot-planned {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--teal); white-space: nowrap;
}

/* curation desk (admin-only card on You) */
.cur-row { border-top: 1px dashed var(--line); }
.cur-row:first-child { border-top: none; }
.cur-head {
  display: flex; align-items: baseline; gap: 10px; width: 100%;
  min-height: 44px; padding: 11px 0;
  background: none; border: none; cursor: pointer; text-align: left;
  font: inherit; color: var(--tx);
}
.cur-name { font-weight: 600; font-size: 14px; }
.cur-meta { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--dim); margin-left: auto; white-space: nowrap; }
.cur-body { padding: 0 0 14px; }
.cur-why { width: 100%; margin-bottom: 10px; font-size: 13px; }
.cur-actions { display: flex; gap: 16px; align-items: center; }
.cur-actions .cur-verify { padding: 8px 18px; }
.cur-note { color: var(--am); }

/* editable spend suggestion (Guy: the estimate is rarely the real price) */
.ss-editwrap { display: inline-flex; align-items: center; gap: 4px; }
.ss-amt { width: 62px; padding: 6px 8px; font-size: 13px; text-align: right; }
.ss-k { font-family: var(--mono); font-size: 11px; color: var(--dim); }
/* plan swap — one place at a time, rotating through honest alternatives */
.slot-swap {
  flex-shrink: 0; font: inherit; font-size: 13px; color: var(--teal);
  background: none; border: 1px solid rgba(61, 255, 208, 0.3); border-radius: 99px;
  width: 28px; height: 28px; cursor: pointer; line-height: 1;
}
/* passport edit mode: only the ✕ deletes (destructive taps get explicit targets) */
.st-x {
  position: absolute; top: -6px; left: -6px;
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--tx);
  background: var(--surface, #12121e); border: 1px solid rgba(255, 107, 107, 0.5);
}

/* Today NOW cards are tappable through to their place (affordance rule) */
.place-card.now-tap { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.place-card.now-tap:active { transform: scale(0.98); }
.place-card.now-tap .pf-actions { display: inline-flex; gap: 14px; align-items: center; }
/* the plan outranks category: planned-lead is the ONE card that overrides the accent */
.place-card.planned-lead { --cc: var(--teal) !important; }
/* off-route strip token agrees with the amber marker (attention, not error) */
.leg-chip.off { color: var(--am); border-bottom-color: rgba(255, 180, 84, 0.5); }
/* curation ceremony: pending amber count · ◔ graduates to ✓ in teal */
.cur-count { color: var(--am); }
.cur-badge { font-size: 13px; color: var(--dim); flex-shrink: 0; transition: color 0.16s ease; }
.cur-badge.done { color: var(--teal); }

/* the strip's tappable LEG token (visible affordance: bordered underline-chip) */
.leg-chip {
  font: inherit; color: inherit; background: none; cursor: pointer;
  border: none; border-bottom: 1px solid rgba(61, 255, 208, 0.45);
  padding: 0 1px 1px; letter-spacing: inherit;
}
.leg-chip:active { color: var(--teal); }
@media (prefers-reduced-motion: reduce) { .ri-fade { transition: none; } }

/* ═══ L7 · INBOUND TRANSMISSION ═══ the system speaking, not a founder */
.transmission { text-align: center; padding-top: 42px; }
.tx-eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em; color: var(--dim); margin-bottom: 18px; }
.tx-line { font-family: var(--mono); font-size: clamp(20px, 5.2vw, 24px); color: var(--teal); font-weight: 500; letter-spacing: 0.005em; }

@media (prefers-reduced-motion: reduce) {
  html.js .chaos-wrap:not(.in) .artifact { transform: rotate(var(--r, 0deg)); }
  .artifact { transition: none; }
}

/* ─── boarding pass ─── */
.bpass {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 100% at 50% 0%, rgba(61, 255, 208, 0.08), transparent 70%),
    var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.bp-main { flex: 1; padding: 30px 28px; min-width: 0; }
.bp-air {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 16px;
}
.bp-route {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 6px;
}
.bp-city {
  font-family: var(--mono);
  font-size: clamp(30px, 7vw, 42px);
  font-weight: 800;
  letter-spacing: 0.02em;
}
.bp-city.bp-to { color: var(--teal); text-shadow: 0 0 24px rgba(61, 255, 208, 0.4); }
.bp-route .bp-dash {
  flex: 1;
  position: relative;
  border-top: 2px dashed rgba(255, 255, 255, 0.16);
}
.bp-route .bp-dash::after {
  content: "✈";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  color: var(--teal);
  font-size: 16px;
  text-shadow: 0 0 10px rgba(61, 255, 208, 0.7);
  background: transparent;
}
.bp-sub {
  font-size: 13px;
  color: var(--mut);
  margin-bottom: 20px;
}
.bp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 16px;
  margin-bottom: 24px;
}
.bp-grid div span {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}
.bp-grid div strong { font-size: 14px; font-weight: 700; }
.bp-stub {
  width: 92px;
  flex-shrink: 0;
  border-left: 2px dashed rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 0;
}
.bp-barcode {
  width: 44px;
  align-self: stretch;
  flex: 1;
  margin: 0 auto;
  background: repeating-linear-gradient(
    180deg,
    rgba(232, 232, 240, 0.75) 0 2px,
    transparent 2px 5px,
    rgba(232, 232, 240, 0.55) 5px 6px,
    transparent 6px 10px
  );
  border-radius: 3px;
  opacity: 0.8;
}
.bp-stub .bp-code {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--mut);
  writing-mode: vertical-rl;
}
@media (max-width: 480px) {
  .bp-main { padding: 24px 18px; }
  .bp-grid { grid-template-columns: repeat(2, 1fr); }
  .bp-stub { width: 64px; }
}

/* ─── check-in wizard ─── */
.checkin { padding: 28px 24px; }
.ck-q {
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
}
.ck-opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ck-opt {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--tx);
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.ck-opt:hover {
  border-color: rgba(61, 255, 208, 0.5);
  background: rgba(61, 255, 208, 0.07);
  transform: translateY(-1px);
}
.ck-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.ck-dots span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.2s;
}
.ck-dots span.on { background: var(--teal); box-shadow: 0 0 8px rgba(61, 255, 208, 0.6); }

/* AI build sequence */
.ck-term {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 2;
  color: var(--mut);
  min-height: 130px;
  margin-bottom: 16px;
}
.ck-term .ln { display: block; }
.ck-term .ln .ok { color: var(--teal); }
.ck-bar {
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.ck-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, rgba(61,255,208,0.4), var(--teal));
  box-shadow: 0 0 10px rgba(61, 255, 208, 0.5);
  transition: width 2.6s ease;
}

/* generated plan */
.ck-plan .plan-head {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 12px;
}
.ck-plan h3 { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.ck-plan .plan-base { font-size: 14px; color: var(--mut); margin-bottom: 18px; }
.ck-plan .plan-base strong { color: var(--teal); font-weight: 700; }
.plan-lock-wrap { position: relative; border-radius: 14px; overflow: hidden; }
.plan-list { list-style: none; }
.plan-list li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 14px;
  padding: 11px 2px;
  border-bottom: 1px dashed var(--line);
}
.plan-list li:last-child { border-bottom: none; }
.plan-list li .pl-k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  flex-shrink: 0;
  width: 84px;
}
.plan-list.locked {
  filter: blur(7px);
  pointer-events: none;
  user-select: none;
}
.plan-lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 18px;
  background: radial-gradient(ellipse 90% 80% at 50% 50%, rgba(10, 10, 20, 0.55), rgba(10, 10, 20, 0.2));
}
.plan-lock .plan-lock-ico { font-size: 26px; filter: drop-shadow(0 0 12px rgba(61, 255, 208, 0.5)); }
.plan-lock p { font-size: 13.5px; color: var(--tx); max-width: 320px; }
.plan-lock .note { font-size: 12px; color: var(--mut); }
.ck-reset {
  display: inline-block;
  margin-top: 16px;
  font: inherit;
  font-size: 12.5px;
  color: var(--mut);
  text-decoration: none;
  background: none;      /* works as <a> AND <button> */
  border: none;
  border-bottom: 1px dashed var(--dim);
  padding: 0;
  cursor: pointer;
}
.ck-reset:hover { color: var(--teal); }

/* ─── departures board ─── */
.board {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(6, 6, 12, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: var(--mono);
}
.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--am);
  background: rgba(255, 180, 84, 0.05);
  border-bottom: 1px solid var(--line);
}
.board-head .live { color: var(--teal); animation: blink 1.4s step-end infinite; }
.board-cols, .board-row {
  display: grid;
  grid-template-columns: 58px 1fr 52px 130px;
  gap: 10px;
  align-items: center;
  padding: 13px 18px;
}
.board-cols {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  border-bottom: 1px solid var(--line2);
  padding-top: 10px;
  padding-bottom: 10px;
}
.board-row {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tx);
  text-decoration: none;
  border-bottom: 1px solid var(--line2);
  transition: background 0.2s;
}
.board-row:last-child { border-bottom: none; }
a.board-row:hover { background: rgba(61, 255, 208, 0.06); }
.board-row .b-time { color: var(--mut); }
.board-row .b-code { color: var(--mut); }
.board-row .b-status { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; }
.board-row .b-status.boarding { color: var(--teal); animation: blink 1.4s step-end infinite; }
.board-row .b-status.scheduled { color: var(--dim); }
.board-row.dim { color: var(--dim); }
.board-row.dim .b-time, .board-row.dim .b-code { color: var(--dim); }
@media (max-width: 480px) {
  .board-cols, .board-row { grid-template-columns: 44px 1fr 100px; }
  .board-cols .c-code, .board-row .b-code { display: none; }
  .board-cols, .board-row { padding-left: 14px; padding-right: 14px; }
}

/* ─── footer cta ─── */
.foot-cta {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(ellipse 80% 100% at 50% 0%, rgba(61, 255, 208, 0.09), transparent 70%),
    var(--glass);
  padding: 48px 24px;
}
.foot-cta h2 { font-size: clamp(24px, 5.5vw, 30px); font-weight: 800; margin-bottom: 8px; }
.foot-cta p { color: var(--mut); font-size: 15px; margin-bottom: 26px; }

footer {
  padding: 36px 0 44px;
  text-align: center;
  font-size: 13px;
  color: var(--dim);
}
footer a { color: var(--mut); text-decoration: none; }
footer a:hover { color: var(--teal); }

/* ─── reveal on scroll (hidden only when JS is running — page never blanks) ─── */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hook .hook-arrow, .boarding-call .blink, .board-head .live, .board-row .b-status.boarding { animation: none; }
  html { scroll-behavior: auto; }
}
