/* Runner — rnnr.app
   The page is built from the app's own parts: its six themes, its icon's tile and lanes, and the Runner. */

/* ---------- Tokens ---------- */

:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --panel: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #4a4a4f;
  --ink-3: #86868b;
  --line: rgba(0, 0, 0, .1);
  --line-2: rgba(0, 0, 0, .06);
  --add: #1a9f4b;
  --del: #e5484d;

  --page: 1160px;
  --bleed: 1680px;
  --gutter: clamp(20px, 4vw, 40px);
  --r-xl: 44px;
  --r-lg: 30px;
  --r-md: 20px;
  --hero-h: clamp(620px, 78vh, 740px);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-2: #141416;
    --panel: #1c1c1e;
    --ink: #f5f5f7;
    --ink-2: #c3c3c9;
    --ink-3: #8e8e93;
    --line: rgba(255, 255, 255, .14);
    --line-2: rgba(255, 255, 255, .08);
    --add: #3ddc7a;
    --del: #ff6b6f;
  }
}

/* ---------- Themes: the app's own, from Palette.swift ---------- */

:root,
[data-theme="runner"] {
  --accent: #6a3df5;
  --on-accent: #ffffff;
  --energy: #16a34a;
  --tile-a: #7a4bff;
  --tile-b: #4e25d6;
  --tile-c: #2a1192;
  --lane: rgba(255, 255, 255, .22);
  --bead: #5cff7a;
  --tile-dark: 1;
  --tile-ink: #ffffff;
  --tile-ink-2: rgba(255, 255, 255, .8);
  --cta-bg: #5cff7a;
  --cta-ink: #06280f;
}

[data-theme="claude"] {
  --accent: #c15f3c;
  --on-accent: #ffffff;
  --energy: #c15f3c;
  --tile-a: #fbfaf6;
  --tile-b: #f1ece2;
  --tile-c: #ded5c4;
  --lane: rgba(122, 102, 82, .14);
  --bead: #d97757;
  --tile-dark: 0;
  --tile-ink: #2b2118;
  --tile-ink-2: rgba(43, 33, 24, .74);
  --cta-bg: #c15f3c;
  --cta-ink: #ffffff;
}

[data-theme="chatgpt"] {
  --accent: #0d0d0d;
  --on-accent: #ececec;
  --energy: #10a37f;
  --tile-a: #3c3c3c;
  --tile-b: #1e1e1e;
  --tile-c: #0b0b0b;
  --lane: rgba(255, 255, 255, .22);
  --bead: #2bd99f;
  --tile-dark: 1;
  --tile-ink: #ffffff;
  --tile-ink-2: rgba(255, 255, 255, .78);
  --cta-bg: #2bd99f;
  --cta-ink: #04241a;
}

[data-theme="track"] {
  --accent: #d0432b;
  --on-accent: #ffffff;
  --energy: #bf7f00;
  --tile-a: #ff7b55;
  --tile-b: #db4a2e;
  --tile-c: #9c2516;
  --lane: rgba(255, 255, 255, .22);
  --bead: #ffd84a;
  --tile-dark: 1;
  --tile-ink: #ffffff;
  --tile-ink-2: rgba(255, 255, 255, .84);
  --cta-bg: #ffd84a;
  --cta-ink: #3a2400;
}

[data-theme="night-run"] {
  --accent: #2d5be3;
  --on-accent: #ffffff;
  --energy: #a88a00;
  --tile-a: #3a5fe8;
  --tile-b: #1c2c86;
  --tile-c: #0a1030;
  --lane: rgba(255, 255, 255, .22);
  --bead: #e2ff3d;
  --tile-dark: 1;
  --tile-ink: #ffffff;
  --tile-ink-2: rgba(255, 255, 255, .8);
  --cta-bg: #e2ff3d;
  --cta-ink: #1c2400;
}

