/* mybuz.in — brand tokens come from /branding (Bus Yellow on Night Route navy). */
:root {
  --night: #13233F;
  --night-deep: #0B1628;
  --night-soft: #1E3560;
  --yellow: #FFC21A;
  --honey: #E89B00;
  --sky: #EEF3FA;
  --white: #FFFFFF;
  --ink: #13233F;
  --muted: #4A5872;
  --line: #D6DEEA;
  --radius: 14px;
  --wrap: 1120px;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--night-soft); text-underline-offset: 3px; }
a:hover { color: var(--night); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 6.2vw, 4.25rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--yellow); color: var(--night); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.4rem;
  border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1.2 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-yellow { background: var(--yellow); color: var(--night); box-shadow: 0 6px 0 var(--honey); }
.btn-yellow:hover { background: #FFCB3D; color: var(--night); }
.btn-yellow:active { box-shadow: 0 3px 0 var(--honey); transform: translateY(3px); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,.08); }
.btn-navy { background: var(--night); color: var(--white); }
.btn-navy:hover { background: var(--night-soft); color: var(--white); }
.btn-small { min-height: 40px; padding: .45rem 1rem; font-size: .95rem; box-shadow: 0 4px 0 var(--honey); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(19, 35, 63, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-row { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.brand { margin-right: auto; }
.brand img { width: 128px; }
.nav { display: none; gap: 1.4rem; }
.nav a { color: rgba(255,255,255,.85); text-decoration: none; font-weight: 700; font-size: .95rem; }
.nav a:hover { color: var(--yellow); }
@media (min-width: 900px) {
  .nav { display: flex; }
  .brand img { width: 150px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 80% at 80% 20%, var(--night-soft) 0%, transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--night-deep) 100%);
  color: var(--white);
  padding: 0 0 72px;
}
.hero-scene { position: relative; height: 320px; }
.hero-scene canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s ease;
  /* Soft edges so the 3D town melts into the night sky instead of ending in a hard line. */
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
}
.hero-scene.is-3d canvas { opacity: 1; }
.hero-scene.is-3d .hero-fallback { opacity: 0; }
.hero-fallback {
  position: absolute; left: 50%; top: 50%; width: 190px; transform: translate(-50%, -48%);
  transition: opacity .6s ease; filter: drop-shadow(0 18px 30px rgba(0,0,0,.35));
}
.hero-copy { position: relative; }
.hero-kicker { color: var(--yellow); font-weight: 700; margin-bottom: .5rem; }
.hero h1 { max-width: 14ch; }
.hero-lead { font-size: 1.15rem; color: rgba(255,255,255,.86); max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.6rem 0 1rem; }
.hero-note { color: rgba(255,255,255,.68); font-size: .95rem; }

@media (min-width: 900px) {
  .hero { min-height: min(88vh, 760px); display: flex; align-items: center; padding: 64px 0; }
  .hero-scene { position: absolute; inset: 0 0 0 46%; height: auto; }
  .hero-scene canvas {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24%);
            mask-image: linear-gradient(to right, transparent 0, #000 24%);
  }
  .hero-fallback { width: 300px; }
  .hero-copy { width: min(var(--wrap), 100% - 32px); }
  .hero-copy > * { max-width: 34rem; }
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-lead { font-size: 1.15rem; color: var(--muted); max-width: 44rem; margin-bottom: 2.5rem; }

/* Morning timeline: a real sequence, so the times carry the order. */
.morning { background: var(--sky); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.timeline li { position: relative; padding-left: 92px; }
.timeline time {
  position: absolute; left: 0; top: 2px;
  font: 800 1.5rem/1 var(--display); color: var(--night);
  background: var(--yellow); padding: 8px 10px; border-radius: 10px;
}
.timeline h3 { margin-bottom: .3em; }
.timeline p { color: var(--muted); margin: 0; }
@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .timeline li { padding-left: 0; padding-top: 64px; border-top: 3px dashed var(--honey); }
  .timeline time { top: -22px; }
}

/* Audiences: heading column + narrative list, separated by space, not boxes. */
.audience { display: grid; gap: 12px 48px; padding: 36px 0; border-top: 1px solid var(--line); }
.audience:first-of-type { border-top: 0; padding-top: 8px; }
.audience-head h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; margin-bottom: .2em; }
.audience-head p { color: var(--muted); }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.feature-list li { padding-left: 30px; position: relative; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--yellow); box-shadow: inset 0 0 0 3px var(--night);
}
.feature-list strong { color: var(--night); }
@media (min-width: 900px) {
  .audience { grid-template-columns: 300px 1fr; }
  .feature-list { grid-template-columns: 1fr 1fr; gap: 18px 36px; }
}

