/* ============================================================
   TPASS.calc — Website Design System
   Apple-style product showcase · keeps the app's light-blue identity
   ============================================================ */

:root {
  /* Brand light-blue identity (mirrors the app's System/Light theme) */
  --accent:        #4A6FA5;
  --accent-dark:   #355489;
  --accent-deep:   #233e6b;
  --accent-light:  #eef4fc;
  --accent-mid:    #cadcf2;
  --accent-glow:   rgba(74, 111, 165, 0.24);

  /* Luminous "morning sky" tones — softer extension of the brand blue,
     used only for gradients & ambient glows (todayOS-inspired calm) */
  --sky:        #6f9bd6;
  --sky-soft:   #a9c9ef;
  --sky-wash:   #f6faff;
  --halo:       rgba(126, 168, 222, 0.20);

  /* Neutrals — Apple-ish */
  --bg:        #ffffff;
  --bg-alt:    #f6f8fb;
  --bg-blue:   #eef3fb;
  --ink:       #1b1d21;
  --ink-soft:  #3a3d44;
  --subtle:    #6b7078;
  --hairline:  rgba(0,0,0,0.08);
  --success:   #2f8f62;

  /* Radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-2xl: 44px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-fast: cubic-bezier(0.4, 0, 0.2, 1);

  /* Type — system-native: SF Pro on Apple devices, PingFang TC for zh-Hant */
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang TC", "Segoe UI", "Microsoft JhengHei", sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang TC", "Microsoft JhengHei", sans-serif;

  --maxw: 1180px;
}

/* ── Reset ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-text);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }
:focus-visible {
  outline: 3px solid rgba(74, 111, 165, 0.38);
  outline-offset: 3px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Layout ─────────────────────────────────────── */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: clamp(72px, 11vw, 150px) 0; }
