/* Pacemaker website. Same structure as the Walker site, race-orange palette. Hand-written, no build step. */

:root {
  --ink: #0a0b12;
  --ink-2: #10121c;
  --ink-3: #181b29;
  --line-d: rgba(232, 236, 255, 0.1);
  --text-d: #f1f2f7;
  --muted-d: rgba(226, 230, 245, 0.64);

  --accent: #ff5a36;
  --accent-2: #ff7a5c;
  --accent-deep: #c23b17;
  --gold: #ffc53d;
  --go: #3ddc84;
  --stop: #ff3b4a;

  --paper: #faf9f7;
  --sand: #f1ece6;
  --text-l: #12131a;
  --muted-l: #5b5d68;
  --line-l: rgba(18, 19, 32, 0.12);

  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text-d);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); font-weight: 800; line-height: 0.98; letter-spacing: -0.035em; }
h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.2; }
p { margin: 0; }
strong { font-weight: 650; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.section--light :focus-visible, .section--sand :focus-visible { outline-color: var(--accent-deep); }
.section--light .guide :focus-visible, .section--light .release--latest :focus-visible { outline-color: var(--accent); }

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: 14px 22px; border-radius: 999px;
  font: 600 1rem/1 var(--body); text-decoration: none;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: 10px 16px; font-size: .92rem; }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: #ff7a5c; }
.btn--ghost { border: 1.5px solid rgba(255,255,255,.28); color: var(--text-d); }
.btn--ghost:hover { border-color: var(--accent); }

