/* BusOnda product and support pages. */
.app-brand { font-family: var(--font-body); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.app-brand img { border-radius: 7px; border: 1px solid var(--line); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); align-items: center; gap: 0 48px; min-height: 600px; padding-right: 0; }
.hero-copy { display: grid; gap: 20px; padding: 48px 0; }
.hero-copy .mono { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); letter-spacing: 0.04em; }
.hero h1 { font-size: clamp(36px, 2.4vw + 18px, 56px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; }
.hero .lead { max-width: 480px; }
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 28px; padding-top: 16px; border-top: 1px solid var(--line); }
.facts div { display: flex; gap: 8px; font-size: 14px; }
.facts dt { color: var(--muted); }

.stage { position: relative; align-self: stretch; min-height: 560px; }
.stage-tint { position: absolute; left: 16%; right: 0; top: 0; bottom: 0; background: var(--blue-tint); }
.stage-route { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-route path, .showcase-route path { fill: none; stroke: var(--blue); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.stop { position: absolute; left: var(--x); top: var(--y); transform: translate(-9px, -50%); display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--blue); }
.stop::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 4px solid var(--blue); box-sizing: border-box; }
.stage .phone { position: absolute; aspect-ratio: 460 / 1000; }
.phone-front { left: 41%; top: 9%; width: min(33%, 240px); transform: rotate(3deg); z-index: 2; }
.phone-back { left: 60%; top: 18%; width: min(29%, 214px); transform: rotate(-6deg); z-index: 1; }
.chip { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; font-size: 14px; white-space: nowrap; box-shadow: 0 12px 28px rgba(20, 19, 15, 0.12); }
.chip b { font-family: var(--font-mono); font-size: 15px; }
.chip i { width: 8px; height: 8px; border-radius: 50%; }
.chip-light { left: 5%; top: 33%; background: var(--surface); }
.chip-light b { color: var(--blue); }
.chip-light i { background: var(--amber); }
.chip-dark { left: 62%; top: 82%; background: var(--footer); color: rgba(255, 255, 255, 0.85); }
.chip-dark b { color: #fff; }
.chip-dark i { background: var(--mint); }

/* Content blocks */
.block { padding: 64px 0; }
.block-white { background: var(--surface); }
.block-title { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.3; margin-bottom: 28px; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); }
.features li { padding: 0 24px; border-left: 1px solid var(--line); }
.features li:first-child { padding-left: 0; border-left: 0; }
.features svg { width: 24px; height: 24px; color: var(--blue); }
.features h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; margin: 14px 0 6px; }
.features p { font-size: 15px; line-height: 1.7; color: var(--ink-2); }

.showcase { margin-top: 48px; }
.showcase-stage { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 28px; height: 460px; background: var(--blue-tint); border-radius: 24px; overflow: hidden; }
.showcase-route { position: absolute; inset: 0; width: 100%; height: 100%; }
.showcase-route path { stroke: var(--route); stroke-width: 8; }
.showcase .phone { position: relative; width: 200px; aspect-ratio: 460 / 1000; margin-bottom: -40px; }
.showcase figcaption { display: flex; justify-content: center; gap: 28px; margin-top: 16px; font-size: 14px; color: var(--ink-2); flex-wrap: wrap; }
.showcase figcaption b { font-family: var(--font-mono); font-size: 12px; color: var(--blue); margin-right: 8px; }

