/* ---------------------------------------------------------------------------
   RideAlong design language: borrowed bones from AEOgent (stark paper & ink,
   grotesk with weight-based emphasis, mono micro-labels, one pill, a dark
   finale) rebuilt on the RideAlong brand blues from the logo.
--------------------------------------------------------------------------- */

:root {
  --paper: #ffffff;
  --stone: #f5f6f9;
  --ink: #101216;
  --soft: #565c66;
  --faint: #99a0ab;
  --line: #e7e9ef;
  --line-strong: #c7ccd6;

  --dark: #0d0e11;
  --dark-2: #15171c;
  --dark-line: #262a32;
  --on-dark: #f2f4f8;
  --on-dark-soft: #99a1ad;

  /* brand, straight off the mark */
  --brand: #2a78d6;
  --brand-bright: #4d93ec;
  --brand-deep: #1f5da8;
  --brand-wash: #eef4fd;

  --good: #0ca30c;
  --warn: #eda100;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 56px);

  --font-sans: "Archivo", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono-face: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--ink); color: var(--paper); }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.figure { font-variant-numeric: tabular-nums lining-nums; }
section { padding-block: clamp(64px, 10vh, 118px); }

/* ── Type ───────────────────────────────────────────────────────────── */

.mono-label {
  font-family: var(--font-mono-face);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 500;
}

.display-1 {
  font-size: clamp(50px, 7vw, 104px);
  font-weight: 460;
  line-height: 1;
  letter-spacing: -0.045em;
}
.display-2 {
  font-size: clamp(36px, 4.8vw, 64px);
  font-weight: 470;
  line-height: 1.04;
  letter-spacing: -0.04em;
}
.display-3 {
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

/* Emphasis by weight, not slant. Key words go heavy, the rest stays medium. */
em, .em { font-style: normal; font-weight: 750; letter-spacing: -0.02em; }
.b { color: var(--brand); }
.on-dark .b, .dark-section .b { color: var(--brand-bright); }

.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--soft);
  max-width: 54ch;
}
.body { font-size: 16px; line-height: 1.6; color: var(--soft); }
.small { font-size: 14px; line-height: 1.55; color: var(--soft); }