[data-theme="system"] {
  --accent: #007aff;
  --on-accent: #ffffff;
  --energy: #007aff;
  --tile-a: #ffffff;
  --tile-b: #efeff2;
  --tile-c: #d6d6dc;
  --lane: rgba(60, 60, 67, .14);
  --bead: #0a84ff;
  --tile-dark: 0;
  --tile-ink: #1d1d1f;
  --tile-ink-2: rgba(29, 29, 31, .72);
  --cta-bg: #007aff;
  --cta-ink: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root,
  [data-theme="runner"] { --accent: #a48bff; --on-accent: #170a3d; --energy: #5cff7a; }
  [data-theme="claude"] { --accent: #d97757; --on-accent: #2a120a; --energy: #d97757; }
  [data-theme="chatgpt"] { --accent: #ececec; --on-accent: #0d0d0d; --energy: #2bd99f; }
  [data-theme="track"] { --accent: #ff6a45; --on-accent: #2b0a04; --energy: #ffd84a; }
  [data-theme="night-run"] { --accent: #8aa4ff; --on-accent: #0a1030; --energy: #e2ff3d; }
  [data-theme="system"] { --accent: #0a84ff; --on-accent: #ffffff; --energy: #0a84ff; }
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img, canvas, svg { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -.028em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(34px, 4.7vw, 58px);
  line-height: 1.04;
  letter-spacing: -.035em;
}

code { font-family: var(--mono); font-size: .92em; }

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent);
  outline-offset: 3px;
  border-radius: 8px;
}

.ic {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap {
  max-width: calc(var(--page) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: clamp(72px, 10vw, 136px) 0 0; }
.section:last-of-type { padding-bottom: clamp(48px, 6vw, 80px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.lede {
  max-width: 60ch;
  margin-top: 20px;
  color: var(--ink-2);
  font-size: clamp(18px, 1.55vw, 21px);
  line-height: 1.45;
  letter-spacing: -.011em;
  text-wrap: pretty;
}

.head.center {
  max-width: 860px;
  margin: 0 auto clamp(36px, 5vw, 60px);
  text-align: center;
}
.head.center .lede { margin-inline: auto; }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .18s ease, filter .18s ease, background-color .18s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn:active { transform: translateY(0) scale(.985); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-cta {
  background: var(--cta-bg);
  color: var(--cta-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 12px 28px -12px color-mix(in srgb, var(--cta-bg) 85%, transparent);
}
.btn-ghost {
  background: color-mix(in srgb, var(--tile-ink) 13%, transparent);
  color: var(--tile-ink);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn-ghost .ic { margin-right: -6px; }

/* Scroll reveal: only once scripts are known to be on. */

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 76%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: var(--bleed);
  height: 60px;
  margin: 0 auto;
  padding: 0 clamp(16px, 2.2vw, 30px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.03em;
  text-decoration: none;
}
.brand img { margin: -3px 0 -3px -5px; }
.nav-links {
  display: flex;
  gap: clamp(16px, 2.4vw, 32px);
  margin: 0 auto;
  font-size: 14px;
}
.nav-links a {
  color: var(--ink-2);
  text-decoration: none;
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--ink); }

/* ---------- Tiles: the icon's tile, at the size of a section ---------- */

.tile {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: var(--bleed);
  margin: 0 auto;
  border-radius: var(--r-xl);
  color: var(--tile-ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .16) 0, rgba(255, 255, 255, .04) 9%, rgba(255, 255, 255, 0) 46%),
    radial-gradient(80% 95% at 28% 8%, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 70%),
    linear-gradient(170deg, var(--tile-a) 0%, var(--tile-b) 54%, var(--tile-c) 100%);
  box-shadow: 0 44px 80px -48px color-mix(in srgb, var(--tile-b) 70%, transparent);
  transition: color .4s ease;
}
/* Lit from above: the edge catches the light along the top. */
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), inset 0 1.5px 0 rgba(255, 255, 255, .32);
  pointer-events: none;
}
.tile .eyebrow { color: var(--bead); }
.tile .lede { color: var(--tile-ink-2); }

.track {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}
canvas.mascot { color: var(--energy); }
.tile canvas.mascot { color: var(--bead); }

/* ---------- Hero ---------- */

.hero { padding: 4px 12px 0; }
.hero-tile { height: var(--hero-h); }

.hero-mascot {
  position: absolute;
  left: var(--mx, 78%);
  top: var(--my, 50%);
  z-index: 1;
  transform: translate(-50%, -50%);
}

.hero-copy {
  --copy-left: clamp(36px, 5.2vw, 88px);
  --h1: min(calc(var(--hero-h) * .083), calc(var(--copy-w, 600px) / 10.6));
  position: absolute;
  left: var(--copy-left);
  top: 50%;
  z-index: 2;
  width: var(--copy-w, 600px);
  transform: translateY(-50%);
}
.hero-copy h1 {
  max-width: 16em;
  font-size: var(--h1);
  line-height: 1.03;
  letter-spacing: -.04em;
}
.hero-sub {
  max-width: 33em;
  margin-top: calc(var(--h1) * .36);
  color: var(--tile-ink-2);
  font-size: clamp(17px, calc(var(--h1) * .345), 21px);
  line-height: 1.42;
  letter-spacing: -.012em;
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: calc(var(--h1) * .5);
}

/* ---------- The Mac ---------- */

.showcase { padding-top: clamp(64px, 8vw, 112px); overflow-x: clip; }

.mac-stage {
  position: relative;
  max-width: 1060px;
  margin: 0 auto;
}
.mac-stage::before {
  content: "";
  position: absolute;
  inset: 12% -6% -4%;
  z-index: -1;
  background:
    radial-gradient(50% 60% at 22% 60%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 70%),
    radial-gradient(46% 60% at 80% 50%, color-mix(in srgb, var(--energy) 30%, transparent), transparent 70%);
  filter: blur(60px);
  opacity: .55;
}

.mac {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 50px 90px -40px rgba(20, 12, 60, .45), 0 18px 36px -18px rgba(20, 12, 60, .25);
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
}
.mac p { margin: 0; }

.mac-side {
  padding: 10px 10px 16px;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-2) 86%, var(--panel));
}
.mac-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
}
.lights {
  display: flex;
  gap: 8px;
  margin-right: auto;
  padding-left: 8px;
}
.lights i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .15);
}
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.glass {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 80%, transparent);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
  color: var(--ink-2);
  font-size: 15px;
}
.glass.wide {
  display: inline-flex;
  gap: 16px;
  width: auto;
  padding: 0 13px;
}
.mac-search {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  margin: 8px 2px 10px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink-3);
}

.threads { display: grid; gap: 2px; }
.threads li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 10px;
}
.threads li > div { flex: 1; min-width: 0; }
.threads b {
  display: block;
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.threads small {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--ink-3);
  font-size: 11.5px;
}
.threads .is-open { background: color-mix(in srgb, var(--accent) 13%, transparent); }
.threads .is-unread b { font-weight: 650; }
.threads .dim { color: var(--ink-3); font-size: 14px; }
.unread {
  width: 8px;
  height: 8px;
  margin-right: 3px;
  border-radius: 50%;
  background: var(--accent);
}

