/* Night race: dark tokens by default; index.html pins the paper/forest light theme (data-theme="light").
   Loaded after styles.css on index.html only. Flat surfaces, hairlines and type; the only decoration
   is the race route drawn by night.js. Colours come from the tokens below. */
:root{--paper:#0b0d0c;--text:#f3f5ef;--muted:#9aa59d;--forest:#c5f277;--lime:#c5f277;--surface:#151916;--line:#ffffff17;--dark:#0b0d0c;--soft:#c3cbc4;--swim:#8edbc1;--bike:#b9a4f5;--run:#8cc8f8;
  --ink-accent:#c5f277;--hairline-strong:#ffffff40;--btn-bg:#c5f277;--btn-fg:#101211;--btn-hover:#d8ff94;--arrow-bg:#101211;--arrow-fg:#c5f277;
  --header-bg:#0b0d0ce6;--note-bg:#151916;--label-bg:#0b0d0ce0;--photo-bg:#151916;--tile-academy:#141a13;--tile-transition:#16151b;--tile-line:#ffffff14;--outline-text:#f3f5efb3;--feature-ring:#c5f27759;
  --route-swim:#8edbc1;--route-bike:#b9a4f5;--route-run:#8cc8f8;--route-plan:#ffffff2e;--route-marker:#f3f5efb3;--route-ring:#f3f5ef40;color-scheme:dark}
:root[data-theme=light]{--paper:#f4f5ef;--text:#19271e;--muted:#657063;--forest:#356b27;--lime:#356b27;--surface:#fff;--line:#dce2d6;--dark:#151d18;--soft:#4f5b50;
  --ink-accent:#356b27;--hairline-strong:#19271e40;--btn-bg:#19271e;--btn-fg:#fff;--btn-hover:#356b27;--arrow-bg:#c5f277;--arrow-fg:#19271e;
  --header-bg:#f4f5efeb;--note-bg:#fff;--label-bg:#ffffffeb;--photo-bg:#bbc7b5;--tile-academy:#e8edde;--tile-transition:#f0e3d6;--tile-line:#19271e14;--outline-text:#19271eb3;--feature-ring:#356b2759;
  --route-swim:#2a8f70;--route-bike:#7258cf;--route-run:#2f7fbf;--route-plan:#19271e40;--route-marker:#19271eb3;--route-ring:#19271e40;color-scheme:light}
html{background:var(--paper)}
body{background:transparent;color:var(--text)}
::selection{background:var(--accent);color:#101211}

#main-nav{margin-inline:auto}
.header-inner{justify-content:flex-start;gap:12px}

/* Race route */
.race-line{position:absolute;top:0;left:0;width:100%;z-index:5;pointer-events:none;overflow:visible}
@media(max-width:700px),(pointer:coarse) and (max-height:500px){.race-line{display:none}}
.race-on-dark{--paper:#0e110f;--text:#f3f5ef;--muted:#9aa59d;--ink-accent:#c5f277;--route-swim:#8edbc1;--route-bike:#b9a4f5;--route-run:#8cc8f8;--route-plan:#ffffff40;--route-marker:#f3f5efb3;--route-ring:#f3f5ef40}
.race-plan{fill:none;stroke:var(--route-plan);stroke-width:1.5;stroke-dasharray:.1 7;stroke-linecap:round}
.race-done{fill:none;stroke-width:2;stroke-linecap:round}
.race-start{fill:var(--route-swim)}
.race-marker circle{fill:var(--paper);stroke:var(--route-marker);stroke-width:1.5}
.race-marker text{font:600 11px/1 var(--body);letter-spacing:.12em;fill:var(--text)}
.race-marker .race-detail{fill:var(--muted);font-weight:500}
.race-marker.is-finish circle{fill:var(--ink-accent);stroke:var(--ink-accent)}
.race-head.is-finished{display:none}
.race-leg{font:600 10.5px/1 var(--body);letter-spacing:.16em;fill:var(--muted)}
.race-head-ring{fill:none;stroke:var(--route-ring);stroke-width:1}
.race-head-dot{stroke:var(--paper);stroke-width:2.5}
.race-distance{font:600 11px/1 var(--body);fill:var(--text);paint-order:stroke;stroke:var(--paper);stroke-width:4px;font-variant-numeric:tabular-nums}

/* Shared pieces */
.eyebrow{color:var(--ink-accent);font-size:11px}
.status-dot{background:var(--ink-accent);box-shadow:none}
.mini-label{font-size:10.5px}
.button{border-radius:999px;font-size:14px;min-height:54px;padding:8px 8px 8px 24px;gap:18px}
.button:hover{box-shadow:none}
.button-dark{background:var(--btn-bg);color:var(--btn-fg)}
.button-dark:hover{background:var(--btn-hover)}
.button-arrow{width:38px;height:38px;margin:0;border-radius:50%;background:var(--arrow-bg);color:var(--arrow-fg);transition:transform .25s}
.button:hover .button-arrow{transform:translateX(3px)}
.text-link,.hero-actions .text-link{font-size:13.5px;color:var(--text);border-bottom-color:var(--hairline-strong)}
.text-link:hover{color:var(--ink-accent);border-bottom-color:var(--ink-accent)}
.skip-link{color:#101211}
:focus-visible{outline-color:var(--ink-accent)}

/* Header */
.site-header{background:var(--header-bg);border-bottom-color:var(--line)}
#main-nav a{font-size:13px;color:var(--soft);transition:color .2s}
#main-nav a:hover{color:var(--text)}
#main-nav a::after{background:var(--ink-accent)}
.header-cta{min-height:44px;padding:6px 6px 6px 18px;font-size:13px;gap:12px}
.header-cta>.icon{width:32px;height:32px;padding:8px;border-radius:50%;background:var(--arrow-bg);color:var(--arrow-fg)}
.menu-toggle span{background:var(--text)}

/* Hero */
.hero-copy>*{animation:riseIn .8s cubic-bezier(.2,.8,.2,1) both}
.hero-copy>:nth-child(2){animation-delay:.06s}.hero-copy>:nth-child(3){animation-delay:.14s}.hero-copy>:nth-child(4){animation-delay:.22s}.hero-copy>:nth-child(5){animation-delay:.3s}
.hero h1 span{color:var(--ink-accent)}
.hero-description{font-size:16px;line-height:1.7;color:var(--soft);max-width:440px}
.micro-copy{font-size:12px;color:var(--muted)}
.micro-copy .icon{color:var(--ink-accent)}
.sport-photo{background:var(--photo-bg);box-shadow:0 30px 60px -40px #000;animation:riseIn .9s cubic-bezier(.2,.8,.2,1) both}
.photo-swim{animation-delay:.1s}.photo-bike{animation-delay:.2s}.photo-run{animation-delay:.3s}
.sport-photo::after{background:linear-gradient(180deg,#0b0d0c00 35%,#0b0d0cd0 100%)}
.sport-photo figcaption{font-size:10.5px}
.photo-swim figcaption .icon{color:var(--swim)}.photo-bike figcaption .icon{color:var(--bike)}.photo-run figcaption .icon{color:var(--run)}
.photo-number{font-size:10.5px;color:#ffffffb3}
.hero-note{background:var(--note-bg);border:1px solid var(--line);color:var(--text);box-shadow:0 24px 50px -24px #00000080}
.hero-note strong{font-size:13.5px}
.hero-note div>span{font-size:11.5px;color:var(--muted)}
.note-icon{color:#101211}
.note-check{color:var(--ink-accent)}
.hero-side-note{color:var(--muted)}

/* Discipline strip: outlined words that fill with their colour */
.discipline-strip{border-color:var(--line)}
.discipline-strip>span:not(.strip-plus){color:transparent;-webkit-text-stroke:1px var(--outline-text);transition:color .3s,-webkit-text-stroke-color .3s;--c:var(--route-swim)}
.discipline-strip>span:nth-of-type(3){--c:var(--route-bike)}.discipline-strip>span:nth-of-type(5){--c:var(--route-run)}
.discipline-strip>span:not(.strip-plus):hover{color:var(--c);-webkit-text-stroke-color:var(--c)}
.discipline-strip .icon{color:var(--c)}
.strip-plus{color:var(--hairline-strong)}
.discipline-strip p{font-size:12.5px;color:var(--muted);border-left-color:var(--line)}

/* Difference */
.difference-intro>p:last-child{font-size:15px;color:var(--soft);line-height:1.75}
.difference-point{position:relative}
.difference-point::after{content:'';position:absolute;left:0;bottom:-1px;height:1px;width:100%;background:var(--ink-accent);transform:scaleX(0);transform-origin:left;transition:transform .6s cubic-bezier(.2,.8,.2,1)}
.difference-point:last-child::after{display:none}
.difference-point:hover::after{transform:scaleX(1)}
.point-number{color:var(--ink-accent)}
.difference-point h3{font-size:16.5px}
.difference-point p{font-size:14px;color:var(--soft);line-height:1.75}

/* Inside the app: on the dark theme it shares the page background; on light it stays a dark band */
:root:not([data-theme=light]) .inside{background:transparent}
:root:not([data-theme=light]) .inside::before,:root:not([data-theme=light]) .inside-contours{opacity:.6;-webkit-mask-image:linear-gradient(transparent,#000 22%,#000 78%,transparent);mask-image:linear-gradient(transparent,#000 22%,#000 78%,transparent)}

/* Beginners: images and type, no boxes */
.section-heading>p{font-size:14px;color:var(--soft);line-height:1.7}
.beginner-card{background:transparent;border:0;border-radius:0;overflow:visible}
.swim-card-visual,.academy-visual,.transition-visual{border-radius:20px;box-shadow:inset 0 0 0 1px var(--tile-line)}
.swim-card-visual img{filter:saturate(.85) brightness(.9);transition:transform .8s}
.beginner-card:hover .swim-card-visual img{transform:scale(1.04)}
.floating-label{font-size:10.5px;background:var(--label-bg);color:var(--text);border-radius:999px;padding:9px 14px;border:1px solid var(--line);right:auto}
.floating-label .icon{color:var(--route-swim)}
.beginner-card-copy{padding:26px 2px 0}
.beginner-card-copy>.mini-label{font-size:10.5px;color:var(--ink-accent)}
.beginner-card-copy p{font-size:14px;line-height:1.75;color:var(--soft)}
.beginner-card-copy .text-link{font-size:13px}
.academy-visual{background:var(--tile-academy);color:var(--text)}
.academy-visual>.mini-label,.transition-visual>.mini-label{font-size:10.5px;color:var(--muted)}
.lesson-cover>.icon{color:var(--ink-accent)}
.lesson-cover em{color:var(--ink-accent)}
.lesson-row{font-size:12px;border-top-color:var(--tile-line);color:var(--soft)}
.transition-visual{background:var(--tile-transition);color:var(--text)}
.transition-path>span{border-color:var(--hairline-strong);color:var(--route-bike)}
.transition-path>span:last-of-type{color:var(--route-run)}
.transition-path i{color:var(--muted)}
.transition-visual>p{font-size:12.5px;color:var(--soft)}
.transition-tag{font-size:10px;color:var(--muted)}
.beginner-guides .text-link{font-size:13px}

/* Beyond the workout */
.feature-icon{background:transparent;color:var(--ink-accent);box-shadow:inset 0 0 0 1px var(--feature-ring);width:46px;height:46px}
.feature-detail{font-size:10.5px;color:var(--ink-accent)}

/* Questions */
.questions{border-top-color:var(--line)}
.questions-heading>p:last-child{font-size:15px;color:var(--soft)}
.faq-list details{border-color:var(--line)}
.faq-list summary{font-size:15px;transition:color .2s}
.faq-list summary:hover{color:var(--ink-accent)}
.faq-list summary>span{color:var(--ink-accent)}
.faq-list details>p{font-size:14px;color:var(--soft);line-height:1.8}
.faq-list details a{color:var(--ink-accent)}

/* Closing: the finish line */
.closing-cta{background:transparent}
.closing-inner{padding-top:110px}
.closing-inner>.eyebrow{font-size:11px}
.closing-inner h2{color:var(--text)}
.closing-inner h2>span{color:var(--ink-accent)}
.closing-inner>p:not(.eyebrow){font-size:15px;color:var(--soft)}
.closing-inner>.button{font-size:14px}
.closing-sports{color:var(--muted)}
.closing-sports .icon:nth-of-type(1){color:var(--route-swim)}.closing-sports .icon:nth-of-type(2){color:var(--route-bike)}.closing-sports .icon:nth-of-type(3){color:var(--route-run)}

/* Footer */
.site-footer{color:var(--text);border-top:1px solid var(--line)}
.footer-top>div>p,.footer-about{font-size:13px;color:var(--muted)}
.footer-links{font-size:13px;color:var(--soft)}
.footer-links a:hover{color:var(--ink-accent)}
.footer-bottom{border-top-color:var(--line);font-size:11.5px}

@keyframes riseIn{from{opacity:0;transform:translateY(20px)}}

@media(max-width:1150px){.hero-description{font-size:15px}.discipline-strip p{font-size:12px}}
@media(max-width:900px){.hero-description{font-size:14.5px}.hero-copy>.eyebrow{font-size:10px}.beginner-card-copy p,.difference-point p,.faq-list details>p{font-size:13.5px}.difference-point h3{font-size:15px}.sport-photo figcaption{font-size:9px}.floating-label{font-size:9.5px}}
@media(max-width:700px){
  .js #main-nav.is-open{background:var(--paper);border-bottom-color:var(--line);box-shadow:0 24px 40px #00000040}
  .js #main-nav a{font-size:16px;color:var(--text)}
  .header-inner{gap:8px}
  .header-cta{margin-left:auto;font-size:13px;padding:5px 5px 5px 14px;min-height:42px}
  .header-cta>.icon{width:30px;height:30px;padding:7px}
  .hero-copy>.eyebrow{font-size:10.5px}
  .hero-description{font-size:15px}
  .hero-actions .button{font-size:14px;min-height:54px}
  .hero-actions .text-link{font-size:13px}
  .micro-copy{font-size:12px}
  .hero-side-note{display:none}
  .sport-photo figcaption{font-size:9.5px}
  .hero-note strong{font-size:13px}.hero-note div>span{font-size:11px}
  .discipline-strip p{font-size:12.5px;border-top-color:var(--line)}
  .difference-intro>p:last-child,.section-heading>p,.questions-heading>p:last-child{font-size:14.5px}
  .section-heading>p br{display:inline}
  .difference-point h3{font-size:16px}
  .difference-point p,.faq-list details>p{font-size:14px}
  .beginner-grid{gap:44px}
  .beginner-card{display:block}
  .swim-card-visual{height:230px;min-height:0}
  .academy-visual,.transition-visual{height:auto;min-height:230px}
  .beginner-card-copy{padding:22px 2px 0}
  .beginner-card-copy h3{font-size:32px}
  .beginner-card-copy>.mini-label,.academy-visual>.mini-label,.transition-visual>.mini-label{font-size:10.5px}
  .beginner-card-copy p{font-size:14px;margin-block:12px 16px}
  .beginner-card-copy .text-link{font-size:13px}
  .lesson-cover{flex-direction:row;align-items:center;gap:22px}
  .lesson-row{font-size:12px}
  .lesson-row:last-child{display:flex}
  .floating-label{font-size:10.5px;left:14px;bottom:14px}
  .transition-visual>p{font-size:12.5px}
  .feature-detail{font-size:10.5px}
  .faq-list summary{font-size:15px}
  .closing-inner{padding-top:90px}
  .closing-inner>.eyebrow{font-size:10.5px}
  .closing-inner>p:not(.eyebrow){font-size:14.5px}
  .footer-top{flex-direction:column;align-items:flex-start;gap:22px}
  .footer-links{font-size:13px;max-width:none;justify-content:flex-start;gap:12px 22px;padding-top:0}
  .footer-top>div>p,.footer-about{font-size:12.5px}
  .footer-bottom{font-size:11px}
}
@media(max-width:390px){.header-cta{font-size:12.5px;padding-left:12px;gap:8px}.sport-photo figcaption{font-size:9px}.beginner-card-copy h3{font-size:30px}}
@media(max-width:370px){.header-cta{padding:8px 16px}.header-cta>.icon{display:none}}
@media(max-width:340px){.header-inner{gap:6px}.header-cta{padding-inline:12px}.site-header .wordmark{font-size:26px}.site-header .brand-mark{width:23px;height:23px}}

/* Bands at the bottom of the page: dark (sync) and sage (FAQ) break up the paper.
   .band-dark carries the dark tokens, so buttons, lines and text inside switch over by themselves. */
.band-dark{--paper:#0e110f;--text:#f3f5ef;--muted:#9aa59d;--forest:#c5f277;--lime:#c5f277;--surface:#171b18;--line:#ffffff17;--soft:#c3cbc4;
  --ink-accent:#c5f277;--hairline-strong:#ffffff40;--btn-bg:#c5f277;--btn-fg:#101211;--btn-hover:#d8ff94;--arrow-bg:#101211;--arrow-fg:#c5f277;
  --route-swim:#8edbc1;--route-bike:#b9a4f5;--route-run:#8cc8f8;color-scheme:dark;background:var(--paper);color:var(--text)}
.sync-band{position:relative;isolation:isolate;background:radial-gradient(ellipse 45% 65% at 76% 52%,#c5f27717,transparent 70%),radial-gradient(ellipse 40% 50% at 0 0,#1f4a3340,transparent 70%),var(--paper)}
.sync-band .hub-spokes path{stroke:#ffffff26}
.sync-band .hub-spokes path.on{stroke:var(--ink-accent)}
.sync-band .hub-core{background:linear-gradient(150deg,#28402f,#141c17 70%);box-shadow:0 0 0 1px #c5f27738,0 30px 90px -24px #c5f2776b,inset 0 1px 0 #ffffff1f}
.sync-band .hub-core::before,.sync-band .hub-core::after{border-color:#c5f27766}
.sync-band .hub-chips li{box-shadow:0 8px 20px -12px #000}
.sync-band .hub-chips li.is-on{color:var(--btn-fg);box-shadow:0 14px 30px -12px #c5f27780}
.sync-band .hub-chips li.is-on i{background:#101211;box-shadow:none}
.sync-band .hub-chips li.is-on small{color:#101211a6}
.sync-band .sync-point-icon{background:#c5f27712;border-color:#c5f27733}
.questions{--line:#cdd7c3;background:#e7ede0;box-shadow:0 0 0 100vmax #e7ede0;clip-path:inset(0 -100vmax)}
