/* Exersio website — one stylesheet for every page.
   Colours come from the app icon: midnight background with swim, run and
   ride strokes. Light and dark follow the visitor's system setting. */

:root {
  --midnight: #0B1F3A;
  --midnight-2: #13294A;
  --swim: #64D2FF;
  --run: #FF6B1A;
  --ride: #30D158;
  --blue: #007AFF;
  --purple: #BF5AF2;
  --red: #FF3B30;

  --bg: #FFFFFF;
  --bg-2: #F5F5F7;
  --card: #FFFFFF;
  --text: #1D1D1F;
  --text-2: #6E6E73;
  --text-3: #86868B;
  --line: rgba(0, 0, 0, 0.08);
  --header: rgba(255, 255, 255, 0.72);
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.06);
  --link: #0066CC;

  --radius: 22px;
  --radius-s: 14px;
  --max: 1120px;
  --gutter: 22px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-2: #111113;
    --card: #1C1C1E;
    --text: #F5F5F7;
    --text-2: #A1A1A6;
    --text-3: #86868B;
    --line: rgba(255, 255, 255, 0.12);
    --header: rgba(22, 22, 23, 0.72);
    --shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
    --link: #2997FF;
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
/* Read by screen readers and search engines, not shown. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -0.03em; }
h3 { font-size: 24px; }
h4 { font-size: 19px; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(19px, 2vw, 24px); color: var(--text-2); line-height: 1.4; max-width: 34em; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); margin-bottom: 10px; }
.muted { color: var(--text-2); }
.small { font-size: 14px; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section.tight { padding: 56px 0; }
.alt { background: var(--bg-2); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--card); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

/* Brand: the three strokes as a small mark */
.mark { display: inline-block; width: 28px; height: 28px; border-radius: 7px; background: var(--midnight) url("../img/favicon-64.png") center / cover; flex: none; }
.stripes { display: flex; gap: 6px; }
.stripes i { display: block; height: 6px; width: 36px; border-radius: 3px; }
.stripes i:nth-child(1) { background: var(--swim); }
.stripes i:nth-child(2) { background: var(--run); }
.stripes i:nth-child(3) { background: var(--ride); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--text); font-size: 14px; padding: 6px 10px; border-radius: 8px; opacity: .85; }
.nav a:hover { opacity: 1; text-decoration: none; background: var(--line); }
.nav a[aria-current="page"] { opacity: 1; font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions .btn { white-space: nowrap; }
/* Just above the phone menu there isn't room for both buttons; Build a Plan is in the page anyway. */
@media (min-width: 901px) and (max-width: 1040px) { .header-actions .header-build { display: none; } }
.icon-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; color: var(--text);
  display: grid; place-items: center; cursor: default; font: inherit;
}
.icon-btn:hover { background: var(--line); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; }
.nav .nav-phone { display: none; }

