/* pepito, proposition A: "It starts when the call does"
   The page is a Mac desktop seen during one meeting. The menu bar at the top is
   the site's navigation and pepito's status item at once: it records when the
   story does. UI is glass; explanations are drawn straight on the wallpaper.
   Orange means recording, and nothing else. System fonts only. */

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

:root {
  --wall: #1E2550;          /* wallpaper */
  --wall-deep: #171D42;     /* lower wallpaper, for depth only */
  --glass: rgba(246, 247, 249, 0.9);
  /* Stage windows overlap each other: WebKit drops their backdrop blur inside
     the scaled stage, so they get the opaque tint the glass shows on the wallpaper. */
  --glass-solid: #e2e4ea;
  --ink: #F3F4F8;           /* text on wallpaper */
  --ink-2: #A9B0C8;         /* secondary text on wallpaper */
  --g-ink: #1C2230;         /* text on glass */
  --g-ink-2: #5B6275;
  --rec: #FF9500;           /* recording, as in the app */
  --lvl: #34C759;           /* audio levels */
  --accent: #4B49C9;        /* menu selection, default button: the app's indigo */
  --on: #0A84FF;            /* a switch that is on, as in Control Center */
  --out: #C38CF2;           /* data that leaves the Mac, in the route map */
  --gone: #FF6B6B;          /* audio deleted by pepito, in the route map */
  --line: rgba(169, 176, 200, 0.28);

  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;

  --vh: 1vh;             /* ?vh= overrides it for tall review screenshots */
  --bar: 30px;
  --maxw: 1200px;
  --storyw: 1360px;
  --win-shadow: 0 0 0 0.5px rgba(0,0,0,0.35), 0 24px 60px rgba(6, 9, 30, 0.45);
}

html {
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  scroll-padding-top: calc(var(--bar) + 16px);
  background: var(--wall);
}
body {
  font: 17px/1.5 var(--text);
  color: var(--ink);
  background:
    radial-gradient(120% 60% at 80% 0%, #27306A 0%, transparent 60%),
    linear-gradient(180deg, var(--wall) 0%, var(--wall) 55%, var(--wall-deep) 100%);
  min-height: calc(var(--vh) * 100);
}
a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
code, kbd { font: 500 0.88em var(--mono); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--wall); padding: 8px 12px; border-radius: 6px; }
.skip:focus { top: 40px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }

/* ---------- The menu bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--bar);
  display: flex; align-items: center;
  padding: 0 10px;
  font-size: 13.5px; color: var(--g-ink);
  background: rgba(246, 247, 249, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.12);
}
.bar-nav { display: flex; align-items: center; gap: 2px; min-width: 0; }
.bar a { color: var(--g-ink); text-decoration: none; height: 22px; padding: 0 9px; border-radius: 5px; display: inline-flex; align-items: center; white-space: nowrap; }
.bar a:hover { background: rgba(0,0,0,0.08); }
.bar-app { font-weight: 700; }
.bar-spacer { flex: 1; }
.bar-status { display: flex; align-items: center; gap: 8px; }
.bar :focus-visible { outline-color: var(--accent); }
.bar-glyph { width: 16px; height: 16px; fill: currentColor; }
.clock { padding: 0 6px; white-space: nowrap; font-variant-numeric: tabular-nums; }

.status {
  position: relative;
  height: 22px; min-width: 32px; padding: 0 6px; border-radius: 5px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: none; color: var(--g-ink); cursor: default; font: inherit;
}
.status:hover, .status[aria-expanded="true"] { background: rgba(0,0,0,0.08); }
.st-idle { width: 20px; height: 16.3px; display: block; transition: opacity .25s, transform .25s; }
.st-rec { position: absolute; opacity: 0; transform: scale(.8); transition: opacity .25s, transform .25s; }

.rec-pill {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  height: 20px; padding: 0 6px; border-radius: 6px;
  background: var(--rec); color: #fff;
  font: 600 12px/1 var(--mono);
  box-shadow: 0 1px 2px rgba(0,0,0,0.25);
}
.rec-pill .levels { display: flex; gap: 2px; }
.rec-pill .levels i { width: 17px; height: 1.5px; border-radius: 1px; background: var(--lvl); transform-origin: left; transform: scaleX(var(--lv, .6)); transition: transform .12s linear; }

/* macOS's own microphone indicator */
.mic-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rec); opacity: 0; transition: opacity .3s; }

/* Recording state of the bar, set from the story */
.is-recording .st-idle { position: absolute; opacity: 0; transform: scale(.8); }
.is-recording .st-rec { position: static; opacity: 1; transform: none; }
.is-recording .status { min-width: 0; padding: 0 2px; background: none; }
.mic-on .mic-dot { opacity: 1; }