.mac-main {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
}
.mac-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  padding: 0 14px 0 24px;
  border-bottom: 1px solid var(--line-2);
  font-size: 14.5px;
}
.transcript {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 20px 30px 4px;
}
.bubble {
  align-self: flex-end;
  max-width: 82%;
  padding: 8px 14px;
  border-radius: 18px;
  background: var(--bg-2);
}
.say { max-width: 64ch; font-size: 13.5px; line-height: 1.5; }
.say code,
.work code {
  padding: 1px 4px;
  border-radius: 5px;
  background: var(--bg-2);
  color: var(--ink);
}
.work {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-3);
}
.work .what { min-width: 0; }
.work .what b { color: var(--ink); font-weight: 500; }
.work > .ic { flex: none; }
.work > .ic:first-child { font-size: 14px; }
.work .chev { font-size: 11px; }
.work em {
  margin-left: auto;
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}
.work .tag {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--ink-2);
  font-size: 11px;
}
.add { color: var(--add); font-style: normal; font-weight: 600; }
.del { color: var(--del); font-style: normal; font-weight: 600; }

.diff {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
}
.diff-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.diff-head span { margin-left: auto; }
.diff-body { padding: 5px 0; }
.dl {
  display: grid;
  grid-template-columns: 30px 30px 20px minmax(0, 1fr);
  line-height: 1.8;
}
.dl i {
  color: var(--ink-3);
  font-style: normal;
  text-align: right;
}
.dl b { font-weight: 400; text-align: center; }
.dl code {
  overflow: hidden;
  font-size: 1em;
  text-overflow: ellipsis;
  white-space: pre;
}
.dl.add { background: color-mix(in srgb, var(--add) 16%, transparent); color: var(--ink); font-weight: 400; }
.dl.del { background: color-mix(in srgb, var(--del) 16%, transparent); color: var(--ink); font-weight: 400; }
.dl.add b { color: var(--add); }
.dl.del b { color: var(--del); }