.section-tight { padding: clamp(48px, 7vw, 96px) 0; }
.bg-alt  { background: var(--bg-alt); }
.bg-blue { background: linear-gradient(180deg, var(--sky-wash) 0%, #eaf1fb 100%); }

/* ── Type scale ─────────────────────────────────── */
.kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.95rem, 1.6vw, 1.18rem);
  letter-spacing: 0.01em;
  color: var(--accent);
  margin-bottom: 14px;
}
.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6.2vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: var(--ink);
}
.subhead {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.lede {
  font-size: clamp(1.05rem, 1.7vw, 1.32rem);
  line-height: 1.6;
  color: var(--subtle);
  font-weight: 400;
}
.muted { color: var(--subtle); }
.center { text-align: center; }
.gradient-text {
  background: linear-gradient(100deg, var(--accent-dark) 0%, var(--sky) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  will-change: transform;
}
/* Apple-style press: no hover lift, a quick scale-down on tap */
.btn:active { transform: scale(0.97); transition-duration: .1s; }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost {
  background: var(--accent-light);
  color: var(--accent-dark);
  border: 1px solid var(--accent-mid);
}
.btn-ghost:hover { background: var(--accent-mid); }
.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover { background: #000; }
.btn-lg { padding: 16px 34px; font-size: 1.08rem; }
.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  font-size: 1rem;
  transition: gap .25s var(--ease);
}
.btn-text:hover { gap: 10px; }
.btn-text svg { transition: transform .25s var(--ease); }

/* ── Nav ─────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.site-nav.scrolled {
  border-bottom-color: var(--hairline);
  background: rgba(255,255,255,0.82);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
  transition: height .35s var(--ease);
}
.site-nav.scrolled .nav-inner { height: 50px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand span { color: var(--accent); }
.brand-logo {
  width: 30px; height: 30px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 999px;
  transition: background .2s var(--ease-fast), color .2s var(--ease-fast);
  white-space: nowrap;
}
.nav-links a:hover { background: var(--bg-alt); color: var(--ink); }
.nav-links a.active { color: var(--accent); }
.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--accent-dark) !important; }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent-dark);
  cursor: pointer;
  place-items: center;
  flex-shrink: 0;
}
.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle-lines {
  position: relative;
}
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-lines::before { transform: translateY(-6px); }
.nav-toggle-lines::after { transform: translateY(6px); }
.site-nav.menu-open .nav-toggle-lines { background: transparent; }
.site-nav.menu-open .nav-toggle-lines::before { transform: rotate(45deg); }
.site-nav.menu-open .nav-toggle-lines::after { transform: rotate(-45deg); }

/* ── Hero ────────────────────────────────────────── */
.hero {
  position: relative;
  padding: clamp(72px, 11vw, 132px) 0 clamp(48px, 7vw, 88px);
  overflow: hidden;
}
/* todayOS-style soft ambient morning light — luminous, calm, breathable */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 72% at 50% -22%, rgba(169,201,239,0.42) 0%, rgba(169,201,239,0) 58%),
    radial-gradient(58% 44% at 84% 6%, var(--halo) 0%, transparent 56%),
    radial-gradient(52% 42% at 12% 14%, rgba(186,213,242,0.30) 0%, transparent 56%),
    linear-gradient(180deg, var(--sky-wash) 0%, #ffffff 72%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}
/* Hero kicker → soft glass pill (todayOS calm chip) */
.hero .kicker {
  background: rgba(255,255,255,0.62);
  border: 1px solid var(--accent-mid);
  padding: 7px 17px;
  border-radius: 999px;
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  box-shadow: 0 2px 14px rgba(74,111,165,0.08);
  margin-bottom: 22px;
}
.hero .display { margin-bottom: 24px; }
.hero .lede { max-width: 30em; margin: 0 auto 34px; }
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.hero-note {
  font-size: 0.88rem;
  color: var(--success);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Hero device */
.hero-stage {
  position: relative;
  margin-top: clamp(40px, 6vw, 76px);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 1;
}
.hero-stage .glow {
  position: absolute;
  bottom: 4%;
  width: min(680px, 80vw);
  height: 360px;
  background: radial-gradient(ellipse at center, var(--halo) 0%, transparent 70%);
  z-index: 0;
}
/* Phone PNGs already include their own frame and soft edge shadow.
   Avoid CSS filters here: mobile browsers can rasterise animated transparent
   images into rectangular layers, exposing a square halo around each asset. */
.shot {
  display: block;
  filter: none;
}
.hero-device {
  width: clamp(230px, 32vw, 300px);
  z-index: 1;
}
.hero-device .shot { width: 100%; }

/* ── Stats strip ─────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.stat .num small { font-size: 0.5em; font-weight: 700; margin-left: 2px; color: var(--accent); }
.stat .label {
  margin-top: 10px;
  font-size: 0.95rem;
  color: var(--subtle);
  font-weight: 600;
}

/* ── Sticky scroll showcase (Apple-style pinned) ── */
.sticky-show { position: relative; }
.sticky-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.sticky-media {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sticky-frame {
  position: relative;
  height: min(74vh, 600px);
  width: clamp(240px, 27vw, 300px);
}
.sticky-frame .device-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.97) translateY(14px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.sticky-frame .device-shot.active {
  opacity: 1;
  transform: none;
}
.sticky-panels {
  display: flex;
  flex-direction: column;
  /* trailing space so the pinned device stays put while the LAST panel is
     centered and read, instead of releasing early and sliding off-screen */
  padding-bottom: 30vh;
}
.sticky-panel {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6vh 0;
  /* Apple-style focus: only the panel in view reads at full strength */
  opacity: 0.3;
  transition: opacity .5s var(--ease);
}
.sticky-panel.active { opacity: 1; }
.sticky-panel .idx {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.sticky-panel h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}
.sticky-panel p {
  color: var(--subtle);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.75;
  max-width: 40ch;
}
.sticky-panel .tag-row { margin-top: 20px; }

/* tags reused in panels */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex; align-items: center;
  padding: 6px 14px;
  background: var(--accent-light);
  color: var(--accent-dark);
  border: 1px solid var(--accent-mid);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

/* inline image used inside sticky panels on mobile */
.panel-shot {
  display: none;
  margin: 22px auto 4px;
  width: min(230px, 62vw);
  filter: none;
}
.swipe-hint { display: none; }
@media (max-width: 900px) {
  .panel-shot { display: block; }
}

/* ── Bento feature grid ──────────────────────────── */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.bento-card {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 30px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.bg-alt .bento-card { background: #fff; }
.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(28,40,70,0.10);
}
.bento-card.span-3 { grid-column: span 3; }
.bento-card.span-2 { grid-column: span 2; }
.bento-card.span-6 { grid-column: span 6; }
.bento-ico {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: var(--accent-light);
  color: var(--accent-dark);
  margin-bottom: 18px;
}
.bento-ico svg { width: 24px; height: 24px; }
.bento-card h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.bento-card p { color: var(--subtle); font-size: 0.98rem; line-height: 1.65; }

/* ── Transport marquee ──────────────────────────── */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.chip:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(28,40,70,0.08); }
.chip .dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* ── Steps ───────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 34px 28px;
  position: relative;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(28,40,70,0.09); }
.step .step-n {
  counter-increment: step;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--accent-mid);
  margin-bottom: 16px;
}
.step .step-n::before { content: counter(step, decimal-leading-zero); }
.step h4 { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; margin-bottom: 10px; }
.step p { color: var(--subtle); font-size: 0.96rem; line-height: 1.7; }

/* ── Final CTA ───────────────────────────────────── */
.cta-final {
  position: relative;
  border-radius: var(--r-2xl);
  padding: clamp(48px, 7vw, 90px) clamp(28px, 5vw, 72px);
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(80% 120% at 50% -10%, rgba(126,168,222,0.55) 0%, transparent 60%),
    linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
}
.cta-final .headline { color: #fff; }
.cta-final p { color: rgba(255,255,255,0.85); margin: 16px auto 30px; max-width: 40ch; font-size: 1.12rem; }
.cta-final .btn-primary { background: #fff; color: var(--accent-dark); box-shadow: 0 14px 40px rgba(0,0,0,0.22); }
.cta-final .btn-primary:hover { box-shadow: 0 20px 54px rgba(0,0,0,0.3); }
.cta-final .btn-ghost { background: rgba(255,255,255,0.14); color: #fff; border-color: rgba(255,255,255,0.34); }
.cta-final .btn-ghost:hover { background: rgba(255,255,255,0.24); }

/* ── Footer ──────────────────────────────────────── */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--hairline);
  padding: 48px 0 40px;
  color: var(--subtle);
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 28px;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-brand img { width: 26px; height: 26px; border-radius: 7px; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { color: var(--subtle); text-decoration: none; transition: color .2s; font-weight: 600; }
.footer-links a:hover { color: var(--accent); }

/* ── Generic page header (sub-pages) ─────────────── */
.page-hero {
  padding: clamp(64px, 9vw, 120px) 0 clamp(36px, 5vw, 64px);
  text-align: center;
  background:
    radial-gradient(80% 60% at 50% -20%, var(--halo) 0%, transparent 60%),
    linear-gradient(180deg, var(--sky-wash) 0%, #ffffff 100%);
  position: relative;
}
.page-hero .lede { max-width: 56ch; margin: 18px auto 0; }

/* ── Content card (support / privacy / maic) ─────── */
.content-card {
  max-width: 820px;
  margin: 0 auto clamp(56px, 8vw, 100px);
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: clamp(28px, 5vw, 52px);
  box-shadow: 0 18px 50px rgba(28,40,70,0.07);
}

/* PDF embed (maic) */
.pdf-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  margin-bottom: 16px; padding: 14px 18px;
  background: #fff; border: 1px solid var(--hairline); border-radius: var(--r-md);
}
.pdf-toolbar span { font-size: 0.9rem; font-weight: 600; color: var(--subtle); }
.pdf-frame-wrap {
  border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--hairline);
  box-shadow: 0 20px 50px rgba(28,40,70,0.12);
  background: #525659;
}
.pdf-frame { display: block; width: 100%; height: 86vh; min-height: 600px; border: none; }

/* ── Scroll reveal — fade + rise ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }

/* Staggered float-in for phone screenshots inside a revealed block */
@media (prefers-reduced-motion: no-preference) {
  .reveal .phone {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
  }
  .reveal.visible .phone { opacity: 1; transform: none; }
  .reveal.visible .phone:nth-child(2) { transition-delay: .1s; }
  .reveal.visible .phone:nth-child(3) { transition-delay: .2s; }
  /* keep the rewind row's alternating lift after it settles */
  .rewind-phones-row.reveal.visible .phone:nth-child(odd) { transform: translateY(-8px); }
}

/* Scroll-driven rise for the hero screenshot (progressive enhancement) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-device .shot {
      animation: shot-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 90%;
    }
  }
}
@keyframes shot-rise {
  from { transform: scale(0.94) translateY(32px); opacity: 0.35; }
  to   { transform: none; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-device, .marquee-track { animation: none !important; }
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .sticky-grid { grid-template-columns: 1fr; gap: 0; }
  .sticky-media { display: none; }
  .sticky-panels { padding-bottom: 0; }
  .sticky-panel { min-height: auto; padding: 28px 0; text-align: center; opacity: 1; }
  .sticky-panel p { margin: 0 auto; }
  .sticky-panel .tag-row { justify-content: center; }
  .bento-card.span-3, .bento-card.span-2 { grid-column: span 6; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body.menu-open { overflow: hidden; }
  .wrap { padding-left: 18px; padding-right: 18px; }
  .section { padding: 64px 0; }
  .section-tight { padding: 44px 0; }
  .site-nav {
    position: sticky;
    background: rgba(255,255,255,0.92);
  }
  .nav-inner,
  .site-nav.scrolled .nav-inner { height: 58px; }
  .brand { font-size: 1.08rem; }
  .brand-logo { width: 32px; height: 32px; }
  .nav-toggle { display: grid; }
  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 14px;
    right: 14px;
    display: grid;
    gap: 4px;
    padding: 10px;
    max-height: calc(100dvh - 82px);
    overflow-y: auto;
    border: 1px solid var(--hairline);
    border-radius: 20px;
    background: rgba(255,255,255,0.98);
    box-shadow: 0 24px 70px rgba(28,40,70,0.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(.98);
    transform-origin: top right;
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  }
  .site-nav.menu-open .nav-links {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
  .nav-links a,
  .nav-links .hide-sm {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 10px 14px;
    border-radius: 13px;
    font-size: 1rem;
  }
  .nav-links a.active { background: var(--accent-light); }
  .nav-links .nav-cta {
    justify-content: center;
    margin-top: 4px;
  }
  .hero {
    padding: 52px 0 42px;
  }
  .hero .kicker {
    padding: 6px 13px;
    margin-bottom: 18px;
    font-size: .9rem;
  }
  .hero .display {
    font-size: clamp(2.45rem, 12vw, 3.35rem);
    margin-bottom: 18px;
  }
  .hero .lede {
    font-size: 1.03rem;
    line-height: 1.72;
    margin-bottom: 26px;
  }
  .hero-cta {
    width: 100%;
    gap: 10px;
  }
  .hero-cta .btn {
    width: min(100%, 320px);
    min-height: 54px;
  }
  .hero-note {
    max-width: 320px;
    justify-content: center;
    line-height: 1.5;
  }
  .hero-stage { margin-top: 30px; }
  .hero-device { width: min(218px, 62vw); }
  .stats { gap: 26px 12px; }
  .stat .num { font-size: 2.25rem; }
  .stat .label { font-size: .84rem; margin-top: 7px; }
  .sticky-show .center { margin-bottom: 22px !important; }
  .swipe-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--subtle);
    font-size: .84rem;
    font-weight: 650;
    margin-bottom: 14px;
  }
  .swipe-hint::after {
    content: "→";
    color: var(--accent);
    font-size: 1rem;
  }
  .sticky-panels {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(84vw, 340px);
    gap: 14px;
    margin: 0 -18px;
    padding: 4px 18px 22px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 18px;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
  }
  .sticky-panels::-webkit-scrollbar { display: none; }
  .sticky-panel {
    scroll-snap-align: start;
    justify-content: flex-start;
    min-height: 0;
    padding: 24px 22px;
    text-align: left;
    border: 1px solid var(--hairline);
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, #fff 0%, var(--sky-wash) 100%);
    box-shadow: 0 14px 36px rgba(28,40,70,.07);
  }
  .sticky-panel .idx { margin-bottom: 9px; }
  .sticky-panel h3 { font-size: 1.55rem; margin-bottom: 12px; }
  .sticky-panel p { margin: 0; font-size: .98rem; line-height: 1.68; }
  .sticky-panel .tag-row { justify-content: flex-start; margin-top: 16px; }
  .panel-shot {
    width: min(174px, 48vw);
    margin: 16px auto 12px;
  }
  .tag { padding: 5px 10px; font-size: .78rem; }
  .bento { gap: 12px; }
  .bento-card { padding: 23px; border-radius: 19px; }
  .bento-card:hover,
  .step:hover,
  .pro-card:hover { transform: none; }
  .step { padding: 26px 22px; }
  .cta-final {
    border-radius: 26px;
    padding: 44px 22px;
  }
  .page-hero { padding: 50px 0 30px; }
  .page-hero .lede {
    margin-top: 14px;
    font-size: 1rem;
    line-height: 1.7;
  }
  .content-card {
    border-radius: 21px;
    padding: 25px 20px;
    margin-bottom: 56px;
  }
  .pdf-toolbar {
    align-items: stretch;
    padding: 14px;
  }
  .pdf-toolbar span {
    width: 100%;
    overflow-wrap: anywhere;
  }
  .pdf-toolbar .btn { width: 100%; min-height: 46px; }
  .pdf-frame-wrap { display: none; }
  .site-footer { padding: 36px 0 30px; }
  .footer-inner { flex-direction: column; gap: 18px; }
  .footer-links { gap: 8px 18px; }
  .footer-links a { min-height: 40px; display: inline-flex; align-items: center; }
}
@media (max-width: 420px) {
  .bento-card.span-2 { padding: 21px; }
  .display { overflow-wrap: anywhere; }
}

/* ============================================================
   EXTENSIONS — Commute Rewind · feature page galleries
   (reuses the same tokens, motion & blue identity above)
   ============================================================ */

/* ── Commute Rewind — Spotify-Wrapped editorial ───── */
.rewind {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 11vw, 160px) 0;
  color: #fff;
  background:
    radial-gradient(90% 80% at 18% 0%, rgba(126,168,222,0.40) 0%, transparent 55%),
    radial-gradient(70% 70% at 92% 100%, rgba(111,155,214,0.34) 0%, transparent 58%),
    linear-gradient(150deg, var(--accent-deep) 0%, #16294a 60%, #101d35 100%);
}
.rewind::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(255,255,255,0.5) 50%, transparent),
    radial-gradient(1.5px 1.5px at 78% 16%, rgba(255,255,255,0.4) 50%, transparent),
    radial-gradient(1.5px 1.5px at 64% 72%, rgba(255,255,255,0.35) 50%, transparent),
    radial-gradient(2px 2px at 32% 84%, rgba(255,255,255,0.30) 50%, transparent);
  pointer-events: none;
}
.rewind .wrap { position: relative; z-index: 1; }
.rewind .kicker {
  color: var(--sky-soft);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  padding: 7px 18px; border-radius: 999px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.rewind .headline { color: #fff; }

/* Head: kicker + title + intro */
.rewind-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(48px, 7vw, 88px);
}
.rewind-head .headline { margin-top: 14px; }
.rewind-intro {
  margin-top: 22px;
  color: rgba(255,255,255,0.78);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  line-height: 1.75;
}

/* Hero stat — the big breathing number */
.rewind-hero { text-align: center; margin-bottom: clamp(48px, 7vw, 88px); }
.rh-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(6.5rem, 16vw, 13rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  background: linear-gradient(180deg, #ffffff 0%, var(--sky-soft) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 40px rgba(126,168,222,0.32));
}
.rh-num small {
  font-size: 0.30em;
  margin-left: 0.12em;
  vertical-align: 0.7em;
  letter-spacing: 0;
  font-weight: 700;
  -webkit-text-fill-color: rgba(255,255,255,0.7);
}
.rh-label {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.95rem, 1.3vw, 1.08rem);
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.78);
}

/* Secondary stats — 3 cells, no boxes, vertical dividers */
.rewind-stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: clamp(24px, 4vw, 64px);
  text-align: center;
  max-width: 920px;
  margin: 0 auto clamp(56px, 8vw, 96px);
  padding: 0 clamp(8px, 1.5vw, 24px);
}
.rewind-stats-row > div { position: relative; }
.rewind-stats-row > div + div::before {
  content: "";
  position: absolute;
  left: calc(clamp(24px, 4vw, 64px) * -0.5);
  top: 14%; bottom: 14%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.22), transparent);
}
.rewind-stats-row b {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1; letter-spacing: -0.028em;
  color: #fff;
}
.rewind-stats-row > div > span {
  display: block;
  margin-top: 12px;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.62);
  font-weight: 600;
  letter-spacing: 0.02em;
}
/* number counters live inside <b>; keep them inline at the big size */
.rewind-stats-row b span { font: inherit; color: inherit; }

