/* =========================================================================
   BusLive — ldnbuslive.uk
   Tokens follow the app: TfL corporate red, iOS grouped surfaces, SF type,
   SwiftUI spring timings (response 0.35, damping 0.75).
   ========================================================================= */

:root {
  --red: #e41e26;
  --red-strong: #c8141c;
  --red-soft: rgba(228, 30, 38, 0.1);
  --blue: #0039a6;
  --night: #284d9b;
  --yellow: #ffd300;
  --green: #00a651;

  --early: #ff3a30;
  --ontime: #fffb07;
  --late: #32c759;
  --layover: #cccccc;
  --curtailed: #ff1493;
  --monitored: #17a2b8;

  --bg: #f2f2f7;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #f7f7fa;
  --text: #0b0b0f;
  --text-2: #3c3c43;
  --muted: #6e6e76;
  --line: rgba(60, 60, 67, 0.12);
  --line-2: rgba(60, 60, 67, 0.2);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.04), 0 18px 48px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 30px 80px rgba(16, 24, 40, 0.16), 0 8px 24px rgba(16, 24, 40, 0.08);
  --glass: rgba(255, 255, 255, 0.72);
  --glass-line: rgba(255, 255, 255, 0.6);
  --tint-red: radial-gradient(800px 420px at 85% -10%, rgba(228, 30, 38, 0.12), transparent 70%);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, monospace;

  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --r-xl: 36px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);

  --spring: linear(0, 0.031 1.9%, 0.126 4%, 0.453 9.5%, 0.73 14.5%, 0.93 19.9%, 1.059 25.6%, 1.098 29.1%, 1.106 32.1%, 1.084 37.8%, 1.035 45.1%, 1.002 52.9%, 0.988 61.4%, 0.993 75%, 1);
  --spring-soft: linear(0, 0.06 3%, 0.25 8%, 0.62 16%, 0.86 24%, 0.97 32%, 1.01 41%, 1.012 52%, 1.003 68%, 1);
  --spring-bouncy: linear(0, 0.04 2%, 0.2 5.3%, 0.71 11%, 1.03 16.2%, 1.16 20.3%, 1.18 23%, 1.13 28%, 1.02 35%, 0.96 41%, 0.97 49%, 1.01 60%, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --red: #ff4b4b; --red-strong: #ff6161; --red-soft: rgba(255, 75, 75, 0.14);
    --bg: #000000; --bg-2: #0b0b0d; --surface: #1c1c1e; --surface-2: #151517;
    --text: #f5f5f7; --text-2: #d1d1d6; --muted: #98989f;
    --line: rgba(235, 235, 245, 0.12); --line-2: rgba(235, 235, 245, 0.2);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5); --shadow: 0 18px 48px rgba(0, 0, 0, 0.5); --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.6);
    --glass: rgba(28, 28, 30, 0.7); --glass-line: rgba(255, 255, 255, 0.08);
    --tint-red: radial-gradient(800px 420px at 85% -10%, rgba(255, 75, 75, 0.16), transparent 70%);
  }
}
:root[data-theme="dark"] {
  --red: #ff4b4b; --red-strong: #ff6161; --red-soft: rgba(255, 75, 75, 0.14);
  --bg: #000000; --bg-2: #0b0b0d; --surface: #1c1c1e; --surface-2: #151517;
  --text: #f5f5f7; --text-2: #d1d1d6; --muted: #98989f;
  --line: rgba(235, 235, 245, 0.12); --line-2: rgba(235, 235, 245, 0.2);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5); --shadow: 0 18px 48px rgba(0, 0, 0, 0.5); --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.6);
  --glass: rgba(28, 28, 30, 0.7); --glass-line: rgba(255, 255, 255, 0.08);
  --tint-red: radial-gradient(800px 420px at 85% -10%, rgba(255, 75, 75, 0.16), transparent 70%);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.5 var(--font); letter-spacing: -0.011em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--red) 70%, transparent); outline-offset: 3px; border-radius: 8px; }
::selection { background: color-mix(in srgb, var(--red) 25%, transparent); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--text); color: var(--bg); border-radius: 10px; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { margin: 0; color: var(--text); font-weight: 700; letter-spacing: -0.028em; line-height: 1.06; text-wrap: balance; }
.display { font-size: clamp(44px, 7.2vw, 88px); font-weight: 800; letter-spacing: -0.045em; line-height: 0.98; }
.h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 800; letter-spacing: -0.04em; }
.h2 { font-size: clamp(32px, 4.2vw, 52px); font-weight: 800; letter-spacing: -0.035em; }
.h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.022em; line-height: 1.15; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; color: var(--muted); letter-spacing: -0.016em; max-width: 40ch; text-wrap: pretty; }
.lede strong { color: var(--text); font-weight: 600; }
p { text-wrap: pretty; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; font-size: 14px; font-weight: 600; letter-spacing: -0.005em; color: var(--red); }
.muted { color: var(--muted); }
.red { color: var(--red); }
.mono { font-family: var(--mono); }
.grad-text { background: linear-gradient(100deg, var(--red) 10%, #ff7a3d 60%, var(--red) 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 6s ease-in-out infinite; }
@keyframes sheen { 50% { background-position: 100% 0; } }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); }
.tag--soon { background: color-mix(in srgb, var(--yellow) 22%, transparent); color: color-mix(in srgb, #8a6d00 80%, var(--text)); border-color: color-mix(in srgb, var(--yellow) 50%, transparent); }
:root[data-theme="dark"] .tag--soon { color: var(--yellow); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tag--soon { color: var(--yellow); } }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #34c759; flex: none; animation: live 2s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.55); } 70% { box-shadow: 0 0 0 8px rgba(52, 199, 89, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0); } }

/* ---------- Buttons ---------- */
.btn { --bg-btn: var(--surface); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--bg-btn); color: var(--text); font-size: 17px; font-weight: 600; letter-spacing: -0.015em; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line-2); transition: transform 0.45s var(--spring), box-shadow 0.25s, background-color 0.25s; -webkit-tap-highlight-color: transparent; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-sm); }
.btn:active { transform: scale(0.96); transition-duration: 0.15s; }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn--primary { --bg-btn: var(--red); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 8px 24px color-mix(in srgb, var(--red) 35%, transparent); }
.btn--primary:hover { --bg-btn: var(--red-strong); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 12px 32px color-mix(in srgb, var(--red) 45%, transparent); }
.btn--dark { --bg-btn: var(--text); color: var(--bg); box-shadow: none; }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 15px; }
.btn--lg { min-height: 58px; padding: 0 30px; font-size: 18px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-weight: 600; }
.link-arrow::after { content: "›"; font-size: 1.3em; line-height: 1; transition: transform 0.4s var(--spring); }
.link-arrow:hover::after { transform: translateX(4px); }