/* Steps: one route line through three stops. */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step { position: relative; padding-top: 64px; }
.step::before { content: ""; position: absolute; left: 0; right: -32px; top: 22px; height: 4px; background: var(--blue); }
.step-last::before { right: auto; width: 24px; }
.stop-no { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--paper); border: 3px solid var(--blue); font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--blue); }
.step-last .stop-no { background: var(--blue-fill); color: #fff; }
.step h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.step p { margin-top: 6px; font-size: 15px; line-height: 1.7; color: var(--ink-2); max-width: 340px; }

.download { display: grid; justify-items: start; gap: 24px; }
.download > div { width: 100%; max-width: 760px; }
.download .block-title { margin-bottom: 16px; }
.price > div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.price dt { font-size: 14px; color: var(--muted); }
.price dd { font-size: 15px; line-height: 1.7; }

.help-links .block-title { margin-bottom: 12px; }
.link-rows { max-width: 760px; }
.link-rows li:last-child a { border-bottom: 1px solid var(--line); }
.link-rows a { display: grid; grid-template-columns: 44px minmax(0, 1fr) 20px; align-items: center; gap: 16px; min-height: 72px; padding: 14px 8px 14px 0; border-top: 1px solid var(--line); transition: background-color 0.2s; }
.link-rows a:hover { background: var(--surface); }
.row-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--blue-tint); color: var(--blue); }
.row-icon svg { width: 20px; height: 20px; }
.row-text { display: grid; gap: 2px; }
.row-text b { font-size: 17px; }
.row-text small { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.row-arrow { width: 20px; height: 20px; transition: transform 0.2s var(--ease); }
.link-rows a:hover .row-arrow { transform: translateX(3px); }

/* Support page */
.support-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 48px 80px; align-items: start; padding-top: 48px; padding-bottom: 56px; }
.support-head-copy { display: grid; gap: 16px; }
.crumb { font-weight: 400; letter-spacing: 0.04em; }
.crumb a { display: inline-block; padding: 12px 0; margin: -12px 0; }
.crumb a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.support-head h1 { font-size: clamp(30px, 1.6vw + 20px, 44px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.2; }
.support-head .lead { max-width: 520px; font-size: 17px; }
.contact { padding-top: 20px; border-top: 3px solid var(--blue); }
.contact h2 { font-size: 15px; font-weight: 700; color: var(--muted); }
.contact-mail { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; margin: 6px 0 12px; font-family: var(--font-display); font-size: 21px; font-weight: 600; color: var(--blue); text-decoration: underline; text-decoration-color: rgba(37, 99, 235, 0.3); text-underline-offset: 5px; overflow-wrap: anywhere; }
.contact-mail:hover { text-decoration-color: var(--blue); }
.contact-mail svg { width: 20px; height: 20px; flex: none; }
.contact p { font-size: 14px; color: var(--ink-2); margin-bottom: 8px; }
.contact li { display: flex; align-items: center; gap: 10px; padding: 3px 0; font-size: 14px; color: var(--ink-2); }
.contact li svg { width: 16px; height: 16px; color: var(--mint); flex: none; }

.faq { background: var(--surface); border-top: 1px solid var(--line); padding: 56px 0 72px; }
.faq-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 80px; }
.faq-index { position: sticky; top: 24px; align-self: start; }
.faq-index .block-title { margin-bottom: 16px; }
.faq-index ol { border-left: 2px solid var(--line); }
.faq-index a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding-left: 18px; margin-left: -2px; border-left: 2px solid transparent; font-size: 14px; color: var(--ink-2); transition: color 0.2s, border-color 0.2s; }
.faq-index a span { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--muted); }
.faq-index a:hover { color: var(--ink); border-left-color: var(--blue); }
.faq-index a:hover span { color: var(--blue); }
.faq-list article { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding: 28px 0; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.faq-list article:first-child { border-top: 0; padding-top: 4px; }
.faq-list article > span { font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--blue); padding-top: 3px; }
.faq-list h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.faq-list p { margin-top: 8px; max-width: 680px; font-size: 16px; line-height: 1.8; color: var(--ink-2); }
.faq-list p a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.faq-list article:target h3 { color: var(--blue); }

@media (max-width: 1100px) {
  .features { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .features li:nth-child(3) { padding-left: 0; border-left: 0; }
  .support-head { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; gap: 12px; }
  .faq-index { position: static; }
  .faq-index ol { display: none; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-right: var(--gutter); }
  .hero-copy { gap: 16px; padding: 32px 0 8px; }
  .hero h1 { font-size: 36px; }
  .hero .lead { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 8px; }
  .hero-actions .text-link { justify-content: center; }
  .facts { flex-direction: column; gap: 4px; padding-top: 12px; }
  .stage { min-height: 0; aspect-ratio: 736 / 700; width: 100%; max-width: 480px; margin: 20px auto 0; }
  .stage-tint { border-radius: 20px 20px 0 0; left: 10%; }
  .chip { padding: 8px 12px; font-size: 12px; }
  .chip b { font-size: 13px; }
  .chip-dark { display: none; }
  .stop { font-size: 0; gap: 0; }

  .block { padding: 44px 0; }
  .block-title { font-size: 22px; margin-bottom: 18px; }
  .features { grid-template-columns: 1fr; row-gap: 0; }
  .features li, .features li:nth-child(3) { display: grid; grid-template-columns: 36px 1fr; padding: 16px 0; border-left: 0; border-top: 1px solid var(--line); }
  .features li:first-child { border-top: 0; padding-top: 0; }
  .features svg { grid-row: 1 / 3; width: 22px; height: 22px; }
  .features h3 { font-size: 16px; margin: 0 0 4px; }
  .showcase { margin-top: 28px; }
  .showcase-stage { height: 260px; gap: 10px; border-radius: 20px; }
  .showcase .phone { width: 28%; margin-bottom: -24px; }
  .showcase figcaption { gap: 6px 16px; font-size: 13px; }

  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding: 0 0 28px 52px; min-height: 64px; }
  .step::before { left: 14px; right: auto; top: 0; bottom: 0; width: 3px; height: auto; }
  .step-last { padding-bottom: 0; }
  .step-last::before { bottom: auto; height: 16px; width: 3px; }
  .stop-no { width: 32px; height: 32px; border-width: 2px; font-size: 12px; }
  .step h3 { font-size: 16px; padding-top: 4px; }
  .step p { font-size: 14px; }

  .download { justify-items: stretch; gap: 20px; }
  .price > div { grid-template-columns: 1fr; gap: 2px; padding: 10px 0; }
  .price dt { font-size: 13px; }
  .price dd { font-size: 14px; }
  .link-rows a { gap: 14px; padding: 12px 0; }
  .row-text b { font-size: 16px; }
  .row-text small { font-size: 13px; }

  .support-head { padding-top: 28px; padding-bottom: 36px; gap: 28px; }
  .support-head h1 { font-size: 30px; }
  .support-head .lead { font-size: 15px; }
  .contact-mail { font-size: 18px; }
  .faq { padding: 36px 0 48px; }
  .faq-list article { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; padding: 22px 0; }
  .faq-list article > span { font-size: 13px; }
  .faq-list h3 { font-size: 17px; }
  .faq-list p { font-size: 15px; }
}
