/* ============================================================
   RUNNIT HOMEPAGE — built on the Runnit Design System
   Tokens from colors_and_type.css; components from guide.css
   ============================================================ */

/* ── Fonts ─────────────────────────────────────────────────── */
@font-face {
  font-family: "EK Modena";
  src: url("/assets/fonts/EK%20Modena/WOFF/EKModena-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EK Modena";
  src: url("/assets/fonts/EK%20Modena/WOFF/EKModena-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EK Modena Condensed";
  src: url("/assets/fonts/EK%20Modena%20Condensed/WOFF/EKModenaCondensed-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EK Modena Condensed";
  src: url("/assets/fonts/EK%20Modena%20Condensed/WOFF/EKModenaCondensed-Ultra.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EK Modena Mono";
  src: url("/assets/fonts/EK%20Modena%20Mono/WOFF/EKModenaMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ── Tokens ────────────────────────────────────────────────── */
:root {
  --color-guava: #FF51A8;
  --color-acai: #ADA9F5;
  --color-coffee: #B49E73;
  --color-mandarin: #FF6100;
  --color-matcha: #BBCD48;

  --color-dark-1: #000000;
  --color-dark-2: #171615;
  --color-dark-3: #2C2B2B;
  --color-dark-4: #414040;

  --color-light-1: #FFFFFF;
  --color-light-2: #F8F8F7;
  --color-light-3: #E4E2DE;
  --color-light-4: #BAB9B5;

  --accent-primary: var(--color-guava);

  --font-display-ultra: "EK Modena Condensed", sans-serif;
  --font-display-bold: "EK Modena Condensed", sans-serif;
  --font-body: "EK Modena", sans-serif;
  --font-mono: "EK Modena Mono", monospace;

  --section-pad-x: 56px;
}

/* ── Base ──────────────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #000000;
  color: #FFFFFF;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
.wrap { max-width: 1432px; margin: 0 auto; }
.wrap-narrow { max-width: 1320px; margin: 0 auto; }

/* ── Type helpers ──────────────────────────────────────────── */
.h-ultra {
  font-family: var(--font-display-ultra);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-guava);
}
.badge-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 8px;
  padding: 7px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.badge-pill .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: none; }
.badge-guava { color: var(--color-guava); border: 1px solid rgba(255,81,168,0.3); background: rgba(255,81,168,0.10); }
.badge-ink { color: #000000; border: 1px solid rgba(0,0,0,0.35); }

/* ── Buttons (design system) ───────────────────────────────── */
.btn {
  font-family: var(--font-display-bold); font-weight: 700; font-size: 13px;
  letter-spacing: 0.04em; text-transform: uppercase;
  border: 1px solid transparent; cursor: pointer; border-radius: 8px;
  padding: 11px 20px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform 0.08s, background 0.12s, border-color 0.12s, opacity 0.12s;
  white-space: nowrap;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--color-guava); color: #000; }
.btn-primary:hover { background: #ff6fb6; }
.btn-ghost { background: transparent; color: #FFFFFF; border-color: var(--color-dark-4); }
.btn-ghost:hover { border-color: var(--color-light-4); background: var(--color-dark-2); }
.btn-lg { font-size: 15px; padding: 13px 26px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.35; cursor: not-allowed; }
.btn:disabled:active { transform: none; }
.btn-ink {
  font-family: var(--font-display-bold); font-weight: 700; font-size: 16px;
  letter-spacing: 0.04em; text-transform: uppercase;
  background: #000000; color: #FFFFFF; border: none; border-radius: 8px;
  padding: 17px 34px; cursor: pointer;
  transition: background 0.12s;
}
.btn-ink:hover { background: #2C2B2B; }

/* ── Form elements (design system, dark) ───────────────────── */
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--color-light-4);
}
.field-label .req { color: var(--color-guava); }
.input, .textarea, .select {
  font-family: var(--font-body); font-size: 14px; color: #FFFFFF;
  background: var(--color-dark-2); border: 1px solid var(--color-dark-3);
  border-radius: 10px; padding: 12px 14px; width: 100%;
  transition: border-color 0.12s, background 0.12s;
}
.input::placeholder, .textarea::placeholder { color: rgba(186, 185, 181, 0.6); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--color-guava); background: var(--color-dark-1); }
.textarea { resize: vertical; min-height: 96px; line-height: 1.4; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23BAB9B5' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
  padding-right: 36px; cursor: pointer;
}
.form-status {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--color-light-4); min-height: 16px;
}

/* ── Nav ───────────────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 36px;
  padding: 18px var(--section-pad-x);
  background: rgba(0,0,0,0.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.site-nav .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.site-nav .brand img { width: 34px; height: 34px; display: block; }
.site-nav .brand span {
  font-family: var(--font-display-ultra); font-weight: 900; font-size: 24px;
  letter-spacing: 0.03em; color: #FFFFFF;
}
.site-nav .spacer { flex: 1; }
.site-nav .links { display: flex; align-items: center; gap: 28px; }
.nav-link {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--color-light-4); text-decoration: none;
  transition: color 0.12s;
}
.nav-link:hover { color: #FFFFFF; }
.nav-link-agencies { color: var(--color-guava); }
.nav-link-agencies:hover { color: #FF9DCD; }
.nav-link-inhouse { color: var(--color-acai); }
.nav-link-inhouse:hover { color: #CECBF9; }

/* Mobile menu toggle (hamburger). Hidden on desktop. */
.nav-burger { display: none; }
.nav-burger {
  width: 40px; height: 40px; flex: none; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  border: 1px solid var(--color-dark-4); border-radius: 9px;
}
.nav-burger span { display: block; width: 18px; height: 2px; background: currentColor; color: #FFFFFF; transition: transform 0.2s, opacity 0.2s; }
.nav-toggle-cb:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle-cb:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
.nav-toggle-cb:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  background: #000000;
  padding: 36px var(--section-pad-x) 30px;
  display: flex; flex-direction: column; align-items: center;
}
.hero .wrap { width: 100%; display: flex; flex-direction: column; align-items: center; }
.hero h1 {
  font-size: clamp(36px, 4.3vw, 62px);
  text-align: center; margin: 22px 0 0; max-width: 980px; text-wrap: balance;
}
.hero h1 .accent { color: var(--color-guava); }
.hero-sub {
  font-family: var(--font-body); font-weight: 400; font-size: 16px; line-height: 1.5;
  color: var(--color-light-4); text-align: center; max-width: 640px; margin: 16px 0 0;
  text-wrap: pretty;
}
.hero-ctas { display: flex; gap: 14px; margin: 22px 0 0; flex-wrap: wrap; justify-content: center; }
.hero-shot {
  margin: 64px 0 0; width: 100%; display: block;
  border-radius: 28px; border: 1px solid rgba(255,255,255,0.07);
}
/* ── Hero film ─────────────────────────────────────────────────
   The animation sits where the UI screenshot used to, presented as an
   obvious video: control bar with play/pause, progress and countdown
   (movie.js mirrors the animation clock).
*/
/* ── Hero scroll choreography (desktop) ────────────────────────
   205svh stage with a sticky 100svh viewport. choreo.js scroll-scrubs:
   the copy translates up at exactly 1:1 scroll speed (reads as normal
   scrolling) while the film frame interpolates from the layout slot to a
   centred fullscreen 16:9 rect, holds, then the sticky releases and the
   fullscreen film scrolls away naturally. Mobile, portrait and
   reduced-motion get the plain stacked layout (hero-choreo-off).
*/
.hero.hero-stage { padding: 0; display: block; position: relative; height: 205vh; height: 205svh; }
.hero-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero-inner {
  height: 100%; padding: 36px var(--section-pad-x) 30px;
  display: flex; flex-direction: column; align-items: center;
  will-change: transform;
}
.hero-slot {
  /* Height-driven width: size the 16:9 slot from the viewport height left
     over after nav + copy (--hero-reserve), so the whole film fits above
     the fold on normal desktop browsers. Short laptop screens compress the
     copy (media query below) and hand the space to the film. */
  margin: 30px auto 0; aspect-ratio: 16 / 9;
  width: min(100%, calc((100vh - var(--hero-reserve, 505px)) * 16 / 9));
  width: min(100%, calc((100svh - var(--hero-reserve, 505px)) * 16 / 9));
  min-width: min(480px, 100%);
}
.hero-movie {
  position: absolute; left: 0; top: 0; aspect-ratio: 16 / 9; display: block;
  transform-origin: 0 0; will-change: transform; opacity: 0;
  overflow: hidden; background: #000000;
  border-radius: 24px; border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 0 90px rgba(255, 81, 168, 0.15), 0 30px 90px rgba(0, 0, 0, 0.55);
}
.hero-movie.is-ready { opacity: 1; }

/* Plain stacked fallback: film card in flow where the slot would be */
.hero-choreo-off .hero.hero-stage { height: auto; padding-bottom: 30px; }
.hero-choreo-off .hero-sticky { position: static; height: auto; overflow: visible; }
.hero-choreo-off .hero-inner { height: auto; transform: none !important; }
.hero-choreo-off .hero-slot { display: none; }
.hero-choreo-off .hero-movie {
  position: relative; opacity: 1; transform: none !important;
  margin: 0 auto; aspect-ratio: 16 / 9;
  width: min(calc(100% - 2 * var(--section-pad-x)), calc((100vh - var(--hero-reserve, 505px)) * 16 / 9));
  width: min(calc(100% - 2 * var(--section-pad-x)), calc((100svh - var(--hero-reserve, 505px)) * 16 / 9));
  min-width: min(480px, calc(100% - 2 * var(--section-pad-x)));
  border-radius: 24px !important;
}

/* Short laptop screens: compress the copy so the film gets the space */
@media (min-width: 900px) and (max-height: 880px) {
  .hero { --hero-reserve: 430px; }
  .hero-inner { padding-top: 22px; }
  .hero h1 { font-size: clamp(32px, 3.9vw, 52px); margin-top: 16px; }
  .hero-sub { font-size: 15px; margin-top: 13px; max-width: 600px; }
  .hero-ctas { margin-top: 18px; }
  .hero-slot { margin-top: 24px; }
}
.hero-anim { position: absolute; inset: 0; }
.hero-movie-bar {
  position: absolute; left: 0; bottom: 0; z-index: 5;
  display: flex; align-items: center; gap: 16px;
  padding: 26px 24px 18px;
  background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0));
  /* Counter-scale against the frame's choreography scale (--s) so the
     controls keep a constant visual size in card and fullscreen states. */
  width: calc(100% * var(--s, 1));
  transform: scale(calc(1 / var(--s, 1))); transform-origin: bottom left;
  /* Let clicks pass through to the film (e.g. its REPLAY button); only the
     actual controls take pointer events. */
  pointer-events: none;
  transition: opacity 0.25s;
}
.hm-toggle, .hm-track { pointer-events: auto; }
/* Player-style auto-hide: after the intro beat (hm-settled, set by
   movie.js) the bar hides during playback and returns on hover or pause.
   Touch devices keep it visible. */
@media (hover: hover) {
  .hero-movie.hm-settled:not(.is-paused):not(:hover) .hero-movie-bar { opacity: 0; }
}
.hm-toggle {
  width: 34px; height: 34px; flex: none; padding: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.22);
  border-radius: 8px; color: #FFFFFF; transition: background 0.12s, border-color 0.12s;
}
.hm-toggle:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.4); }
.hm-toggle .i-play { display: none; }
.hero-movie.is-paused .hm-toggle .i-pause { display: none; }
.hero-movie.is-paused .hm-toggle .i-play { display: block; }
.hm-track {
  flex: 1; height: 16px; display: flex; align-items: center; cursor: pointer;
  position: relative;
}
.hm-track::before {
  content: ""; position: absolute; left: 0; right: 0; height: 3px;
  background: rgba(255,255,255,0.18); border-radius: 2px;
}
.hm-fill {
  position: relative; display: block; width: 0%; height: 3px;
  background: var(--color-guava); border-radius: 2px;
  box-shadow: 0 0 10px rgba(255,81,168,0.5);
}

