:root {
  --bg: #0a090d;
  --ink: #f3eee6;
  --dim: rgba(243, 238, 230, 0.58);
  --faint: rgba(243, 238, 230, 0.34);
  --line: rgba(243, 238, 230, 0.11);
  --glass: rgba(243, 238, 230, 0.035);
  --amber: #ffb454;
  --amber-soft: rgba(255, 180, 84, 0.14);
  --rose: #ff7a93;
  --green: #86e0a8;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(16px, 5vw, 40px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 300 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--amber); color: var(--bg); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

/* Night sky: slow-drifting city glow and a little film grain */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.sky i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; animation: drift 38s ease-in-out infinite alternate; }
.sky i:nth-child(1) { width: 60vmax; height: 60vmax; left: -22vmax; bottom: -34vmax; background: radial-gradient(circle, rgba(255, 150, 60, 0.42), transparent 65%); }
.sky i:nth-child(2) { width: 50vmax; height: 50vmax; right: -20vmax; top: -24vmax; background: radial-gradient(circle, rgba(170, 70, 160, 0.34), transparent 65%); animation-duration: 46s; animation-direction: alternate-reverse; }
.sky i:nth-child(3) { width: 36vmax; height: 36vmax; right: 10vmax; bottom: -26vmax; background: radial-gradient(circle, rgba(60, 90, 200, 0.25), transparent 65%); animation-duration: 52s; }
.sky::after {
  content: ""; position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.07; mix-blend-mode: overlay;
}
@keyframes drift { to { transform: translate3d(6vmax, -4vmax, 0) scale(1.12); } }

/* Frame */
.top, .foot, main { width: 100%; max-width: 760px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 8px; }
.mark { display: inline-flex; align-items: center; gap: 10px; font: 400 26px/1 var(--serif); letter-spacing: 0.01em; text-decoration: none; }
.logo { width: 24px; height: 24px; flex: none; filter: drop-shadow(0 0 8px rgba(255, 170, 70, 0.45)); }
.mark em { color: var(--amber); font-style: italic; }
.beta { font: 500 10px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); border: 1px solid var(--line); border-radius: 99px; padding: 6px 9px 5px; }
main { flex: 1; display: flex; flex-direction: column; outline: none; }
.foot { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; padding-top: 40px; padding-bottom: 28px; font: 400 11.5px/1.5 var(--mono); color: var(--faint); }