.status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
}
.status em { color: var(--ink-3); font-size: 12px; font-style: normal; }
.status .mascot,
.threads .mascot { margin: -9px -6px; }

.composer {
  margin: 14px 18px 18px;
  padding: 13px 14px 11px 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 10px 24px -16px rgba(0, 0, 0, .3);
}
.composer > p { margin-bottom: 14px; color: var(--ink-3); font-size: 14px; }
.chips {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--ink-2);
}
.chips span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.chips .ic { color: var(--accent); font-size: 14px; }
.send {
  display: inline-grid !important;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
}
.send .ic { color: inherit; stroke-width: 2.2; }

.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 4vw, 56px);
  max-width: 940px;
  margin: clamp(44px, 6vw, 72px) auto 0;
  text-align: center;
}
.trio h3 { font-size: 21px; }
.trio p { margin-top: 6px; color: var(--ink-2); font-size: 16px; }

/* ---------- Split sections ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(36px, 6vw, 88px);
}
.split.flip .split-copy { order: 2; }
.split-copy h2 { font-size: clamp(32px, 4vw, 50px); }

.points {
  display: grid;
  gap: 22px;
  margin-top: 34px;
}
.points li { display: flex; gap: 14px; }
.pt {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--accent) 11%, transparent);
  color: var(--accent);
  font-size: 19px;
}
.points h3 { font-size: 18px; letter-spacing: -.02em; }
.points p { margin-top: 2px; color: var(--ink-2); font-size: 16px; }

/* The model menu */

.picker {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.1fr;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 40px 70px -40px color-mix(in srgb, var(--accent) 55%, rgba(0, 0, 0, .35)), 0 12px 28px -18px rgba(0, 0, 0, .25);
  font-size: 13.5px;
  line-height: 1.35;
}
.picker-col { padding: 8px 6px; }
.picker-col + .picker-col { border-left: 1px solid var(--line-2); }
.picker h4,
.stations h4 {
  padding: 2px 8px 8px;
  color: var(--ink-3);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .01em;
}
.picker ul,
.stations ul { display: grid; gap: 2px; }
.picker li,
.stations li {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 7px 8px;
  border-radius: 10px;
}
.picker li > div,
.stations li > div { flex: 1; min-width: 0; }
.picker b,
.stations b { display: block; font-weight: 500; }
.picker small,
.stations small {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-3);
  font-size: 11.5px;
}
.picker .on,
.stations .on { background: color-mix(in srgb, var(--accent) 11%, transparent); }
.picker .tick,
.stations .tick { color: var(--accent); stroke-width: 2.2; }
.picker .lead { color: var(--accent); }
.picker .more,
.stations .more { color: var(--ink-3); }
.dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c);
}
.meter {
  display: block;
  height: 4px;
  margin-top: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--energy) var(--v), var(--line) var(--v));
}
.providers {
  margin-top: 22px;
  color: var(--ink-3);
  font-size: 14px;
  text-align: center;
  text-wrap: balance;
}
.providers i { margin: 0 3px; font-style: normal; opacity: .5; }