/* ---------- Pricing ---------- */
.pricing { background: var(--night); color: var(--white); }
.pricing .section-lead { color: rgba(255,255,255,.8); }
.price-panel {
  display: grid; gap: 28px;
  background: var(--night-deep); border: 1px solid rgba(255,255,255,.1);
  border-radius: 22px; padding: 28px;
}
.price-label { color: var(--yellow); font-weight: 700; margin-bottom: .2rem; }
.price-figure { font: 800 clamp(3rem, 9vw, 5rem)/1 var(--display); margin: 0 0 .6rem; }
.price-unit { font: 400 1.05rem/1.4 var(--body); color: rgba(255,255,255,.75); }
.price-year { color: rgba(255,255,255,.8); margin: 0; }
.calculator label { font-weight: 700; display: block; margin-bottom: .4rem; }
.calc-row { display: flex; align-items: center; gap: 14px; }
.calc-row input { flex: 1; accent-color: var(--yellow); min-height: 44px; }
.calc-row output { font: 800 1.6rem/1 var(--display); min-width: 4ch; text-align: right; color: var(--yellow); }
.calc-results { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0 8px; }
.calc-results div { background: rgba(255,255,255,.06); border-radius: 12px; padding: 14px; }
.calc-results dt { font-size: .9rem; color: rgba(255,255,255,.72); }
.calc-results dd { margin: 4px 0 0; font: 800 1.5rem/1.1 var(--display); }
.calc-note { font-size: .95rem; color: rgba(255,255,255,.72); margin: 0; }
.price-includes { list-style: none; padding: 0; margin: 28px 0 8px; display: flex; flex-wrap: wrap; gap: 10px; }
.price-includes li { background: rgba(255,194,26,.12); color: var(--yellow); padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .95rem; }
.price-gst { color: rgba(255,255,255,.6); font-size: .9rem; margin: 0; }
@media (min-width: 900px) {
  .price-panel { grid-template-columns: 1fr 1fr; padding: 40px; align-items: center; }
}

/* ---------- Trial sign-up ---------- */
.trial { background: linear-gradient(180deg, var(--sky) 0%, var(--white) 100%); }
.trial-grid { display: grid; gap: 40px; align-items: start; }
.trial-steps { padding-left: 1.3rem; color: var(--muted); }
.trial-steps li { margin-bottom: .5rem; }
.signup, .signup-done {
  background: var(--white); border-radius: 22px; padding: 26px;
  box-shadow: 0 1px 0 var(--line), 0 18px 40px rgba(19, 35, 63, .12);
  border-top: 6px solid var(--yellow);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field input {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 2px solid var(--line); border-radius: 12px;
  font: inherit; color: var(--ink); background: var(--white);
}
.field input:focus { border-color: var(--night); outline: none; box-shadow: 0 0 0 4px rgba(255, 194, 26, .45); }
.field input[aria-invalid="true"] { border-color: #C0392B; }
.optional { font-weight: 400; color: var(--muted); }
.help { font-size: .9rem; color: var(--muted); margin: 6px 0 0; }
.form-error { background: #FDECEA; color: #8A1C12; border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 3px solid rgba(19,35,63,.25); border-top-color: var(--night);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.signup-done dl { display: grid; gap: 10px; margin: 18px 0; }
.signup-done dl div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.signup-done dt { color: var(--muted); }
.signup-done dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.signup-done code { font-size: 1.1rem; background: var(--sky); padding: 2px 8px; border-radius: 6px; }
@media (min-width: 900px) {
  .trial-grid { grid-template-columns: 1fr 440px; }
}

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; max-width: 52rem; }
.faq-list details { border: 2px solid var(--line); border-radius: var(--radius); padding: 0 20px; background: var(--white); }
.faq-list details[open] { border-color: var(--night); }
.faq-list summary {
  cursor: pointer; list-style: none; padding: 18px 32px 18px 0; position: relative;
  font: 600 1.15rem/1.3 var(--display);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; color: var(--honey);
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { color: var(--muted); padding-bottom: 6px; }

/* ---------- Closing + footer ---------- */
.closing { background: var(--yellow); padding: 56px 0; }
.closing-row { display: grid; gap: 20px; align-items: center; justify-items: start; }
.closing h2 { margin-bottom: .2em; }
.closing p { margin: 0; font-weight: 700; }
.closing .btn-yellow { background: var(--night); color: var(--white); box-shadow: 0 6px 0 var(--night-deep); }
@media (min-width: 900px) {
  .closing-row { grid-template-columns: auto 1fr auto; }
}
.site-footer { background: var(--night-deep); color: rgba(255,255,255,.75); padding: 40px 0; }
.footer-row { display: grid; gap: 18px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: var(--yellow); }
.copyright { margin: 0; font-size: .9rem; }
@media (min-width: 900px) {
  .footer-row { grid-template-columns: auto 1fr auto; align-items: center; }
  .site-footer nav { justify-content: center; }
}

/* ---------- Legal pages ---------- */
.legal { padding: 56px 0 80px; }
.legal .wrap { max-width: 46rem; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal h2 { font-size: 1.45rem; margin-top: 2rem; }
.legal p, .legal li { color: #2B3A55; }
.legal .updated { color: var(--muted); }

/* ---------- Content pages (legal layout + extras) ---------- */
.article { padding-bottom: 0; }
.article .wrap + .closing { margin-top: 72px; }
.article .closing h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-top: 0; }
.article .closing p { color: var(--night); }
.article h3 { font-size: 1.15rem; margin-top: 1.5rem; }
.article .faq-list { margin-top: 1rem; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.lead { font-size: 1.2rem; }
.table-scroll { overflow-x: auto; margin: 1rem 0; }
.table-scroll table { border-collapse: collapse; width: 100%; min-width: 34rem; }
.table-scroll th, .table-scroll td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-scroll thead th { color: var(--night); border-bottom: 2px solid var(--night); }
.audience .more { margin: 4px 0 0; font-weight: 700; grid-column: -2 / -1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