.view { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* Home */
.home { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 8vh 0 4vh; }
.hero { font: 400 clamp(52px, 11vw, 104px)/0.92 var(--serif); letter-spacing: -0.015em; margin: 0 0 22px; }
.hero em { color: var(--amber); }
.lede { color: var(--dim); max-width: 32em; margin: 0 0 36px; font-size: 17px; }

.ask {
  position: relative; display: flex; align-items: flex-end; gap: 12px;
  background: var(--glass); border: 1px solid var(--line); border-radius: 24px;
  padding: 18px 12px 12px 22px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.ask:focus-within { border-color: rgba(255, 180, 84, 0.45); box-shadow: 0 0 0 6px var(--amber-soft), 0 20px 60px -20px rgba(255, 150, 60, 0.35); }
.ask textarea {
  flex: 1; min-height: 34px; max-height: 40vh; resize: none; border: 0; outline: 0; background: none; padding: 2px 0 8px;
  font: 300 clamp(19px, 2.6vw, 22px)/1.4 var(--sans); color: var(--ink);
}
.ask textarea::placeholder { color: var(--faint); }
.go {
  flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--amber); color: var(--bg);
  display: grid; place-items: center; transition: transform 0.2s, opacity 0.2s;
}
.go svg { width: 20px; height: 20px; }
.go:hover { transform: translateX(2px); }
.go:disabled { opacity: 0.35; cursor: default; transform: none; }

.ideas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ideas-label { width: 100%; font: 500 10.5px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }

.chip {
  border: 1px solid var(--line); background: none; border-radius: 99px; padding: 8px 14px 8px;
  font: 400 14px/1.2 var(--sans); color: var(--dim); transition: all 0.2s;
}
.chip:hover { color: var(--ink); border-color: var(--faint); }
.chip[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: var(--bg); font-weight: 500; }

/* Clarify */
.clarify { padding: 7vh 0 4vh; }
.echo { font: italic 400 clamp(22px, 3.4vw, 28px)/1.3 var(--serif); color: var(--dim); margin: 0 0 8px; }
.echo-edit { background: none; border: 0; padding: 0; font: 400 12px/1 var(--mono); color: var(--faint); text-decoration: underline; text-underline-offset: 3px; }
.echo-edit:hover { color: var(--ink); }
.q { margin-top: 44px; animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.q:nth-child(3) { animation-delay: 0.08s; } .q:nth-child(4) { animation-delay: 0.16s; } .q:nth-child(5) { animation-delay: 0.24s; }
.q h2 { font: 400 clamp(28px, 4.6vw, 38px)/1.1 var(--serif); margin: 0 0 16px; letter-spacing: -0.005em; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.free {
  display: block; width: 100%; margin-top: 12px; background: none; border: 0; border-bottom: 1px solid var(--line);
  padding: 10px 0; font: 300 17px/1.4 var(--sans); color: var(--ink); outline: 0; transition: border-color 0.2s;
}
.free:focus { border-color: var(--amber); }
.free::placeholder { color: var(--faint); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 48px; }
.primary {
  display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 99px; background: var(--amber); color: var(--bg);
  padding: 15px 26px; font: 500 16px/1 var(--sans); transition: transform 0.2s, box-shadow 0.2s;
}
.primary:hover { transform: translateY(-1px); box-shadow: 0 12px 36px -12px rgba(255, 170, 70, 0.7); }
.primary svg { width: 18px; height: 18px; }
.quiet { background: none; border: 0; padding: 4px 0; color: var(--dim); font: 400 15px/1 var(--sans); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 5px; }
.quiet:hover { color: var(--ink); text-decoration-color: var(--faint); }

/* Working */
.working { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 8vh 0; }
.moon { width: 58px; height: 58px; border-radius: 50%; margin-bottom: 34px; position: relative; overflow: hidden;
  background: radial-gradient(circle at 35% 35%, #ffe0a8, var(--amber) 55%, #c9731f);
  box-shadow: 0 0 60px 8px rgba(255, 170, 70, 0.35); animation: glow 3.2s ease-in-out infinite; }
.moon::after { content: ""; position: absolute; inset: -6px -30px -6px 22px; border-radius: 50%; background: var(--bg); opacity: 0.92; animation: phase 9s ease-in-out infinite alternate; }
@keyframes glow { 50% { box-shadow: 0 0 90px 16px rgba(255, 170, 70, 0.5); } }
@keyframes phase { to { transform: translateX(26px); } }
.status { font: italic 400 clamp(34px, 6vw, 56px)/1.05 var(--serif); margin: 0 0 12px; min-height: 2.1em; transition: opacity 0.35s; }
.status.fade { opacity: 0; }
.elapsed { font: 400 12px/1.5 var(--mono); color: var(--faint); margin: 0 0 30px; }
.log { list-style: none; margin: 0; padding: 0; font: 400 13px/1.5 var(--mono); color: var(--dim); max-width: 100%; }
.log li { display: grid; grid-template-columns: 74px 1fr; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); animation: rise 0.4s ease both; overflow-wrap: anywhere; }
.log li:nth-child(n+8) { opacity: 0.5; }
.log .k { color: var(--amber); text-transform: uppercase; letter-spacing: 0.1em; font-size: 10.5px; padding-top: 2px; }
.log .src { color: var(--faint); }

/* Results */
.results { padding: 6vh 0 2vh; }
.kicker { font: 500 11px/1.5 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); margin: 0 0 14px; }
.results-title { font: 400 clamp(44px, 8vw, 76px)/0.95 var(--serif); margin: 0 0 20px; letter-spacing: -0.01em; }
.results-title em { color: var(--amber); }
.headsup { list-style: none; margin: 0 0 12px; padding: 0; color: var(--dim); font-size: 15px; }
.headsup li { padding: 4px 0 4px 22px; position: relative; }
.headsup li::before { content: "!"; position: absolute; left: 0; top: 6px; width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--amber); color: var(--amber); font: 600 9px/13px var(--mono); text-align: center; }

.plan { border-top: 1px solid var(--line); margin-top: 56px; padding-top: 30px; animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.plan:nth-of-type(2) { animation-delay: 0.1s; } .plan:nth-of-type(3) { animation-delay: 0.2s; }
.plan-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font: 400 12px/1 var(--mono); color: var(--faint); margin-bottom: 16px; }
.plan-meta .num { color: var(--amber); }
.dots { display: inline-flex; gap: 4px; align-items: center; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.dots i.on { background: var(--amber); }
.plan h2 { font: italic 400 clamp(40px, 7.4vw, 64px)/0.98 var(--serif); margin: 0 0 12px; letter-spacing: -0.01em; }
.tagline { font-size: 19px; margin: 0 0 10px; color: var(--ink); }
.why { color: var(--dim); margin: 0 0 8px; font-size: 16px; }
.vibes { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; }
.vibes span { font: 400 12px/1 var(--mono); color: var(--dim); border: 1px solid var(--line); border-radius: 99px; padding: 6px 10px 5px; }

.stops { list-style: none; margin: 34px 0 0; padding: 0; position: relative; }
.stop { display: grid; grid-template-columns: 76px 1fr; gap: 14px; position: relative; padding-bottom: 30px; }
.stop::before { content: ""; position: absolute; left: 83px; top: 12px; bottom: -4px; width: 1px; background: var(--line); }
.stop:last-child::before { display: none; }
.stop time { font: 400 12.5px/1 var(--mono); color: var(--dim); padding-top: 7px; text-align: right; white-space: nowrap; }
.stop-body { padding-left: 22px; position: relative; min-width: 0; }
.stop-body::before { content: ""; position: absolute; left: -11.5px; top: 6px; width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--faint); background: var(--bg); }
.stop.wild .stop-body::before { border-color: var(--amber); background: var(--amber); box-shadow: 0 0 12px var(--amber); }
.stop h3 { font: 500 18px/1.3 var(--sans); margin: 0; letter-spacing: -0.005em; }
.stop h3 a { text-decoration: none; background: linear-gradient(var(--faint), var(--faint)) 0 100% / 100% 1px no-repeat; transition: color 0.2s, background-size 0.2s; }
.stop h3 a:hover { color: var(--amber); background-image: linear-gradient(var(--amber), var(--amber)); }
.where { font: 400 12px/1.4 var(--mono); color: var(--faint); margin: 4px 0 8px; text-transform: lowercase; }
.what { margin: 0 0 10px; color: var(--dim); font-size: 15.5px; }
.wildtag { display: inline-block; margin-left: 8px; vertical-align: 2px; font: 500 10px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); }
.state { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 13.5px; color: var(--dim); }
.pill { display: inline-flex; align-items: center; gap: 6px; font: 500 10.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.confirmed { color: var(--green); } .pill.likely { color: var(--amber); } .pill.walk-in { color: var(--ink); } .pill.call-ahead { color: var(--rose); }
.links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; }
.links a { font: 400 13.5px/1.4 var(--sans); color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--faint); padding-bottom: 1px; }
.links a:hover { border-color: var(--amber); color: var(--amber); }
.links a::after { content: " ↗"; color: var(--faint); }