/* ---------- Features ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}
.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }

.card {
  --c-ink: color-mix(in srgb, var(--c) 82%, var(--ink));
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-height: 400px;
  padding: clamp(24px, 3vw, 34px);
  overflow: hidden;
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--c) 9%, var(--bg));
}
.c-violet { --c: #6a3df5; }
.c-amber { --c: #e07b00; }
.c-green { --c: #16a34a; }
.c-blue { --c: #2d5be3; }
@media (prefers-color-scheme: dark) {
  .card { --c-ink: color-mix(in srgb, var(--c) 55%, #ffffff); background: color-mix(in srgb, var(--c) 17%, var(--bg)); }
}
.kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--c-ink);
  font-size: 15px;
  font-weight: 600;
}
.card h3 {
  margin: 10px 0 12px;
  font-size: clamp(25px, 2.5vw, 32px);
  line-height: 1.1;
  letter-spacing: -.032em;
}
.card-copy > p:last-child { max-width: 48ch; color: var(--ink-2); font-size: 16.5px; line-height: 1.48; }
.card > :last-child { margin-top: auto; }

.skills { display: grid; gap: 10px; }
.skills li,
.schedule li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 15px;
  background: var(--panel);
  box-shadow: 0 0 0 1px var(--line-2), 0 12px 22px -18px rgba(0, 0, 0, .4);
  font-size: 14.5px;
}
.skills li:nth-child(2) { margin-left: 6%; }
.skills li:nth-child(3) { margin-left: 12%; }
.skills code { color: var(--c-ink); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.skills span { color: var(--ink-2); }

.schedule { display: grid; gap: 10px; }
.schedule time {
  padding: 3px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c) 14%, transparent);
  color: var(--c-ink);
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.schedule span { flex: 1; min-width: 0; font-weight: 500; }
.schedule .ic { color: var(--ink-3); }

.lanes { display: grid; gap: 18px; padding-bottom: 6px; }
.lanes li {
  display: grid;
  grid-template-columns: minmax(0, 11.2em) minmax(40px, 1fr) 4.6em;
  align-items: center;
  gap: 14px;
  font-size: 14.5px;
}
.lanes span { color: var(--ink-2); }
.lanes i {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c) 16%, transparent);
}
.lanes i::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--at);
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--c));
}
.lanes i::after {
  content: "";
  position: absolute;
  top: 50%;
  left: var(--at);
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 55%), var(--c);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 22%, transparent);
}
.lanes b { color: var(--c-ink); font-size: 13px; font-weight: 600; }

.approval {
  display: grid;
  gap: 11px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 0 0 1px var(--line-2), 0 16px 30px -22px rgba(0, 0, 0, .45);
  font-size: 13.5px;
}
.approval p { margin: 0; }
.ask {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 13px;
  border-top: 1px solid var(--line-2);
  font-weight: 500;
}
.ask > div { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--bg-2);
  font-size: 13px;
  font-weight: 500;
}
.pill.on { background: var(--c); color: #ffffff; }

/* ---------- Runner Cloud ---------- */

#cloud,
#start { padding-inline: 12px; }

.cloud-tile {
  --tile-a: #3a5fe8;
  --tile-b: #1c2c86;
  --tile-c: #0a1030;
  --tile-ink: #ffffff;
  --tile-ink-2: rgba(255, 255, 255, .8);
  --bead: #e2ff3d;
  --accent: #2d5be3;
  --on-accent: #ffffff;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(470px, .95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(40px, 6.5vw, 96px) max(clamp(24px, 6vw, 96px), calc((100% - var(--page)) / 2));
}
.cloud-points {
  display: grid;
  gap: 20px;
  margin-top: 36px;
}
.cloud-points li {
  padding-left: 18px;
  border-left: 3px solid color-mix(in srgb, var(--bead) 75%, transparent);
}
.cloud-points h3 { font-size: 18.5px; letter-spacing: -.02em; }
.cloud-points p { margin-top: 2px; color: var(--tile-ink-2); font-size: 16px; }

.cloud-art {
  --phone: 268px;
  position: relative;
  max-width: 500px;
  margin-left: auto;
  color: var(--ink);
}
.stations {
  position: absolute;
  top: 64px;
  right: calc(var(--phone) - 16px);
  z-index: 2;
  width: 218px;
  padding: 10px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .6);
  font-size: 13.5px;
  line-height: 1.35;
}
.stations li > .ic:first-child { color: var(--ink-2); font-size: 16px; }
.live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #30d158;
  box-shadow: 0 0 0 3px rgba(48, 209, 88, .25);
}

.phone {
  width: var(--phone);
  margin-left: auto;
  padding: 9px;
  border-radius: 50px;
  background: #0c0c10;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .22), 0 60px 90px -36px rgba(0, 0, 0, .75);
}
.phone-screen {
  display: flex;
  flex-direction: column;
  height: 536px;
  padding: 0 12px 12px;
  overflow: hidden;
  border-radius: 41px;
  background: var(--panel);
  font-size: 13.5px;
  line-height: 1.4;
}
.phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 10px;
  font-size: 13.5px;
}
.island {
  width: 82px;
  height: 25px;
  border-radius: 999px;
  background: #000000;
}
.bars { display: flex; align-items: flex-end; gap: 2px; }
.bars i { width: 3px; border-radius: 1px; background: var(--ink); }
.bars i:nth-child(1) { height: 5px; }
.bars i:nth-child(2) { height: 8px; }
.bars i:nth-child(3) { height: 11px; }
.phone-screen h4 {
  margin: 10px 6px 10px;
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: -.03em;
}
.phone .threads { gap: 0; }
.phone .threads li { padding: 10px 8px; border-radius: 12px; }
.phone .threads small .ic { font-size: 11px; }
.phone-composer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  margin-top: auto;
  padding: 0 8px 0 16px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--ink-3);
}

