/* =========================================================================
   Precast — precast.ing
   One stylesheet, no build step. Mobile-first; light + dark themes.
   Sections: fonts · tokens · reset · base · layout · header · buttons ·
   hero · chaos animation · sections · demo player · steps ·
   mockups & devices · founder · trust · callouts · studio ·
   page heads · prose · pricing · faq · forms · changelog · footer · utils
   ========================================================================= */

/* ---------- Fonts (self-hosted Figtree, SIL OFL) ---------- */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/figtree-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/figtree-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/figtree-latin-600-normal.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  /* Brand */
  --teal: #2ec4b6;
  --navy: #0d1117;

  /* Light theme */
  --bg: #ffffff;
  --bg-soft: #f3f7f7;
  --surface: #ffffff;
  --surface-2: #edf3f3;
  --border: #d9e2e3;
  --border-strong: #b9c6c8;
  --text: #0d1117;
  --text-muted: #4b5560;
  --accent: var(--teal);
  --accent-ink: #0a6f66;          /* teal dark enough for text on light */
  --accent-soft: #dcf4f1;
  --on-accent: var(--navy);
  --focus: #0a6f66;
  --danger: #b42318;
  --wave: #b9cfd0;
  --wave-played: var(--teal);
  --chat-them: #edf3f3;
  --chat-me: #d6f0dc;
  --shadow-sm: 0 1px 2px rgb(13 17 23 / 0.06);
  --shadow: 0 1px 2px rgb(13 17 23 / 0.05), 0 12px 32px -8px rgb(13 17 23 / 0.14);

  /* Marker categories (iOS system colours, as in the app) */
  --cat-general: #8e8e93;
  --cat-audio: #ff3b30;
  --cat-speech: #ff9500;
  --cat-content: #007aff;
  --cat-post: #af52de;
  --cat-facts: #34c759;

  /* Type */
  --font: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.18vw, 1.11rem);
  --step-1: clamp(1.17rem, 1.08rem + 0.4vw, 1.38rem);
  --step-2: clamp(1.4rem, 1.2rem + 0.9vw, 1.9rem);
  --step-3: clamp(1.75rem, 1.4rem + 1.8vw, 2.75rem);
  --step-4: clamp(2.2rem, 1.55rem + 3.3vw, 4.25rem);

  /* Space & shape */
  --gutter: 1rem;
  --max: 72rem;
  --space-section: clamp(4rem, 3rem + 5vw, 7.5rem);
  --radius-sm: 0.5rem;
  --radius: 0.875rem;
  --radius-lg: 1.375rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 40em) {
  :root { --gutter: 1.5rem; }
}

/* Dark theme: follows the system unless the visitor picked light. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d1117;
    --bg-soft: #111720;
    --surface: #161c25;
    --surface-2: #1d2530;
    --border: #2a3440;
    --border-strong: #3c4856;
    --text: #e8edf2;
    --text-muted: #9ba7b3;
    --accent-ink: #4fd8ca;
    --accent-soft: rgb(46 196 182 / 0.14);
    --focus: #4fd8ca;
  --danger: #ff8a80;
    --danger: #ff8a80;
    --wave: #33414d;
    --chat-them: #1d2530;
    --chat-me: #1c3a2a;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 16px 40px -12px rgb(0 0 0 / 0.6);
    --cat-general: #98989d;
    --cat-audio: #ff453a;
    --cat-speech: #ff9f0a;
    --cat-content: #0a84ff;
    --cat-post: #bf5af2;
    --cat-facts: #30d158;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1117;
  --bg-soft: #111720;
  --surface: #161c25;
  --surface-2: #1d2530;
  --border: #2a3440;
  --border-strong: #3c4856;
  --text: #e8edf2;
  --text-muted: #9ba7b3;
  --accent-ink: #4fd8ca;
  --accent-soft: rgb(46 196 182 / 0.14);
  --focus: #4fd8ca;
  --wave: #33414d;
  --chat-them: #1d2530;
  --chat-me: #1c3a2a;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 16px 40px -12px rgb(0 0 0 / 0.6);
  --cat-general: #98989d;
  --cat-audio: #ff453a;
  --cat-speech: #ff9f0a;
  --cat-content: #0a84ff;
  --cat-post: #bf5af2;
  --cat-facts: #30d158;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
img, svg, video, audio, picture { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
p, h1, h2, h3, h4, li, dd, figcaption { overflow-wrap: break-word; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); letter-spacing: -0.035em; line-height: 1.04; }
h2 { font-size: var(--step-3); letter-spacing: -0.03em; }
h3 { font-size: var(--step-1); }
p { text-wrap: pretty; }

a { color: var(--accent-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--accent-soft); }

kbd {
  display: inline-block;
  min-width: 1.5em;
  padding: 0 0.35em;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 0.3em;
  font-family: var(--font);
  font-size: 0.8em;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

time, .tabular { font-variant-numeric: tabular-nums; }

/* ---------- Layout ---------- */
.wrap {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.wrap--narrow { --max: 44rem; }

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: #fff;
  font-weight: 600;
}
.skip-link:focus { top: 0.75rem; }

