/* Shared styles for Wakebird content pages (guides, tools). The home page has its own inline CSS. */
:root {
  --cream: #FFF8F1; --paper: #FFFFFF; --ink: #2B2440; --muted: #6A6382;
  --peach: #FF9F7A; --peach-deep: #B8431B; --peach-soft: #FFEDE4;
  --lavender: #BBA9FF; --lavender-deep: #5A45C8; --lavender-soft: #EFEAFF;
  --butter: #FFC857; --butter-soft: #FFF3D6; --mint: #9EE3C4; --rose: #FFB3BF; --rose-deep: #D9536A; --mint-deep: #17694A; --mint-soft: #E3F6EE;
  --line: rgba(43,36,64,.09); --radius: 24px;
  --serif: "Fraunces", Georgia, serif; --sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --shadow: 0 1px 2px rgba(43,36,64,.04), 0 12px 40px rgba(107,85,214,.08);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 18px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--peach-deep); }
:focus-visible { outline: 3px solid var(--lavender); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(760px, 100% - 32px); margin-inline: auto; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 5; background: rgba(255,248,241,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; width: min(1080px, 100% - 32px); }
.top .brand { display: flex; align-items: center; gap: 8px; font: 600 18px var(--sans); color: var(--ink); text-decoration: none; }
.top .brand img { width: 30px; height: 30px; }
.top nav { display: flex; gap: 4px; align-items: center; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 8px 10px; border-radius: 999px; }
.top nav a:hover { color: var(--ink); background: rgba(43,36,64,.05); }
.top nav a.cta { background: var(--ink); color: #fff; padding: 8px 16px; font-weight: 600; }
@media (max-width: 560px) { .top nav a.hide-sm { display: none; } }

/* Article */
.crumbs { font-size: 14px; color: var(--muted); margin: 28px 0 0; }
.crumbs a { color: var(--muted); }
h1, h2, h3 { font-family: var(--serif); font-variation-settings: "SOFT" 100; font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; }
h1 { font-size: clamp(34px, 6vw, 52px); margin: 14px 0 14px; }
h2 { font-size: clamp(25px, 4vw, 32px); margin: 48px 0 12px; }
h3 { font-size: 21px; margin: 28px 0 8px; }
.lede { font-size: 20px; color: var(--muted); margin: 0 0 8px; }
.meta { font-size: 14px; color: var(--muted); }
article p, article li { max-width: 68ch; }
article ul, article ol { padding-left: 1.2em; }
article li { margin: 6px 0; }
.answer { background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--peach); border-radius: 18px; padding: 18px 22px; margin: 26px 0; box-shadow: var(--shadow); }
.answer strong:first-child { display: block; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--peach-deep); margin-bottom: 4px; }
table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 16px; background: var(--paper); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--lavender-soft); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
.tablewrap { overflow-x: auto; }

/* App promo card */
.promo { display: flex; gap: 18px; align-items: center; background: linear-gradient(135deg, var(--peach-soft), var(--lavender-soft)); border-radius: var(--radius); padding: 22px; margin: 40px 0; }
.promo img { width: 72px; height: 72px; flex: none; }
.promo h3 { margin: 0 0 4px; }
.promo p { margin: 0 0 12px; color: var(--muted); font-size: 16px; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; font-size: 16px; padding: 11px 20px; border-radius: 999px; border: 0; cursor: pointer; }
.btn.light { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
@media (max-width: 520px) { .promo { flex-direction: column; text-align: center; } }

/* Related */
/* Link list: one panel, a row per link, like an iOS settings list */
.related { list-style: none; margin: 16px 0 0; padding: 4px 0; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.related li + li a { border-top: 1px solid var(--line); }
.related a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; text-decoration: none; color: var(--ink); transition: background .15s; }
.related a:hover { background: #FBF8FD; }
.related a:hover .chev { transform: translateX(2px); color: var(--peach-deep); }
.related .ri { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.related .ri svg { width: 21px; height: 21px; }
.related .ri.lav { background: var(--lavender-soft); color: var(--lavender-deep); }
.related .ri.peach { background: var(--peach-soft); color: var(--peach-deep); }
.related .ri.mint { background: #E3F7EE; color: #17694A; }
.related .ri.butter { background: var(--butter-soft); color: #8A5A00; }
.related .rt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.related .rt b { font-size: 16px; line-height: 1.3; }
.related .rt span { color: var(--muted); font-size: 14px; line-height: 1.4; margin-top: 2px; }
.related .chev { flex: none; width: 18px; height: 18px; color: #B9B2C8; transition: transform .15s, color .15s; }

/* Calculator */
.calc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin: 24px 0; }
.calc .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 18px; }
.calc label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.calc input, .calc select { width: 100%; font: 500 18px var(--sans); color: var(--ink); background: var(--cream); border: 1px solid var(--line); border-radius: 14px; padding: 11px 12px; min-height: 48px; }
.calc .hint { font-size: 13px; color: var(--muted); margin-top: 4px; }
.result { margin-top: 20px; border-radius: 20px; background: linear-gradient(135deg, var(--peach-soft), var(--lavender-soft)); padding: 20px; }
.result .big { font: 600 clamp(44px, 9vw, 64px)/1 var(--serif); font-variation-settings: "SOFT" 100; }
.result .row { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 12px; font-size: 16px; }
.result .row b { font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { background: var(--paper); border-radius: 999px; padding: 6px 12px; font-size: 15px; border: 1px solid var(--line); }
.chip.best { background: var(--mint-soft); border-color: transparent; color: var(--mint-deep); font-weight: 600; }

footer { margin-top: 64px; padding: 28px 0 40px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; width: min(1080px, 100% - 32px); }
footer a { color: var(--muted); }
footer .wrap > span:last-child { display: flex; flex-wrap: wrap; gap: 6px 16px; }

/* App bar under the intro: the main conversion element */
.appbar { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 252px; gap: 24px; align-items: center;
  margin: 24px 0 10px; padding: 22px 22px 22px 24px; border-radius: 26px; color: #fff;
  background: radial-gradient(90% 120% at 100% 0%, rgba(255,159,122,.35), transparent 60%), radial-gradient(120% 140% at 0% 100%, #4A3D7A 0%, #2B2440 60%);
  box-shadow: 0 20px 50px rgba(43,36,64,.28); }
.ab-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.ab-kicker img { width: 22px; height: 22px; }
.ab-head { text-wrap: balance; margin: 10px 0 4px; font-family: var(--serif); font-size: 32px; line-height: 1.12; font-weight: 600; color: #fff; }
.ab-sub { margin: 0 0 16px; font-size: 15px; line-height: 1.45; color: rgba(255,255,255,.78); max-width: 440px; }
.ab-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.appbar .store { background: #fff; color: #000; min-height: 52px; padding: 0 18px 0 14px; box-shadow: 0 8px 22px rgba(0,0,0,.25); }
.appbar .store b { font-size: 19px; }
.ab-free { margin-left: 4px; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: #B9F3D8; background: rgba(62,224,143,.14); border: 1px solid rgba(62,224,143,.35); padding: 3px 10px 3px 8px; border-radius: 999px; }
.ab-free::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3EE08F; box-shadow: 0 0 0 0 rgba(62,224,143,.6); animation: live 2s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(62,224,143,.55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(62,224,143,0); } }
.ab-qr { display: inline-flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border-radius: 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.85); text-decoration: none; font-size: 12px; line-height: 1.25; }
.ab-qr img { width: 46px; height: 46px; padding: 3px; border-radius: 9px; background: #fff; }
.ab-demo { position: relative; align-self: center; display: flex; flex-direction: column; gap: 12px; }
.ab-card { position: relative; overflow: hidden; height: 104px; border-radius: 20px; background: rgba(255,255,255,.95); color: var(--ink); box-shadow: 0 14px 34px rgba(0,0,0,.3); animation: abfloat 6s ease-in-out infinite; }
@keyframes abfloat { 50% { transform: translateY(-5px); } }
.ab-state { position: absolute; inset: 0; padding: 12px 16px; display: flex; flex-direction: column; }
.ab-state b { font-family: var(--serif); font-size: 38px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.ab-state small { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-state .ab-tag { white-space: nowrap; max-width: 100%; }
.ab-tag { font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; }
.ab-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ab-tag.ok { color: var(--mint-deep); } .ab-tag.jam { color: var(--rose-deep); }
.ab-state.s1 small { color: var(--mint-deep); }
.ab-state.s1 { animation: abA 8s cubic-bezier(.6,0,.3,1) infinite; } .ab-state.s2 { animation: abB 8s cubic-bezier(.6,0,.3,1) infinite; }
@keyframes abA { 0%, 44% { transform: translateY(0) } 50%, 93.9% { transform: translateY(-110%) } 94% { transform: translateY(110%) } 100% { transform: translateY(0) } }
@keyframes abB { 0%, 44% { transform: translateY(110%) } 50%, 94% { transform: translateY(0) } 100% { transform: translateY(-110%) } }
.ab-road { position: relative; height: 22px; border-radius: 8px; background: rgba(0,0,0,.3); overflow: hidden; }
.ab-road::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: repeating-linear-gradient(90deg, var(--butter) 0 12px, transparent 12px 26px); opacity: .7; animation: lane 1.2s linear infinite; }
.ab-road i { position: absolute; top: 5px; left: -24px; width: 22px; height: 12px; border-radius: 5px 7px 3px 3px; background: var(--mint); animation: abcar 3.2s linear infinite; }
.ab-road i:nth-child(2) { background: var(--peach); animation-delay: -1.1s; } .ab-road i:nth-child(3) { background: #fff; animation-delay: -2.2s; }
@keyframes abcar { to { left: 105%; } }
@keyframes lane { to { background-position: 26px 0; } }
@media (hover: none), (max-width: 760px) { .ab-qr { display: none; } }
@media (max-width: 620px) {
  .appbar { grid-template-columns: 1fr; padding: 20px 18px; }
  .ab-demo { display: none; }
  .ab-head { font-size: 24px; }
  .ab-actions .store { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .ab-card, .ab-state, .ab-road i, .ab-road::before, .ab-free::before { animation: none; } .ab-state.s2 { transform: translateY(110%); } }

/* The prose short answer + rank line under the combo card: same text as before, shown as plain copy (no boxes) */
.combo + .answer { margin: -14px 2px 10px; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; font-size: 16px; color: var(--muted); }
.combo + .answer strong:first-child { display: inline; font-size: inherit; letter-spacing: 0; text-transform: none; color: var(--ink); margin: 0 6px 0 0; }
.combo + .answer + .rankline { margin: 0 2px 8px; padding: 0; background: none; border: 0; border-radius: 0; font-size: 16px; color: var(--muted); }

/* Combo (city pages): at-a-glance answer on the left, compact pitch on the right; stacked on phones */
.combo { display: grid; grid-template-columns: 1fr 250px; margin: 26px 0 36px; overflow: hidden; background: var(--paper);
  border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); }
.glance { display: flex; flex-direction: column; gap: 14px; padding: 22px 24px 22px; min-width: 0; }
.gl-k { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--peach-deep); }
.gl-row { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 10px; }
.gl-row > b { font-size: 15px; font-weight: 600; color: var(--muted); }
.gl-line { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gl-line i { flex: 1; min-width: 12px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--mint), var(--butter), var(--rose)); }
.gl-line i.r { background: linear-gradient(90deg, var(--rose), var(--butter), var(--mint)); }
.gl-line.flat i { background: var(--mint); }
.gl-peak { padding: 4px 10px; border-radius: 999px; background: #FFE3E8; color: #B4304A; }
.gl-extra { align-self: flex-start; margin-top: 2px; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--ink); }
.gl-extra::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rose-deep); }
.cpitch { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px 20px; color: #fff;
  background: radial-gradient(90% 90% at 100% 0%, rgba(255,159,122,.35), transparent 60%), radial-gradient(130% 140% at 0% 100%, #4A3D7A 0%, #2B2440 62%); }
.cp-head { position: relative; z-index: 1; margin: 0; font: 600 22px/1.15 var(--serif); text-wrap: balance; }
.cpitch .store { position: relative; z-index: 1; margin-top: auto; background: #fff; color: #000; min-height: 46px; box-shadow: 0 8px 22px rgba(0,0,0,.28); }
.cp-bird { position: absolute; right: 16px; bottom: 14px; width: 64px; height: 64px; opacity: .9; transform: rotate(8deg);
  transition: transform .7s cubic-bezier(.3,1.6,.5,1) .3s, opacity .5s .3s; }
.cpitch:not(.in) .cp-bird { transform: translateY(16px) rotate(0); opacity: 0; }
@media (max-width: 620px) {
  .combo { grid-template-columns: 1fr; border-radius: 24px; }
  .glance { padding: 18px 16px 18px; gap: 12px; }
  .gl-row { grid-template-columns: 1fr; gap: 6px; }
  .cpitch { padding: 18px 16px; min-height: 0; }
  .cp-head { font-size: 20px; max-width: 62%; }
  .cp-bird { width: 52px; height: 52px; right: 14px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) { .cp-bird { transition: none; } .cpitch:not(.in) .cp-bird { transform: rotate(8deg); opacity: 1; } }

/* App line at the bottom of the rush chart: one link, text follows the slider */
.rlink { display: flex; align-items: center; gap: 9px; margin: 12px -18px -14px; padding: 12px 18px; border-top: 1px solid var(--line);
  border-radius: 0 0 28px 28px; color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; transition: background .15s; }
.rlink:hover { background: #FBF8FD; }
.rlink img { width: 22px; height: 22px; flex: none; }
.rl-msg { flex: 1; min-width: 0; color: var(--rose-deep); transition: color .25s; }
.rlink.ok .rl-msg { color: var(--mint-deep); }
.rl-go { flex: none; display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 700;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.rl-arr { display: inline-block; text-decoration: none; transition: transform .15s; }
.rlink:hover .rl-arr { transform: translateX(3px); }
.android .rl-go { display: none; }
@media (max-width: 520px) { .rlink { flex-wrap: wrap; row-gap: 6px; } .rl-msg { flex: 1 1 calc(100% - 31px); } .rl-go { margin-left: 31px; } }
.rlink.flip .rl-msg { animation: rlIn .3s ease-out; }
@keyframes rlIn { from { opacity: 0; transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .rlink.flip .rl-msg { animation: none; } }

/* Closing card: light, compact, different from the main banner */
.endcta { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px 18px; margin: 44px 0; padding: 20px 22px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.ec-icon { width: 56px; height: 56px; }
.ec-head { margin: 0; font: 600 21px/1.2 var(--serif); text-wrap: balance; }
.ec-sub { margin: 2px 0 0; font-size: 15px; color: var(--muted); line-height: 1.4; }
.ec-actions { display: flex; align-items: center; gap: 12px; }
.endcta .ab-qr { color: var(--muted); font-size: 12px; }
.endcta .ab-qr span { display: none; }
.endcta .ab-qr img { width: 52px; height: 52px; padding: 0; border: 1px solid var(--line); }
@media (max-width: 620px) {
  .endcta { grid-template-columns: auto 1fr; padding: 18px; }
  .ec-icon { width: 46px; height: 46px; }
  .ec-actions { grid-column: 1 / -1; } .ec-actions .store { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
}
.store { background: #fff; color: #000; }

.store { display: inline-flex; align-items: center; gap: 9px; flex: none; min-height: 48px; padding: 0 16px 0 13px; border-radius: 14px;
  background: #000; color: #fff; text-decoration: none; transition: transform .2s; }
.store:hover { transform: translateY(-1px); }
.store svg { width: 22px; height: 22px; }
.store span { display: flex; flex-direction: column; line-height: 1.1; }
.store small { font-size: 10px; opacity: .85; }
.store b { font-size: 17px; font-weight: 600; }


/* Rush hour widget (city pages), styled like the app's cards */
.rush { background: var(--paper); border: 1px solid var(--line); border-radius: 28px; padding: 18px 18px 14px; margin: 26px 0 34px; box-shadow: var(--shadow); }
.rush-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.seg2 { display: inline-flex; padding: 4px; border-radius: 999px; background: #F1EEF6; }
.seg2 button { border: 0; background: transparent; font: 600 14px var(--sans); color: var(--muted); padding: 8px 14px; white-space: nowrap; flex: none; border-radius: 999px; cursor: pointer; min-height: 36px; transition: all .2s; }
.seg2 button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(43,36,64,.1); }
.rush-route { font-size: 14px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rush-route .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.rush-route .dot.a { border: 2.5px solid var(--lavender-deep); } .rush-route .dot.b { background: var(--peach-deep); }
.rush-route .arr { opacity: .5; }
.r-now { margin: 12px 2px 0; font-size: 15px; line-height: 1.45; color: var(--ink); }
.r-now .live { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; background: #2BA36E; box-shadow: 0 0 0 4px rgba(43,163,110,.18); }
.r-now .live.jam { background: #D9435E; box-shadow: 0 0 0 4px rgba(217,67,94,.18); }
.rush-read { display: flex; align-items: flex-end; gap: 22px; margin: 16px 2px 10px; flex-wrap: wrap; }
.rush-read small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rush-read b { font-family: var(--serif); font-size: 40px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.r-pill { margin-left: auto; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 14px; transition: background .3s, color .3s; }
@media (max-width: 520px) { .r-pill { margin-left: 0; } }
.r-pill.ok { background: #E3F7EE; color: #17694A; } .r-pill.busy { background: #FFF1D6; color: #8A5A00; } .r-pill.jam { background: #FFE3E8; color: #B4304A; }
.mini-road { position: relative; height: 26px; border-radius: 10px; background: #2E2842; overflow: hidden; margin: 4px 0 14px; }
.mini-road::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: repeating-linear-gradient(90deg, var(--butter) 0 14px, transparent 14px 30px); opacity: .7; }
.mini-road .car { position: absolute; top: 6px; left: -30px; width: 26px; height: 14px; border-radius: 6px 8px 4px 4px; background: var(--mint); animation: cross 3s linear infinite; }
.mini-road .car::after { content: ""; position: absolute; right: -3px; top: 4px; width: 4px; height: 4px; border-radius: 50%; background: #FFF3B0; box-shadow: 0 0 8px 2px rgba(255,243,176,.7); }
.mini-road .car.busy { background: var(--butter); } .mini-road .car.jam { background: var(--rose); }
@keyframes cross { to { left: calc(100% + 30px); } }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 150px; touch-action: none; cursor: pointer; }
.bars i { flex: 1; height: calc(var(--h) * 100%); border-radius: 6px 6px 3px 3px; transform-origin: bottom; transform: scaleY(0);
  transition: transform .6s cubic-bezier(.2,.8,.2,1) calc(var(--i) * 18ms), opacity .2s, outline-color .2s; opacity: .55; outline: 2px solid transparent; outline-offset: 1px; }
.bars.grow i { transform: scaleY(1); }
.bars i.ok { background: var(--mint); } .bars i.busy { background: var(--butter); } .bars i.jam { background: var(--rose); }
.bars i.on { opacity: 1; outline-color: var(--ink); }
.r-slide { width: 100%; margin: 12px 0 2px; accent-color: var(--peach-deep); }
.axis { position: relative; height: 18px; font-size: 12px; color: var(--muted); }
.axis span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.rush-note { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
@media (prefers-reduced-motion: reduce) { .mini-road .car { animation: none; left: 45%; } .bars i { transition: none; } }

/* City grid on the rush hour hub */
.cities h3 { margin: 26px 0 10px; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-family: var(--sans); }
.cities ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.cities a { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; transition: transform .15s, border-color .15s; }
.cities a:hover { transform: translateY(-1px); border-color: var(--peach); }
.cities a span { font-weight: 500; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

.besttimes { list-style: none; padding: 0; display: grid; gap: 10px; }
.besttimes li { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; }

.alltimes { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 6px 18px; }
.alltimes summary { cursor: pointer; font-weight: 600; padding: 10px 0; }
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.twocol table { font-size: 15px; }
@media (max-width: 560px) { .twocol { grid-template-columns: 1fr; } }

/* Guide widgets (planner, bedtime, demo): same card language as the rush widget */
.wbox { background: var(--paper); border: 1px solid var(--line); border-radius: 28px; padding: 18px 18px 16px; margin: 18px 0 30px; box-shadow: var(--shadow); }
.w-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.w-kicker { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--lavender-deep); }
.w-step { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: #F1EEF6; }
.w-step b { font-size: 14px; padding: 0 8px; min-width: 112px; text-align: center; font-variant-numeric: tabular-nums; }
.w-step button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #fff; font: 600 18px var(--sans); color: var(--ink); cursor: pointer; box-shadow: 0 2px 6px rgba(43,36,64,.1); }
.w-read { display: flex; align-items: flex-end; gap: 22px; margin: 16px 2px 14px; flex-wrap: wrap; }
.w-read small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.w-read b { font-family: var(--serif); font-size: 40px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.w-read div:first-child b { color: var(--peach-deep); }
.w-pill { margin-left: auto; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 14px; background: var(--lavender-soft); color: var(--lavender-deep); }
.w-pill.ok { background: #E3F7EE; color: #17694A; } .w-pill.warn { background: #FFF1D6; color: #8A5A00; }
.w-track { display: flex; gap: 4px; height: 46px; }
.w-track .seg { position: relative; display: flex; align-items: center; justify-content: center; border-radius: 12px; min-width: 34px; overflow: hidden;
  font-style: normal; font-size: 12px; font-weight: 700; transition: flex-grow .5s cubic-bezier(.2,.8,.2,1); }
.w-track .seg span { position: relative; z-index: 1; white-space: nowrap; }
.w-track .ready { background: var(--lavender-soft); color: var(--lavender-deep); }
.w-track .drive { background: #2E2842; color: #fff; }
.w-track .drive::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: repeating-linear-gradient(90deg, var(--butter) 0 10px, transparent 10px 22px); opacity: .5; animation: lane 1.2s linear infinite; }
.w-track .buf { background: var(--butter-soft); color: #8A5A00; }
.w-car { position: absolute !important; left: -24px; top: 30px; width: 20px; height: 10px; border-radius: 4px 6px 3px 3px; background: var(--peach); animation: abcar 2.8s linear infinite; }
.w-ends { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin: 6px 2px 14px; font-variant-numeric: tabular-nums; }
.w-lab { display: block; font-size: 14px; font-weight: 600; color: var(--muted); margin: 10px 0; }
.w-lab b { color: var(--ink); }
.w-range { display: block; width: 100%; margin-top: 8px; accent-color: var(--peach-deep); }
.w-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.w-chips button { border: 0; border-radius: 999px; padding: 8px 14px; min-height: 38px; font: 600 14px var(--sans); background: #F1EEF6; color: var(--muted); cursor: pointer; transition: all .2s; }
.w-chips button[aria-pressed="true"] { background: var(--peach-soft); color: var(--peach-deep); box-shadow: inset 0 0 0 1.5px var(--peach); }
.w-beds { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.w-beds small { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.w-bedlist { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.w-bedlist span { padding: 6px 12px; border-radius: 999px; background: #F1EEF6; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.w-bedlist span.best { background: #E3F7EE; color: #17694A; }
.w-bedlist em { font-style: normal; font-weight: 500; opacity: .7; }
.w-waves { width: 100%; height: 64px; display: block; }
.w-waves path { fill: none; stroke: #E6E1EE; stroke-width: 5; stroke-linecap: round; transition: stroke .4s; }
.w-waves path.on { stroke: var(--lavender-deep); stroke-dasharray: 120; animation: drawwave 1.2s ease both; }
@keyframes drawwave { from { stroke-dashoffset: 120; } }
.w-demo-row { display: grid; grid-template-columns: 200px 1fr; gap: 18px; align-items: center; margin-top: 16px; }
.w-alarm { border-radius: 20px; padding: 14px 16px; background: linear-gradient(150deg, var(--peach-soft), var(--lavender-soft)); display: flex; flex-direction: column; }
.w-alarm b { font-family: var(--serif); font-size: 44px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.w-alarm small { font-size: 13px; font-weight: 600; color: var(--muted); }
.w-demo[data-mode="clear"] .w-alarm small { color: var(--mint-deep); } .w-demo[data-mode="jam"] .w-alarm small { color: var(--rose-deep); }
.w-demo-side small { font-size: 14px; color: var(--muted); }
.w-demo-side > b { display: block; font-family: var(--serif); font-size: 28px; margin: 4px 0 10px; }
.w-demo .mini-road .car.c2 { animation-delay: -1s; } .w-demo .mini-road .car.c3 { animation-delay: -2s; }
.w-demo .mini-road .car.ok { background: var(--mint); animation-duration: 2.2s; } .w-demo .mini-road .car.jam { background: var(--rose); animation-duration: 6s; }
.ab-tag { font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 560px) { .w-demo-row { grid-template-columns: 1fr; } .w-read b { font-size: 34px; } .w-pill { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .w-car, .w-track .drive::before, .w-waves path.on { animation: none; } }


.w-time { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
.w-time input { font: 600 18px var(--sans); color: var(--ink); border: 0; border-radius: 999px; background: #F1EEF6; padding: 8px 14px; min-height: 44px; }
.w-plan[data-calc] .w-read div:first-child b { font-size: 52px; }

.chiplinks { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0; max-width: none; }
.chiplinks a { white-space: nowrap; }
.chiplinks a { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; transition: border-color .15s, transform .15s; }
.chiplinks a:hover { border-color: var(--peach); transform: translateY(-1px); }

.rankline { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; font-size: 16px; }
.rankline a { text-decoration: none; display: inline-block; margin-right: 6px; padding: 2px 10px; border-radius: 999px; background: #FFE3E8; color: #B4304A; }
.ranking { background: var(--paper); border: 1px solid var(--line); border-radius: 28px; padding: 18px; margin: 24px 0; box-shadow: var(--shadow); }
.rank-top { margin-bottom: 10px; overflow-x: auto; }
.ranktable { box-shadow: none; margin: 0; font-size: 15px; }
.ranktable td { padding: 8px 10px; vertical-align: middle; }
.ranktable .rk { font-weight: 700; color: var(--muted); width: 36px; }
.ranktable a { font-weight: 600; color: var(--ink); text-decoration: none; }
.ranktable a:hover { color: var(--peach-deep); }
.ranktable .cc { margin-left: 6px; font-size: 11px; font-weight: 700; color: var(--muted); }
.barcell { min-width: 170px; }
.barcell .bc { display: flex; align-items: center; gap: 8px; }
.barcell i { display: block; height: 14px; border-radius: 7px; flex: none; width: calc((100% - 58px) * var(--w));
  background: linear-gradient(90deg, var(--butter), var(--rose)); transform-origin: left; transform: scaleX(0); transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.ranking.grow .barcell i { transform: scaleX(1); }
.barcell b { flex: none; width: 50px; font-size: 14px; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .barcell i { transition: none; transform: none; } }

/* City finder */
.cityfinder { background: var(--paper); border: 1px solid var(--line); border-radius: 28px; padding: 18px; margin: 18px 0 30px; box-shadow: var(--shadow); }
.cf-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.cf-search { flex: 1; min-width: 200px; min-height: 44px; border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; font: 500 16px var(--sans); background: #F7F5FA; color: var(--ink); }
.cf-search:focus { outline: 2px solid var(--peach); outline-offset: 1px; background: #fff; }
.cf-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 8px; max-height: 520px; overflow-y: auto; }
.cf-grid a { display: flex; flex-direction: column; gap: 3px; height: 100%; padding: 11px 13px 12px; border-radius: 16px; background: #FBFAFD; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s, background .15s; }
.cf-grid a:hover { border-color: var(--peach); background: #fff; transform: translateY(-1px); }
.cf-grid b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cg-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cg-bar { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.cg-bar i { display: block; height: 6px; border-radius: 3px; flex: none; max-width: calc(100% - 46px); }
.cg-bar.ok i { background: var(--mint); } .cg-bar.busy i { background: var(--butter); } .cg-bar.jam i { background: var(--rose); }
.cg-bar em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--muted); }
.cf-foot { margin: 14px 0 0; font-size: 15px; } .cf-foot a { font-weight: 600; color: var(--peach-deep); text-decoration: none; }

.w-alarm small { white-space: nowrap; }

/* Phones: tidier banner header, tighter intro */
.ab-kicker { white-space: nowrap; }
@media (max-width: 620px) {
  .ab-kicker { font-size: 11px; letter-spacing: .06em; }
  .ab-free { font-size: 10px; padding: 2px 8px 2px 7px; }
  .lede { font-size: 17px; line-height: 1.5; }
  h1 { font-size: 34px; line-height: 1.1; }
  .meta { font-size: 13px; }
@media (max-width: 360px) { .ab-kicker > img + * { display: none; } }
}

/* Pinned download bar (phones only) */
.stickycta { display: none; }
@media (max-width: 760px) {
  .stickycta { display: flex; align-items: center; gap: 10px; position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 50; padding: 8px 8px 8px 12px; border-radius: 20px; color: #fff;
    background: rgba(43,36,64,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 12px 34px rgba(43,36,64,.35); transform: translateY(140%); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
  .stickycta.show { transform: none; }
  .stickycta img { width: 34px; height: 34px; flex: none; }
  .stickycta > span { flex: 1; display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
  .stickycta > span b { font-size: 15px; }
  .stickycta > span small { font-size: 12px; color: #B9F3D8; }
  .stickycta .store { background: #fff; color: #000; min-height: 42px; padding: 0 14px 0 11px; border-radius: 12px; gap: 7px; }
  .stickycta .store svg { width: 18px; height: 18px; }
  .stickycta .store small { font-size: 9px; } .stickycta .store b { font-size: 15px; }
  body { padding-bottom: 76px; }
}
@media (prefers-reduced-motion: reduce) { .stickycta { transition: none; } }

/* Sleep-cycle calculator */
.wc-intro { margin: 14px 2px 12px; font-size: 16px; color: var(--muted); }
.wc-intro .wc-when { color: var(--ink); font-weight: 700; }
.wc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wc-grid > div { border-radius: 18px; padding: 12px 14px; background: #F7F4FB; border: 1px solid var(--line); }
.wc-grid small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.wc-grid b { display: block; font-family: var(--serif); font-size: 32px; line-height: 1.15; margin: 4px 0 2px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wc-grid span { font-size: 13px; font-weight: 600; color: var(--muted); }
.wc-grid .best { background: var(--peach-soft); border-color: var(--peach); }
.wc-grid .best b, .wc-grid .best span { color: var(--peach-deep); }
.wc-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; color: var(--muted); }
.wc-now { border: 0; border-radius: 999px; padding: 8px 14px; min-height: 38px; font: 600 14px var(--sans); background: var(--ink); color: #fff; cursor: pointer; }
@media (max-width: 560px) { .wc-grid { grid-template-columns: 1fr; } .wc-grid > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 12px; } .wc-grid b { order: -1; font-size: 28px; margin: 0; } .wc-grid small { flex: 1; } .wc-grid span { width: 100%; } }

/* Holiday traffic tables */
table.hol td, table.hol th { text-align: center; white-space: nowrap; }
table.hol td:first-child, table.hol th:first-child { text-align: left; }
.hl-ok { background: #E3F7EE; color: #17694A; border-radius: 6px; padding: 0 4px; }
.hl-jam { background: #FFE3E8; color: #B4304A; border-radius: 6px; padding: 0 4px; }
td.hl-ok, td.hl-jam { border-radius: 0; font-weight: 700; }

/* Charts: horizontal bars with a normal-day marker */
.hb { margin: 18px 0 26px; padding: 16px 18px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.hb-key { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.hb-refkey { width: 2px; height: 14px; background: var(--ink); opacity: .45; border-radius: 1px; }
.hb-row { display: grid; grid-template-columns: minmax(84px, 32%) 1fr auto; align-items: center; gap: 10px; padding: 5px 0; font-size: 15px; line-height: 1.3; }
.hb-l { color: var(--ink); }
.hb-row.lo .hb-l { color: var(--muted); }
.hb-t { position: relative; height: 18px; }
.hb-b { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--w) * 100%); min-width: 3px; background: var(--lavender-deep); border-radius: 0 4px 4px 0; }
.hb-row.lo .hb-b { background: var(--lavender); }
.hb-row.hi .hb-b { background: var(--peach-deep); }
.hb-ref { position: absolute; top: -5px; bottom: -5px; left: calc(var(--r) * 100%); width: 2px; margin-left: -1px; background: var(--ink); opacity: .45; border-radius: 1px; }
.hb-v { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 3.2em; text-align: right; }
.hb-row:hover .hb-l, .hb-row:hover .hb-v { color: var(--lavender-deep); }
.hb figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.5; }

/* Stat tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 18px 0 26px; }
.tile { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 14px 16px; box-shadow: var(--shadow); }
.tile small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); line-height: 1.4; }
.tile b { display: block; font: 600 34px/1.15 var(--sans); margin: 6px 0 2px; color: var(--ink); }
.tile span { display: block; font-size: 14px; color: var(--muted); line-height: 1.4; }

/* Heat grid: regions x days, darker = closer to normal traffic */
.heat { margin: 18px 0 8px; padding: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); display: grid; grid-template-columns: minmax(64px, auto) repeat(var(--cols), 1fr); gap: 3px; font-size: 13px; }
.heat .hh { text-align: center; color: var(--muted); font-weight: 700; font-size: 11.5px; line-height: 1.2; padding: 0 0 4px; align-self: end; }
.heat .hl { font-weight: 600; align-self: center; line-height: 1.2; padding-right: 6px; }
.heat .hc { text-align: center; padding: 9px 0; border-radius: 6px; font-weight: 700; font-variant-numeric: tabular-nums; }
.heat-key { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin: 6px 2px 24px; flex-wrap: wrap; }
.heat-key i { width: 22px; height: 12px; border-radius: 3px; display: inline-block; }

/* Diverging columns: busier / quieter than a normal day, per departure time */
.dv { margin: 18px 0 26px; padding: 16px 14px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.dv-key { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.dv-key span { display: flex; align-items: center; gap: 6px; }
.dv-key i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.dv-plot { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 4px; height: 190px; position: relative; }
.dv-plot::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--ink); opacity: .25; }
.dv-col { position: relative; }
.dv-col i { position: absolute; left: 50%; width: min(22px, 70%); transform: translateX(-50%); }
.dv-col i.up { bottom: 50%; height: calc(var(--h) * 36%); background: var(--peach-deep); border-radius: 4px 4px 0 0; }
.dv-col i.dn { top: 50%; height: calc(var(--h) * 36%); background: var(--lavender-deep); border-radius: 0 0 4px 4px; }
.dv-col b { position: absolute; left: 0; right: 0; text-align: center; font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dv-col b.up { bottom: calc(50% + var(--h) * 36% + 3px); }
.dv-col b.dn { top: calc(50% + var(--h) * 36% + 3px); }
.dv-ax { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 4px; font-size: 11.5px; color: var(--muted); text-align: center; margin-top: 6px; line-height: 1.2; }
.dv figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.5; }

/* Risk reducer under the buttons; on Android it turns into an "iPhone only" note and the store buttons go away */
.cp-note { position: relative; z-index: 1; margin-top: -6px; font-size: 12px; color: rgba(255,255,255,.7); }
.ec-note { margin: 6px 0 0; font-size: 13px; font-weight: 600; color: var(--mint-deep); }
.ionly { display: none; }
.android .ionly { display: inline; } .android .risk { display: none; }
.android .store, .android .ab-qr, .android .stickycta, .android .appbar, .android .top nav a.cta { display: none !important; }
.android .cpitch .cp-note { margin-top: auto; }
