/* Polar Slide site. Apple-style tokens: 8 pt spacing, 17 px body, rounded display type. */
@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-latin.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: optional;
}

:root {
  color-scheme: light dark;
  --bg: #f3f7fc;
  --bg-2: #e6eef9;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #4c4f57;
  --line: rgba(29, 29, 31, 0.1);
  --link: #0066cc;
  --brand: #0b5fc5;
  --gold: #ffc21a;
  --gold-ink: #3d2a00;
  --sky-top: #c9daf6;
  --sky-mid: #e3ecfa;
  --glow-1: rgba(120, 170, 255, 0.35);
  --glow-2: rgba(190, 186, 222, 0.45);
  --shadow: 0 1px 2px rgba(16, 40, 80, 0.06), 0 10px 30px rgba(16, 40, 80, 0.1);
  --shadow-lg: 0 2px 6px rgba(16, 40, 80, 0.08), 0 30px 60px rgba(16, 40, 80, 0.18);
  --display: ui-rounded, "SF Pro Rounded", "Nunito", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --r-sm: 11px;
  --r-md: 18px;
  --r-lg: 28px;
  --gutter: 16px;
  --max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1020;
    --bg-2: #0f1830;
    --surface: #131d33;
    --ink: #f5f5f7;
    --ink-2: #b4bccb;
    --line: rgba(255, 255, 255, 0.12);
    --link: #4da3ff;
    --brand: #4da3ff;
    --sky-top: #0b1430;
    --sky-mid: #0d1934;
    --glow-1: rgba(64, 220, 180, 0.22);
    --glow-2: rgba(140, 110, 255, 0.28);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.4), 0 30px 60px rgba(0, 0, 0, 0.5);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.47 var(--text);
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 734px) { :root { --gutter: 24px; } }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--surface); color: var(--ink); padding: 8px 14px; border-radius: var(--r-sm); box-shadow: var(--shadow);
}
.skip:focus { top: 12px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 16px; height: 52px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font: 800 19px/1 var(--display); }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.top nav { margin-left: auto; display: flex; gap: 20px; font-size: 14px; }
.top nav a { color: var(--ink-2); }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--ink); text-decoration: none; }
@media (max-width: 480px) { .top nav { gap: 14px; } .top nav .wide { display: none; } }

/* Hero */
.hero {
  position: relative;
  background:
    radial-gradient(60% 50% at 85% 10%, var(--glow-1), transparent 70%),
    radial-gradient(50% 40% at 10% 0%, var(--glow-2), transparent 70%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 55%, var(--bg) 100%);
  padding: 32px 0 48px;
  overflow: hidden;
}
.hero .wrap { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) {
  .hero { padding: 56px 0 80px; }
  .hero .wrap { grid-template-columns: 1.15fr 0.85fr; gap: 48px; }
}
.hero h1 { margin: 0 0 16px; }
.hero h1 img { width: min(100%, 440px); height: auto; filter: drop-shadow(0 10px 24px rgba(20, 60, 140, 0.25)); }
.lead { font-size: 21px; line-height: 1.38; color: var(--ink-2); max-width: 30em; }
@media (min-width: 900px) { .lead { font-size: 24px; line-height: 1.33; } }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.badge { display: inline-block; border-radius: 10px; }
.badge img { width: 160px; height: 53px; }
.badge-lg img { width: 180px; height: 60px; }
.note { font-size: 14px; color: var(--ink-2); }

.riders { margin-top: 32px; }
.riders p { font: 700 14px/1.2 var(--display); color: var(--ink-2); margin-bottom: 8px; letter-spacing: 0; }
.riders ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; max-width: 520px; }
.riders li {
  flex: 1 1 0; min-width: 0; max-width: 68px; aspect-ratio: 1; border-radius: 50%;
  background: var(--surface); box-shadow: var(--shadow);
  display: grid; place-items: center; overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.riders li:hover { transform: translateY(-4px) rotate(-4deg); }
.riders img { width: 88%; height: auto; margin-top: 12%; }

.phone {
  justify-self: center;
  width: min(78vw, 330px);
  padding: 9px;
  border-radius: 46px;
  background: linear-gradient(145deg, #2b2f38, #0d0f14);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  position: relative;
  transform: rotate(2deg);
}
.phone .screen { border-radius: 38px; overflow: hidden; aspect-ratio: 9 / 16; background: #9fbbe6; position: relative; }
.phone video, .phone .screen > img { width: 100%; height: 100%; object-fit: cover; }
.vbtn {
  position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(0, 0, 0, 0.45); color: #fff; cursor: pointer;
  display: grid; place-items: center;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.vbtn svg { width: 18px; height: 18px; fill: currentColor; }
.vbtn .i-play { display: none; }
.vbtn[aria-pressed="false"] .i-play { display: block; }
.vbtn[aria-pressed="false"] .i-pause { display: none; }
@media (prefers-reduced-motion: reduce) { .phone { transform: none; } .riders li { transition: none; } }

/* Stats */
.stats { padding: 0 0 8px; }
.stats ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
@media (min-width: 734px) { .stats ul { grid-template-columns: repeat(4, 1fr); } }
.stats li { background: var(--surface); border-radius: var(--r-md); padding: 16px 17px; box-shadow: var(--shadow); }
.stats b { display: block; font: 800 28px/1.1 var(--display); color: var(--brand); }
.stats span { font-size: 14px; color: var(--ink-2); }

/* Sections */
.section { padding: 48px 0; }
@media (min-width: 734px) { .section { padding: 80px 0; } }
.eyebrow { font: 800 14px/1.2 var(--display); text-transform: uppercase; letter-spacing: 0.06em; color: var(--brand); margin-bottom: 8px; }
.section h2 { font-size: 34px; line-height: 1.12; }
@media (min-width: 734px) { .section h2 { font-size: 48px; line-height: 1.08; } }
.section .intro { margin-top: 12px; font-size: 19px; line-height: 1.42; color: var(--ink-2); max-width: 36em; }
.head { margin-bottom: 32px; }

.cities { display: grid; gap: 16px; }
@media (min-width: 734px) { .cities { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.card { background: var(--surface); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--bg-2); }
.card .txt { padding: 17px 20px 20px; }
.card h3 { font-size: 24px; line-height: 1.17; }
.card p { margin-top: 6px; color: var(--ink-2); }

.bento { display: grid; gap: 16px; }
@media (min-width: 734px) { .bento { grid-template-columns: 1fr 1fr; gap: 20px; } }
.bento .card h3 { font-size: 28px; }
.bento .txt { padding: 24px 24px 20px; }
.bento .card { display: flex; flex-direction: column; }
.bento .card picture { margin-top: auto; }

/* Friend challenge */
.duo { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .duo { grid-template-columns: 1fr 1fr; gap: 64px; } }
.steps { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; color: var(--ink-2); }
.steps li::before {
  counter-increment: s; content: counter(s);
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #fff; font: 800 15px/1 var(--display);
}
.steps b { color: var(--ink); }
.ghost-stage {
  border-radius: var(--r-lg); padding: 40px 20px;
  background: linear-gradient(160deg, #8fb3ea, #c7d6f3 60%, #e8eefb);
  display: grid; place-items: center;
}
.ghost {
  width: min(100%, 340px); background: #fff; color: #1b2a4a; border-radius: 32px; padding: 24px;
  text-align: center; box-shadow: 0 24px 50px rgba(20, 50, 110, 0.28);
}
.ghost img { width: 96px; height: 96px; margin: 0 auto 8px; opacity: 0.85; object-fit: contain; }
.ghost .t { font: 800 28px/1.1 var(--display); }
.ghost .s { margin-top: 8px; font: 800 17px/1.3 var(--display); color: rgba(27, 42, 74, 0.75); }
.ghost .c { margin-top: 8px; font: 700 15px/1.3 var(--display); color: #1659b5; font-variant-numeric: tabular-nums; }
.ghost .b {
  margin-top: 16px; display: block; padding: 14px; border-radius: 18px;
  background: var(--gold); color: var(--gold-ink); font: 900 22px/1 var(--display); letter-spacing: 0.02em;
  box-shadow: 0 5px 0 #e0a100;
}
.ghost .n { margin-top: 14px; font: 700 15px/1 var(--display); color: #5b6478; }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative;
  font: 700 19px/1.3 var(--display); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2.5px solid var(--ink-2); border-bottom: 2.5px solid var(--ink-2); transform: rotate(45deg);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 0 20px; color: var(--ink-2); }
.faq details > div p + p { margin-top: 10px; }

/* Press */
.press-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .press-grid { grid-template-columns: 0.9fr 1.1fr; gap: 48px; } }
.facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; }
.facts dt { color: var(--ink-2); font-size: 14px; padding-top: 2px; }
.facts dd { margin: 0; }
.blurb { margin-top: 24px; padding: 20px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow); color: var(--ink-2); }
.shots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.shots img { border-radius: 14px; width: 100%; aspect-ratio: 1290 / 2796; object-fit: cover; box-shadow: var(--shadow); background: var(--bg-2); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 980px;
  background: var(--brand); color: #fff; font: 700 17px/1.2 var(--display);
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
@media (prefers-color-scheme: dark) { .btn { color: #00142e; } }

/* Final CTA */
.final { text-align: center; }
.final img.icon { width: 112px; height: 112px; margin: 0 auto 20px; border-radius: 25px; box-shadow: var(--shadow-lg); }
.final .cta { justify-content: center; }

/* Docs (privacy, support) */
.doc { max-width: 720px; padding-top: 40px; padding-bottom: 64px; }
.doc h1 { font-size: 40px; line-height: 1.1; }
@media (min-width: 734px) { .doc h1 { font-size: 48px; } }
.doc .meta { margin-top: 8px; color: var(--ink-2); font-size: 14px; }
.doc h2 { font-size: 24px; line-height: 1.2; margin: 40px 0 10px; }
.doc p, .doc ul { color: var(--ink-2); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 1.2em; margin: 12px 0 0; }
.doc li + li { margin-top: 6px; }
.doc strong { color: var(--ink); }
.doc :is(p, li) a, .faq p a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.callout { margin-top: 24px; padding: 20px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow); }
.callout p { color: var(--ink); }
.doc .faq { margin-top: 8px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--ink-2); }
.foot .wrap { display: grid; gap: 12px; }
@media (min-width: 734px) { .foot .wrap { grid-template-columns: 1fr auto; align-items: center; } }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot nav a { color: var(--ink-2); }
.foot p + p { margin-top: 4px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.section.flush { padding-top: 0; }
.section.tint { background: var(--bg-2); }
.lost { width: 140px; height: auto; margin: 0 auto 16px; transform: rotate(-12deg); }
