/* WanderMap website
   Palette is lifted from the app: obsidian surfaces (#0A0A0F, #15151D, #1F1F2A),
   the brand gold and the scratch foil ramp (#D4AF37 to #B8860B), and the
   continent jewel colours used as content-layer accents. */

:root {
  color-scheme: light dark;

  --gold: #e8c25a;
  --gold-deep: #d4af37;
  --gold-dark: #b8860b;
  --gold-bright: #ffd700;
  --foil: linear-gradient(105deg, #b8860b 0%, #e5c158 22%, #fff1b8 34%, #d4af37 48%, #b8860b 66%, #e8c25a 84%, #c5a028 100%);

  --africa: #e07a4f;
  --asia: #d9546e;
  --europe: #4f7fe0;
  --namerica: #3baa7a;
  --oceania: #9a7be0;
  --samerica: #2fb5b0;

  /* Light appearance */
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --card: #ffffff;
  --card-2: #fbfbfd;
  --line: rgba(12, 14, 24, 0.1);
  --text: #0b0e17;
  --text-2: #565b69;
  --accent-text: #85600c;
  --focus: #0b0e17;
  --shadow: 0 1px 2px rgba(12, 14, 24, 0.04), 0 18px 40px -18px rgba(12, 14, 24, 0.18);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --radius-l: 32px;
  --radius-m: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0f;
    --bg-2: #111118;
    --card: #15151d;
    --card-2: #1a1a23;
    --line: rgba(255, 255, 255, 0.1);
    --text: #f5f5f7;
    --text-2: #a3a3ae;
    --accent-text: #e8c25a;
    --focus: #e8c25a;
    --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 24px 48px -24px rgba(0, 0, 0, 0.7);
  }
}

/* Sections that stay dark in both appearances, like the app itself. */
.night {
  --bg: #0a0a0f;
  --bg-2: #111118;
  --card: #15151d;
  --card-2: #1a1a23;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f5f5f7;
  --text-2: #a3a3ae;
  --accent-text: #e8c25a;
  --focus: #e8c25a;
  background: var(--bg);
  color: var(--text);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.53;
  letter-spacing: -0.012em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, video, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; color: var(--text); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--gold); color: #0b0e17; font-weight: 600;
  padding: 10px 16px; border-radius: 12px; text-decoration: none;
  transition: top 0.2s;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: calc(820px + var(--gutter) * 2); }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