/* ── Problem ───────────────────────────────────────────────── */
.section-problem { background: var(--color-matcha); color: #000000; padding: 110px var(--section-pad-x); }
.section-problem .wrap {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center;
}
.section-problem .badge-pill { margin: 0 0 20px; }
.section-problem h2 { font-size: clamp(38px, 4.5vw, 58px); }
.problem-lede {
  font-family: var(--font-body); font-weight: 500; font-size: 19px; line-height: 1.5;
  color: rgba(0,0,0,0.78); margin: 28px 0 0;
  border-left: 3px solid #000000; padding-left: 20px; text-wrap: pretty;
}
.problem-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
/* An odd final card spans both columns so the grid never leaves a gap */
.problem-card:nth-child(odd):last-child { grid-column: 1 / -1; }
.problem-card { background: #000000; color: #FFFFFF; border-radius: 18px; padding: 30px 28px; }
.problem-card .ico {
  width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center; margin: 0 0 16px;
}
.problem-card .txt {
  font-family: var(--font-display-bold); font-weight: 700; font-size: 24px;
  line-height: 1.05; letter-spacing: 0.02em; text-transform: uppercase;
}
.pc-q { color: var(--color-matcha); font-family: var(--font-display-bold); font-weight: 700; font-size: 18px; line-height: 1; }
.pc-dots { display: flex; gap: 3px; }
.pc-dots span { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,0.35); }
.pc-dots span:first-child { background: var(--color-matcha); }
.pc-lines { display: flex; flex-direction: column; gap: 3px; }
.pc-lines span { height: 3px; border-radius: 2px; background: rgba(255,255,255,0.35); }
.pc-lines span:nth-child(1) { width: 16px; background: var(--color-matcha); }
.pc-lines span:nth-child(2) { width: 11px; }
.pc-lines span:nth-child(3) { width: 14px; }
.pc-hex { width: 14px; height: 14px; background: var(--color-matcha); clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); }
.pc-in { width: 14px; height: 14px; background: var(--color-matcha); clip-path: polygon(30% 0%, 70% 0%, 70% 45%, 100% 45%, 50% 100%, 0% 45%, 30% 45%); }