/* DNA inline metadata strip — thin lines + dot separators, no chips */
.rewind-dna {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 auto clamp(48px, 7vw, 80px);
  max-width: 760px;
  padding: 0 16px;
}
.rewind-dna::before,
.rewind-dna::after {
  content: "";
  flex: 1;
  height: 1px;
  max-width: 100px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22));
}
.rewind-dna::after {
  background: linear-gradient(90deg, rgba(255,255,255,0.22), transparent);
}
.dna-inline {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.86rem, 1.15vw, 1rem);
  letter-spacing: 0.04em;
}
.dna-inline > span { white-space: nowrap; }
.dna-inline .dna-sep {
  color: rgba(255,255,255,0.32);
  font-weight: 400;
}
.di-green { color: #6fd6a3; }
.di-blue  { color: #8db6ef; }
.di-pink  { color: #f29ec0; }
.di-amber { color: #f2c879; }

/* Phones row — staggered story slides */
.rewind-phones-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(10px, 1.5vw, 22px);
  margin-top: clamp(32px, 5vw, 56px);
  flex-wrap: wrap;
}
.rewind-phones-row .phone {
  width: clamp(132px, 13vw, 192px);
  filter: none;
}
.rewind-phones-row .phone:nth-child(odd) { transform: translateY(-8px); }

/* Index teaser — same language, less content */
.rewind.teaser .rewind-head { margin-bottom: clamp(40px, 5vw, 60px); }
.rewind.teaser .rewind-hero { margin-bottom: clamp(32px, 5vw, 56px); }
.rewind.teaser .rh-num { font-size: clamp(5.2rem, 13vw, 10.5rem); }
.rewind.teaser .rewind-phones-row .phone { width: clamp(150px, 15vw, 210px); }
.rewind-cta {
  text-align: center;
  margin-top: clamp(36px, 5vw, 56px);
}
.rewind-cta a {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 700;
  color: var(--sky-soft); text-decoration: none;
  font-size: 1rem;
  transition: gap .25s var(--ease), color .2s var(--ease);
}
.rewind-cta a:hover { gap: 11px; color: #fff; }

/* ── Feature page: alternating blocks ─────────────── */
.feature-block { padding: clamp(56px, 8vw, 104px) 0; }
.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(44px, 7vw, 104px);
  align-items: center;
}
.feature-block.flip .feature-copy { order: 2; }
.feature-eyebrow {
  font-family: var(--font-display);
  font-weight: 700; font-size: 0.86rem;
  letter-spacing: 0.08em; color: var(--accent);
  margin-bottom: 12px;
}
.feature-copy h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  line-height: 1.18; letter-spacing: -0.015em;
  margin-bottom: 16px;
}
.feature-copy > p {
  color: var(--subtle);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.75; max-width: 44ch;
}
.feature-list {
  list-style: none; margin-top: 22px;
  display: flex; flex-direction: column; gap: 12px;
}
.feature-list li {
  display: flex; align-items: flex-start; gap: 11px;
  font-size: 0.98rem; color: var(--ink-soft); font-weight: 500;
}
.feature-list svg {
  flex-shrink: 0; width: 21px; height: 21px;
  color: var(--accent); margin-top: 1px;
}

/* phone shot row used inside feature blocks & galleries */
.shot-row {
  display: flex; justify-content: center; align-items: flex-end;
  gap: clamp(10px, 1.6vw, 20px);
}
.shot-row .phone {
  width: clamp(150px, 17vw, 215px);
  filter: none;
}
.shot-row.lift-mid .phone:nth-child(2) { margin-bottom: 26px; }

/* 3 phones inside a 2-col feature-grid column — shrink so they don't bleed into the copy column */
.feature-block .shot-row:has(.phone:nth-child(3)) { gap: clamp(8px, 1.2vw, 16px); }
.feature-block .shot-row:has(.phone:nth-child(3)) .phone {
  width: clamp(120px, 13.5vw, 168px);
}
.feature-block.alt { background: var(--bg-alt); }
.feature-block.alt .phone { filter: none; }

/* simple even gallery (3-up) */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.4vw, 30px);
  justify-items: center;
}
.gallery .phone {
  width: 100%; max-width: 240px;
  filter: none;
}

