/* Colours follow apps/mobile/src/lib/theme.ts and the login screen. */
:root {
  --navy: #0A1430;
  --navy-2: #0F1D45;
  --accent: #3B82F6;
  --indigo: #6366F1;
  --hero-sub: #A9B8D6;
  --bg: #F4F7FB;
  --card: #FFFFFF;
  --text: #0F1B2D;
  --sub: #6B7A90;
  --border: #E3E9F2;
  --primary: #2563EB;
  --soft: #E8EFFD;
  --radius: 16px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1220;
    --card: #131C2E;
    --text: #E8EEF8;
    --sub: #8A9AB3;
    --border: #1E2A42;
    --primary: #3B82F6;
    --soft: #182544;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--primary); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Header (fixed over the panels) */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; background: rgba(10,20,48,0.92); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(255,255,255,0.08); }
.preview-bar { background: #FBBF24; color: #1F1300; text-align: center; font-size: 0.85rem; font-weight: 500; line-height: 1.35; padding: 7px 16px; }
.preview-bar strong { font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; margin-right: 2px; }
.preview-note { margin: 22px 0 0; max-width: 480px; padding: 12px 16px; border-radius: 14px; background: rgba(251,191,36,0.12); border: 1px solid rgba(251,191,36,0.45); color: #FDE68A; font-size: 0.92rem; }
.preview-note strong { color: #FBBF24; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.logo { width: 34px; height: 34px; border-radius: 11px; background: var(--accent); display: grid; place-items: center; }
.logo svg { width: 20px; height: 20px; }
.site-header nav a { color: var(--hero-sub); text-decoration: none; margin-left: 24px; font-size: 0.95rem; font-weight: 500; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: #fff; }

/* Hero */

.blob { position: absolute; border-radius: 50%; filter: blur(8px); pointer-events: none; }
.blob-a { width: 520px; height: 520px; top: -220px; right: -160px; background: var(--accent); opacity: 0.28; }
.blob-b { width: 420px; height: 420px; bottom: -220px; left: -180px; background: var(--indigo); opacity: 0.22; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); color: #C7D5F0; font-size: 0.85rem; font-weight: 600; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.05; letter-spacing: -0.035em; font-weight: 800; margin: 20px 0 16px; }
.hero h1 span { background: linear-gradient(90deg, #93C5FD, #A5B4FC); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.15rem; color: var(--hero-sub); max-width: 32em; margin: 0 0 28px; }
.stores { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.stores img { display: block; }
.badge-apple { height: 44px; width: auto; }
.badge-google { height: 64px; width: auto; margin: -10px -7px; }
.soon { color: var(--hero-sub); font-size: 0.9rem; margin-left: 6px; }
.trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; color: var(--hero-sub); font-size: 0.9rem; }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 16px; height: 16px; color: #93C5FD; }

/* Phone mockup (light app theme, like HomeScreen) */
.device { position: relative; justify-self: center; }
.phone { width: 300px; border-radius: 44px; padding: 12px; background: #1B2440; box-shadow: 0 40px 80px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(255,255,255,0.08); }
.screen { border-radius: 34px; background: #F4F7FB; color: #0F1B2D; padding: 18px 16px 22px; min-height: 560px; position: relative; overflow: hidden; }
.statusbar { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; padding: 0 8px 14px; }
.notch { position: absolute; top: 10px; left: 50%; width: 92px; height: 24px; margin-left: -46px; background: #1B2440; border-radius: 14px; }
.hello { font-size: 22px; font-weight: 700; margin: 4px 4px 12px; }
.hello em { font-style: normal; color: #6B7A90; font-weight: 500; }
.m-card { background: #fff; border: 1px solid #E3E9F2; border-radius: 16px; padding: 14px; margin-bottom: 12px; }
.m-row { display: flex; align-items: baseline; justify-content: space-between; }
.m-big { font-size: 20px; font-weight: 700; }
.m-sub { font-size: 12px; color: #6B7A90; }
.m-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: #E3E9F2; margin-top: 10px; }
.m-title { font-size: 12px; font-weight: 700; color: #6B7A90; text-transform: uppercase; letter-spacing: 0.06em; margin: 16px 4px 8px; }
.cat { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 14px; }
.cat + .cat { border-top: 1px solid #EEF2F7; }
.cat i { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-style: normal; }
.cat i b { width: 10px; height: 10px; border-radius: 50%; }
.cat .n { flex: 1; font-weight: 600; }
.cat .p { width: 54px; height: 6px; border-radius: 3px; background: #E3E9F2; overflow: hidden; }
.cat .p b { display: block; height: 100%; }
.cat .a { width: 58px; text-align: right; font-weight: 600; }
.fab { position: absolute; right: 16px; bottom: 18px; width: 48px; height: 48px; border-radius: 50%; background: #2563EB; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(37,99,235,0.45); }
.fab svg { width: 22px; height: 22px; }
.bubble { position: absolute; left: -96px; bottom: 96px; width: 230px; background: #fff; color: #0F1B2D; border-radius: 18px; padding: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.35); font-size: 13px; }
.bubble .q { background: #2563EB; color: #fff; border-radius: 14px 14px 4px 14px; padding: 8px 10px; margin-left: 28px; }
.bubble .r { background: #E8EFFD; border-radius: 14px 14px 14px 4px; padding: 8px 10px; margin-top: 8px; margin-right: 18px; }
.bubble .label { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 11px; color: #6B7A90; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.bubble .label svg { width: 14px; height: 14px; color: #2563EB; }


/* Stacked full-screen panels: each one slides up over the previous one (script.js). */
.panel { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 140px 0 72px; overflow: hidden; background: var(--bg); }
.panel > .wrap { width: 100%; position: relative; }
.js .panel { position: sticky; top: 0; transform-origin: 50% 30%; transform: scale(calc(1 - var(--cover, 0) * 0.06)); border-radius: calc(var(--cover, 0) * 28px); will-change: transform; }
.js .panel::after { content: ""; position: absolute; inset: 0; background: #000; opacity: calc(var(--cover, 0) * 0.45); pointer-events: none; z-index: 5; }
.js .panel ~ .panel { border-top-left-radius: 28px; border-top-right-radius: 28px; box-shadow: 0 -24px 48px rgba(5,10,30,0.18); }
.anchor { display: block; height: 0; }
.panel.alt { background: var(--card); }
.panel.dark, .panel.hero { background: var(--navy); color: #fff; }
.panel.dark .kicker { color: #93C5FD; }
.panel.dark .section-lead, .panel.dark .feature p { color: var(--hero-sub); }
.panel.dark .feature { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.1); }
.panel.dark .feature .ic { background: rgba(59,130,246,0.2); color: #93C5FD; }
.panel.dark a { color: #93C5FD; }

/* Reveal on entry */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; }

/* Sections */
.kicker { color: var(--primary); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); letter-spacing: -0.03em; line-height: 1.1; margin: 8px 0 12px; }
.section-lead { color: var(--sub); font-size: 1.08rem; max-width: 36em; margin: 0 0 36px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.panel.alt .feature { background: var(--bg); }
.feature .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--soft); color: var(--primary); display: grid; place-items: center; margin-bottom: 14px; }
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { margin: 0 0 6px; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--sub); font-size: 0.95rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); font-size: 0.9rem; font-weight: 600; }
.chip b { width: 10px; height: 10px; border-radius: 50%; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; margin-bottom: 14px; }
.steps h3 { margin: 0 0 6px; font-size: 1.1rem; }
.steps p { margin: 0; color: var(--sub); font-size: 0.95rem; }


/* Closing panel */
.cta { text-align: center; }
.cta .stores { justify-content: center; }
.cta .section-lead { margin: 0 auto 28px; }
.site-footer { margin-top: 72px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); color: var(--hero-sub); font-size: 0.9rem; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-footer a { color: var(--hero-sub) !important; text-decoration: none; margin-right: 20px; }
.site-footer a:hover { color: #fff !important; }

/* Progress dots */
.dots { position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; gap: 12px; }
.dots a { width: 10px; height: 10px; border-radius: 50%; background: rgba(120,140,180,0.45); transition: transform .2s, background .2s; }
.dots a.on { background: var(--accent); transform: scale(1.35); }
.dots a:hover::after { content: attr(aria-label); position: absolute; right: 22px; margin-top: -6px; white-space: nowrap; background: var(--navy); color: #fff; font-size: 12px; padding: 3px 8px; border-radius: 6px; }

@media (max-width: 880px) {
  .hero .wrap, .grid, .steps { grid-template-columns: 1fr; }
  .bubble { left: auto; right: -12px; bottom: -28px; }
  .device { margin: 16px 0 24px; }
  .dots { display: none; }
  .site-header nav a.wide { display: none; }
  .preview-bar .more { display: none; }
}
@media (max-width: 420px) {
  .site-header nav a { margin-left: 16px; }
  .phone { width: 280px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .panel { transform: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
