/* Home page. Built on styles.css tokens: slate surfaces, the indigo-violet accent, Bahnschrift (DIN,
   the typeface of transport signage) for display. One memorable thing: the departure board. */

.home { background: #0d1016; }
.home .top { background: rgba(13, 16, 22, .72); }
.btn.big { padding: 13px 22px; font-size: 15.5px; border-radius: 10px; }

/* ---------- hero ---------- */
.hero2 { position: relative; padding: 96px 0 40px; overflow: hidden; }
.hero2::before { /* a single soft light behind the board, nothing else */
  content: ""; position: absolute; right: -10%; top: -20%; width: 820px; height: 820px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(124, 108, 246, .20), rgba(99, 102, 241, .06) 55%, transparent);
  pointer-events: none;
}
.hero2-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 64px; align-items: center; }
@media (max-width: 980px) { .hero2-grid { grid-template-columns: 1fr; gap: 48px; } .hero2 { padding-top: 56px; } }
.hero2 h1 { font-size: clamp(38px, 5.6vw, 66px); font-weight: 700; letter-spacing: -.02em; line-height: 1.02; max-width: 12ch; }
.hero2 h1 span { display: block; color: var(--muted); }
.hero2 .lead { color: var(--soft); font-size: 18.5px; line-height: 1.6; margin: 24px 0 32px; max-width: 34em; }
.hero2 .ctas, .closer .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero2 .fine { color: var(--dim); font-size: 13.5px; margin-top: 18px; }

/* page-load sequence: copy settles first, then the board powers on */
@media (prefers-reduced-motion: no-preference) {
  .hero2-copy > * { animation: rise .8s var(--ease) both; }
  .hero2-copy > :nth-child(2) { animation-delay: .08s; }
  .hero2-copy > :nth-child(3) { animation-delay: .16s; }
  .hero2-copy > :nth-child(4) { animation-delay: .24s; }
  .board { animation: power 1s .25s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes power { from { opacity: 0; transform: translateY(18px) scale(.985); filter: brightness(.6); } }

/* ---------- departure board ---------- */
.board {
  background: linear-gradient(180deg, #151923, #10131a);
  border: 1px solid #2a3142; border-radius: 16px; padding: 18px 18px 16px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 40px 90px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(124, 108, 246, .08);
  font-family: var(--font-display);
}
.board-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 2px 4px 14px; border-bottom: 1px solid #232938; }
.route { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--soft); min-width: 0; }
.route b { font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.route svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--accent-hi); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ok); flex: none; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(61, 214, 140, .6); animation: pulse 2s infinite; }
.live.done { color: var(--muted); }
.live.done i { background: var(--muted); animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(61, 214, 140, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 214, 140, 0); } }

.board-cols, .board-row { display: grid; grid-template-columns: minmax(0, 1.25fr) auto auto 92px; gap: 14px; align-items: center; }
.board-cols { padding: 12px 6px 6px; font-size: 11.5px; color: var(--dim); letter-spacing: .02em; }
.board-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.board-row { padding: 9px 6px; border-radius: 8px; font-size: 14px; transition: background .4s; }
.board-row.active { background: rgba(124, 108, 246, .07); }
.board-row .name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.board-row .name b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.board-row .dot { width: 8px; height: 8px; border-radius: 2px; flex: none; background: var(--c); }
.board-row .st { font-size: 12px; justify-self: start; padding: 3px 9px; border-radius: 20px; background: var(--raised); color: var(--muted); transition: background .3s, color .3s; }
.board-row .st.moving { background: var(--accent-soft); color: var(--accent-hi); }
.board-row .st.moved { background: var(--ok-soft, rgba(61, 214, 140, .1)); color: var(--ok); }