/* ---------- Integrations ---------- */

.apps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.apps li {
  position: relative;
  padding: 26px 26px 28px;
  border-radius: var(--r-md);
  background: var(--bg-2);
}
.app-glyph {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 15px;
  background: linear-gradient(165deg, color-mix(in srgb, var(--c) 78%, #ffffff), var(--c) 62%, color-mix(in srgb, var(--c) 82%, #000000));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 0 0 1px rgba(255, 255, 255, .1), 0 10px 18px -10px var(--c);
  color: #ffffff;
  font-size: 25px;
}
.apps h3 { font-size: 19px; letter-spacing: -.02em; }
.apps p { margin-top: 4px; color: var(--ink-2); font-size: 16px; }
.apps em {
  position: absolute;
  top: 28px;
  right: 24px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-3);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}

/* ---------- No bloat ---------- */

.ledger {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 8px;
  padding: 8px;
  border-radius: var(--r-lg);
  background: var(--bg-2);
}
.ledger > div {
  padding: 24px 24px 26px;
  border-radius: 22px;
}
.ledger > div:first-child {
  background: var(--panel);
  box-shadow: 0 0 0 1px var(--line-2), 0 14px 30px -24px rgba(0, 0, 0, .4);
}
.ledger h4 {
  margin-bottom: 16px;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 600;
}
.ledger ul { display: grid; gap: 13px; }
.ledger li {
  display: flex;
  gap: 10px;
  font-size: 15.5px;
  line-height: 1.38;
}
.ledger .ic { margin-top: 2px; color: var(--energy); stroke-width: 2.3; }
.ledger .out .ic { color: var(--accent); }
.ledger .out li { color: var(--ink-2); font-weight: 500; }

/* ---------- Themes and the Runner ---------- */

.themes {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  max-width: 820px;
  margin: 0 auto;
}
.theme {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 12px 4px 12px;
  border: 0;
  border-radius: 24px;
  background: transparent;
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease, color .2s ease;
}
.theme img { width: 84px; height: 84px; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.theme:hover img { transform: translateY(-3px) scale(1.04); }
.theme[aria-pressed="true"] {
  background: var(--bg-2);
  box-shadow: inset 0 0 0 2px var(--accent);
  color: var(--ink);
}

.meet {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  max-width: 980px;
  margin: 28px auto 0;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--bg-2);
}
.meet-stage {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  background:
    radial-gradient(90% 90% at 25% 5%, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0) 70%),
    linear-gradient(170deg, var(--tile-a) 0%, var(--tile-b) 56%, var(--tile-c) 100%);
  color: var(--tile-ink);
}
/* The lane the Runner stands on. */
.meet-stage::before {
  content: "";
  position: absolute;
  top: calc(50% + 62px);
  right: 0;
  left: 0;
  height: 18px;
  background: var(--lane);
}
.meet-stage .mascot {
  position: absolute;
  top: calc(50% - 22px);
  left: 50%;
  color: var(--bead);
  transform: translate(-50%, -50%);
}
.meet-status {
  position: absolute;
  right: 0;
  bottom: 22px;
  left: 0;
  color: var(--tile-ink-2);
  font-size: 14.5px;
  font-weight: 500;
  text-align: center;
}
.meet-copy { padding: clamp(28px, 4vw, 44px); align-self: center; }
.meet-copy h3 { font-size: clamp(26px, 2.6vw, 32px); letter-spacing: -.032em; }
.meet-copy p { margin-top: 10px; color: var(--ink-2); font-size: 17px; }
.moods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.moods button {
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.moods button:hover { border-color: var(--accent); }
.moods button[aria-pressed="true"] {
  border-color: transparent;
  background: var(--accent);
  color: var(--on-accent);
}

/* ---------- Start ---------- */

.start-tile {
  padding: clamp(60px, 8vw, 104px) 24px clamp(150px, 15vw, 190px);
  text-align: center;
}
.start-copy { position: relative; z-index: 2; }
.start-copy img {
  width: 132px;
  height: 132px;
  margin: 0 auto 6px;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .28));
}
.start-copy h2 { font-size: clamp(42px, 6.4vw, 78px); }
.start-copy .lede { margin-inline: auto; max-width: 46ch; }
.start-copy .hero-actions { justify-content: center; margin-top: 34px; }
.fine {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 22px;
  color: var(--tile-ink-2);
  font-size: 14px;
}
.fine .ic:not(:first-child) { margin-left: 10px; }