.appstore-badge { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px 0 14px; border-radius: 12px; background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, 0.18); transition: transform 0.4s var(--spring); }
.appstore-badge:hover { transform: translateY(-2px); }
.appstore-badge svg { width: 26px; height: 26px; fill: #fff; }
.appstore-badge span { display: flex; flex-direction: column; font-size: 21px; font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.appstore-badge small { font-size: 11px; font-weight: 500; letter-spacing: 0; margin-bottom: 2px; }

/* ---------- Navigation ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 60; padding: 12px var(--gutter) 0; pointer-events: none; }
.nav__inner { pointer-events: auto; max-width: 1120px; margin: 0 auto; height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 10px 0 14px; border-radius: 999px; background: var(--glass); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); box-shadow: inset 0 0 0 1px var(--glass-line), 0 0 0 1px var(--line), 0 10px 30px rgba(0, 0, 0, 0.06); transition: box-shadow 0.3s, background-color 0.3s; }
.nav.is-scrolled .nav__inner { box-shadow: inset 0 0 0 1px var(--glass-line), 0 0 0 1px var(--line), 0 14px 40px rgba(0, 0, 0, 0.1); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -0.03em; }
.brand img { border-radius: 9px; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.12); }
.nav__links { display: flex; gap: 4px; }
.nav__links a { position: relative; padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--text-2); transition: background-color 0.2s, color 0.2s; }
.nav__links a:hover { background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text); }
.nav__links a[aria-current="page"] { color: var(--text); background: color-mix(in srgb, var(--text) 8%, transparent); }
.nav__end { display: flex; align-items: center; gap: 8px; }
.theme-toggle { width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; transition: background-color 0.2s, transform 0.4s var(--spring); }
.theme-toggle:hover { background: color-mix(in srgb, var(--text) 7%, transparent); }
.theme-toggle:active { transform: rotate(-30deg) scale(0.9); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme-toggle .i-moon { fill: currentColor; stroke: none; display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-toggle .i-moon { display: block; } :root:not([data-theme="light"]) .theme-toggle .i-sun { display: none; } }
.nav__menu { display: none; width: 42px; height: 42px; border: 0; background: transparent; border-radius: 50%; cursor: pointer; position: relative; }
.nav__menu span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.45s var(--spring), top 0.45s var(--spring); }
.nav__menu span:first-child { top: 16px; }
.nav__menu span:last-child { top: 24px; }
.nav.is-open .nav__menu span:first-child { top: 20px; transform: rotate(45deg); }
.nav.is-open .nav__menu span:last-child { top: 20px; transform: rotate(-45deg); }
.mobile-nav { pointer-events: auto; display: none; flex-direction: column; gap: 2px; max-width: 1120px; margin: 8px auto 0; padding: 10px; border-radius: 24px; background: var(--glass); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); box-shadow: inset 0 0 0 1px var(--glass-line), 0 0 0 1px var(--line), var(--shadow); transform-origin: top center; }
.mobile-nav a:not(.btn) { padding: 14px 16px; border-radius: 14px; font-size: 18px; font-weight: 600; }
.mobile-nav a:not(.btn):hover, .mobile-nav a[aria-current="page"] { background: color-mix(in srgb, var(--text) 6%, transparent); }
.mobile-nav .btn { margin-top: 8px; }

/* ---------- Sections ---------- */
.section { padding: clamp(88px, 11vw, 150px) 0; position: relative; }
.section--tight { padding: clamp(64px, 8vw, 100px) 0; }
.section--surface { background: var(--bg-2); }
.section__head { max-width: 760px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; display: flex; flex-direction: column; align-items: center; }
.section__head .lede { margin: 18px auto 0; max-width: 46ch; }
.section__head--left { margin-inline: 0; text-align: left; align-items: flex-start; }
.section__head--left .lede { margin-inline: 0; }

.page-hero { padding: 150px 0 clamp(40px, 6vw, 72px); background: var(--tint-red); }
.page-hero .lede { margin-top: 20px; }
.page-hero--center { text-align: center; }
.page-hero--center .lede { margin-inline: auto; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.8s var(--ease-out), transform 1s var(--spring-soft); transition-delay: calc(var(--d, 0) * 80ms); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal--scale { transform: translateY(40px) scale(0.94); }
.reveal--scale.is-in { transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* =========================================================================
   iPhone 18 Pro Max mockup
   Proportions from a 163.4 x 78 mm body with a 6.9" screen. Screen content is
   laid out at 440 x 962 pt and scaled to fit, so the UI keeps iOS metrics.
   ========================================================================= */
.iphone { --wn: 330; --frame-a: #e9eaec; --frame-b: #b9bcc2; --frame-c: #f8f8f9; --btn: #c9ccd1;
  --W: calc(var(--wn) * 1px); --s: calc(var(--wn) * 0.922 / 440);
  position: relative; width: var(--W); aspect-ratio: 78 / 163.4; margin: 0; flex: none; filter: drop-shadow(0 40px 50px rgba(15, 20, 35, 0.22)) drop-shadow(0 10px 16px rgba(15, 20, 35, 0.12)); }
.iphone--blue { --frame-a: #3d4a63; --frame-b: #222b3c; --frame-c: #5c6a86; --btn: #2f3a50; }
.iphone--orange { --frame-a: #ff7a2e; --frame-b: #c8501a; --frame-c: #ffa067; --btn: #e1631f; }
.iphone--black { --frame-a: #3a3a3e; --frame-b: #19191b; --frame-c: #5a5a5f; --btn: #2a2a2d; }
.iphone__body { position: absolute; inset: 0; border-radius: calc(var(--W) * 0.172); padding: calc(var(--W) * 0.012);
  background: linear-gradient(135deg, var(--frame-c) 0%, var(--frame-a) 18%, var(--frame-b) 50%, var(--frame-a) 82%, var(--frame-c) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), inset 0 0 calc(var(--W) * 0.01) rgba(0, 0, 0, 0.25); }
.iphone__glass { position: relative; height: 100%; border-radius: calc(var(--W) * 0.16); padding: calc(var(--W) * 0.027); background: #050506; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); overflow: hidden; }
.iphone__glass::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 6; background: linear-gradient(118deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 22%, transparent 38%, transparent 70%, rgba(255, 255, 255, 0.05) 100%); }
.iphone__screen { position: relative; height: 100%; border-radius: calc(var(--W) * 0.133); overflow: hidden; background: #f2f2f7; isolation: isolate; }
.iphone__island { position: absolute; z-index: 7; left: 50%; top: calc(var(--W) * 0.039 + 11px * var(--s)); width: calc(116px * var(--s)); height: calc(35px * var(--s)); transform: translateX(-50%); border-radius: 999px; background: #000; }
.iphone__island::after { content: ""; position: absolute; right: 22%; top: 50%; width: 26%; aspect-ratio: 1; max-width: calc(11px * var(--s)); transform: translateY(-50%); border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2a3550 0, #0c1020 45%, #000 70%); }
.iphone--live-island .iphone__island { display: none; }
.iphone__btn { position: absolute; width: calc(var(--W) * 0.012); border-radius: 2px; background: linear-gradient(90deg, var(--frame-b), var(--btn), var(--frame-a)); }
.iphone__btn--action { left: calc(var(--W) * -0.009); top: 17.5%; height: 5%; }
.iphone__btn--volup { left: calc(var(--W) * -0.009); top: 25%; height: 8.6%; }
.iphone__btn--voldn { left: calc(var(--W) * -0.009); top: 35.2%; height: 8.6%; }
.iphone__btn--side { right: calc(var(--W) * -0.009); top: 27%; height: 13%; }
.iphone__btn--cam { right: calc(var(--W) * -0.004); top: 55%; width: calc(var(--W) * 0.007); height: 7.5%; background: linear-gradient(90deg, #8d9097, #e6e7ea); }
.screen { position: absolute; left: 0; top: 0; width: 440px; height: 962px; transform-origin: 0 0; transform: scale(var(--s)); overflow: hidden; background: #f2f2f7; color: #000; font: 400 17px/1.3 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif; letter-spacing: -0.02em; -webkit-font-smoothing: antialiased; }

/* Rear view */
.iphone-back { --wn: 300; --W: calc(var(--wn) * 1px); position: relative; width: var(--W); aspect-ratio: 78 / 163.4; margin: 0; filter: drop-shadow(0 40px 50px rgba(15, 20, 35, 0.22)); --frame-a: #e9eaec; --frame-b: #b9bcc2; --frame-c: #f8f8f9; --back: #dfe1e5; }
.iphone-back.iphone--blue { --back: #2b3549; }
.iphone-back.iphone--orange { --back: #f0702a; }
.iphone-back__body { position: absolute; inset: 0; border-radius: calc(var(--W) * 0.172); background: linear-gradient(150deg, color-mix(in srgb, var(--back) 92%, #fff), var(--back) 45%, color-mix(in srgb, var(--back) 88%, #000)); box-shadow: inset 0 0 0 calc(var(--W) * 0.012) var(--frame-a), inset 0 0 0 calc(var(--W) * 0.015) rgba(255, 255, 255, 0.3); overflow: hidden; }
.plateau { position: absolute; left: calc(var(--W) * 0.012); right: calc(var(--W) * 0.012); top: calc(var(--W) * 0.012); height: 24%; border-radius: calc(var(--W) * 0.16) calc(var(--W) * 0.16) calc(var(--W) * 0.06) calc(var(--W) * 0.06); background: linear-gradient(180deg, color-mix(in srgb, var(--back) 90%, #fff), var(--back)); box-shadow: 0 calc(var(--W) * 0.01) calc(var(--W) * 0.03) rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.lens { position: absolute; width: calc(var(--W) * 0.205); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #0b0f1a 0 26%, #1c2436 27% 34%, #05070c 35% 52%, #2c3240 53% 62%, #9aa0aa 63% 70%, #50555f 71% 100%); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); }
.lens::after { content: ""; position: absolute; left: 30%; top: 28%; width: 18%; height: 12%; border-radius: 50%; background: rgba(170, 190, 255, 0.55); filter: blur(1px); }
.lens--1 { left: 7%; top: 9%; }
.lens--2 { left: 7%; top: 52%; }
.lens--3 { left: 33%; top: 30%; }
.flash { position: absolute; right: 9%; top: 16%; width: calc(var(--W) * 0.07); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fff7e0, #d9cfb4 60%, #9c9584); }
.lidar { position: absolute; right: 9%; top: 62%; width: calc(var(--W) * 0.06); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #222 30%, #555 70%); }
.mic { position: absolute; right: 24%; top: 44%; width: calc(var(--W) * 0.016); aspect-ratio: 1; border-radius: 50%; background: #111; }
.apple-mark { position: absolute; left: 50%; top: 52%; width: calc(var(--W) * 0.17); aspect-ratio: 1; transform: translate(-50%, -50%); opacity: 0.35; background: color-mix(in srgb, var(--back) 70%, #000); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.4 12.6c0-2.4 2-3.6 2.1-3.7-1.2-1.7-3-1.9-3.6-1.9-1.5-.2-3 .9-3.8.9-.8 0-2-.9-3.3-.9-1.7 0-3.3 1-4.2 2.5-1.8 3.1-.5 7.7 1.3 10.2.9 1.2 1.9 2.6 3.2 2.6 1.3-.1 1.8-.8 3.3-.8s2 .8 3.3.8c1.4 0 2.3-1.3 3.1-2.5 1-1.4 1.4-2.8 1.4-2.9 0 0-2.8-1.1-2.8-4.3zM14 5.3c.7-.8 1.2-2 1-3.2-1 .1-2.2.7-3 1.5-.6.7-1.2 1.9-1 3.1 1.1.1 2.3-.6 3-1.4z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.4 12.6c0-2.4 2-3.6 2.1-3.7-1.2-1.7-3-1.9-3.6-1.9-1.5-.2-3 .9-3.8.9-.8 0-2-.9-3.3-.9-1.7 0-3.3 1-4.2 2.5-1.8 3.1-.5 7.7 1.3 10.2.9 1.2 1.9 2.6 3.2 2.6 1.3-.1 1.8-.8 3.3-.8s2 .8 3.3.8c1.4 0 2.3-1.3 3.1-2.5 1-1.4 1.4-2.8 1.4-2.9 0 0-2.8-1.1-2.8-4.3zM14 5.3c.7-.8 1.2-2 1-3.2-1 .1-2.2.7-3 1.5-.6.7-1.2 1.9-1 3.1 1.1.1 2.3-.6 3-1.4z'/%3E%3C/svg%3E") center/contain no-repeat; }

/* =========================================================================
   App screens (iOS point metrics, 440 pt wide)
   ========================================================================= */
.sb { position: absolute; inset: 0 0 auto; height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 6px 40px 0 52px; font-size: 17px; font-weight: 600; z-index: 5; letter-spacing: -0.01em; }
.sb--light { color: #fff; }
.sb__icons { display: flex; align-items: center; gap: 7px; }
.sb__icons svg { height: 13px; width: auto; fill: currentColor; }
.home-ind { position: absolute; left: 50%; bottom: 9px; width: 146px; height: 5px; border-radius: 3px; transform: translateX(-50%); background: #000; z-index: 9; }
.home-ind--light { background: #fff; }
.app { position: absolute; inset: 0; padding: 62px 16px 0; overflow: hidden; }
.app-top { display: flex; align-items: center; justify-content: space-between; height: 44px; }
.app-title { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; margin: 6px 4px 10px; }
.glass-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.82); box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.08); color: #e41e26; font-size: 19px; font-weight: 600; }
.glass-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.glass-pill { height: 44px; padding: 0 18px; border-radius: 22px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.82); box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.08); color: #0a84ff; font-weight: 600; font-size: 17px; }
.card { background: #fff; border-radius: 22px; padding: 16px; box-shadow: 0 0.5px 0 rgba(0, 0, 0, 0.04); }
.card + .card { margin-top: 12px; }
.card-h { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: #6c6c70; margin: 18px 6px 8px; text-transform: uppercase; letter-spacing: 0.01em; font-size: 13px; }
.rb { display: inline-grid; place-items: center; min-width: 46px; height: 32px; padding: 0 9px; border-radius: 8px; background: #e41e26; color: #fff; font-weight: 700; font-size: 17px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.rb--sm { min-width: 34px; height: 22px; font-size: 12px; border-radius: 6px; padding: 0 6px; }
.rb--night { background: #284d9b; }
.rb--liz { background: #6950a1; }
.rb--big { min-width: 76px; height: 76px; font-size: 30px; border-radius: 18px; }
.due { display: inline-grid; place-items: center; min-width: 52px; height: 28px; padding: 0 10px; border-radius: 8px; background: #e41e26; color: #fff; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.due--soft { background: rgba(228, 30, 38, 0.1); color: #e41e26; }
.row { display: flex; align-items: center; gap: 12px; }
.row--between { justify-content: space-between; }
.sep { height: 0.5px; background: rgba(60, 60, 67, 0.18); margin: 12px 0; }
.small { font-size: 13px; color: #8a8a8e; }
.t15 { font-size: 15px; }
.t-semibold { font-weight: 600; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 7px; font-size: 12px; font-weight: 700; }
.chip--live { background: rgba(52, 199, 89, 0.14); color: #248a3d; }

/* Liquid glass tab bar */
.tabbar { position: absolute; left: 16px; right: 16px; bottom: 30px; height: 66px; border-radius: 33px; display: grid; grid-template-columns: repeat(5, 1fr); padding: 4px; z-index: 8; background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(18px) saturate(180%); -webkit-backdrop-filter: blur(18px) saturate(180%); box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.1), 0 8px 24px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9); }
.tabbar span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: #3c3c43; border-radius: 29px; }
.tabbar svg { width: 25px; height: 25px; fill: currentColor; }
.tabbar .on { color: #e41e26; background: rgba(0, 0, 0, 0.06); }

/* Home screen */
.greet { display: flex; align-items: center; gap: 14px; }
.greet__moon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(160deg, #5856d6, #3634a3); color: #fff; }
.greet__moon svg { width: 26px; height: 26px; fill: #fff; }
.greet b { display: block; font-size: 21px; letter-spacing: -0.02em; }
.wx { margin-left: auto; text-align: right; }
.wx b { font-size: 26px; font-weight: 600; display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.wx b svg { width: 26px; height: 26px; }
.fav-head { display: flex; align-items: center; gap: 12px; }
.fav-head b { font-size: 19px; }
.stop-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; font-size: 15px; }
.stop-row + .stop-row { border-top: 0.5px solid rgba(60, 60, 67, 0.14); }
.stop-row .small { display: block; margin-top: 1px; }
.count { display: inline-flex; gap: 6px; }
.count .roll { animation: rollIn 0.55s var(--spring); display: inline-block; }
@keyframes rollIn { from { transform: translateY(65%); opacity: 0; filter: blur(3px); } }

/* Route detail */
.route-hero { display: flex; gap: 14px; align-items: center; padding: 12px 4px 4px; }
.route-hero b { display: block; font-size: 26px; letter-spacing: -0.03em; }
.seg2 { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 4px; border-radius: 16px; background: #fff; margin: 14px 0 12px; }
.seg2 span { position: relative; z-index: 1; height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 17px; font-weight: 700; transition: color 0.3s; }
.seg2 span small { font-size: 12px; font-weight: 500; opacity: 0.75; }
.seg2 i { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 12px; background: #e41e26; transition: transform 0.55s var(--spring); }
.seg2[data-dir="in"] i { transform: translateX(100%); }
.seg2[data-dir="out"] span:first-of-type, .seg2[data-dir="in"] span:last-of-type { color: #fff; }
.stops { position: relative; background: #fff; border-radius: 22px; padding: 8px 16px 8px 46px; }
.stops::before { content: ""; position: absolute; left: 24px; top: 26px; bottom: 26px; width: 4px; border-radius: 2px; background: #e41e26; }
.stop-i { position: relative; padding: 10px 0; }
.stop-i + .stop-i { border-top: 0.5px solid rgba(60, 60, 67, 0.12); }
.stop-i::before { content: ""; position: absolute; left: -28px; top: 15px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid #e41e26; }
.stop-i b { font-size: 16px; display: block; margin-bottom: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.live-pill { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 22px; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(14px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14); font-size: 14px; font-weight: 600; white-space: nowrap; z-index: 6; }
.bus-on-line { position: absolute; left: 13px; width: 26px; height: 26px; border-radius: 50%; background: #e41e26; box-shadow: 0 0 0 4px #fff, 0 4px 10px rgba(228, 30, 38, 0.5); display: grid; place-items: center; z-index: 2; transition: top 1.4s var(--spring); }
.bus-on-line svg { width: 15px; height: 15px; fill: #fff; }

/* Headway screen (phone) */
.hw-phone { background: #000; color: #fff; }
.hw-phone .app-title { color: #fff; }
.hwp-card { background: #141416; border-radius: 20px; padding: 14px; margin-bottom: 12px; }
.hwp-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.hwp-head b { font-size: 17px; }
.hwp-head .small { color: #8e8e93; }
.hwp-diagram { position: relative; height: 190px; border-radius: 12px; background: #0a0a0b; overflow: hidden; }
.hwp-lane { position: absolute; left: 10px; right: 10px; height: 4px; border-radius: 2px; }
.hwp-lane--out { top: 58px; background: #e41e26; }
.hwp-lane--in { top: 132px; background: #0072f2; }
.hwp-stop { position: absolute; top: 84px; width: 30px; height: 20px; margin-left: -15px; background: #ffe600; color: #000; font-size: 7.5px; font-weight: 800; display: grid; place-items: center; border: 1px solid #000; }
.hwp-bus { position: absolute; top: 0; left: 0; will-change: transform; }
.hwp-bus i { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px #0a0a0b, 0 0 8px var(--c); }
.hwp-bus b { position: absolute; transform: translateX(-50%); padding: 2px 5px; border-radius: 5px; background: var(--c); color: #000; font: 700 9px/1.15 var(--mono); white-space: nowrap; text-align: center; }
.hwp-bus.out b { bottom: 9px; }
.hwp-bus.in b { top: 9px; }
.hwp-legend { display: flex; gap: 12px; margin-top: 10px; font-size: 11px; color: #8e8e93; }
.hwp-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.hwp-list { display: grid; gap: 8px; }
.hwp-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; background: #141416; border-radius: 16px; padding: 12px 14px; }
.hwp-row .rn { font-size: 20px; font-weight: 800; }
.hwp-row .meta { font-size: 13px; color: #8e8e93; }
.hwp-row .meta b { color: #fff; font-family: var(--mono); font-size: 13px; }
.hwp-row .bar { height: 4px; border-radius: 2px; background: #2c2c2e; margin-top: 6px; overflow: hidden; }
.hwp-row .bar span { display: block; height: 100%; width: var(--p); background: var(--lane, #e41e26); transition: width 1s linear; }
.hwp-row .v { font: 700 13px var(--mono); color: var(--c); }

/* Journey screen */
.sheet-top { display: flex; align-items: center; justify-content: space-between; padding: 4px 0 10px; }
.sheet-top b { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; }
.jr-sum b { font-size: 34px; letter-spacing: -0.03em; }
.mode-pills { display: flex; gap: 6px; }
.mode-pills span { height: 24px; padding: 0 9px; border-radius: 7px; display: grid; place-items: center; font-size: 11.5px; font-weight: 700; color: #fff; }
.leg { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.leg__ico { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; }
.leg b { font-size: 16px; display: block; }
.mini-map { height: 150px; border-radius: 14px; margin-top: 10px; position: relative; overflow: hidden; background: #e9efe3; }
.mini-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mini-map .route-path { stroke-dasharray: 600; stroke-dashoffset: 600; animation: drawPath 2.6s var(--ease-out) forwards 0.4s; }
.in-view .mini-map .route-path, .is-active .mini-map .route-path { animation-play-state: running; }
@keyframes drawPath { to { stroke-dashoffset: 0; } }

/* Tube line screen */
.line-head { display: flex; align-items: center; gap: 12px; }
.line-badge { white-space: nowrap; flex: none; height: 30px; padding: 0 12px; border-radius: 8px; background: #6950a1; color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 800; letter-spacing: 0.02em; }
.deps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.deps span { border-radius: 12px; height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #f2f2f7; font-size: 19px; font-weight: 700; }
.deps span small { font-size: 11px; font-weight: 500; color: #8a8a8e; }
.deps span.on { background: #0a84ff; color: #fff; }
.deps span.on small { color: rgba(255, 255, 255, 0.85); }
.track { position: relative; padding-left: 34px; }
.track::before { content: ""; position: absolute; left: 13px; top: 8px; bottom: 8px; width: 5px; border-radius: 3px; background: #6950a1; }
.track .st { position: relative; padding: 9px 0; font-size: 15px; display: flex; justify-content: space-between; }
.track .st + .st { border-top: 0.5px solid rgba(60, 60, 67, 0.12); }
.track .st::before { content: ""; position: absolute; left: -26px; top: 13px; width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 3px solid #6950a1; }
.track .st.next::before { width: 22px; height: 22px; left: -31.5px; top: 8px; border: 0; background: #6950a1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7 3h10a3 3 0 0 1 3 3v9a3 3 0 0 1-2 2.8l1.6 2.2H17l-1.4-2H8.4L7 20H4.4L6 17.8A3 3 0 0 1 4 15V6a3 3 0 0 1 3-3zm0 3v4h10V6zm1.5 7a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zm7 0a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3z'/%3E%3C/svg%3E") center/14px no-repeat; box-shadow: 0 0 0 4px rgba(105, 80, 161, 0.25); }

/* Map screen */
.map { position: absolute; inset: 0; background: #eef0e6; overflow: hidden; }
.map svg.streets { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-pin { position: absolute; transform: translate(-50%, -50%); display: grid; place-items: center; min-width: 34px; height: 22px; padding: 0 5px; border-radius: 6px; background: #e41e26; color: #fff; font-size: 11px; font-weight: 800; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25), 0 0 0 1.5px #fff; animation: pinDrop 0.7s var(--spring-bouncy) backwards; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes pinDrop { from { transform: translate(-50%, -160%) scale(0.5); opacity: 0; } }
.map-pin--stop { min-width: 0; width: 18px; height: 18px; border-radius: 50%; padding: 0; background: #fff; box-shadow: 0 0 0 3px #e41e26, 0 2px 4px rgba(0, 0, 0, 0.2); }
.map-pin--tube { min-width: 0; width: 22px; height: 22px; border-radius: 50%; padding: 0; background: #fff; box-shadow: 0 0 0 3.5px #0019a8, 0 2px 4px rgba(0, 0, 0, 0.2); }
.map-pin--tube::after { content: ""; position: absolute; left: -3px; right: -3px; height: 5px; background: #0019a8; }
.map-bus { position: absolute; width: 28px; height: 28px; margin: -14px; border-radius: 50%; background: #e41e26; box-shadow: 0 0 0 3px #fff, 0 4px 12px rgba(228, 30, 38, 0.5); display: grid; place-items: center; offset-rotate: 0deg; animation: drive 16s linear infinite; }
.map-bus svg { width: 15px; height: 15px; fill: #fff; }
@keyframes drive { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.you { position: absolute; width: 20px; height: 20px; margin: -10px; border-radius: 50%; background: #0a84ff; box-shadow: 0 0 0 4px #fff, 0 0 0 0 rgba(10, 132, 255, 0.35); animation: you 2.2s infinite; }
@keyframes you { 70% { box-shadow: 0 0 0 4px #fff, 0 0 0 28px rgba(10, 132, 255, 0); } 100% { box-shadow: 0 0 0 4px #fff, 0 0 0 0 rgba(10, 132, 255, 0); } }
.map-top { position: absolute; top: 62px; left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: center; z-index: 4; }
.map-title { padding: 10px 16px; border-radius: 22px; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px); font-weight: 700; font-size: 16px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1); }
.map-label { position: absolute; transform: translate(-50%, 0); padding: 4px 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.92); font-size: 11px; font-weight: 600; white-space: nowrap; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12); }

/* Next bus sheet */
.nb-map { height: 330px; position: relative; overflow: hidden; background: #eef0e6; }
.nb-sheet { position: absolute; left: 0; right: 0; top: 300px; bottom: 0; background: #f2f2f7; border-radius: 30px 30px 0 0; padding: 18px 16px; box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08); }
.nb-sheet::before { content: ""; position: absolute; left: 50%; top: 7px; width: 38px; height: 5px; margin-left: -19px; border-radius: 3px; background: rgba(60, 60, 67, 0.3); }
.nb-hero { text-align: center; }
.nb-hero .rb { margin: 4px auto 10px; }
.nb-hero b { font-size: 28px; display: block; letter-spacing: -0.03em; }
.next-card { border: 1.5px solid rgba(228, 30, 38, 0.35); }
.next-card .big { font-size: 46px; font-weight: 800; color: #e41e26; letter-spacing: -0.04em; line-height: 1; }
.up-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; font-size: 15px; }
.up-row + .up-row { border-top: 0.5px solid rgba(60, 60, 67, 0.12); }
.up-row .n { width: 26px; height: 26px; border-radius: 50%; background: #f2f2f7; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #8a8a8e; }

/* Lock screen + Live Activity */
.lock { position: absolute; inset: 0; color: #fff; background: radial-gradient(120% 60% at 50% 105%, rgba(228, 30, 38, 0.6), transparent 60%), radial-gradient(90% 60% at 0% 0%, rgba(0, 57, 166, 0.85), transparent 65%), linear-gradient(180deg, #0b1835, #1a1031 55%, #2c0b12); }
.lock::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 24%; background: rgba(4, 5, 12, 0.85); clip-path: polygon(0 62%, 7% 62%, 7% 42%, 13% 42%, 13% 56%, 21% 56%, 21% 32%, 24% 32%, 25% 12%, 26% 32%, 29% 32%, 29% 52%, 37% 52%, 37% 37%, 45% 37%, 45% 60%, 56% 60%, 56% 27%, 59% 27%, 59% 47%, 67% 47%, 67% 22%, 69% 2%, 71% 22%, 73% 22%, 73% 52%, 83% 52%, 83% 40%, 91% 40%, 91% 57%, 100% 57%, 100% 100%, 0 100%); }
.lock__time { position: relative; z-index: 1; text-align: center; padding-top: 74px; }
.lock__time small { display: block; font-size: 21px; font-weight: 600; opacity: 0.9; }
.lock__time b { display: block; font-size: 112px; font-weight: 700; letter-spacing: -0.04em; line-height: 0.95; margin-top: 2px; color: rgba(255, 255, 255, 0.94); }
.la { position: absolute; left: 14px; right: 14px; bottom: 148px; z-index: 2; padding: 18px 18px 16px; border-radius: 30px; background: rgba(24, 24, 32, 0.55); backdrop-filter: blur(30px) saturate(170%); -webkit-backdrop-filter: blur(30px) saturate(170%); border: 1px solid rgba(255, 255, 255, 0.12); }
.la__top { display: flex; align-items: center; gap: 10px; }
.la__top img { width: 30px; height: 30px; border-radius: 8px; }
.la__title { flex: 1; min-width: 0; line-height: 1.2; }
.la__title b { display: block; font-size: 18px; }
.la__title small { font-size: 14px; color: rgba(255, 255, 255, 0.65); }
.la__eta { text-align: right; line-height: 1; }
.la__eta b { display: inline-block; font-size: 40px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.la__eta small { display: block; font-size: 13px; color: rgba(255, 255, 255, 0.65); margin-top: 2px; }
.la__track { position: relative; height: 7px; margin: 22px 10px 16px; border-radius: 4px; background: rgba(255, 255, 255, 0.18); }
.la__fill { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 0%); border-radius: inherit; background: linear-gradient(90deg, #ff7b7b, #e41e26); transition: width 1.2s var(--spring); }
.la__stop { position: absolute; top: 50%; left: var(--x); width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 3px solid #1a1a24; transform: translate(-50%, -50%); z-index: 1; }
.la__stop--you { width: 18px; height: 18px; background: #34c759; border: 0; box-shadow: 0 0 0 5px rgba(52, 199, 89, 0.3); }
.la__bus { position: absolute; top: 50%; left: var(--p, 0%); width: 34px; height: 34px; border-radius: 50%; background: #e41e26; display: grid; place-items: center; transform: translate(-50%, -50%); z-index: 2; box-shadow: 0 4px 14px rgba(228, 30, 38, 0.6); transition: left 1.2s var(--spring); }
.la__bus svg { width: 18px; height: 18px; fill: #fff; }
.la__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; color: rgba(255, 255, 255, 0.78); }
.la__status { flex: none; padding: 3px 9px; border-radius: 7px; background: var(--ontime); color: #000; font-weight: 700; transition: background-color 0.4s; }
.la__status.is-late { background: var(--late); }
.notif { position: absolute; left: 14px; right: 14px; top: 262px; z-index: 2; display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 26px; background: rgba(245, 245, 250, 0.24); backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px); border: 1px solid rgba(255, 255, 255, 0.12); transform: translateY(-24px) scale(0.92); opacity: 0; transition: transform 0.75s var(--spring-bouncy), opacity 0.35s; }
.notif.is-shown { transform: none; opacity: 1; }
.notif img { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.notif b { display: block; font-size: 16px; }
.notif small { display: block; font-size: 15px; line-height: 1.3; color: rgba(255, 255, 255, 0.85); }
.notif time { margin-left: auto; font-size: 13px; color: rgba(255, 255, 255, 0.6); }
.lock__btns { position: absolute; left: 0; right: 0; bottom: 50px; z-index: 2; display: flex; justify-content: space-between; padding: 0 50px; }
.lock__btns span { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, 0.35); backdrop-filter: blur(10px); }
.lock__btns svg { width: 22px; height: 22px; fill: #fff; }

/* Dynamic Island (live states) */
.di { position: absolute; left: 50%; top: 11px; z-index: 9; width: 126px; height: 37px; transform: translateX(-50%); border-radius: 19px; background: #000; color: #fff; overflow: hidden; transition: width 0.6s var(--spring), height 0.6s var(--spring), border-radius 0.6s var(--spring), top 0.6s var(--spring); }
.di > div { position: absolute; inset: 0; transition: opacity 0.3s, filter 0.35s, transform 0.55s var(--spring); }
.di__compact { display: flex; align-items: center; justify-content: space-between; padding: 0 14px 0 8px; opacity: 0; filter: blur(6px); }
.di__compact .rb { min-width: 34px; height: 24px; font-size: 13px; border-radius: 7px; }
.di__compact b { font-size: 15px; color: var(--ontime); font-variant-numeric: tabular-nums; }
.di__expanded { padding: 20px 22px; display: flex; flex-direction: column; justify-content: space-between; opacity: 0; filter: blur(8px); transform: scale(0.9); }
.di__row { display: flex; align-items: center; gap: 12px; }
.di__row .t { flex: 1; min-width: 0; }
.di__row .t b { display: block; font-size: 18px; }
.di__row .t small { color: #9a9aa0; font-size: 13px; }
.di__eta { text-align: right; line-height: 1; }
.di__eta b { font-size: 38px; font-weight: 800; color: var(--ontime); font-variant-numeric: tabular-nums; }
.di__eta small { display: block; color: #9a9aa0; font-size: 13px; }
.di__bar { position: relative; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, 0.16); }
.di__bar i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 40%); border-radius: inherit; background: linear-gradient(90deg, #e41e26, #ff7b7b); transition: width 1s var(--spring); }
.di__foot { display: flex; justify-content: space-between; font-size: 13px; color: #b4b4ba; font-family: var(--mono); }
.di__foot em { font-style: normal; background: var(--ontime); color: #000; padding: 1px 8px; border-radius: 6px; font-weight: 700; font-family: var(--font); }
.di[data-state="compact"] { width: 240px; }
.di[data-state="compact"] .di__compact { opacity: 1; filter: none; }
.di[data-state="expanded"] { width: 412px; height: 196px; border-radius: 50px; top: 10px; }
.di[data-state="expanded"] .di__expanded { opacity: 1; filter: none; transform: none; transition-delay: 0.12s; }
.di-bubble { position: absolute; z-index: 9; left: calc(50% + 72px); top: 11px; width: 37px; height: 37px; border-radius: 50%; background: #000; display: grid; place-items: center; transform: translateX(-40px) scale(0.3); opacity: 0; transition: transform 0.65s var(--spring-bouncy), opacity 0.25s; }
.di-bubble .rb { min-width: 0; width: 27px; height: 27px; border-radius: 50%; font-size: 11px; padding: 0; }
.di[data-state="minimal"] ~ .di-bubble { transform: none; opacity: 1; }
.ghost-app { padding: 80px 16px 0; }
.ghost-app .g { background: #fff; border-radius: 22px; margin-bottom: 12px; position: relative; overflow: hidden; }
.ghost-app .g::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(0, 0, 0, 0.035) 50%, transparent 70%); animation: shimmer 2.4s infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* =========================================================================
   Page components
   ========================================================================= */

/* Hero */
.hero { position: relative; padding: 132px 0 0; overflow: clip; background: var(--tint-red); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center; min-height: min(860px, 100svh - 132px); }
.hero__copy .lede { margin-top: 24px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; align-items: center; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 34px; color: var(--muted); font-size: 14px; }
.hero__meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero__meta svg { width: 16px; height: 16px; fill: var(--red); }
.hero__stage { position: relative; height: 760px; display: flex; justify-content: center; align-items: flex-end; perspective: 1600px; }
.hero__stage .iphone { position: absolute; bottom: 0; transition: transform 1.2s var(--spring-soft); }
.hero__stage .iphone:nth-child(1) { --wn: 300; transform: translateX(-62%) translateY(-20px) rotate(-7deg); z-index: 1; }
.hero__stage .iphone:nth-child(2) { --wn: 350; z-index: 3; transform: translateY(-60px); }
.hero__stage .iphone:nth-child(3) { --wn: 300; transform: translateX(62%) translateY(-20px) rotate(7deg); z-index: 2; }
.hero__stage.is-pre .iphone:nth-child(1) { transform: translateX(-20%) translateY(80px) rotate(0); opacity: 0; }
.hero__stage.is-pre .iphone:nth-child(2) { transform: translateY(140px); opacity: 0; }
.hero__stage.is-pre .iphone:nth-child(3) { transform: translateX(20%) translateY(80px) rotate(0); opacity: 0; }
.hero__stage .iphone { transition: transform 1.4s var(--spring-soft), opacity 0.8s var(--ease-out); }
.hero__stage .iphone:nth-child(1), .hero__stage .iphone:nth-child(3) { transition-delay: 0.15s; }
.floater { position: absolute; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; background: var(--glass); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); box-shadow: inset 0 0 0 1px var(--glass-line), 0 0 0 1px var(--line), var(--shadow); font-size: 14px; font-weight: 600; white-space: nowrap; animation: float 7s ease-in-out infinite; }
.floater small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.floater i { width: 12px; height: 12px; border-radius: 3px; background: var(--c); flex: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1); }
.floater--1 { left: -2%; top: 24%; }
.floater--2 { right: -4%; top: 44%; animation-delay: -3.5s; }
@keyframes float { 50% { transform: translateY(-12px); } }

/* Logos / proof strip */
.strip { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.strip__track { display: flex; width: max-content; gap: 40px; padding: 18px 0; animation: marquee 60s linear infinite; }
.strip__track span { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.strip__track span::before { content: ""; width: 28px; height: 7px; border-radius: 4px; background: var(--c); }
.strip:hover .strip__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); padding: 28px; min-height: 300px; display: flex; flex-direction: column; transition: transform 0.6s var(--spring), box-shadow 0.3s; }
.tile:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow); }
.tile h3 { font-size: 24px; letter-spacing: -0.025em; }
.tile p { color: var(--muted); margin: 10px 0 0; font-size: 16px; }
.tile--2 { grid-column: span 2; }
.tile--3 { grid-column: span 3; }
.tile--4 { grid-column: span 4; }
.tile--dark { background: #0b0b0d; color: #fff; box-shadow: none; }
.tile--dark h3 { color: #fff; }
.tile--dark p { color: #a1a1a8; }
.tile--red { background: linear-gradient(160deg, #ef3a3f, #c8141c); color: #fff; box-shadow: none; }
.tile--red h3 { color: #fff; }
.tile--red p { color: rgba(255, 255, 255, 0.85); }
.tile__art { margin-top: auto; padding-top: 24px; position: relative; }
.tile__ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px; background: color-mix(in srgb, var(--c, var(--red)) 14%, transparent); }
.tile__ico svg { width: 26px; height: 26px; fill: var(--c, var(--red)); }

/* Arrivals mini art */
.mini-board { display: grid; gap: 8px; }
.mini-board div { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 600; }
.mini-board .rb { min-width: 40px; height: 26px; font-size: 14px; }
.mini-board b { margin-left: auto; font-variant-numeric: tabular-nums; }
.mini-board b.is-due { color: var(--red); }

/* Line status art */
.status-list { display: grid; gap: 6px; }
.status-list div { display: grid; grid-template-columns: 6px 1fr auto; gap: 10px; align-items: center; font-size: 14px; font-weight: 600; }
.status-list i { height: 22px; border-radius: 3px; background: var(--c); }
.status-list span { font-weight: 500; color: var(--muted); font-size: 13px; }
.status-list span.warn { color: #d97706; }

/* Sticky phone tour */
.tour { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; }
.tour__steps { display: flex; flex-direction: column; }
.tour__step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.28; transition: opacity 0.5s var(--ease-out); }
.tour__step.is-active { opacity: 1; }
.tour__step .h3 { margin: 12px 0 14px; font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.035em; }
.tour__step p { color: var(--muted); font-size: 19px; max-width: 34ch; margin: 0; }
.tour__step ul { padding: 0; margin: 22px 0 0; list-style: none; display: grid; gap: 10px; }
.tour__step li { display: flex; gap: 10px; color: var(--text-2); font-size: 16px; }
.tour__step li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--red-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23e41e26' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/13px no-repeat; }
.tour__num { font: 600 14px var(--mono); color: var(--red); }
.tour__device { position: sticky; top: max(96px, calc(50vh - 380px)); height: min(780px, calc(100vh - 120px)); display: flex; align-items: center; justify-content: center; }
.tour__device .iphone { --wn: 340; }
.stack { position: relative; width: 100%; height: 100%; }
.stack > .screen-layer { position: absolute; inset: 0; opacity: 0; transform: scale(1.03); transition: opacity 0.6s var(--ease-out), transform 0.8s var(--spring-soft); }
.stack > .screen-layer.is-active { opacity: 1; transform: none; z-index: 1; }

/* Headway showcase */
.hw { border-radius: var(--r-xl); background: #0b0b0d; color: #f5f5f7; padding: clamp(16px, 2.4vw, 28px); box-shadow: var(--shadow-lg); }
.hw__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; }
.hw__title { display: flex; align-items: center; gap: 14px; }
.hw__title .rb { min-width: 58px; height: 40px; font-size: 20px; border-radius: 10px; }
.hw__title b { display: block; font-size: 18px; letter-spacing: -0.02em; }
.hw__title small { display: flex; align-items: center; gap: 7px; color: #98989f; font-size: 13px; }
.hw__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.seg { position: relative; display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.seg button { position: relative; z-index: 1; border: 0; background: none; color: #a1a1a8; font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 999px; cursor: pointer; transition: color 0.25s; }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { color: #000; }
.seg__pill { position: absolute; top: 3px; bottom: 3px; left: 0; width: 0; border-radius: 999px; background: #fff; transition: left 0.5s var(--spring), width 0.5s var(--spring); }
.seg--light { background: color-mix(in srgb, var(--text) 6%, transparent); box-shadow: inset 0 0 0 1px var(--line); }
.seg--light button { color: var(--muted); }
.seg--light button[aria-selected="true"] { color: var(--text); }
.seg--light .seg__pill { background: var(--surface); box-shadow: var(--shadow-sm); }
.btn--ghost-dark { --bg-btn: rgba(255, 255, 255, 0.08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); min-height: 40px; font-size: 14px; padding: 0 16px; }
.btn--ghost-dark:hover { --bg-btn: rgba(255, 255, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); }
.hw__scroll { overflow-x: auto; border-radius: 20px; background: #050506; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); scrollbar-width: thin; scrollbar-color: #333 transparent; }
.hw__diagram { position: relative; min-width: 1080px; height: 340px; }
.hw__lane { position: absolute; left: 3%; right: 3%; height: 6px; border-radius: 3px; transition: opacity 0.4s; }
.hw__lane--out { top: 96px; background: #e41e26; box-shadow: 0 0 20px rgba(228, 30, 38, 0.45); }
.hw__lane--in { top: 238px; background: #0072f2; box-shadow: 0 0 20px rgba(0, 114, 242, 0.45); }
.hw__label { position: absolute; font-size: 11px; font-weight: 700; color: #8e8e93; letter-spacing: 0.06em; text-transform: uppercase; }
.hw__label--out { top: 14px; left: 3%; }
.hw__label--in { bottom: 14px; right: 3%; }
.hw__stop { position: absolute; top: 146px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.hw__stop .box { width: 46px; height: 28px; display: grid; place-items: center; background: #ffe600; color: #000; font: 800 10.5px var(--font); letter-spacing: 0; border: 1px solid #000; }
.hw__stop--end .box { background: #fff; outline: 2px solid #ffe600; }
.hw__stop--closed .box { background: repeating-linear-gradient(45deg, #ffe600 0 6px, #2c2c2e 6px 12px); color: transparent; }
.hw__stop .name { margin-top: 6px; font-size: 10.5px; color: #8e8e93; white-space: nowrap; max-width: 92px; overflow: hidden; text-overflow: ellipsis; }
.hw__stop--closed .name { color: #ff8a8a; }
.hw__stop::before, .hw__stop::after { content: ""; position: absolute; left: 50%; width: 1px; background: rgba(255, 255, 255, 0.16); }
.hw__stop::before { bottom: 100%; height: 44px; }
.hw__stop::after { top: 28px; height: 64px; }
.hw__diagram[data-dir="out"] .in, .hw__diagram[data-dir="in"] .out { opacity: 0.12; }
.hw__buses { position: absolute; inset: 0; }
.hbus { position: absolute; left: 0; top: 0; will-change: transform; z-index: 2; transition: opacity 0.4s; }
.hbus .pin { position: absolute; width: 14px; height: 14px; border-radius: 50%; transform: translate(-50%, -50%); background: var(--c); border: 2px solid #050506; box-shadow: 0 0 0 2px var(--c), 0 0 14px var(--c); transition: background-color 0.4s, box-shadow 0.4s; }
.hbus .tg { position: absolute; transform: translateX(-50%); padding: 4px 7px; border-radius: 7px; background: var(--c); color: #000; font: 700 10.5px/1.2 var(--mono); text-align: center; white-space: nowrap; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5); transition: background-color 0.4s, transform 0.5s var(--spring); }
.hbus .tg em { display: block; font-style: normal; font-weight: 500; opacity: 0.78; }
.hbus.out .tg { bottom: 14px; }
.hbus.in .tg { top: 14px; }
.hbus:hover { z-index: 6; }
.hbus:hover .tg { transform: translateX(-50%) scale(1.12); }
.hbus.is-new .pin, .hbus.is-new .tg { animation: busIn 0.7s var(--spring-bouncy); }
@keyframes busIn { from { opacity: 0; scale: 0.3; } }
.hgap { position: absolute; transform: translateX(-50%); padding: 2px 7px; border-radius: 6px; font: 700 10.5px var(--mono); color: #a1a1a8; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); white-space: nowrap; pointer-events: none; transition: color 0.3s, background-color 0.3s, border-color 0.3s, opacity 0.3s; }
.hgap::before, .hgap::after { content: ""; position: absolute; top: 50%; width: var(--half, 20px); height: 1px; background: currentColor; opacity: 0.35; }
.hgap::before { right: 100%; }
.hgap::after { left: 100%; }
.hgap.out { top: 114px; }
.hgap.in { top: 212px; }
.hgap.is-bunched { color: #fff; background: rgba(255, 58, 48, 0.9); border-color: transparent; animation: alarm 1s infinite; }
.hgap.is-wide { color: #ffcc66; border-color: rgba(255, 204, 102, 0.4); }
@keyframes alarm { 50% { box-shadow: 0 0 0 6px rgba(255, 58, 48, 0.22); } }
.hw__foot { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; margin-top: 18px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: #a1a1a8; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; background: var(--c); }
.stats { display: flex; gap: 10px; }
.stats div { min-width: 118px; padding: 10px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.stats small { display: block; font-size: 12px; color: #98989f; }
.stats b { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; display: inline-block; }
.stats b.flash { animation: flash 0.7s; }
@keyframes flash { 30% { color: var(--early); transform: scale(1.12); } }
.blocks { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.blocks__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 12px; font-weight: 600; }
.blocks__head small { color: #98989f; font-weight: 400; }
.blocks__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.brow { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
.brow .rn { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.brow .meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: #98989f; }
.brow .meta b { color: #fff; font-family: var(--mono); }
.brow .v { font: 700 12px var(--mono); color: var(--c); }
.brow .bar { height: 5px; border-radius: 3px; margin: 7px 0 5px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.brow .bar span { display: block; height: 100%; width: var(--p); border-radius: inherit; background: var(--lane); }
.brow .dest { font-size: 12px; color: #98989f; }

/* Split feature rows */
.feature-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.feature-row + .feature-row { margin-top: clamp(100px, 12vw, 160px); }
.feature-row--flip .feature-row__media { order: -1; }
.feature-row__media { display: flex; justify-content: center; position: relative; }
.feature-row__media::before { content: ""; position: absolute; width: 88%; aspect-ratio: 1; border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, color-mix(in srgb, var(--c, var(--red)) 22%, transparent), transparent 65%); filter: blur(10px); z-index: -1; }
.feature-row__media .iphone { --wn: 330; }
.feature-row .h2 { margin: 6px 0 18px; }
.feature-row p { color: var(--muted); font-size: 19px; margin: 0; max-width: 40ch; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; font-size: 17px; color: var(--text-2); }
.checks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--red-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23e41e26' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat; }

/* Live activity duo */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.duo__card { border-radius: var(--r-xl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); padding: 40px 28px 0; display: flex; flex-direction: column; align-items: center; text-align: center; overflow: hidden; }
.duo__card h3 { font-size: 28px; letter-spacing: -0.03em; }
.duo__card p { color: var(--muted); max-width: 36ch; margin: 12px auto 22px; }
.duo__card .iphone { --wn: 300; margin-bottom: -12%; }
.duo__card .seg { margin-bottom: 26px; }

/* Premium */
.prem-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.prem { padding: 22px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: transform 0.5s var(--spring), box-shadow 0.3s; }
.prem:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow); }
.prem .tile__ico { margin-bottom: 16px; width: 44px; height: 44px; border-radius: 12px; }
.prem h3 { font-size: 18px; letter-spacing: -0.02em; }
.prem p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.price-card { border-radius: var(--r-xl); padding: clamp(28px, 4vw, 48px); background: linear-gradient(160deg, #ef3a3f, #b5121a); color: #fff; box-shadow: 0 30px 80px rgba(228, 30, 38, 0.3); position: relative; overflow: hidden; }
.price-card::after { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.25), transparent 65%); }
.price-card h2 { color: #fff; }
.price-card p { color: rgba(255, 255, 255, 0.88); }
.price-card ul { list-style: none; padding: 0; margin: 22px 0 30px; display: grid; gap: 10px; }
.price-card li { display: flex; gap: 10px; font-weight: 500; }
.price-card li::before { content: "✓"; display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, 0.2); font-size: 13px; font-weight: 800; }
.price-card .btn { --bg-btn: #fff; color: #c8141c; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); }

/* CTA band */
.cta { position: relative; overflow: hidden; border-radius: var(--r-xl); background: #0b0b0d; color: #fff; padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 72px) 0; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px; align-items: end; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 400px at 85% 30%, rgba(228, 30, 38, 0.45), transparent 70%), radial-gradient(500px 300px at 10% 100%, rgba(0, 57, 166, 0.45), transparent 70%); }
.cta > * { position: relative; }
.cta h2 { color: #fff; }
.cta p { color: #a1a1a8; font-size: 19px; max-width: 36ch; margin: 18px 0 32px; }
.cta__copy { padding-bottom: clamp(40px, 6vw, 80px); }
.cta__devices { display: flex; justify-content: center; align-items: flex-end; gap: 0; height: 100%; min-height: 420px; }
.cta__devices .iphone-back { --wn: 230; transform: translateX(22%) rotate(-6deg) translateY(10%); z-index: 1; }
.cta__devices .iphone { --wn: 260; z-index: 2; margin-bottom: -22%; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.3s; }
.faq details[open] { box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: color-mix(in srgb, var(--text) 6%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23888' stroke-width='2.4' stroke-linecap='round' d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/14px no-repeat; transition: transform 0.45s var(--spring); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 22px 22px; color: var(--muted); font-size: 16.5px; }
.faq details > div p { margin: 0 0 10px; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 24px; align-items: start; }
.info-card { border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); padding: 28px; display: grid; gap: 22px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; }
.info-item .tile__ico { margin: 0; width: 44px; height: 44px; border-radius: 12px; flex: none; }
.info-item b { display: block; font-size: 16px; }
.info-item a, .info-item span { color: var(--muted); font-size: 16px; }
.info-item a:hover { color: var(--red); }
.form { border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); padding: clamp(22px, 3vw, 36px); }
.form h2 { font-size: 26px; letter-spacing: -0.03em; margin-bottom: 22px; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { font-size: 14px; font-weight: 600; color: var(--text-2); }
.field input, .field textarea, .field select { width: 100%; font: inherit; font-size: 17px; color: var(--text); padding: 13px 15px; border-radius: 13px; border: 0; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.2s, background-color 0.2s; appearance: none; -webkit-appearance: none; }
.field textarea { min-height: 150px; resize: vertical; line-height: 1.45; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; background: var(--surface); box-shadow: inset 0 0 0 2px var(--red), 0 0 0 4px var(--red-soft); }
.field[data-invalid] input, .field[data-invalid] textarea { box-shadow: inset 0 0 0 2px #ff3b30; }
.field .err { font-size: 13px; color: #ff3b30; min-height: 0; }
.field .count-hint { font-size: 12.5px; color: var(--muted); justify-self: end; margin-top: -2px; }
.form__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-top: 6px; }
.form__foot p { margin: 0; font-size: 13.5px; color: var(--muted); max-width: 40ch; }
.form .btn[disabled] { opacity: 0.65; pointer-events: none; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; animation: spin 0.8s linear infinite; display: none; }
.is-sending .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 80; display: flex; align-items: center; gap: 12px; max-width: calc(100% - 32px); padding: 14px 18px; border-radius: 18px; background: var(--glass); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); box-shadow: inset 0 0 0 1px var(--glass-line), 0 0 0 1px var(--line), var(--shadow-lg); transform: translate(-50%, 140%); transition: transform 0.6s var(--spring-bouncy); font-weight: 500; }
.toast.is-shown { transform: translate(-50%, 0); }
.toast__ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #34c759; color: #fff; flex: none; font-weight: 800; }
.toast.is-error .toast__ico { background: #ff3b30; }
.toast small { display: block; color: var(--muted); font-weight: 400; }

/* Legal */
.legal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; align-items: start; }
.legal__toc { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow: auto; padding: 18px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.legal__toc-title { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.legal__toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.legal__toc a { display: block; padding: 7px 10px; border-radius: 9px; font-size: 14px; color: var(--text-2); line-height: 1.3; transition: background-color 0.2s, color 0.2s; }
.legal__toc a:hover { background: color-mix(in srgb, var(--text) 5%, transparent); }
.legal__toc a.is-current { background: var(--red-soft); color: var(--red); font-weight: 600; }
.prose { max-width: 72ch; font-size: 17px; line-height: 1.65; color: var(--text-2); }
.prose h2 { font-size: 28px; letter-spacing: -0.03em; margin: 56px 0 16px; padding-top: 8px; color: var(--text); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 20px; letter-spacing: -0.02em; margin: 32px 0 10px; color: var(--text); }
.prose h4 { font-size: 17px; margin: 22px 0 8px; color: var(--text); }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--red); }
.prose a { color: var(--red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; word-break: break-word; }
.prose strong { color: var(--text); }
.legal-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* 404 */
.lost { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 140px 0 80px; }
.lost__sign { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 28px; border-radius: 22px; background: #0b0b0d; color: #ffd300; font: 700 22px var(--mono); box-shadow: var(--shadow-lg); margin-bottom: 36px; }
.lost__sign small { color: #ff9f0a; font-size: 14px; }
.lost__sign span.blink { animation: blink 1.2s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }

/* Footer */
.footer { margin-top: 0; border-top: 1px solid var(--line); background: var(--bg-2); padding: clamp(48px, 6vw, 72px) 0 32px; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer__brand p { color: var(--muted); margin: 14px 0 20px; max-width: 30ch; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col a { color: var(--text-2); transition: color 0.2s; width: fit-content; }
.footer__col a:hover { color: var(--red); }
.footer__title { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.footer__legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; display: grid; gap: 6px; }
.footer__legal p { margin: 0; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
.fav-head .small { display: block; }

/* Tour: per-step phones only on small screens */
.tour__mobile-phone { display: none; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1100px) {
  .hero__stage { height: 680px; }
  .hero__stage .iphone:nth-child(2) { --wn: 320; }
  .hero__stage .iphone:nth-child(1), .hero__stage .iphone:nth-child(3) { --wn: 270; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile--2, .tile--3, .tile--4 { grid-column: span 1; }
  .tile--wide-md { grid-column: span 2; }
}
@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__menu { display: block; }
  .nav.is-open .mobile-nav { display: flex; animation: menuIn 0.5s var(--spring); }
  @keyframes menuIn { from { opacity: 0; transform: translateY(-10px) scale(0.97); } }
  .hero__grid { grid-template-columns: 1fr; text-align: center; min-height: 0; }
  .hero__copy { display: flex; flex-direction: column; align-items: center; }
  .hero__cta, .hero__meta { justify-content: center; }
  .hero__stage { height: 640px; margin-top: 10px; }
  .tour { grid-template-columns: 1fr; }
  .tour__device { display: none; }
  .tour__step { min-height: 0; opacity: 1; padding: 0 0 72px; align-items: center; text-align: center; }
  .tour__step p { margin-inline: auto; }
  .tour__step ul { text-align: left; }
  .tour__step .tour__mobile-phone { display: flex !important; justify-content: center; margin-top: 34px; }
  .feature-row { grid-template-columns: 1fr; text-align: center; }
  .feature-row p { margin-inline: auto; }
  .feature-row .checks { text-align: left; max-width: 440px; margin-inline: auto; }
  .feature-row--flip .feature-row__media { order: 0; }
  .feature-row__copy { display: flex; flex-direction: column; align-items: center; }
  .duo { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; text-align: center; }
  .cta p { margin-inline: auto; }
  .cta__copy { display: flex; flex-direction: column; align-items: center; padding-bottom: 0; }
  .contact { grid-template-columns: 1fr; }
  .legal { grid-template-columns: 1fr; gap: 24px; }
  .legal__toc { position: static; max-height: none; }
  .legal__toc ol { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .floater--1 { left: 0; } .floater--2 { right: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-top: 112px; }
  .hero__stage { height: 520px; }
  .hero__stage .iphone:nth-child(2) { --wn: 250; transform: translateY(-30px); }
  .hero__stage .iphone:nth-child(1), .hero__stage .iphone:nth-child(3) { --wn: 205; }
  .hero__stage .iphone:nth-child(1) { transform: translateX(-56%) translateY(-6px) rotate(-7deg); }
  .hero__stage .iphone:nth-child(3) { transform: translateX(56%) translateY(-6px) rotate(7deg); }
  .floater { display: none; }
  .bento { grid-template-columns: 1fr; }
  .tile--wide-md { grid-column: span 1; }
  .tile { min-height: 0; padding: 24px; }
  .feature-row__media .iphone, .tour__mobile-phone .iphone { --wn: 270; }
  .duo__card { padding: 32px 18px 0; }
  .duo__card .iphone { --wn: 260; }
  .stats { width: 100%; }
  .stats div { flex: 1; min-width: 0; padding: 10px 12px; }
  .hw__actions { width: 100%; }
  .field-row { grid-template-columns: 1fr; }
  .cta__devices { min-height: 340px; }
  .cta__devices .iphone-back { --wn: 170; }
  .cta__devices .iphone { --wn: 200; }
  .page-hero { padding-top: 124px; }
  .prose h2 { font-size: 24px; }
  .faq summary { font-size: 17px; padding: 18px; }
  .faq details > div { padding: 0 18px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Device screens never inherit page alignment */
.screen { text-align: left; }
.cta .h2 { font-size: clamp(30px, 7.5vw, 52px); }
@media (max-width: 640px) { .cta { padding: 36px 20px 0; border-radius: 28px; } .tile--2 { min-height: 0; } }
.tile--2 { min-height: 240px; }
.hw__title small { display: block; line-height: 1.4; }
.hw__title small .live-dot { display: inline-block; margin-right: 6px; vertical-align: 1px; }
@media (max-width: 960px) { .hero__stage { margin-top: 80px; } .hero__meta { position: relative; z-index: 6; } }
@media (max-width: 640px) { .hero__stage { margin-top: 56px; } }
.tag--prem { vertical-align: middle; margin-left: 6px; font-size: 12px; letter-spacing: 0; text-transform: none; background: linear-gradient(135deg, #ff7a2e, var(--red)); color: #fff; border: 0; }
h3 .tag--prem { font-size: 13px; position: relative; top: -3px; }