.logistics { display: grid; grid-template-columns: 76px 1fr; gap: 14px; margin: 0; font-size: 14.5px; color: var(--dim); }
.logistics b { font: 400 10.5px/2 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); text-align: right; }
.logistics span { padding-left: 22px; }

.remix { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 30px; padding: 16px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); }
.remix-label { font: italic 400 20px/1 var(--serif); color: var(--dim); margin-right: 4px; }
.remix .chip { padding: 7px 12px; font-size: 13.5px; }
.remix .chip:hover { border-color: var(--amber); color: var(--amber); }

.end { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 64px; padding-top: 30px; border-top: 1px solid var(--line); }
.ghost { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 99px; background: none; padding: 13px 20px; font: 400 15px/1 var(--sans); color: var(--ink); text-decoration: none; transition: border-color 0.2s; }
.ghost:hover { border-color: var(--faint); }
.ghost svg { width: 16px; height: 16px; }
.origin { font-size: 14px; color: var(--faint); margin-top: 18px; }
.origin q { font-style: italic; }

/* Error */
.oops { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 10vh 0; }
.oops h1 { font: italic 400 clamp(40px, 8vw, 72px)/1 var(--serif); margin: 0 0 16px; }
.oops p { color: var(--dim); margin: 0 0 32px; max-width: 30em; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 99px; font: 500 14px/1 var(--sans); opacity: 0; pointer-events: none; transition: all 0.3s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .ask { padding: 14px 10px 10px 16px; border-radius: 20px; }
  .go { width: 42px; height: 42px; }
  /* Timeline on the left edge, time stacked above each stop */
  .stop { grid-template-columns: 1fr; gap: 4px; padding-left: 24px; }
  .stop::before { left: 4px; top: 14px; }
  .stop::after { content: ""; position: absolute; left: 0; top: 1px; width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--faint); background: var(--bg); }
  .stop.wild::after { border-color: var(--amber); background: var(--amber); box-shadow: 0 0 12px var(--amber); }
  .stop-body::before { display: none; }
  .stop time { text-align: left; padding-top: 0; font-size: 11.5px; }
  .stop-body { padding-left: 0; }
  .logistics { grid-template-columns: 1fr; gap: 2px; padding-left: 24px; }
  .logistics b { text-align: left; }
  .logistics span { padding-left: 0; }
  .foot { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