/* ---------- Header & navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-right: auto;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand img { width: 2rem; height: 2rem; border-radius: 0.5rem; }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.menu-button {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
}
.menu-button svg { width: 1.25rem; height: 1.25rem; }

/* Mobile: the nav is a popover (works without JavaScript). */
.site-nav {
  inset: 0.5rem 0.5rem auto auto;
  width: min(22rem, calc(100vw - 1rem));
  max-height: calc(100dvh - 1rem);
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}
.site-nav::backdrop { background: rgb(13 17 23 / 0.35); }
.site-nav__close {
  display: flex;
  justify-content: flex-end;
}
.site-nav__list {
  display: grid;
  gap: 0.125rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav__list > li > a {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}
.site-nav__list > li > a:hover { background: var(--surface-2); }
.site-nav__list > li > a[aria-current="page"] { color: var(--accent-ink); }
.site-nav__list .nav-login { margin-top: 0.5rem; border-top: 1px solid var(--border); padding-top: 0.5rem; }

.tag {
  display: inline-block;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.tag--live { background: var(--accent-soft); color: var(--accent-ink); }

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
}
.theme-toggle:hover { color: var(--text); background: var(--surface-2); }
.theme-toggle svg { width: 1.25rem; height: 1.25rem; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

.header-login { display: none; }

@media (max-width: 24.99em) {
  .site-header__inner, .site-header__actions { gap: 0.25rem; }
  .site-header .menu-button, .theme-toggle { width: 2.5rem; height: 2.5rem; }
  .site-header__actions .button--small { padding-inline: 0.8rem; }
}

/* The narrowest phones (320px) have no room for the theme toggle; the system setting still applies. */
@media (max-width: 21.24em) {
  .site-header .theme-toggle { display: none; }
}

@media (min-width: 62em) {
  .menu-button, .site-nav__close, .site-nav__list .nav-login { display: none; }
  .header-login { display: inline-flex; }

  /* Desktop: the same nav element, shown inline. Author styles beat the
     popover's UA styles, so it is always visible here. */
  .site-nav {
    display: block;
    position: static;
    inset: auto;
    width: auto;
    max-height: none;
    margin: 0 auto 0 1.5rem;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    overflow: visible;
  }
  .brand { margin-right: 0; }
  .site-nav__list { display: flex; align-items: center; gap: 0.25rem; }
  .site-nav__list > li > a { padding: 0.5rem 0.75rem; color: var(--text-muted); font-size: 0.97rem; }
  .site-nav__list > li > a:hover { color: var(--text); background: transparent; }
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.6rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s var(--ease);
}
.button:active { transform: translateY(1px); }
.button svg { width: 1.1em; height: 1.1em; flex: none; }

.button--primary { background: var(--accent); color: var(--on-accent); }
.button--primary:hover { background: color-mix(in srgb, var(--accent) 86%, #fff); }
.button--secondary { border-color: var(--border-strong); background: var(--surface); color: var(--text); }
.button--secondary:hover { border-color: var(--text-muted); }
.button--quiet { background: transparent; color: var(--text); }
.button--quiet:hover { background: var(--surface-2); }
.button--small { min-height: 2.5rem; padding: 0.45rem 0.95rem; font-size: 0.95rem; }
.button--large { min-height: 3.25rem; padding: 0.8rem 1.5rem; font-size: 1.06rem; }

.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  text-decoration: none;
}
.text-link::after { content: "→"; transition: transform 0.2s var(--ease); }
.text-link:hover::after { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(2.5rem, 2rem + 4vw, 5.5rem) clamp(2.5rem, 2rem + 3vw, 4.5rem);
  overflow: clip;
}
.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 2rem + 3vw, 4rem);
  align-items: center;
}
.hero__lead {
  max-width: 34rem;
  margin-block: 1.25rem 1.75rem;
  color: var(--text-muted);
  font-size: var(--step-1);
  line-height: 1.5;
}
.hero__lead strong { color: var(--text); font-weight: 600; }
.hero__note { margin-top: 1rem; color: var(--text-muted); font-size: var(--step--1); }

@media (min-width: 62em) {
  .hero__grid { grid-template-columns: 1.05fr 1fr; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  color: var(--accent-ink);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Waveform motif ---------- */
.wave-svg { width: 100%; height: auto; overflow: visible; fill: var(--wave); }
.wave-svg .bars--played { fill: var(--wave-played); }

.wave-divider {
  height: 2.5rem;
  background: var(--border-strong);
  -webkit-mask: url("/assets/img/wave.svg") repeat-x center / auto 100%;
  mask: url("/assets/img/wave.svg") repeat-x center / auto 100%;
  opacity: 0.6;
}

/* Pins on a waveform */
.pins { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.pin {
  position: absolute;
  top: -0.4rem;
  bottom: -0.4rem;
  left: var(--at);
  width: 2px;
  margin-left: -1px;
  background: var(--c, var(--cat, var(--accent)));
}
.pin::before {
  content: "";
  position: absolute;
  top: -0.35rem;
  left: 50%;
  width: 0.8rem;
  height: 0.8rem;
  border: 2px solid var(--surface);
  border-radius: 50% 50% 50% 0;
  background: var(--c, var(--cat, var(--accent)));
  transform: translateX(-50%) rotate(-45deg);
}

/* ---------- Hero animation: chat chaos → markers ---------- */
.chaos {
  position: relative;
  padding: clamp(1rem, 0.8rem + 1vw, 1.5rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.chaos__stage { display: grid; }
.chaos__stage > * { grid-area: 1 / 1; }

.chaos__label {
  margin-bottom: 0.75rem;
  color: var(--text-muted);
  font-size: var(--step--1);
  font-weight: 600;
}
.chaos__label span { color: var(--text); }

.chat { display: grid; gap: 0.55rem; align-content: start; margin: 0; padding: 0; list-style: none; }
.bubble {
  max-width: 85%;
  padding: 0.55rem 0.8rem;
  border-radius: 1.1rem 1.1rem 1.1rem 0.3rem;
  background: var(--chat-them);
  font-size: 0.95rem;
  line-height: 1.4;
}
.bubble small { display: block; color: var(--text-muted); font-size: 0.75rem; font-weight: 600; }
.bubble--me {
  justify-self: end;
  border-radius: 1.1rem 1.1rem 0.3rem 1.1rem;
  background: var(--chat-me);
}
.bubble mark { background: none; color: inherit; text-decoration: underline wavy var(--cat-audio); text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; }

.chaos__after { align-self: start; }
.chaos__wave { position: relative; margin: 1.25rem 0 1.5rem; }

.marker-list { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.marker-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 0.75rem;
  align-items: center;
  justify-items: start;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}
.marker-row time { font-weight: 600; font-size: 0.95rem; }
.marker-row .cat-pill { font-size: 0.78rem; }
.marker-row p { grid-column: 2; font-size: 0.92rem; line-height: 1.4; }

.chaos__caption { margin-top: 1rem; color: var(--text-muted); font-size: var(--step--1); }

/* Category helpers */
.cat-general { --cat: var(--cat-general); }
.cat-audio   { --cat: var(--cat-audio); }
.cat-speech  { --cat: var(--cat-speech); }
.cat-content { --cat: var(--cat-content); }
.cat-post    { --cat: var(--cat-post); }
.cat-facts   { --cat: var(--cat-facts); }

/* The animation plays once. Without motion, the final frame shows. */
.chaos__before { opacity: 0; visibility: hidden; }

@media (prefers-reduced-motion: no-preference) {
  .chaos__before { animation: chaos-before 4.4s var(--ease) both; }
  .chaos__before .bubble { animation: bubble-in 0.45s var(--ease) both; }
  .chaos__before .bubble:nth-child(1) { animation-delay: 0.2s; }
  .chaos__before .bubble:nth-child(2) { animation-delay: 0.75s; }
  .chaos__before .bubble:nth-child(3) { animation-delay: 1.3s; }
  .chaos__before .bubble:nth-child(4) { animation-delay: 1.85s; }

  .chaos__after { animation: fade-in 0.5s 3.3s var(--ease) both; }
  .chaos__after .pin { animation: pin-drop 0.5s var(--ease) both; }
  .chaos__after .pin:nth-child(1) { animation-delay: 3.5s; }
  .chaos__after .pin:nth-child(2) { animation-delay: 3.62s; }
  .chaos__after .pin:nth-child(3) { animation-delay: 3.74s; }
  .chaos__after .pin:nth-child(4) { animation-delay: 3.86s; }
  .chaos__after .marker-row { animation: row-in 0.5s var(--ease) both; }
  .chaos__after .marker-row:nth-child(1) { animation-delay: 3.7s; }
  .chaos__after .marker-row:nth-child(2) { animation-delay: 3.82s; }
  .chaos__after .marker-row:nth-child(3) { animation-delay: 3.94s; }
  .chaos__after .marker-row:nth-child(4) { animation-delay: 4.06s; }
}

@keyframes chaos-before {
  0%   { opacity: 1; visibility: visible; transform: none; filter: none; }
  68%  { opacity: 1; visibility: visible; transform: none; filter: none; }
  100% { opacity: 0; visibility: hidden; transform: translateY(1.5rem) scale(0.94); filter: blur(4px); }
}
@keyframes bubble-in {
  from { opacity: 0; transform: translateY(0.5rem) scale(0.96); }
  to   { opacity: 1; transform: none; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pin-drop {
  from { opacity: 0; transform: translateY(-1.25rem); }
  to   { opacity: 1; transform: none; }
}
@keyframes row-in {
  from { opacity: 0; transform: translateX(-0.5rem); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--space-section); }
.section--soft { background: var(--bg-soft); }
.section--tight { padding-block: calc(var(--space-section) * 0.6); }

.section-head { max-width: 42rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 1rem; color: var(--text-muted); font-size: var(--step-1); line-height: 1.5; }

.lede {
  color: var(--text-muted);
  font-size: var(--step-1);
  line-height: 1.5;
}

/* ---------- Review player (replica of the platform's guest player) ----------
   Mirrors resources/views/livewire/episode-player.blade.php in the monorepo.
   Colours are the platform's Tailwind values and stay fixed in both site
   themes, like a screenshot would. Breakpoints: 600px ("roomy"), 800px ("player"). */
.rp {
  --rp-panel: #1f2937;      /* gray-800 */
  --rp-track: #4b5563;      /* gray-600 */
  --rp-muted: #9ca3af;      /* gray-400 */
  --rp-icon: #d1d5db;       /* gray-300 */
  --rp-text: #f3f4f6;       /* gray-100 */
  --rp-ink: #374151;        /* gray-700 */
  --rp-line: #f3f4f6;       /* gray-100 */
  --rp-border: #d1d5db;     /* gray-300 */
  --rp-brand-500: #2ec4b6;
  --rp-brand-600: #0d9488;
  --rp-brand-700: #0f766e;
  --rp-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  max-width: 52rem;
  margin-inline: auto;
  overflow: visible;
  border-radius: 0.5rem;
  background: #fff;
  color: var(--rp-ink);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05), var(--shadow);
  font-size: 0.875rem;
  line-height: 1.43;
}
.rp :focus-visible { outline: 2px solid var(--rp-brand-500); outline-offset: 2px; }

/* Category colours (Tailwind 500 dot, 300 text on dark, 50/700 pill on light) */
.rk-general { --c: #9ca3af; --c-border: rgb(107 114 128 / 0.6); --c-light: #e5e7eb; --c-hover: rgb(255 255 255 / 0.1); --c-bg: #f3f4f6; --c-ink: #374151; --c-solid: #6b7280; }
.rk-audioQuality { --c: #ef4444; --c-border: rgb(239 68 68 / 0.5); --c-light: #fca5a5; --c-hover: rgb(239 68 68 / 0.1); --c-bg: #fef2f2; --c-ink: #b91c1c; --c-solid: #ef4444; }
.rk-speechDelivery { --c: #f97316; --c-border: rgb(249 115 22 / 0.5); --c-light: #fdba74; --c-hover: rgb(249 115 22 / 0.1); --c-bg: #fff7ed; --c-ink: #c2410c; --c-solid: #f97316; }
.rk-contentStructure { --c: #3b82f6; --c-border: rgb(59 130 246 / 0.5); --c-light: #93c5fd; --c-hover: rgb(59 130 246 / 0.1); --c-bg: #eff6ff; --c-ink: #1d4ed8; --c-solid: #3b82f6; }
.rk-postProduction { --c: #a855f7; --c-border: rgb(168 85 247 / 0.5); --c-light: #d8b4fe; --c-hover: rgb(168 85 247 / 0.1); --c-bg: #faf5ff; --c-ink: #7e22ce; --c-solid: #a855f7; }
.rk-factualAccuracy { --c: #22c55e; --c-border: rgb(34 197 94 / 0.5); --c-light: #86efac; --c-hover: rgb(34 197 94 / 0.1); --c-bg: #f0fdf4; --c-ink: #15803d; --c-solid: #22c55e; }

.rp__panel {
  padding: 1rem;
  border-radius: 0.5rem 0.5rem 0 0;
  background: var(--rp-panel);
  color: var(--rp-text);
}
@media (min-width: 600px) { .rp__panel { padding: 1.5rem; } }
.rp__native { width: 100%; }
.rp__fallback { margin-top: 0.75rem; color: var(--rp-muted); }

/* Progress: timestamps under the bar on a phone, beside it from 600px */
.rp__progress {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "bar bar" "cur dur";
  gap: 0.625rem 0;
}
.rp__time { font-family: var(--rp-mono); font-size: 0.75rem; color: var(--rp-muted); font-variant-numeric: tabular-nums; }
.rp__time--cur { grid-area: cur; }
.rp__time--dur { grid-area: dur; text-align: right; }
@media (min-width: 600px) {
  .rp__progress { grid-template-columns: 3rem 1fr 3rem; grid-template-areas: "cur bar dur"; align-items: center; gap: 0 0.75rem; }
  .rp__time--cur { text-align: right; }
  .rp__time--dur { text-align: left; }
}

.rp__bar {
  grid-area: bar;
  position: relative;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--rp-track);
  cursor: pointer;
  touch-action: none;
}
.rp__bar::before { content: ""; position: absolute; inset: -0.6rem 0; } /* bigger hit area */
.rp__fill { position: absolute; inset: 0 auto 0 0; width: var(--progress, 0%); border-radius: 999px; background: var(--rp-brand-500); }
.rp__thumb {
  position: absolute;
  top: 50%;
  left: var(--progress, 0%);
  z-index: 3;
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 50%;
  background: var(--rp-brand-600);
  box-shadow: 0 0 0 2px #fff, 0 1px 3px rgb(0 0 0 / 0.3);
  transform: translate(-50%, -50%);
}
.rp__ticks, .rp__dots { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.rp__tick {
  position: absolute;
  top: 50%;
  left: var(--at);
  z-index: 1;
  display: grid;
  place-items: center;
  width: 0.75rem;
  height: 1rem;
  transform: translate(-50%, -50%);
}
.rp__tick::before { content: ""; width: 2px; height: 0.75rem; border-radius: 999px; background: #f9fafb; box-shadow: 0 0 0 1px #6b7280; }
.rp__tick::after {
  content: attr(data-label);
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  background: #111827;
  color: #fff;
  font-size: 0.75rem;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.3);
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s;
}
.rp__tick:hover::after { opacity: 1; }
.rp__dot {
  position: absolute;
  top: 50%;
  left: var(--at);
  z-index: 2;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 2px var(--rp-panel);
  transform: translate(-50%, -50%);
}

/* Transport: chapters · play controls · options */
.rp__transport {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}
.rp__left { justify-self: start; position: relative; }
.rp__right { justify-self: end; position: relative; }
.rp__center { display: flex; align-items: center; gap: 0.625rem; }

.rp__ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem;
  border: 0;
  border-radius: 0.375rem;
  background: transparent;
  color: var(--rp-icon);
  font-size: 0.875rem;
  font-weight: 500;
}
.rp__ghost:hover { background: rgb(255 255 255 / 0.1); }
.rp__ghost svg { width: 1.25rem; height: 1.25rem; }
.rp__ghost .rp__wide { display: none; }
@media (min-width: 800px) {
  .rp__ghost--chapters { padding: 0.25rem 0.5rem; }
  .rp__ghost--chapters svg { width: 1rem; height: 1rem; }
  .rp__ghost .rp__wide { display: inline; }
}

.rp__skip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 7px 1rem;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.1);
  color: var(--rp-text);
  font-size: 13px;
  font-weight: 600;
}
.rp__skip:hover { background: rgb(255 255 255 / 0.2); }
.rp__skip svg { width: 23px; height: 23px; }
.rp__play {
  display: inline-grid;
  place-items: center;
  width: 51px;
  height: 51px;
  border: 0;
  border-radius: 50%;
  background: var(--rp-brand-600);
  color: #fff;
}
.rp__play:hover { background: var(--rp-brand-700); }
.rp__play svg { width: 1.75rem; height: 1.75rem; }
.rp__play .icon-pause { display: none; }
.rp__play[aria-pressed="true"] .icon-play { display: none; }
.rp__play[aria-pressed="true"] .icon-pause { display: block; }
@media (max-width: 399px) {
  .rp__transport { gap: 0.5rem; }
  .rp__center { gap: 0.4rem; }
  .rp__skip { padding-inline: 0.7rem; }
}

.rp__popover {
  position: absolute;
  top: 100%;
  z-index: 20;
  padding-top: 0.25rem;
}
.rp__left .rp__popover { left: 0; }
.rp__chapters-list {
  width: 18rem;
  max-width: calc(100vw - 3rem);
  max-height: 16rem;
  margin: 0;
  padding: 0;
  overflow: auto;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  background: #fff;
  list-style: none;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.15);
}
.rp__chapters-list button {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 0;
  background: none;
  color: var(--rp-ink);
  font-size: 0.875rem;
  text-align: left;
}
.rp__chapters-list button:hover { background: #f9fafb; }
.rp__chapters-list .t { color: var(--rp-muted); font-family: var(--rp-mono); }

/* Options: inline from 800px, behind the cog below */
.rp__cog { display: inline-flex; }
.rp__options {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 20;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 0.5rem;
  padding: 0.75rem;
  border-radius: 0.375rem;
  background: #111827;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.3), 0 0 0 1px rgb(255 255 255 / 0.1);
}
.rp__options.is-open { display: flex; }
@media (min-width: 800px) {
  .rp__cog { display: none; }
  .rp__options { position: static; display: flex; flex-direction: row; align-items: center; margin: 0; padding: 0; background: none; box-shadow: none; }
}
.rp__rate { width: 3rem; padding: 0.25rem 0.5rem; }
.rp__volume { display: flex; align-items: center; gap: 0.375rem; }
.rp__mute { padding: 0; border: 0; background: none; color: var(--rp-icon); }
.rp__mute:hover { color: #fff; }
.rp__mute svg { width: 1.25rem; height: 1.25rem; }
.rp__mute .icon-muted { display: none; }
.rp__mute[aria-pressed="true"] .icon-muted { display: block; }
.rp__mute[aria-pressed="true"] .icon-volume { display: none; }
.rp__range { width: 5rem; height: 12px; -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer; }
.rp__range::-webkit-slider-runnable-track { height: 4px; border-radius: 999px; background: rgb(255 255 255 / 0.2); }
.rp__range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 12px; height: 12px; margin-top: -4px; border-radius: 50%; background: #33ccbd; }
.rp__range::-moz-range-track { height: 4px; border-radius: 999px; background: rgb(255 255 255 / 0.2); }
.rp__range::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #33ccbd; }

/* One-tap category buttons */
.rp__quick {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.rp__cat {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  background: transparent;
  color: var(--c-light);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.15s;
}
.rp__cat:hover { background: var(--c-hover); }
.rp__cat .dot, .rp-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--c); flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .rp__cat.is-flash { animation: rp-flash 0.5s ease-out; }
}
@keyframes rp-flash { from { background: var(--c-border); } to { background: transparent; } }

/* Marker list */
.rp__list { padding: 1.5rem; }
.rp__list h4 { margin-bottom: 0.5rem; color: var(--rp-ink); font-size: 0.875rem; font-weight: 500; letter-spacing: 0; }
.rp__empty { color: #6b7280; font-size: 0.875rem; }
.rp__markers { margin: 0; padding: 0; list-style: none; }
.rp-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding-block: 0.5rem;
  border-bottom: 1px solid var(--rp-line);
}
.rp-row:last-child { border-bottom: 0; }
.rp-row__main { display: flex; flex: 1; flex-wrap: wrap; align-items: flex-start; gap: 0.5rem 0.75rem; min-width: 0; }
.rp-row__group { display: flex; align-items: center; gap: 0.75rem; height: 2.25rem; flex: none; }
.rp-row__who { flex-basis: 100%; }
@media (min-width: 800px) { .rp-row__who { flex-basis: auto; } }
.rp-time {
  width: 5rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--rp-ink);
  font-family: var(--rp-mono);
  font-size: 0.875rem;
  text-align: right;
}
.rp-time:hover { color: #111827; }
.rp-nudges { display: flex; gap: 0.375rem; }
.rp-nudge {
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--rp-border);
  border-radius: 0.375rem;
  background: #fff;
  color: #4b5563;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1rem;
}
.rp-nudge:hover { background: #f9fafb; }
.rp-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  flex: none;
  border-radius: 50%;
  background: var(--avatar, #64748b);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}
.rp-pill {
  position: relative;
  width: 13rem;
  max-width: 100%;
  flex: none;
  border-radius: 999px;
  background: var(--c-bg);
  color: var(--c-ink);
  transition: background-color 0.15s, color 0.15s;
}
.rp-pill .rp-dot { position: absolute; top: 50%; left: 0.625rem; transform: translateY(-50%); pointer-events: none; }
.rp-pill select, .rp-pill span.label {
  display: block;
  width: 100%;
  padding: 0.25rem 1.75rem 0.25rem 1.5rem;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.rp-pill span.label { cursor: default; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-pill select option { background: #fff; color: #111827; font-weight: 400; }
.rp-pill svg { position: absolute; top: 50%; right: 0.5rem; width: 1rem; height: 1rem; opacity: 0.6; transform: translateY(-50%); pointer-events: none; }
.rp-pill--edit:hover { background: var(--c-solid); color: #fff; }
.rp-pill--edit:hover .rp-dot { background: #fff; }
.rp-pill select:focus-visible { outline: none; }
.rp-pill:has(select:focus-visible) { outline: 2px solid var(--rp-brand-500); outline-offset: 2px; }

.rp-addcomment {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem;
  border: 1px solid var(--rp-border);
  border-radius: 999px;
  background: #fff;
  color: #6b7280;
}
.rp-addcomment:hover { background: #f9fafb; color: var(--rp-ink); }
.rp-addcomment svg { width: 1rem; height: 1rem; flex: none; }
.rp-addcomment span {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.75rem;
  font-weight: 500;
  transition: max-width 0.2s, margin 0.2s;
}
.rp-addcomment:hover span, .rp-addcomment:focus-visible span { max-width: 10rem; margin-left: 0.375rem; }

.rp-comment { flex-basis: 100%; padding-block: 0.25rem; }
@media (min-width: 800px) { .rp-comment { flex: 1; flex-basis: auto; min-width: 12rem; } }
.rp-comment__text {
  display: block;
  width: 100%;
  padding: 0.25rem 0.5rem;
  border: 0;
  border-radius: 0.25rem;
  background: none;
  color: var(--rp-ink);
  font-size: 0.875rem;
  text-align: left;
  white-space: pre-wrap;
}
button.rp-comment__text:hover { background: #f3f4f6; }
.rp-comment textarea {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--rp-border);
  border-radius: 0.375rem;
  background: #fff;
  color: #111827;
  font-size: 0.875rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
  resize: vertical;
}
.rp-comment textarea::placeholder { color: var(--rp-muted); }
.rp-comment textarea:focus { outline: none; border-color: var(--rp-brand-500); box-shadow: 0 0 0 1px var(--rp-brand-500); }
.rp-comment__actions { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.5rem; }
.rp-save {
  padding: 0.25rem 0.75rem;
  border: 0;
  border-radius: 0.375rem;
  background: var(--rp-brand-600);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}
.rp-save:hover { background: var(--rp-brand-700); }
.rp-cancel { padding: 0; border: 0; background: none; color: #4b5563; font-size: 0.75rem; }
.rp-cancel:hover { color: #111827; }
.rp-remove {
  display: grid;
  place-items: center;
  height: 2.25rem;
  padding: 0 0.25rem;
  border: 0;
  background: none;
  color: var(--rp-muted);
  flex: none;
}
.rp-remove svg { width: 1rem; height: 1rem; padding: 0.25rem; box-sizing: content-box; border-radius: 0.25rem; }
.rp-remove:hover svg { background: #fef2f2; color: #dc2626; }

/* After the first marker */
.demo-after {
  max-width: 52rem;
  margin: 1.25rem auto 0;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--accent-soft);
}
.demo-after p { font-size: var(--step-1); font-weight: 600; line-height: 1.35; }

.demo-after .button-row { margin-top: 1rem; }

/* The iPhone app, next to the browser player */
/* Phones: the mini phone sits beside the heading, the text runs full width below.
   From 40em: the phone spans all rows, the text stacks beside it. */
.demo-app {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  grid-template-areas: "phone title" "text text" "link link";
  gap: 0 1rem;
  align-items: center;
  max-width: 52rem;
  margin: 1.25rem auto 0;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
/* The screenshot as a bare screen: iPhone corner radius (about 14% of the width,
   written as horizontal / vertical percentages for the 640×1391 image), a hairline edge and a soft shadow. */
.demo-app__shot {
  grid-area: phone;
  width: 100%;
  height: auto;
  border-radius: 14% / 6.45%;
  box-shadow: 0 0 0 1px var(--border), var(--shadow);
}
.demo-app h3 { grid-area: title; font-size: var(--step-1); }
.demo-app p { grid-area: text; margin-top: 0.75rem; color: var(--text-muted); }
.demo-app .text-link { grid-area: link; justify-self: start; margin-top: 0.6rem; }
@media (min-width: 40em) {
  .demo-app {
    grid-template-columns: 7rem 1fr;
    grid-template-areas: "phone title" "phone text" "phone link";
    grid-template-rows: 1fr auto 1fr;
    column-gap: 1.75rem;
    padding: 1.5rem 1.75rem;
  }
  .demo-app h3 { align-self: end; }
  .demo-app p { margin-top: 0.4rem; }
  .demo-app .text-link { align-self: start; }
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  counter-increment: step;
}
.step h3 { display: flex; align-items: center; gap: 0.6rem; }
.step h3::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 0.9rem;
}
.step p { color: var(--text-muted); }
.step .mock { margin-top: auto; }

@media (min-width: 52em) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Mockups & device frames ----------
   Stylised UI drawn in HTML. Swap for real screenshots when available. */
.mock {
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  font-size: 0.88rem;
  line-height: 1.35;
}
.mock__row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.mock__row + .mock__row { margin-top: 0.4rem; }
/* Marker rows, after the web app's list: timestamp + category capsule */
.mock__markers {
  margin: 0;
  padding: 0 0.65rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  list-style: none;
}
.mock__markers li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-block: 0.55rem;
}
.mock__markers li + li { border-top: 1px solid var(--border); }
.mock__markers time { color: var(--text-muted); font-weight: 600; }
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  padding: 0.2rem 0.75rem 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--c-bg);
  color: var(--c-ink);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}
.cat-pill::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--c);
  flex: none;
}
:root[data-theme="dark"] .cat-pill { background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c-light); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cat-pill { background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c-light); }
}
.mock__row .grow { flex: 1; min-width: 0; }
.mock__row .muted { color: var(--text-muted); font-size: 0.8rem; }
.mock__file {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.5rem;
  background: var(--accent-soft);
  color: var(--accent-ink);
  flex: none;
}
.mock__file svg { width: 1.1rem; height: 1.1rem; }
.mock__bar {
  height: 0.35rem;
  margin-top: 0.35rem;
  border-radius: 999px;
  background: linear-gradient(var(--accent), var(--accent)) 0 0 / 100% 100% no-repeat, var(--surface-2);
}
.mock__avatar {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--surface-2);
  font-weight: 600;
  font-size: 0.85rem;
  flex: none;
}
.mock__button {
  display: block;
  margin-top: 0.6rem;
  padding: 0.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-align: center;
}
.mock__chip {
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.browser {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.browser__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.browser__bar i { width: 0.65rem; height: 0.65rem; border-radius: 50%; background: var(--border-strong); }
.browser__bar span {
  flex: 1;
  margin-left: 0.5rem;
  padding: 0.15rem 0.75rem;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.75rem;
  text-align: center;
}
.browser__body { padding: clamp(0.9rem, 0.6rem + 1.2vw, 1.5rem); }

.phone {
  position: relative;
  width: min(100%, 17rem);
  margin-inline: auto;
  padding: 0.55rem;
  border-radius: 2.6rem;
  background: #0d1117;
  box-shadow: var(--shadow), inset 0 0 0 1px #2a3440;
}
.phone img { width: 100%; border-radius: 2.1rem; }

/* ---------- Portrait (Paul's photo, as a circle) ---------- */
.portrait {
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  background: var(--surface-2);
}

/* About page head: text, with the portrait above it on phones and beside it from 40em */
.about-head { display: grid; gap: 1.5rem; }
.about-head__photo { order: -1; width: 6rem; }
@media (min-width: 40em) {
  .about-head { grid-template-columns: 1fr auto; align-items: center; gap: 2.5rem; }
  .about-head__photo { order: 0; width: 10rem; }
}

/* ---------- Founder note ---------- */
.founder {
  display: grid;
  gap: 2rem;
  align-items: center;
  max-width: 58rem;
  margin-inline: auto;
}
@media (min-width: 48em) { .founder { grid-template-columns: 12rem 1fr; gap: 3rem; } }
.founder__photo { width: min(100%, 8rem); }
@media (min-width: 48em) { .founder__photo { width: 12rem; } }
.founder blockquote { margin: 0; }
.founder blockquote p { font-size: var(--step-2); font-weight: 500; line-height: 1.35; letter-spacing: -0.015em; }
.founder blockquote p + p { margin-top: 1rem; }
.founder__sign { margin-top: 1.5rem; color: var(--text-muted); }
.founder__sign strong { color: var(--text); font-weight: 600; }

/* ---------- Trust ---------- */
.checklist {
  display: grid;
  gap: 0.9rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 48em) { .checklist--2 { grid-template-columns: repeat(2, 1fr); } }
.checklist li {
  position: relative;
  padding-left: 2rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%230d1117' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E") center / 0.85rem no-repeat,
    var(--accent);
}
.checklist strong { display: block; font-weight: 600; }
.checklist span { color: var(--text-muted); }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 2rem + 4vw, 5rem) clamp(1.25rem, 1rem + 3vw, 4rem);
  border-radius: calc(var(--radius-lg) * 1.4);
  background: var(--navy);
  color: #e8edf2;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 34rem; margin: 1rem auto 1.75rem; color: #b5c0cb; font-size: var(--step-1); }
.cta-band .button-row { justify-content: center; }
.cta-band .button--secondary { border-color: #3c4856; background: transparent; color: #fff; }
.cta-band .button--secondary:hover { border-color: #9ba7b3; }
.cta-band :focus-visible { outline-color: var(--teal); }
.cta-band__wave {
  position: absolute;
  inset: auto 0 0;
  height: 4rem;
  background: var(--teal);
  -webkit-mask: url("/assets/img/wave.svg") repeat-x bottom / auto 100%;
  mask: url("/assets/img/wave.svg") repeat-x bottom / auto 100%;
  opacity: 0.18;
}

/* ---------- Studio teaser ---------- */
.studio {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 62em) { .studio { grid-template-columns: 1fr 1.1fr; gap: 4rem; } }
.studio h2 { font-size: var(--step-2); }
.studio p { margin-top: 0.75rem; color: var(--text-muted); }

.timeline {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 0.75rem;
}
.timeline__ruler {
  position: relative;
  height: 1.5rem;
  margin-left: 4rem;
  border-bottom: 1px solid var(--border);
  background: repeating-linear-gradient(90deg, var(--border-strong) 0 1px, transparent 1px 10%) bottom / 100% 0.4rem no-repeat;
}
.timeline__ruler .pin { top: 0.15rem; bottom: auto; height: 0.1rem; }
.timeline__ruler .pin::after {
  content: "";
  position: absolute;
  top: 1.25rem;
  left: 0;
  width: 1px;
  height: 8.5rem;
  background: var(--cat);
  opacity: 0.45;
}
.timeline__tracks { display: grid; gap: 0.4rem; margin-top: 0.5rem; }
.track { display: grid; grid-template-columns: 4rem 1fr; align-items: center; }
.track > span { color: var(--text-muted); font-weight: 600; }
.track__lane { position: relative; height: 2.25rem; border-radius: 0.4rem; background: var(--bg-soft); }
.clip {
  position: absolute;
  top: 0.2rem;
  bottom: 0.2rem;
  left: var(--from);
  width: var(--len);
  border-radius: 0.3rem;
  background: color-mix(in srgb, var(--accent) 30%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
}
.clip--b { background: color-mix(in srgb, var(--cat-content) 25%, var(--surface)); border-color: color-mix(in srgb, var(--cat-content) 55%, transparent); }
.clip--c { background: color-mix(in srgb, var(--cat-post) 22%, var(--surface)); border-color: color-mix(in srgb, var(--cat-post) 50%, transparent); }

@media (prefers-reduced-motion: no-preference) {
  .js .timeline:not(.is-visible) .timeline__ruler .pin { opacity: 0; }
  .timeline.is-visible .timeline__ruler .pin { animation: pin-slide 0.7s var(--ease) both; }
  .timeline.is-visible .timeline__ruler .pin:nth-child(2) { animation-delay: 0.15s; }
  .timeline.is-visible .timeline__ruler .pin:nth-child(3) { animation-delay: 0.3s; }
  .timeline.is-visible .timeline__ruler .pin:nth-child(4) { animation-delay: 0.45s; }
}
@keyframes pin-slide {
  from { opacity: 0; transform: translate(-2.5rem, -1rem); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Page heads (subpages) ---------- */
.page-head {
  padding-block: clamp(3rem, 2rem + 5vw, 6rem) clamp(2rem, 1.5rem + 3vw, 3.5rem);
}
.page-head h1 { max-width: 20ch; font-size: clamp(2rem, 1.5rem + 2.8vw, 3.6rem); }
.page-head .lede { max-width: 40rem; margin-top: 1.25rem; }
.page-head .button-row { margin-top: 2rem; }
.page-head--center { text-align: center; }
.page-head--center h1, .page-head--center .lede { margin-inline: auto; }
.page-head--center .button-row { justify-content: center; }

.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 52em) {
  .split { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .split--reverse > :first-child { order: 2; }
}
.split h2 { font-size: var(--step-2); }
.split p { margin-top: 0.75rem; color: var(--text-muted); }
.split ul { margin-top: 1rem; }

.feature-grid {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 40em) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62em) { .feature-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.feature-grid > li {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.feature-grid h3 { font-size: 1.08rem; }
.feature-grid p { margin-top: 0.4rem; color: var(--text-muted); font-size: 0.97rem; }

/* Before / after scenarios */
.scenario {
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.scenario + .scenario { margin-top: 1.25rem; }
.scenarios { display: grid; gap: 1.25rem; }
.scenarios .scenario + .scenario { margin-top: 0; }
@media (min-width: 62em) {
  .scenarios { grid-template-columns: repeat(3, 1fr); }
  .scenarios .scenario { align-content: start; }
  .scenarios .scenario dl { grid-template-columns: 1fr; }
}
.scenario h3 { font-size: var(--step-2); }
.scenario dl { display: grid; gap: 1rem; }
@media (min-width: 52em) { .scenario dl { grid-template-columns: 1fr 1fr; } }
.scenario dl > div { padding: 1rem; border-radius: var(--radius); background: var(--bg-soft); }
.scenario dt { margin-bottom: 0.35rem; color: var(--text-muted); font-size: var(--step--1); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.scenario dl > div.after { background: var(--accent-soft); }
.scenario dl > div.after dt { color: var(--accent-ink); }

/* ---------- Prose ---------- */
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { margin-top: 2.5rem; font-size: var(--step-2); }
.prose h3 { margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.4rem; }

/* ---------- Pricing ---------- */
.plan-cards { display: grid; gap: 1rem; }
@media (min-width: 40em) { .plan-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72em) { .plan-cards { grid-template-columns: repeat(4, 1fr); } }
.plan {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.plan--featured { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.plan h3 { display: flex; align-items: center; gap: 0.5rem; font-size: var(--step-1); }
.plan__price { font-size: var(--step-3); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.plan__price small { color: var(--text-muted); font-size: 1rem; font-weight: 500; letter-spacing: 0; }
.plan__for { color: var(--text-muted); font-size: 0.95rem; }
.plan dl { display: grid; gap: 0.5rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.plan dl div { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.95rem; }
.plan dt { color: var(--text-muted); }
.plan dd { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.plan .button { margin-top: auto; }

.rule {
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--accent-soft);
  font-size: var(--step-1);
  font-weight: 500;
  line-height: 1.45;
}

/* ---------- FAQ ---------- */
.faq { max-width: 46rem; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
  font-size: var(--step-1);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  color: var(--accent-ink);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding-bottom: 1.25rem; color: var(--text-muted); }
.faq details > div > * + * { margin-top: 0.75rem; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 0.4rem; }
.field label, .label { font-weight: 600; font-size: 0.95rem; }
.field .hint { color: var(--text-muted); font-size: var(--step--1); }
.input, textarea.input {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
}
textarea.input { min-height: 5rem; resize: vertical; line-height: 1.45; }
.input::placeholder { color: color-mix(in srgb, var(--text-muted) 75%, transparent); }
.input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: transparent; }

.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}
.inline-form .input { flex: 1 1 14rem; width: auto; border-radius: 999px; padding-inline: 1.1rem; }
.form-note { flex-basis: 100%; color: var(--text-muted); font-size: var(--step--1); }

.output {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
  padding: 0.75rem 0.75rem 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.output code {
  flex: 1 1 16rem;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  word-break: break-all;
}

.status { min-height: 1.5em; margin-top: 0.5rem; color: var(--text-muted); font-size: var(--step--1); }
.status--error { color: var(--danger); }

/* ---------- Changelog ---------- */
.log { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.log li {
  display: grid;
  gap: 0.25rem 2rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 40em) { .log li { grid-template-columns: 9rem 1fr; } }
.log time { color: var(--text-muted); font-size: 0.95rem; }
.log h2 { font-size: 1.1rem; letter-spacing: -0.01em; }
.log p { margin-top: 0.25rem; color: var(--text-muted); }
.log .tag { margin-left: 0.4rem; vertical-align: 0.1em; }

/* ---------- App page ---------- */
.app-shots {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  align-items: flex-end;
}
.app-shots .phone { width: min(100%, 16rem); }
.shot {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.widget-shot { width: 10rem; border-radius: 1.6rem; box-shadow: var(--shadow); }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: var(--space-section);
  padding-block: 3.5rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  font-size: 0.95rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.5rem;
}
@media (min-width: 52em) { .site-footer__grid { grid-template-columns: 2fr repeat(2, 1fr); } }
.site-footer__brand { grid-column: 1 / -1; }
@media (min-width: 52em) { .site-footer__brand { grid-column: auto; } }
.site-footer__brand p { max-width: 18rem; margin-top: 0.75rem; color: var(--text-muted); }
.site-footer h2 { margin-bottom: 0.75rem; font-size: 0.82rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); }
.site-footer ul { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--accent-ink); text-decoration: underline; }
.site-footer .tag { margin-left: 0.3rem; }
.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: var(--step--1);
}
main:has(> .cta-section:last-child) + .site-footer { margin-top: 0; }

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
[hidden] { display: none !important; }
.muted { color: var(--text-muted); }
.center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