/* DNA badge icon */
.dna svg { width: 14px; height: 14px; flex-shrink: 0; }

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .feature-block.flip .feature-copy { order: 0; }
  .feature-copy > p, .feature-list { margin-left: auto; margin-right: auto; }
  .feature-list li { text-align: left; }
}
@media (max-width: 720px) {
  .rewind-stats-row { gap: 14px; }
  .rewind-stats-row > div + div::before { display: none; }
  .rewind-stats-row b { font-size: clamp(1.6rem, 7vw, 2.4rem); }
  .rewind-stats-row span { font-size: 0.78rem; margin-top: 8px; }
  .rewind-dna::before, .rewind-dna::after { max-width: 40px; }
  .rewind { padding: 68px 0; }
  .rewind-head { margin-bottom: 38px; }
  .rewind-intro { line-height: 1.7; }
  .rewind-dna { padding: 16px 14px; }
  .dna-inline { gap: 7px; }
  .rewind-phones-row {
    flex-wrap: nowrap;
    gap: 7px;
  }
  .rewind-phones-row .phone,
  .rewind.teaser .rewind-phones-row .phone {
    width: min(29vw, 118px);
  }
  .feature-block { padding: 58px 0; }
  .feature-grid { gap: 22px; }
  .feature-copy h3 { font-size: 1.65rem; }
  .feature-copy > p { font-size: 1rem; line-height: 1.7; }
  .feature-list { gap: 10px; margin-top: 18px; }
  .feature-block .shot-row {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 12px;
    margin: 0 -18px;
    padding: 10px 18px 26px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .feature-block .shot-row::-webkit-scrollbar { display: none; }
  .feature-block .shot-row .phone,
  .feature-block .shot-row:has(.phone:nth-child(3)) .phone {
    flex: 0 0 auto;
    width: min(57vw, 210px);
    scroll-snap-align: center;
  }
  .shot-row.lift-mid .phone:nth-child(2) { margin-bottom: 0; }
}
@media (max-width: 600px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .pro-card .shot-row {
    flex-wrap: nowrap;
    gap: 8px;
  }
  .pro-card .shot-row .phone {
    width: min(39vw, 150px);
  }
}
@media (max-width: 480px) {
  .rh-num { font-size: clamp(5rem, 22vw, 7.5rem); }
  .rewind-stats-row { grid-template-columns: 1fr; gap: 26px; padding: 0; }
}

/* ============================================================
   TPASS Pro — premium features (auto-detect · route planner)
   ============================================================ */

/* Gradient "Pro" pill — used on section intros */
.pro-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 17px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 0.9rem; letter-spacing: 0.03em;
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--sky) 100%);
  box-shadow: 0 8px 22px var(--accent-glow);
  margin-bottom: 16px;
}
.pro-badge svg { width: 15px; height: 15px; }

/* Inline "PRO" tag next to a feature eyebrow */
.pro-pill {
  display: inline-block; margin-left: 9px;
  padding: 2px 9px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 0.7rem; letter-spacing: 0.04em;
  color: #fff; vertical-align: middle;
  background: linear-gradient(135deg, var(--accent) 0%, var(--sky) 100%);
}

/* Homepage Pro teaser — two premium cards */
.pro-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 2.6vw, 28px);
}
.pro-card {
  position: relative;
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, #fff 0%, var(--sky-wash) 100%);
  padding: clamp(26px, 3.2vw, 40px);
  box-shadow: 0 14px 40px rgba(28,40,70,0.07);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.pro-card:hover { transform: translateY(-4px); box-shadow: 0 26px 54px rgba(28,40,70,0.12); }
.pro-card .pro-eyebrow {
  font-family: var(--font-display); font-weight: 700;
  font-size: 0.86rem; letter-spacing: 0.06em;
  color: var(--accent); margin-bottom: 12px;
}
.pro-card h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  line-height: 1.22; letter-spacing: -0.015em;
  margin-bottom: 12px;
}
.pro-card > p {
  color: var(--subtle);
  font-size: clamp(0.98rem, 1.3vw, 1.06rem);
  line-height: 1.72;
}
.pro-card .shot-row { margin-top: clamp(22px, 3vw, 32px); }
.pro-card .shot-row .phone { width: clamp(130px, 15vw, 176px); }