@media (max-width: 900px) {
  .nav {
    display: none; position: absolute; top: 56px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px;
  }
  .nav.open { display: flex; }
  .nav a { font-size: 19px; padding: 12px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .menu-btn { display: grid; }
  .nav .nav-phone { display: block; color: var(--link); font-weight: 600; border-bottom: 0; }
  .header-actions { margin-left: auto; }
  .header-actions .header-build { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 17px; font-weight: 500; line-height: 1;
  padding: 14px 24px; border-radius: 980px; border: 0;
  background: var(--blue); color: #fff; cursor: default;
  transition: filter .15s, transform .15s;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn:active { transform: scale(.98); }
.btn.small { font-size: 14px; padding: 8px 16px; }
.btn.secondary { background: transparent; color: var(--link); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn.light { background: #fff; color: var(--midnight); }
.btn.ghost { background: var(--line); color: var(--text); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.link-arrow::after { content: " ›"; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.center .actions { justify-content: center; }

/* App Store button: becomes the official badge once the app is live (see site.js). */
.appstore {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff; border-radius: 12px; padding: 9px 18px 9px 14px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
  line-height: 1.1; text-align: left; cursor: default;
}
.appstore:hover { text-decoration: none; filter: brightness(1.25); }
.appstore svg { width: 26px; height: 26px; fill: #fff; }
.appstore small { display: block; font-size: 11px; opacity: .85; }
.appstore strong { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.appstore img { height: 48px; width: auto; }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(1200px 600px at 80% -10%, #1C3E6E 0%, transparent 60%), var(--midnight);
  color: #fff; overflow: hidden; position: relative;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 0; }
.hero h1 { color: #fff; }
.hero .lede { color: rgba(255, 255, 255, .75); }
.hero .eyebrow { color: var(--swim); }
.hero .stripes { margin-bottom: 26px; }
.hero-copy { padding-bottom: 72px; }
.hero .note { color: rgba(255, 255, 255, .6); font-size: 14px; margin-top: 18px; }
.hero .btn.secondary { color: #fff; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; padding-top: 48px; }
  .hero .stripes, .hero .actions { justify-content: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero-copy { padding-bottom: 8px; }
}

/* Phone mockup with switchable screens */
.phone-stage { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.phone {
  width: min(320px, 78vw); aspect-ratio: 1320 / 2868; border-radius: 52px;
  background: #1a1a1a; padding: 10px; position: relative;
  box-shadow: 0 0 0 2px #3a3a3c, 0 40px 80px rgba(0, 0, 0, .45);
}
.phone .screen { width: 100%; height: 100%; border-radius: 43px; overflow: hidden; position: relative; background: #f2f2f7; }
.phone .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease; }
.phone .screen img.on { opacity: 1; }
.hero .phone-stage { margin-bottom: -120px; }
.hero .phone { width: min(330px, 74vw); }
.tabs {
  display: inline-flex; padding: 4px; gap: 2px; border-radius: 980px;
  background: rgba(118, 118, 128, .2); position: relative; z-index: 2;
}
.tabs button {
  font: inherit; font-size: 14px; font-weight: 500; border: 0; background: transparent; color: inherit;
  padding: 7px 14px; border-radius: 980px; cursor: default;
}
.tabs button[aria-selected="true"] { background: #fff; color: #000; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.hero .tabs { color: #fff; background: rgba(255, 255, 255, .12); }
.hero-tabs-row { display: flex; justify-content: center; padding: 140px 0 40px; background: var(--bg); }
.hero-tabs-row .tabs { color: var(--text); }

/* ---------- Trust strip ---------- */
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; color: var(--text-2); font-size: 15px; font-weight: 500; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--ride); }

/* ---------- Feature rows ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature-row + .feature-row { margin-top: 120px; }
.feature-row.flip .feature-media { order: 2; }
.feature-media { display: flex; justify-content: center; }
.feature-media .phone { width: min(290px, 70vw); }
.feature-copy .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.feature-copy ul { padding: 0; list-style: none; margin: 18px 0 0; }
.feature-copy li { padding: 10px 0; border-top: 1px solid var(--line); color: var(--text-2); }
.feature-copy li strong { color: var(--text); font-weight: 600; }
@media (max-width: 860px) {
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row.flip .feature-media { order: 0; }
  .feature-row + .feature-row { margin-top: 80px; }
}

/* ---------- Cards and grids ---------- */
.grid { display: grid; gap: 20px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid.four { grid-template-columns: repeat(2, 1fr); } .grid.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; } }
.card { background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.alt .card { box-shadow: none; }
.card h3, .card h4 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; color: #fff; }
.card .icon svg { width: 24px; height: 24px; }
a.card { color: inherit; display: block; transition: transform .2s; }
a.card:hover { text-decoration: none; transform: translateY(-3px); }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 980px; background: var(--line); color: var(--text-2); }
.tag.free { background: rgba(48, 209, 88, .16); color: #1E9E45; }
.tag.pro { background: rgba(0, 122, 255, .14); color: var(--blue); }
@media (prefers-color-scheme: dark) { .tag.free { color: var(--ride); } }

/* Dark band (midnight) used for CTAs and privacy */
.band { background: var(--midnight); color: #fff; }
.band .lede, .band .muted { color: rgba(255, 255, 255, .72); }
.band .eyebrow { color: var(--swim); }
.band .card { background: var(--midnight-2); box-shadow: none; color: #fff; }
.band .card p { color: rgba(255, 255, 255, .72); }

/* Works with */
.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.logos span { padding: 12px 20px; border-radius: 980px; background: var(--card); box-shadow: var(--shadow); font-weight: 600; font-size: 15px; }
.alt .logos span { box-shadow: none; }

/* Watch strip */
.watch-strip { display: flex; gap: 22px; overflow-x: auto; padding: 8px 4px 24px; scroll-snap-type: x mandatory; }
.watch {
  flex: none; width: 190px; aspect-ratio: 416 / 496; border-radius: 44px; background: #000; padding: 12px;
  box-shadow: 0 0 0 3px #2c2c2e, 0 20px 40px rgba(0, 0, 0, .25); scroll-snap-align: center;
}
.watch img { width: 100%; height: 100%; border-radius: 32px; object-fit: cover; }

/* ---------- Readiness demo ---------- */
.demo { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; }
.ring { position: relative; width: 220px; height: 220px; margin: 0 auto; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 18; stroke-linecap: round; }
.ring .track { stroke: var(--line); }
.ring .value { transition: stroke-dashoffset .5s ease, stroke .3s; }
.ring .num { position: absolute; inset: 0; display: grid; place-items: center; font-size: 64px; font-weight: 700; letter-spacing: -0.03em; }
.verdict { text-align: center; margin-top: 14px; }
.verdict strong { font-size: 24px; display: block; }
.slider { margin-bottom: 22px; }
.slider label { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 8px; }
.slider label span { color: var(--text-2); font-weight: 500; }
input[type="range"] { width: 100%; accent-color: var(--blue); }
.parts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.parts div { background: var(--bg-2); border-radius: 12px; padding: 10px 12px; font-size: 13px; color: var(--text-2); }
.alt .parts div { background: var(--card); }
.parts b { display: block; font-size: 19px; color: var(--text); }
@media (max-width: 760px) { .demo { grid-template-columns: 1fr; } .parts { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Page heads ---------- */
.page-head { padding: clamp(56px, 8vw, 96px) 0 clamp(32px, 5vw, 56px); }
.page-head.dark { background: var(--midnight); color: #fff; }
.page-head.dark .lede { color: rgba(255, 255, 255, .75); }
.page-head.dark .eyebrow { color: var(--swim); }

/* ---------- Plans catalogue ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  font: inherit; font-size: 15px; font-weight: 500; padding: 8px 16px; border-radius: 980px;
  border: 0; background: var(--line); color: var(--text); cursor: default;
}
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.plan-card { display: flex; flex-direction: column; }
.plan-card .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.plan-card p { color: var(--text-2); flex: 1; }
.plan-card .facts { display: flex; gap: 18px; font-size: 14px; color: var(--text-2); margin: 6px 0 18px; }
.plan-card .facts b { color: var(--text); display: block; font-size: 17px; }
.sport-bar { display: flex; gap: 4px; margin-bottom: 18px; }
.sport-bar i { height: 5px; flex: 1; border-radius: 3px; }

/* ---------- Pricing ---------- */
.price-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-cards .card { display: flex; flex-direction: column; }
.price-cards .card.best { box-shadow: 0 0 0 2px var(--blue), var(--shadow); }
/* "Best value" sits on the card's top edge, so it doesn't push the heading down. */
.price-cards .card.best { position: relative; }
.best-badge { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); background: var(--blue); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 5px 12px; border-radius: 980px; white-space: nowrap; }
/* Side by side, each row (name, line, price, small print, list, button) lines up across the cards. */
@media (min-width: 901px) {
  .price-cards { padding-top: 12px; }
  .price-cards .card { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
  .price-cards .card > h3 { margin: 0 0 8px; }
  .price-cards .card > [data-appstore] { align-self: end; }
}
.price { font-size: 48px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin: 12px 0 4px; }
.price small { font-size: 17px; font-weight: 500; color: var(--text-2); letter-spacing: 0; }
.ticks { list-style: none; padding: 0; margin: 20px 0 24px; flex: 1; }
.ticks li { padding: 7px 0 7px 28px; position: relative; font-size: 15px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 11px; width: 16px; height: 16px; border-radius: 50%; background: var(--ride) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.5L12 5.4' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px; }
@media (max-width: 900px) { .price-cards { grid-template-columns: 1fr; gap: 32px; } }
table.compare { width: 100%; border-collapse: collapse; font-size: 15px; }
table.compare th, table.compare td { padding: 14px 10px; border-bottom: 1px solid var(--line); text-align: left; }
table.compare td:not(:first-child), table.compare th:not(:first-child) { text-align: center; width: 110px; }
table.compare .yes { color: var(--ride); font-weight: 700; }
table.compare .no { color: var(--text-3); }
.table-scroll { overflow-x: auto; }

/* ---------- Races ---------- */
.race-card .distance { font-size: 15px; color: var(--text-2); margin-bottom: 14px; }
.race-legs { display: flex; gap: 6px; margin: 10px 0 16px; flex-wrap: wrap; }
.race-legs span { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 980px; color: #fff; }

/* ---------- FAQ ---------- */
.search { width: 100%; font: inherit; font-size: 17px; padding: 14px 18px 14px 44px; border-radius: 14px; border: 1px solid var(--line); background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386868B' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") 14px center / 20px no-repeat; color: var(--text); margin-bottom: 24px; }
details.faq { border-bottom: 1px solid var(--line); }
details.faq summary { list-style: none; padding: 20px 36px 20px 0; font-weight: 600; font-size: 18px; position: relative; cursor: default; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 26px; font-weight: 300; color: var(--text-2); transition: transform .2s; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq .answer { padding: 0 0 20px; color: var(--text-2); }
.faq-empty { color: var(--text-2); display: none; }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label, .field .label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 15px; }
.field .hint { font-size: 13px; color: var(--text-2); margin-top: 6px; }
input[type="text"], input[type="email"], input[type="date"], input[type="number"], select, textarea {
  width: 100%; font: inherit; font-size: 17px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card); color: var(--text);
}
textarea { min-height: 140px; resize: vertical; }
.inline-form { display: flex; gap: 10px; max-width: 480px; }
.inline-form input { flex: 1; }
.center .inline-form { margin: 0 auto; }
@media (max-width: 520px) { .inline-form { flex-direction: column; } }
.form-msg { margin-top: 12px; font-size: 15px; }
.form-msg.ok { color: var(--ride); }
.form-msg.err { color: var(--red); }
.hp { position: absolute; left: -9999px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); margin: 10px 0 16px; }
.check input { margin-top: 3px; }

/* ---------- Plan builder ---------- */
.builder { display: grid; grid-template-columns: 340px 1fr; gap: 32px; align-items: start; }
@media (max-width: 920px) { .builder { grid-template-columns: 1fr; } }
.builder-panel { position: sticky; top: 76px; }
@media (max-width: 920px) { .builder-panel { position: static; } }
.step { margin-bottom: 26px; }
.step-title { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); margin-bottom: 10px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { font: inherit; font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 10px; border: 0; background: var(--bg-2); color: var(--text); cursor: default; }
.seg button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.days button { font: inherit; font-size: 14px; font-weight: 600; aspect-ratio: 1; border-radius: 50%; border: 0; background: var(--bg-2); color: var(--text); cursor: default; }
.days button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.days button.long { box-shadow: 0 0 0 2px var(--run); }
.template-pick { display: grid; gap: 8px; max-height: 340px; overflow-y: auto; padding: 2px; }
.template-pick button {
  font: inherit; text-align: left; border: 0; border-radius: 12px; padding: 12px 14px; background: var(--bg-2); color: var(--text);
  display: flex; justify-content: space-between; gap: 10px; align-items: center; cursor: default;
}
.template-pick button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--blue); }
.template-pick small { display: block; color: var(--text-2); font-size: 13px; }
.jump { display: none; width: 100%; margin-top: 22px; }
@media (max-width: 920px) {
  .template-pick { max-height: none; overflow: visible; grid-template-columns: 1fr 1fr; }
  .template-pick .step-title { grid-column: 1 / -1; }
  .jump { display: flex; }
}
@media (max-width: 420px) { .template-pick button { flex-direction: column; align-items: flex-start; gap: 6px; } }
.summary-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.summary-bar div { background: var(--card); border-radius: 16px; padding: 14px 16px; }
.summary-bar span { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); }
.summary-bar b { font-size: 24px; letter-spacing: -0.02em; }
@media (max-width: 620px) { .summary-bar { grid-template-columns: repeat(2, 1fr); } }
.load-chart { background: var(--card); border-radius: 16px; padding: 16px; margin-bottom: 20px; }
.load-chart .bars { display: flex; align-items: flex-end; gap: 3px; height: 110px; }
.load-chart .bars i { flex: 1; border-radius: 4px 4px 0 0; background: var(--blue); min-height: 3px; }
.load-chart .bars i.recovery { background: var(--swim); }
.load-chart .bars i.taper { background: var(--ride); }
.load-chart .bars i.peak { background: var(--run); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--text-2); margin-top: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.week { background: var(--card); border-radius: 18px; margin-bottom: 14px; overflow: hidden; }
.week-head { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.week-head b { font-size: 17px; }
.week-note { margin: 0; padding: 12px 18px 14px; }
.week-head span { font-size: 14px; color: var(--text-2); }
.session { display: grid; grid-template-columns: 52px 36px 1fr auto; gap: 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.session:last-child { border-bottom: 0; }
.session .day { font-size: 12px; font-weight: 600; color: var(--text-2); text-transform: uppercase; line-height: 1.2; }
.session .day b { display: block; font-size: 19px; color: var(--text); }
.session .sicon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; }
.session .sicon svg { width: 20px; height: 20px; }
.session .t { font-weight: 600; }
.session .d { font-size: 14px; color: var(--text-2); }
.session .steps { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.session .int { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 980px; }
.int.easy { background: rgba(48, 209, 88, .15); color: #1E9E45; }
.int.moderate { background: rgba(255, 159, 10, .16); color: #C77700; }
.int.hard { background: rgba(255, 59, 48, .14); color: #D70015; }
.int.race { background: var(--midnight); color: #fff; }
.locked { position: relative; }
.locked .week { filter: blur(6px); opacity: .6; pointer-events: none; user-select: none; }
.gate {
  position: relative; margin-top: -180px; z-index: 3;
  background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: 0 20px 60px rgba(0, 0, 0, .18), 0 0 0 1px var(--line);
}
.gate h3 { margin-bottom: 6px; }
.gate .options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.gate .option { background: var(--bg-2); border-radius: 16px; padding: 18px; }
@media (max-width: 620px) { .gate .options { grid-template-columns: 1fr; } }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-2); }

/* ---------- Legal / prose ---------- */
.prose { max-width: 720px; }
.prose h2 { font-size: 28px; margin-top: 48px; }
.prose h3 { font-size: 20px; margin-top: 28px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.glance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 28px 0 8px; }
.glance div { background: var(--bg-2); border-radius: 16px; padding: 18px; }
.glance b { display: block; font-size: 15px; margin-bottom: 4px; }
.glance span { font-size: 14px; color: var(--text-2); }
@media (max-width: 700px) { .glance { grid-template-columns: 1fr; } }

/* Changelog */
.release { display: grid; grid-template-columns: 160px 1fr; gap: 28px; padding: 32px 0; border-top: 1px solid var(--line); }
.release .v { font-weight: 700; font-size: 20px; }
.release .date { color: var(--text-2); font-size: 14px; }
@media (max-width: 620px) { .release { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); color: var(--text-2); font-size: 13px; padding: 48px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; margin-bottom: 32px; }
.footer-grid h4 { font-size: 13px; color: var(--text); margin-bottom: 10px; letter-spacing: 0; }
.footer-grid a { display: block; color: var(--text-2); padding: 4px 0; }
.footer-grid a:hover { color: var(--text); }
/* The logo is a link too: keep it laid out like the header's, not as a plain footer link. */
.footer-grid a.brand { display: inline-flex; color: var(--text); padding: 0; }
.footer-base { border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .phone .screen img { transition: none; }
}

@media print {
  .site-header, .site-footer, .builder-panel, .gate { display: none !important; }
  .locked .week { filter: none; opacity: 1; }
}

/* Anchored jumps land below the sticky header. */
[id] { scroll-margin-top: 72px; }

/* Plan sessions on phones: badge drops under the title. */
@media (max-width: 520px) {
  .session { grid-template-columns: 40px 32px 1fr; gap: 10px; padding: 12px 14px; }
  .session .sicon { width: 32px; height: 32px; }
  .session .int { grid-column: 3; justify-self: start; }
  .week-head { flex-direction: column; gap: 2px; padding: 12px 14px; }
}

/* ---------- Plan questionnaire ---------- */
.quiz-section { min-height: calc(100vh - 56px); padding-top: clamp(32px, 6vw, 72px); }
.quiz { max-width: 680px; margin: 0 auto; padding: clamp(22px, 4vw, 40px); }
.quiz-top { display: flex; align-items: center; gap: 10px; min-height: 34px; margin-bottom: 10px; }
.q-progress { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-bottom: 32px; }
.q-progress i { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--swim), var(--run), var(--ride)); transition: width .4s ease; }
.q-title { font-size: clamp(26px, 3.6vw, 36px); letter-spacing: -0.025em; margin-bottom: 8px; }
.q-sub { color: var(--text-2); margin-bottom: 24px; }
.q-step { opacity: 0; transform: translateX(24px); transition: opacity .3s ease, transform .35s cubic-bezier(.2, .7, .2, 1); }
.q-step.from-left { transform: translateX(-24px); }
.q-step.in { opacity: 1; transform: none; }
.choices { display: grid; gap: 10px; }
.choice {
  font: inherit; text-align: left; width: 100%; border: 0; border-radius: 16px; padding: 16px 18px;
  background: var(--bg-2); color: var(--text); display: flex; align-items: center; justify-content: space-between; gap: 14px;
  cursor: default; transition: background .15s, box-shadow .15s, transform .1s;
}
.choice:hover { box-shadow: inset 0 0 0 1.5px var(--line); }
.choice:active { transform: scale(.99); }
.choice[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--blue); }
.choice b { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.choice small { display: block; color: var(--text-2); font-size: 14px; margin-top: 2px; }
.choice svg { width: 20px; height: 20px; color: var(--text-3); flex: none; }
.date-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 4px 0 8px; }
.date-row input { flex: 1; min-width: 180px; }
.days.big { gap: 8px; }
.days.big button { aspect-ratio: auto; height: 56px; border-radius: 14px; font-size: 15px; }
#q-long { margin-top: 4px; }
.time-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 4px 0 2px; }
.time-row label { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 15px; }
.time-row input { width: 84px; font-size: 22px; font-weight: 600; text-align: center; padding: 12px 6px;
  font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
/* No up/down arrows in time boxes: they're typed, and the arrows crowd out the digits. */
/* Empty boxes must look empty: a faint, lighter hint rather than a time. */
.time-row input::placeholder { color: var(--text-3); opacity: 0.6; font-weight: 400; }
.time-row input::-webkit-inner-spin-button, .time-row input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.steps .pace { display: inline-block; font-weight: 600; color: var(--blue); white-space: nowrap; }
.pace-card { margin-bottom: 20px; }
.pace-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; }
.pace-grid div { background: var(--bg-2); border-radius: 14px; padding: 12px; }
.pace-grid span { display: block; font-size: 13px; color: var(--text-2); }
.pace-grid b { display: block; white-space: nowrap; font-size: clamp(18px, 4.8vw, 22px); letter-spacing: -0.02em; margin: 2px 0; font-variant-numeric: tabular-nums; }
.pace-grid small { display: block; font-size: 12px; color: var(--text-3); }
@media (prefers-reduced-motion: reduce) { .q-step { transition: none; transform: none; } }

/* "Creating your plan" */
.creating { max-width: 560px; margin: 0 auto; padding: clamp(28px, 5vw, 44px); text-align: center; }
.creating h2 { font-size: clamp(26px, 3.6vw, 34px); margin: 18px 0 22px; }
.creating-mark { display: flex; justify-content: center; gap: 7px; }
.creating-mark i { width: 40px; height: 8px; border-radius: 4px; animation: pulse 1.2s ease-in-out infinite; }
.creating-mark i:nth-child(1) { background: var(--swim); }
.creating-mark i:nth-child(2) { background: var(--run); animation-delay: .15s; }
.creating-mark i:nth-child(3) { background: var(--ride); animation-delay: .3s; }
@keyframes pulse { 0%, 100% { transform: scaleX(.6); opacity: .5; } 50% { transform: scaleX(1); opacity: 1; } }
.creating-bar { height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; }
.creating-bar i { display: block; height: 100%; width: 0; border-radius: 5px; background: linear-gradient(90deg, var(--swim), var(--run), var(--ride)); }
.creating-pct { font-size: 15px; font-weight: 600; color: var(--text-2); margin: 10px 0 22px; font-variant-numeric: tabular-nums; }
.creating-list { list-style: none; padding: 0; margin: 0; text-align: left; display: grid; gap: 4px; }
.creating-list li { display: flex; align-items: center; gap: 12px; padding: 7px 4px; color: var(--text-3); font-size: 15px; transition: color .25s; }
.creating-list li.active { color: var(--text); font-weight: 600; }
.creating-list li.done { color: var(--text); }
.c-dot { width: 20px; height: 20px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 2px var(--line); position: relative; transition: background .25s, box-shadow .25s; }
.active .c-dot { box-shadow: none; border: 2px solid var(--line); border-top-color: var(--blue); animation: ring .8s linear infinite; }
.done .c-dot { background: var(--ride) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.5L12 5.4' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px; box-shadow: none; }
@keyframes ring { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .creating-mark i, .active .c-dot { animation: none; } }

/* Result */
.result { max-width: 960px; margin: 0 auto; }
.result-head { margin-bottom: 28px; }
.result-head h1 { font-size: clamp(34px, 5vw, 56px); }
.locked-list .locked-row { display: grid; grid-template-columns: 1fr auto 20px; gap: 14px; align-items: center; padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 15px; }
.locked-list .locked-row:last-child { border-bottom: 0; }
.locked-list .locked-row span:nth-child(2) { color: var(--text-2); font-size: 14px; }
.locked-list svg { width: 18px; height: 18px; color: var(--text-3); }
.cta-card { margin-top: 28px; background: var(--midnight); color: #fff; padding: clamp(28px, 5vw, 48px); }
.cta-card .stripes { margin-bottom: 20px; }
.cta-card .lede { color: rgba(255, 255, 255, .75); }
.cta-card .muted { color: rgba(255, 255, 255, .6); }
.cta-card .ticks li { font-size: 16px; }
.cta-card .btn.ghost { background: rgba(255, 255, 255, .14); color: #fff; }
@media (max-width: 520px) { .locked-list .locked-row { grid-template-columns: 1fr 20px; } .locked-list .locked-row span:nth-child(2) { grid-column: 1; } }

/* Footer App Store button keeps its badge look. */
.footer-grid a.appstore { display: inline-flex; color: #fff; padding: 9px 18px 9px 14px; }

/* Phone "Get the App" bar */
.app-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: none;
  align-items: center; gap: 10px; padding: 10px 10px 10px 12px; border-radius: 18px;
  background: var(--header); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18), 0 0 0 1px var(--line);
  transform: translateY(140%); transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.app-bar.show { transform: none; }
.app-bar .mark { width: 36px; height: 36px; border-radius: 9px; }
.app-bar-text { flex: 1; line-height: 1.2; }
.app-bar-text b { display: block; font-size: 15px; }
.app-bar-text small { color: var(--text-2); font-size: 12px; }
.app-bar .icon-btn { width: 28px; height: 28px; }
.app-bar .icon-btn svg { width: 14px; height: 14px; }
@media (max-width: 760px) { .app-bar { display: flex; } .site-footer { padding-bottom: 96px; } }
@media (prefers-reduced-motion: reduce) { .app-bar { transition: none; } }

/* Small "get the app" row under feature copy */
.feature-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 22px; }
.inline-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; background: var(--card); border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow); margin-top: 40px; }
.alt .inline-cta { box-shadow: none; }
.inline-cta p { margin: 0; font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.inline-cta p span { display: block; font-weight: 400; font-size: 15px; color: var(--text-2); }

/* Goal cards (Plans page and home) */
.goal-grid .goal-card { display: flex; flex-direction: column; }
.goal-card p { flex: 1; }
.goal-card .link-arrow { color: var(--link); font-weight: 600; }

/* ---------- Calculators ---------- */
.calc-wrap { max-width: 980px; }
.calc { padding: clamp(20px, 3.5vw, 36px); }
.calc-races { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.calc-group { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.calc-modes { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 0; }
.seg-big button { font-size: 16px; font-weight: 600; padding: 10px 18px; border-radius: 12px; }
.calc-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 44px); align-items: start; }
.calc-inputs .field { margin-bottom: 20px; }
.calc-inputs .time-row { gap: 8px; flex-wrap: nowrap; }
.calc-inputs .time-row label { gap: 6px; }
.calc-inputs .time-row input { width: 72px; }
.calc-inputs .time-row input#bikeKmh { width: 96px; }
.splits-head { flex-wrap: wrap; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-pair .time-row { gap: 6px; }
.field-pair .time-row input { width: 60px; font-size: 19px; }
.calc-big { background: var(--midnight); color: #fff; border-radius: 18px; padding: 20px 22px; margin-bottom: 16px; }
.calc-big span { display: block; font-size: 14px; color: rgba(255, 255, 255, .7); }
.calc-big b { display: block; font-size: clamp(38px, 6vw, 54px); letter-spacing: -0.035em; line-height: 1.1; margin: 4px 0; font-variant-numeric: tabular-nums; }
.calc-big small { display: block; font-size: 14px; color: rgba(255, 255, 255, .75); }
.splits, .equiv { background: var(--bg-2); border-radius: 16px; padding: 6px 16px; margin-bottom: 16px; }
.splits-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px 0 8px; }
.splits-head span { font-size: 13px; color: var(--text-2); }
.split { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.split span { color: var(--text-2); }
.split.key span, .split.key b { color: var(--text); font-weight: 700; }
.split.leg span { color: var(--text); flex: 1; }
.split.leg span b { display: block; font-weight: 600; }
.split.leg small { display: block; font-size: 13px; color: var(--text-2); }
.split.leg em { font-style: normal; color: var(--text-3); font-size: 13px; width: 64px; text-align: right; }
.split.leg.swim span b { color: #32ADE6; } .split.leg.ride span b { color: var(--ride); } .split.leg.run span b { color: var(--run); }
.equiv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-bottom: 10px; }
.equiv-grid button { font: inherit; text-align: left; border: 0; border-radius: 12px; padding: 10px 12px; background: var(--card); color: var(--text); cursor: pointer; }
.equiv-grid button:hover { box-shadow: inset 0 0 0 1.5px var(--blue); }
.equiv-grid span { display: block; font-size: 13px; color: var(--text-2); }
.equiv-grid b { font-size: 18px; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .calc-races, .calc-body { grid-template-columns: 1fr; }
}
@media (max-width: 420px) { .equiv-grid { grid-template-columns: 1fr 1fr; } .field-pair { grid-template-columns: 1fr; } }

/* ---------- QR code (desktop only; drawn by site.js) ---------- */
.qr { display: inline-flex; align-items: center; gap: 10px; text-align: left; }
.qr-code { display: block; width: 76px; height: 76px; padding: 6px; background: #fff; border-radius: 10px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.qr-code svg { display: block; width: 100%; height: 100%; }
.qr-code svg path, .qr-code svg rect[fill="black"], .qr-code svg rect:not([fill]) { fill: #0B1F3A; }
.qr-text { font-size: 13px; line-height: 1.3; max-width: 9.5em; opacity: .8; }
@media (max-width: 900px), (pointer: coarse) { .qr { display: none; } }

/* ---------- Guides ---------- */
.guide-card { display: flex; flex-direction: column; gap: 6px; color: var(--text); transition: transform .2s ease; }
.guide-card:hover { text-decoration: none; transform: translateY(-2px); }
.guide-card h3 { margin: 4px 0 2px; }
.guide-card p { flex: 1; margin: 0 0 8px; }
.guide-topic { color: var(--topic, var(--blue)); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.page-head .eyebrow a { color: inherit; }
.guide-body p { font-size: 18px; line-height: 1.65; }
.guide-body h2 { font-size: 26px; margin-top: 40px; }
.in-exersio { margin-top: 44px; background: var(--midnight); color: #fff; }
.in-exersio h3 { color: #fff; margin: 14px 0 8px; }
.in-exersio p { font-size: 17px; color: rgba(255, 255, 255, .82); }
.in-exersio .btn.ghost { color: #fff; background: rgba(255, 255, 255, .12); }

/* ---------- Works with ---------- */
.step-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 14px; }
.brand-card h3 { font-size: 19px; }
.brand-card p { margin: 0; }
.shared-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; margin-bottom: 24px; }
.shared-note p { margin: 0; }
.cta-card .qr-text { color: rgba(255, 255, 255, .85); }
