/* runwithrove.com: the app's dark design tokens (Evolv/Resources/Assets.xcassets/Colors), Outfit and Geist
   (Evolv/Resources/Fonts, OFL). Dark only. */
@font-face { font-family: "Outfit"; src: url("/fonts/Outfit.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/Geist.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }

:root {
  /* Dark only (owner, 2026-10-17): the app's dark values. */
  --ground: #0a1413; --surface: #13211f; --ink: #eaf4f2; --muted: #7e9391; --hairline: #243836;
  --accent: #0a7a70; --accent-text: #3dbfb0; --on-accent: #ffffff; --aqua: #3dbfb0;
  --logo: #eaf4f2; --logo-dot: #7fe6d6; --glow: rgba(61, 191, 176, 0.12);
  --radius: 22px; --gutter: 20px; --measure: 680px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 17px/1.55 "Geist", system-ui, -apple-system, sans-serif;
  background-image: radial-gradient(60rem 30rem at 15% -10%, var(--glow), transparent 70%);
  background-repeat: no-repeat;
}
a { color: var(--accent-text); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 var(--gutter); }
header.site { padding: 28px 0 8px; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
header.site nav { display: flex; gap: 20px; font-size: 15px; }
header.site nav a { color: var(--muted); text-decoration: none; padding: 10px 0; }
header.site nav a[aria-current="page"], header.site nav a:hover { color: var(--ink); }

.wordmark { display: block; height: 30px; width: auto; }
.wordmark .logo { fill: var(--logo); }
.wordmark g.logo circle { fill: none; stroke: var(--logo); }
.wordmark .aqua { fill: var(--aqua); }
.wordmark .dot { fill: var(--logo-dot); }
.wordmark.large { height: 64px; }

h1, h2, h3 { font-family: "Outfit", system-ui, sans-serif; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(34px, 7vw, 48px); margin: 0 0 12px; }
h2 { font-size: 24px; margin: 40px 0 8px; }
h3 { font-size: 19px; margin: 0 0 4px; }
p, li { color: var(--ink); }
.muted { color: var(--muted); }
.lede { font-size: 20px; color: var(--muted); margin: 0 0 28px; }

.hero { padding: 48px 0 8px; }
.hero .wordmark { margin-bottom: 36px; }
.flow { display: block; width: 100%; height: auto; margin: 8px 0 24px; }
.flow path { fill: none; stroke-linecap: round; }
.flow .done { stroke: var(--aqua); stroke-width: 4; }
.flow .ahead { stroke: var(--hairline); stroke-width: 4; stroke-dasharray: 2 9; }
.flow circle { fill: var(--aqua); transform-box: fill-box; transform-origin: center; }

.cards { display: grid; gap: 14px; margin: 8px 0 32px; }
.card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 20px 22px; }
.card p { margin: 0; color: var(--muted); }
.pill { display: inline-block; font-size: 14px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--hairline); color: var(--muted); }

.doc { padding: 24px 0 8px; }
.doc h1 { font-size: clamp(30px, 6vw, 40px); }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.doc .updated { color: var(--muted); font-size: 15px; margin: 0 0 24px; }

footer.site { margin-top: 32px; padding: 28px 0 40px; border-top: 1px solid var(--hairline); font-size: 15px; color: var(--muted); }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
footer.site a { color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .flow .done { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 1.4s 0.2s ease-out forwards; }
  .flow circle { opacity: 0; animation: appear 0.3s 1.5s ease-out forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes appear { to { opacity: 1; } }
}

/* ── Delights (D-121). Every one is still or instant with prefers-reduced-motion. ── */
:root { --orb1: #d9f8f1; --orb2: #5ed3c3; --orb3: #139c98; --orb4: #0a5c66; --tint: rgba(61, 191, 176, 0.14); }
html:not(.js) .js-only { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Stride draw-in: the R's ribbon sweeps in, the head pops (first page view of a visit). */
.stride-ready .wordmark .aqua { clip-path: inset(0 100% 0 0); }
.stride-ready .wordmark .dot { transform-box: fill-box; transform-origin: center; transform: scale(0); }
.stride .wordmark .aqua { animation: stride 0.8s cubic-bezier(.3,.7,.3,1) forwards; }
.stride .wordmark .dot { animation: pop 0.5s 0.7s cubic-bezier(.3,1.6,.5,1) forwards; }
@keyframes stride { to { clip-path: inset(0 0 0 0); } }
@keyframes pop { to { transform: scale(1); } }

/* Starting gun: hold the R. */
.gun { position: relative; display: inline-block; touch-action: manipulation; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.gun .wordmark { transition: transform 0.25s ease-out; }
.gun-count { position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%); font: 600 28px "Outfit", sans-serif; color: var(--accent-text); pointer-events: none; }
.gun-count.beat { animation: beat 0.42s ease-out; }
@keyframes beat { 0% { transform: translateY(-50%) scale(1.5); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-50%) scale(1); opacity: 1; } }
.gun.thump .wordmark { animation: thump 0.42s ease-out; }
@keyframes thump { 0% { transform: scale(1); } 25% { transform: scale(1.12); } 100% { transform: scale(1); } }
.gun.go .wordmark { animation: dash 0.9s cubic-bezier(.5,0,.2,1); }
@keyframes dash { 0% { transform: none; } 40% { transform: translateX(110vw); opacity: 1; } 41% { opacity: 0; transform: translateX(-60vw); } 42% { opacity: 1; } 100% { transform: none; } }

/* The orb: the coach's face (Evolv/Orb, calm). */
.hero { display: grid; grid-template-columns: 1fr; gap: 8px; }
.orb-wrap { width: 112px; height: 112px; margin: 0 0 20px; position: relative; cursor: pointer; border: 0; padding: 0; background: none; }
.orb-wrap:focus-visible { outline: 2px solid var(--aqua); outline-offset: 6px; border-radius: 50%; }
.orb-halo { position: absolute; inset: -14%; border-radius: 50%; background: radial-gradient(circle, var(--orb2) 0%, transparent 72%); filter: blur(11px); opacity: 0.55; transition: opacity 0.6s, transform 0.6s; }
.orb { position: absolute; inset: 6%; overflow: hidden; border-radius: 50%;
  background: radial-gradient(circle at 30% 24%, var(--orb1) 0%, var(--orb2) 36%, var(--orb3) 70%, var(--orb4) 100%);
  box-shadow: 0 14px 30px -8px rgba(19, 156, 152, 0.55), inset 0 -8px 8px rgba(0,0,0,0.16);
  animation: morph 9s ease-in-out infinite alternate, breathe 5s ease-in-out infinite; transition: filter 0.6s; }
.orb i { position: absolute; border-radius: 50%; filter: blur(8px); }
.orb i:nth-child(1) { width: 62%; height: 62%; left: 4%; top: 2%; background: var(--orb1); opacity: .85; animation: b1 8s ease-in-out infinite alternate; }
.orb i:nth-child(2) { width: 58%; height: 58%; right: -4%; bottom: -4%; background: var(--orb4); opacity: .7; animation: b2 9.8s ease-in-out infinite alternate; }
.orb i:nth-child(3) { width: 46%; height: 46%; left: 30%; top: 36%; background: var(--orb2); opacity: .9; animation: b3 6.9s ease-in-out infinite alternate; }
.orb::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.7), transparent 34%); }
.orb-wrap.listening .orb { filter: brightness(1.12) saturate(1.1); animation-duration: 4s, 1.6s; }
.orb-wrap.listening .orb-halo { opacity: 0.9; transform: scale(1.08); }
@keyframes morph { 0% { border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%; } 33% { border-radius: 56% 44% 52% 48% / 47% 55% 45% 53%; } 66% { border-radius: 46% 54% 44% 56% / 55% 46% 54% 45%; } 100% { border-radius: 52% 48% 57% 43% / 49% 52% 48% 51%; } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@keyframes b1 { to { transform: translate(24%, 18%) scale(1.15); } }
@keyframes b2 { to { transform: translate(-22%, -24%) scale(0.9); } }
@keyframes b3 { to { transform: translate(-18%, 15%) scale(1.2); } }
@media (min-width: 640px) {
  .hero { grid-template-columns: 1fr auto; align-items: start; column-gap: 28px; }
  .hero > .orb-wrap { grid-column: 2; grid-row: 1 / span 2; width: 132px; height: 132px; margin-top: 6px; }
  .hero > :not(.orb-wrap) { grid-column: 1; }
}
.coach-line { color: var(--muted); font-size: 16px; margin: 14px 0 0; min-height: 1.55em; }

/* Try the coach: a working Suggested change card. */
.try .bubble { margin: 16px 0 10px auto; width: fit-content; max-width: 80%; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 20px 20px 6px 20px; }
.change { border: 1px solid var(--hairline); border-radius: 18px; padding: 16px 18px; background: var(--ground); transition: opacity .3s; }
.change-head { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.change[data-state="applied"] .change-head { color: var(--accent-text); }
.change-head svg { width: 16px; height: 16px; flex: none; }
.row { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; overflow: hidden; }
.row .tile { width: 36px; height: 36px; border-radius: 11px; background: var(--tint); display: grid; place-items: center; flex: none; }
.row .tile svg { width: 18px; height: 18px; stroke: var(--accent-text); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.row .t { position: relative; font-weight: 600; }
.row.old .tile { opacity: .55; }
.row.old .t { font-weight: 400; color: var(--muted); }
.row.old .t::after { content: ""; position: absolute; left: 0; right: 0; top: 52%; height: 1.5px; background: var(--muted); transform: scaleX(0); transform-origin: left; transition: transform .5s ease-in-out .35s; }
.change.seen .row.old .t::after { transform: scaleX(1); }
.row.old { max-height: 60px; transition: max-height .45s cubic-bezier(.4,.8,.3,1), opacity .3s, margin .45s; }
.change[data-state="applied"] .row.old { max-height: 0; opacity: 0; margin: 0; }
.change .note { margin: 4px 0 14px; color: var(--muted); font-size: 15px; }
.change[data-state="dismissed"] { opacity: .7; }
.actions { display: flex; gap: 10px; align-items: center; min-height: 44px; }
.actions button { font: 600 15px "Geist", sans-serif; border-radius: 999px; min-height: 44px; padding: 0 18px; cursor: pointer; }
.actions .primary { background: var(--accent); color: var(--on-accent); border: 0; }
.actions .secondary { background: none; color: var(--ink); border: 1px solid var(--hairline); }
.actions .tertiary { background: none; color: var(--muted); border: 0; }
.drawn-check circle { fill: var(--accent); }
.drawn-check path { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; animation: tick .45s .1s ease-out forwards; }
@keyframes tick { to { stroke-dashoffset: 0; } }

/* Scroll is a run: the script draws the hero curve and rides its marker; the finish tape above the footer. */
.js .flow .done, .js .flow circle { animation: none; opacity: 1; }
.finish { position: relative; height: 64px; margin: 48px 0 0; }
.finish .post { position: absolute; bottom: 0; width: 3px; height: 40px; border-radius: 2px; background: var(--hairline); }
.finish .post.l { left: 0; } .finish .post.r { right: 0; }
.finish .tape { position: absolute; top: 16px; height: 4px; width: 50%; background: var(--aqua); border-radius: 2px; transition: transform .7s cubic-bezier(.2,.8,.2,1), opacity .7s; }
.finish .tape.l { left: 0; transform-origin: left center; } .finish .tape.r { right: 0; transform-origin: right center; }
.finish.broken .tape.l { transform: rotate(32deg) scaleX(.5); opacity: .55; }
.finish.broken .tape.r { transform: rotate(-32deg) scaleX(.5); opacity: .55; }
.finish .label { position: absolute; left: 50%; top: 30px; transform: translateX(-50%); font: 600 15px "Outfit", sans-serif; color: var(--accent-text); opacity: 0; transition: opacity .4s .5s; white-space: nowrap; }
.finish.broken .label { opacity: 1; }

/* Reading line (privacy). */
.reading { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 5; pointer-events: none; }
.reading .fill { position: relative; height: 100%; width: 0; background: var(--aqua); border-radius: 0 2px 2px 0; }
.reading .fill::after { content: ""; position: absolute; top: -3px; width: 9px; height: 9px; margin-left: -5px; border-radius: 50%; background: var(--aqua); left: var(--at, 0); box-shadow: 0 0 0 4px var(--tint); }

/* Off the route (404). */
.lost { display: block; width: 100%; height: auto; margin: 8px 0 20px; }
.lost .street { stroke: var(--hairline); stroke-width: 10; fill: none; stroke-linecap: round; }
.lost .wander { stroke: var(--muted); stroke-width: 4; fill: none; stroke-dasharray: 2 9; stroke-linecap: round; }
.lost .back { stroke: var(--aqua); stroke-width: 4; fill: none; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; }
.lost .home-pin { fill: var(--accent); }
.lost .runner { fill: var(--aqua); }
.lost text { font: 600 15px "Outfit", sans-serif; fill: var(--muted); }
.lost .recalc { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .orb, .orb i { animation: none !important; }
  .stride-ready .wordmark .aqua, .stride-ready .wordmark .dot { animation: none; clip-path: none; transform: none; }
  .gun.thump .wordmark { animation: none; }
  .row.old .t::after, .row.old, .finish .tape, .finish .label { transition: none; }
  .drawn-check path { animation: none; stroke-dashoffset: 0; }
  .gun.go .wordmark { animation: none; }
}