.store-badge { display: inline-block; transition: transform .2s ease; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge img { height: 56px; width: auto; }
.store-badge--lg img { height: 64px; }

.eyebrow {
  font: 700 .8rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.section--light .eyebrow, .section--sand .eyebrow { color: var(--accent-deep); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted-d); max-width: 36em; margin-top: 20px; }
.section--light .lede, .section--sand .lede { color: var(--muted-l); }

/* ───────── Nav ───────── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(10, 11, 18, .78); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-color: var(--line-d); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 1.35rem/1 var(--display); text-decoration: none; letter-spacing: -0.02em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #000; box-shadow: inset 0 0 0 1.5px rgba(255,90,54,.5); }
.brand-mark img { width: 24px; height: 24px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 12px; border-radius: 999px; text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--muted-d); transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text-d); background: rgba(255,255,255,.06); }
.nav-menu { display: none; }
@media (max-width: 880px) {
  .nav-inner { gap: 12px; }
  .nav-inner > .btn { margin-left: auto; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 2px; margin: 0; padding: 8px var(--gutter) 18px;
    max-height: calc(100vh - 68px); max-height: calc(100dvh - 68px); overflow-y: auto; overscroll-behavior: contain;
    background: rgba(10, 11, 18, .96); border-bottom: 1px solid var(--line-d);
    backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  }
  .nav.is-open .nav-links { display: flex; }
  .nav.is-open { background: rgba(10, 11, 18, .96); border-color: var(--line-d); }
  .nav-links a { padding: 13px 12px; font-size: 1.05rem; color: var(--text-d); border-radius: 12px; }
  .nav-menu {
    display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin-right: -8px; padding: 0;
    border: 0; border-radius: 12px; background: transparent; color: var(--text-d); cursor: pointer;
  }
  .nav-menu-bars, .nav-menu-bars::before, .nav-menu-bars::after {
    display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s ease, background .25s ease;
  }
  .nav-menu-bars { position: relative; }
  .nav-menu-bars::before, .nav-menu-bars::after { content: ""; position: absolute; left: 0; }
  .nav-menu-bars::before { top: -6px; }
  .nav-menu-bars::after { top: 6px; }
  .nav.is-open .nav-menu-bars { background: transparent; }
  .nav.is-open .nav-menu-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav.is-open .nav-menu-bars::after { transform: translateY(-6px) rotate(-45deg); }
}

/* ───────── Hero ───────── */
.hero {
  position: relative; overflow: hidden;
  padding: 140px 0 96px;
  background:
    radial-gradient(60% 70% at 78% 45%, rgba(255, 90, 54, .16), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(255, 197, 61, .10), transparent 70%),
    var(--ink);
}
.topo {
  position: absolute; inset: -80px -5%; /* fixed top offset so font swap doesn't shift it (CLS) */
  background: var(--accent);
  -webkit-mask: url(img/lanes.svg) center / cover no-repeat;
          mask: url(img/lanes.svg) center / cover no-repeat;
  opacity: .1; pointer-events: none;
}
.topo--soft { opacity: .06; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; gap: 48px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 10px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line-d);
  font-size: .9rem; font-weight: 500; text-decoration: none; color: var(--text-d);
  transition: border-color .2s;
}
.pill:hover { border-color: var(--accent); }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255,90,54,.2); }
.hero-title {
  margin: 28px 0 0;
  font-size: clamp(3.4rem, 8.6vw, 7.4rem); font-weight: 800; line-height: .9; letter-spacing: -0.045em;
}
.hl {
  background: linear-gradient(100deg, var(--accent) 10%, #ffc53d 60%, var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lede { margin-top: 28px; font-size: clamp(1.1rem, 1.7vw, 1.3rem); color: var(--muted-d); max-width: 30em; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 36px; }
.bga { display: inline-block; margin-top: 22px; opacity: .8; transition: opacity .2s; }
.bga:hover { opacity: 1; }
.bga img { height: 44px; width: auto; }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 460px; }
.ripples { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.ripples span {
  position: absolute; width: min(78%, 420px); aspect-ratio: 1; border-radius: 50%;
  border: 1.5px solid rgba(255,90,54,.45);
  animation: ripple 6s cubic-bezier(.2,.6,.3,1) infinite;
  opacity: 0;
}
.ripples span:nth-child(2) { animation-delay: 2s; }
.ripples span:nth-child(3) { animation-delay: 4s; }
@keyframes ripple { 0% { transform: scale(.9); opacity: .7; } 100% { transform: scale(1.65); opacity: 0; } }

/* ───────── Watch ───────── */
.watch { position: relative; width: var(--watch, 380px); aspect-ratio: 1; flex: none; }
.watch--hero { --watch: clamp(260px, 36vw, 430px); animation: float 7s ease-in-out infinite; }
.watch--explore { --watch: clamp(260px, 32vw, 400px); }
@keyframes float { 50% { transform: translateY(-12px) rotate(-1deg); } }
/* Case details behind the bezel: strap, lugs and side buttons (Garmin-style: three left, two right) */
.watch-strap {
  pointer-events: none;
  position: absolute; left: 29%; right: 29%; top: -24%; bottom: -24%; border-radius: 14px;
  background: linear-gradient(90deg, #121513, #262c29 18%, #2e3431 50%, #262c29 82%, #121513);
  -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent);
          mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent);
}
.watch-lugs {
  pointer-events: none;
  position: absolute; left: 24%; right: 24%; top: -6%; bottom: -6%; border-radius: 22% / 12%;
  background: linear-gradient(90deg, #1c201e, #5f6763 22%, #3b413e 50%, #5f6763 78%, #1c201e);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.watch-btn {
  pointer-events: none;
  position: absolute; left: 50%; top: 50%;
  width: 7%; height: 11.5%; margin: -5.75% 0 0 -3.5%;
  transform: rotate(var(--a)) translateX(calc(var(--watch) * .5));
  border-radius: 2px 7px 7px 2px;
  background:
    repeating-linear-gradient(90deg, transparent 0 3px, rgba(0,0,0,.22) 3px 4px) 60% 0 / 40% 100% no-repeat,
    linear-gradient(#171a19, #6d7571 28%, #4a514d 55%, #141716);
  box-shadow: inset -1px 0 0 rgba(255,255,255,.12), 0 2px 4px rgba(0,0,0,.5);
}
.watch-btn--start { background:
    linear-gradient(90deg, transparent 72%, var(--accent) 72% 84%, transparent 84%),
    linear-gradient(#171a19, #6d7571 28%, #4a514d 55%, #141716); }
.watch-bezel {
  position: absolute; inset: 0; border-radius: 50%;
  padding: 7.5%;
  background:
    radial-gradient(circle at 50% 50%, #050505 63%, transparent 63.5%),
    conic-gradient(from 210deg, #2a2f2c, #7e8682 12%, #2a2e2c 28%, #545b57 46%, #1d201f 62%, #6c7470 82%, #2a2f2c);
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.12),
    inset 0 0 0 9px rgba(0,0,0,.25),
    0 40px 90px -20px rgba(0,0,0,.75),
    0 0 0 1px rgba(0,0,0,.6);
}
.watch-bezel::after {
  content: ""; position: absolute; inset: 7.5%; border-radius: 50%; pointer-events: none;
  background: linear-gradient(140deg, rgba(255,255,255,.14), transparent 38%);
}
.screen { width: 100%; height: 100%; border-radius: 50%; display: block; overflow: hidden; }

/* Screen styles live in the Pacemaker block at the end of this file. */

/* ───────── Stats band ───────── */
.stats { background: var(--accent); color: var(--ink); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 20px; display: flex; flex-direction: column; gap: 4px; border-left: 1.5px solid rgba(10,11,18,.16); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-n { font: 800 clamp(2.2rem, 4.4vw, 3.6rem)/1 var(--display); letter-spacing: -0.04em; }
.stat-l { font-weight: 600; font-size: .95rem; opacity: .75; }

/* ───────── Sections ───────── */
.section { position: relative; padding: clamp(80px, 11vw, 140px) 0; overflow: clip; }
.section--dark { background: var(--ink); }
.section--light { background: var(--paper); color: var(--text-l); }
.section--sand { background: var(--sand); color: var(--text-l); }
.section--light a, .section--sand a { color: var(--accent-deep); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.section-head { margin-bottom: clamp(40px, 6vw, 72px); }
.section-head--center { text-align: center; }
.section-head--center .lede { margin-left: auto; margin-right: auto; }
.section-head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

/* ───────── Explore (interactive watch) ───────── */
.explore { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.explore-watch { position: sticky; top: 110px; display: flex; flex-direction: column; align-items: center; gap: 36px; }
.toggles { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.toggle {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 14px; border-radius: 999px; cursor: pointer;
  background: var(--ink-3); border: 1px solid var(--line-d); color: var(--text-d);
  font: 500 .9rem/1 var(--body); transition: border-color .2s, background .2s;
}
.toggle:hover { border-color: rgba(255,90,54,.5); }
.toggle-k { color: var(--muted-d); }
.toggle-v { display: inline-flex; flex-direction: column; align-items: center; font-weight: 700; min-width: 3.2em; padding: 5px 9px; border-radius: 999px; background: rgba(255,255,255,.08); text-align: center; }
/* Invisible copies of both labels keep the pill at the width of the longer one, so toggling never moves anything */
.toggle-v::before, .toggle-v::after { content: attr(data-on); height: 0; overflow: hidden; visibility: hidden; }
.toggle-v::after { content: attr(data-off); }
.toggle[aria-pressed="true"] .toggle-v { background: var(--accent); color: var(--ink); }

.explore-list { list-style: none; margin: 0; padding: 0; counter-reset: ex; }
.explore-list li + li { border-top: 1px solid var(--line-d); }
.explore-list button {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%;
  display: grid; grid-template-columns: 44px 1fr; column-gap: 12px;
  padding: 18px 14px; border-radius: 14px; position: relative;
  transition: background .25s ease;
}
.explore-list button:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.ex-n { grid-row: span 2; font: 700 .85rem/1.9 var(--body); color: var(--muted-d); font-variant-numeric: tabular-nums; }
.ex-t { font: 700 1.2rem/1.3 var(--display); color: var(--muted-d); transition: color .25s; }
.ex-d { color: var(--muted-d); font-size: .98rem; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .35s ease, opacity .35s ease, margin .35s ease; }
.explore-list button.is-active { background: var(--ink-3); }
.explore-list button.is-active .ex-n { color: var(--accent); }
.explore-list button.is-active .ex-t { color: var(--text-d); }
.explore-list button.is-active .ex-d { max-height: 5em; opacity: 1; margin-top: 4px; }
.explore-list button:hover .ex-t { color: var(--text-d); }
.no-js .ex-d, .explore:not([data-ready]) .ex-d { max-height: none; opacity: 1; }

/* ───────── Cards ───────── */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: clamp(72px, 10vw, 120px); }
.cards--3 { grid-template-columns: repeat(3, 1fr); margin-top: 72px; }
.card {
  background: var(--ink-2); border: 1px solid var(--line-d); border-radius: var(--radius);
  padding: 28px 26px; transition: border-color .25s, transform .25s;
}
.card:hover { border-color: rgba(255,90,54,.4); transform: translateY(-3px); }
.card p { color: var(--muted-d); margin-top: 10px; font-size: .98rem; }
.card a { color: var(--accent); text-underline-offset: 3px; }
.card-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,90,54,.12); margin-bottom: 22px; }
.card-ic svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ───────── Photo band ───────── */
.band { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 560px; background: var(--gold); color: var(--ink); }
.band picture { display: block; position: relative; min-height: 360px; }
.band-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.band-copy { padding: clamp(48px, 7vw, 96px) clamp(24px, 6vw, 88px); display: flex; flex-direction: column; justify-content: center; }
.band .eyebrow { color: var(--ink); opacity: .7; }
.band h2 { font-size: clamp(2.8rem, 6.5vw, 5.4rem); }
.band-copy p:last-child { margin-top: 24px; font-size: 1.15rem; max-width: 28em; color: rgba(10,11,18,.82); }

/* ───────── Gallery ───────── */
.gallery {
  display: flex; gap: clamp(16px, 2.4vw, 36px);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 40px var(--gutter) 70px; margin-top: -30px;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { flex: 0 0 clamp(190px, 17.5vw, 250px); margin: 0; scroll-snap-align: center; text-align: center; }
.gallery figure:first-child { margin-left: auto; }
.gallery figure:last-child { margin-right: auto; }
.gallery figure:nth-child(even) { transform: translateY(44px); }
.gallery img { width: 100%; height: auto; filter: drop-shadow(0 26px 30px rgba(30, 20, 20, .22)); transition: transform .4s ease; }
.gallery figure:hover img { transform: translateY(-8px) rotate(-1.5deg); }
.gallery figcaption {
  display: inline-block; margin-top: 18px; padding: 7px 14px; border-radius: 999px;
  background: #fff; color: var(--text-l); font-weight: 600; font-size: .9rem;
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 6px 16px rgba(30,20,20,.08);
}
.gallery figcaption strong { font-weight: 700; margin-right: 4px; }
.gallery figcaption { font-weight: 500; color: var(--muted-l); }
.gallery figcaption strong { color: var(--text-l); }

/* ───────── Setup ───────── */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { position: relative; background: #fff; border: 1px solid var(--line-l); border-radius: var(--radius); padding: 30px 28px 32px; }
.step-n {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--ink); color: var(--accent); font: 800 1.6rem/1 var(--display); margin-bottom: 26px;
}
.step h3 { font-size: 1.5rem; }
.step p { color: var(--muted-l); margin-top: 10px; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 57px; right: -14px; width: 10px; height: 10px; z-index: 1;
  border-top: 2px solid var(--accent-deep); border-right: 2px solid var(--accent-deep); transform: rotate(45deg);
}

.guide { margin-top: 72px; background: var(--ink); color: var(--text-d); border-radius: 28px; padding: clamp(24px, 4vw, 48px); }
.guide-head { margin-bottom: 28px; }
.guide-head h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.03em; }
.guide-head p { color: var(--muted-d); margin-top: 6px; }
.guide a { color: var(--accent); }
/* Fallback (no JS) rendering of the README guides */
.guide-body h4 { font: 700 1.15rem/1.3 var(--display); margin: 28px 0 10px; }
.guide-body ol { padding-left: 1.3em; margin: 0; }
.guide-body li { margin: 6px 0; }
.guide-body li::marker { color: var(--accent); font-weight: 700; }
.guide-body em { color: var(--muted-d); }
.guide-body blockquote { margin: 28px 0 0; padding: 16px 20px; border-left: 3px solid var(--accent); background: var(--ink-3); border-radius: 0 12px 12px 0; color: var(--muted-d); }
.guide-body blockquote p { margin: 0; }
.guide-body p:empty { display: none; }
/* Enhanced (JS) two-pane layout */
.guide-ui { display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: 28px; }
.guide-tabs { display: flex; flex-direction: column; gap: 6px; }
.guide-tab {
  all: unset; box-sizing: border-box; cursor: pointer;
  padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-d);
  font: 600 .98rem/1.35 var(--body); color: var(--muted-d);
  transition: background .2s, color .2s, border-color .2s;
}
.guide-tab:hover { color: var(--text-d); border-color: rgba(255,90,54,.35); }
.guide-tab:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.guide-tab[aria-selected="true"] { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.guide-tab .rec { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: rgba(255,90,54,.16); color: var(--accent); vertical-align: 1px; }
.guide-tab[aria-selected="true"] .rec { background: rgba(10,11,18,.14); color: var(--ink); }
.guide-panel { background: var(--ink-3); border-radius: 20px; padding: clamp(22px, 3vw, 36px); min-height: 100%; }
.guide-panel h4 { margin-top: 0; font-size: 1.4rem; letter-spacing: -0.02em; }
.guide-panel > p { color: var(--muted-d); margin-bottom: 18px; font-size: .95rem; }
.guide-panel ol { list-style: none; padding: 0; counter-reset: s; }
.guide-panel ol > li { counter-increment: s; position: relative; padding: 0 0 0 48px; margin: 0 0 16px; min-height: 32px; }
.guide-panel ol > li::before {
  content: counter(s); position: absolute; left: 0; top: -2px;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,90,54,.14); color: var(--accent); font: 700 .9rem/1 var(--body);
}
.guide-panel strong { color: #fff; }
.guide-tip { margin-top: 22px; }
/* Phones get a native picker instead of the long list of model tabs */
.guide-pick { display: none; }
.guide-pick label { display: block; margin-bottom: 8px; font-size: .85rem; font-weight: 600; color: var(--muted-d); }
.guide-pick select {
  -webkit-appearance: none; appearance: none; width: 100%; margin: 0; cursor: pointer;
  padding: 14px 46px 14px 16px; border-radius: 14px; border: 1px solid rgba(255,90,54,.5);
  background: var(--ink-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff5a36' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 20px no-repeat;
  color: var(--text-d); font: 600 16px/1.35 var(--body);
}
.guide-pick select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ───────── FAQ ───────── */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-grid .section-head { position: sticky; top: 110px; margin-bottom: 0; }
.faq { border-top: 1.5px solid var(--text-l); }
.faq-item { border-bottom: 1px solid var(--line-l); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font: 700 1.14rem/1.35 var(--display); letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 1px solid var(--line-l); transition: background .25s, transform .3s; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--text-l); transform: translate(-50%, -50%); border-radius: 2px; transition: transform .3s; }
.faq-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-plus { background: var(--ink); transform: rotate(180deg); }
.faq-item[open] .faq-plus::before, .faq-item[open] .faq-plus::after { background: var(--accent); }
.faq-item[open] .faq-plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a { padding: 0 54px 24px 0; color: var(--muted-l); }
.faq-a ul { margin: 0; padding: 0; list-style: none; }
.faq-a li + li { margin-top: 12px; }
.faq-a strong { color: var(--text-l); }

/* ───────── Devices ───────── */
.search {
  display: flex; align-items: center; gap: 10px; width: min(100%, 400px);
  padding: 0 18px; border-radius: 999px; background: var(--ink-3); border: 1px solid var(--line-d);
  transition: border-color .2s;
}
.search:focus-within { border-color: var(--accent); }
.search svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--muted-d); stroke-width: 2; stroke-linecap: round; }
.search input { all: unset; flex: 1; min-width: 0; padding: 15px 0; font: 500 1rem/1.2 var(--body); color: var(--text-d); }
.search input::placeholder { color: var(--muted-d); }
.devices { columns: 3 300px; column-gap: 18px; }
.family { break-inside: avoid; margin-bottom: 18px; padding: 22px 22px 18px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line-d); }
.family h3 { font-size: 1.15rem; margin-bottom: 12px; }
.family ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.family li { padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.06); font-size: .86rem; color: var(--muted-d); transition: background .2s, color .2s; }
.family li.is-match { background: var(--accent); color: var(--ink); font-weight: 600; }
.family[hidden], .family li[hidden] { display: none; }
.devices-more { display: none; }
@media (max-width: 860px) {
  /* The full list is several screens long on a phone: show the first few families until asked */
  .devices.is-collapsed { -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
  .devices.is-collapsed .family:nth-child(n+5) { display: none; }
  .devices.is-collapsed + .devices-more {
    display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 4px; cursor: pointer;
    padding: 14px 20px; border-radius: 999px; border: 1px solid var(--line-d); background: var(--ink-3);
    color: var(--text-d); font: 600 1rem/1 var(--body);
  }
  .devices.is-collapsed + .devices-more::after { content: "↓"; color: var(--accent); }
}
.devices-empty { padding: 22px; border-radius: var(--radius); border: 1px dashed var(--line-d); color: var(--muted-d); }
.devices-empty a, .devices-note a { color: var(--accent); }
.devices-note { margin-top: 26px; color: var(--muted-d); font-size: .92rem; }

/* ───────── Languages marquee ───────── */
.langs { position: relative; background: var(--ink-2); border-block: 1px solid var(--line-d); overflow: hidden; padding: 26px 0; }
.langs-track { display: flex; width: max-content; animation: marquee 80s linear infinite; }
.langs:hover .langs-track, .langs:focus-within .langs-track, .langs.is-paused .langs-track { animation-play-state: paused; }
.langs-pause {
  position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); z-index: 1;
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  background: var(--ink); border: 1px solid var(--line-d); color: var(--text-d);
  font: 600 .85rem/1 var(--body); box-shadow: 0 0 0 10px var(--ink-2);
}
.langs-pause:hover { border-color: var(--accent); }
.langs-row { display: flex; flex: none; }
.langs-row span { font: 800 clamp(1.6rem, 3vw, 2.4rem)/1 var(--display); letter-spacing: -0.03em; padding: 0 22px; color: rgba(232, 236, 255, .5); white-space: nowrap; }
.langs-row span:nth-child(4n+1) { color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ───────── Changelog ───────── */
.releases { max-width: 920px; }
.release { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 24px 0; border-top: 1px solid var(--line-l); }
.release-v { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.release-v .v { font: 800 1.35rem/1 var(--display); letter-spacing: -0.02em; }
.tag { padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--ink); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.release-notes ul { margin: 0; padding-left: 1.1em; color: var(--muted-l); }
.release-notes li { margin: 4px 0; }
.release-notes li::marker { color: var(--accent-deep); }
.release--latest { background: var(--ink); color: var(--text-d); border: 0; border-radius: 24px; padding: clamp(24px, 4vw, 40px); }
.release--latest .v { font-size: clamp(2.2rem, 4vw, 3rem); }
.release--latest .release-notes ul { color: var(--muted-d); font-size: 1.05rem; }
.release--latest .release-notes li { margin: 10px 0; }
.release--latest .release-notes li::marker { color: var(--accent); }
.older { margin-top: 28px; }
.older summary {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer; list-style: none;
  padding: 12px 20px; border-radius: 999px; border: 1.5px solid var(--text-l); font-weight: 600;
}
.older summary::-webkit-details-marker { display: none; }
.older summary::after { content: "↓"; transition: transform .25s; }
.older[open] summary::after { transform: rotate(180deg); }
.older-list { margin-top: 24px; }

/* ───────── CTA ───────── */
.section--cta { background: radial-gradient(70% 60% at 50% 0%, rgba(255,90,54,.16), transparent 70%), var(--ink); }
.cta { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta h2 { font-size: clamp(4rem, 13vw, 10rem); line-height: .85; letter-spacing: -0.055em; }
.cta .lede { margin: 20px 0 36px; }
.section--cta .cards { position: relative; }

/* ───────── Footer ───────── */
.footer { background: #05060a; border-top: 1px solid var(--line-d); padding: 48px 0 56px; color: var(--muted-d); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; }
.footer .brand { color: var(--text-d); margin-bottom: 14px; }
.footer a { color: var(--text-d); text-underline-offset: 3px; }
.credits p + p { margin-top: 8px; }
.footer .byline { color: var(--text-d); margin-bottom: 8px; }
.footer .byline a { font-weight: 600; }

/* ───────── Responsive ───────── */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards--3 { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  /* Hero: headline, the watch, then the download button, so the watch is on the first screen.
     The release pill and the store proof move below the buttons. */
  .hero { padding: 92px 0 56px; }
  .hero-grid { display: flex; flex-direction: column; align-items: center; gap: 0; text-align: center; }
  .hero-copy { display: contents; }
  .hero-title { order: 1; margin: 0; font-size: clamp(3rem, 12.5vw, 5.6rem); }
  .hero-lede { order: 2; margin: 14px auto 0; font-size: clamp(1rem, 4.2vw, 1.2rem); line-height: 1.5; max-width: 26em; }
  .hero-visual { order: 3; min-height: 0; padding: 30px 0 46px; width: 100%; }
  .watch--hero { --watch: min(56vw, 280px); }
  .hero-cta { order: 4; margin-top: 0; justify-content: center; gap: 12px; }
  .hero-proof { order: 5; display: flex; flex-direction: column; align-items: center; }
  .rating { margin: 22px auto 0; font-size: .9rem; }
  .bga { margin-top: 16px; }
  .pill { order: 6; margin-top: 18px; font-size: .85rem; }

  /* Explore: a compact sticky watch with one fixed row of settings, so the list stays visible below */
  .explore { grid-template-columns: 1fr; gap: 0; }
  .explore-watch {
    position: sticky; top: 68px; z-index: 2; gap: 14px;
    margin: 0 calc(var(--gutter) * -1); padding: 34px var(--gutter) 12px;
    background: var(--ink);
  }
  .explore-watch::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 22px; background: linear-gradient(var(--ink), rgba(10,11,18,0)); pointer-events: none; }
  .watch--explore { --watch: min(48vw, 230px); }
  .toggles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; width: 100%; max-width: 440px; }
  .toggle { flex-direction: column; justify-content: center; gap: 5px; min-width: 0; padding: 8px 4px; border-radius: 14px; }
  .toggle-k { font-size: min(.7rem, 3.1vw); line-height: 1.1; white-space: nowrap; }
  .toggle-v { width: 100%; min-width: 0; padding: 4px 0; font-size: .8rem; }
  .explore-list { margin-top: 16px; }
  .band { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { top: auto; bottom: -14px; right: auto; left: 50px; transform: rotate(135deg); }
  .guide-ui { grid-template-columns: 1fr; gap: 16px; }
  .guide-tabs { display: none; }
  .guide-pick { display: block; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-grid .section-head { position: static; }
  .release { grid-template-columns: 1fr; gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }
  /* Feature cards and setup steps: icon or number beside the heading instead of stacked above it */
  .cards { margin-top: 56px; gap: 12px; }
  .cards:not(.cards--3) .card { display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; align-items: center; padding: 20px; }
  .cards:not(.cards--3) .card-ic { width: 40px; height: 40px; border-radius: 12px; margin: 0; }
  .cards:not(.cards--3) .card p { grid-column: 1 / -1; margin-top: 12px; }
  .steps { gap: 14px; }
  .step { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; align-items: center; padding: 20px; }
  .step-n { width: 44px; height: 44px; font-size: 1.25rem; margin: 0; }
  .step h3 { font-size: 1.25rem; }
  .step p { grid-column: 2; margin-top: 4px; }
  .step:not(:last-child)::after { left: 37px; bottom: -12px; }
  .guide { margin-top: 48px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 22px 16px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1.5px solid rgba(10,11,18,.16); }
  .cards { grid-template-columns: 1fr; }
  .gallery figure { flex-basis: 62vw; }
  .gallery figure:nth-child(even) { transform: none; }
  .faq-a { padding-right: 0; }
  .explore-list button { padding: 14px 8px; grid-template-columns: 36px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ripples { display: none; }
  .langs-track { width: auto; flex-wrap: wrap; }
  .langs-row { flex: 1 1 100%; }
  .langs-row { flex-wrap: wrap; justify-content: center; }
  .langs-row[aria-hidden] { display: none; }
  .langs-pause { display: none; }
}

@media (max-width: 560px) {
  .guide { padding: 22px 16px; border-radius: 22px; }
  .guide-panel { padding: 20px 16px; }
  .gallery figcaption { white-space: nowrap; font-size: .82rem; }
}

/* Connect IQ Store rating under the hero buttons */
.rating { display: block; width: fit-content; margin-top: 22px; font-size: .95rem; color: var(--muted-d); text-decoration: none; }
.rating strong { color: var(--text-d); font-weight: 700; }
.rating-stars { color: var(--accent); margin-right: 2px; }
.rating:hover { color: var(--text-d); }

/* ───────── Pacemaker: watch screen ───────── */
.screen text { font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif; font-weight: 700; font-variant-numeric: tabular-nums; }
.screen .s-bg { fill: #000; }
.screen .s-t { fill: #fff; }
.screen .s-l { fill: #aaa; letter-spacing: .04em; }
.screen .s-t.s-go { fill: #00ff00; }
.screen .s-t.s-stop { fill: #ff2a2a; }
.screen .s-lines line { stroke: #aaa; stroke-width: 1.2; }
.screen * { transition: fill .35s ease, stroke .35s ease, opacity .35s ease; }
.is-light .screen .s-bg { fill: #fff; }
.is-light .screen .s-t { fill: #000; }
.is-light .screen .s-l { fill: #555; }
.is-light .screen .s-t.s-go { fill: #00aa00; }
.is-light .screen .s-t.s-stop { fill: #e00000; }
.watch.is-focus [data-r]:not(.is-on) { opacity: .14; }
.watch-bezel noscript { display: grid; place-items: center; height: 100%; color: var(--muted-d); font-size: .9rem; text-align: center; }

/* Gallery of watch mock-ups (instead of photos) */
.gallery .watch { --watch: clamp(180px, 16vw, 230px); margin: 60px auto 0; }
.gallery figure { flex-basis: clamp(220px, 20vw, 280px); }
.gallery figcaption { margin-top: 70px; }

/* Split-times band (instead of a photo) */
.band-splits { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: clamp(40px, 6vw, 80px); background: var(--ink); }
.split { display: grid; grid-template-columns: 4.5em 1fr 4.2em; align-items: center; gap: 16px; font: 700 clamp(1rem, 1.6vw, 1.25rem)/1 var(--body); color: var(--muted-d); }
.split-bar { height: 14px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.split-bar span { display: block; height: 100%; border-radius: inherit; background: var(--go); width: var(--w); }
.split.is-slow .split-bar span { background: var(--stop); }
.split strong { color: var(--text-d); font-variant-numeric: tabular-nums; text-align: right; }
.split-total { margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--line-d); display: flex; justify-content: space-between; font: 800 clamp(1.4rem, 2.6vw, 2rem)/1 var(--display); color: var(--text-d); }
.split-total span:last-child { color: var(--go); }

.soon { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line-d); font-weight: 600; }
.soon::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255,90,54,.25); }

/* Keep the nav call to action on one line on phones. */
.nav .btn--sm { white-space: nowrap; }
@media (max-width: 380px) { .nav .btn--sm { padding-left: 12px; padding-right: 12px; font-size: .85rem; } }