/* ── The pill ───────────────────────────────────────────────────────── */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--brand);
  color: #fff;
  border: 1px solid var(--brand);
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.pill:hover {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(42, 120, 214, .28);
}
.pill.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.pill.ghost:hover { background: var(--stone); box-shadow: none; }
.pill.small { padding: 9px 18px; font-size: 14px; }
.pill.on-dark { background: var(--on-dark); color: var(--dark); border-color: var(--on-dark); }
.pill.on-dark:hover { background: #fff; box-shadow: 0 12px 32px rgba(0,0,0,.35); }
.pill.ghost-dark { background: transparent; color: var(--on-dark); border-color: var(--dark-line); }
.pill.ghost-dark:hover { background: rgba(255,255,255,.06); box-shadow: none; }

/* ── Nav ────────────────────────────────────────────────────────────── */

.site-top { position: sticky; top: 0; z-index: 100; }
.announce {
  background: var(--dark); color: var(--on-dark-soft);
  font-family: var(--font-mono-face); font-size: 12px; letter-spacing: .08em;
  text-align: center; padding: 9px var(--gutter);
}
.announce a { color: var(--on-dark); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.announce a:hover { color: #fff; }
.site-nav {
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-nav .inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.wordmark {
  display: flex; align-items: center; gap: 10px;
  font-weight: 750; font-size: 20px; letter-spacing: -.03em;
  color: var(--ink); text-decoration: none;
}
.wordmark .mark { width: 22px; height: 22px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: var(--soft); font-size: 15px; font-weight: 550;
  text-decoration: none; transition: color .15s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.pill { color: #fff; }
.nav-links a.pill:hover { color: #fff; }
@media (max-width: 820px) { .nav-links .hide-mobile { display: none; } }

/* ── Hero: two cursors, riding along on the page itself ─────────────── */

.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #eef1f7 0%, #f7f8fb 55%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}
.hero-glow {
  position: absolute; right: -16%; top: -32%; width: 900px; height: 900px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(77,147,236,.16) 0%, rgba(77,147,236,.05) 45%, transparent 68%);
}
.hero-content { position: relative; z-index: 1; padding-block: clamp(72px, 12vh, 130px) clamp(64px, 10vh, 110px); }

/* orchestrated entrance */
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.rise-1, .rise-2, .rise-3, .rise-4, .rise-5 { animation: rise-in .7s cubic-bezier(.22,1,.36,1) both; }
.rise-2 { animation-delay: .10s; }
.rise-3 { animation-delay: .20s; }
.rise-4 { animation-delay: .30s; }
.rise-5 { animation-delay: .42s; }

/* the theater layer */
.theater { position: absolute; inset: 0; pointer-events: none; z-index: 5; }

.cur { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity .4s ease; will-change: transform; }
.cur svg:first-child { width: 20px; height: 30px; display: block; }
.cur.you svg:first-child path { fill: #1b2028; stroke: #fff; stroke-width: 2.4; }
.cur.coach svg:first-child path { fill: var(--brand); stroke: #fff; stroke-width: 2.4; }
.cur { filter: drop-shadow(0 3px 7px rgba(16,32,56,.28)); }
.cur .tag {
  position: absolute; left: 15px; top: 26px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 650; letter-spacing: -.01em;
  padding: 3px 9px; border-radius: 999px;
}
.cur.coach .tag { background: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(42,120,214,.35); }
.cur.coach .tag svg { width: 10px; height: 10px; }
.cur.you .tag { background: #fff; color: var(--soft); border: 1px solid var(--line-strong); }

/* the coach's marks on the page */
.ride-underline { position: absolute; overflow: visible; }
.ride-underline path {
  fill: none; stroke: var(--brand); stroke-width: 5; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 100; opacity: .85;
}
.ride-underline.draw path { transition: stroke-dashoffset .55s cubic-bezier(.3,0,.2,1); stroke-dashoffset: 0; }
.ride-underline.clear { opacity: 0; transition: opacity .4s ease; }

.ride-bracket {
  position: absolute; border: 2.5px solid var(--brand); border-radius: 999px;
  box-shadow: 0 0 0 5px rgba(42,120,214,.12);
  opacity: 0; transform: scale(1.08); pointer-events: none;
  transition: opacity .3s ease, transform .45s cubic-bezier(.22,1,.36,1);
}
.ride-bracket.on { opacity: 1; transform: scale(1); }

.done-chip {
  position: absolute; width: 26px; height: 26px; border-radius: 50%;
  background: var(--good); color: #fff; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(12,163,12,.35);
  opacity: 0; transform: translateY(6px) scale(.7);
  transition: opacity .3s ease, transform .4s cubic-bezier(.34,1.56,.64,1);
}
.done-chip.on { opacity: 1; transform: translateY(0) scale(1); }

.pill.pressed { transform: scale(.955); box-shadow: 0 4px 14px rgba(42,120,214,.30); }

@media (max-width: 980px) { .theater { display: none; } }

/* ── The live work panel (how it works, and the leaders dashboard) ──── */

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 40px 110px rgba(16,18,22,.14), 0 0 0 1px var(--line);
  overflow: hidden;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--paper);
}
.panel-title { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 650; letter-spacing: -.01em; }
.dotlive { width: 7px; height: 7px; border-radius: 999px; background: var(--good); animation: pulse-dot 1.8s ease-in-out infinite; }
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(12,163,12,.35); }
  50% { box-shadow: 0 0 0 5px rgba(12,163,12,0); }
}
.work-row {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 18px; border-bottom: 1px solid var(--line);
  transition: background .4s ease;
}
.work-row:last-child { border-bottom: 0; }
.work-row .name { font-size: 14.5px; font-weight: 550; letter-spacing: -.01em; flex: 1; }
.work-row .state {
  font-family: var(--font-mono-face); font-size: 11.5px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--faint); white-space: nowrap; transition: color .4s ease;
}
.work-row .tick {
  width: 18px; height: 18px; border-radius: 999px; flex: none;
  border: 2px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  transition: background .35s ease, border-color .35s ease, transform .35s ease;
}
.work-row .tick svg { width: 10px; height: 10px; opacity: 0; transition: opacity .3s ease; }
.work-row.done { background: color-mix(in srgb, var(--brand-wash) 70%, transparent); }
.work-row.done .tick { background: var(--brand); border-color: var(--brand); transform: scale(1.06); }
.work-row.done .tick svg { opacity: 1; }
.work-row.done .state { color: var(--brand); }
.panel-foot {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-top: 1px solid var(--line); background: var(--stone);
}
.panel-foot .k { font-family: var(--font-mono-face); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.panel-foot .v { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }

/* ── Reveal ─────────────────────────────────────────────────────────── */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.revealed { opacity: 1; transform: none; }

/* ── Proof band ─────────────────────────────────────────────────────── */

.band { background: var(--stone); border-block: 1px solid var(--line); padding-block: 34px; text-align: center; }

/* ── Beats ──────────────────────────────────────────────────────────── */

.beats { display: grid; grid-template-columns: 56px 1fr; row-gap: clamp(38px, 6vh, 68px); position: relative; }
.beats::before { content: ""; position: absolute; left: 10px; top: 12px; bottom: 12px; width: 2px; background: var(--line); }
.beat { display: contents; }
.beat-dot {
  position: relative; z-index: 1; width: 22px; height: 22px; border-radius: 999px;
  background: var(--paper); border: 2px solid var(--line-strong); margin-top: 5px;
  transition: background .3s, border-color .3s, transform .3s;
}
.beat-body h3 {
  font-size: clamp(22px, 2.4vw, 30px); font-weight: 480; letter-spacing: -.03em;
  color: var(--faint); transition: color .35s;
}
.beat-body p { margin-top: 10px; max-width: 60ch; font-size: 16px; line-height: 1.6; color: var(--soft); opacity: .45; transition: opacity .35s; }
.beat.active .beat-body h3 { color: var(--ink); }
.beat.active .beat-body p { opacity: 1; }
.beat.active .beat-dot { background: var(--brand); border-color: var(--brand); transform: scale(1.12); }

/* ── Cards / platform grid ──────────────────────────────────────────── */

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 22px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: 0 18px 44px rgba(16,18,22,.09); }
.card h3 { font-size: 17px; font-weight: 650; letter-spacing: -.02em; }
.card p { margin-top: 7px; font-size: 14px; line-height: 1.55; color: var(--soft); }
.card .chip {
  display: inline-block; margin-bottom: 14px;
  font-family: var(--font-mono-face); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-wash); border-radius: 999px; padding: 4px 10px;
}
.card .chip.later { color: var(--soft); background: var(--stone); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

/* ── Metric rules ───────────────────────────────────────────────────── */

.metric { border-top: 2px solid var(--ink); padding-top: 14px; }
.metric .top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.metric .val { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.metric p { font-size: 14px; color: var(--soft); margin-top: 6px; line-height: 1.5; }

/* ── Dark finale ────────────────────────────────────────────────────── */

.dark-section { position: relative; background: var(--dark); color: var(--on-dark); overflow: hidden; }
.dark-section .lede, .dark-section .body, .dark-section .small { color: var(--on-dark-soft); }
.dark-glow {
  position: absolute; left: 50%; top: 40%; width: 1400px; height: 1000px; transform: translate(-50%,-50%);
  background: radial-gradient(ellipse, rgba(77,147,236,.16) 0%, rgba(77,147,236,.05) 40%, transparent 68%);
  pointer-events: none;
}
.glass {
  position: relative;
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--dark-line); border-radius: 18px;
  padding: clamp(26px, 3vw, 44px);
}
.dark-section .mono-label { color: var(--on-dark-soft); }

/* ── Footer ─────────────────────────────────────────────────────────── */

.site-footer { background: var(--dark); color: var(--on-dark-soft); border-top: 1px solid var(--dark-line); padding-block: 44px; }
.site-footer a { color: var(--on-dark-soft); text-decoration: none; font-size: 14px; }
.site-footer a:hover { color: var(--on-dark); }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }

/* ── Motion off ─────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise-1, .rise-2, .rise-3, .rise-4, .rise-5 { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .dotlive { animation: none; }
}

/* ── Video demo ─────────────────────────────────────────────────────── */

.video-frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 16px; border: 1px solid var(--line); background: #0d0e11;
  box-shadow: 0 44px 120px rgba(16,18,22,.20), 0 0 0 1px var(--line);
}
.video-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.play-btn {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
  border: 0; cursor: pointer; color: #fff;
  font-family: inherit; font-size: 16px; font-weight: 650; letter-spacing: -.01em;
  background: radial-gradient(ellipse at center, rgba(13,14,17,.34) 0%, rgba(13,14,17,.62) 100%);
  transition: background .25s ease, opacity .3s ease;
}
.play-btn:hover { background: radial-gradient(ellipse at center, rgba(13,14,17,.22) 0%, rgba(13,14,17,.52) 100%); }
.play-btn .circle {
  width: 74px; height: 74px; border-radius: 999px;
  background: #fff; color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 40px rgba(0,0,0,.34);
  transition: transform .22s cubic-bezier(.22,1,.36,1);
}
.play-btn .circle svg { width: 30px; height: 30px; margin-left: 3px; }
.play-btn:hover .circle { transform: scale(1.07); }
.play-btn.hidden { opacity: 0; pointer-events: none; }

/* ── How it works: beats beside the live panel ──────────────────────── */

.how-grid { display: grid; grid-template-columns: 1fr 372px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.how-aside { position: sticky; top: 118px; }
@media (max-width: 1020px) {
  .how-grid { grid-template-columns: 1fr; }
  .how-aside { position: static; max-width: 520px; }
}

@media (prefers-reduced-motion: reduce) {
  .srow .val, .pane.coach, .coach-btns u, .pointer, .pointer .ring { animation: none; }
  .srow .val, .pane.coach { opacity: 1; }
}

/* ── The site's own nudge: the product, performed on the visitor ────── */

.site-nudge {
  position: fixed; right: 22px; bottom: 22px; z-index: 300;
  width: min(360px, calc(100vw - 44px));
  background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 15px 16px 14px;
  box-shadow: 0 30px 70px rgba(16,18,22,.24), 0 4px 16px rgba(16,18,22,.10);
  opacity: 0; transform: translateY(18px) scale(.97); pointer-events: none;
  transition: opacity .45s cubic-bezier(.22,1,.36,1), transform .45s cubic-bezier(.22,1,.36,1);
}
.site-nudge.on { opacity: 1; transform: none; pointer-events: auto; }
.site-nudge .coach-head { display: flex; align-items: center; gap: 7px; }
.site-nudge .coach-head svg { width: 15px; height: 15px; }
.site-nudge .coach-head strong { font-size: 13px; font-weight: 700; letter-spacing: -.01em; }
.site-nudge .coach-head span { font-size: 11px; color: var(--faint); }
.site-nudge p { margin-top: 9px; font-size: 14px; line-height: 1.5; color: #3d4757; }
.site-nudge .coach-btns { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.site-nudge button { font-family: inherit; border: 0; cursor: pointer; }
#nudgeYes {
  background: var(--brand); color: #fff; font-size: 13px; font-weight: 650;
  border-radius: 999px; padding: 8px 18px;
  transition: background .15s, transform .15s;
}
#nudgeYes:hover { background: var(--brand-deep); transform: translateY(-1px); }
#nudgeNo { background: none; color: var(--faint); font-size: 13px; }
#nudgeNo:hover { color: var(--soft); }

/* the walkover: fixed layer that frames the talk button */
.guide { position: fixed; inset: 0; z-index: 290; pointer-events: none; }
.guide .cur { position: fixed; }
.guide-bracket {
  position: fixed; border: 2.5px solid var(--brand-bright); border-radius: 999px;
  box-shadow: 0 0 0 6px rgba(77,147,236,.16);
  opacity: 0; transform: scale(1.1);
  transition: opacity .35s ease, transform .5s cubic-bezier(.22,1,.36,1);
}
.guide-bracket.on { opacity: 1; transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  .site-nudge { transition: none; }
}
