/* Ascentiq – website. Colors of the app (ios-native Design/Theme.swift). Light for everyone (Leon);
   ?theme=dark (data-theme on <html>) shows the dark version as an internal preview. */
@font-face { font-family: "Satoshi"; src: url("/assets/fonts/Satoshi-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/assets/fonts/Satoshi-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/assets/fonts/Satoshi-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --bg: #ffffff;
  --panel: #f4f4f5;
  --surface: #ffffff;
  --surface-2: #f4f4f5;
  --border: rgba(12, 12, 13, 0.09);
  --fg: #0c0c0d;
  --fg-2: rgba(12, 12, 13, 0.62);
  --muted: #7c7c84;
  --link: #0a6fe0;
  --inverted: #0c0c0d;
  --inverted-fg: #ffffff;
  --run: #22c55e;
  --bike: #eab308;
  --swim: #3b82f6;
  --strength: #8b5cf6;
  --sleep: #6366f1;
  --community: #ec4899;
  --gold-light: #f7d774;
  --gold-mid: #f0b429;
  --gold-deep: #c98a04;
  --tint: 0.09;
  --shadow: 0 30px 60px -20px rgba(12, 20, 40, 0.28), 0 12px 24px -12px rgba(12, 20, 40, 0.18);
  --nav-bg: rgba(255, 255, 255, 0.72);
  --draft-bg: #fff7e0;
  --draft-fg: #7a5600;
  --radius-xl: 32px;
  --max: 1180px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0a0a0b; --panel: #161618; --surface: #161618; --surface-2: #1c1c1f;
  --border: rgba(255, 255, 255, 0.10); --fg: #f5f5f6; --fg-2: rgba(245, 245, 246, 0.64); --muted: #8e8e96;
  --link: #4da3ff; --inverted: #f5f5f6; --inverted-fg: #0c0c0d; --tint: 0.16;
  --shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.8), 0 12px 24px -12px rgba(0, 0, 0, 0.6);
  --nav-bg: rgba(22, 22, 24, 0.72); --draft-bg: #2a2210; --draft-fg: #f2c94c;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 6px; }
b, strong { font-weight: 700; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }

/* Logo mark (the app icon's Λ with head) */
.mark { width: 1em; height: 1em; flex: none; }

/* Navigation: a floating pill */
.nav {
  position: fixed; top: 12px; left: 50%; z-index: 50;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px;
  padding: 6px 6px 6px 16px;
  border-radius: 999px;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--border);
  box-shadow: 0 8px 30px -12px rgba(0, 0, 0, 0.25);
  width: max-content; max-width: calc(100% - 24px);
}
.nav .brand { display: flex; align-items: center; gap: 8px; color: var(--fg); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; margin-right: 8px; }
.nav .brand:hover { text-decoration: none; }
.nav .brand .mark { font-size: 22px; }
.nav .links { display: none; gap: 2px; }
.nav .links a { color: var(--fg-2); font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 999px; }
.nav .links a:hover { color: var(--fg); text-decoration: none; background: var(--panel); }
@media (min-width: 760px) { .nav .links { display: flex; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--inverted); color: var(--inverted-fg);
  font-size: 17px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s;
}
.btn:hover { text-decoration: none; transform: scale(1.03); }
.btn:active { transform: scale(0.98); }
.btn svg { width: 18px; height: 18px; }
.btn.small { height: 40px; padding: 0 16px; font-size: 15px; }
.note { margin-top: 14px; font-size: 14px; font-weight: 500; color: var(--muted); }

/* Typography */
.kicker { display: block; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; color: var(--accent, var(--muted)); }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; }
.h1 { font-size: clamp(48px, 11.5vw, 96px); letter-spacing: -0.045em; line-height: 0.98; }
.h2 { font-size: clamp(36px, 7.4vw, 66px); letter-spacing: -0.04em; }
.h3 { font-size: clamp(28px, 4.6vw, 40px); }
.lead { font-size: clamp(18px, 2.3vw, 22px); line-height: 1.45; color: var(--fg-2); font-weight: 500; letter-spacing: -0.01em; max-width: 36rem; margin: 18px 0 0; }
.center { text-align: center; }
.center .lead, .hero .lead, .pro .lead, .final .lead, .band .lead { margin-left: auto; margin-right: auto; }

