:root {
  --blue: #3452FF;
  --blue-deep: #1B2BA8;
  --pink: #FF008C;
  --pink-soft: #FF5CB8;
  --yellow: #F5FF00;
  --green: #39FF7A;
  --orange: #FF8C1A;
  --violet: #A774FF;
  --bg: #0B0B12;
  --surface: #16161F;
  --surface-2: #1E1E2A;
  --line: rgba(255, 255, 255, 0.08);
  --text: #FFFFFF;
  --muted: rgba(255, 255, 255, 0.64);
  --radius: 24px;
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-wide: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Halftone dots, as on the app icon */
.dots { background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1.6px, transparent 1.8px); background-size: 20px 20px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 18, 0.72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.brand .wordmark { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 18px; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-links .btn-primary, .nav-links .btn-primary:hover { color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 16px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; border: 0;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translate(-2px, -2px); }
.btn:active { transform: translate(2px, 2px); }
.btn-primary { background: var(--pink); color: #fff; box-shadow: 4px 4px 0 var(--blue); }
.btn-primary:hover { box-shadow: 6px 6px 0 var(--blue); }
.btn-ghost { color: var(--text); border: 2px solid #fff; box-shadow: 4px 4px 0 var(--pink); }
.btn-small { min-height: 38px; padding: 0 16px; border-radius: 12px; font-size: 15px; box-shadow: 3px 3px 0 var(--blue); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    linear-gradient(90deg, rgba(11, 11, 18, 0.9) 0%, rgba(11, 11, 18, 0.66) 45%, rgba(11, 11, 18, 0.2) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%),
    url("assets/photos/bouldering-gym.webp") center 30% / cover no-repeat,
    var(--bg);
}
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.06) 1.6px, transparent 1.8px); background-size: 20px 20px; pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px; border-radius: 999px;
  background: var(--bg); border: 2px solid #fff; box-shadow: 3px 3px 0 var(--pink);
  font-size: 14px; font-weight: 700; color: #fff;
}
.badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 12px var(--yellow); margin-left: 6px; }
h1 {
  font-family: var(--font-wide);
  font-size: clamp(40px, 5.4vw, 68px); line-height: 1; letter-spacing: -0.035em; font-weight: 900;
  margin: 24px 0 20px;
}
h1 { text-shadow: 0.05em 0.05em 0 var(--pink); }
h1 .accent { color: var(--yellow); display: block; text-shadow: 0.05em 0.05em 0 var(--blue); }
.hero-wordmark { width: min(360px, 78%); height: auto; margin-bottom: 28px; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 34em; margin: 0 0 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* Device frames */
/* Screenshots are pre-composited into Apple's iPhone 18 Pro bezel (assets/frames) */
.phone { position: relative; aspect-ratio: 1350 / 2760; width: 100%; }
.phone img { width: 100%; height: 100%; object-fit: contain; }
/* Screenshot pre-composited into the Apple Watch bezel (assets/frames) */
.watch { aspect-ratio: 520 / 800; }
.watch img { width: 100%; height: 100%; object-fit: contain; }

.hero-devices { position: relative; height: 620px; }
.hero-devices .phone { position: absolute; width: 250px; }
.hero-devices .p1 { left: 0; top: 70px; transform: rotate(-8deg); }
.hero-devices .p2 { left: 50%; top: 0; transform: translateX(-50%); width: 280px; z-index: 2; }
.hero-devices .p3 { right: 0; top: 70px; transform: rotate(8deg); }
.hero-devices .watch { position: absolute; width: 190px; right: 2%; bottom: -40px; z-index: 3; }

/* Sections */
section { padding: 112px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
h2 { text-shadow: 0.06em 0.06em 0 var(--pink); font-family: var(--font-wide); font-size: clamp(34px, 4.6vw, 52px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 900; margin: 0 0 16px; }
.section-head p { color: var(--muted); font-size: 19px; margin: 0; }

/* Gallery */
.gallery-band { background: linear-gradient(180deg, var(--bg), #10101a 30%, #10101a 70%, var(--bg)); }
.gallery {
  display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px max(24px, calc((100vw - var(--wrap)) / 2 + 24px)) 28px;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.shot { flex: 0 0 auto; width: 250px; scroll-snap-align: center; margin: 0; }
.shot figcaption { margin-top: 16px; text-align: center; font-size: 15px; color: var(--muted); }
.shot figcaption b { display: block; color: var(--text); font-size: 16px; }
.gallery-controls { display: flex; justify-content: center; gap: 10px; margin-top: 8px; }
.round {
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid #fff; background: var(--bg); box-shadow: 3px 3px 0 var(--pink);
  color: var(--text); display: grid; place-items: center; cursor: pointer;
}
.round svg { width: 18px; height: 18px; }

/* How it works: four numbered steps joined by a line */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.step { position: relative; display: flex; flex-direction: column; }
.step-num {
  position: relative; z-index: 1;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); border: 3px solid #fff; box-shadow: 4px 4px 0 var(--pink);
  font-family: var(--font-wide); font-size: 26px; font-weight: 900; margin-bottom: 20px;
}
.step:nth-child(2) .step-num { box-shadow: 4px 4px 0 var(--blue); }
.step:nth-child(3) .step-num { box-shadow: 4px 4px 0 var(--green); }
.step:nth-child(4) .step-num { box-shadow: 4px 4px 0 var(--yellow); }
/* Dashed connector from this step's number to the next one */
.step:not(:last-child)::before {
  content: ""; position: absolute; top: 28px; left: 72px; right: -12px;
  border-top: 3px dashed rgba(255, 255, 255, 0.35);
}
.step h3 { font-family: var(--font-wide); font-size: 22px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 900; margin: 0 0 8px; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }
.step-loop {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  padding: 5px 12px; border-radius: 999px; border: 2px solid var(--yellow);
  color: var(--yellow); font-size: 14px; font-weight: 700;
}
.step-loop svg { width: 16px; height: 16px; flex: none; }
.step-media { margin-top: auto; padding-top: 28px; height: 440px; display: flex; align-items: flex-end; justify-content: center; }
.step-media .phone { width: 200px; }
.step-media .watch { width: 220px; margin-bottom: 24px; }
/* Start and climb steps: iPhone behind, Watch in front */
.step-pair { position: relative; }
.step-media.step-pair .phone { width: 180px; margin-right: 56px; }
.step-media.step-pair .watch { position: absolute; width: 130px; right: 0; bottom: 0; margin: 0; z-index: 2; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.5)); }
/* Review step: session top in front, charts and a climb fanned out behind */
.step-fan { position: relative; }
.step-fan .phone { position: absolute; bottom: 0; }
.step-media.step-fan .f-center { position: relative; width: 170px; z-index: 2; }
.step-media.step-fan .f-left, .step-media.step-fan .f-right { width: 130px; bottom: 24px; }
.step-fan .f-left { left: 50%; margin-left: -82px; transform: translateX(-50%) rotate(-9deg); }
.step-fan .f-right { left: 50%; margin-left: 82px; transform: translateX(-50%) rotate(9deg); }

/* Watch: rope climber photo, text over the sky */
.photo-band {
  position: relative; padding: 140px 0;
  background:
    linear-gradient(90deg, rgba(11, 11, 18, 0) 30%, rgba(11, 11, 18, 0.55) 100%),
    url("assets/photos/rope-sky.webp") left center / cover no-repeat,
    #2A8FC4;
}
.watch-strip { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; max-width: 780px; margin-left: auto; }
/* Three Watches, the workout screen in front. Widths keep the 42 and 46 mm frames at the same scale. */
.watch-trio { display: flex; align-items: center; justify-content: center; }
.watch-trio .watch { flex: none; }
.watch-trio .w-left, .watch-trio .w-right { position: relative; z-index: 1; }
.watch-trio .w-left { width: 130px; margin-right: -52px; transform: translateY(18px) rotate(-12deg); }
.watch-trio .w-right { width: 140px; aspect-ratio: 560 / 880; margin-left: -52px; transform: translateY(18px) rotate(12deg); }
.watch-trio .w-center { width: 170px; position: relative; z-index: 2; }
.watch-strip h3 { font-family: var(--font-wide); font-size: 34px; letter-spacing: -0.02em; margin: 0 0 12px; font-weight: 900; text-shadow: 0.06em 0.06em 0 var(--pink); }
.watch-strip p { color: #fff; margin: 0 0 12px; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35); }

/* Privacy band */
.privacy-band { background: var(--blue); position: relative; overflow: hidden; }
.privacy-band::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.09) 1.6px, transparent 1.8px); background-size: 20px 20px; }
.privacy-band .wrap { position: relative; }
.privacy-band .section-head p { color: rgba(255, 255, 255, 0.82); }
.privacy-band .pgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 920px; margin: 0 auto; }
.pcard { background: var(--bg); border: 2px solid #fff; border-radius: var(--radius); padding: 28px; box-shadow: 6px 6px 0 var(--pink); }
.pcard h3 { margin: 0 0 8px; font-size: 20px; display: flex; align-items: center; gap: 10px; }
.pcard h3 svg { width: 22px; height: 22px; color: var(--yellow); flex: none; }
.pcard p { margin: 0; color: rgba(255, 255, 255, 0.84); }
.privacy-band .more { text-align: center; margin-top: 36px; }
.privacy-band .more a { font-weight: 700; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 2px solid #2C2C3A; border-radius: 18px; padding: 0 24px; box-shadow: 4px 4px 0 #2C2C3A; }
.faq details[open] { border-color: var(--blue); box-shadow: 4px 4px 0 var(--blue); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 0; font-weight: 700; font-size: 17px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; font-weight: 400; color: var(--pink-soft); transition: transform 0.2s ease; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--muted); }

/* Final CTA */
.final { text-align: center; }
.final-card {
  position: relative; overflow: hidden; border-radius: 36px; padding: 80px 24px; border: 3px solid #fff; box-shadow: 12px 12px 0 var(--yellow);
  background:
    linear-gradient(135deg, rgba(255, 0, 140, 0.88), rgba(180, 0, 122, 0.78) 45%, rgba(52, 82, 255, 0.9)),
    url("assets/photos/red-wall.webp") center 40% / cover no-repeat;
}
.final-card::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.1) 1.6px, transparent 1.8px); background-size: 20px 20px; }
.final-card > * { position: relative; }
.final-card .final-wordmark { width: min(420px, 80%); height: auto; margin: 0 auto 24px; }
.final-card p { color: rgba(255, 255, 255, 0.9); font-size: 18px; margin: 0 0 28px; }
.final-card .btn-primary { background: #fff; color: #0B0B12; box-shadow: 5px 5px 0 #0B0B12; }

/* Footer */
footer { padding: 40px 0 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand img { height: 22px; width: auto; }
.legal { flex-basis: 100%; font-size: 12px; opacity: 0.7; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* Document pages (privacy, support) */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 24px 96px; }
.doc .back { display: inline-block; color: var(--muted); text-decoration: none; margin-bottom: 32px; font-size: 15px; }
.doc .back:hover { color: var(--text); }
.doc h1 { font-size: clamp(40px, 6vw, 56px); margin: 0 0 12px; }
.doc h2 { font-size: 26px; margin: 48px 0 12px; letter-spacing: -0.01em; }
.doc p, .doc li { color: rgba(255, 255, 255, 0.78); }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--text); }
.doc a { color: var(--pink-soft); }
.doc .updated { color: var(--muted); font-size: 15px; }