/* ---------- Footer ---------- */

.footer {
  padding: 36px 0 56px;
  color: var(--ink-3);
  font-size: 13.5px;
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 24px;
}
.footer-links a { color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.legal { grid-column: 1 / -1; line-height: 1.6; }

/* ---------- Narrower ---------- */

@media (max-width: 1079px) {
  .hero-tile {
    --band-h: clamp(240px, 54vw, 400px);
    height: auto;
    padding: clamp(48px, 8vw, 76px) 22px calc(var(--band-h) + 4px);
    text-align: center;
  }
  .hero-tile .track { top: auto; height: var(--band-h); }
  .hero-copy {
    --h1: clamp(36px, 8.2vw, 62px);
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    max-width: 660px;
    margin: 0 auto;
    transform: none;
  }
  .hero-copy h1,
  .hero-sub { margin-inline: auto; }
  .hero-actions { justify-content: center; }

  .cloud-tile { grid-template-columns: minmax(0, 1fr); }
  .cloud-art { width: 100%; max-width: 472px; margin: 0 auto; }
}

@media (max-width: 940px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split.flip .split-copy { order: 0; }
  .span-7,
  .span-5 { grid-column: span 12; }
  .card { min-height: 0; }
  .apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mac { grid-template-columns: minmax(0, 1fr); }
  .mac-side { display: none; }
  .mac-title { padding-left: 18px; }
  .mac-title::before {
    content: "";
    flex: none;
    width: 52px;
    height: 12px;
    margin-right: 14px;
    border-radius: 999px;
    background:
      radial-gradient(circle at 6px 6px, #ff5f57 5.5px, transparent 6px),
      radial-gradient(circle at 26px 6px, #febc2e 5.5px, transparent 6px),
      radial-gradient(circle at 46px 6px, #28c840 5.5px, transparent 6px);
  }
  .mac-title b { margin-right: auto; }
}

@media (max-width: 760px) {
  :root { --r-xl: 32px; --r-lg: 26px; }
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .hero { padding-inline: 8px; }
  #cloud,
  #start { padding-inline: 8px; }
  .btn { height: 50px; padding: 0 22px; font-size: 16px; }
  .btn-sm { height: 34px; padding: 0 14px; font-size: 14px; }

  .transcript { padding: 16px 16px 2px; }
  .composer { margin: 12px 12px 14px; }
  .chips { gap: 12px; }
  .chips span:nth-child(3),
  .chips span:nth-child(4) { display: none; }
  .work.agent .tag { display: none; }
  .trio { grid-template-columns: minmax(0, 1fr); gap: 20px; }

  .picker { grid-template-columns: minmax(0, 1fr); }
  .picker-col + .picker-col { border-top: 1px solid var(--line-2); border-left: 0; }
  .skills li:nth-child(n) { margin-left: 0; }
  .skills li { flex-direction: column; align-items: flex-start; gap: 2px; }
  .lanes li { grid-template-columns: minmax(0, 1fr) 4.6em; }
  .lanes span { grid-column: 1 / -1; }

  .apps { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ledger { grid-template-columns: minmax(0, 1fr); }
  .themes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .theme img { width: 76px; height: 76px; }
  .meet { grid-template-columns: minmax(0, 1fr); }
  .meet-stage { min-height: 300px; }

  .stations { position: relative; top: auto; right: auto; width: auto; max-width: 320px; margin: 0 auto 18px; }
  .phone { margin: 0 auto; }

  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-links { justify-content: flex-start; }
}

/* ---------- Less motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn,
  .theme,
  .theme img { transition: none; }
}
