/* OtroDorsal landing. Brand: the icon's navy with its orange gradient. */
:root {
  --navy-950: #071226;
  --navy-900: #0B1A35;
  --navy-850: #0F2142;
  --navy-800: #142A52;
  --navy-700: #1D3766;
  --orange: #FF6A3D;
  --orange-hi: #FF9152;
  --orange-lo: #E8452C;
  --grad: linear-gradient(135deg, var(--orange-hi) 0%, var(--orange) 45%, var(--orange-lo) 100%);
  --text: #F5F2EC;
  --muted: #A9B4C8;
  --line: rgba(255, 255, 255, .09);
  --glass: rgba(255, 255, 255, .045);
  --paper: #F6F3EE;
  --paper-ink: #0B1A35;
  --paper-muted: #5A6478;
  --radius: 22px;
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Barlow Condensed", "Barlow", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy-900);
  color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--orange); color: #fff; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--orange); color: #fff; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--orange-hi); outline-offset: 3px; border-radius: 8px; }

/* Scroll progress */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60;
  background: var(--grad);
  transform-origin: 0 50%;
  transform: scaleX(var(--scroll, 0));
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 14px; border: 0;
  font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn-sm { padding: 10px 16px; font-size: 15px; border-radius: 12px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px -8px rgba(255, 106, 61, .7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(255, 106, 61, .9); }

/* Nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(7, 18, 38, .72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-color: var(--line); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 26px; height: auto; }
.brand span { font: 700 24px/1 var(--display); letter-spacing: .2px; }
.brand b { color: var(--orange); font-weight: 800; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 14px; border-radius: 10px; color: var(--muted); font-weight: 500; font-size: 15px; text-decoration: none; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: var(--glass); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-links + .nav-actions { margin-left: 8px; }

.lang { position: relative; }
.lang summary {
  list-style: none; display: flex; align-items: center; gap: 6px; cursor: pointer;
  padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass);
  font: 600 14px/1 var(--font); text-transform: uppercase; letter-spacing: .5px; user-select: none;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 18px; height: 18px; }
.lang ul {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; margin: 0; padding: 6px; list-style: none;
  background: rgba(15, 33, 66, .96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .7);
  animation: pop .2s var(--ease);
}
.lang li a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-size: 15px; }
.lang li a:hover { background: var(--glass); }
.lang li a small { color: var(--muted); text-transform: uppercase; font-size: 12px; letter-spacing: .5px; }
.lang li a[aria-current] { color: var(--orange-hi); font-weight: 600; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }

/* Shared section bits */
section { position: relative; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px;
  color: var(--orange-hi); font: 700 15px/1 var(--display); text-transform: uppercase; letter-spacing: 2.4px;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--grad); border-radius: 2px; }
.title {
  font: 800 clamp(36px, 5.2vw, 64px)/.98 var(--display);
  text-transform: uppercase; letter-spacing: -.5px; text-wrap: balance;
}
.title.xl { font-size: clamp(44px, 7vw, 92px); }
.title em, .hero-title em {
  font-style: italic; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
}
.lead { margin-top: 20px; max-width: 620px; color: var(--muted); font-size: clamp(17px, 1.6vw, 19px); text-wrap: pretty; }
.section-head { text-align: center; margin: 0 auto 56px; display: flex; flex-direction: column; align-items: center; }
.section-head.left { text-align: left; align-items: flex-start; }
.ico {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 13px;
  background: rgba(255, 106, 61, .14); color: var(--orange-hi); border: 1px solid rgba(255, 106, 61, .25);
}
.ico svg { width: 22px; height: 22px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Blobs + grain */
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; will-change: transform; }
.grain {
  position: absolute; inset: 0; opacity: .08; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 80px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 80% at 70% 10%, var(--navy-800) 0%, var(--navy-900) 45%, var(--navy-950) 100%); }
.hero .b1 { width: 520px; height: 520px; left: -140px; top: 10%; background: #FF6A3D; opacity: .32; animation: drift1 18s ease-in-out infinite alternate; }
.hero .b2 { width: 460px; height: 460px; right: -80px; top: -120px; background: #FF9152; opacity: .28; animation: drift2 22s ease-in-out infinite alternate; }
.hero .b3 { width: 600px; height: 600px; right: 20%; bottom: -320px; background: #3D5BFF; opacity: .22; animation: drift1 26s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(120px, 80px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-140px, 120px) scale(.9); } }
.road { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.road-dash { animation: dash 2.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -96; } }
.comet { mix-blend-mode: screen; stroke: none; }

.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; }
.hero-title {
  font: 800 clamp(50px, 7.2vw, 100px)/.9 var(--display);
  text-transform: uppercase; letter-spacing: -1px; text-wrap: balance;
}
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .04em; margin-bottom: -.04em; }
.hero-title .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease) var(--d, 0s); }
.hero-title.in .w > span { transform: none; }
.no-js .hero-title .w > span { transform: none; }
.hero-title em { display: inline; }
.hero-title.split em { background: none; color: inherit; }
.hero-title.split em .w > span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em; margin-right: -.08em; }
.hero-lead { margin-top: 26px; max-width: 540px; color: var(--muted); font-size: clamp(17px, 1.7vw, 20px); }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.store {
  position: relative; display: inline-flex; align-items: center; gap: 12px; min-width: 196px;
  padding: 11px 20px 11px 16px; border-radius: 14px; text-decoration: none;
  background: #fff; color: var(--navy-950); border: 1px solid rgba(255, 255, 255, .2);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.store:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .7); }
.store svg { width: 28px; height: 28px; flex: none; }
.store .apple { fill: currentColor; stroke: none; }
.store .play path { stroke: none; }
/* Store names never wrap: when two badges don't fit side by side, they stack. */
.store span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; white-space: nowrap; }
.store small { font-size: 12px; font-weight: 500; opacity: .75; }
.store b { font: 700 21px/1.05 var(--font); letter-spacing: -.2px; }
.store .s-live { display: none; }
.store.is-live .s-live { display: inline; }
.store.is-live .s-soon { display: none; }
.store.is-soon { background: rgba(255, 255, 255, .08); color: var(--text); cursor: default; }
.store.is-soon:hover { transform: none; box-shadow: none; }
.hero-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 30px; color: var(--muted); font-weight: 600; text-decoration: none; }
.hero-more svg { width: 18px; height: 18px; animation: bob 1.8s ease-in-out infinite; }
.hero-more:hover { color: var(--text); }
@keyframes bob { 50% { transform: translateY(4px); } }

