/* LaneBuddy website. Apple's product-page grammar: system type set tight and
   large, a thin translucent nav, wide calm sections that alternate light and
   dark, pill buttons, and motion that only ever serves the content. */

:root {
  --bg: #fbfbfd;
  --bg-alt: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --line: #d2d2d7;
  --blue: #0071e3;
  --blue-ink: #0066cc;
  --dark: #000;
  --dark-2: #161617;
  --dark-ink: #f5f5f7;
  --dark-ink-2: #a1a1a6;
  --lane: #2f5fd0;
  --glow: #5ac8fa;
  --stop: #ff453a;
  --ok: #30d158;
  --grad: linear-gradient(90deg, #2f5fd0 0%, #5ac8fa 50%, #30d158 100%);
  --grad-max: linear-gradient(90deg, #bf5af2 0%, #ff375f 50%, #ff9f0a 100%);
  --radius: 28px;
  --wide: 1200px;
  --text: 980px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.47 var(--font);
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: 48px;
  background: rgba(22, 22, 23, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.nav-in {
  max-width: var(--text); height: 100%; margin: 0 auto; padding: 0 22px;
  display: flex; align-items: center; gap: 28px;
  font-size: 12px; letter-spacing: -0.01em;
}
.nav a { color: rgba(245, 245, 247, 0.8); }
.nav a:hover { color: #fff; text-decoration: none; }
.nav .brand { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; font-size: 14px; margin-right: auto; }
.nav .brand img { width: 20px; height: 20px; border-radius: 5px; }
.nav .pill { background: var(--blue); color: #fff; padding: 4px 12px; border-radius: 980px; }
.nav .pill:hover { background: #0077ed; }
@media (max-width: 640px) { .nav .hide-s { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 22px; border-radius: 980px;
  font: 600 17px/1 var(--font); letter-spacing: -0.02em;
  border: 0; cursor: pointer; transition: background 0.2s, transform 0.2s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: #0077ed; }
.btn-ghost { background: transparent; color: var(--blue-ink); padding: 0 8px; }
.btn-ghost::after { content: "›"; font-size: 1.2em; margin-left: 2px; }
.dark .btn-ghost, .hero .btn-ghost { color: #2997ff; }

/* Sections */
section { position: relative; }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: var(--text); margin: 0 auto; padding: 0 22px; }
.band { padding: 120px 0; }
.band.alt { background: var(--bg-alt); }
.dark { background: var(--dark); color: var(--dark-ink); }
.dark.alt { background: var(--dark-2); }
.eyebrow { font-size: 21px; font-weight: 600; color: var(--ink-2); margin: 0 0 8px; letter-spacing: 0.004em; }
.dark .eyebrow { color: var(--dark-ink-2); }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.015em; }
h2.big { font-size: clamp(40px, 6vw, 80px); line-height: 1.05; }
h2.mid { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.07; }
h3 { font-size: 24px; line-height: 1.17; }
.lead { font-size: clamp(19px, 2vw, 24px); line-height: 1.38; color: var(--ink-2); max-width: 760px; margin: 20px 0 0; letter-spacing: 0.009em; }
.dark .lead { color: var(--dark-ink-2); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-max { background: var(--grad-max); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Hero */
.hero {
  position: relative; min-height: min(100svh, 980px);
  display: grid; place-items: center; text-align: center;
  background: #000; color: var(--dark-ink); overflow: hidden;
  padding: 120px 0 80px;
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-in { position: relative; z-index: 2; padding: 0 22px; }
/* A soft dark pool behind the words, so the packets never run through the text. */
.hero-in::before { content: ""; position: absolute; z-index: -1; inset: -12% -18%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.7) 55%, transparent); pointer-events: none; }
.hero .app-icon { width: 108px; height: 108px; margin: 0 auto 28px; border-radius: 24px; box-shadow: 0 20px 60px rgba(47, 95, 208, 0.55); }
.hero h1 { font-size: clamp(56px, 10vw, 128px); line-height: 1; letter-spacing: -0.04em; }
.hero .tag { font-size: clamp(24px, 3.4vw, 40px); font-weight: 600; margin-top: 14px; letter-spacing: -0.01em; }
.hero .sub { font-size: 19px; color: var(--dark-ink-2); max-width: 600px; margin: 18px auto 0; }
.hero .ctas { display: flex; gap: 18px; justify-content: center; align-items: center; margin-top: 34px; flex-wrap: wrap; }
.hero .meta { margin-top: 18px; font-size: 14px; color: var(--dark-ink-2); }
.counter { display: inline-flex; gap: 22px; margin-top: 48px; padding: 14px 24px; border-radius: 980px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); backdrop-filter: blur(12px); font-size: 14px; color: var(--dark-ink-2); font-variant-numeric: tabular-nums; }
.counter b { color: #fff; font-weight: 600; }
.counter .stop b { color: var(--stop); }
.hero-in > * { animation: rise 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-in > *:nth-child(2) { animation-delay: 0.12s; }
.hero-in > *:nth-child(3) { animation-delay: 0.24s; }
.hero-in > *:nth-child(4) { animation-delay: 0.36s; }
.hero-in > *:nth-child(5) { animation-delay: 0.48s; }
.hero-in > *:nth-child(6) { animation-delay: 0.6s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.scroll-hint { position: absolute; bottom: 24px; left: 50%; z-index: 2; width: 22px; height: 36px; margin-left: -11px; border: 2px solid rgba(255, 255, 255, 0.35); border-radius: 12px; }
.scroll-hint::after { content: ""; position: absolute; top: 6px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* Product shot */
.shot { margin: 64px auto 0; max-width: 1100px; perspective: 1600px; }
.window {
  border-radius: 14px; overflow: hidden; background: #1c1c1e;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 40px 100px rgba(0, 0, 0, 0.35);
}
/* Motion tilts the window from its bottom edge; see motion-fx.js. */
.window { transform-origin: 50% 100%; will-change: transform; }
/* While Motion runs, it brings the shot in itself, so the plain reveal steps aside. */
.motion .shot.reveal { opacity: 1; transform: none; }
.window .bar { height: 30px; display: flex; gap: 8px; align-items: center; padding: 0 12px; background: #2c2c2e; }
.window .bar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.window .bar i:nth-child(2) { background: #febc2e; }
.window .bar i:nth-child(3) { background: #28c840; }

/* Bento tiles */
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-top: 64px; }
.tile { grid-column: span 2; border-radius: var(--radius); background: #fff; padding: 36px; min-height: 300px; display: flex; flex-direction: column; overflow: hidden; position: relative; }
.alt .tile { background: #fff; }
.dark .tile { background: #1c1c1e; }
.tile.w3 { grid-column: span 3; }
.tile.w4 { grid-column: span 4; }
.tile.w6 { grid-column: span 6; }
.tile .k { font-size: 14px; font-weight: 600; color: var(--ink-3); }
.tile h3 { margin-top: 8px; }
.tile p { color: var(--ink-2); margin: 10px 0 0; }
.dark .tile p { color: var(--dark-ink-2); }
.tile .num { font-size: clamp(56px, 7vw, 96px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; margin-top: auto; }
@media (max-width: 900px) { .tile, .tile.w3, .tile.w4 { grid-column: span 6; } }

/* Lists strip */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip { padding: 6px 14px; border-radius: 980px; background: var(--bg-alt); font-size: 14px; color: var(--ink); }
.dark .chip { background: #2c2c2e; color: var(--dark-ink); }

/* 101 benefits */
.benefit-tools { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 40px; }
.benefit-tools button { font: 500 14px/1 var(--font); padding: 10px 16px; border-radius: 980px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.benefit-tools button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.benefits { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.benefits li { background: #fff; border-radius: 18px; padding: 20px 20px 22px; display: grid; grid-template-columns: 44px 1fr; gap: 4px 12px; align-items: start; opacity: 0; transform: translateY(16px); transition: opacity 0.5s, transform 0.5s; }
.benefits li.in { opacity: 1; transform: none; }
.benefits li[hidden] { display: none; }
.benefits .n { grid-row: span 2; font-size: 13px; font-weight: 700; color: var(--lane); font-variant-numeric: tabular-nums; padding-top: 3px; }
.benefits b { font-weight: 600; font-size: 16px; line-height: 1.3; }
.benefits span:not(.n) { grid-column: 2; font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.more { display: flex; justify-content: center; margin-top: 36px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px; }
.plan { background: #1c1c1e; border-radius: var(--radius); padding: 40px 32px; display: flex; flex-direction: column; border: 1px solid #2c2c2e; }
.plan.hot { border-color: #0a84ff; box-shadow: 0 0 0 1px #0a84ff, 0 30px 80px rgba(10, 132, 255, 0.2); }
.plan.max { border-color: #bf5af2; }
.plan h3 { font-size: 32px; }
.plan .price { font-size: 40px; font-weight: 600; margin-top: 18px; letter-spacing: -0.02em; }
.plan .price small { font-size: 17px; color: var(--dark-ink-2); font-weight: 400; }
.plan .alt-price { color: var(--dark-ink-2); font-size: 15px; margin-top: 4px; }
.plan ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; font-size: 15px; color: var(--dark-ink); }
.plan li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.plan li::before { content: "✓"; color: var(--ok); font-weight: 700; }
.plan li.soon::before { content: "◔"; color: #ff9f0a; }
.plan .badge { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 980px; background: #0a84ff; color: #fff; margin-bottom: 14px; }
.plan.max .badge { background: linear-gradient(90deg, #bf5af2, #ff375f); }
.plan .fine { margin-top: auto; padding-top: 28px; font-size: 13px; color: var(--dark-ink-2); }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* Preorder */
.notify { max-width: 640px; margin: 40px auto 0; }
.notify form { display: flex; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 980px; padding: 6px; }
.notify input[type="email"] { flex: 1; min-width: 0; border: 0; background: transparent; font: 17px var(--font); padding: 0 18px; color: var(--ink); outline: none; }
.notify .consent { display: flex; gap: 10px; align-items: flex-start; justify-content: center; text-align: left; margin-top: 16px; font-size: 13px; color: var(--ink-2); }
.notify .consent input { margin-top: 3px; }
.notify .status { min-height: 24px; margin-top: 14px; font-size: 15px; }
.notify .status.ok { color: #248a3d; }
.notify .status.err { color: #d70015; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 520px) {
  .notify form { flex-direction: column; border-radius: 20px; }
  .notify input[type="email"] { min-height: 44px; }
}

/* Store strip */
.stores { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.store { display: flex; align-items: center; gap: 12px; padding: 12px 22px; border-radius: 14px; background: #000; color: #fff; min-width: 220px; }
.store:hover { text-decoration: none; }
.store .s1 { font-size: 11px; opacity: 0.8; display: block; }
.store .s2 { font-size: 19px; font-weight: 600; display: block; letter-spacing: -0.01em; }
.store.later { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.store svg { width: 26px; height: 26px; flex: none; }

/* Footer */
footer { background: var(--bg-alt); color: var(--ink-2); font-size: 12px; padding: 24px 0 48px; }
footer .narrow { display: grid; gap: 10px; }
footer .links { display: flex; flex-wrap: wrap; gap: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
footer a { color: var(--ink-2); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* Prose pages */
.prose { max-width: 720px; margin: 0 auto; padding: 96px 22px; }
.prose h1 { font-size: 48px; }
.prose h2 { font-size: 24px; margin-top: 40px; }
.prose p, .prose li { color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .benefits li { opacity: 1; transform: none; transition: none; }
  .hero-in > *, .scroll-hint::after { animation: none; }
  .window { transform: none; }
}