/* ── Context spine ─────────────────────────────────────────── */
.section-spine { background: #000000; color: #FFFFFF; padding: 120px var(--section-pad-x) 130px; overflow: hidden; }
.section-spine .wrap { position: relative; }
.spine-glow {
  position: absolute; top: 46%; left: 50%; transform: translate(-50%,-50%);
  width: 760px; height: 760px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,81,168,0.16) 0%, rgba(255,81,168,0) 65%);
  pointer-events: none;
}
.spine-head { text-align: center; margin: 0 0 64px; position: relative; }
.spine-head .eyebrow { display: block; margin: 0 0 18px; }
.spine-head h2 { font-size: clamp(34px, 3.8vw, 52px); color: #FFFFFF; font-weight: 700; line-height: 0.95; }
.spine-head h2 .accent { color: var(--color-guava); }
.spine-inputs { display: flex; justify-content: center; align-items: center; gap: 18px; position: relative; flex-wrap: wrap; }
.spine-chip {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 10px; padding: 12px 20px; display: inline-flex; align-items: center; gap: 9px;
}
.spine-chip .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: none; }
.chip-acai { color: var(--color-acai); background: rgba(173,169,245,0.14); border: 1px solid rgba(173,169,245,0.35); }
.chip-coffee { color: var(--color-coffee); background: rgba(180,158,115,0.14); border: 1px solid rgba(180,158,115,0.4); }
.chip-matcha { color: var(--color-matcha); background: rgba(187,205,72,0.14); border: 1px solid rgba(187,205,72,0.35); }
.chip-mandarin { color: var(--color-mandarin); background: rgba(255,97,0,0.14); border: 1px solid rgba(255,97,0,0.4); }
.chip-neutral { color: var(--color-light-4); background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.25); }
.spine-svg { width: 100%; height: 110px; display: block; position: relative; }
.spine-core { display: flex; justify-content: center; position: relative; }
.context-pill {
  background: var(--color-guava); border-radius: 9999px; padding: 22px 44px 22px 26px;
  box-shadow: 0 0 70px rgba(255,81,168,0.3);
  display: inline-flex; align-items: center; gap: 20px;
}
.context-pill .glyph {
  width: 40px; height: 40px; background: #000000;
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.context-pill .glyph i { display: flex; align-items: center; }
.context-pill .glyph i span {
  width: 9px; height: 11px; background: #FFFFFF;
  clip-path: polygon(0% 0%, 100% 50%, 0% 100%);
}
.context-pill .glyph i span + span { margin-left: -2px; }
.context-pill .ttl {
  font-family: var(--font-display-ultra); font-weight: 900; font-size: 30px; line-height: 1;
  letter-spacing: 0.02em; text-transform: uppercase; color: #000000; transform: translateY(1px);
}
.context-pill .rule { width: 1px; height: 30px; background: rgba(0,0,0,0.3); flex: none; }
.context-pill .sub {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(0,0,0,0.75); transform: translateY(1px);
}
.spine-outputs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; position: relative; }
.spine-out { background: #FFFFFF; color: #000000; border-radius: 14px; padding: 22px 20px 20px; }
.spine-out .ttl {
  font-family: var(--font-display-bold); font-weight: 700; font-size: 21px; line-height: 1;
  letter-spacing: 0.02em; text-transform: uppercase; margin: 0 0 10px;
}
.spine-out .src { display: flex; align-items: center; gap: 7px; }
.spine-out .src i { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.spine-out .src span {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--color-dark-4);
}

/* ── Who runs on Runnit ────────────────────────────────────── */
.section-who { background: #000000; color: #FFFFFF; padding: 110px var(--section-pad-x); }
.section-who .eyebrow { display: block; margin: 0 0 18px; }
.section-who h2 { font-size: clamp(38px, 4.5vw, 58px); }
.who-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 36px 0 24px; }
.who-tab {
  text-align: left; padding: 24px 28px; border-radius: 14px; cursor: pointer;
  background: #0B0B0C; border: 1px solid rgba(255,255,255,0.1); color: #FFFFFF;
  font-family: inherit;
  transition: border-color 0.12s, background 0.12s, color 0.12s;
}
.who-tab:hover { border-color: rgba(255,255,255,0.3); }
.who-tab .ttl {
  display: block; font-family: var(--font-display-bold); font-weight: 700;
  font-size: clamp(22px, 2.4vw, 32px); line-height: 0.95;
  letter-spacing: 0.03em; text-transform: uppercase;
}
.who-tab .sub { display: block; font-family: var(--font-body); font-size: 14px; margin-top: 8px; opacity: 0.68; }
.who-tab.active[data-who-tab="agencies"] { background: var(--color-guava); border-color: var(--color-guava); color: #000000; }
.who-tab.active[data-who-tab="inhouse"] { background: var(--color-acai); border-color: var(--color-acai); color: #000000; }
.who-panel {
  background: #0B0B0C; border: 1px solid rgba(255,255,255,0.07); border-radius: 18px;
  padding: 44px 48px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center;
}
.who-panel[hidden] { display: none; }
.who-statement .big {
  font-family: var(--font-display-ultra); font-weight: 900;
  font-size: clamp(38px, 4.2vw, 58px); line-height: 0.9;
  letter-spacing: 0.03em; text-transform: uppercase;
}
.who-statement .big .hi { color: var(--color-guava); }
.who-panel[data-who-panel="inhouse"] .who-statement .big .hi { color: var(--color-acai); }
.who-statement p { font-size: 16px; line-height: 1.55; color: var(--color-light-4); margin: 24px 0 0; max-width: 420px; text-wrap: pretty; }
.who-point { display: flex; gap: 20px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.who-point:last-child { border-bottom: none; padding-bottom: 0; }
.who-point:first-child { padding-top: 0; }
.who-point .num { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--color-guava); flex: none; }
.who-panel[data-who-panel="inhouse"] .who-point .num { color: var(--color-acai); }
.who-point .ttl { font-size: 18px; font-weight: 500; }
.who-point p { font-size: 14px; line-height: 1.5; color: var(--color-light-4); margin: 5px 0 0; text-wrap: pretty; }

/* ── How Runnit works ──────────────────────────────────────── */
.section-how { background: var(--color-light-2); color: #000000; padding: 110px var(--section-pad-x); }
.section-how .head { margin: 0 0 56px; }
.section-how .head .eyebrow { display: block; margin: 0 0 18px; }
.section-how h2 { font-size: clamp(30px, 3.2vw, 44px); font-weight: 700; line-height: 0.95; }
.how-steps { display: flex; flex-direction: column; gap: 20px; }
.how-row {
  display: flex; gap: 40px; align-items: center;
  background: #FFFFFF; border: 1px solid var(--color-light-3);
  border-radius: 18px; padding: 28px 32px;
}
.how-row.rev { flex-direction: row-reverse; }
.how-row .copy { flex: 1; }
.how-row .copy .tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--color-guava); margin: 0 0 10px;
}
.how-row .copy .ttl { font-family: var(--font-body); font-weight: 500; font-size: 24px; line-height: 1.2; margin: 0 0 10px; }
.how-row .copy p { font-family: var(--font-body); font-size: 16px; line-height: 1.5; color: var(--color-dark-4); margin: 0; text-wrap: pretty; }
.how-row .visual { flex: 1.15; min-width: 0; }
.how-shot { border-radius: 12px; overflow: hidden; border: 1px solid var(--color-light-3); background: #000; position: relative; }
.how-shot img, .how-shot video { width: 100%; display: block; }

/* ── Video enlarge + lightbox ──────────────────────────────── */
.shot-enlarge {
  position: absolute; top: 12px; right: 12px; z-index: 5;
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: #FFFFFF; background: rgba(0,0,0,0.65); border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px; padding: 8px 12px;
  opacity: 0; transition: opacity 0.15s, background 0.12s, border-color 0.12s;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.how-shot:hover .shot-enlarge, .shot-enlarge:focus-visible { opacity: 1; }
.shot-enlarge:hover { background: rgba(0,0,0,0.85); border-color: var(--color-guava); color: var(--color-guava); }
@media (hover: none) { .shot-enlarge { opacity: 1; } }
.video-lightbox {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(0,0,0,0.88);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 40px;
}
.vl-frame {
  position: relative; width: min(1280px, 100%);
}
.vl-frame video, .vl-frame img {
  width: 100%; max-height: min(720px, 82vh); display: block; object-fit: contain;
  border-radius: 16px; border: 1px solid rgba(255,255,255,0.16); background: #000;
  box-shadow: 0 0 110px rgba(255, 81, 168, 0.18), 0 40px 110px rgba(0, 0, 0, 0.6);
}
.vl-close {
  position: absolute; top: -16px; right: -16px; z-index: 5;
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  background: var(--color-guava); color: #000; border: none;
  font-size: 22px; line-height: 1; display: flex; align-items: center; justify-content: center;
  transition: transform 0.12s;
}
.vl-close:hover { transform: scale(1.08); }
@media (max-width: 720px) {
  .video-lightbox { padding: 16px; }
  .vl-close { top: -12px; right: -6px; }
}
.how-cap {
  margin: 14px 0 0; font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em; color: var(--color-dark-4); text-align: center;
}
.how-chips {
  background: var(--color-light-2); border: 1px solid var(--color-light-3); border-radius: 12px;
  padding: 22px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.how-chip {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--color-dark-2); background: var(--color-light-2); border: 1px solid var(--color-light-3);
  border-radius: 8px; padding: 7px 12px; display: inline-flex; align-items: center; gap: 7px;
  background: #F8F8F7;
}
.how-chip i { width: 5px; height: 5px; border-radius: 50%; flex: none; }
.how-checks {
  background: var(--color-light-2); border: 1px solid var(--color-light-3); border-radius: 12px;
  padding: 18px; display: flex; flex-direction: column; gap: 8px;
}
.how-check {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: #FFFFFF; border: 1px solid var(--color-light-3); border-radius: 10px;
}
.how-check .mk { font-size: 13px; width: 14px; color: var(--color-matcha); }
.how-check.warn .mk { color: var(--color-guava); }
.how-check span:last-child { font-family: var(--font-body); font-size: 14px; color: var(--color-dark-2); }
.how-plan {
  background: var(--color-light-2); border: 1px solid var(--color-light-3); border-radius: 12px;
  padding: 20px 18px; display: flex; flex-direction: column; gap: 9px;
}
.how-bar { display: flex; align-items: center; gap: 10px; }
.how-bar .lbl {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--color-light-4); width: 64px; flex: none;
}
.how-bar .track { flex: 1; height: 18px; position: relative; }
.how-bar .track i { position: absolute; top: 0; bottom: 0; border-radius: 5px; }

/* ── Not another PM tool ───────────────────────────────────── */
.section-pm { background: #000000; color: #FFFFFF; padding: 130px var(--section-pad-x); text-align: center; }
.section-pm .wrap { max-width: 980px; }
.section-pm .eyebrow { display: block; margin: 0 0 22px; }
.section-pm h2 { font-size: clamp(34px, 3.8vw, 52px); text-wrap: balance; font-weight: 700; line-height: 0.95; }
.section-pm h2 .accent { color: var(--color-guava); }
.section-pm p {
  font-family: var(--font-body); font-size: 19px; line-height: 1.55; color: var(--color-light-4);
  max-width: 680px; margin: 28px auto 0; text-wrap: pretty;
}

/* ── Built to grow ─────────────────────────────────────────── */
.section-grow { background: var(--color-light-2); color: #000000; padding: 110px var(--section-pad-x); }
.section-grow .head { max-width: 760px; margin: 0 0 56px; }
.section-grow .head .eyebrow { display: block; margin: 0 0 18px; }
.section-grow h2 { font-size: clamp(30px, 3.2vw, 44px); font-weight: 700; line-height: 0.95; }
.section-grow .head p { font-family: var(--font-body); font-size: 18px; line-height: 1.55; color: var(--color-dark-4); margin: 24px 0 0; text-wrap: pretty; }
.grow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grow-card { background: #FFFFFF; border: 1px solid var(--color-light-3); border-radius: 18px; padding: 28px 26px; }
.grow-card .step {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--color-guava); margin: 0 0 14px;
}
.grow-card .ttl { font-family: var(--font-body); font-weight: 500; font-size: 19px; margin: 0 0 8px; }
.grow-card p { font-family: var(--font-body); font-size: 14.5px; line-height: 1.5; color: var(--color-dark-4); margin: 0; }

/* ── Who Runnit helps ──────────────────────────────────────── */
.section-roles { background: #FFFFFF; color: #000000; padding: 110px var(--section-pad-x); }
.section-roles .head { text-align: center; margin: 0 0 44px; }
.section-roles .head .eyebrow { display: block; margin: 0 0 18px; }
.section-roles h2 { font-size: clamp(30px, 3.2vw, 44px); font-weight: 700; line-height: 0.95; }
.role-tabs { display: flex; justify-content: center; gap: 8px; margin: 0 0 28px; flex-wrap: wrap; }
.role-tab {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase;
  border-radius: 8px; padding: 11px 18px; cursor: pointer; transition: all 0.15s;
  background: #FFFFFF; color: var(--color-dark-4); border: 1px solid var(--color-light-3);
}
.role-tab:hover { color: #000000; }
.role-tab.active { background: #000000; color: #FFFFFF; border-color: #000000; }
/* Attention cue for unexplored tabs (see initRoleTabs in site.js) */
.role-tab.nudge { animation: roleTabNudge 0.9s ease; }
@keyframes roleTabNudge {
  0%, 100% { transform: translateY(0); border-color: var(--color-light-3); box-shadow: none; }
  35% { transform: translateY(-3px); border-color: var(--color-guava); box-shadow: 0 6px 18px rgba(255, 81, 168, 0.25); color: #000; }
}
@media (prefers-reduced-motion: reduce) { .role-tab.nudge { animation: none; } }
.role-panel {
  background: var(--color-light-2); border: 1px solid var(--color-light-3); border-radius: 18px;
  padding: 36px 40px; display: grid; grid-template-columns: 0.85fr 1.45fr; gap: 44px;
  align-items: center; min-height: 300px;
}
/* Give the role panels (and their UI shots) the full wide measure */
.section-roles .wrap-narrow { max-width: 1432px; }
.role-panel[hidden] { display: none; }
.role-panel .ttl { font-family: var(--font-body); font-weight: 500; font-size: 26px; line-height: 1.2; margin: 0 0 14px; }
.role-panel p { font-family: var(--font-body); font-size: 17px; line-height: 1.55; color: var(--color-dark-4); margin: 0 0 20px; text-wrap: pretty; }
/* Captions under role screenshots match the how-section video captions
   (.role-panel p above would otherwise override .how-cap) */
.role-panel p.how-cap {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em; color: var(--color-dark-4); text-align: center;
  margin: 14px 0 0; line-height: 1.4;
}
.role-points { display: flex; flex-direction: column; gap: 10px; }
.role-point { display: flex; align-items: baseline; gap: 10px; }
.role-point i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--color-guava);
  flex: none; transform: translateY(-2px);
}
.role-point span { font-family: var(--font-body); font-size: 15.5px; line-height: 1.45; color: var(--color-dark-2); }
.role-shot { border-radius: 12px; overflow: hidden; border: 1px solid var(--color-light-3); background: #000; position: relative; }
.role-shot img { width: 100%; display: block; }

/* ── AI that understands ───────────────────────────────────── */
.section-ai { background: var(--color-dark-2); color: #FFFFFF; padding: 110px var(--section-pad-x); }
.section-ai .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center; }
.section-ai .eyebrow { display: block; margin: 0 0 18px; }
.section-ai h2 { font-size: clamp(30px, 3.2vw, 44px); font-weight: 700; line-height: 0.95; }
.section-ai .copy p {
  font-family: var(--font-body); font-size: 18px; line-height: 1.55; color: var(--color-light-4);
  margin: 24px 0 0; text-wrap: pretty;
}
.agent-cards { display: flex; flex-direction: column; gap: 14px; }
.agent-card {
  background: #0B0B0C; border: 1px solid rgba(255,255,255,0.07); border-radius: 18px;
  padding: 20px 24px; display: flex; align-items: center; gap: 16px;
}
.agent-card img { width: 40px; flex: none; display: block; }
.agent-card .nm { font-family: var(--font-body); font-weight: 500; font-size: 16px; }
.agent-card .rl {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--color-light-4); margin-top: 3px;
}
/* Build-your-own agent card: dashed invitation, guava plus tile */
.agent-card-custom { border-style: dashed; border-color: rgba(255,81,168,0.4); background: rgba(255,81,168,0.04); }
.agent-card-custom .rl { color: var(--color-guava); }
.agent-plus {
  width: 40px; height: 40px; flex: none; border-radius: 12px;
  border: 1px dashed rgba(255,81,168,0.6); color: var(--color-guava);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display-bold); font-weight: 700; font-size: 24px; line-height: 1;
}

/* ── Trust & proof ─────────────────────────────────────────── */
.section-proof { background: #FFFFFF; color: #000000; padding: 96px var(--section-pad-x); }
.section-proof .wrap-narrow { text-align: center; }
.section-proof h2 {
  font-family: var(--font-display-bold); font-weight: 700; font-size: clamp(28px, 3vw, 40px);
  line-height: 1; letter-spacing: 0.03em; text-transform: uppercase; margin: 0 0 36px;
}
.proof-chips { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.proof-chip {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--color-dark-2); border: 1px solid var(--color-light-3); background: var(--color-light-2);
  border-radius: 8px; padding: 12px 20px; display: inline-flex; align-items: center; gap: 9px;
}
.proof-chip i { width: 5px; height: 5px; border-radius: 50%; flex: none; }

/* ── Final CTA ─────────────────────────────────────────────── */
.section-cta { background: var(--color-guava); color: #000000; padding: 130px var(--section-pad-x); text-align: center; }
.section-cta .wrap { max-width: 900px; }
.section-cta h2 { font-size: clamp(48px, 6.5vw, 84px); text-wrap: balance; }
.section-cta p {
  font-family: var(--font-body); font-weight: 500; font-size: 19px; line-height: 1.5;
  color: rgba(0,0,0,0.75); max-width: 640px; margin: 26px auto 0; text-wrap: pretty;
}
.section-cta .actions { margin: 36px 0 0; }

/* ── Contact ───────────────────────────────────────────────── */
.section-contact { background: #000000; color: #FFFFFF; padding: 110px var(--section-pad-x); }
.section-contact .wrap { max-width: 980px; }
.section-contact h2 { font-size: clamp(32px, 3.4vw, 46px); text-align: center; margin: 0 0 48px; font-weight: 700; line-height: 0.95; }
.contact-form { display: flex; flex-direction: column; gap: 24px; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.contact-sent { text-align: center; padding: 40px 0; }
.contact-sent .ttl { font-size: clamp(32px, 3.5vw, 44px); line-height: 0.95; margin: 0 0 12px; }
.contact-sent p { font-family: var(--font-body); font-size: 16px; line-height: 1.5; color: var(--color-light-4); margin: 0; }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: #000000; color: #FFFFFF;
  /* extra bottom padding so the fixed "Chat with Ru" launcher never
     overlaps the footer links */
  padding: 44px var(--section-pad-x) 104px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.site-footer img { width: 28px; height: 28px; }
.site-footer .brand { font-family: var(--font-display-ultra); font-weight: 900; font-size: 18px; letter-spacing: 0.03em; }
.site-footer .spacer { flex: 1; }
.site-footer .fine {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--color-light-4);
}
.site-footer .fine a { color: var(--color-light-4); text-decoration: none; transition: color 0.12s; }
.site-footer .fine a:hover { color: #FFFFFF; }
.colophon-band {
  background: #000000; padding: 40px var(--section-pad-x) 0;
}
.colophon-band .colophon {
  margin: 0; padding-bottom: 34px; border-bottom: 1px solid var(--color-dark-3);
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.03em;
  color: var(--color-light-4); text-align: center;
}
.colophon-band .colophon a {
  color: #FFFFFF; font-weight: 700; text-decoration: none;
  border-bottom: 1px solid var(--color-guava); padding-bottom: 1px; transition: color 0.12s;
}
.colophon-band .colophon a:hover { color: var(--color-guava); }

/* ── Early access modal ────────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.72);
  align-items: center; justify-content: center; padding: 32px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #0B0B0C; border: 1px solid rgba(255,255,255,0.1); border-radius: 18px;
  width: 520px; max-width: 100%; max-height: 90vh; overflow: auto;
  padding: 36px 40px; position: relative;
}
.modal-close {
  position: absolute; top: 18px; right: 18px; background: none; border: none;
  color: var(--color-dark-4); font-size: 22px; line-height: 1; cursor: pointer;
  font-family: var(--font-body); transition: color 0.12s;
}
.modal-close:hover { color: #FFFFFF; }
.modal .eyebrow { font-size: 11px; display: block; margin: 0 0 12px; }
.modal .ttl { font-size: 38px; line-height: 0.95; color: #FFFFFF; margin: 0 0 8px; }
.modal .lede { font-family: var(--font-body); font-size: 14.5px; line-height: 1.5; color: var(--color-light-4); margin: 0 0 26px; }
.modal form { display: flex; flex-direction: column; gap: 16px; }
.modal .form-2col { gap: 14px; }
.modal-done { text-align: center; padding: 28px 0 16px; }
.modal-done img { width: 64px; height: 64px; }
.modal-done .ttl { font-size: 40px; margin: 20px 0 10px; }
.modal-done p { font-family: var(--font-body); font-size: 15px; line-height: 1.5; color: var(--color-light-4); margin: 0 0 24px; }

/* ── Contrast: brand-pink micro-labels on light sections ────
   #FF51A8 fails WCAG at 11-12px on white; use the darker variant
   the resource pages already use for light backgrounds. */
.section-how .eyebrow, .section-grow .eyebrow, .section-roles .eyebrow,
.how-row .copy .tag, .grow-card .step { color: #D42E85; }

/* ── Responsive ────────────────────────────────────────────── */
/* Tablet/iPad: keep the destination links (Resources, Documentation) and
   CTA inline, but drop the same-page anchor links so the nav doesn't wrap.
   Below 720px the hamburger menu takes over and shows everything. */
@media (min-width: 721px) and (max-width: 1024px) {
  .site-nav .links .nav-link[href^="#"],
  .site-nav .links .nav-link[href^="/#"] { display: none; }
}

@media (max-width: 1024px) {
  :root { --section-pad-x: 32px; }
  .spine-outputs { grid-template-columns: repeat(3, 1fr); }
  .grow-grid { grid-template-columns: 1fr 1fr; }
  .section-ai .wrap { grid-template-columns: 1fr; gap: 48px; }
  .section-problem .wrap { grid-template-columns: 1fr; gap: 48px; }
  .who-panel { grid-template-columns: 1fr; gap: 36px; padding: 36px 32px; }
  .role-panel { grid-template-columns: 1fr; gap: 32px; padding: 32px; }
  .context-pill .sub { display: none; }
  .context-pill .rule { display: none; }
}
@media (max-width: 720px) {
  :root { --section-pad-x: 20px; }
  .site-nav { gap: 16px; padding-top: 14px; padding-bottom: 14px; }
  .nav-burger { display: flex; }
  /* Dropdown panel: hidden until the burger is toggled */
  .site-nav .links {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 60;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px 20px 18px; display: none;
    background: rgba(0, 0, 0, 0.97);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
  .nav-toggle-cb:checked ~ .links { display: flex; }
  .site-nav .links .nav-link {
    padding: 13px 4px; font-size: 13px; border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .site-nav .links .btn { margin-top: 12px; width: 100%; }
  .hero { padding-top: 56px; padding-bottom: 64px; }
  .hero-shot { border-radius: 14px; margin-top: 40px; }
  .hero-choreo-off .hero-movie { border-radius: 14px !important; margin: 10px auto 0; }
  .hero-movie-bar { padding: 20px 14px 12px; gap: 12px; }
  .section-problem, .section-spine, .section-who, .section-how, .section-pm,
  .section-grow, .section-roles, .section-ai, .section-cta, .section-contact {
    padding-top: 72px; padding-bottom: 72px;
  }
  .who-tabs { grid-template-columns: 1fr; }
  .who-tab { padding: 18px 20px; }
  .who-panel { padding: 28px 22px; }
  .problem-cards { grid-template-columns: 1fr; }
  .problem-card .txt { font-size: 21px; }
  .spine-svg { display: none; }
  .spine-glow { display: none; }
  .spine-inputs { gap: 10px; margin: 0 0 24px; }
  .spine-chip { font-size: 11px; padding: 9px 14px; }
  .spine-core { margin: 0 0 24px; }
  .context-pill { padding: 16px 26px 16px 20px; gap: 14px; }
  .context-pill .ttl { font-size: 22px; }
  .spine-outputs { grid-template-columns: 1fr 1fr; }
  .how-row, .how-row.rev { flex-direction: column; align-items: stretch; gap: 22px; padding: 22px 20px; }
  .grow-grid { grid-template-columns: 1fr; }
  .form-2col { grid-template-columns: 1fr; gap: 16px; }
  .modal { padding: 28px 22px; }
  .site-footer { gap: 10px; }
}