/* Phone mockup */
.hero-visual { display: flex; flex-direction: column; align-items: center; gap: 28px; perspective: 1400px; }
.phone-wrap { position: relative; transform-style: preserve-3d; transition: transform .6s var(--ease); animation: rise 1.4s var(--ease) .2s both; }
@keyframes rise { from { opacity: 0; transform: translateY(60px) rotateX(12deg); } }
.phone {
  position: relative; width: 300px; height: 620px; padding: 11px; border-radius: 50px;
  background: linear-gradient(145deg, #2A3550, #0A1022 60%);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .14) inset, 0 50px 100px -30px rgba(0, 0, 0, .9), 0 0 120px -30px rgba(255, 106, 61, .55);
}
/* Colors of the app's light and dark themes (color_schemes.dart); the hero
   swaps between them with the .dark class. */
.phone-screen {
  --surface: #F7F7F5; --on-surface: #1C1C1F; --muted: #64646B; --card: #fff; --card-low: #F1F0ED;
  --line: #E4E4E2; --accent: #D24414; --on-accent: #fff; --accent-soft: #FCE5DA; --glass: 60%; --glass-line: rgba(0, 0, 0, .2); --glass-shadow: rgba(0, 0, 0, .08);
  position: relative; isolation: isolate; height: 100%; border-radius: 40px; overflow: hidden; padding: 12px 16px 0;
  background: var(--surface); color: var(--on-surface); font-size: 12px; line-height: 1.3; text-align: left;
  transition: background-color .6s var(--ease), color .6s var(--ease);
}
.phone-screen.dark {
  --surface: #121214; --on-surface: #EDEDEF; --muted: #A1A1A8; --card: #1C1C1F; --card-low: #19191C;
  --line: #2C2C30; --accent: #FF7A45; --on-accent: #1C1C1F; --accent-soft: #4A1D0C; --glass: 55%; --glass-line: rgba(255, 255, 255, .2); --glass-shadow: rgba(0, 0, 0, .3);
}
.phone-screen.dark .m-road { --bg: #1E2B4A; --fg: #A9C3F7; }
.phone-screen :is(.ph-icons i, .ph-head small, .ph-bell, .ph-sec span, .ph-card, .ph-card small, .ph-tag, .ph-mark, .ph-cal, .ph-cal small, .ph-tool, .ph-tool > span, .ph-tool small, .ph-tabbar, .ph-tabbar span) {
  transition: background-color .6s var(--ease), border-color .6s var(--ease), color .6s var(--ease), fill .6s var(--ease);
}
.ph-status { display: flex; justify-content: space-between; align-items: center; height: 26px; font-weight: 600; font-size: 12px; padding: 0 6px; }
.ph-island { width: 86px; height: 24px; border-radius: 14px; background: #0A0A0C; }
.ph-icons { display: flex; gap: 3px; }
.ph-icons i { width: 14px; height: 8px; border-radius: 2px; background: var(--on-surface); }
.ph-icons i:nth-child(1) { width: 12px; opacity: .8; }
.ph-icons i:nth-child(2) { width: 10px; opacity: .8; }
.ph-head { display: flex; justify-content: space-between; align-items: center; margin: 10px 0 12px; }
.ph-head strong { display: block; font: 700 19px/1.15 var(--font); letter-spacing: -.2px; }
.ph-head small { display: block; margin-top: 2px; color: var(--muted); font-size: 10.5px; }
.ph-bell { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); color: var(--on-surface); }
.ph-bell svg { width: 16px; height: 16px; stroke-width: 1.8; }
.ph-deck { position: relative; z-index: 0; padding-bottom: 14px; }
.ph-deck::before, .ph-deck::after { content: ""; position: absolute; height: 50px; border-radius: 18px; z-index: -1; }
.ph-deck::before { left: 3%; right: 3%; bottom: 7px; background: color-mix(in srgb, #F2571A 65%, var(--surface)); }
.ph-deck::after { left: 6%; right: 6%; bottom: 0; z-index: -2; background: color-mix(in srgb, #F2571A 30%, var(--surface)); }
.ph-next { position: relative; padding: 14px 13px 13px; border-radius: 18px; background: linear-gradient(135deg, #FF7A2E 0%, #F65E1C 50%, #E2430F 100%); color: #fff; overflow: hidden; }
.ph-next::before { content: ""; position: absolute; left: 60%; top: -42%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.ph-next > * { position: relative; }
.ph-label { display: block; font: 500 9px/1 var(--font); letter-spacing: 1.8px; text-transform: uppercase; opacity: .9; }
.ph-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.ph-dots { flex: none; display: flex; gap: 3px; }
.ph-dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .4); }
.ph-dots i:first-child { background: #fff; }
.ph-race { display: block; margin: 7px 0 5px; font: 700 21px/1.02 var(--display); }
.ph-meta { display: block; margin-top: 2px; opacity: .88; font-size: 10px; }
.ph-when { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-top: 2px; }
.ph-when .ph-meta { margin-top: 0; min-width: 0; }
.ph-chip { flex: none; padding: 3px 6px; border-radius: 999px; background: rgba(255, 255, 255, .2); font-size: 9px; font-weight: 600; white-space: nowrap; }
.ph-count { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.ph-count div { padding: 7px 0 6px; border-radius: 11px; background: rgba(255, 255, 255, .2); text-align: center; }
.ph-count b { display: block; font: 700 21px/1 var(--display); font-variant-numeric: tabular-nums; }
.ph-count small { display: block; margin-top: 2px; font-size: 9px; opacity: .85; }
.ph-sec { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 12px 0 7px; }
.ph-sec b { font: 500 13px/1.1 var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-sec span { flex: none; color: var(--accent); font-weight: 500; font-size: 10.5px; }
.ph-card { position: relative; display: flex; align-items: stretch; border-radius: 14px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.ph-card > div { flex: 1; min-width: 0; padding: 8px 26px 8px 11px; }
.ph-card strong { display: block; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-card small { display: block; margin-top: 1px; color: var(--muted); font-size: 10px; }
.ph-tag { display: inline-block; margin-top: 6px; padding: 3px 6px; border-radius: 6px; background: var(--bg); color: var(--fg); font-size: 9.5px; font-weight: 600; }
.ph-mark { position: absolute; top: 9px; right: 10px; width: 13px; height: 13px; color: var(--accent); fill: var(--accent); }
.ph-cal { flex: none; width: 44px; display: flex; flex-direction: column; justify-content: center; align-items: center; background: var(--card-low); text-align: center; }
.ph-cal b { font: 700 21px/1 var(--display); margin: 2px 0; }
.ph-cal small { font-size: 8.5px; color: var(--muted); }
.ph-cal small:first-child { color: var(--accent); font-weight: 600; letter-spacing: .6px; text-transform: uppercase; }
.ph-pbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ph-pbs div { position: relative; display: flex; flex-direction: column; min-height: 72px; padding: 8px 8px 7px; border-radius: 14px; color: #fff; overflow: hidden; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c), #000 18%)); }
.ph-pbs div::after { content: ""; position: absolute; right: -4px; bottom: -4px; width: 44px; height: 44px; background: rgba(255, 255, 255, .16); -webkit-mask: var(--trophy) center / contain no-repeat; mask: var(--trophy) center / contain no-repeat; }
.ph-pbs b { font: 700 13px/1.12 var(--font); }
.ph-pbs strong { position: relative; margin-top: auto; padding-top: 6px; font: 700 16px/1 var(--display); font-variant-numeric: tabular-nums; }
.ph-pbs small { position: relative; font: 600 8.5px/1.3 var(--display); opacity: .85; white-space: nowrap; }
.pb-5 { --c: #0E8C77; } .pb-10 { --c: #2F6FE4; } .pb-21 { --c: #E0502A; }
.phone-screen { --trophy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 5h-2V3H7v2H5c-1.1 0-2 .9-2 2v1c0 2.55 1.92 4.63 4.39 4.94.63 1.5 1.98 2.63 3.61 2.96V19H7v2h10v-2h-4v-3.1c1.63-.33 2.98-1.46 3.61-2.96C19.08 12.63 21 10.55 21 8V7c0-1.1-.9-2-2-2zM5 8V7h2v3.82C5.84 10.4 5 9.3 5 8zm14 0c0 1.3-.84 2.4-2 2.82V7h2v1z'/%3E%3C/svg%3E"); }
.ph-tool { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.ph-tool > span { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); }
.ph-tool > span svg { width: 17px; height: 17px; stroke-width: 1.8; }
.ph-tool div { min-width: 0; }
.ph-tool strong { display: block; font-size: 11.5px; font-weight: 500; }
.ph-tool small { display: block; color: var(--muted); font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Frosted capsule over the page, with a hairline (app_tab_bar.dart). */
.ph-tabbar {
  position: absolute; left: 11px; right: 11px; bottom: 16px; z-index: 1; display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; align-items: center; height: 46px; padding: 4px; border-radius: 23px;
  background: color-mix(in srgb, var(--card) var(--glass), transparent); border: .5px solid var(--glass-line); box-shadow: 0 6px 17px var(--glass-shadow);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.ph-tabbar span { display: flex; justify-content: center; align-items: center; gap: 5px; height: 100%; color: var(--muted); font-size: 11px; font-weight: 700; }
.ph-tabbar svg { width: 18px; height: 18px; stroke-width: 1.8; }
.ph-tabbar .on { border-radius: 19px; background: color-mix(in srgb, var(--accent-soft) 85%, transparent); color: var(--accent); }
.ph-tabbar .on svg { fill: currentColor; stroke: none; }

.float {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 16px;
  background: rgba(15, 33, 66, .72); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .8);
  white-space: nowrap; transform: translateZ(var(--z, 60px)); animation: float 6s ease-in-out infinite;
}
.float b { display: block; font-size: 14px; line-height: 1.2; }
.float small { color: var(--muted); font-size: 12px; }
.f-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 106, 61, .18); color: var(--orange-hi); }
.f-ico svg { width: 18px; height: 18px; }
.f-ico.ok { background: #22C27A; color: #fff; }
.f-ico.ok svg { stroke-width: 3; }
.f-ico.gold { background: rgba(255, 196, 61, .18); color: #FFC43D; }
.f-ico.strava { background: rgba(252, 76, 2, .2); color: #FC4C02; }

/* Light / dark switch under the hero phone. */
.theme-seg {
  display: flex; gap: 4px; padding: 4px; border-radius: 999px;
  background: rgba(15, 33, 66, .72); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .14); animation: rise 1.4s var(--ease) .4s both;
}
.theme-seg label { position: relative; }
.theme-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.theme-seg span {
  display: flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  color: var(--muted); font: 600 14px/1 var(--font); transition: background-color .3s var(--ease), color .3s var(--ease);
}
.theme-seg svg { width: 16px; height: 16px; }
.theme-seg input:hover + span { color: var(--text); }
.theme-seg input:checked + span { background: var(--text); color: var(--paper-ink); }
.theme-seg input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.f-a { top: -14px; left: -110px; --z: 70px; animation-delay: -1s; }
.f-b { top: 326px; right: -130px; --z: 90px; animation-delay: -3s; }
.f-c { bottom: 120px; left: -168px; --z: 80px; animation-delay: -2s; }
.f-d { bottom: 26px; right: -90px; --z: 50px; animation-delay: -4.5s; }
@keyframes float { 50% { translate: 0 -12px; } }

/* ---------- Marquee ---------- */
.marquee { padding: 34px 0; background: var(--navy-950); border-block: 1px solid var(--line); overflow: hidden; display: grid; gap: 14px; }
.marquee-track { display: flex; width: max-content; }
.marquee-row { display: flex; flex: none; gap: 14px; padding-right: 14px; animation: marquee 20s linear infinite; }
.marquee-track.reverse .marquee-row { animation-direction: reverse; animation-duration: 24s; }
.marquee:hover .marquee-row { animation-play-state: paused; }
.tag {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 24px; border-radius: 999px; white-space: nowrap;
  font: 800 clamp(22px, 2.6vw, 32px)/1 var(--display); text-transform: uppercase; letter-spacing: .5px;
  border: 1px solid var(--line); background: var(--glass);
}
.tag::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--grad); }
.marquee-row.alt .tag { background: transparent; color: transparent; -webkit-text-stroke: 1.2px rgba(255, 255, 255, .55); }
.marquee-row.alt .tag::before { background: rgba(255, 255, 255, .4); }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Problem ---------- */
.problem { padding: 140px 0 90px; overflow: hidden; }
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.converge { position: relative; height: 460px; --p: 0; }
.chip-s {
  position: absolute; left: 50%; top: 50%; padding: 10px 16px; border-radius: 12px; white-space: nowrap;
  background: var(--navy-800); border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: 15px;
  box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .8);
  transform: translate(-50%, -50%) translate(calc(var(--x) * 1px * (1 - var(--p))), calc(var(--y) * 1px * (1 - var(--p)))) rotate(calc(var(--r) * 1deg * (1 - var(--p)))) scale(calc(1 - var(--p) * .55));
  opacity: calc(1.2 - var(--p) * 1.2);
}
.converge-core {
  position: absolute; left: 50%; top: 50%; display: flex; flex-direction: column; align-items: center; gap: 14px;
  transform: translate(-50%, -50%) scale(calc(.55 + var(--p) * .45)); opacity: calc(var(--p) * 1.4 - .2);
}
.converge-core img { width: 112px; height: 112px; border-radius: 28px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15), 0 30px 80px -20px rgba(255, 106, 61, .8); }
.converge-core b { font: 800 28px/1 var(--display); text-transform: uppercase; white-space: nowrap; }

/* ---------- Stats ---------- */
.stats { padding: 0 0 40px; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stat { padding: 28px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01)); }
.stat b { display: block; font: 800 clamp(56px, 7vw, 84px)/.9 var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-weight: 500; }

/* ---------- Features (bento) ---------- */
.features { padding: 120px 0; background: linear-gradient(180deg, var(--navy-900), var(--navy-950)); }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(250px, auto); gap: 16px; }
.card {
  --mx: 50%; --my: 50%;
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: var(--radius); overflow: hidden;
  background: var(--navy-850); border: 1px solid var(--line);
  transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s), border-color .3s;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 122, 69, .16), transparent 45%);
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(300px circle at var(--mx) var(--my), rgba(255, 145, 82, .8), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.bento:hover .card::before, .bento:hover .card::after { opacity: 1; }
.card h3 { font: 700 26px/1.05 var(--display); text-transform: uppercase; letter-spacing: .2px; }
.card p { color: var(--muted); font-size: 15.5px; }
.c-search { grid-column: span 2; grid-row: span 2; display: grid; grid-template-rows: auto 1fr; gap: 26px; }
.c-search .card-copy { display: flex; flex-direction: column; gap: 12px; }
.c-search h3 { font-size: 36px; }
.c-pb, .c-strava { grid-column: span 1; }
.c-share { grid-column: span 2; }
.c-reg, .c-ai { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 24px 40px; }
.reg-copy { display: flex; flex-direction: column; gap: 12px; }
/* 6 s loop: the opening alert arrives, you (the dot) get in while registration
   is open, and only then it sells out. */
.reg-demo { position: relative; padding: 70px 8px 0; }
.reg-track { position: relative; display: flex; gap: 4px; height: 12px; }
.reg-track i { height: 100%; border-radius: 6px; }
.reg-track .s1 { flex: 35; background: rgba(255, 255, 255, .16); }
.reg-track .s2 { flex: 40; background: #22C27A; }
.reg-track .s3 { flex: 25; background: #E8452C; animation: reg-out 6s var(--ease) infinite; }
.reg-dot { position: absolute; top: 50%; left: 0; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: #fff; border: 4px solid var(--orange); box-shadow: 0 0 16px rgba(255, 106, 61, .7); animation: reg-dot 6s var(--ease) infinite; }
.reg-badge { position: absolute; top: 28px; left: 52%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 8px; border-radius: 999px; background: #fff; color: #1A7F50; font-weight: 700; font-size: 14px; white-space: nowrap; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .7); animation: reg-badge 6s var(--ease) infinite; }
.reg-badge svg { width: 16px; height: 16px; stroke-width: 3; }
.reg-alert { position: absolute; top: 0; left: 50%; display: flex; align-items: center; gap: 10px; width: max-content; max-width: 100%; padding: 8px 14px 8px 8px; border-radius: 16px; background: rgba(255, 255, 255, .96); color: #1C1C1F; box-shadow: 0 16px 30px -16px rgba(0, 0, 0, .8); animation: reg-alert 6s var(--ease) infinite; }
.reg-alert i { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: #0B1A35; }
.reg-alert img { width: 22px; height: 22px; border-radius: 5px; }
.reg-alert span { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.reg-alert b { font-size: 14px; }
.reg-alert small { font-size: 12px; color: #64646B; }
.reg-labels { display: flex; gap: 4px; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--muted); }
.reg-labels span { line-height: 1.2; }
.reg-labels span:nth-child(1) { flex: 35; } .reg-labels span:nth-child(2) { flex: 40; } .reg-labels span:nth-child(3) { flex: 25; }
.reg-labels .ok { color: #4BE09C; } .reg-labels .out { color: #FF8A73; }
@keyframes reg-alert { 0%, 6% { opacity: 0; transform: translate(-50%, -10px) scale(.95); } 12%, 34% { opacity: 1; transform: translateX(-50%); } 40%, 100% { opacity: 0; transform: translate(-50%, -10px) scale(.95); } }
@keyframes reg-dot { 0%, 16% { left: 0; } 44%, 100% { left: 52%; } }
@keyframes reg-badge { 0%, 42% { opacity: 0; transform: translate(-50%, 8px) scale(.9); } 48%, 92% { opacity: 1; transform: translateX(-50%); } 100% { opacity: 0; } }
@keyframes reg-out { 0%, 62% { opacity: .35; } 70%, 100% { opacity: 1; } }

/* 8 s loop: the AI finds a change in a race. */
.ai-card { display: grid; gap: 10px; min-width: 0; padding: 16px 18px; border-radius: 18px; background: #fff; color: #1C1C1F; box-shadow: 0 18px 34px -20px rgba(0, 0, 0, .8); }
.card .ai-card p { margin: 0; color: inherit; }
.ai-race { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; font-size: 16px; }
.ai-race b { font-weight: 600; }
.ai-found { padding: 3px 9px; border-radius: 8px; background: #FCE5DA; color: #9A3B0C; font-size: 12.5px; font-weight: 700; animation: ai-found 8s var(--ease) infinite; }
.ai-diff { display: flex; align-items: baseline; gap: 10px; font-size: 15px; }
.ai-diff small { margin-right: auto; color: #64646B; font-size: 14px; }
.ai-diff s { color: #64646B; }
.ai-diff svg { align-self: center; width: 16px; height: 16px; color: #64646B; animation: ai-found 8s var(--ease) infinite; }
.ai-diff b { font: 700 22px/1 var(--display); color: #1A7F50; animation: ai-found 8s var(--ease) infinite; }
@keyframes ai-found { 0%, 20% { opacity: 0; } 28%, 94% { opacity: 1; } 100% { opacity: 0; } }

.demo-search { display: flex; flex-direction: column; gap: 14px; align-self: end; min-width: 0; }
.c-search > * { min-width: 0; }
.searchbar { display: flex; align-items: center; gap: 10px; padding: 15px 18px; border-radius: 16px; background: #fff; color: var(--navy-900); font-weight: 600; font-size: 17px; }
.searchbar svg { width: 20px; height: 20px; color: #64646B; }
/* Same height empty or typed, so the bar doesn't jump while typing. */
.searchbar [data-query] { min-height: 1.6em; line-height: 1.6; white-space: pre; }
.caret { width: 2px; height: 20px; background: var(--orange); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
/* Modality chips as in the app's Explore (ModalityFilterChip): tinted at
   rest, solid with a check when selected. */
.filters {
  position: relative; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px;
  -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent);
}
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; padding: 9px 14px; border-radius: 10px; cursor: pointer; user-select: none;
  background: var(--bg); color: var(--fg); font-weight: 600; font-size: 14px; line-height: 1.2; transition: background .35s var(--ease), color .35s var(--ease);
}
.chip svg { width: 0; height: 16px; stroke-width: 3; transition: width .35s var(--ease), margin .35s var(--ease); }
.chip.on { background: var(--fg); color: #F7F7F5; }
.chip.on svg { width: 16px; margin-right: 6px; }
.m-road { --bg: #E3ECFC; --fg: #1F4FB0; }
.m-trail { --bg: #DFF2E7; --fg: #1D6B40; }
.m-hike { --bg: #FBF0D2; --fg: #7A5600; }
.m-cross { --bg: #F6E1F1; --fg: #8A2C77; }
.m-track { --bg: #FDE6D8; --fg: #9A3B0C; }
.m-backyard { --bg: #E9E5FA; --fg: #4F3BB0; }
.m-canicross { --bg: #D9F1F1; --fg: #13615F; }
.m-nordic { --bg: #ECEFD9; --fg: #4F5B12; }
.race-list { display: grid; gap: 8px; }
/* Same layout as the app's race card (race_card.dart, race_styles.dart). */
.race-card { display: flex; align-items: stretch; border-radius: 18px; background: #fff; border: 1px solid #E4E4E2; overflow: hidden; color: #1C1C1F; }
.race-card > div { flex: 1; min-width: 0; padding: 14px 16px; }
.race-card strong { display: block; font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.race-card > div small { display: block; margin-top: 2px; color: #64646B; font-size: 14px; }
.rc-date { flex: none; width: 68px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px; background: #F1F0ED; }
.rc-date b { font: 700 30px/1 var(--display); }
.rc-date small { color: #64646B; font-size: 12px; font-weight: 500; }
.rc-date small:first-child { color: #D24414; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; }
.rc-tag { display: inline-block; margin-top: 8px; padding: 4px 9px; border-radius: 8px; font-size: 13px; font-weight: 600; }
.race-card.enter { animation: rc-in .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms); }
.race-card.leave { animation: rc-out .24s ease-in both; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes rc-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@keyframes rc-out { to { opacity: 0; transform: translateY(-10px) scale(.97); } }
.rc-tag { background: var(--bg); color: var(--fg); }

.c-near { padding-top: 140px; }
.radar { position: absolute; top: 18px; right: 18px; width: 140px; height: 140px; }
.radar i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(255, 145, 82, .5); animation: radar 3s var(--ease) infinite; opacity: 0; }
.radar i:nth-child(2) { animation-delay: 1s; }
.radar i:nth-child(3) { animation-delay: 2s; }
.radar b { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--orange-hi); box-shadow: 0 0 14px var(--orange); }
.radar .me { left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .2); }
.radar .p1 { left: 22%; top: 28%; animation: blip 3s infinite .4s; }
.radar .p2 { left: 72%; top: 38%; animation: blip 3s infinite 1.3s; }
.radar .p3 { left: 40%; top: 78%; animation: blip 3s infinite 2.2s; }
@keyframes radar { from { transform: scale(.15); opacity: 1; } to { transform: scale(1); opacity: 0; } }
@keyframes blip { 0%, 100% { transform: scale(.6); opacity: .4; } 30% { transform: scale(1.2); opacity: 1; } }

.tabs { margin-top: auto; display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.tabs span { flex: 1 1 auto; padding: 8px 10px; border-radius: 9px; text-align: center; font-size: 13px; font-weight: 600; color: var(--muted); transition: all .4s var(--ease); white-space: nowrap; }
.tabs span.on { background: var(--text); color: var(--navy-900); }

.mini-count { margin-top: auto; display: flex; align-items: baseline; gap: 2px; font: 800 44px/1 var(--display); font-variant-numeric: tabular-nums; }
.mini-count b { font-weight: 800; }
.mini-count span { color: var(--orange); }

.pbs { margin: auto 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.pbs li { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 10px; background: rgba(255, 255, 255, .05); font-size: 14px; }
.pbs span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbs b { font: 700 17px/1.2 var(--display); font-variant-numeric: tabular-nums; }

/* Kept small and apart from our logo, as Strava's guidelines require. */
.strava-badge { margin-top: auto; padding-top: 8px; width: 189px; height: auto; }
/* Import demo, a 6 s loop: the route draws, a dot carries it over and the
   result form fills in. */
.sync { display: flex; align-items: center; margin-bottom: 10px; }
.sy-act { flex: none; width: 82px; padding: 8px 9px 9px; border-radius: 14px; background: var(--navy-900); border: 1px solid var(--line); }
.sy-act svg { width: 100%; height: 30px; overflow: visible; }
.sy-act circle { fill: var(--orange-hi); stroke: none; }
.sy-route { fill: none; stroke: var(--orange-hi); stroke-width: 2.5; stroke-dasharray: 100; stroke-dashoffset: 100; animation: sy-route 6s var(--ease) infinite; }
.sy-act b { display: block; margin-top: 5px; font: 700 15px/1 var(--display); }
.sy-act small { font-size: 11px; color: var(--muted); }
.wire { position: relative; flex: 1; min-width: 24px; height: 2px; margin: 0 8px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .25) 0 6px, transparent 6px 12px); }
.wire i { position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 12px var(--orange); animation: sy-carry 6s var(--ease) infinite; }
.sy-form { flex: none; width: 96px; display: grid; gap: 6px; padding: 8px; border-radius: 14px; background: #fff; color: #1C1C1F; box-shadow: 0 14px 28px -16px rgba(0, 0, 0, .8); }
.sy-form p { margin: 0; }
.sy-form small { display: block; margin-bottom: 2px; font-size: 9.5px; color: #64646B; }
.sy-form b { display: block; min-height: 22px; color: #1C1C1F; padding: 3px 6px; border-radius: 7px; border: 1px solid #E4E4E2; font: 700 13px/1.2 var(--display); white-space: nowrap; }
.sy-form span { display: inline-block; animation: sy-fill 6s steps(7, end) infinite; }
.sy-form p + p span { animation-name: sy-fill-2; }
@keyframes sy-route { 0% { stroke-dashoffset: 100; } 25%, 92% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes sy-carry { 0%, 25% { left: 0; opacity: 0; } 28% { opacity: 1; } 47% { left: calc(100% - 10px); opacity: 1; } 52%, 100% { left: calc(100% - 10px); opacity: 0; } }
@keyframes sy-fill { 0%, 50% { clip-path: inset(0 100% 0 0); } 60%, 92% { clip-path: inset(0); opacity: 1; } 100% { clip-path: inset(0); opacity: 0; } }
@keyframes sy-fill-2 { 0%, 60% { clip-path: inset(0 100% 0 0); } 70%, 92% { clip-path: inset(0); opacity: 1; } 100% { clip-path: inset(0); opacity: 0; } }

.widgets { margin-top: auto; display: flex; align-items: stretch; gap: 10px; }
.widget {
  flex: 1 1 0; min-width: 0; max-width: 160px; display: flex; flex-direction: column; padding: 13px 12px; border-radius: 22px;
  background: linear-gradient(160deg, #1C2C52, #0B1A35); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .8);
}
.widget small { display: block; font: 700 11px/1 var(--display); letter-spacing: 1px; text-transform: uppercase; color: var(--orange-hi); }
.widget b { display: block; margin: 8px 0 4px; font: 800 42px/1 var(--display); }
.widget b .u { font-size: 18px; color: var(--muted); font-weight: 700; }
.widget > span { display: block; font-size: 12px; color: var(--muted); line-height: 1.2; }
/* Android look: tonal surface. */
.w-android { background: linear-gradient(160deg, #3A2A2C, #24171C); border-color: rgba(255, 145, 82, .22); }
.w-android small { margin-bottom: 8px; }
.w-android small + p { margin-top: auto; }
.w-android p { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; margin: 0; padding: 4px 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 11.5px; color: var(--muted); }
.w-android p span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-android p b { margin: 0; font: 700 18px/1.1 var(--display); color: var(--text); }

.c-share { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; align-items: center; }
.c-share .ico, .c-share h3, .c-share p { grid-column: 1; }
.linkpill { grid-column: 2; grid-row: 1 / span 3; position: relative; display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px dashed rgba(255, 255, 255, .2); font-size: 14px; color: var(--muted); overflow: hidden; }
.linkpill svg { width: 18px; height: 18px; color: var(--orange-hi); flex: none; }
.linkpill span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.linkpill em { position: absolute; inset: 0; display: grid; place-items: center; background: var(--grad); color: #fff; font-style: normal; font-weight: 700; transform: translateY(101%); animation: copied 4s var(--ease) infinite; }
@keyframes copied { 0%, 45% { transform: translateY(101%); } 55%, 85% { transform: none; } 95%, 100% { transform: translateY(-101%); } }

/* ---------- Friends ---------- */
.friends { padding: 0 0 130px; background: linear-gradient(180deg, var(--navy-950), var(--navy-900)); overflow: hidden; }
.friends-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.friends .section-head { margin-bottom: 36px; }
.fr-points { display: grid; gap: 24px; margin: 0; padding: 0; list-style: none; }
.fr-points li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.fr-points h3 { margin-bottom: 4px; font: 700 24px/1.05 var(--display); text-transform: uppercase; }
.fr-points p { color: var(--muted); font-size: 15.5px; }
/* 8 s loop: a request arrives and is accepted; that friend then joins the race. */
.fr-stage { position: relative; display: flex; flex-direction: column; min-width: 0; width: 100%; max-width: 500px; justify-self: center; }
.fr-stage::before { content: ""; position: absolute; inset: 8% -12%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 106, 61, .26), transparent); }
.fr-request { position: relative; z-index: 1; align-self: flex-end; display: flex; align-items: center; gap: 10px; max-width: 100%; margin: 0 12px -18px 12px; padding: 8px 8px 8px 10px; border-radius: 18px; background: #fff; color: #1C1C1F; box-shadow: 0 20px 36px -18px rgba(0, 0, 0, .75); animation: fr-request 8s var(--ease) infinite; }
.fr-request > img { flex: none; width: 40px; height: 40px; border-radius: 50%; }
.fr-request > span:not(.fr-accept) { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.fr-request b { font-size: 14.5px; }
.fr-request small { font-size: 12.5px; color: #64646B; }
.fr-accept { position: relative; flex: none; display: grid; place-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px; background: #D24414; color: #fff; font-size: 13.5px; font-weight: 700; animation: fr-press 8s var(--ease) infinite; }
.fr-accept em { font-style: normal; animation: fr-label 8s var(--ease) infinite; }
.fr-accept svg { position: absolute; width: 18px; height: 18px; stroke-width: 3; opacity: 0; animation: fr-check 8s var(--ease) infinite; }
.fr-panel { display: flex; flex-direction: column; gap: 12px; padding: 34px 16px 16px; border-radius: 28px; background: #F7F7F5; color: #1C1C1F; box-shadow: 0 40px 70px -34px rgba(0, 0, 0, .85); }
.fr-head { margin: 0 0 2px 4px; font-size: 16px; font-weight: 700; }
.fr-tags { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 0 0; min-height: 30px; }
.fr-tags .rc-tag { margin: 0; white-space: nowrap; }
.fr-avatars { flex: none; display: flex; }
.fr-avatars img { width: 30px; height: 30px; box-sizing: content-box; border: 2px solid #fff; border-radius: 50%; background: #fff; }
.fr-avatars img + img { margin-left: -10px; }
.fr-new { animation: fr-pop 8s var(--ease) infinite; }
.fr-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: #fff; border: 1px solid #E4E4E2; font-size: 15px; font-weight: 500; line-height: 1.25; }
.fr-going > svg { flex: none; width: 20px; height: 20px; margin-left: auto; color: #64646B; }
.fr-count { display: grid; min-width: 0; }
.fr-count > span { grid-area: 1 / 1; }
.fr-two { opacity: 0; animation: fr-two 8s var(--ease) infinite; }
.fr-three { animation: fr-three 8s var(--ease) infinite; }
.fr-share { justify-content: space-between; }
.fr-switch { position: relative; flex: none; width: 46px; height: 28px; border-radius: 999px; background: #D24414; }
.fr-switch::after { content: ""; position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; }
@keyframes fr-request { 0%, 4% { opacity: 0; transform: translateY(-10px) scale(.96); } 10%, 44% { opacity: 1; transform: none; } 50%, 100% { opacity: 0; transform: translateY(-10px) scale(.96); } }
@keyframes fr-press { 0%, 28% { transform: none; background: #D24414; } 31% { transform: scale(.92); } 34%, 100% { transform: none; background: #1A7F50; } }
@keyframes fr-label { 0%, 31% { opacity: 1; } 34%, 100% { opacity: 0; } }
@keyframes fr-check { 0%, 31% { opacity: 0; } 34%, 100% { opacity: 1; } }
@keyframes fr-pop { 0%, 46% { opacity: 0; transform: scale(.4); } 52% { opacity: 1; transform: scale(1.12); } 56%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; transform: scale(.4); } }
@keyframes fr-two { 0%, 46% { opacity: 1; } 50%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes fr-three { 0%, 46% { opacity: 0; } 50%, 96% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- How ---------- */
.how { padding: 130px 0; }
.track { position: relative; --p: 0; }
.track-line { position: absolute; left: 0; right: 0; top: 34px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); }
.track-line i { position: absolute; inset: 0; border-radius: inherit; background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--p)); }
.runner {
  position: absolute; top: 50%; left: calc(var(--p) * 100%); width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--orange-lo); box-shadow: 0 0 0 6px rgba(255, 106, 61, .25), 0 10px 30px -6px rgba(255, 106, 61, .8);
}
.runner svg { width: 24px; height: 24px; stroke-width: 2.4; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { padding-top: 90px; }
.step-n { display: block; font: 800 88px/.8 var(--display); color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .3); margin-bottom: 18px; }
.step h3 { font: 700 30px/1 var(--display); text-transform: uppercase; margin-bottom: 10px; }
.step p { color: var(--muted); max-width: 340px; }

/* ---------- Tools ---------- */
.tools { padding: 130px 0; background: var(--paper); color: var(--paper-ink); }
.tools .lead { color: var(--paper-muted); }
.tools .kicker { color: var(--orange-lo); }
.tools-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: center; }
.tools-grid > * { min-width: 0; }
.calc { padding: 32px; border-radius: 28px; background: #fff; border: 1px solid #E6E1D8; box-shadow: 0 30px 60px -40px rgba(11, 26, 53, .45); }
.calc h3 { display: flex; align-items: center; gap: 10px; font: 700 28px/1 var(--display); text-transform: uppercase; margin-bottom: 22px; }
.calc h3 svg { width: 26px; height: 26px; color: var(--orange-lo); }
.calc fieldset { border: 0; margin: 0 0 18px; padding: 0; }
.calc legend { padding: 0; margin-bottom: 10px; font-weight: 600; font-size: 14px; color: var(--paper-muted); text-transform: uppercase; letter-spacing: 1px; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 5px; border-radius: 14px; background: #F1EEE8; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; padding: 11px 6px; border-radius: 10px; text-align: center; font-weight: 600; font-size: 14.5px; line-height: 1.15; white-space: nowrap; transition: all .25s var(--ease); cursor: pointer; }
.seg input:checked + span { background: var(--paper-ink); color: #fff; box-shadow: 0 6px 14px -8px rgba(11, 26, 53, .8); }
.seg input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.time { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
/* Unit above the number, so the number gets the whole width of the box. */
.time label { display: flex; flex-direction: column-reverse; gap: 2px; padding: 8px 14px 10px; border-radius: 14px; border: 1.5px solid #E6E1D8; transition: border-color .2s; }
.time label:focus-within { border-color: var(--orange); }
.time input { width: 100%; min-width: 0; padding: 0; border: 0; border-radius: 0; outline: 0; background: none; color: var(--paper-ink); font: 700 34px/1 var(--display); font-variant-numeric: tabular-nums; -webkit-appearance: none; -moz-appearance: textfield; appearance: textfield; }
.time input::-webkit-outer-spin-button, .time input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.time span { color: var(--paper-muted); font-weight: 600; font-size: 13px; line-height: 1; }
.calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.calc-out div { padding: 16px 18px; border-radius: 18px; background: var(--paper-ink); color: #fff; }
.calc-out div:first-child { background: var(--grad); }
.calc-out small { display: block; font: 700 12px/1 var(--display); letter-spacing: 1.4px; text-transform: uppercase; opacity: .85; }
.calc-out b { font: 800 46px/1.05 var(--display); font-variant-numeric: tabular-nums; }
.calc-out span { margin-left: 4px; opacity: .8; font-weight: 600; }

.share { display: flex; flex-direction: column; align-items: center; }

/* Result image studio: the app's share screen (result_share_page.dart). The
   preview is a transparent PNG, hence the checkerboard; templates follow
   share_templates/*.dart, sized in canvas units (cqw) like the 340 pt image. */
.studio { width: min(100%, 460px); padding: 18px; border-radius: 28px; background: #F7F7F5; border: 1px solid #E6E1D8; box-shadow: 0 30px 60px -40px rgba(11, 26, 53, .45); color: #1C1C1F; }
.st-cats { position: relative; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; }
.st-cats::-webkit-scrollbar { display: none; }
.st-cats button, .st-seg button { font: inherit; cursor: pointer; }
.st-cats button { flex: none; padding: 9px 16px; border-radius: 12px; border: 1px solid #E4E4E2; background: #fff; color: #1C1C1F; font-weight: 500; font-size: 15px; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s; }
.st-cats button.on { background: #1C1C1F; border-color: #1C1C1F; color: #fff; }
.st-canvas {
  --ink: #fff; --fill: rgba(0, 0, 0, .35); --sq1: #2A2A30; --sq2: #34343A;
  position: relative; container-type: inline-size; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; color: var(--ink);
  background: repeating-conic-gradient(var(--sq1) 0 25%, var(--sq2) 0 50%) 0 0 / 22px 22px;
  transition: color .4s var(--ease);
}
[data-ink="dark"] .st-canvas { --ink: #111114; --fill: rgba(255, 255, 255, .45); --sq1: #EDEDED; --sq2: #F8F8F8; }
.st-tpl {
  position: absolute; inset: 0; margin: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  opacity: 0; transform: scale(.9) translateY(3cqw); transition: opacity .45s var(--ease), transform .55s var(--ease); pointer-events: none;
}
.st-tpl.on { opacity: 1; transform: none; }
.st-tpl p { margin: 0; }
.st-tpl b { font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums; }
.t-brand { font: 700 3cqw/1 var(--font); letter-spacing: .5em; margin-right: -.5em; text-transform: uppercase; }
.t-name { font: 700 5.4cqw/1.15 var(--font); }
.t-hero { white-space: nowrap; }
.t-hero b { font-size: 22cqw; line-height: .95; letter-spacing: -.02em; }
.t-hero span, .t-hero small { font: 500 8.8cqw/1 var(--font); margin-left: 1.5cqw; }
.t-hero span:empty, .t-hero small:empty { display: none; }
.t-figs { display: flex; justify-content: center; flex-wrap: wrap; gap: 3cqw 7cqw; }
.t-figs p { white-space: nowrap; }
.t-figs b { font-size: 8.4cqw; line-height: 1; }
.t-figs span { font: 500 3.3cqw/1 var(--font); margin-left: .8cqw; }
.t-figs small { display: block; margin-top: .8cqw; font: 500 3.2cqw/1.2 var(--font); }

.t-classic { padding: 0 6cqw; gap: 4cqw; }
.t-classic .t-figs { margin-top: 1cqw; }
.t-classic .t-brand { margin-top: 2cqw; }

.t-bib { width: 80cqw; height: fit-content; padding: 6.5cqw 6cqw 7cqw; border: 1cqw solid currentColor; border-radius: 5cqw; background: var(--fill); gap: 2.2cqw; }
.t-bib > i { position: absolute; width: 4.2cqw; height: 4.2cqw; border: .7cqw solid currentColor; border-radius: 50%; }
.t-bib > i:nth-child(1) { top: 3.5cqw; left: 3.5cqw; } .t-bib > i:nth-child(2) { top: 3.5cqw; right: 3.5cqw; }
.t-bib > i:nth-child(3) { bottom: 3.5cqw; left: 3.5cqw; } .t-bib > i:nth-child(4) { bottom: 3.5cqw; right: 3.5cqw; }
.t-bib .t-name { font: 700 7.4cqw/1 var(--display); text-transform: uppercase; }
.t-bib .t-hero b { font-size: 18cqw; }
.t-bib hr { width: 100%; margin: 1cqw 0; border: 0; border-top: .7cqw solid currentColor; }
.t-bib .t-figs { gap: 3cqw 12cqw; }

.t-medal { width: 78cqw; height: 78cqw; padding: 2.2cqw; border: 1.2cqw solid currentColor; border-radius: 50%; background: var(--fill); }
.t-disc { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6cqw; padding: 0 9cqw; border-radius: 50%; border: .45cqw solid color-mix(in srgb, currentColor 60%, transparent); }
.t-medal .t-name { font: 700 5.8cqw/1.05 var(--display); text-transform: uppercase; }
.t-medal .t-hero b { font-size: 16cqw; }
.t-medal .t-hero span { font-size: 6.4cqw; }
.t-other { font: 700 6.6cqw/1 var(--display); }
.t-other span:last-child:empty { display: none; }

.t-ticket { width: 76cqw; height: calc(76cqw * 380 / 300); }
.t-ticket svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--fill); stroke: currentColor; stroke-width: 2; vector-effect: non-scaling-stroke; }
.t-ticket svg path { vector-effect: non-scaling-stroke; }
.tk-top { position: absolute; inset: 7% 7% 31% 7%; display: flex; flex-direction: column; justify-content: center; gap: 1.6cqw; }
.t-ticket .t-brand { font-size: 2.6cqw; }
.t-ticket .t-name { font: 700 6.4cqw/1.05 var(--display); text-transform: uppercase; letter-spacing: .06em; }
.t-ticket hr { width: 100%; margin: 1cqw 0; border: 0; border-top: .5cqw solid currentColor; }
.t-ticket hr.dash { border-top-style: dashed; border-top-width: .4cqw; }
.tk-line { display: flex; align-items: baseline; gap: 1.5cqw; font: 500 3.5cqw/1.3 var(--font); text-align: left; }
.tk-line i { flex: 1; border-bottom: .4cqw dotted currentColor; opacity: .7; }
.tk-line b { font-size: 4.6cqw; white-space: nowrap; }
.tk-total { display: flex; align-items: flex-end; justify-content: space-between; gap: 3cqw; font: 700 5cqw/1 var(--display); text-transform: uppercase; letter-spacing: .04em; }
.tk-total b { font-size: 10cqw; line-height: .9; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.tk-total small { font: 500 4cqw/1 var(--font); margin-left: 1cqw; }
.tk-total small:empty { display: none; }
.tk-bottom { position: absolute; inset: 71% 7% 7%; display: grid; place-items: center; border-top: .5cqw dotted currentColor; }
.tk-code { width: 66%; height: 9cqw; background: repeating-linear-gradient(90deg, currentColor 0 .5cqw, transparent 0 1.2cqw, currentColor 0 2.2cqw, transparent 0 2.7cqw, currentColor 0 3cqw, transparent 0 4cqw); }

.st-name { margin: 14px 0 8px; text-align: center; font-weight: 600; font-size: 17px; }
.st-dots { display: flex; justify-content: center; gap: 6px; }
.st-dots i { width: 8px; height: 8px; border-radius: 4px; background: #C9C9CC; transition: width .35s var(--ease), background .35s; }
.st-dots i.on { width: 22px; background: #D24414; }
.st-toggles { display: grid; gap: 10px; margin-top: 16px; }
.st-seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #E4E4E2; border-radius: 999px; overflow: hidden; background: #fff; }
.st-seg button { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 8px; border: 0; background: #fff; color: #D24414; font-weight: 500; font-size: 15px; transition: background .3s, color .3s; }
.st-seg button + button { border-left: 1px solid #E4E4E2; }
.st-seg button svg { width: 19px; height: 19px; flex: none; stroke-width: 1.8; }
/* Selected segment: the app's secondaryContainer. */
.st-seg button[aria-pressed="true"] { background: #ECECEE; color: #1C1C1F; }
.shine {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay; opacity: .9; z-index: 2;
  background: radial-gradient(circle at var(--gx, 30%) var(--gy, 20%), rgba(255, 255, 255, .55), transparent 40%),
              linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .25) calc(var(--gx, 30%) + 10%), transparent 70%);
}
.share-hint { margin-top: 18px; color: var(--paper-muted); font-size: 15px; text-align: center; }

/* ---------- Why ---------- */
.why { padding: 130px 0 110px; background: var(--paper); color: var(--paper-ink); border-top: 1px solid #E6E1D8; }
.why .kicker { color: var(--orange-lo); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.why-card { padding: 28px 24px; border-radius: var(--radius); background: #fff; border: 1px solid #E6E1D8; transition: opacity .8s var(--ease) var(--d, 0s), transform .5s var(--ease), box-shadow .4s var(--ease); }
.why-card.in:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(11, 26, 53, .4); }
.why-card .ico { background: #FFF0E9; border-color: #FFD8C8; color: var(--orange-lo); margin-bottom: 18px; }
.why-card h3 { font: 700 24px/1.05 var(--display); text-transform: uppercase; margin-bottom: 10px; }
.why-card p { color: var(--paper-muted); font-size: 15.5px; }

/* ---------- FAQ ---------- */
.faq { padding: 130px 0; }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq .section-head { position: sticky; top: 110px; margin: 0; }
.faq-list { display: grid; gap: 12px; }
.faq details { border-radius: 18px; border: 1px solid var(--line); background: var(--glass); transition: background .3s, border-color .3s, opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s); }
.faq details[open] { background: rgba(255, 255, 255, .07); border-color: rgba(255, 145, 82, .35); }
.faq summary { list-style: none; position: relative; padding: 22px 60px 22px 24px; cursor: pointer; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
  transition: transform .35s var(--ease);
  background: center / 12px 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"), var(--grad);
  background-size: 12px 12px, 100% 100%;
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { padding: 0 24px 22px; color: var(--muted); animation: fade .4s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- CTA ---------- */
.cta { padding: 140px 0; overflow: hidden; isolation: isolate; }
.cta-bg { position: absolute; inset: 0; z-index: -1; background: var(--navy-950); }
.cta .b1 { width: 620px; height: 620px; right: -120px; top: -160px; background: var(--orange); opacity: .35; animation: drift2 20s ease-in-out infinite alternate; }
.cta .b2 { width: 520px; height: 520px; left: -160px; bottom: -220px; background: #3D5BFF; opacity: .22; animation: drift1 24s ease-in-out infinite alternate; }
.cta-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.bib-wrap { display: flex; justify-content: center; perspective: 1200px; }
.bib {
  position: relative; width: min(100%, 380px); aspect-ratio: 1.25; padding: 26px 30px; border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  background: #fff; color: var(--navy-900);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .9), 0 0 120px -40px rgba(255, 106, 61, .7);
  transform: rotate(-4deg); transition: transform .5s var(--ease);
}
.bib .shine { mix-blend-mode: soft-light; }
.hole { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--navy-950); box-shadow: inset 0 2px 3px rgba(0, 0, 0, .5); }
.hole.h1 { top: 12px; left: 12px; } .hole.h2 { top: 12px; right: 12px; } .hole.h3 { bottom: 12px; left: 12px; } .hole.h4 { bottom: 12px; right: 12px; }
.bib-top { display: flex; align-items: center; justify-content: center; gap: 8px; padding-bottom: 10px; border-bottom: 3px solid var(--orange); font: 800 20px/1 var(--display); text-transform: uppercase; letter-spacing: 1px; }
/* The app icon: logo.png has white parts that vanish on the white bib. */
.bib-top img { width: 32px; height: 32px; border-radius: 8px; }
.bib-num { display: flex; justify-content: center; font: 800 clamp(96px, 12vw, 136px)/1 var(--display); letter-spacing: -2px; font-variant-numeric: tabular-nums; height: 1em; overflow: hidden; }
.bib-num .slot { display: inline-block; height: 1em; overflow: hidden; }
.bib-num .col { display: flex; flex-direction: column; transition: transform 2s cubic-bezier(.16, 1, .3, 1); }
.bib-num .col i { font-style: normal; height: 1em; line-height: 1; }
.bib-foot { text-align: center; padding-top: 10px; border-top: 3px solid var(--navy-900); font: 700 15px/1 var(--display); letter-spacing: 3px; text-transform: uppercase; }

/* ---------- Footer ---------- */
.footer { padding: 56px 0 40px; background: var(--navy-950); border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px 32px; }
.footer-tag { color: var(--muted); }
.footer-langs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; padding-top: 24px; border-top: 1px solid var(--line); }
.footer-langs a { padding: 6px 12px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 14px; border: 1px solid transparent; }
.footer-langs a:hover { color: var(--text); border-color: var(--line); }
.footer-langs a[aria-current] { color: var(--text); border-color: rgba(255, 145, 82, .5); }
.footer-copy { grid-row: 1; grid-column: 3; color: var(--muted); font-size: 14px; }
.footer-legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; }
.footer-legal a { color: var(--muted); text-underline-offset: 3px; }
.footer-legal a:hover { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .f-a { left: -60px; } .f-c { left: -80px; } .f-b { right: -70px; } .f-d { right: -40px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .c-share { grid-column: span 2; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .c-reg, .c-ai { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-actions, .nav-links + .nav-actions { margin-left: auto; }
  .hero { padding-top: 110px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 64px; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-lead { margin-inline: auto; }
  .store-row { justify-content: center; }
  .problem-grid, .tools-grid, .cta-grid, .faq-grid, .friends-grid { grid-template-columns: 1fr; }
  .friends .section-head { text-align: center; align-items: center; }
  .fr-points { max-width: 620px; margin-inline: auto; }
  .problem-copy, .cta-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .problem-copy .lead, .cta-copy .lead { margin-inline: auto; }
  .faq .section-head { position: static; text-align: center; align-items: center; margin: 0 auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 8px; }
  .track-line { left: 21px; right: auto; top: 0; bottom: 0; width: 4px; height: auto; }
  .track-line i { transform-origin: 50% 0; transform: scaleY(var(--p)); }
  .runner { left: 50%; top: calc(var(--p) * 100%); margin: -22px 0 0 -22px; }
  .step { padding: 0 0 36px 72px; }
  .step-n { font-size: 64px; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer-copy { grid-row: auto; grid-column: auto; }
  .footer-langs { justify-content: center; }
  .footer-legal { justify-content: center; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container, .nav-inner { padding-inline: 16px; }
  .nav-actions .btn { display: none; }
  .brand span { font-size: 22px; }
  .phone-wrap { transform: scale(.86); margin: -40px 0; }
  .float { padding: 8px 12px 8px 8px; }
  .float small { display: none; }
  .f-a { left: -24px; top: 40px; } .f-b { right: -30px; top: 250px; } .f-c { left: -34px; bottom: 150px; } .f-d { right: -20px; bottom: 50px; }
  .store { min-width: 0; flex: 1 1 auto; justify-content: center; }
  .seg { grid-template-columns: 1fr 1fr; }
  .problem { padding-top: 100px; }
  .converge { height: 380px; }
  .chip-s { font-size: 13px; padding: 8px 12px; transform: translate(-50%, -50%) translate(calc(var(--x) * .62px * (1 - var(--p))), calc(var(--y) * .9px * (1 - var(--p)))) rotate(calc(var(--r) * 1deg * (1 - var(--p)))) scale(calc(1 - var(--p) * .55)); }
  .bento { grid-template-columns: 1fr; }
  .c-search, .c-share, .c-pb, .c-strava, .c-reg, .c-ai { grid-column: auto; grid-row: auto; }
  .c-search h3 { font-size: 30px; }
  .c-share { grid-template-columns: 1fr; }
  .linkpill { grid-column: 1; grid-row: auto; }
  .stats-grid { gap: 10px; }
  .stat { padding: 20px 16px; }
  .why-grid { grid-template-columns: 1fr; }
  .calc { padding: 22px 18px; }
  .seg span { font-size: 13px; padding: 10px 2px; }
  .calc-out b { font-size: 38px; }
  .features, .how, .tools, .why, .faq, .cta { padding-block: 96px; }
  .friends { padding-bottom: 96px; }
  .friends-grid { gap: 48px; }
  .fr-request { margin-inline: 4px; }
  .fr-panel { padding-inline: 12px; }
  .section-head { margin-bottom: 40px; }
  .faq summary { font-size: 16.5px; padding: 18px 54px 18px 18px; }
  .faq details p { padding: 0 18px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .comet { display: none; }
  .reveal, .hero-title .w > span { opacity: 1; transform: none; }
  .sy-route, .sy-form span, .wire i, .reg-dot, .reg-badge, .reg-track .s3 { animation: none !important; }
  .reg-alert { display: none; }
  .ai-found, .ai-diff svg, .ai-diff b { animation: none !important; }
  .fr-request, .fr-accept, .fr-accept em, .fr-accept svg, .fr-new, .fr-two, .fr-three { animation: none !important; }
  .reg-dot { left: 52%; }
  .sy-route { stroke-dashoffset: 0; }
  .wire i { display: none; }
}