.eyebrow {
  display: block;
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--accent-text);
  margin-bottom: 12px;
}
.display {
  font-size: clamp(48px, 8.6vw, 112px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.032em;
}
.h-section {
  font-size: clamp(36px, 5.6vw, 72px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.034em;
}
.h-chapter {
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.lead {
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.42;
  font-weight: 500;
  letter-spacing: -0.016em;
  color: var(--text-2);
}
.lead strong { color: var(--text); font-weight: 600; }
.foil-text {
  background: var(--foil);
  background-size: 220% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.small { font-size: 14px; line-height: 1.5; color: var(--text-2); }
.link {
  color: var(--accent-text);
  text-decoration: none;
  font-weight: 500;
}
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-arrow::after { content: " \203A"; font-weight: 600; }

/* ---------- App Store badge ---------- */
.appstore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 20px 0 16px;
  border-radius: 14px;
  background: #000;
  color: #fff;
  border: 1px solid #a6a6a6;
  text-decoration: none;
  line-height: 1;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  white-space: nowrap;
}
.appstore:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6); }
.appstore svg { width: 26px; height: 32px; flex: none; fill: currentColor; }
.appstore span { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.appstore small { font-size: 12px; font-weight: 500; letter-spacing: 0.01em; }
.appstore b { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.appstore.sm { height: 44px; border-radius: 11px; padding: 0 14px 0 12px; gap: 7px; }
.appstore.sm svg { width: 19px; height: 23px; }
.appstore.sm small { font-size: 9.5px; }
.appstore.sm b { font-size: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 0;
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s, transform 0.2s var(--ease), color 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn-gold { background: var(--gold); color: #0b0e17; }
.btn-gold:hover { background: #f0cd6b; }
.btn-plain { background: var(--text); color: var(--bg); }
.btn-plain:hover { opacity: 0.88; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--text-2); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Navigation (always dark glass, like the system bars over content) ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 15, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #f5f5f7;
}
/* The nav floats over the first section, so dark heroes run up behind the glass. */
.nav { margin-bottom: -57px; }
main > :first-child { border-top: 57px solid transparent; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -0.02em; text-decoration: none; color: inherit; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  font-size: 14px; color: rgba(245, 245, 247, 0.8); text-decoration: none;
  padding: 8px 12px; border-radius: 999px; transition: color 0.2s, background-color 0.2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav-cta {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 16px;
  border-radius: 999px; background: var(--gold); color: #0b0e17;
  font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.nav-cta:hover { background: #f0cd6b; }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav :focus-visible { outline-color: var(--gold); }
.menu-btn {
  display: none; width: 44px; height: 44px; border: 0; background: transparent;
  border-radius: 12px; cursor: pointer; align-items: center; justify-content: center; color: #f5f5f7;
}
.menu-btn svg { width: 22px; height: 22px; }
.mobile {
  display: none;
  position: fixed; top: 57px; left: 0; right: 0; z-index: 49;
  background: rgba(10, 10, 15, 0.96);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  padding: 8px 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #f5f5f7;
}
.mobile.open { display: block; }
.mobile a:not(.appstore) {
  display: block; padding: 14px 4px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em;
  color: #f5f5f7; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile .appstore { margin-top: 20px; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
}

/* ---------- iPhone frame ---------- */
.iphone {
  --w: 320px;
  position: relative;
  width: var(--w);
  max-width: 100%;
  flex: none;
  padding: calc(var(--w) * 0.034);
  border-radius: calc(var(--w) * 0.168);
  background: #0c0c0f;
  box-shadow:
    inset 0 0 0 calc(var(--w) * 0.005) #5a5a62,
    inset 0 0 0 calc(var(--w) * 0.012) #1c1c21,
    0 2px 4px rgba(0, 0, 0, 0.12),
    0 50px 90px -30px rgba(5, 8, 20, 0.55),
    0 30px 40px -30px rgba(5, 8, 20, 0.4);
}
.iphone::before {
  /* Action button and volume buttons */
  content: "";
  position: absolute;
  left: calc(var(--w) * -0.008);
  top: calc(var(--w) * 0.36);
  width: calc(var(--w) * 0.01);
  height: calc(var(--w) * 0.07);
  border-radius: 3px 0 0 3px;
  background: #35353b;
  box-shadow: 0 calc(var(--w) * 0.14) 0 #35353b, 0 calc(var(--w) * 0.29) 0 #35353b;
}
.iphone::after {
  /* Dynamic Island */
  content: "";
  position: absolute; z-index: 3;
  top: calc(var(--w) * 0.062);
  left: 50%;
  width: calc(var(--w) * 0.29);
  height: calc(var(--w) * 0.085);
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
}
.iphone .screen {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--w) * 0.136);
  background: #0a0a0f;
  aspect-ratio: 1206 / 2622;
}
.iphone .screen img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: 0.08s; }
.js .reveal.d2 { transition-delay: 0.16s; }
.js .reveal.d3 { transition-delay: 0.24s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 104px) 0 0;
  text-align: center;
  isolation: isolate;
}
.hero::before {
  /* The app's map graticule, fading out from the centre */
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 62%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 62%, #000 20%, transparent 75%);
}
.hero::after {
  content: "";
  position: absolute; z-index: -1;
  left: 50%; top: 52%;
  width: min(1100px, 140vw); height: 900px;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side, rgba(232, 194, 90, 0.22), rgba(232, 194, 90, 0.06) 55%, transparent 75%);
  pointer-events: none;
}
.hero .eyebrow { margin-bottom: 18px; }
.hero h1 { max-width: 12ch; margin: 0 auto; }
.hero .lead { max-width: 36ch; margin: 24px auto 0; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 28px; margin-top: 36px; }
.hero-note { margin-top: 18px; font-size: 15px; color: var(--text-2); }
.hero-stage { position: relative; margin-top: clamp(48px, 7vw, 88px); display: flex; justify-content: center; }
.hero-stage .iphone { --w: clamp(270px, 28vw, 370px); }
.hero { padding-bottom: clamp(72px, 9vw, 128px); }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes riseDevice { from { opacity: 0; transform: translateY(80px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes sheen { from { background-position: 100% 50%; } to { background-position: 0% 50%; } }
.js .hero .rise { animation: rise 1s var(--ease) both; }
.js .hero .rise.r2 { animation-delay: 0.1s; }
.js .hero .rise.r3 { animation-delay: 0.2s; }
.js .hero .rise.r4 { animation-delay: 0.3s; }
.js .hero .iphone { animation: riseDevice 1.3s 0.25s var(--ease) both; }
.js .hero .foil-text { animation: sheen 2.4s 0.4s var(--ease) both; }

/* Scroll-linked lift for the hero device, where supported */
@supports (animation-timeline: scroll()) {
  .hero-stage .lift {
    animation: heroLift linear both;
    animation-timeline: scroll(root);
    animation-range: 0 80vh;
  }
  @keyframes heroLift { from { transform: none; } to { transform: translateY(-6%) scale(1.04); } }
}

/* ---------- Generic sections ---------- */
.section { padding: clamp(88px, 12vw, 160px) 0; }
.section-tight { padding: clamp(64px, 8vw, 112px) 0; }
.section-head { max-width: 860px; margin: 0 auto clamp(48px, 6vw, 80px); text-align: center; }
.section-head .lead { margin-top: 20px; }
.alt { background: var(--bg-2); }

/* ---------- Film slot ---------- */
.js #film:not(.is-ready) { display: none; }
#film { padding: clamp(72px, 9vw, 120px) 0; }
.film-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: #000;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.film-frame video { width: 100%; height: 100%; object-fit: cover; }
.film-frame.is-portrait { aspect-ratio: 9 / 16; max-width: 420px; margin: 0 auto; }

/* ---------- Statement ---------- */
.statement { padding: clamp(88px, 11vw, 150px) 0 clamp(40px, 5vw, 72px); }
.statement p {
  max-width: 24ch;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(32px, 4.6vw, 60px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.032em;
  text-align: center;
  color: var(--text);
}
.statement .dim { color: var(--text-2); }

/* ---------- Chapters ---------- */
.chapter { padding: clamp(44px, 6vw, 80px) 0; }
.chapter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}
.chapter.flip .chapter-copy { order: 2; }
.chapter-copy { max-width: 500px; }
.chapter-copy .lead { margin-top: 20px; }
.chapter.flip .chapter-copy { justify-self: end; }
.facts { list-style: none; margin-top: 32px; border-top: 1px solid var(--line); }
.facts li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text-2); font-size: 16px; }
.facts li b { color: var(--text); font-weight: 600; }

.stage {
  --tint: var(--gold);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(40px, 5vw, 72px) 16px;
  border-radius: var(--radius-l);
  background: var(--bg-2);
  overflow: hidden;
  isolation: isolate;
  min-height: 560px;
}
.stage::before {
  content: "";
  position: absolute; inset: -20%; z-index: -1;
  background: radial-gradient(closest-side at 50% 55%, color-mix(in srgb, var(--tint) 38%, transparent), transparent 70%);
  opacity: 0.55;
}
.stage .iphone { --w: clamp(250px, 24vw, 320px); }
.tint-gold { --tint: var(--gold); }
.tint-oceania { --tint: var(--oceania); }
.tint-asia { --tint: var(--asia); }
.tint-europe { --tint: var(--europe); }
.tint-namerica { --tint: var(--namerica); }

@supports (animation-timeline: view()) {
  .stage .drift {
    animation: drift linear both;
    animation-timeline: view();
    animation-range: entry 0% exit 100%;
  }
  @keyframes drift { from { transform: translateY(40px); } to { transform: translateY(-40px); } }
}

/* Scratch demo */
.scratch-wrap { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.scratch-card .screen canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 2; cursor: crosshair; touch-action: pan-y;
  transition: opacity 0.6s var(--ease);
}
.scratch-card.done .screen canvas { opacity: 0; pointer-events: none; }
.scratch-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.scratch-hint { font-size: 15px; color: var(--text-2); }
.chip-btn {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0;
  background: var(--card); color: var(--text); font-size: 15px; font-weight: 600; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line);
}
.chip-btn:hover { box-shadow: inset 0 0 0 1px var(--text-2); }
.no-js .scratch-controls { display: none; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.tile {
  position: relative;
  grid-column: span 2;
  display: flex; flex-direction: column;
  padding: 32px;
  border-radius: var(--radius-m);
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 300px;
}
.tile.wide { grid-column: span 3; min-height: 440px; }
.tile h3 { font-size: 24px; line-height: 1.15; letter-spacing: -0.024em; font-weight: 700; }
.tile p { margin-top: 10px; color: var(--text-2); font-size: 16px; }
.tile p b { color: var(--text); font-weight: 600; }
.tile .art { margin-top: auto; padding-top: 28px; display: flex; justify-content: center; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.tile-ic {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 18px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--ic, var(--gold)) 16%, transparent);
  color: var(--ic, var(--gold-dark));
}
.tile-ic svg { width: 24px; height: 24px; }
@media (prefers-color-scheme: dark) { .tile-ic { color: var(--ic, var(--gold)); } }

/* Apple Watch mock: mirrors the companion app's summary screen */
.watch {
  position: relative;
  width: 172px; height: 208px;
  border-radius: 50px;
  padding: 12px;
  background: #101014;
  box-shadow: inset 0 0 0 2px #4a4a52, inset 0 0 0 9px #18181c, 0 30px 50px -24px rgba(0, 0, 0, 0.6);
}
.watch::after {
  content: ""; position: absolute; right: -7px; top: 50px;
  width: 8px; height: 34px; border-radius: 0 6px 6px 0;
  background: linear-gradient(90deg, #2a2a30, #55555c);
}
.watch-screen {
  height: 100%; border-radius: 40px; background: #000; color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-family: var(--font-round); text-align: center;
}
.watch-screen .n { font-size: 48px; font-weight: 700; line-height: 1; color: var(--gold); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.watch-screen .l { font-size: 13px; color: rgba(255, 255, 255, 0.7); }
.watch-screen .row { margin-top: 8px; font-size: 12px; font-weight: 600; }
.watch-screen .recent { font-size: 11px; color: rgba(255, 255, 255, 0.6); margin-top: 2px; }

/* Lock Screen widgets on a soft wallpaper */
.lock {
  width: 100%; max-width: 340px; border-radius: 26px; padding: 26px 22px 22px;
  background:
    radial-gradient(120% 90% at 20% 0%, #3a2f5c 0%, transparent 60%),
    radial-gradient(120% 90% at 100% 100%, #7a5a14 0%, transparent 55%),
    #11152a;
  color: #fff; text-align: center;
}
.lock .time { font-family: var(--font-round); font-size: 64px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.lock .date { font-size: 15px; font-weight: 600; opacity: 0.85; margin-bottom: 8px; }
.lock-widgets { display: flex; gap: 12px; justify-content: center; margin-top: 18px; text-align: left; }
.gauge {
  --p: 17.5;
  width: 64px; height: 64px; border-radius: 50%; flex: none;
  background: rgba(255, 255, 255, 0.16);
  display: grid; place-items: center; position: relative;
  font-family: var(--font-round); font-weight: 700; font-size: 20px;
}
.gauge::before {
  content: ""; position: absolute; inset: 4px; border-radius: 50%;
  background: conic-gradient(from 225deg, #fff calc(var(--p) * 0.75%), rgba(255, 255, 255, 0.3) 0 75%, transparent 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4.5px));
}
.gauge svg { position: absolute; top: 9px; width: 12px; height: 12px; }
.gauge span { margin-top: 8px; }
.rect-widget { padding: 6px 4px; line-height: 1.2; }
.rect-widget .t { font-size: 12px; font-weight: 600; opacity: 0.8; display: flex; gap: 5px; align-items: center; }
.rect-widget .t svg { width: 12px; height: 12px; }
.rect-widget .v { font-size: 18px; font-weight: 700; margin-top: 3px; }
.rect-widget .s { font-size: 12px; opacity: 0.7; margin-top: 2px; }

/* Live Activity */
.live {
  width: 100%; max-width: 340px;
  border-radius: 24px; padding: 16px 18px;
  background: #000; color: #fff;
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}
.live .emoji { font-size: 30px; line-height: 1; }
.live .name { font-weight: 600; font-size: 16px; }
.live .ends { font-size: 13px; color: rgba(255, 255, 255, 0.6); }
.live .day { text-align: right; font-family: var(--font-round); }
.live .day b { display: block; font-size: 22px; color: var(--gold); line-height: 1; }
.live .day small { font-size: 12px; color: rgba(255, 255, 255, 0.6); }
.island {
  margin: 0 auto 14px; width: 210px; height: 36px; border-radius: 999px; background: #000;
  display: flex; align-items: center; justify-content: space-between; padding: 0 14px; color: #fff;
  font-family: var(--font-round); font-size: 14px; font-weight: 700;
}
.island b { color: var(--gold); }

/* Siri bubble */
.siri {
  position: relative;
  max-width: 300px; padding: 16px 20px; border-radius: 22px;
  background: var(--card-2);
  font-size: 18px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3;
  box-shadow: inset 0 0 0 1px var(--line);
}
.siri::before {
  content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: 24px;
  background: conic-gradient(from 180deg, #ff6b8b, #ffb35c, #e8c25a, #5fd0ff, #9a7be0, #ff6b8b);
  filter: blur(10px); opacity: 0.55;
}
.siri-wrap { position: relative; isolation: isolate; }

/* Alternate icons */
.icons { display: grid; grid-template-columns: repeat(4, 56px); gap: 14px; justify-content: center; }
.icons img { width: 56px; height: 56px; border-radius: 13px; box-shadow: 0 6px 14px -8px rgba(0, 0, 0, 0.45), 0 0 0 0.5px rgba(0, 0, 0, 0.1); }

/* ---------- Privacy ---------- */
.privacy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(40px, 5vw, 64px); }
.pcard { padding: 32px; border-radius: var(--radius-m); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.pcard h3 { font-size: 21px; letter-spacing: -0.02em; margin-top: 18px; }
.pcard p { margin-top: 8px; color: var(--text-2); font-size: 16px; }
.pcard svg { width: 32px; height: 32px; color: var(--gold); }
.lockmark {
  width: 84px; height: 84px; margin: 0 auto 28px; border-radius: 24px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, #1f1f2a, #15151d);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 20px 40px -20px rgba(232, 194, 90, 0.4);
}
.lockmark svg { width: 40px; height: 40px; color: var(--gold); }

/* ---------- Gallery ---------- */
.gallery {
  display: flex; gap: 20px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 8px max(var(--gutter), calc((100vw - var(--max)) / 2)) 24px;
  scroll-padding: 0 max(var(--gutter), calc((100vw - var(--max)) / 2));
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery figure {
  margin: 0; flex: none; scroll-snap-align: start;
  width: clamp(240px, 26vw, 310px);
  border-radius: 28px; overflow: hidden;
  background: #0d1020;
  box-shadow: var(--shadow);
}
.gallery img { width: 100%; }
.gallery-controls { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.round-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--card); color: var(--text); box-shadow: inset 0 0 0 1px var(--line);
  display: grid; place-items: center;
}
.round-btn:hover { box-shadow: inset 0 0 0 1px var(--text-2); }
.round-btn:disabled { opacity: 0.35; cursor: default; }
.round-btn svg { width: 18px; height: 18px; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan {
  position: relative;
  display: flex; flex-direction: column;
  padding: 36px 32px 32px;
  border-radius: var(--radius-l);
  background: var(--card);
  box-shadow: var(--shadow);
}
.plan.featured { box-shadow: 0 0 0 2px var(--gold), var(--shadow); }
.plan .badge {
  position: absolute; top: -13px; left: 32px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--gold); color: #0b0e17;
  font-size: 13px; font-weight: 700; letter-spacing: -0.005em;
}
.plan h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.plan .price { margin-top: 14px; font-family: var(--font-display); font-size: 48px; font-weight: 700; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan .price small { font-size: 17px; font-weight: 500; color: var(--text-2); letter-spacing: -0.01em; margin-left: 4px; }
.plan .sub { margin-top: 10px; color: var(--text-2); font-size: 16px; }
.plan .sub b { color: var(--accent-text); font-weight: 600; }
.plan .btn { margin-top: 28px; width: 100%; }
.plan-spacer { flex: 1; }
.includes {
  margin-top: 40px; padding: 32px; border-radius: var(--radius-m);
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
}
.includes h3 { font-size: 19px; letter-spacing: -0.02em; }
.includes ul { list-style: none; margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 28px; }
.includes li { position: relative; padding-left: 26px; color: var(--text-2); font-size: 16px; }
.includes li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.6l4.6-5' fill='none' stroke='%230b0e17' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.fineprint { margin-top: 28px; font-size: 13px; line-height: 1.6; color: var(--text-2); max-width: 860px; }
.fineprint a { color: inherit; }

/* ---------- FAQ (native disclosure) ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 4px; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: clamp(18px, 1.6vw, 21px); font-weight: 600; letter-spacing: -0.018em; line-height: 1.3; }
.faq summary .pm {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--bg-2); color: var(--text-2);
  transition: transform 0.3s var(--ease);
}
.alt .faq summary .pm { background: var(--card); }
.faq summary .pm svg { width: 14px; height: 14px; }
.faq details[open] summary .pm { transform: rotate(45deg); }
.faq .answer { padding: 0 4px 24px; color: var(--text-2); max-width: 70ch; }
.faq .answer p + p, .faq .answer p + ol, .faq .answer ol { margin-top: 10px; }
.faq .answer ol { padding-left: 22px; }
.faq .answer li { margin: 6px 0; }
.faq .answer strong { color: var(--text); font-weight: 600; }
.faq .answer a { color: var(--accent-text); }
.faq-cat { font-size: 15px; font-weight: 600; color: var(--accent-text); margin: 48px 0 8px; letter-spacing: -0.005em; }
.faq-cat:first-of-type { margin-top: 0; }

/* ---------- Closing call to action ---------- */
.closer { text-align: center; position: relative; overflow: hidden; isolation: isolate; }
.closer::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 900px; height: 600px; z-index: -1;
  transform: translate(-50%, -30%);
  background: radial-gradient(closest-side, rgba(232, 194, 90, 0.2), transparent 70%);
}
.closer .appicon { width: 112px; height: 112px; margin: 0 auto 32px; border-radius: 25px; box-shadow: 0 24px 48px -16px rgba(232, 194, 90, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.closer .lead { margin: 20px auto 0; max-width: 34ch; }
.closer .hero-cta { margin-top: 36px; }

/* ---------- Footer ---------- */
footer { background: var(--bg-2); color: var(--text-2); font-size: 14px; padding: 56px 0 40px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px; }
.foot-brand .brand { color: var(--text); }
.foot-brand p { margin-top: 14px; max-width: 34ch; }
.foot-brand .appstore { margin-top: 20px; }
.foot-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.foot-col h2 { font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 12px; letter-spacing: -0.005em; }
.foot-col a { display: block; padding: 5px 0; text-decoration: none; color: var(--text-2); }
.foot-col a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }

/* ---------- Sub pages ---------- */
.page-hero { padding: clamp(64px, 9vw, 120px) 0 clamp(40px, 5vw, 64px); text-align: center; }
.page-hero h1 { font-size: clamp(44px, 7vw, 88px); line-height: 1.03; font-weight: 700; letter-spacing: -0.036em; }
.page-hero .lead { max-width: 38ch; margin: 20px auto 0; }
.page-hero .meta { margin-top: 16px; color: var(--text-2); font-size: 15px; }
.page-body { padding-bottom: clamp(80px, 10vw, 140px); }

.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 30px; border-radius: var(--radius-m);
  background: var(--card); box-shadow: var(--shadow);
}
.card h2, .card h3 { font-size: 21px; letter-spacing: -0.02em; font-weight: 700; }
.card p { margin-top: 8px; color: var(--text-2); font-size: 16px; }
.card .btn { margin-top: auto; }
.card .card-body { margin-bottom: 24px; }
.block { margin-top: clamp(64px, 8vw, 104px); }
.block-head { margin-bottom: 28px; }
.block-head h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.03em; font-weight: 700; line-height: 1.1; }
.block-head p { margin-top: 8px; color: var(--text-2); }

.panel {
  padding: clamp(32px, 5vw, 56px); border-radius: var(--radius-l);
  background: var(--bg-2); text-align: center;
}
.panel h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.03em; font-weight: 700; }
.panel p { margin: 12px auto 0; color: var(--text-2); max-width: 52ch; }
.panel .actions { margin-top: 28px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.panel .mail { margin-top: 18px; font-size: 15px; }

/* Legal prose */
.prose { max-width: 720px; margin: 0 auto; font-size: 17px; line-height: 1.65; }
.prose h2 { font-size: 24px; letter-spacing: -0.022em; margin: 48px 0 12px; line-height: 1.2; }
.prose p { margin: 12px 0; color: var(--text-2); }
.prose ul, .prose ol { margin: 12px 0; padding-left: 22px; color: var(--text-2); }
.prose li { margin: 8px 0; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent-text); }
.callout { padding: 22px 26px; border-radius: 18px; background: var(--bg-2); box-shadow: inset 3px 0 0 var(--gold); }
.callout p { margin: 0; }

/* Press */
.press-intro { display: grid; grid-template-columns: 200px 1fr; gap: clamp(28px, 4vw, 48px); align-items: start; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-l); background: var(--bg-2); }
.press-intro > img { width: 200px; height: 200px; border-radius: 44px; box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.4); }
.press-intro h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.03em; }
.press-intro > div > p { margin-top: 12px; color: var(--text-2); }
.facts-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 24px 0 0; }
.facts-dl div { padding: 12px 0; border-top: 1px solid var(--line); }
.facts-dl dt { font-size: 13px; color: var(--text-2); font-weight: 600; }
.facts-dl dd { margin: 4px 0 0; font-weight: 500; }
.copy-box { position: relative; padding-right: 110px; }
.copy-box h3 { font-size: 15px; color: var(--accent-text); font-weight: 600; }
.copy-box p { color: var(--text); }
.copy-btn { position: absolute; top: 24px; right: 24px; }
.stack { display: grid; gap: 16px; }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.shot { margin: 0; border-radius: var(--radius-m); overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.shot figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; font-size: 15px; font-weight: 500; }
.shot figcaption a { color: var(--accent-text); font-weight: 600; text-decoration: none; white-space: nowrap; }
.asset .preview { width: 100%; display: grid; place-items: center; padding: 20px 0 24px; }
.asset .preview img { width: 110px; height: 110px; border-radius: 24px; }
.asset a { color: var(--accent-text); font-weight: 600; text-decoration: none; margin-top: 12px; }
.swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.swatch { border-radius: 18px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.swatch .chip { height: 96px; box-shadow: inset 0 -1px 0 var(--line); }
.swatch .lbl { padding: 12px 14px; font-size: 14px; }
.swatch code { display: block; color: var(--text-2); font-size: 13px; margin-top: 2px; }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 96px 0; }
.notfound .code { font-family: var(--font-round); font-size: clamp(96px, 18vw, 200px); font-weight: 800; line-height: 1; letter-spacing: -0.04em; margin-bottom: 16px; }
.notfound h1 { font-size: clamp(32px, 4.6vw, 56px); letter-spacing: -0.032em; max-width: 18ch; margin: 0 auto; line-height: 1.08; }
.notfound p { margin: 18px auto 0; color: var(--text-2); max-width: 44ch; font-size: 19px; }
.notfound .actions { margin-top: 32px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile, .tile.wide { grid-column: span 1; }
  .tile.wide { min-height: 400px; }
  .includes ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .chapter-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .chapter.flip .chapter-copy { order: 0; justify-self: start; }
  .chapter-copy { max-width: 620px; }
  .stage { min-height: 0; }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 480px; margin: 0 auto; }
  .plan.featured { order: -1; }
  .privacy-grid, .cards-3, .shots { grid-template-columns: minmax(0, 1fr); }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .press-intro { grid-template-columns: minmax(0, 1fr); }
  .press-intro > img { width: 120px; height: 120px; border-radius: 27px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .bento { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .tile { padding: 26px; min-height: 0; }
  .tile.wide { min-height: 0; }
  .includes ul { grid-template-columns: minmax(0, 1fr); }
  .includes { padding: 26px; }
  .plan { padding: 32px 26px 26px; }
  .hero-cta { flex-direction: column; gap: 18px; }
  .stage { padding: 40px 12px; border-radius: 26px; }
  .stage .iphone { --w: min(72vw, 290px); }
  .hero-stage .iphone { --w: min(74vw, 300px); }
  .foot-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .copy-box { padding-right: 30px; padding-bottom: 80px; }
  .copy-btn { top: auto; bottom: 24px; right: auto; left: 30px; }
  .shots { grid-template-columns: minmax(0, 1fr); }
  .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-dl { grid-template-columns: minmax(0, 1fr); }
  .gallery { gap: 14px; }
  .gallery figure { width: 72vw; border-radius: 22px; }
  .gallery-controls { display: none; }
}

/* ---------- Motion and contrast preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav, .mobile { background: #0a0a0f; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --text-2: #3c404b; --line: rgba(12, 14, 24, 0.3); }
  .night { --text-2: #d0d0d8; --line: rgba(255, 255, 255, 0.3); }
}
@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  :root { --text-2: #d0d0d8; --line: rgba(255, 255, 255, 0.3); }
}
@media print {
  .nav, .mobile, footer, .skip { display: none; }
}