/* ---------- Menus (the app's NSMenu, Views/StatusBarMenu.swift) ---------- */
.nsmenu {
  width: 272px; padding: 5px;
  color: var(--g-ink);
  background: rgba(246, 247, 249, 0.94);
  -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px);
  border-radius: 10px;
  box-shadow: 0 0 0 0.5px rgba(0,0,0,0.3), 0 14px 36px rgba(6, 9, 30, 0.4);
  font-size: 13px; line-height: 1;
}
.mi { display: flex; align-items: center; gap: 7px; height: 24px; padding: 0 9px; border-radius: 6px; white-space: nowrap; }
.mi svg { width: 13px; height: 13px; flex: none; fill: currentColor; color: #3a3a3c; }
.mi-primary { font-weight: 700; font-size: 15px; height: 28px; }
.mi-sel { background: var(--accent); color: #fff; }
.mi-sel svg { color: #fff; }
.mi-hot { background: var(--accent); color: #fff; }
.mi-hot svg { color: #fff; }
.mi-muted, .mi-muted svg { color: rgba(60,60,67,0.42); }
.mi-time { color: rgba(60,60,67,0.6); }
.mi-cal svg { color: #a550a7; }
.mi-chev { margin-left: auto; padding-left: 18px; color: rgba(60,60,67,0.55); font-size: 11px; }
.ms { height: 1px; margin: 5px 9px; background: rgba(0,0,0,0.1); }

.rec-menu {
  position: fixed; z-index: 49; top: calc(var(--bar) + 3px); left: var(--menu-x, auto); right: auto;
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.menu-open .rec-menu { opacity: 1; transform: none; }

/* ---------- Notification ---------- */
.notif {
  position: fixed; z-index: 48; top: calc(var(--bar) + 10px); right: 12px;
  width: 340px;
  display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center;
  padding: 12px 14px;
  color: var(--g-ink);
  background: rgba(246, 247, 249, 0.9);
  -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px);
  border-radius: 18px;
  box-shadow: 0 0 0 0.5px rgba(0,0,0,0.25), 0 12px 32px rgba(6, 9, 30, 0.4);
  font-size: 13.5px; line-height: 1.3;
  opacity: 0; transform: translateX(24px); pointer-events: none;
  transition: opacity .35s, transform .35s cubic-bezier(.2,.8,.2,1);
}
.notif-title { display: flex; justify-content: space-between; gap: 8px; }
.notif-title span { color: var(--g-ink-2); font-size: 12px; }
.notif-body { color: var(--g-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif-on .notif { opacity: 1; transform: none; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 22px; border-radius: 23px;
  background: var(--ink); color: var(--wall);
  font: 600 16px var(--text); text-decoration: none; border: 0; cursor: pointer;
}
.button:hover { background: #fff; }
.button-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.button-quiet:hover { background: rgba(243,244,248,0.08); }
.brew {
  font: inherit; font-size: 15px; color: var(--ink-2);
  background: none; border: 0; cursor: pointer; padding: 6px 4px; border-radius: 6px;
}
.brew code { color: var(--ink); }
.brew:hover code { text-decoration: underline; text-underline-offset: 3px; }
.get { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.fine { color: var(--ink-2); font-size: 14.5px; margin-top: 18px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(var(--vh) * 86);
  max-width: var(--storyw); margin: 0 auto;
  padding: calc(var(--bar) + calc(var(--vh) * 18)) 40px calc(var(--vh) * 4);
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px;
  align-items: start;
}
h1 {
  font: 800 clamp(52px, 8.4vw, 124px)/0.92 var(--display);
  letter-spacing: -0.045em;
  max-width: 9.5ch;
  text-wrap: balance;
}
.lede { margin: 32px 0 34px; font-size: 21px; line-height: 1.45; max-width: 31em; color: var(--ink); }
.lede:has(+ .lede) { margin-bottom: 0; }
.lede + .lede { margin-top: 14px; font-size: 18px; color: var(--ink-2); }
.hero-menu {
  position: fixed; z-index: 45; top: calc(var(--bar) + 3px); left: var(--menu-x, auto); right: var(--menu-right, 120px);
  width: 272px;
  transition: opacity .25s, transform .25s;
}
.works-with { grid-column: 2; grid-row: 1; align-self: end; }
.works-label { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.works-with .ai-logos { display: grid; grid-template-columns: repeat(2, max-content); gap: 18px 36px; margin-top: 16px; }
.works-with .ai-logos li { font-size: 17px; color: var(--ink); }
.works-with .ai-company { grid-column: 1 / -1; }
.works-with .call-logos + .works-label { margin-top: 36px; }
.works-with .works-more { color: var(--ink-2); }
.hero-menu figcaption { margin-top: 14px; font-size: 14px; line-height: 1.45; color: var(--ink-2); padding-right: 8px; }
.hero-menu.is-closed, .past-hero .hero-menu { opacity: 0; transform: translateY(-6px); pointer-events: none; visibility: hidden; transition: opacity .25s, transform .25s, visibility 0s .25s; }

/* ---------- The story ---------- */
.story {
  position: relative;
  max-width: var(--storyw); margin: 0 auto; padding: 0 40px;
  display: grid; grid-template-columns: minmax(0, 4.5fr) minmax(0, 7.5fr); gap: 56px;
}
.steps { list-style: none; padding-left: 34px; }
.step {
  --dot: calc(var(--vh) * 34);   /* where the timestamp sits in its step */
  position: relative;
  min-height: calc(var(--vh) * 92);
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: var(--dot) 0 calc(var(--vh) * 10);
  color: var(--ink-2);
}
.step::before { /* the timeline: from this timestamp to the next; orange while recording */
  content: ""; position: absolute; left: -29px; width: 2px;
  top: calc(var(--dot) + 16px); bottom: calc(0px - var(--dot) - 16px);
  background: var(--line);
}
.step.is-rec::before { background: var(--rec); }
.step[data-scene="done"]::before { background: linear-gradient(var(--line) 70%, transparent); }
.step:last-child::before { bottom: auto; height: 0; }
.when { position: relative; font-size: 15px; color: var(--ink-2); margin-bottom: 14px; }
.when::before {
  content: ""; position: absolute; left: -35px; top: 50%; translate: 0 -50%;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--wall); box-shadow: inset 0 0 0 2px var(--ink-2);
}
.step.is-rec .when::before { box-shadow: inset 0 0 0 2px var(--rec); }
.step.is-active .when::before { background: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.step.is-rec.is-active .when::before { background: var(--rec); box-shadow: inset 0 0 0 2px var(--rec); }
.when time { font: 600 22px var(--mono); color: var(--ink); margin-right: 10px; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.step h2 {
  font: 800 clamp(34px, 3.6vw, 50px)/1.02 var(--display);
  letter-spacing: -0.035em; color: var(--ink);
  margin-bottom: 18px; text-wrap: balance;
}
.step p { max-width: 32em; }
.step > p:not(.when) { color: var(--ink); opacity: .88; }
.step .aside { margin-top: 14px; color: var(--ink-2); opacity: 1; font-size: 15.5px; }
.step code { color: var(--ink); }

.stage {
  position: sticky; top: var(--bar);
  height: calc(calc(var(--vh) * 100) - var(--bar));
  display: flex; align-items: center; justify-content: center;
  overflow: visible;
}
.desk {
  position: relative; flex: none;
  width: 620px; height: 480px;
  transform: scale(var(--k, 1)); transform-origin: center;
}

/* Glass windows */
.win {
  position: absolute;
  color: var(--g-ink);
  background: var(--glass-solid);
  border-radius: 12px; overflow: hidden;
  box-shadow: var(--win-shadow);
  font-size: 13px;
}
.titlebar { position: relative; height: 32px; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12.5px; color: var(--g-ink-2); border-bottom: 1px solid rgba(0,0,0,0.07); }
.lights { position: absolute; left: 12px; top: 11px; display: flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #d6d8de; box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.12); }

.scene-el { opacity: 0; visibility: hidden; transition: opacity .4s, transform .4s, visibility 0s .4s; }
.scene-el.on { opacity: 1; visibility: visible; transition: opacity .4s, transform .4s, visibility 0s; }

/* Call window */
.win-call { left: 20px; top: 14px; width: 410px; }
.tiles { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px; background: #2a2f45; }
.tile { position: relative; height: 98px; border-radius: 8px; background: #3a4060; display: grid; place-items: center; color: #e9ebf3; }
.tile b { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font: 600 16px var(--text); background: #575f86; }
.tile span { position: absolute; left: 8px; bottom: 6px; font-size: 11px; color: #c9cde0; }
.t1 b { background: #6a5fa8; } .t3 b { background: #4f7a8c; }
.tile.speaking { box-shadow: inset 0 0 0 2px #8fa0ff; }
.call-ended { position: absolute; inset: 8px; border-radius: 8px; background: #2a2f45; display: grid; place-items: center; color: #c9cde0; font-size: 15px; opacity: 0; transition: opacity .4s; }
.ended .call-ended { opacity: 1; }
.call-foot { display: flex; gap: 10px; align-items: center; padding: 9px 12px; font-size: 12.5px; color: var(--g-ink-2); }
.app-name { font-weight: 600; color: var(--g-ink); margin-right: auto; }
.ringing, .in-call { display: none; }
.call-ringing .ringing, .call-live .in-call { display: inline; }
.ringing::before, .in-call::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #5b8def; margin-right: 6px; vertical-align: 1px; }
.in-call::before { background: #30b35a; }
.notes-behind { transform: translate(-8px, 6px) scale(.97); opacity: .55; }


/* Notes window */
.win-notes { left: 236px; top: 76px; width: 380px; }
.md { padding: 14px 16px 18px; font: 12.5px/1.6 var(--mono); color: var(--g-ink); white-space: pre-wrap; }
.md .g, .doc .g { color: #9aa0b2; font-weight: 400; }
.caret { display: inline-block; width: 1.5px; height: 1.1em; background: var(--accent); vertical-align: -2px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }


/* Transcript, behind the minutes */
.win-srt { left: 0; top: 268px; width: 330px; z-index: 1; }
.win-srt .md { font-size: 12px; line-height: 1.5; color: var(--g-ink-2); }

/* Minutes window */
.win-minutes { left: 60px; top: 0; width: 560px; z-index: 2; }
.doc { padding: 16px 22px 22px; font-size: 13px; line-height: 1.5; }
.doc .l { opacity: 1; }
.doc .h1 { font: 800 22px/1.2 var(--display); letter-spacing: -0.02em; margin-bottom: 4px; }
.doc .meta { font-style: italic; color: var(--g-ink-2); font-size: 12.5px; margin-bottom: 10px; }
.doc .h2 { font-weight: 700; font-size: 15px; margin: 10px 0 4px; }
.doc .li { padding-left: 4px; }
.doc b { font-weight: 650; }
.writing .doc .l { animation: write .5s both; animation-delay: calc(var(--i) * 180ms); }
@keyframes write { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

/* Settings window, Recording tab, Triggers */
.win-room { left: 70px; top: 22px; width: 480px; }
.rows { padding: 8px 16px 14px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(0,0,0,0.07); }
.row p { font-weight: 500; }
.row small { color: var(--g-ink-2); font-size: 12px; }
.row:last-child { border: 0; }
.switch { width: 34px; height: 20px; border-radius: 10px; background: #c9ccd4; position: relative; flex: none; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.switch.on { background: var(--accent); }
.switch.on::after { left: 16px; }
.popup { padding: 3px 10px; border-radius: 6px; background: #fff; box-shadow: 0 0 0 0.5px rgba(0,0,0,0.18), 0 1px 1px rgba(0,0,0,0.06); font-size: 12.5px; }
.row-state { justify-content: flex-start; color: var(--g-ink-2); font-size: 12.5px; }
.dot-listen { width: 8px; height: 8px; border-radius: 50%; background: #30b35a; }

/* ---------- Sections after the story ---------- */
.section { padding: 120px 0; }
.title {
  font: 800 clamp(36px, 5vw, 68px)/0.98 var(--display);
  letter-spacing: -0.04em; text-wrap: balance;
  max-width: 14ch;
}
.intro { margin-top: 22px; font-size: 20px; line-height: 1.45; max-width: 32em; }

.recordings { padding-top: 160px; }
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { margin-top: 6px; font-size: 14px; color: var(--ink-2); padding-left: 4%; }
.shot-wide { margin: 56px -3% 0; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 56px; }
.fact h3, .redo-copy h3 { font: 700 21px/1.2 var(--display); letter-spacing: -0.015em; margin-bottom: 10px; }
.fact p { color: var(--ink-2); font-size: 16px; }
.fact p + p { margin-top: 10px; }
.fact code { color: var(--ink); }
.chip { display: inline-flex; align-items: center; margin: 0 4px 6px 0; border-radius: 9px; overflow: hidden; font-size: 12.5px; font-weight: 600; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--c); }
.chip i { font-style: normal; font-weight: 500; padding: 1px 7px; background: var(--c); color: #141a33; }
.chip { padding-right: 8px; }
.chip i + * , .chip i { margin-right: 6px; }
.c-client { --c: #7fb5f5; }
.c-project { --c: #d99be6; }
.c-decision { --c: #f0a3b4; padding-left: 8px; }

.redo { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; margin-top: 110px; }
.redo .shot { margin-left: -5%; }
.redo.is-flipped { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.redo.is-flipped .shot { order: 2; margin-left: 0; margin-right: -5%; }
.redo-copy h3 { font-size: 30px; letter-spacing: -0.03em; font-weight: 800; }
.redo-copy p { font-size: 17px; }
.redo-copy p.fine { font-size: 14.5px; }
.redo-copy ul { list-style: none; margin-top: 22px; border-top: 1px solid var(--line); }
.redo-copy li { padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 15.5px; }
kbd { color: var(--ink); }

.privacy-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 56px; align-items: start; }
.more { margin-top: 22px; }
.ledger { color: var(--g-ink); background: var(--glass); border-radius: 12px; box-shadow: var(--win-shadow); padding: 6px 18px; }
.ledger div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid rgba(0,0,0,0.08); font-size: 15px; }
.ledger div:last-child { border: 0; }
.ledger dt { font-weight: 600; }
.ledger dd { color: var(--g-ink-2); }

.mcp { padding-top: 40px; }
.mcp-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.mcp-grid > div > p { font-size: 18px; margin-top: 20px; }
.mcp-grid > div > p + p { margin-top: 12px; color: var(--ink-2); }
.ai-logos { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 28px; padding: 0; }
.ai-logos li { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; color: var(--ink-2); }
.ai-logos svg { width: 28px; height: 28px; flex: none; color: var(--ink); }

/* MCP: an AI tool's conversation, drawn as one more window on the wallpaper */
.chat { color: var(--g-ink); background: var(--glass-solid); border-radius: 12px; overflow: hidden; box-shadow: var(--win-shadow); }
.chat-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 20px; font-size: 14.5px; line-height: 1.45; }
.msg { max-width: 88%; padding: 9px 13px; border-radius: 14px; }
.msg.me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 5px; }
.msg.ai { align-self: flex-start; background: #f6f7f9; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06); border-bottom-left-radius: 5px; }
.msg.ai ul { padding-left: 20px; margin: 6px 0; }
.msg.ai p + p, .msg.ai ul + p { margin-top: 6px; }
.tool { align-self: flex-start; padding-left: 12px; border-left: 2px solid rgba(0,0,0,0.12); font-size: 12.5px; color: var(--g-ink-2); }
.tool code { font: 500 12px var(--mono); color: var(--g-ink); }

.prices { display: grid; grid-template-columns: 1fr 1fr; margin-top: 56px; border-top: 1px solid var(--line); }
.price { padding: 32px 40px 8px 0; display: flex; flex-direction: column; align-items: flex-start; }
.price + .price { padding-left: 40px; border-left: 1px solid var(--line); }
.price h3 { font: 700 22px var(--display); }
.amount { font: 800 72px/1 var(--display); letter-spacing: -0.04em; margin-top: 10px; }
.amount small { font-size: 20px; font-weight: 600; letter-spacing: 0; color: var(--ink-2); }
.terms { color: var(--ink-2); margin-top: 6px; }
.price ul { list-style: none; margin: 20px 0 28px; }
.price li { padding: 4px 0; }
.offer { margin-top: 40px; font-size: 17px; }
.code { font: 600 15px var(--mono); color: var(--ink); background: rgba(243,244,248,0.1); border: 1px dashed rgba(243,244,248,0.5); border-radius: 6px; padding: 2px 8px; cursor: pointer; }
.code:hover { background: rgba(243,244,248,0.18); }

.closing { padding: 140px 0 120px; }
.closing .title { max-width: 12ch; font-size: clamp(44px, 7vw, 104px); line-height: .94; margin-bottom: 40px; }

.foot { padding: 40px 0 56px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 12px; }
.foot nav span { color: var(--ink); margin-right: auto; }
.foot a { color: var(--ink-2); }
.foot a:hover { color: var(--ink); }

/* Review mode (?state=): one scene, alone, under the menu bar */
.solo .hero, .solo .section, .solo .foot { display: none; }
.solo .step:not(.is-active) { display: none; }
.solo .story { padding-top: var(--bar); }
.solo .step { min-height: calc(calc(var(--vh) * 100) - var(--bar)); }
.solo .step::before { bottom: 0 !important; height: auto !important; }

/* ---------- Narrower screens ---------- */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .works-with { grid-column: auto; grid-row: auto; }
}
@media (max-width: 900px) {
  :root { --bar: 28px; }
  .wrap { padding: 0 22px; }
  .bar .bar-link { display: none; }
  .bar { font-size: 13px; }
  .bar-glyph { display: none; }

  .hero { padding: calc(var(--bar) + 56px) 22px 64px; min-height: 0; gap: 40px; }
  .lede { font-size: 18px; margin: 22px 0 26px; }
  .lede + .lede { margin-top: 12px; font-size: 16px; }
  .hero-menu { position: relative; top: auto; left: auto; right: auto; z-index: 1; justify-self: start; }
  .past-hero .hero-menu { opacity: 1; visibility: visible; transform: none; }
  .hero-menu.is-closed { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }

  .story { display: flex; flex-direction: column; padding: 0; gap: 0; }
  .stage {
    order: -1; z-index: 5;
    height: calc(var(--vh) * 46); top: var(--bar);
    background: linear-gradient(180deg, var(--wall) 88%, rgba(30,37,80,0));
    padding: 10px 0 18px;
    overflow: clip;
  }
  .steps { padding: 0 22px 0 52px; }
  .step { --dot: calc(var(--vh) * 6); min-height: calc(var(--vh) * 78); }
  .step h2 { font-size: 32px; }
  .when time { font-size: 19px; }
  .rec-menu { display: none; }
  .notif { width: auto; left: 12px; }

  .section { padding: 84px 0; }
  .recordings { padding-top: 96px; }
  .shot-wide { margin: 36px -2% 0; }
  .facts, .redo, .privacy-grid, .mcp-grid { grid-template-columns: 1fr; gap: 32px; }
  .redo { margin-top: 64px; }
  .redo .shot { margin-left: -2%; }
  .redo.is-flipped { grid-template-columns: 1fr; }
  .redo.is-flipped .shot { order: 0; margin-left: -2%; margin-right: 0; }
  .ledger div { grid-template-columns: 1fr; gap: 2px; }
  .msg { max-width: 94%; }
  .prices { grid-template-columns: 1fr; }
  .price { padding: 28px 0 24px; }
  .price + .price { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .amount { font-size: 60px; }
  .foot nav span { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
}

/* While the story is tracked by scroll, the steps not on stage step back */
.tracking .step > * { transition: opacity .3s; }
.tracking .step:not(.is-active) > * { opacity: .38; }

/* ---------- Launch offer (site.js removes .promo-active when it ends) ---------- */
.promo-only { display: none; }
.promo-active .promo-only { display: revert; }
.promo-active .no-promo { display: none; }
.promo-active aside.promo-only { display: flex; }
.launch {
  margin-top: 28px; max-width: 34em;
  align-items: center; gap: 12px 20px; flex-wrap: wrap;
  padding: 14px 16px 14px 18px; border-radius: 12px;
  background: rgba(243, 244, 248, 0.07); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 15.5px; color: var(--ink-2);
}
.launch p { flex: 1 1 18em; }
.launch strong { color: var(--ink); font-weight: 650; }
.code code { font: inherit; }
.amount s { color: var(--ink-2); font-weight: 600; text-decoration-thickness: 3px; }
.price .terms .code { font-size: 13.5px; }
[data-buy-status] { margin-top: 28px; }

/* ---------- Network, step by step: the same glass as the ledger above ---------- */
.netlog { list-style: none; margin-top: 48px; color: var(--g-ink); background: var(--glass); border-radius: 12px; box-shadow: var(--win-shadow); padding: 4px 22px; }
.netlog li { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 3fr) minmax(0, 6fr); gap: 20px; padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,0.08); font-size: 15px; }
.netlog li:last-child { border: 0; }
.netlog .netlog-head { font-size: 13px; font-weight: 600; color: var(--g-ink-2); padding: 12px 0 10px; }
.net-step { font-weight: 600; }
.dest { font-weight: 600; color: #8a4b00; }
.dest.none { color: #1f7a45; }
.why { color: var(--g-ink-2); }
.netlog a { color: var(--accent); }
/* Route map: settings on the left, the map drawn on the wallpaper on the right (network-map.js) */
.nm-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 40px; margin-top: 48px; align-items: start; }
.nm-controls { display: grid; gap: 10px; }
.nm-mod {
  border: 0; min-width: 0; margin: 0; padding: 14px; border-radius: 16px;
  background: rgba(243, 244, 248, 0.07); box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color .2s;
}
.nm-mod > legend { float: left; width: 100%; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; }
.nm-mod > legend + * { clear: both; }
.nm-switch { display: flex; align-items: center; gap: 12px; cursor: pointer; position: relative; }
.nm-switch input { position: absolute; opacity: 0; width: 40px; height: 40px; margin: 0; cursor: pointer; }
.nm-knob { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.12); color: var(--ink); transition: background-color .18s; }
.nm-knob svg { width: 20px; height: 20px; fill: currentColor; }
.nm-switch input:checked + .nm-knob { background: var(--on); color: #fff; }
.nm-switch input:focus-visible + .nm-knob { outline: 2px solid #fff; outline-offset: 3px; }
.nm-switch-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.nm-switch-text strong { font-size: 15px; font-weight: 600; }
.nm-hint { font-size: 13px; color: var(--ink-2); }
.nm-seg { display: flex; gap: 4px; padding: 3px; border-radius: 11px; background: rgba(0, 0, 0, 0.22); }
.nm-seg label { flex: 1; position: relative; min-width: 0; }
.nm-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.nm-seg input + span { display: flex; align-items: center; justify-content: center; min-height: 32px; padding: 4px 6px; border-radius: 8px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); text-align: center; line-height: 1.2; }
.nm-seg input:checked + span { background: rgba(255, 255, 255, 0.14); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }
.nm-seg input:focus-visible + span { outline: 2px solid var(--on); outline-offset: 1px; }
.nm-delay { margin-top: 12px; }
.nm-mod.is-off .nm-delay { opacity: .45; }
.nm-mod.is-off .nm-delay input { cursor: default; }
.nm-list { display: grid; gap: 2px; }
.nm-list label { position: relative; }
.nm-list input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.nm-list input + span { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 10px 6px 34px; border-radius: 9px; position: relative; font-size: 14.5px; }
.nm-list input + span::before { content: ""; position: absolute; left: 10px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.nm-list b { font-weight: 500; }
.nm-list code { font: 12px var(--mono); color: var(--ink-2); white-space: nowrap; }
.nm-list label:hover span { background: rgba(255, 255, 255, 0.05); }
.nm-list input:checked + span { background: rgba(255, 255, 255, 0.1); }
.nm-list input:checked + span::before { background: var(--on); box-shadow: inset 0 0 0 4px var(--on), inset 0 0 0 8px #fff; }
.nm-list input:focus-visible + span { outline: 2px solid var(--on); outline-offset: -2px; }
.nm-route { margin: 0; min-width: 0; }
.nm-map svg { display: block; width: 100%; height: auto; overflow: visible; }
.nm-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 10px 0 0 4px; font-size: 13px; color: var(--ink-2); }
.nm-legend i { display: inline-block; width: 22px; height: 0; vertical-align: middle; margin-right: 8px; border-top: 2px solid; }
.nm-legend .k-in { border-color: var(--lvl); }
.nm-legend .k-out { border-color: var(--out); border-top-style: dashed; }
.nm-legend .k-dl { border-top-style: dotted; border-color: var(--ink-2); }
.nm-summary { margin-top: 18px; padding: 16px 20px; border-radius: 16px; background: rgba(243, 244, 248, 0.07); box-shadow: inset 0 0 0 1px var(--line); font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.nm-summary p + p { margin-top: 8px; }
.nm-summary .lead { color: var(--ink); font-size: 17px; }
.nm-summary .k-stay { color: var(--lvl); }
.nm-summary .k-out { color: var(--out); }
.nm-summary .k-gone { color: var(--gone); }
.nm-table { margin-top: 28px; }
.nm-table summary { cursor: pointer; display: inline-block; font-size: 15px; font-weight: 600; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.nm-table summary:hover { color: var(--ink); }
.nm-table .netlog { margin-top: 16px; }
/* SVG of the map */
.m-mac { fill: rgba(52, 199, 89, 0.05); stroke: rgba(52, 199, 89, 0.55); stroke-width: 1.5; }
.m-zone { font: 600 13px var(--text); fill: var(--lvl); }
.m-zone.out { fill: var(--ink-2); font-weight: 500; }
.m-node rect { fill: #2C3463; stroke: rgba(255, 255, 255, 0.14); }
.m-node.out rect { fill: rgba(195, 140, 242, 0.1); stroke: rgba(195, 140, 242, 0.65); }
.m-node.dl rect { fill: rgba(169, 176, 200, 0.06); stroke: rgba(169, 176, 200, 0.55); stroke-dasharray: 4 3; }
.m-node.unknown rect { stroke-dasharray: 4 3; }
.m-node.ghost rect { fill: none; stroke: rgba(255, 255, 255, 0.16); stroke-dasharray: 3 4; }
.m-node.ghost text { fill: rgba(169, 176, 200, 0.6); }
.m-node.rec rect { stroke: rgba(255, 149, 0, 0.8); }
.m-node .t { font: 600 13.5px var(--text); fill: var(--ink); }
.m-node .s { font: 12px var(--text); fill: var(--ink-2); }
.m-node.out .s, .m-node.dl .s { font-family: var(--mono); font-size: 11px; }
.m-dot { fill: var(--rec); }
.m-chip rect { fill: rgba(255, 255, 255, 0.08); stroke: rgba(255, 255, 255, 0.16); }
.m-chip text { font: 11px var(--mono); fill: var(--ink); }
.m-chip.gone rect { fill: none; stroke: var(--gone); stroke-dasharray: 3 3; }
.m-chip.gone text { fill: var(--gone); opacity: .7; }
.m-chip.gone line { stroke: var(--gone); stroke-width: 1.5; }
.m-node .gone-note { fill: var(--gone); }
.m-edge { fill: none; stroke-width: 2; }
.m-edge.in { stroke: rgba(52, 199, 89, 0.85); }
.m-edge.out { stroke: var(--out); stroke-dasharray: 7 5; }
.m-edge.dl { stroke: var(--ink-2); stroke-dasharray: 3 4; }
.m-head.in { fill: rgba(52, 199, 89, 0.9); }
.m-head.out { fill: var(--out); }
.m-head.dl { fill: var(--ink-2); }
.m-label { font: 11px var(--mono); }
.m-label.out { fill: var(--out); }
.m-label.dl { fill: var(--ink-2); }
.m-label.in { fill: rgba(52, 199, 89, 0.95); font-family: var(--text); }
@media (prefers-reduced-motion: no-preference) {
  .m-edge.out { animation: nm-flow .9s linear infinite; }
  .m-dot { animation: nm-blink 1.6s ease-in-out infinite; }
  .is-new { animation: nm-appear .35s ease-out both; }
  .m-chip.gone.is-new { animation: nm-vanish 1.4s ease-out both; }
}
@keyframes nm-flow { to { stroke-dashoffset: -12; } }
@keyframes nm-appear { from { opacity: 0; } }
@keyframes nm-blink { 50% { opacity: .35; } }
@keyframes nm-vanish { 0% { opacity: 1; } 40% { opacity: 1; } 100% { opacity: .55; } }
.contexts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 56px; }
.subtitle { font: 700 21px/1.2 var(--display); letter-spacing: -0.015em; margin-bottom: 10px; }
.contexts p { color: var(--ink-2); font-size: 16px; }

/* ---------- Install ---------- */
.install-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; }
.install-steps { margin: 36px 0 0; padding-left: 1.4em; font-size: 17px; max-width: 34em; }
.install-steps li { padding: 8px 0 8px 6px; }
.install-steps li::marker { color: var(--ink-2); font-weight: 700; }
.specs { color: var(--g-ink); background: var(--glass); border-radius: 12px; box-shadow: var(--win-shadow); padding: 6px 18px; }
.specs div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,0.08); font-size: 15px; }
.specs div:last-child { border: 0; }
.specs dt { font-weight: 600; }
.specs dd { color: var(--g-ink-2); }
.specs a { color: var(--accent); }

/* ---------- Next ---------- */
.priorities { list-style: none; counter-reset: priority; display: grid; gap: 10px; margin-top: 24px; padding: 0; max-width: 40em; }
.priorities li { display: grid; grid-template-columns: 28px minmax(0, 1fr); counter-increment: priority; font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.priorities li::before { content: counter(priority); font: 600 15px/1.7 var(--mono); color: var(--ink); }
.priorities strong { color: var(--ink); font-weight: 650; }
.next { list-style: none; margin-top: 44px; border-top: 1px solid var(--line); }
.next li { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.next .state { font-size: 14px; font-weight: 600; color: var(--ink-2); padding-top: 3px; }
.next .state.shipped { color: var(--lvl); }
.next .state.dropped { color: var(--ink-2); font-weight: 500; }
.next .subtitle { margin-bottom: 4px; }
.next p { color: var(--ink-2); font-size: 16px; max-width: 40em; }

/* ---------- Questions ---------- */
.faq { margin-top: 44px; border-top: 1px solid var(--line); max-width: 52em; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 32px 18px 0; font: 650 18px/1.35 var(--display); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 15px; font-weight: 400; font-size: 22px; color: var(--ink-2); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-2); font-size: 16px; max-width: 46em; }

/* ---------- Newsletter ---------- */
.letter { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-bottom: 28px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.letter > p { color: var(--ink); font-size: 15px; }
.letter form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.letter input { font: 15px var(--text); color: var(--ink); background: rgba(243,244,248,0.08); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; width: 18em; }
.letter input::placeholder { color: var(--ink-2); }
.letter .status { flex-basis: 100%; font-size: 14px; color: var(--ink-2); }
.letter .status:empty { display: none; }
.letter .status.error { color: #ff8a80; }

@media (max-width: 900px) {
  .netlog { padding: 4px 16px; }
  .nm-grid { grid-template-columns: 1fr; gap: 28px; }
  .nm-list code { display: none; }
  .netlog li { grid-template-columns: 1fr; gap: 2px; }
  .netlog .netlog-head { display: none; }
  .contexts, .install-grid { grid-template-columns: 1fr; gap: 32px; }
  .next li { grid-template-columns: 1fr; gap: 4px; }
  .letter input { width: 100%; }
  .letter form { width: 100%; }
}
