/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #ffffff;
  --bg-secondary: #f5f5f7;
  --bg-card: #ffffff;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --border: rgba(0,0,0,.08);
  --shadow: 0 2px 16px rgba(0,0,0,.07);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.13);
  --radius: 20px;
  --nav-h: 52px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000;
    --bg-secondary: #1c1c1e;
    --bg-card: #2c2c2e;
    --text: #f5f5f7;
    --text-secondary: #86868b;
    --border: rgba(255,255,255,.08);
    --shadow: 0 2px 16px rgba(0,0,0,.4);
    --shadow-lg: 0 12px 48px rgba(0,0,0,.6);
  }
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
               "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-weight: 700; letter-spacing: -.025em; line-height: 1.1; }

.eyebrow {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: .6rem;
}

/* ─── Nav ──────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(255,255,255,.72);
  border-bottom: 1px solid var(--border);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

@media (prefers-color-scheme: dark) {
  nav { background: rgba(0,0,0,.72); }
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
}

.nav-brand img { width: 28px; height: 28px; border-radius: 7px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: .875rem;
  transition: color .15s;
}

.nav-links a:hover { color: var(--text); }

.nav-lang { display: flex; align-items: center; gap: 4px; }

.lang-btn {
  font-size: .8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 3px 8px;
  border-radius: 6px;
  transition: background .15s, color .15s;
}

.lang-btn:hover, .lang-btn.active {
  color: var(--text);
  background: var(--bg-secondary);
}

/* ─── Hero (split layout) ───────────────────────────────────── */
.hero {
  min-height: 100svh;
  padding: calc(var(--nav-h) + 48px) 48px 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 70% 40%, rgba(0,113,227,.07) 0%, transparent 65%);
  pointer-events: none;
}

@media (prefers-color-scheme: dark) {
  .hero::before {
    background: radial-gradient(ellipse 70% 70% at 70% 40%, rgba(0,113,227,.14) 0%, transparent 65%);
  }
}

.hero-text {
  flex: 0 1 480px;
  text-align: left;
  position: relative;
  z-index: 2;
}

.hero-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-lg);
}

.hero-text h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  margin-bottom: 18px;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 40ch;
  margin-bottom: 36px;
  line-height: 1.55;
}

.hero-badge { display: inline-block; transition: opacity .2s; }
.hero-badge:hover { opacity: .75; }
.hero-badge img { height: 44px; width: auto; }

/* ─── iPhone 3D Mockup ──────────────────────────────────────── */
.hero-device-wrap {
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
}

.iphone-3d {
  transform: perspective(1400px) rotateY(-18deg) rotateX(4deg) rotate(-2deg);
  filter: drop-shadow(0 48px 64px rgba(0,0,0,.28));
  animation: phone-float 6s ease-in-out infinite;
  will-change: transform;
}

@keyframes phone-float {
  0%, 100% {
    transform: perspective(1400px) rotateY(-18deg) rotateX(4deg) rotate(-2deg) translateY(0);
  }
  50% {
    transform: perspective(1400px) rotateY(-18deg) rotateX(4deg) rotate(-2deg) translateY(-14px);
  }
}

.iphone-mockup {
  width: 256px;
  height: 536px;
  background: #1c1c1e;
  border-radius: 50px;
  padding: 10px;
  position: relative;
  box-shadow:
    inset 0 0 0 1.5px rgba(255,255,255,.18),
    inset 0 0 0 3px rgba(0,0,0,.6);
}

/* volume buttons */
.iphone-mockup::before {
  content: '';
  position: absolute;
  left: -3px; top: 88px;
  width: 3px; height: 26px;
  background: #3a3a3c;
  border-radius: 2px 0 0 2px;
  box-shadow: 0 40px 0 #3a3a3c;
}

/* power button */
.iphone-mockup::after {
  content: '';
  position: absolute;
  right: -3px; top: 110px;
  width: 3px; height: 58px;
  background: #3a3a3c;
  border-radius: 0 2px 2px 0;
}

.iphone-screen {
  width: 100%;
  height: 100%;
  border-radius: 42px;
  background: #000;
  overflow: hidden;
  position: relative;
}

/* Dynamic Island */
.dynamic-island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 28px;
  background: #000;
  border-radius: 20px;
  z-index: 30;
}

/* Loading overlay */
.screen-loading {
  position: absolute;
  inset: 0;
  background: #1c1c1e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 20;
  transition: opacity .7s ease;
}

.screen-loading.hidden { opacity: 0; pointer-events: none; }

.screen-loading-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  animation: logo-pulse 1.4s ease-in-out infinite;
}

@keyframes logo-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(.92); opacity: .7; }
}

.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255,255,255,.15);
  border-top-color: rgba(255,255,255,.8);
  border-radius: 50%;
  animation: spin .75s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* App screen content */
.screen-content {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .9s ease .3s;
}

.screen-content.visible { opacity: 1; }

.screen-map-bg {
  width: 100%;
  height: 62%;
  background: linear-gradient(160deg, #1e3a28 0%, #0e2518 50%, #182e20 100%);
  position: relative;
  overflow: hidden;
}

/* subtle grid */
.screen-map-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 20px, rgba(255,255,255,.03) 20px, rgba(255,255,255,.03) 21px),
    repeating-linear-gradient(90deg, transparent, transparent 20px, rgba(255,255,255,.03) 20px, rgba(255,255,255,.03) 21px);
}

/* park ring shape */
.screen-map-bg::after {
  content: '';
  position: absolute;
  top: 20%; left: 8%;
  width: 84%; height: 55%;
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: 50% 60% 55% 50%;
}

/* paths inside ring */
.map-path-inner {
  position: absolute;
  top: 35%; left: 25%;
  width: 50%; height: 30%;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
}

.map-dot-you {
  position: absolute;
  width: 12px; height: 12px;
  background: #0071e3;
  border: 2px solid #fff;
  border-radius: 50%;
  top: 48%; left: 38%;
  z-index: 5;
  animation: you-pulse 2.4s ease-out infinite;
}

.map-dot-you::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: rgba(0,113,227,.25);
  animation: you-ring 2.4s ease-out infinite;
}

@keyframes you-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

