:root {
  color-scheme: dark;
  /* surfaces */
  --bg: #09090A;
  --surface: #161618;
  --surface-2: #1E1E20;
  --line: rgba(255, 255, 255, .14);
  --overlay: rgba(9, 9, 10, .72);
  /* text */
  --text: #F5F5F7;
  --text-dim: rgba(255, 255, 255, .58);
  --text-faint: #8A8A8C;
  /* accent: the colour picker sets it on <html> */
  --accent: #F5D600;
  --ink: #000000;
  --accent-soft: color-mix(in srgb, var(--accent) 14%, var(--bg));
  --accent-glow: color-mix(in srgb, var(--accent) 28%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 40%, transparent);
  /* states */
  --success: #34D399;
  --warning: #FBBF24;
  --danger: #FF6B6B;
  --info: #60A5FA;
  /* the parts of the phone drawn over the app pictures */
  --device-black: #000000;
  --device-white: #FFFFFF;
  /* motion */
  --ease: cubic-bezier(.32, .72, 0, 1);
  --t-fast: 200ms;
  --t-base: 400ms;
  --t-slow: 700ms;
  /* space */
  --section-y: 96px;
  --gutter: 24px;
  /* type: fluid from 390 to 1280 px */
  --font: "Inter", "Inter Fallback", system-ui, sans-serif;
  --fs-display: clamp(2.75rem, 1.545rem + 4.944vw, 5.5rem);
  --fs-title: clamp(2rem, 1.343rem + 2.697vw, 3.5rem);
  --fs-heading: clamp(1.375rem, 1.211rem + 0.674vw, 1.75rem);
  --fs-lead: clamp(1.1875rem, 1.051rem + 0.562vw, 1.5rem);
  --fs-body: clamp(1.0625rem, 1.035rem + 0.112vw, 1.125rem);
  --fs-ui: 1rem;
  --fs-caption: .875rem;
  --fs-label: .8125rem;
}
@media (min-width: 860px) { :root { --section-y: 144px; } }

/* Inter, self-hosted (SIL Open Font License, fonts/Inter-LICENSE.txt). The fallback is Arial resized to Inter's
   measurements, so nothing jumps when Inter arrives. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/InterVariable.woff2) format("woff2");
}
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  size-adjust: 107.4%;
  ascent-override: 90.2%;
  descent-override: 22.48%;
  line-gap-override: 0%;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-family: var(--font); font-optical-sizing: auto; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  background: var(--bg);
  color: var(--text);
  font-size: var(--fs-body);
  line-height: 1.5;
  letter-spacing: -.013em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; }
h1, h2, h3 { font-weight: 600; text-wrap: balance; }
h1 { font-size: var(--fs-display); line-height: 1.04; letter-spacing: -.022em; }
h2 { font-size: var(--fs-title); line-height: 1.08; letter-spacing: -.022em; }
h3 { font-size: var(--fs-heading); line-height: 1.2; letter-spacing: -.02em; }
p { text-wrap: pretty; }
.counter { font-variant-numeric: tabular-nums; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.lead { color: var(--text-dim); font-size: var(--fs-lead); line-height: 1.4; letter-spacing: -.017em; margin-top: 16px; max-width: 34ch; }

.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }

/* ---- Navigation: a bar that turns translucent after 24 px, a full-screen menu on phones, a small Download button
   after the hero on phones ---- */
:root { --nav-h: 56px; }
@media (min-width: 860px) { :root { --nav-h: 64px; } }
html.js body { padding-top: var(--nav-h); }
[id] { scroll-margin-top: 72px; }
.skip { position: absolute; left: var(--gutter); top: -100px; z-index: 50; padding: 12px 16px; border-radius: 12px; background: var(--text); color: var(--bg); font-weight: 600; }
.skip:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) max(var(--gutter), env(safe-area-inset-right, 0px)) 0 max(var(--gutter), env(safe-area-inset-left, 0px));
  border-bottom: 1px solid transparent;
  transition: background-color var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
html:not(.js) .site-nav { position: static; }
.site-nav.scrolled, .site-nav.open { background: var(--overlay); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); }
.nav-in { display: flex; align-items: center; gap: 12px; max-width: 1100px; height: var(--nav-h); margin: 0 auto; }
.nav-in .logo { margin-right: auto; }
.nav-links { display: none; }
.btn-pill, .fab {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--accent); color: var(--ink); font-size: var(--fs-ui); font-weight: 600; letter-spacing: -.011em; line-height: 1.25;
}
.btn-pill:active, .fab:active { transform: scale(.97); }
.menu-btn { display: none; }
html.js .menu-btn { display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; color: var(--text); cursor: pointer; }
.menu-btn span { display: block; width: 20px; height: 2px; border-radius: 1px; background: currentColor; transition: transform var(--t-base) var(--ease); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu {
  position: fixed; inset: calc(var(--nav-h) + env(safe-area-inset-top, 0px)) 0 0; z-index: 29; overflow-y: auto;
  padding: 24px max(var(--gutter), env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px));
  background: var(--bg);
  opacity: 0; transform: translateY(-8px); transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.menu.shown { opacity: 1; transform: none; }
.menu ol { list-style: none; }
.menu a { display: flex; align-items: baseline; gap: 12px; min-height: 64px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 2rem; font-weight: 600; letter-spacing: -.022em; line-height: 1.2; }
.menu small { color: var(--text-faint); font-size: var(--fs-caption); font-weight: 500; font-variant-numeric: tabular-nums; }
html.menu-open { overflow: hidden; }
.fab {
  position: fixed; z-index: 20; right: max(var(--gutter), env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  opacity: 0; transform: translateY(8px); pointer-events: none; visibility: hidden;
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease), visibility var(--t-base), background-color var(--t-base) var(--ease);
}
.fab.shown { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
@media (min-width: 860px) {
  html.js .menu-btn, .menu, .fab { display: none; }
  .nav-links { display: flex; gap: 32px; position: absolute; left: 50%; transform: translateX(-50%); }
  .nav-in { position: relative; }
  .nav-links a { position: relative; display: flex; align-items: center; min-height: 44px; color: var(--text-dim); font-size: var(--fs-ui); font-weight: 500; letter-spacing: -.011em; }
  .nav-links a:hover, .nav-links a.active { color: var(--text); }
  .nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; border-radius: 1px; background: var(--accent); transform: scaleX(0); transition: transform var(--t-base) var(--ease), background-color var(--t-base) var(--ease); }
  .nav-links a.active::after { transform: none; }
}
.logo { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: var(--fs-heading); font-weight: 600; letter-spacing: -.02em; }
.logo .mark { position: relative; display: block; width: 29px; height: 24px; }
.logo .mark img { width: 100%; height: 100%; }
.logo .mark i {
  position: absolute;
  inset: 0;
  background: var(--accent);
  -webkit-mask: url(img/logo-sole.png) center / 100% 100% no-repeat;
  mask: url(img/logo-sole.png) center / 100% 100% no-repeat;
}

.note { margin-top: 12px; color: var(--text-dim); font-size: var(--fs-caption); line-height: 1.4; letter-spacing: -.006em; }

/* ---- Hero: one sentence about walking, two full-width buttons, the picker, and the phone peeking below the fold ---- */
.hero { padding: 24px max(var(--gutter), env(safe-area-inset-right, 0px)) 0 max(var(--gutter), env(safe-area-inset-left, 0px)); text-align: center; }
.hero h1 { max-width: 12ch; margin: 0 auto; }
.hero .accent { color: var(--accent); }
.hero .lead { margin: 16px auto 0; }
.hero-ctas { display: grid; gap: 12px; margin-top: 24px; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 14px;
  font-size: var(--fs-ui); font-weight: 600; letter-spacing: -.011em; line-height: 1.25;
  transition: transform 120ms var(--ease), filter var(--t-fast) var(--ease), background-color var(--t-base) var(--ease), color var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.btn svg { width: 20px; height: 20px; flex: none; fill: currentColor; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-outline { border: 1px solid var(--line); color: var(--text); }
@media (hover: hover) { .btn:hover, .btn-pill:hover, .fab:hover { filter: brightness(1.06); } }
.hero .picker { margin-top: 24px; }
.hero-phone { width: min(78vw, 320px); margin: 32px auto 0; }
.hero-phone img { width: 100%; height: auto; }
@media (min-width: 860px) {
  .hero { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; max-width: 1100px; margin: 0 auto; padding-top: 32px; text-align: left; }
  .hero h1 { max-width: 11ch; margin: 0; }
  .hero .lead { margin-left: 0; }
  .hero-ctas { grid-auto-flow: column; justify-content: start; }
  .hero .picker { margin-left: 0; }
  .hero .picker-note { text-align: left; }
  .hero-phone { width: 360px; margin: 0; }
}

.picker {
  display: flex;
  justify-content: space-around;
  width: min(100%, 360px);
  margin: 24px auto 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}
/* Everything drawn in the accent changes colour together, in 400 ms. */
.hero .accent, .sec-label, .step-n, .steps::before, .ring-fill, .streak-n, .days .hit, .chip, .ticks li::before, .plan-price, .logo .mark i, .swatch, .btn-pill, .fab, .btn-primary, .nav-links a::after, .doc a {
  transition: background-color var(--t-base) var(--ease), color var(--t-base) var(--ease), border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.swatch {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: var(--ink);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-base) var(--ease);
}
.swatch:active { transform: scale(.97); }
.picker-note { margin-top: 12px; color: var(--text-faint); font-size: var(--fs-caption); line-height: 1.4; text-align: center; }
.swatch:focus-visible { outline: 2px solid var(--text); outline-offset: 5px; }
.swatch svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; visibility: hidden; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--text); }
.swatch[aria-pressed="true"] svg { visibility: visible; }

/* ---- Sections: the same anatomy everywhere: label, title, one paragraph, the app fragment with a caption ---- */
.sec { max-width: 1100px; margin: 0 auto; padding: var(--section-y) max(var(--gutter), env(safe-area-inset-right, 0px)) 0 max(var(--gutter), env(safe-area-inset-left, 0px)); }
.sec-label { margin-bottom: 12px; color: var(--accent); font-size: var(--fs-caption); font-weight: 600; line-height: 1.4; letter-spacing: -.006em; }
.sec h2 { max-width: 18ch; }
.sec-text { max-width: 34ch; margin-top: 16px; color: var(--text-dim); font-size: var(--fs-lead); line-height: 1.4; letter-spacing: -.017em; }
.blocked, [data-text-missing] { margin-top: 24px; padding: 16px; border: 1px dashed var(--warning); border-radius: 16px; color: var(--text-dim); font-size: var(--fs-caption); }
.frag { margin-top: 32px; max-width: 420px; }
.frag figcaption { margin-top: 12px; color: var(--text-faint); font-size: var(--fs-caption); line-height: 1.4; letter-spacing: -.006em; }
.card { padding: 16px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }

/* App fragments, drawn in HTML so they follow the picked colour (no pictures). Numbers match the app pictures. */
.goal-card { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.ring { position: relative; width: 132px; height: 132px; --p: .676; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring-track { stroke: var(--surface-2); }
.ring-fill { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: var(--p) 1; transition: stroke var(--t-base) var(--ease); }
.ring-text { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-text b { color: var(--accent); font-size: 1.625rem; font-weight: 700; line-height: 1; letter-spacing: -.022em; }
.ring-text span { margin-top: 4px; color: var(--text-dim); font-size: var(--fs-label); font-weight: 500; letter-spacing: -.003em; }
.goal-of { color: var(--text-dim); font-size: var(--fs-caption); }
.streak { margin-top: 8px; font-weight: 600; }
.streak-n { color: var(--text); font-weight: 700; }
.days { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 6px; list-style: none; }
.days li { flex: none; }
.days li { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); color: var(--text-dim); font-size: var(--fs-label); font-weight: 600; }
.days .hit { background: var(--accent); color: var(--ink); }
.days .today { box-shadow: inset 0 0 0 2px var(--accent-line); background: transparent; color: var(--text); }
.bank-card { display: grid; gap: 4px; }
.bank-label { color: var(--text-dim); font-size: var(--fs-label); font-weight: 500; letter-spacing: -.003em; }
.bank-total { color: var(--text-dim); font-size: var(--fs-caption); }
.bank-total b { color: var(--text); font-size: 2rem; font-weight: 700; letter-spacing: -.022em; }
.bank-line { color: var(--text-dim); }
.bank-row { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 20px; border-radius: 999px; background: var(--accent); color: var(--ink); font-size: var(--fs-ui); font-weight: 600; }
.bank-left { color: var(--text-dim); font-size: var(--fs-caption); }

.statement { padding-bottom: 0; }
.statement-text { max-width: 22ch; font-size: var(--fs-title); font-weight: 600; line-height: 1.15; letter-spacing: -.022em; }

.steps { position: relative; display: grid; gap: 32px; margin-top: 32px; list-style: none; }
.steps::before { content: ""; position: absolute; left: 15px; top: 16px; bottom: 16px; width: 2px; border-radius: 1px; background: var(--accent-line); }
.steps li { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: 16px; }
.step-n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--ink); font-size: var(--fs-caption); font-weight: 600; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: var(--fs-heading); }
.steps p { max-width: 60ch; margin-top: 8px; color: var(--text-dim); }

.plans { display: grid; gap: 16px; margin-top: 32px; }
.plan { display: flex; flex-direction: column; gap: 12px; padding: 24px; }
.plan h3 { font-size: var(--fs-heading); }
.plan-price { color: var(--accent); font-size: var(--fs-heading); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.plan-alt, .plan-note { color: var(--text-dim); font-size: var(--fs-caption); }
.plan .btn { margin-top: auto; }
.ticks { display: grid; gap: 12px; list-style: none; }
.ticks li { position: relative; padding-left: 24px; color: var(--text-dim); }
.ticks li b { color: var(--text); font-weight: 600; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }

.faq { margin-top: 32px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 12px 0; cursor: pointer; list-style: none; font-size: var(--fs-body); font-weight: 600; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px; border-right: 2px solid var(--text-dim); border-bottom: 2px solid var(--text-dim); transform: translateY(-3px) rotate(45deg); transition: transform var(--t-base) var(--ease); }
.faq details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.faq-a { padding-bottom: 16px; color: var(--text-dim); max-width: 60ch; }
.faq-a a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }

.final { padding-bottom: var(--section-y); text-align: center; }
.final h2 { margin: 0 auto; }
.final .btn { max-width: 360px; margin: 32px auto 0; }
.final .note { margin-top: 12px; color: var(--text-faint); }

.site-foot { border-top: 1px solid var(--line); color: var(--text-dim); font-size: var(--fs-caption); line-height: 1.4; }
.foot-in { display: grid; gap: 24px; max-width: 1100px; margin: 0 auto; padding: 48px max(var(--gutter), env(safe-area-inset-right, 0px)) calc(48px + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px)); }
.foot-in .logo { justify-self: start; color: var(--text); }
.foot-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.foot-cols h2 { margin-bottom: 4px; color: var(--text); font-size: var(--fs-caption); font-weight: 600; letter-spacing: 0; line-height: 1.4; }
.foot-cols a { display: flex; align-items: center; min-height: 44px; }
.foot-cols a:hover { color: var(--text); }
.foot-store { justify-self: start; }
.foot-copy { color: var(--text-faint); }

@media (min-width: 860px) {
  .plans { grid-template-columns: 1fr 1fr; }
  .foot-in { grid-template-columns: 1fr auto; align-items: start; }
  .foot-cols { grid-template-columns: repeat(3, auto); gap: 48px; }
  .foot-store, .foot-copy { grid-column: 1; }
}

/* Privacy, Terms and Support */
.doc { max-width: 640px; margin: 0 auto; padding: 32px 24px 0; }
.doc h1 { font-size: var(--fs-title); }
.doc .updated { margin-top: 8px; color: var(--text-faint); font-size: var(--fs-caption); }
.doc .intro { margin-top: 24px; }
.doc h2 { margin-top: 32px; font-size: var(--fs-heading); }
.doc h3 { margin-top: 24px; font-size: var(--fs-body); line-height: 1.3; letter-spacing: -.013em; }
.doc p, .doc ul { margin-top: 12px; color: var(--text-dim); max-width: 60ch; }
.doc ul { padding-left: 24px; }
.doc li + li { margin-top: 8px; }
.doc strong { color: var(--text); }
.doc a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}