/* Hero */
.hero { position: relative; padding: 128px 0 0; text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -20% auto; height: 120%; z-index: -1;
  background:
    radial-gradient(40% 40% at 20% 55%, rgba(34, 197, 94, calc(var(--tint) * 1.6)), transparent 70%),
    radial-gradient(35% 40% at 50% 70%, rgba(59, 130, 246, calc(var(--tint) * 1.6)), transparent 70%),
    radial-gradient(40% 40% at 80% 55%, rgba(139, 92, 246, calc(var(--tint) * 1.6)), transparent 70%),
    radial-gradient(30% 30% at 65% 30%, rgba(234, 179, 8, calc(var(--tint) * 1.1)), transparent 70%);
  filter: blur(10px);
}
.hero .logo { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 26px; color: var(--fg); }
.hero .logo .mark { font-size: 34px; }
.hero .lead { margin-top: 22px; }
.hero .cta { margin-top: 34px; }
.hero-stage { position: relative; height: clamp(500px, 120vw, 760px); margin-top: 56px; }
@media (min-width: 760px) { .hero-stage { height: 720px; } }
/* The slots place the phones; the phones inside fade in and float. */
.hero-stage .slot { position: absolute; left: 50%; top: 0; }
.hero-stage .p-main { transform: translateX(-50%); z-index: 3; }
.hero-stage .p-main .phone { --w: clamp(250px, 64vw, 330px); }
.hero-stage .p-left, .hero-stage .p-right { top: 70px; z-index: 2; }
.hero-stage .p-left .phone, .hero-stage .p-right .phone { --w: clamp(200px, 50vw, 280px); }
.hero-stage .p-left { transform: translateX(calc(-50% - min(60vw, 330px))) rotate(-6deg); }
.hero-stage .p-right { transform: translateX(calc(-50% + min(60vw, 330px))) rotate(6deg); }
@media (max-width: 759px) {
  .hero-stage .p-left { transform: translateX(calc(-50% - 52vw)) rotate(-6deg); }
  .hero-stage .p-right { transform: translateX(calc(-50% + 52vw)) rotate(6deg); }
}
.hero-stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(transparent, var(--bg)); z-index: 5; pointer-events: none; }

/* iPhone frame (own drawing, no device images): a thin metal band (.phone), the black bezel
   (.screen) and the display (.display) with the app screenshot — proportions of a real iPhone 17. */
.phone {
  --w: 300px;
  width: var(--w);
  border-radius: calc(var(--w) * 0.17);
  padding: calc(var(--w) * 0.012);
  background: linear-gradient(145deg, #4a4a4f, #1a1a1c 35%, #0f0f10 60%, #3a3a3e);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  position: relative;
  flex: none;
}
.phone::before { content: ""; position: absolute; right: calc(var(--w) * -0.009); top: 26%; width: calc(var(--w) * 0.012); height: 11%; border-radius: 0 3px 3px 0; background: #2a2a2d; }
.phone .screen { border-radius: calc(var(--w) * 0.158); padding: calc(var(--w) * 0.034); background: #000; }
.phone .display { position: relative; aspect-ratio: 1206 / 2622; border-radius: calc(var(--w) * 0.126); overflow: hidden; background: #000; container-type: inline-size; }
.phone .display img, .phone .display picture { display: block; width: 100%; height: 100%; object-fit: cover; }
/* The island sits on the display, like on the device. */
.phone .display::after { content: ""; position: absolute; top: 3.1cqw; left: 50%; transform: translateX(-50%); width: 31%; height: 9.2cqw; border-radius: 999px; background: #000; }

/* Live countdown drawn over the overview screen (digits left out of that screenshot).
   Positions in % of the screen, sizes in cqw: 1 app point = 100/402 cqw (iPhone 17, 402 pt wide). */
.countdown { position: absolute; inset: 0; pointer-events: none; color: #0c0c0d; font-weight: 700; font-variant-numeric: tabular-nums; }
:root[data-theme="dark"] .countdown { color: #f5f5f6; }
.countdown span { position: absolute; line-height: 1; white-space: nowrap; }
.countdown .cd-days { font-size: calc(64 * 100cqw / 402); letter-spacing: -0.05em; }
.countdown .cd-box { font-size: calc(26 * 100cqw / 402); letter-spacing: -0.035em; transform: translateX(-50%); }

/* Sections */
section { position: relative; }
.section { padding: 96px 0; }
@media (min-width: 900px) { .section { padding: 140px 0; } }
.section-head { max-width: 760px; }
.section-head.center { margin: 0 auto; }

.panel {
  position: relative; overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent, var(--muted)) calc(var(--tint) * 100%), var(--panel)), var(--panel) 70%);
  border: 1px solid var(--border);
}

/* Split: text + phones */
.split { display: grid; gap: 48px; align-items: center; padding: 48px 24px 0; }
.split .text { max-width: 30rem; }
.split .art { display: flex; justify-content: center; gap: 20px; align-items: flex-end; min-height: 100%; }
.split .art .phone { --w: clamp(230px, 62vw, 300px); margin-bottom: -90px; }
.split .art .pair-b { --w: clamp(200px, 52vw, 260px); margin-bottom: -150px; }
/* Narrow: one phone whose two screens take turns (site.js); wide: two phones side by side. */
.split .art .pair-a, .split .art .pair-b { display: none; }
.swapbox { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.swap .slides { display: flex; width: 200%; height: 100%; transition: transform 560ms cubic-bezier(0.32, 0.72, 0, 1); touch-action: pan-y; }
.swap .slide { width: 50%; height: 100%; flex: none; }
.swap.at-1 .slides { transform: translateX(-50%); }
/* Reduced motion: the screens cross-fade instead of sliding. */
.swap.fade .slides { position: relative; width: 100%; transition: none; transform: none; }
.swap.fade .slide { position: absolute; inset: 0; width: 100%; transition: opacity 600ms ease; }
.swap.fade .slide + .slide { opacity: 0; }
.swap.fade.at-1 .slide:first-child { opacity: 0; }
.swap.fade.at-1 .slide + .slide { opacity: 1; }
.dots { display: flex; gap: 8px; order: -1; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--fg); opacity: 0.22; transition: opacity 300ms ease; }
.dots i.on { opacity: 0.85; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; padding: 72px 72px 0; min-height: 640px; }
  .split .text { padding-bottom: 72px; }
  .split.reverse .text { order: 2; }
  .split .art .pair-a, .split .art .pair-b { display: block; }
  .swapbox { display: none; }
}
.split .kicker + .h2 { margin-top: 12px; }
.split .h2 { font-size: clamp(36px, 4.6vw, 54px); hyphens: manual; }
.split .lead { font-size: 19px; }

/* Points with a check in the section's color */
.points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.points li { position: relative; padding-left: 32px; font-size: 16px; font-weight: 500; color: var(--fg-2); line-height: 1.45; }
.points li b { color: var(--fg); }
.points li::before { content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: color-mix(in srgb, var(--accent, var(--muted)) 18%, transparent); }
.points li::after {
  content: ""; position: absolute; left: 3px; top: 4px; width: 14px; height: 14px; background: var(--accent, var(--muted));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Hybrid IQ: the app's card (Community/HybridIqCard.swift), 1 pt = 1 px */
.iq { display: grid; gap: 40px; align-items: center; margin-top: 56px; justify-items: center; }
@media (min-width: 1000px) { .iq { grid-template-columns: 1fr auto 1fr; } }
.iq .phone { --w: clamp(250px, 66vw, 310px); }
.iqcard { width: 100%; max-width: 362px; padding: 20px; border-radius: 24px; background: var(--surface-2); text-align: left; }
.iqdial { position: relative; width: 220px; height: 189.2px; margin: 0 auto; }
.iqdial svg { position: absolute; inset: 0; width: 220px; height: 189.2px; overflow: visible; }
.iqdial .track { stroke: var(--border); }
.iqdial .fill { transition: stroke-dashoffset 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
.iqdial .mark140 { fill: var(--fg); opacity: 0.35; }
.iqdial .lbl140 { fill: var(--muted); font-size: 10px; font-weight: 700; }
.iqdial .center { position: absolute; left: 0; right: 0; top: calc(94.6px - 6px); transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; }
.iqdial .cap { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: var(--muted); line-height: 1.2; }
.iqdial .num { font-size: 58px; font-weight: 700; letter-spacing: -2.9px; line-height: 1.15; color: var(--fg); font-variant-numeric: tabular-nums; transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
.iqdial .tier { margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--muted); line-height: 1.2; }
.js .iqcard:not(.in) .num { transform: scale(0.8); opacity: 0; }
.iqcard .since { margin-top: -4px; text-align: center; font-size: 12px; font-weight: 500; color: var(--muted); }
.iqparts { display: grid; gap: 14px; margin-top: 24px; }
.iqpart .row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 13px; line-height: 1.25; }
.iqpart .row b { color: var(--fg); }
.iqpart .row span { color: var(--muted); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iqpart .bar { margin-top: 6px; height: 6px; border-radius: 99px; background: var(--border); overflow: hidden; }
.iqpart .bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--gold-mid); transition: width 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.in .iqpart .bar i { width: var(--v); }

/* Three sport tiles */
.tiles { display: grid; gap: 16px; margin-top: 56px; }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.tile { padding: 36px 28px 0; height: 600px; display: flex; flex-direction: column; }
.tile .h3 { font-size: 34px; margin-top: 10px; }
.tile p { margin: 10px 0 0; color: var(--fg-2); font-size: 17px; font-weight: 500; line-height: 1.45; }
.tile .phone { --w: 270px; margin: 36px auto 0; }

/* Feature grid with plain line icons */
.grid { display: grid; gap: 16px; margin-top: 56px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card { padding: 28px; border-radius: 24px; background: var(--panel); border: 1px solid var(--border); }
.card .ic { display: block; width: 28px; height: 28px; color: var(--fg); }
.card .ic svg { width: 28px; height: 28px; }
.card h3 { font-size: 20px; letter-spacing: -0.02em; margin-top: 18px; }
.card p { margin: 6px 0 0; font-size: 15px; font-weight: 500; color: var(--fg-2); }

/* Sources */
.sources { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 40px; }
.source { display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 999px; background: var(--panel); border: 1px solid var(--border); font-weight: 700; font-size: 17px; letter-spacing: -0.015em; }
.source small { font-weight: 700; font-size: 12px; padding: 3px 8px; border-radius: 99px; background: var(--border); color: var(--fg-2); }
/* Apple's badge as delivered: 44 px high, at least 11 px clear space (a quarter of its height). */
.badge-apple-health { display: block; height: 44px; width: auto; margin: 0 11px; }
/* Garmin's tag on its own, with the clear space of the file, unchanged — only once Garmin has
   approved us (features.json). */
.source-tag { display: inline-flex; align-items: center; gap: 8px; }
.source-tag .logo-garmin { height: 52px; width: auto; }
.source-tag small { font-weight: 700; font-size: 12px; padding: 3px 8px; border-radius: 99px; background: var(--border); color: var(--fg-2); }

/* Dark band (privacy) – dark in both themes */
.band { background: #0c0c0e; border: 1px solid rgba(255, 255, 255, 0.08); color: #f5f5f6; border-radius: var(--radius-xl); padding: 80px 24px; text-align: center; overflow: hidden; position: relative; --fg: #f5f5f6; --fg-2: rgba(245, 245, 246, 0.64); --panel: #18181b; --border: rgba(255, 255, 255, 0.09); --muted: #8e8e96; }
:root[data-theme="dark"] .band { background: #121215; }
.band::before { content: ""; position: absolute; inset: auto -10% -60% -10%; height: 100%; background: radial-gradient(50% 60% at 50% 100%, rgba(59, 130, 246, 0.28), transparent 70%); pointer-events: none; }
.band .grid { text-align: left; position: relative; }
.band .card { background: rgba(255, 255, 255, 0.04); }
.lock { width: 64px; height: 64px; margin: 0 auto 28px; color: #f5f5f6; opacity: 0.9; }
@media (min-width: 900px) { .band { padding: 120px 72px; } }

/* Pro */
.pro { padding: 64px 24px; text-align: center; }
.pro .badge { display: inline-block; padding: 6px 12px; border-radius: 99px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; background: var(--inverted); color: var(--inverted-fg); }
.pro .points { max-width: 30rem; margin: 30px auto 0; text-align: left; }

/* Closing CTA */
.final { text-align: center; padding: 120px 0 140px; }
.final .mark { font-size: 64px; margin: 0 auto 28px; display: block; }
.final .cta { margin-top: 34px; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 40px 0 48px; font-size: 14px; font-weight: 500; color: var(--fg-2); }
.footer .row { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; }
.footer .brand { display: flex; align-items: center; gap: 8px; color: var(--fg); font-weight: 700; font-size: 16px; }
.footer .brand .mark { font-size: 20px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer a { color: var(--fg-2); }
.footer a:hover { color: var(--fg); text-decoration: none; }
.footer .tm { flex-basis: 100%; margin: 6px 0 0; font-size: 12px; line-height: 1.5; }

/* Reveal moves with `translate`, floating with `transform`: both can sit on one element. */
.js .reveal { opacity: 0; translate: 0 28px; transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), translate 0.9s cubic-bezier(0.16, 1, 0.3, 1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; translate: 0 0; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.float { animation: float 7s ease-in-out infinite; animation-delay: var(--fd, 0s); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; translate: none; transition: none; }
  .float { animation: none; }
  .iqdial .fill, .iqdial .num, .iqpart .bar i, .btn { transition: none; }
  .js .iqcard:not(.in) .num { transform: none; opacity: 1; }
}

/* Legal pages */
.legal { width: 100%; max-width: 42rem; margin: 0 auto; padding: 96px 16px 64px; }
.legal h1 { margin: 8px 0 4px; font-size: 38px; letter-spacing: -0.04em; line-height: 1.1; }
.legal .updated { margin: 0; font-size: 13px; font-weight: 500; color: var(--muted); }
.legal h2 { margin: 32px 0 10px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 20px; letter-spacing: -0.025em; line-height: 1.25; }
.legal p, .legal li { font-size: 15px; font-weight: 500; line-height: 1.65; color: var(--fg-2); }
.legal strong { color: var(--fg); }
.legal ul { padding-left: 20px; }
.legal li + li { margin-top: 4px; }
.draft { margin: 20px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--draft-bg); color: var(--draft-fg) !important; font-size: 14px !important; line-height: 1.5; }
.draft strong { color: inherit; }
.check { padding: 1px 6px; border-radius: 6px; background: var(--draft-bg); color: var(--draft-fg); font-size: 13px; font-weight: 700; }