@media (max-width: 900px) {
  .pro-cards { grid-template-columns: 1fr; }
}

/* Feature-page Pro divider band */
.pro-divider {
  padding: clamp(56px, 8vw, 96px) 0 clamp(8px, 2vw, 20px);
  text-align: center;
}
.pro-divider .headline { margin-top: 4px; }
.pro-divider .lede { max-width: 50ch; margin: 16px auto 0; }

/* ── Commute Rewind — harmonise heading & tone down the full section ──
   (scoped to :not(.teaser) so the homepage teaser keeps its own look) */
.rewind .feature-eyebrow { color: var(--sky-soft); }
.rewind-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: #fff;
}
.rewind:not(.teaser) { padding: clamp(56px, 8vw, 108px) 0; }
.rewind:not(.teaser) .rewind-head { margin-bottom: clamp(36px, 5vw, 56px); }
.rewind:not(.teaser) .rewind-intro { margin-top: 16px; }
.rewind:not(.teaser) .rewind-hero { margin-bottom: clamp(30px, 5vw, 52px); }
.rewind:not(.teaser) .rh-num { font-size: clamp(4.6rem, 11vw, 8.4rem); }
.rewind:not(.teaser) .rewind-stats-row { margin-bottom: clamp(38px, 6vw, 64px); }
.rewind:not(.teaser) .rewind-dna { margin-bottom: clamp(34px, 5vw, 56px); }