/* split-flap digits */
.flap { display: inline-flex; gap: 2px; }
.flap span {
  display: inline-grid; place-items: center; width: 13px; height: 22px; border-radius: 3px;
  background: linear-gradient(180deg, #232938 0 49%, #1b2030 51% 100%); color: #dfe3ec;
  font: 600 13.5px/1 var(--font-display); position: relative; font-variant-numeric: tabular-nums;
}
.flap span::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, .55); }
.flap.old span { color: var(--muted); }
.flap.new span { color: #fff; }
.flap.new.blank span { color: transparent; }
.flap span.tick { animation: flip .09s linear; }
@keyframes flip { 50% { transform: scaleY(.15); } }

.board-foot { display: flex; align-items: center; gap: 14px; padding: 14px 6px 2px; margin-top: 8px; border-top: 1px solid #232938; font-size: 12.5px; color: var(--muted); }
.board-foot span { white-space: nowrap; font-variant-numeric: tabular-nums; }
.board-bar { flex: 1; height: 4px; border-radius: 2px; background: #232938; overflow: hidden; }
.board-bar div { height: 100%; width: 0; background: var(--grad); transition: width .6s var(--ease); }
@media (max-width: 560px) {
  .board-cols, .board-row { grid-template-columns: minmax(0, 1fr) auto 70px; }
  .board-cols span:nth-child(2), .board-row .flap.old { display: none; }
  .flap span { width: 11px; height: 20px; font-size: 12px; }
}

/* ---------- product window ---------- */
.window { margin: 0; border-radius: 14px; overflow: hidden; background: #0f1218; border: 1px solid #2a3142; box-shadow: 0 50px 120px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(124, 108, 246, .1); }
.window-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #141821; border-bottom: 1px solid #232938; }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2c3344; }
.window-bar span { margin-left: 10px; font-size: 12px; color: var(--dim); font-family: var(--font-display); }
.window img { display: block; width: 100%; height: auto; }

.stage { padding: 24px 0 40px; perspective: 1600px; }
.stage .window { max-width: 1080px; margin: 0 auto; transform-origin: 50% 0; will-change: transform; }
@media (prefers-reduced-motion: no-preference) {
  .stage .window.tilt { transform: rotateX(var(--tilt, 14deg)) scale(var(--scale, .94)); }
}

/* ---------- tour ---------- */
.tour { padding: 96px 0; }
.tour-head { max-width: 620px; margin-bottom: 44px; }
.tour-head h2, .facts h3, .closer h2 { letter-spacing: -.015em; }
.tour-head h2 { font-size: clamp(28px, 3.6vw, 42px); }
.tour-head p { color: var(--muted); font-size: 17px; margin-top: 12px; }
.tour-grid { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.6fr); gap: 40px; align-items: start; }
@media (max-width: 980px) { .tour-grid { grid-template-columns: 1fr; } }
.tour-steps { display: grid; gap: 8px; counter-reset: step; }
.tour-steps button {
  text-align: left; background: none; border: 1px solid transparent; border-radius: 12px; padding: 18px 20px 18px 58px;
  color: var(--muted); cursor: pointer; position: relative; transition: background .25s, border-color .25s, color .25s; font: inherit;
}
.tour-steps button::before {
  counter-increment: step; content: counter(step); position: absolute; left: 18px; top: 17px; width: 26px; height: 26px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center; font: 700 13px/1 var(--font-ui); font-variant-numeric: tabular-nums lining-nums; background: var(--raised); color: var(--muted); transition: background .25s, color .25s;
}
.tour-steps button b { display: block; font: 600 18px var(--font-display); color: var(--soft); margin-bottom: 4px; }
.tour-steps button span { font-size: 14.5px; line-height: 1.55; }
.tour-steps button:hover { background: rgba(255, 255, 255, .02); }
.tour-steps button.on { background: var(--surface); border-color: var(--line-2); color: var(--soft); }
.tour-steps button.on b { color: var(--text); }
.tour-steps button.on::before { background: var(--grad); color: #fff; }
.shot-stack { display: grid; }
.shot-stack img { grid-area: 1 / 1; opacity: 0; transform: scale(1.01); transition: opacity .45s var(--ease), transform .6s var(--ease); }
.shot-stack img.on { opacity: 1; transform: none; }

/* ---------- facts ---------- */
.facts { padding: 24px 0 96px; }
.facts-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; border-top: 1px solid var(--line); }
@media (max-width: 980px) { .facts-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .facts-grid { grid-template-columns: 1fr; } }
.fact { padding: 28px 28px 8px 0; }
.fact + .fact { padding-left: 28px; border-left: 1px solid var(--line); }
@media (max-width: 980px) { .fact + .fact { border-left: 0; padding-left: 0; } }
.fact h3 { font-size: 18px; margin-bottom: 10px; }
.fact p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.types { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.types li { font-size: 12.5px; padding: 4px 10px 4px 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); color: var(--soft); position: relative; }
.types li::before { content: ""; position: absolute; left: 10px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 2px; background: var(--c); }
.t-a { --c: var(--t-audio); } .t-n { --c: var(--t-anim); } .t-m { --c: var(--t-mesh); } .t-i { --c: var(--t-image); } .t-p { --c: #f5c04a; } .t-d { --c: #6fb3ff; }

/* ---------- pricing tweaks on the home page ---------- */
.home #pricing { border-top: 1px solid var(--line); }
.plan { transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; }
.plan:hover { transform: translateY(-4px); border-color: var(--line-2); }
.plan.best:hover { box-shadow: 0 0 0 1px var(--accent-ring), 0 30px 70px rgba(99, 102, 241, .22); }
[data-price] { display: inline-block; transition: opacity .2s, transform .2s; }
[data-price].swap { opacity: 0; transform: translateY(-6px); }

.faq-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.6fr); gap: 48px; align-items: start; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; gap: 8px; } }
.faq details { transition: border-color .25s, background .25s; }
.faq details[open] { border-color: var(--line-2); background: #1a1f2a; }

/* ---------- closer ---------- */
.closer { padding: 110px 0 120px; border-top: 1px solid var(--line); text-align: center; background: radial-gradient(60% 80% at 50% 0%, rgba(124, 108, 246, .13), transparent 70%); }
.closer h2 { font-size: clamp(30px, 4.4vw, 52px); max-width: 16ch; margin: 0 auto 32px; }
.closer .ctas { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  .live i { animation: none; }
  .shot-stack img, .plan, [data-price] { transition: none; }
}
