/* Million Miles marketing site. Same tokens as the app: see src/MillionMiles/MillionMiles/Theme. */
@font-face { font-family: 'Fredoka'; font-weight: 600; font-display: swap; src: url('/fonts/Fredoka-SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Fredoka'; font-weight: 700; font-display: swap; src: url('/fonts/Fredoka-Bold.ttf') format('truetype'); }
@font-face { font-family: 'Nunito'; font-weight: 600; font-display: swap; src: url('/fonts/Nunito-SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Nunito'; font-weight: 700; font-display: swap; src: url('/fonts/Nunito-Bold.ttf') format('truetype'); }
@font-face { font-family: 'Nunito'; font-weight: 800; font-display: swap; src: url('/fonts/Nunito-ExtraBold.ttf') format('truetype'); }

:root {
  --cream: #FFF6E8; --ink: #1F1A17; --ink-raised: #2B2521; --ink-track: #3A332E;
  --accent: #D84A1B; --accent-deep: #B53A12; --amber: #F5A524; --amber-light: #FFD98A; --amber-pale: #FCE9CC; --amber-ink: #4F3A10;
  --peach: #FFC8B4; --sand: #F5DDB7; --text-2: #4F4640; --muted: #6B625B; --placeholder: #8A7F76; --on-dark-muted: #C9BFB5;
  --success-bg: #E3F4EC; --success: #14684A; --sky: #C9E8F5; --blue: #3A5BD9; --brown: #7A4E00;
  --display: 'Fredoka', 'Nunito', 'Avenir Next', 'Segoe UI', sans-serif;
  --body: 'Nunito', 'Avenir Next', 'Segoe UI', sans-serif;
  --gutter: clamp(20px, 5.5vw, 80px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--body); font-weight: 600; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; letter-spacing: -0.02em; text-wrap: pretty; }
p { margin: 0; }
img { max-width: 100%; display: block; }
.wrap { padding-inline: var(--gutter); }
/* The design is a 1440px canvas; on wider screens keep that width and centre it. */
header, main, .footer { max-width: 1440px; margin-inline: auto; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase; color: var(--accent); }
.eyebrow.on-dark { color: var(--amber-light); }
.lead { font-size: clamp(17px, 1.4vw, 21px); color: var(--text-2); font-weight: 600; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; border-radius: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 26px; border-radius: 18px; font-weight: 800; font-size: 17px; border: 2px solid transparent; cursor: pointer; font-family: var(--body); white-space: nowrap; }
.btn-primary { background: var(--accent); color: #fff; font-family: var(--display); font-weight: 700; font-size: 19px; }
.btn-primary:hover { background: var(--accent-deep); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; } .btn-dark:hover { background: #000; color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; } .btn-outline:hover { background: #fff; color: var(--ink); }
.btn-lg { height: 64px; padding: 0 30px; font-size: 21px; border-radius: 20px; }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; height: 88px; position: relative; z-index: 2; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 22px; }
.brand img { width: 40px; height: 40px; }
.nav-links { display: flex; align-items: center; gap: 36px; font-size: 15px; font-weight: 800; }
.nav-links a { color: var(--text-2); } .nav-links a:hover { color: var(--ink); }
.nav-links a.btn-dark, .nav-links a.btn-dark:hover { color: #fff; }
.nav-links .btn { height: 44px; padding: 0 20px; border-radius: 14px; font-size: 15px; }
.nav-toggle { display: none; }
@media (max-width: 860px) {
  .nav-links { display: none; position: absolute; top: 88px; left: var(--gutter); right: var(--gutter); flex-direction: column; align-items: stretch; gap: 8px; padding: 16px; background: #fff; border: 2px solid var(--sand); border-radius: 20px; }
  .nav-links a { padding: 10px 12px; }
  .nav-links .btn { margin-top: 4px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 14px; border: 2px solid var(--sand); background: #fff; cursor: pointer; }
  .nav.open .nav-links { display: flex; }
}

/* Hero */
.hero { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 60px; align-items: center; padding: 60px var(--gutter) 80px; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; pointer-events: none; }
.blob-amber { top: -220px; right: -160px; width: 620px; height: 620px; background: var(--amber-light); }
.blob-peach { bottom: -120px; left: 40%; width: 320px; height: 320px; background: var(--peach); }
.hero-copy { position: relative; display: flex; flex-direction: column; gap: 28px; max-width: 660px; }
.hero h1 { font-size: clamp(42px, 5.3vw, 76px); line-height: 0.98; letter-spacing: -0.021em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.hero-actions .btn { height: 60px; font-size: 18px; } .hero-actions .btn-primary { font-size: 20px; }
.hero-note { font-size: 14px; font-weight: 700; color: var(--muted); }
.hero-note a { text-decoration: underline; color: var(--text-2); }
.phone-wrap { position: relative; display: flex; justify-content: center; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; gap: 40px; padding-block: 24px 48px; } .blob-amber { width: 360px; height: 360px; top: -140px; right: -120px; } }

/* Phone mock (pure CSS, mirrors the app's Home screen) */
.phone { width: 340px; max-width: 100%; height: 700px; border-radius: 48px; background: var(--ink); padding: 12px; box-shadow: 0 30px 60px rgba(31,26,23,0.25); }
.screen { height: 100%; border-radius: 38px; background: var(--cream); overflow: hidden; display: flex; flex-direction: column; gap: 14px; padding: 56px 18px 18px; }
.screen .greet { font-family: var(--display); font-weight: 700; font-size: 24px; }
.card-dark { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--ink); border-radius: 20px; color: #fff; }
.card-dark .eyebrow { font-size: 11px; color: var(--amber-light); }
.big { font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1; }
.of { font-size: 12px; font-weight: 700; color: var(--on-dark-muted); }
.bar { height: 10px; border-radius: 5px; background: var(--ink-track); overflow: hidden; } .bar > i { display: block; height: 100%; border-radius: 5px; background: var(--amber); }
.card { display: flex; align-items: center; gap: 12px; padding: 14px; background: #fff; border-radius: 18px; border: 2px solid var(--sand); }
.card .t { font-family: var(--display); font-weight: 600; font-size: 17px; } .card .s { font-size: 12px; font-weight: 700; color: var(--text-2); }
.cta-mini { display: flex; align-items: center; justify-content: center; gap: 10px; height: 54px; border-radius: 18px; background: var(--accent); color: #fff; font-family: var(--display); font-weight: 700; font-size: 18px; }
.tile { width: 38px; height: 38px; border-radius: 12px; background: var(--peach); flex-shrink: 0; }
.plus { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--accent); margin-left: auto; }
.tabbar { margin: auto -18px -18px; padding: 10px 8px 22px; display: flex; justify-content: space-around; background: #fff; border-top: 2px solid var(--sand); }
.tabbar span { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 64px; font-size: 10px; font-weight: 800; color: var(--muted); }
.tabbar span.active { color: var(--accent); }
.tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Watch mock (pure CSS, mirrors the watch app's stats page), tucked over the phone's corner */
.phone-wrap { --watch-w: 132px; }
.watch { position: absolute; right: calc(50% - 170px - var(--watch-w) * 0.55); bottom: -34px; width: var(--watch-w); display: flex; flex-direction: column; align-items: center; filter: drop-shadow(0 24px 36px rgba(31,26,23,0.3)); }
.watch-band { width: 62%; height: 44px; background: linear-gradient(90deg, #3A332E, #524840 50%, #3A332E); }
.watch-band:first-child { border-radius: 14px 14px 4px 4px; }
.watch-band:last-child { border-radius: 4px 4px 14px 14px; }
.watch-case { position: relative; width: 100%; height: calc(var(--watch-w) * 1.2); border-radius: 34px; background: var(--ink); padding: 8px; box-shadow: inset 0 0 0 2px #4A423C; }
/* Digital crown and side button */
.watch-case::before { content: ""; position: absolute; right: -7px; top: 26%; width: 9px; height: 26px; border-radius: 3px; background: #4A423C; box-shadow: inset 1px 0 0 #6B625B; }
.watch-case::after { content: ""; position: absolute; right: -5px; top: 52%; width: 6px; height: 34px; border-radius: 3px; background: #4A423C; }
.watch-screen { height: 100%; border-radius: 27px; background: #000; color: #fff; padding: 12px 12px 10px; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.watch-head { display: flex; justify-content: space-between; align-items: center; font-size: 8px; font-weight: 800; color: var(--on-dark-muted); margin-bottom: 4px; }
.watch-head span { display: flex; align-items: center; gap: 3px; }
.watch-head i { width: 5px; height: 5px; border-radius: 50%; background: #4CD98A; }
.watch-stat { display: flex; align-items: baseline; gap: 3px; font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.05; }
.watch-stat.lg { font-size: 26px; }
.watch-stat.amber { color: var(--amber-light); }
.watch-stat.red { color: var(--accent); }
.watch-stat small { font-size: 0.42em; color: var(--on-dark-muted); }
.watch-stat svg { width: 0.5em; height: 0.5em; fill: currentColor; align-self: center; }
@media (max-width: 860px) { .watch { right: max(0px, calc(50% - 170px - var(--watch-w) * 0.3)); bottom: -20px; } }
@media (max-width: 420px) { .phone-wrap { --watch-w: 104px; } .watch { right: -6px; } .hero { padding-bottom: 56px; } }

/* Live band */
.band { margin: 0 var(--gutter); padding: 40px 48px; background: var(--ink); border-radius: 32px; color: #fff; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; align-items: start; }
/* One size for every number in the band, so the live counter reads as one of four stats rather than a headline. */
.band .counter, .band .stat { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 3.8vw, 56px); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.band .bar { height: 12px; border-radius: 6px; }
.band .sub { font-size: 15px; font-weight: 700; color: var(--on-dark-muted); }
.band > div { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 1000px) { .band { grid-template-columns: 1fr 1fr; } .band > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .band { grid-template-columns: 1fr; padding: 28px 24px; } }

/* Sections */
.section { padding: clamp(64px, 8vw, 120px) var(--gutter) 0; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; margin-bottom: 48px; }
.section h2 { font-size: clamp(34px, 3.6vw, 52px); line-height: 1.02; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px; align-items: center; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; gap: 40px; } }
.feature { display: flex; flex-direction: column; gap: 18px; padding: 32px; background: #fff; border-radius: 28px; border: 2px solid var(--sand); }
.feature .icon { width: 60px; height: 60px; border-radius: 18px; display: flex; align-items: center; justify-content: center; }
.feature h3 { font-weight: 600; font-size: 26px; }
.feature p { font-size: 17px; color: var(--text-2); }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 17px; font-weight: 700; }
.checks li { display: flex; align-items: center; gap: 12px; }
.checks .tick { width: 28px; height: 28px; border-radius: 50%; background: var(--success-bg); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.together-cards { display: flex; flex-direction: column; gap: 20px; }
.card-amber { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px; background: var(--amber); border-radius: 24px; color: var(--ink); }
.card-amber .bar { background: rgba(31,26,23,0.18); } .card-amber .bar > i { background: var(--ink); }
.chip { padding: 5px 12px; border-radius: 999px; background: var(--ink); color: var(--amber-light); font-size: 12px; font-weight: 800; white-space: nowrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 17px; flex-shrink: 0; }

/* Badges */
.badges-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 40px; }
.badges-head p { max-width: 460px; font-size: 17px; color: var(--text-2); }
@media (max-width: 860px) { .badges-head { flex-direction: column; align-items: flex-start; } }
.badge-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1100px) { .badge-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .badge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.badge { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 12px; background: #fff; border-radius: 24px; border: 2px solid var(--sand); font-size: 15px; font-weight: 800; text-align: center; }
.badge .disc { width: 84px; height: 84px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* Why */
.why { display: flex; flex-direction: column; gap: 16px; padding: clamp(28px, 4vw, 40px); background: #fff; border: 2px solid var(--sand); border-radius: 28px; }
.why .lead { font-size: 19px; }
.why .sign { font-family: var(--display); font-weight: 600; font-size: 22px; color: var(--accent); margin-top: 4px; }
.why-mark { width: 64px; height: 64px; border-radius: 18px; margin-bottom: 4px; }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px; }
@media (max-width: 960px) { .faq { grid-template-columns: 1fr; gap: 32px; } }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
details { padding: 22px 26px; background: #fff; border-radius: 20px; border: 2px solid var(--sand); }
summary { font-family: var(--display); font-weight: 600; font-size: 21px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-weight: 700; color: var(--accent); font-size: 26px; line-height: 1; }
details[open] summary::after { content: '–'; }
details p { margin-top: 12px; font-size: 16px; color: var(--text-2); }

/* Final CTA */
.cta { margin: clamp(64px, 8vw, 120px) var(--gutter) 0; padding: clamp(32px, 5vw, 72px); background: var(--amber); border-radius: 40px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: center; position: relative; overflow: hidden; }
.cta .blob { position: absolute; top: -140px; right: -100px; width: 400px; height: 400px; background: var(--amber-light); }
.cta > div { position: relative; }
.cta h2 { font-size: clamp(36px, 4.2vw, 60px); line-height: 1; letter-spacing: -0.023em; }
.cta p { font-size: 19px; color: var(--amber-ink); font-weight: 700; margin-top: 20px; }
.cta-actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
@media (max-width: 960px) { .cta { grid-template-columns: 1fr; gap: 32px; } }
.notify { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 420px; }
.notify label { font-size: 14px; font-weight: 800; color: var(--amber-ink); }
.notify .row { display: flex; gap: 8px; }
.notify .platforms { display: flex; gap: 18px; font-size: 14px; font-weight: 800; color: var(--amber-ink); }
.notify .platforms label { display: flex; align-items: center; gap: 6px; }
.notify .platforms input { accent-color: var(--ink); width: 16px; height: 16px; margin: 0; }
.notify .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.notify input { flex: 1 1 auto; min-width: 0; height: 52px; padding: 0 16px; border-radius: 16px; border: 2px solid var(--ink); background: var(--cream); font: inherit; font-size: 16px; color: var(--ink); }
.notify button { height: 52px; padding: 0 20px; border-radius: 16px; border: 2px solid var(--ink); background: transparent; color: var(--ink); font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.notify .done { font-weight: 800; color: var(--amber-ink); }

/* Footer */
.footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 60px var(--gutter) 48px; font-size: 14px; font-weight: 700; color: var(--muted); }
.footer .brand { font-size: 18px; } .footer .brand img { width: 30px; height: 30px; }
.footer nav { display: flex; gap: 28px; flex-wrap: wrap; } .footer nav a { color: var(--text-2); }

/* Standalone pages (forgot / reset / legal) */
.page { position: relative; min-height: calc(100vh - 88px); display: flex; align-items: center; justify-content: center; padding: 24px var(--gutter) 88px; overflow: hidden; }
.panel { position: relative; display: flex; flex-direction: column; gap: 24px; width: 520px; max-width: 100%; padding: clamp(28px, 4vw, 48px); background: #fff; border-radius: 32px; border: 2px solid var(--sand); box-shadow: 0 24px 48px rgba(31,26,23,0.08); }
.panel .icon { width: 60px; height: 60px; border-radius: 18px; background: var(--amber-light); display: flex; align-items: center; justify-content: center; }
.panel h1 { font-size: clamp(30px, 3vw, 40px); line-height: 1.05; }
.panel p { font-size: 17px; color: var(--text-2); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 800; }
.field input { height: 56px; padding: 0 18px; border-radius: 16px; border: 2px solid var(--sand); background: var(--cream); font: inherit; font-size: 17px; color: var(--ink); }
.field input:focus { outline: none; border-color: var(--accent); }
.panel .btn-primary { height: 58px; width: 100%; }
.small { font-size: 14px; font-weight: 700; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.small a { text-decoration: underline; color: var(--text-2); }
.alert { padding: 12px 14px; border-radius: 12px; font-weight: 700; font-size: 14px; }
.alert-error { background: var(--peach); color: var(--accent-deep); }
.alert-ok { background: var(--success-bg); color: var(--success); }
.prose { max-width: 760px; margin: 0 auto; padding: 24px var(--gutter) 96px; }
.prose h1 { font-size: clamp(36px, 4vw, 52px); margin-bottom: 8px; } .prose h2 { font-size: 26px; margin: 40px 0 10px; }
.prose p, .prose li { color: var(--text-2); font-size: 17px; } .prose ul { padding-left: 22px; }
.prose .updated { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.draft { background: var(--amber-pale); border: 2px dashed var(--amber); border-radius: 16px; padding: 12px 16px; font-weight: 800; color: var(--amber-ink); margin-bottom: 24px; }
