/* getrebound.app — transit-signage identity: DIN-style condensed headings, a signal line that carries data,
   cool paper, navy ink, signal blue and the mint "received" dot from the logo. No web fonts are loaded. */
:root {
  --ink: #10213f;
  --ink-2: #44546f;
  --paper: #f3f6fb;
  --white: #ffffff;
  --signal: #3858e9;
  --signal-deep: #2238b8;
  --mint: #4fd1ad;
  --mint-soft: #dff7ef;
  --rule: #d7deea;
  --head: "Bahnschrift", "DIN Alternate", "DIN Next", "Barlow Semi Condensed", "Avenir Next Condensed", "Arial Narrow", sans-serif;
  --body: "Segoe UI", -apple-system, BlinkMacSystemFont, "Inter", Roboto, "Helvetica Neue", sans-serif;
  --mono: Consolas, "SFMono-Regular", Menlo, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.6 var(--body); color: var(--ink); background: var(--paper); }
img, video { max-width: 100%; display: block; }
a { color: var(--signal-deep); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }
.wrap { width: min(1160px, 100% - 48px); margin: 0 auto; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; letter-spacing: -.005em; line-height: 1.08; margin: 0 0 .5em; }
h1 { font-size: clamp(38px, 5.2vw, 68px); font-weight: 650; }
h2 { font-size: clamp(30px, 3.6vw, 44px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; max-width: 64ch; }
.lead { font-size: 20px; color: var(--ink-2); max-width: 58ch; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(243, 246, 251, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 650 22px var(--head); }
.logo img { width: 30px; height: 30px; }
.nav { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15.5px; }
.nav a.btn { color: #fff; }
.nav a[aria-current] { color: var(--signal-deep); box-shadow: inset 0 -2px var(--signal); }
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 16px var(--body); padding: 12px 22px; border-radius: 999px; border: 2px solid var(--signal); background: var(--signal); color: #fff; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--signal-deep); border-color: var(--signal-deep); }
.btn.ghost { background: transparent; color: var(--signal-deep); }
.btn.ghost:hover { background: var(--white); }
.btn.small { padding: 7px 16px; font-size: 14.5px; }
.navtoggle { display: none; margin-left: auto; border: 0; background: none; font-size: 26px; color: var(--ink); }

/* hero */
.hero { padding: 72px 0 40px; }
.hero h1 { max-width: 19ch; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero .note { font-size: 14.5px; color: var(--ink-2); margin-top: 14px; }
.shot { margin: 34px 0 0; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 70px -30px rgba(16, 33, 63, .45); border: 1px solid var(--rule); background: #fff; }

/* the route: one station per thing Rebound does */
.route { padding: 90px 0 30px; }
.route ol { list-style: none; margin: 40px 0 0; padding: 0 0 0 34px; border-left: 4px solid var(--signal); }
.route li { position: relative; padding: 0 0 46px 26px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
.route li::before { content: ""; position: absolute; left: -49px; top: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 4px solid var(--signal); }
.route li:last-child::before { background: var(--mint); border-color: var(--mint); }
.route li h3 { font-size: 28px; margin-bottom: .3em; }
.route li img { border-radius: 10px; border: 1px solid var(--rule); box-shadow: 0 16px 40px -24px rgba(16, 33, 63, .5); }
.route li > img.zoomable { cursor: zoom-in; transition: transform .15s ease; }
.route li > img.zoomable:hover { transform: scale(1.015); }
.zoombox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 3vh 2vw; background: rgba(16, 33, 63, 0); cursor: zoom-out; transition: background .2s ease; }
.zoombox img { max-width: 96vw; max-height: 94vh; width: auto; height: auto; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); transform: scale(.92); opacity: 0; transition: transform .2s ease, opacity .2s ease; }
.zoombox.on { background: rgba(16, 33, 63, .78); }
.zoombox.on img { transform: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .zoombox, .zoombox img, .route li > img.zoomable { transition: none; } }
.route .kinds { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.route .kinds li { display: block; padding: 4px 12px; border: 1px solid var(--rule); border-radius: 999px; background: var(--white); font-size: 14.5px; }
.route .kinds li::before { display: none; }

/* two halves: the app and the plugin */
.pair { padding: 70px 0; background: var(--ink); color: #e9eefb; }
.pair h2, .pair h3 { color: #fff; }
.pair .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 30px; }
.pair p { color: #c3cde3; }
.pair img { border-radius: 10px; }
.pair a { color: var(--mint); }

.video { padding: 80px 0; }
.video video { border-radius: 14px; border: 1px solid var(--rule); background: #000; width: 100%; }
.video .langs { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 0; }
.video .langs button { border: 1px solid var(--rule); background: var(--white); border-radius: 999px; padding: 5px 14px; font: 500 14.5px var(--body); cursor: pointer; color: var(--ink); }
.video .langs button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.cta { padding: 70px 0 90px; }
.cta .box { border: 3px solid var(--signal); border-radius: 22px; padding: 44px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; background: var(--white); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 40px 0 0; border: 2px solid var(--ink); border-radius: 18px; overflow: hidden; background: var(--white); }
.plan { padding: 30px 28px 32px; border-right: 1px solid var(--rule); display: flex; flex-direction: column; }
.plan:last-child { border-right: 0; }
.plan.featured { background: var(--ink); color: #fff; }
.plan.featured p { color: #c3cde3; }
.plan .price { font: 650 54px var(--head); margin: 10px 0 2px; }
.plan .price small { font: 400 16px var(--body); color: inherit; opacity: .7; }
.plan ul { padding-left: 20px; margin: 16px 0 24px; }
.plan li { margin: 5px 0; }
.plan .btn { margin-top: auto; justify-content: center; }
.plan.featured .btn { background: var(--mint); border-color: var(--mint); color: var(--ink); }
.matrix { width: 100%; border-collapse: collapse; margin: 50px 0 10px; background: var(--white); border-radius: 14px; overflow: hidden; font-size: 16px; }
.matrix th, .matrix td { padding: 12px 16px; border-bottom: 1px solid var(--rule); text-align: center; }
.matrix th:first-child, .matrix td:first-child { text-align: left; }
.matrix thead th { background: var(--ink); color: #fff; font: 600 18px var(--head); }
.matrix tbody tr:hover { background: #f8faff; }
.matrix .yes { color: #138a63; font-weight: 700; }
.matrix .no { color: #a0abbf; }
.matrix .grp td { background: var(--paper); font-weight: 700; text-align: left; font-family: var(--head); font-size: 17px; }

/* donate */
.donate { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; padding: 60px 0 90px; align-items: start; }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0; }
.amounts button { padding: 16px 0; border: 2px solid var(--rule); border-radius: 12px; background: var(--white); font: 650 24px var(--head); color: var(--ink); cursor: pointer; }
.amounts button[aria-pressed="true"] { border-color: var(--signal); background: #eef1fd; }
.custom { display: flex; align-items: center; border: 2px solid var(--rule); border-radius: 12px; background: var(--white); padding: 0 14px; }
.custom span { font: 650 24px var(--head); color: var(--ink-2); }
.custom input { border: 0; font: 650 24px var(--head); padding: 14px 8px; width: 100%; background: transparent; color: var(--ink); }
.offer { border-radius: 16px; padding: 26px; background: var(--ink); color: #fff; }
.offer h3 { color: #fff; }
.offer p { color: #c3cde3; }
.offer .count { display: flex; gap: 16px; margin: 16px 0 6px; }
.offer .count div { text-align: center; }
.offer .count b { display: block; font: 650 40px var(--head); color: var(--mint); }
.offer .count small { color: #c3cde3; }
.perk { margin: 16px 0; padding: 14px 16px; border-radius: 12px; background: var(--mint-soft); border: 1px solid #b6ecd9; display: none; }
.perk.on { display: block; }
.field { display: grid; gap: 6px; margin: 14px 0; }
.field input, .field select, .field textarea { font: inherit; padding: 11px 14px; border: 2px solid var(--rule); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; box-sizing: border-box; }
.field textarea { resize: vertical; min-height: 70px; }
.field label small, .field .hint { color: var(--ink-2); font-weight: 400; }
.field .hint { font-size: 14px; }
.field [aria-invalid="true"] { border-color: #c62d2d; }
.donor { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--rule); }
.donor h3 { margin: 0 0 4px; }
.row3 { display: grid; grid-template-columns: 1.2fr .8fr 1.4fr; gap: 12px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.methods { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.methods label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 4px; cursor: pointer; }
.consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.consent input[aria-invalid="true"] { outline: 2px solid #c62d2d; outline-offset: 2px; }
.donor .links { margin: 0 0 12px 28px; font-size: 14.5px; }
.form-err { color: #c62d2d; font-weight: 600; margin: 8px 0; }
.bank { margin: 16px 0; padding: 18px 20px; border-radius: 14px; border: 2px solid var(--signal); background: #eef1fd; }
.bank h3 { margin: 0 0 10px; }
.bank dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 12px; }
.bank dt { color: var(--ink-2); }
.bank dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; word-break: break-all; }
@media (max-width: 640px) { .row3, .row2 { grid-template-columns: 1fr; } }

.page { padding: 60px 0 90px; }
.page h1 { font-size: clamp(36px, 5vw, 60px); }
.dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 30px; border-top: 2px solid var(--ink); }
.dl > div { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--rule); }
.dl code, .page code { font-family: var(--mono); background: #e6ebf5; padding: 2px 6px; border-radius: 5px; font-size: 15px; }

footer.site { border-top: 1px solid var(--rule); padding: 34px 0 50px; color: var(--ink-2); font-size: 15px; }
footer.site .wrap { display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
footer.site a { color: var(--ink-2); }

/* language picker in the header (all pages and the documentation) */
.langpick { font-size: 14.5px; white-space: nowrap; }
.langsel { font: inherit; border: 1px solid var(--rule); border-radius: 8px; padding: 4px 8px; background: var(--white); color: var(--ink); }

@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--paper); flex-direction: column; padding: 18px 24px; border-bottom: 1px solid var(--rule); align-items: flex-start; }
  body.menu .nav { display: flex; }
  .navtoggle { display: block; }
  .route li, .pair .cols, .cta .box, .donate { grid-template-columns: 1fr; }
  .plans, .dl { grid-template-columns: 1fr; }
  .plan { border-right: 0; border-bottom: 1px solid var(--rule); }
    .matrix { font-size: 14px; } .matrix th, .matrix td { padding: 9px 8px; }
  .amounts { grid-template-columns: repeat(2, 1fr); }
}

/* hero: "Try a route" — pick where you start and what you do, then watch the copy */
.rt { margin: 56px 0 0; display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 0; background: var(--white); border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 70px -40px rgba(16, 33, 63, .45); }
.rt-panel { padding: 24px 26px 26px; border-right: 1px solid var(--rule); min-height: 420px; }
.rt-top { display: flex; align-items: center; gap: 12px; min-height: 30px; margin-bottom: 6px; }
.rt [hidden] { display: none !important; }
.rt-back { white-space: nowrap; border: 0; background: none; color: var(--signal-deep); font: 600 15px var(--body); padding: 4px 0; cursor: pointer; }
.rt-crumb { font-size: 13.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt-step h2 { font-size: 30px; margin: 0 0 .2em; }
.rt-q { font: 600 19px/1.3 var(--head); margin: 0 0 14px; }
.rt-opt, .rt-kind { display: grid; gap: 2px; width: 100%; text-align: left; padding: 12px 14px; margin: 0 0 8px; border: 1px solid var(--rule); border-radius: 10px; background: var(--paper); color: var(--ink); font: 15.5px/1.35 var(--body); cursor: pointer; }
.rt-opt b, .rt-kind b { font-weight: 600; }
.rt-opt span, .rt-kind span { font-size: 13.5px; color: var(--ink-2); }
.rt-opt:hover, .rt-kind:hover { border-color: var(--signal); }
.rt-opt { position: relative; padding-right: 34px; }
.rt-opt::after { content: "›"; position: absolute; right: 14px; top: 50%; transform: translateY(-52%); font-size: 22px; color: var(--signal); }
.rt-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.rt-kinds .rt-kind { margin: 0; }
.rt-kinds .rt-kind:first-child { grid-column: 1 / -1; }
.rt-anims .rt-kind:first-child { grid-column: auto; }
.rt-anims { grid-template-columns: 1fr; }
.rt-switch { grid-template-columns: repeat(3, 1fr); }
.rt-switch .rt-kind { text-align: center; padding: 8px 6px; font-size: 14px; }
.rt-kind[aria-checked="true"] { border-color: var(--signal); background: #eef1fd; box-shadow: inset 0 0 0 1px var(--signal); }
.rt-field { display: grid; gap: 4px; margin: 4px 0 12px; font-size: 14px; color: var(--ink-2); }
.rt-field input { font: 15px var(--body); color: var(--ink); padding: 9px 11px; border: 1px solid var(--rule); border-radius: 8px; background: var(--white); }
.rt-check { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 10px; font-size: 14.5px; }
.rt-check input { margin-top: 4px; accent-color: var(--signal); }
.rt-cloud { margin: 0 0 6px; }
.rt-signin { margin: 0 0 12px 24px; display: flex; gap: 10px; align-items: center; font-size: 14px; }
.rt-signin .btn { white-space: nowrap; }
.rt-signed { color: #12805c; font-weight: 600; }
.rt-note { font-size: 14px; color: var(--ink-2); margin: 0 0 14px; }
.rt-file { display: grid; padding: 12px 14px; border: 1px dashed var(--signal); border-radius: 10px; background: #f6f8fe; margin-bottom: 12px; }
.rt-file span { font-size: 13.5px; color: var(--ink-2); }
.rt-start, .rt-next { margin-top: 4px; }
.rt-again, .rt-other { margin: 12px 8px 0 0; }

.rt-stage { position: relative; min-height: 420px; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, #f8faff 0%, #eef2fb 100%); user-select: none; }
.rt-node { position: absolute; top: 116px; width: 150px; display: grid; justify-items: center; gap: 4px; text-align: center; z-index: 3; }
.rt-l { left: 22px; } .rt-r { right: 22px; }
.rt-ic { width: 70px; height: 70px; border-radius: 20px; background: var(--white); display: grid; place-items: center; box-shadow: 0 8px 22px rgba(16, 33, 63, .14), 0 0 0 1px rgba(16, 33, 63, .06); transition: transform .15s ease; margin-bottom: 4px; }
.rt-ic svg { width: 38px; height: 38px; }
.rt-node b { font: 600 16px/1.2 var(--head); }
.rt-node span { font-size: 12.5px; color: var(--ink-2); line-height: 1.3; }
.rt-r.hit .rt-ic { transform: scale(1.08); }
.rt-via { position: absolute; left: 190px; right: 190px; top: 200px; text-align: center; font-size: 13px; color: var(--ink-2); z-index: 2; }
.rt-chip { position: absolute; left: 0; top: 0; z-index: 2; display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 9px 0 4px; margin: -15px 0 0 -16px; border-radius: 8px; background: var(--white); box-shadow: 0 4px 12px rgba(16, 33, 63, .18); white-space: nowrap; will-change: transform, opacity; pointer-events: none; font: 600 11.5px var(--body); color: var(--ink); max-width: 180px; }
.rt-chip i { flex: none; width: 22px; height: 22px; border-radius: 3px 8px 3px 3px; background: var(--c); display: grid; place-items: center; font: 700 7.5px/1 var(--body); font-style: normal; color: #fff; letter-spacing: .02em; }
.rt-chip em { font-style: normal; overflow: hidden; text-overflow: ellipsis; }
.rt-chip.dir i { border-radius: 3px; background: linear-gradient(var(--c) 0 0) top left / 45% 5px no-repeat, var(--c); }
.rt-ring { position: absolute; left: 50%; top: 92px; width: 150px; height: 150px; margin-left: -75px; transform: rotate(-90deg); display: none; }
.rt-ring circle { fill: none; stroke: rgba(56, 88, 233, .14); stroke-width: 10; }
.rt-ring .rt-ringv { stroke: var(--signal); stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset .3s linear; }
.rt-ringtxt { position: absolute; left: 50%; top: 142px; width: 150px; margin-left: -75px; text-align: center; font: 650 30px var(--head); display: none; }
.rt-stage[data-anim="ring"] .rt-ring, .rt-stage[data-anim="ring"] .rt-ringtxt { display: block; }
.rt-stage[data-anim="ring"] .rt-via { top: 252px; }
.rt-stage.done .rt-ringv { stroke: var(--mint); }
.rt-stage[data-anim="bar"] .rt-node { top: 96px; }
.rt-stage[data-anim="bar"] .rt-foot { top: 250px; bottom: auto; }
.rt-stage[data-anim="bar"] .rt-bar { height: 18px; }
.rt-foot { position: absolute; left: 22px; right: 22px; bottom: 18px; z-index: 3; }
.rt-bar { height: 8px; border-radius: 9px; background: rgba(56, 88, 233, .13); overflow: hidden; transition: height .2s; }
.rt-bar span { display: block; height: 100%; width: 0; border-radius: 9px; background: linear-gradient(90deg, var(--signal), #5a7bff); transition: width .25s linear; }
.rt-stage.done .rt-bar span { background: var(--mint); }
.rt-nums { display: flex; gap: 14px; align-items: baseline; margin-top: 9px; font-size: 14px; color: var(--ink-2); flex-wrap: wrap; }
.rt-nums b { font: 650 22px var(--head); color: var(--ink); font-variant-numeric: tabular-nums; }
.rt-speed { margin-left: auto; }
.rt-times { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 4px; font-size: 14px; }
.rt-times i { font-style: normal; color: var(--ink-2); }
.rt-times b { font-variant-numeric: tabular-nums; }
.rt-now { margin-top: 6px; font: 12.5px var(--mono); color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 1.4em; }
@media (prefers-reduced-motion: reduce) { .rt-chip { display: none; } }
@media (max-width: 900px) {
  .rt { grid-template-columns: 1fr; }
  .rt-panel { border-right: 0; border-bottom: 1px solid var(--rule); min-height: 0; }
  .rt-stage { min-height: 450px; }
  .rt-via { left: 16px; right: 16px; top: 250px; }
  .rt-node, .rt-stage[data-anim="bar"] .rt-node { top: 64px; width: 118px; } .rt-l { left: 10px; } .rt-r { right: 10px; }
  .rt-ring, .rt-ringtxt { display: none !important; }
  .rt-chip { max-width: 140px; }
  .rt-foot { left: 16px; right: 16px; }
  .rt-stage[data-anim="bar"] .rt-foot { top: auto; bottom: 18px; }
}