@keyframes you-ring {
  0% { transform: scale(.3); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

.map-attr { position: absolute; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.5); }
.map-attr.a1 { background: #ff9f0a; top: 30%; left: 55%; }
.map-attr.a2 { background: #30d158; top: 55%; left: 60%; }
.map-attr.a3 { background: #bf5af2; top: 38%; left: 28%; }
.map-attr.a4 { background: #ff375f; top: 62%; left: 32%; }

/* compass */
.screen-compass {
  position: absolute;
  top: 44px; right: 10px;
  width: 24px; height: 24px;
  background: rgba(28,28,30,.85);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.screen-bottom-sheet {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--bg-card);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  padding: 10px 14px 14px;
}

.sheet-handle {
  width: 32px; height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 auto 10px;
}

.sheet-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
  margin-bottom: 7px;
}

.screen-wait-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
  font-size: 9.5px;
}

.screen-wait-row:last-child { border-bottom: none; padding-bottom: 0; }

.screen-wait-name { color: var(--text); font-weight: 500; font-size: 9.5px; }

.screen-wait-badge {
  font-size: 8.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 7px;
  color: #fff;
}

.badge-green  { background: #34c759; }
.badge-orange { background: #ff9f0a; }
.badge-red    { background: #ff3b30; }

/* wait badge number animation */
@keyframes num-tick {
  0%, 90%, 100% { opacity: 1; }
  95% { opacity: 0; }
}

.screen-wait-badge { animation: num-tick 8s ease-in-out infinite; }
.screen-wait-row:nth-child(2) .screen-wait-badge { animation-delay: 2.5s; }
.screen-wait-row:nth-child(3) .screen-wait-badge { animation-delay: 5s; }

/* ─── Section base ──────────────────────────────────────────── */
section { padding: 96px 24px; }

.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 56px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 14px;
}

.section-header p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.container { max-width: 1120px; margin: 0 auto; }

/* ─── Bento Grid ───────────────────────────────────────────── */
.bento-section { background: var(--bg-secondary); }

.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 260px 240px;
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
}

.bento-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transition: transform .2s, box-shadow .2s;
}

.bento-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.bento-label {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 4px;
  position: relative;
  z-index: 3;
}

.bento-title {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -.015em;
  position: relative;
  z-index: 3;
}

.bento-sub {
  font-size: .8125rem;
  margin-top: 4px;
  opacity: .75;
  position: relative;
  z-index: 3;
}

/* Grid placement */
.bento-wait   { grid-column: 1 / 3; grid-row: 1; }
.bento-map    { grid-column: 3 / 4; grid-row: 1 / 3; }
.bento-offline{ grid-column: 1 / 2; grid-row: 2; }
.bento-vl     { grid-column: 2 / 3; grid-row: 2; }

/* ── Wait Times card ── */
.bento-wait {
  background: linear-gradient(145deg, #111827 0%, #0a1020 100%);
  color: rgba(255,255,255,.9);
}

@media (prefers-color-scheme: dark) {
  .bento-wait { background: linear-gradient(145deg, #0d1520 0%, #080f18 100%); }
}

.bento-wait .bento-label { color: rgba(255,255,255,.48); }
.bento-wait .bento-title { color: #fff; }
.bento-wait .bento-sub   { color: rgba(255,255,255,.55); opacity: 1; }
@media (prefers-color-scheme: dark) { .bento-wait .bento-title { color: #fff; } }

/* cloud */
.cloud-wrap {
  position: absolute;
  top: 18px; left: 0; right: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 1;
}

.cloud-svg {
  width: 220px;
  opacity: .55;
  animation: cloud-drift 12s ease-in-out infinite;
}

@media (prefers-color-scheme: dark) { .cloud-svg { opacity: .2; } }

@keyframes cloud-drift {
  0%, 100% { transform: translateX(0); }
  50%       { transform: translateX(10px); }
}

/* wait badges on cloud */
.wait-badges {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2;
  pointer-events: none;
}

.wbadge {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 68px; height: 68px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  animation: badge-float 4s ease-in-out infinite;
}

@media (prefers-color-scheme: dark) { .wbadge { background: #1c1c1e; } }

.wbadge:nth-child(1) { top: 14px; left: 28px;  animation-delay: 0s; }
.wbadge:nth-child(2) { top: 10px; left: 115px; animation-delay: .8s; }
.wbadge:nth-child(3) { top: 20px; right: 40px; animation-delay: 1.6s; }
.wbadge:nth-child(4) { top: 95px; left: 65px;  animation-delay: 2.4s; }

@keyframes badge-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

.wbadge-min {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
}

.wbadge-label {
  font-size: .55rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-align: center;
  max-width: 56px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
}

.wbadge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-bottom: 3px;
}

.dot-green  { background: #34c759; }
.dot-orange { background: #ff9f0a; }
.dot-red    { background: #ff3b30; }

/* show time strip inside wait card */
.show-strip {
  position: absolute;
  bottom: 60px; left: 24px; right: 24px;
  display: flex;
  gap: 8px;
  z-index: 3;
}

.show-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 5px 10px;
  font-size: .75rem;
  font-weight: 600;
  color: #003d80;
  white-space: nowrap;
}

@media (prefers-color-scheme: dark) {
  .show-pill { background: rgba(44,44,46,.85); color: #a8d4ff; }
}

.show-dot { width: 6px; height: 6px; border-radius: 50%; background: #ff375f; }

/* ── Wait time pills ── */
.wait-pills-field {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.wait-pill {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px 5px 9px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 2px 14px rgba(0,0,0,.32);
  animation: pill-appear 5s ease-in-out infinite;
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
}

.wait-pill .pill-name { font-size: 10.5px; font-weight: 600; opacity: .88; }
.wait-pill .pill-time { font-size: 13px; font-weight: 800; margin-left: 3px; }

.wait-pill.wg { background: rgba(52,199,89,.88);  border: 1px solid rgba(120,230,150,.35); }
.wait-pill.wy { background: rgba(255,204,0,.95);  border: 1px solid rgba(255,225,80,.4);  color: rgba(0,0,0,.72); }
.wait-pill.wy .pill-name { opacity: .7; }
.wait-pill.wr { background: rgba(255,59,48,.88);  border: 1px solid rgba(255,130,110,.35); }
.wait-pill.wb { background: rgba(0,122,255,.88);  border: 1px solid rgba(90,170,255,.35); }

@keyframes pill-appear {
  0%     { opacity: 0; transform: scale(.82) translateY(8px); }
  12%    { opacity: 1; transform: scale(1) translateY(0); }
  80%    { opacity: 1; transform: scale(1) translateY(0); }
  94%    { opacity: 0; transform: scale(.9) translateY(-5px); }
  100%   { opacity: 0; }
}

/* ── Map card ── */
.bento-map {
  background: #0f2318;
  color: #c8f5e0;
}

.bento-map .bento-title { color: #c8f5e0; }
.bento-map .bento-label { color: #5ac87e; }
.bento-map .bento-sub   { color: rgba(200,245,224,.6); }

.map-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.map-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 22px, rgba(255,255,255,.04) 22px, rgba(255,255,255,.04) 23px),
    repeating-linear-gradient(90deg, transparent, transparent 22px, rgba(255,255,255,.04) 22px, rgba(255,255,255,.04) 23px);
}

.map-ring {
  position: absolute;
  top: 15%; left: 10%;
  width: 80%; height: 55%;
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: 48% 52% 45% 55%;
}

.map-you {
  position: absolute;
  width: 14px; height: 14px;
  background: #0071e3;
  border: 2.5px solid #fff;
  border-radius: 50%;
  top: 42%; left: 45%;
  z-index: 5;
  animation: you-pulse 2.5s ease-out infinite;
}

.map-you::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: rgba(0,113,227,.25);
  animation: you-ring 2.5s ease-out infinite;
}

.map-pt {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.5);
}

.map-pt.p1 { background: #ff9f0a; top: 25%; left: 60%; }
.map-pt.p2 { background: #bf5af2; top: 35%; left: 22%; }
.map-pt.p3 { background: #ff375f; top: 62%; left: 30%; }
.map-pt.p4 { background: #30d158; top: 58%; left: 65%; }
.map-pt.p5 { background: #ffd60a; top: 20%; left: 40%; }

/* route line */
.map-route {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 4;
}

/* ── Offline card ── */
.bento-offline {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  justify-content: space-between;
  flex-direction: column;
  padding: 24px;
}

.offline-icon-wrap {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-secondary);
}

.offline-icon-svg { width: 36px; height: 36px; }

.bento-offline .bento-label { color: var(--text-secondary); }
.bento-offline .bento-title { color: var(--text); font-size: 1rem; }

/* ── Virtual Line card ── */
.bento-vl {
  background: linear-gradient(145deg, #fff5e6 0%, #ffe5b8 100%);
  color: #7a4800;
  justify-content: space-between;
  flex-direction: column;
}

@media (prefers-color-scheme: dark) {
  .bento-vl { background: linear-gradient(145deg, #2d1f00 0%, #1f1500 100%); color: #ffb340; }
}

.bento-vl .bento-label { color: #ff9f0a; }
.bento-vl .bento-title { color: #7a4800; }
@media (prefers-color-scheme: dark) { .bento-vl .bento-title { color: #ffcc80; } }

.vl-badge-anim {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff9f0a, #ff6b00);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  box-shadow: 0 4px 16px rgba(255,159,10,.4);
  animation: vl-pulse 2s ease-in-out infinite;
}

@keyframes vl-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 16px rgba(255,159,10,.4); }
  50%       { transform: scale(1.08); box-shadow: 0 8px 28px rgba(255,159,10,.65); }
}

/* ─── Bento mobile ──────────────────────────────────────────── */
@media (max-width: 860px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .bento-wait   { grid-column: 1 / 3; grid-row: auto; min-height: 220px; }
  .bento-map    { grid-column: 1 / 3; grid-row: auto; min-height: 200px; }
  .bento-offline{ grid-column: 1 / 2; grid-row: auto; min-height: 160px; }
  .bento-vl     { grid-column: 2 / 3; grid-row: auto; min-height: 160px; }
}

@media (max-width: 520px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-wait, .bento-map, .bento-offline, .bento-vl { grid-column: 1; }
}

/* ─── Route + AI Section ────────────────────────────────────── */
.route-ai-section {
  background: var(--bg);
  padding: 96px 48px;
}

.route-ai-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.route-ai-text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 14px;
}

.route-ai-text p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 40ch;
}

.route-visual {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  height: 300px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}

/* animated dashed route line */
.route-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.route-svg path {
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-dasharray: 8 5;
  stroke-linecap: round;
  fill: none;
  animation: dash-move 3s linear infinite;
}

@keyframes dash-move {
  to { stroke-dashoffset: -100; }
}

.route-point {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.route-point-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 2.5px solid var(--bg-card);
  box-shadow: 0 2px 8px rgba(0,113,227,.4);
}

.route-point.start .route-point-dot { background: #34c759; box-shadow: 0 2px 8px rgba(52,199,89,.4); }
.route-point.end   .route-point-dot { background: #ff3b30; box-shadow: 0 2px 8px rgba(255,59,48,.4); }

.route-point-label {
  font-size: .7rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-card);
  padding: 2px 7px;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: var(--shadow);
}

/* AI bubbles */
.ai-bubbles {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  height: 100%;
  justify-content: center;
}

.ai-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: .875rem;
  line-height: 1.45;
  animation: bubble-in .4s ease both;
}

@keyframes bubble-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ai-bubble.user {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
  animation-delay: .2s;
}

.ai-bubble.bot {
  align-self: flex-start;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.ai-bubble.bot:nth-child(1) { animation-delay: 0s; }
.ai-bubble.bot:nth-child(3) { animation-delay: .6s; }

@media (max-width: 800px) {
  .route-ai-inner { grid-template-columns: 1fr; gap: 40px; }
  .route-ai-text p { max-width: none; }
}

/* ─── Detail Section ────────────────────────────────────────── */
.detail-section {
  background: var(--bg-secondary);
  padding: 96px 48px;
}

.detail-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}

.detail-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.detail-card-sub {
  font-size: .8125rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.stress-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stress-row {
  display: grid;
  grid-template-columns: 20px 90px 1fr 28px;
  align-items: center;
  gap: 8px;
  font-size: .8125rem;
}

.stress-emoji { font-size: .875rem; text-align: center; }

.stress-name { color: var(--text-secondary); font-weight: 500; }

.stress-bar-bg {
  height: 6px;
  background: var(--bg-secondary);
  border-radius: 4px;
  overflow: hidden;
}

.stress-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width .8s cubic-bezier(.25,.46,.45,.94);
}

.fill-low    { background: #34c759; }
.fill-medium { background: #ff9f0a; }
.fill-high   { background: #ff3b30; }

.stress-val {
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-align: right;
}

.detail-text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 14px;
}

.detail-text p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 40ch;
  margin-bottom: 10px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.detail-tag {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 20px;
}

@media (max-width: 800px) {
  .detail-inner { grid-template-columns: 1fr; gap: 40px; }
  .detail-text p { max-width: none; }
}

/* ─── Notifications Section ─────────────────────────────────── */
.notif-section {
  background: var(--bg);
  padding: 96px 48px;
}

.notif-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.notif-text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 14px;
}

.notif-text p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 40ch;
}

/* ── Floating notifications (no phone frame) ── */
.notif-float-field {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: var(--radius);
  overflow: hidden;
}

.notif-float {
  position: absolute;
  width: 290px;
  max-width: calc(100% - 16px);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 16px;
  padding: 11px 13px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.04);
  animation: notif-float-anim 7s ease-in-out infinite;
  opacity: 0;
}

@media (prefers-color-scheme: dark) {
  .notif-float {
    background: rgba(44,44,46,.9);
    border-color: rgba(255,255,255,.1);
  }
}

@keyframes notif-float-anim {
  0%     { opacity: 0; transform: scale(.92) translateY(-10px); }
  10%    { opacity: 1; transform: scale(1) translateY(0); }
  74%    { opacity: 1; transform: scale(1) translateY(0); }
  88%    { opacity: 0; transform: scale(.96) translateY(-6px); }
  100%   { opacity: 0; }
}

.notif-float .notif-app-icon { width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0; }
.notif-float .notif-body     { flex: 1; min-width: 0; }
.notif-float .notif-app-name {
  font-size: .6rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-secondary); margin-bottom: 2px;
}
.notif-float .notif-title {
  font-size: .8125rem; font-weight: 700; color: var(--text); line-height: 1.2; margin-bottom: 2px;
}
.notif-float .notif-msg {
  font-size: .75rem; color: var(--text-secondary); line-height: 1.35;
}

@media (prefers-color-scheme: dark) {
  .notif-float .notif-app-name { color: rgba(255,255,255,.45); }
  .notif-float .notif-title    { color: rgba(255,255,255,.95); }
  .notif-float .notif-msg      { color: rgba(255,255,255,.55); }
}

.nf1 { top:  4%; left:  5%; animation-delay: 0.4s; }
.nf2 { top: 29%; right: 4%; animation-delay: 2.7s; }
.nf3 { top: 56%; left:  8%; animation-delay: 5.1s; }
.nf4 { top: 74%; right: 6%; animation-delay: 1.5s; }

@media (max-width: 800px) {
  .notif-inner { grid-template-columns: 1fr; gap: 48px; }
  .notif-text p { max-width: none; }
  .notif-float-field { height: 320px; }
  .notif-float { width: 260px; }
  .nf2, .nf4 { right: auto; left: 8%; }
}

/* ─── CTA ──────────────────────────────────────────────────── */
.cta-section {
  background: var(--bg-secondary);
  text-align: center;
  padding: 96px 24px;
}

.cta-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 14px;
}

.cta-section p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

/* ─── Footer ───────────────────────────────────────────────── */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 36px 24px;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.footer-brand img { width: 24px; height: 24px; border-radius: 6px; }

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: .875rem;
  transition: color .15s;
}

.footer-links a:hover { color: var(--text); }

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: .8125rem;
  color: var(--text-secondary);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ─── Legal pages ──────────────────────────────────────────── */
.legal-page {
  padding: calc(var(--nav-h) + 80px) 24px 100px;
  max-width: 740px;
  margin: 0 auto;
}

.legal-page h1 { font-size: 2.5rem; margin-bottom: 12px; }
.legal-page .last-updated { color: var(--text-secondary); font-size: .9375rem; margin-bottom: 56px; }
.legal-page h2 { font-size: 1.375rem; margin-top: 48px; margin-bottom: 12px; }
.legal-page h3 { font-size: 1.0625rem; margin-top: 28px; margin-bottom: 8px; font-weight: 600; }
.legal-page p { color: var(--text-secondary); line-height: 1.7; margin-bottom: 12px; }
.legal-page ul { list-style: disc; padding-left: 24px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 12px; }
.legal-page ul li { margin-bottom: 4px; }
.legal-page a { color: var(--accent); text-decoration: none; }
.legal-page a:hover { text-decoration: underline; }

.legal-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .9375rem; }
.legal-table th { text-align: left; padding: 10px 14px; background: var(--bg-secondary); font-weight: 600; border-bottom: 1px solid var(--border); }
.legal-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--text-secondary); vertical-align: top; }

/* ─── Real screenshot in hero iPhone ───────────────────────── */
.screen-real {
  width: 100%;
  height: 100%;
  object-fit: fill;   /* exact fit, user accepted distortion */
  display: block;
  border-radius: 42px;
}

/* ─── Map bento: screenshot background ─────────────────────── */
.bento-map-real {
  background-size: cover;
  background-position: center center;
  position: relative;
}

/* gradient so labels stay readable */
.bento-map-real::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.15) 50%, transparent 100%);
  border-radius: inherit;
  z-index: 1;
}

.bento-map-real .bento-label,
.bento-map-real .bento-title,
.bento-map-real .bento-sub { z-index: 2; }

/* ─── Section phone bezel (planner + detail) ────────────────── */
.section-phone-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.section-phone {
  width: 230px;
  height: 483px;   /* matches 1180:2556 screenshot ratio exactly */
  background: #1c1c1e;
  border-radius: 50px;
  padding: 10px;
  position: relative;
  box-shadow:
    inset 0 0 0 1.5px rgba(255,255,255,.18),
    inset 0 0 0 3px rgba(0,0,0,.6),
    0 24px 60px rgba(0,0,0,.35);
  flex-shrink: 0;
}

.section-phone::before {
  content: '';
  position: absolute;
  left: -3px; top: 88px;
  width: 3px; height: 26px;
  background: #3a3a3c;
  border-radius: 2px 0 0 2px;
  box-shadow: 0 40px 0 #3a3a3c;
}

.section-phone::after {
  content: '';
  position: absolute;
  right: -3px; top: 110px;
  width: 3px; height: 58px;
  background: #3a3a3c;
  border-radius: 0 2px 2px 0;
}

.section-phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 42px;
  overflow: hidden;
  position: relative;
  background: #000;
}

.section-phone-di {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 96px; height: 28px;
  background: #000;
  border-radius: 20px;
  z-index: 10;
  pointer-events: none;
}

.section-phone-screen img,
.section-phone-screen video {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

/* ─── Mobile overrides ──────────────────────────────────────── */
@media (max-width: 700px) {
  .hero { padding: calc(var(--nav-h) + 40px) 24px 60px; gap: 48px; flex-direction: column; text-align: center; }
  .hero-text { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .iphone-3d { transform: perspective(1400px) rotateX(4deg); }
  .iphone-mockup { width: 220px; height: 460px; }
  .nav-links { display: none; }
  section { padding: 72px 20px; }
  .route-ai-section, .detail-section, .notif-section { padding: 72px 20px; }
  .stress-row { grid-template-columns: 18px 72px 1fr 24px; }
}