/* Responsive */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 56px; }
  .hero-devices { height: 520px; max-width: 520px; margin: 0 auto; width: 100%; }
  .hero-devices .phone { width: 200px; }
  .hero-devices .p2 { width: 230px; }
  .hero-devices .watch { width: 150px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 56px; }
  .step:nth-child(2)::before { display: none; }
}
@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; row-gap: 40px; }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; }
  .step-num { grid-row: 1 / span 2; margin-bottom: 0; }
  .step:not(:last-child)::before, .step:nth-child(2)::before {
    display: block; top: 64px; bottom: -36px; left: 26px; right: auto; border-top: 0; border-left: 3px dashed rgba(255, 255, 255, 0.35);
  }
  .step-media { grid-column: 2; height: auto; padding-top: 20px; justify-content: flex-start; }
  .step-media .phone { width: 180px; }
  .step-media .watch { width: 190px; margin-bottom: 0; }
  .step-media.step-pair { grid-column: 1 / -1; justify-content: center; }
  .step-media.step-pair .phone { width: 160px; margin-right: 60px; }
  .step-media.step-pair .watch { width: 120px; right: calc(50% - 140px); }
  .step-media.step-fan { grid-column: 1 / -1; justify-content: center; }
  .step-media.step-fan .f-center { width: 150px; }
  .step-media.step-fan .f-left, .step-media.step-fan .f-right { width: 120px; bottom: 16px; }
  .step-fan .f-left { margin-left: -90px; }
  .step-fan .f-right { margin-left: 90px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  section { padding: 80px 0; }
  .nav-links .hide-sm { display: none; }
  .nav-links { gap: 10px; }
  .hero-devices { height: 420px; }
  .hero-devices .phone { width: 150px; top: 50px; }
  .hero-devices .p2 { width: 180px; top: 0; }
  .hero-devices .watch { width: 118px; right: 0; }
  .privacy-band .pgrid { grid-template-columns: 1fr; }
  .shot { width: 210px; }
  .photo-band { padding: 260px 0 64px; background:
      linear-gradient(180deg, rgba(11, 11, 18, 0) 25%, rgba(11, 11, 18, 0.85) 60%, var(--bg) 100%),
      url("assets/photos/rope-sky.webp") 20% top / auto 520px no-repeat, #2A8FC4; }
  .watch-strip { grid-template-columns: 1fr; text-align: center; gap: 24px; }
  .watch-trio .w-left { width: 100px; margin-right: -40px; }
  .watch-trio .w-right { width: 108px; margin-left: -40px; }
  .watch-trio .w-center { width: 136px; }
  .hero { background:
      linear-gradient(180deg, rgba(11, 11, 18, 0.9) 0%, rgba(11, 11, 18, 0.8) 55%, var(--bg) 100%),
      url("assets/photos/bouldering-gym.webp") 70% top / auto 900px no-repeat, var(--bg); }
  .final-card { padding: 56px 20px; border-radius: 28px; }
  .cta-row .btn { flex: 1 1 100%; }
}
.doc code { font-size: 0.9em; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }
