/* Gladmile's website.
   Structure and finish follow the Gati Labs, Quiet Fitness and Rucktoise sites: a dark hero with a gold glow,
   the run on iPhone and Apple Watch, hairline gold rules, small tracked labels, numbered principles and a dark
   footer. Colours and type are the app's Open Road look (coach-kit DesignKit looks.json, approved Dec 3, 2026):
   the night sky, gold as the one accent, the blue and pink splashes, a colour per run step, and wide bold
   Archivo for headlines and numbers. Fonts are hosted here: no outside fonts, scripts, cookies or analytics. */
@font-face { font-family: "Archivo"; src: url("/assets/fonts/Archivo.woff2") format("woff2"); font-weight: 700 900; font-stretch: 100% 125%; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }

:root {
  --paper: #FBF6EC; --panel: #FFFFFF; --hair: rgba(18,26,54,.12);
  --ink: #121A36; --muted: #4A5170; --gold: #8A5F00;
  --night: #0D1330; --sky-top: #1B2560; --sky-bottom: #141C49;
  --on-night: #F3F1EA; --on-night-muted: #A9B0CC; --gold-bright: #F6C04E; --action: #F4B73A; --on-action: #121A36;
  --warm: #FFB38A; --work: #F6C04E; --recover: #7FA4FF; --easy: #4FD1C5; --stretch: #F59AC6;
  --ready: #1A6E44; --ready-fill: #DDF1E4; --easier: #7A5000; --easier-fill: #FCEBC2; --rest: #A63C25; --rest-fill: #FBE0D8;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --radius: 24px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0D1330; --panel: #172042; --hair: rgba(243,241,234,.12);
    --ink: #F3F1EA; --muted: #A9B0CC; --gold: #F6C04E;
    --ready: #7EDC9E; --ready-fill: #1B3A33; --easier: #F5CD5B; --easier-fill: #3A3418; --rest: #FF8F78; --rest-fill: #45231E;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16.5px/1.7 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration-color: var(--gold); text-underline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; font-stretch: 106%; line-height: 1.08; letter-spacing: -0.015em; margin: 0; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3 { font-size: 1.2rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
em { font-style: normal; color: var(--gold); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); margin-inline: auto; }
section { padding: clamp(72px, 10vw, 128px) 0; }
.center { text-align: center; }
.lede { font-size: clamp(1.05rem, 1.7vw, 1.2rem); color: var(--muted); max-width: 580px; }
.center .lede { margin-inline: auto; }
.stack > * + * { margin-top: 22px; }

/* Small tracked label with a gold rule */
.label { display: inline-flex; align-items: center; gap: 14px; font: 600 .72rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.label::before, .center .label::after { content: ""; width: 32px; height: 1px; background: currentColor; opacity: .7; }

/* Header, over the dark hero */
header { position: absolute; inset: 0 0 auto; z-index: 5; color: var(--on-night); }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; min-height: 84px; padding: 14px 0; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; font: 900 1.3rem/1 var(--display); font-stretch: 106%; letter-spacing: -0.01em; text-decoration: none; color: var(--on-night); }
.wordmark img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
header nav { display: flex; gap: clamp(16px, 3.4vw, 36px); }
header nav a { font: 500 .74rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--on-night-muted); padding: 6px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
header nav a:hover, header nav a[aria-current="page"] { color: var(--on-night); border-bottom-color: var(--gold-bright); }

/* Night sky: the hero, the run band and the page heads */
.sky { position: relative; overflow: hidden; color: var(--on-night); background: linear-gradient(180deg, var(--sky-top), var(--sky-bottom) 55%, var(--night)); }
.sky::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(520px 380px at 6% 14%, rgba(61,107,224,.32), transparent 70%),
              radial-gradient(480px 360px at 98% 92%, rgba(236,111,169,.20), transparent 70%),
              radial-gradient(560px 420px at 72% 40%, rgba(246,192,78,.16), transparent 70%); }
.sky::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(246,192,78,.55), transparent); }
.sky .wrap, .sky .narrow { position: relative; }
.sky .lede { color: var(--on-night-muted); }
.sky .label, .sky em { color: var(--gold-bright); }

.hero { padding: clamp(130px, 15vw, 170px) 0 clamp(72px, 9vw, 112px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy > * + * { margin-top: 24px; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } }

/* Buttons */
.buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px !important; }
.center .buttons { justify-content: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: 999px; font: 600 .78rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent; transition: transform .2s, border-color .2s, box-shadow .2s; }
.btn.gold { background: var(--action); color: var(--on-action); box-shadow: 0 10px 30px -10px rgba(246,192,78,.65); }
.btn.gold:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(246,192,78,.85); }
.btn.line { border-color: rgba(243,241,234,.3); color: var(--on-night); }
.btn.line:hover { border-color: var(--gold-bright); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 3px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .9rem; color: var(--on-night-muted); }
.facts span { display: inline-flex; align-items: center; gap: 8px; }
.facts span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-bright); }

/* The run on iPhone and Apple Watch (frames drawn in CSS, after Rucktoise's site) */
.devices { position: relative; height: clamp(560px, 50vw, 620px); }
.phone { position: absolute; right: 4%; top: 0; width: clamp(250px, 23vw, 282px); padding: 10px; border-radius: 50px; background: linear-gradient(145deg, #4A4A4D, #232325 45%, #141415); box-shadow: inset 0 0 0 1.5px #5C5C60, 0 50px 90px -30px rgba(0,0,0,.8), 0 0 80px -20px rgba(246,192,78,.25); }
.phone img { width: 100%; border-radius: 40px; }
.phone .island { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 30%; height: 22px; border-radius: 12px; background: #000; }
.watch { position: absolute; z-index: 2; left: 2%; bottom: 70px; width: 160px; animation: float 7s ease-in-out infinite; }
.band { position: absolute; left: 50%; transform: translateX(-50%); top: -92px; bottom: -92px; width: 112px; border-radius: 26px; background: linear-gradient(90deg, #1A2350 0, #26316A 8%, #2B3878 50%, #26316A 92%, #1A2350 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 -1px 0 rgba(0,0,0,.25); }
.band::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 16px; width: 8px; height: 58px; background: radial-gradient(circle at 4px 4px, #F6C04E 2.4px, transparent 3.1px) 0 0 / 8px 14px repeat-y; opacity: .8; }
.case { position: relative; padding: 8px; border-radius: 46px; background: linear-gradient(145deg, #4A4A4D, #232325 45%, #141415); box-shadow: inset 0 0 0 1.5px #5C5C60, 0 28px 60px rgba(0,0,0,.6); }
.watch .face { border-radius: 38px; background: #000; padding: 10px 8px; overflow: hidden; }
.watch img { width: 100%; border-radius: 26px; }
.crown { position: absolute; right: -7px; top: 24%; width: 9px; height: 30px; border-radius: 4px; background: linear-gradient(90deg, #2A2A2C, #6A6A6E 60%, #3A3A3C); box-shadow: inset 0 0 0 1px #1A1A1B; }
.side-button { position: absolute; right: -4px; top: 52%; width: 5px; height: 38px; border-radius: 3px; background: linear-gradient(90deg, #2A2A2C, #55555A); }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (max-width: 920px) { .devices { max-width: 460px; width: 100%; margin-inline: auto; } .phone { right: 0; } .watch { left: 0; } }
@media (max-width: 440px) { .devices { height: 500px; } .phone { width: 230px; } .watch { width: 128px; bottom: 80px; } .band { width: 90px; top: -70px; bottom: -70px; } }

/* Pacer, the coach: a small glowing gold light */
.pacer { width: 22px; height: 22px; flex: none; border-radius: 50%; background: radial-gradient(circle, #FFF4D6 0 22%, #F6C04E 48%, rgba(246,192,78,0) 74%); box-shadow: 0 0 18px 4px rgba(246,192,78,.45); }
.from { display: inline-flex; gap: 14px; align-items: center; padding: 12px 18px 12px 14px; border-radius: 18px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); font-size: .95rem; line-height: 1.4; color: var(--on-night); max-width: 460px; }
.from small { display: block; font: 600 .64rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--on-night-muted); margin-bottom: 5px; }

/* Big wide numbers */
.numbers { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--hair); }
.numbers > div { padding: clamp(28px, 4vw, 44px) clamp(16px, 3vw, 32px); }
.numbers > div + div { border-left: 1px solid var(--hair); }
.numbers b { display: block; font: 900 clamp(2.8rem, 6vw, 4.4rem)/1 var(--display); font-stretch: 106%; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.numbers b small { font-size: .38em; letter-spacing: 0; margin-left: 6px; color: var(--gold); }
.numbers span { display: block; margin-top: 12px; color: var(--muted); }
@media (max-width: 760px) { .numbers { grid-template-columns: 1fr; } .numbers > div + div { border-left: 0; border-top: 1px solid var(--hair); } }

/* Numbered steps and principles */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(36px, 5vw, 56px) clamp(32px, 5vw, 64px); margin-top: clamp(44px, 6vw, 72px); counter-reset: p; }
.grid > div { counter-increment: p; border-top: 1px solid var(--hair); padding-top: 22px; }
.grid > div::before { content: counter(p, decimal-leading-zero); display: block; font: 900 1.1rem/1 var(--display); font-stretch: 106%; color: var(--gold); margin-bottom: 16px; }
.grid h3 { margin-bottom: 10px; }
.grid p { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { padding: 6px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.chip.ready { color: var(--ready); background: var(--ready-fill); }
.chip.easier { color: var(--easier); background: var(--easier-fill); }
.chip.rest { color: var(--rest); background: var(--rest-fill); }
.panel { background: var(--panel); border-block: 1px solid var(--hair); }

/* The run band: a colour for every step */
.track { display: grid; grid-template-columns: 5fr 6fr 2fr 6fr 2fr 6fr 4fr 3fr; gap: 6px; margin-top: clamp(40px, 6vw, 56px); }
.track i { height: 14px; border-radius: 7px; background: var(--c); }
.legend { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 22px; font-size: .92rem; color: var(--on-night-muted); }
.legend span { display: inline-flex; align-items: center; gap: 10px; }
.legend span::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--c); }

/* FAQ */
details { border-bottom: 1px solid var(--hair); }
details:first-of-type { border-top: 1px solid var(--hair); }
summary { list-style: none; cursor: pointer; padding: 22px 0; font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 400 1.5rem/1 var(--sans); color: var(--gold); flex: none; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 24px; color: var(--muted); }
details a { color: var(--ink); }

/* Closing */
.closing h2 { font-size: clamp(3rem, 9vw, 6rem); }

/* Policy, terms and support pages */
.page-hero { padding: clamp(130px, 15vw, 170px) 0 clamp(52px, 7vw, 76px); }
.page-hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); margin-top: 18px; }
.page-hero .lede { margin-top: 16px; }
.prose { padding: clamp(48px, 7vw, 80px) 0 clamp(72px, 10vw, 112px); }
.prose h2 { font-size: clamp(1.2rem, 2.6vw, 1.5rem); font-stretch: 100%; margin: 52px 0 14px; display: flex; align-items: center; gap: 16px; }
.prose h2::before { content: ""; width: 28px; height: 1px; background: var(--gold); flex: none; }
.prose > h2:first-child { margin-top: 0; }
.prose p + p { margin-top: 14px; }
.prose p, .prose li { color: var(--muted); }
.prose a { color: var(--ink); overflow-wrap: anywhere; }
.prose .contact { background: var(--panel); border: 1px solid var(--hair); border-radius: var(--radius); padding: clamp(24px, 4vw, 36px); position: relative; margin-bottom: 8px; }
.prose .contact::before { content: ""; position: absolute; top: -1px; left: clamp(24px, 4vw, 36px); width: 48px; height: 2px; background: var(--gold); }
.prose .contact h2 { margin-top: 0; }
.prose .contact h2::before { display: none; }

/* Footer */
footer { background: var(--night); color: var(--on-night-muted); padding: clamp(64px, 9vw, 96px) 0 40px; font-size: .92rem; }
footer .top { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 40px; }
footer .say { font: 900 1.5rem/1.1 var(--display); font-stretch: 106%; color: var(--on-night); margin-top: 18px; }
footer h3 { font: 600 .7rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-bright); margin-bottom: 18px; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li + li { margin-top: 8px; }
footer a { color: var(--on-night); text-decoration-color: rgba(246,192,78,.6); }
footer a:hover { color: var(--gold-bright); }
footer .legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(243,241,234,.12); font-size: .8rem; line-height: 1.6; }
footer .legal p + p { margin-top: 6px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }
