/* Plotweave landing v3.
   Tokens live in tokens.css (load it first). Rules from the design system:
   sentence case, no drop shadows (depth comes from surface steps, hairlines and soft glows),
   glass only on overlays over media, at most one primary button per view. */

:root {
  --gutter: 40px;
  --nav-h: 64px;
  --section-y: 120px;
}

@media (max-width: 1024px) { :root { --gutter: 32px; } }
@media (max-width: 768px) { :root { --gutter: 20px; --nav-h: 60px; --section-y: 88px; } }
@media (max-width: 375px) { :root { --gutter: 16px; } }

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-width: 320px;
  background: var(--pw-bg-ink);
  color: var(--pw-text);
  font-family: var(--pw-font-ui);
  font-size: var(--pw-body-size);
  line-height: var(--pw-body-lh);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--pw-r-pill);
  background: var(--pw-text);
  color: var(--pw-text-on-light);
  font-weight: 500;
}
.skip-link:focus { top: 12px; }

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-s { width: 16px; height: 16px; }
.icon-fill { fill: currentColor; stroke: none; }

/* Layout */
.container {
  width: 100%;
  max-width: calc(1200px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

/* Type */
h1, h2, h3, .display-title, .hero-title {
  font-family: var(--pw-font-display);
  font-weight: 600;
  text-wrap: balance;
}

.hero-title {
  font-size: var(--pw-hero-size);
  line-height: var(--pw-hero-lh);
  letter-spacing: var(--pw-hero-track);
}

.display-title {
  font-size: var(--pw-display-size);
  line-height: var(--pw-display-lh);
  letter-spacing: var(--pw-display-track);
}

h2 {
  font-size: var(--pw-h2-size);
  line-height: var(--pw-h2-lh);
  letter-spacing: var(--pw-h2-track);
}

.body-l { font-size: var(--pw-body-l-size); line-height: var(--pw-body-l-lh); }
.muted { color: var(--pw-text-muted); }
.section-sub { margin-top: 8px; color: var(--pw-text-muted); text-wrap: pretty; }

.text-link {
  color: var(--pw-text-muted);
  font-size: 14px;
  line-height: 20px;
  transition: color var(--pw-dur) var(--pw-ease);
}
.text-link:hover { color: var(--pw-text); }

/* Buttons: pill, verbs, no arrows. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 42px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--pw-r-pill);
  font-family: var(--pw-font-ui);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--pw-dur) var(--pw-ease), border-color var(--pw-dur) var(--pw-ease), color var(--pw-dur) var(--pw-ease);
}
.btn-s { height: 30px; padding: 0 14px; font-size: 13px; gap: 8px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--pw-text); color: var(--pw-text-on-light); }
.btn-primary:hover { background: #FFFFFF; }

.btn-secondary {
  background: rgb(255 255 255 / 0.05);
  border-color: var(--pw-line-strong);
  color: var(--pw-text);
}
.btn-secondary:hover { background: rgb(255 255 255 / 0.1); }

.btn-ghost { background: transparent; color: var(--pw-text); }
.btn-ghost:hover { background: rgb(255 255 255 / 0.06); }

span.btn { cursor: default; }

/* Glass: overlays on media only. */
.glass {
  background: var(--pw-glass-bg);
  -webkit-backdrop-filter: blur(var(--pw-glass-blur));
  backdrop-filter: blur(var(--pw-glass-blur));
  border: 1px solid var(--pw-glass-border);
}

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color var(--pw-dur) var(--pw-ease), border-color var(--pw-dur) var(--pw-ease);
}
.site-nav.is-scrolled,
.site-nav.is-open {
  background: var(--pw-glass-bg);
  -webkit-backdrop-filter: blur(var(--pw-glass-blur));
  backdrop-filter: blur(var(--pw-glass-blur));
  border-bottom-color: var(--pw-hairline);
}

.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  height: var(--nav-h);
  padding-inline: 40px;
}

.wordmark {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--pw-font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.wordmark-mark { display: grid; gap: 5px; width: 24px; }
.wordmark-mark::before,
.wordmark-mark::after { content: ""; height: 3px; border-radius: 2px; background: var(--pw-text); }
.wordmark-mark::after { background: var(--pw-local); }

.nav-links { display: flex; gap: 32px; font-size: 14px; color: var(--pw-text-muted); }
.nav-links a { transition: color var(--pw-dur) var(--pw-ease); }
.nav-links a:hover { color: var(--pw-text); }

.nav-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }

.nav-menu-btn {
  display: none;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--pw-line-strong);
  border-radius: var(--pw-r-pill);
  background: transparent;
  cursor: pointer;
}
.nav-menu-btn .icon-close { display: none; }
.nav-menu-btn[aria-expanded="true"] .icon-open { display: none; }
.nav-menu-btn[aria-expanded="true"] .icon-close { display: block; }

.nav-panel { padding: 4px var(--gutter) 24px; }
.nav-panel nav { display: grid; margin-bottom: 16px; }
.nav-panel nav a { padding: 14px 0; border-bottom: 1px solid var(--pw-line); font-size: 17px; }
.nav-panel .btn { width: 100%; }

/* Hero */
.hero { padding-top: 72px; }
.hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; }

.announce {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  padding: 3px 14px 3px 4px;
  border: 1px solid var(--pw-line);
  border-radius: var(--pw-r-pill);
  background: var(--pw-bg-velvet);
  color: var(--pw-text-muted);
  font-size: 13px;
  line-height: 18px;
  transition: border-color var(--pw-dur) var(--pw-ease);
}
.announce:hover { border-color: var(--pw-line-strong); }
.announce-tag {
  padding: 2px 9px;
  border-radius: var(--pw-r-pill);
  background: var(--pw-local-tint);
  color: var(--pw-local);
  font-weight: 500;
}

.hero-title { margin-top: 26px; }
.hero-sub { max-width: 620px; margin-top: 16px; color: var(--pw-text-muted); text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.hero-actions .icon-s { width: 14px; height: 14px; }
.fine-print { margin-top: 22px; color: var(--pw-text-faint); font-size: 13px; line-height: 18px; }

/* Hero stage: media frame with glass overlays (real HTML, not a screenshot). */
.stage { position: relative; isolation: isolate; margin-top: 80px; }

.stage-glow {
  position: absolute;
  z-index: -1;
  top: 10%;
  bottom: -160px;
  left: calc(-1 * var(--gutter));
  right: calc(-1 * var(--gutter));
  background: radial-gradient(50% 50% at 50% 55%, rgb(110 84 180 / 0.2), rgb(110 84 180 / 0.06) 55%, transparent 100%);
  pointer-events: none;
}

.stage-media {
  position: relative;
  aspect-ratio: 1200 / 640;
  overflow: hidden;
  border: 1px solid var(--pw-hairline);
  border-radius: var(--pw-r-media);
  background: var(--pw-bg-velvet);
}
.stage-media picture,
.stage-media img,
.stage-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
}

.stage-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(15 13 20 / 0.28) 0%, rgb(15 13 20 / 0) 22%, rgb(15 13 20 / 0) 48%, rgb(15 13 20 / 0.78) 80%, rgb(15 13 20 / 0.96) 100%);
}

.status-pill {
  position: absolute;
  top: 24px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: var(--pw-r-pill);
  color: var(--pw-text-muted);
  font-size: 13px;
  line-height: 18px;
}
.status-pill strong { color: var(--pw-text); font-weight: 500; }
.dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--pw-local); }

.timecode {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: var(--pw-r-pill);
  color: var(--pw-text);
  font-family: var(--pw-font-mono);
  font-size: var(--pw-small-size);
  line-height: var(--pw-small-lh);
}

.composer {
  position: absolute;
  left: 50%;
  bottom: 32px;
  width: min(760px, calc(100% - 48px));
  transform: translateX(-50%);
  padding: 20px 14px 14px 22px;
  border-radius: var(--pw-r-media);
}
.composer-text { padding-right: 8px; font-size: 19px; line-height: 28px; }
.composer-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: var(--pw-r-pill);
  background: var(--pw-bg-raised);
  color: var(--pw-text-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}
.composer-btn { flex: none; }

/* Reel */
.reel { padding-top: 160px; }
.section-head.split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-head .text-link { flex: none; padding-bottom: 2px; }

.reel-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.reel-poster {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--pw-hairline);
  border-radius: var(--pw-r-panel);
  background: var(--pw-bg-velvet);
  cursor: pointer;
}
.reel-poster picture,
.reel-poster img { width: 100%; height: 100%; object-fit: cover; }
.reel-poster img { transition: transform 600ms var(--pw-ease); }
.reel-poster:hover img { transform: scale(1.03); }
.reel-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(15 13 20 / 0) 62%, rgb(15 13 20 / 0.6) 100%);
  pointer-events: none;
}

.play-btn {
  position: absolute;
  z-index: 1;
  left: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--pw-text);
  transition: background-color var(--pw-dur) var(--pw-ease);
}
.play-btn .icon { width: 14px; height: 14px; margin-left: 2px; }
.reel-poster:hover .play-btn { background: rgb(24 21 31 / 0.9); }

.reel-title { margin-top: 12px; font-family: var(--pw-font-ui); font-size: 15px; font-weight: 500; line-height: 22px; letter-spacing: 0; }
.reel-meta { margin-top: 8px; color: var(--pw-text-muted); font-size: var(--pw-small-size); line-height: var(--pw-small-lh); }

/* Automation */
.automation-grid {
  display: grid;
  grid-template-columns: minmax(0, 500px) minmax(0, 604px);
  justify-content: space-between;
  align-items: center;
  gap: 48px;
}
.automation-copy h2 { max-width: 440px; text-wrap: wrap; }
.automation-copy .body-l { margin-top: 24px; }

.points { display: grid; gap: 20px; margin-top: 40px; }
.points li { padding-left: 16px; border-left: 1px solid var(--pw-line-strong); }
.points h3 { font-family: var(--pw-font-ui); font-size: 15px; font-weight: 500; line-height: 20px; letter-spacing: 0; }
.points p { margin-top: 4px; color: var(--pw-text-muted); font-size: 14px; line-height: 20px; }

.recipe-card {
  overflow: hidden;
  border: 1px solid var(--pw-hairline);
  border-radius: var(--pw-r-media);
  background: var(--pw-bg-velvet);
}
.recipe-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 18px 24px;
  border-bottom: 1px solid var(--pw-line);
}
.recipe-kicker { color: var(--pw-text-muted); font-size: var(--pw-small-size); line-height: var(--pw-small-lh); }
.recipe-name { margin-top: 4px; font-family: var(--pw-font-display); font-size: var(--pw-app-title-size); font-weight: 600; line-height: var(--pw-app-title-lh); letter-spacing: -0.01em; }

.schedule-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px 0 10px;
  border-radius: var(--pw-r-pill);
  background: var(--pw-bg-raised);
  color: var(--pw-text-muted);
  font-size: 13px;
  white-space: nowrap;
}

.recipe-step {
  display: grid;
  grid-template-columns: 20px 84px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 14px;
  min-height: 47px;
  padding: 8px 24px;
  border-bottom: 1px solid var(--pw-line);
}
.recipe-step > .icon:first-child { color: var(--pw-text); }
.step-name { font-size: 15px; font-weight: 500; line-height: 20px; }
.step-detail { color: var(--pw-text-muted); font-size: 14px; line-height: 20px; }
.step-chevron { color: var(--pw-text-muted); }
.recipe-step.is-review > .icon:first-child { color: var(--pw-keys); }
.wait-pill {
  padding: 2px 8px;
  border-radius: var(--pw-r-pill);
  background: var(--pw-keys-tint);
  color: var(--pw-keys);
  font-size: var(--pw-small-size);
  font-weight: 500;
  line-height: var(--pw-small-lh);
  white-space: nowrap;
}

.recipe-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px 16px 24px;
  background: rgb(255 255 255 / 0.015);
  color: var(--pw-text-muted);
  font-size: 13px;
  line-height: 18px;
}

/* Ownership band */
.band { background: var(--pw-bg-velvet); }
.ownership { padding-block: 104px var(--section-y); }
.own-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 56px; }
.own-col { padding-top: 24px; border-top: 1px solid var(--pw-line-strong); }
.own-col .icon { color: var(--pw-text); }
.own-col .icon.is-local { color: var(--pw-local); }
.own-col .icon.is-keys { color: var(--pw-keys); }
.own-col h3 { margin-top: 18px; font-size: 22px; line-height: 28px; letter-spacing: -0.01em; }
.own-col p { margin-top: 10px; color: var(--pw-text-muted); font-size: 15px; line-height: 26px; }

/* Pricing */
.pricing-head { max-width: 640px; margin-inline: auto; text-align: center; }
.pricing-head .section-sub { max-width: 560px; margin: 12px auto 0; }

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 880px;
  margin: 56px auto 0;
}
.price-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid rgb(255 255 255 / 0.06);
  border-radius: var(--pw-r-media);
  background: var(--pw-bg-velvet);
}
.price-card.is-featured { border-color: rgb(255 255 255 / 0.14); background: var(--pw-bg-raised); }
.price-card h3 { font-size: 22px; line-height: 28px; letter-spacing: -0.01em; }
.price-for { margin-top: 2px; color: var(--pw-text-muted); font-size: 14px; line-height: 20px; }
.price { display: flex; align-items: baseline; gap: 12px; margin-top: 32px; }
.price-amount { font-family: var(--pw-font-display); font-size: 64px; font-weight: 600; line-height: 64px; letter-spacing: -0.02em; }
.price-term { color: var(--pw-text-muted); font-size: 14px; }
.checks { display: grid; flex: 1; align-content: start; gap: 12px; margin-top: 28px; }
.checks li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 24px; }
.checks .icon { margin-top: 4px; color: var(--pw-text-muted); }
.is-featured .checks .icon { color: var(--pw-local); }
.price-card .btn { margin-top: 28px; }
.price-note { margin-top: 56px; color: var(--pw-text-muted); font-size: 13px; line-height: 20px; text-align: center; }

/* FAQ */
.faq { padding-top: 40px; }
.faq-wrap { max-width: calc(800px + 2 * var(--gutter)); }
.faq-list { margin-top: 24px; }
.faq-item { border-top: 1px solid var(--pw-line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 23px 0;
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { font-size: 22px; line-height: 28px; letter-spacing: -0.01em; }
.faq-item .icon { color: var(--pw-text-muted); }
.faq-item .faq-icon-open { display: none; }
.faq-item[open] .faq-icon-open { display: block; }
.faq-item[open] .faq-icon-closed { display: none; }
.faq-item summary:hover .icon { color: var(--pw-text); }
.faq-a { max-width: 700px; margin-top: -8px; padding-bottom: 24px; color: var(--pw-text-muted); font-size: 16px; line-height: 26px; }

/* Closing call to action */
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 128px var(--section-y);
  text-align: center;
}
.cta::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(52% 40% at 50% 52%, rgb(130 70 160 / 0.24), rgb(130 70 160 / 0.08) 55%, rgb(130 70 160 / 0) 100%);
  pointer-events: none;
}
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta-sub { max-width: 520px; margin-top: 20px; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; }

/* Support band (required, above the footer) */
.support { padding-block: 56px 40px; }
.support-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 24px 24px 32px;
  border: 1px solid var(--pw-hairline);
  border-radius: var(--pw-r-media);
  background: var(--pw-bg-velvet);
}
.support-icon { width: 22px; height: 22px; color: var(--pw-keys); }
.support-copy { flex: 1; min-width: 0; }
.support-title { font-family: var(--pw-font-display); font-size: 20px; font-weight: 600; line-height: 26px; letter-spacing: -0.01em; }
.support-line { margin-top: 4px; color: var(--pw-text-muted); font-size: 15px; line-height: 22px; }

/* Footer */
.site-footer { border-top: 1px solid var(--pw-line); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  min-height: 96px;
  padding-block: 24px;
}
.footer-wordmark { font-family: var(--pw-font-display); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--pw-text-muted); font-size: 13px; line-height: 20px; }
.footer-links a { transition: color var(--pw-dur) var(--pw-ease); }
.footer-links a:hover,
.footer-links .footer-support { color: var(--pw-text); }

/* Player modal */
.player {
  width: min(960px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--pw-glass-border);
  border-radius: var(--pw-r-media);
  background: var(--pw-bg-velvet);
  color: var(--pw-text);
}
.player[data-orientation="portrait"] { width: min(400px, calc(100vw - 32px)); }
.player::backdrop { background: rgb(8 7 12 / 0.8); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.player-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 12px 12px 20px; }
.player-title { font-family: var(--pw-font-display); font-size: 18px; font-weight: 600; line-height: 24px; }
.player-meta { color: var(--pw-text-muted); font-size: var(--pw-small-size); line-height: var(--pw-small-lh); }
.player-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--pw-line-strong);
  border-radius: var(--pw-r-pill);
  background: transparent;
  cursor: pointer;
}
.player-close:hover { background: var(--pw-bg-hover); }
.player-media {
  position: relative;
  aspect-ratio: var(--player-aspect, 16 / 9);
  max-height: calc(100dvh - 120px);
  overflow: hidden;
  background: #000;
}
.player-media picture,
.player-media img,
.player-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player-media video { object-fit: contain; background: #000; }
.player-soon {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 14px 16px;
  border-radius: var(--pw-r-panel);
  color: var(--pw-text-muted);
  font-size: 14px;
  line-height: 20px;
}
.player-soon-title { color: var(--pw-text); font-weight: 500; }

/* Inner pages: compare, credits */
.page-hero { padding-block: 72px 56px; }
.page-hero .hero-title { margin-top: 0; font-size: var(--pw-display-size); line-height: var(--pw-display-lh); letter-spacing: var(--pw-display-track); }
.page-hero .lede { max-width: 720px; margin-top: 20px; color: var(--pw-text-muted); text-wrap: pretty; }
.page-hero .hero-actions { justify-content: flex-start; }
.page-meta { margin-top: 20px; color: var(--pw-text-faint); font-size: 13px; line-height: 20px; }
.crumbs { margin-bottom: 24px; color: var(--pw-text-muted); font-size: 14px; }
.crumbs a:hover { color: var(--pw-text); }

.prose-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  align-items: start;
  gap: 48px;
  padding-bottom: 96px;
}
.prose { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; min-width: 0; }
.prose > section { min-width: 0; }
.prose h2 { font-size: 30px; line-height: 36px; letter-spacing: -0.01em; }
.prose p { margin-top: 14px; color: var(--pw-text-muted); text-wrap: pretty; }
.prose ul.ticks { display: grid; gap: 12px; margin-top: 18px; }
.prose ul.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.prose ul.ticks .icon { margin-top: 3px; color: var(--pw-local); }
.prose a { color: var(--pw-text); text-decoration: underline; text-decoration-color: var(--pw-line-strong); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--pw-text); }

.compare-table-wrap { margin-top: 20px; overflow-x: auto; border: 1px solid var(--pw-hairline); border-radius: var(--pw-r-panel); }
.compare-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.compare-table th,
.compare-table td { padding: 14px 16px; border-bottom: 1px solid var(--pw-line); text-align: left; vertical-align: top; }
.compare-table tr:last-child th,
.compare-table tr:last-child td { border-bottom: 0; }
.compare-table thead th { background: var(--pw-bg-velvet); color: var(--pw-text-muted); font-weight: 500; }
.compare-table tbody th { width: 26%; font-weight: 500; }
.compare-table td { color: var(--pw-text-muted); }
.compare-table td.is-plotweave { color: var(--pw-text); }

.side-card {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  padding: 28px;
  border: 1px solid var(--pw-hairline);
  border-radius: var(--pw-r-media);
  background: var(--pw-bg-velvet);
}
.side-card h2 { font-size: 22px; line-height: 28px; letter-spacing: -0.01em; }
.side-card .side-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--pw-line); }
.side-card .side-row:first-of-type { margin-top: 20px; }
.side-card .side-row strong { font-weight: 500; white-space: nowrap; }
.side-card .side-row span { text-align: right; }
.side-card .side-row span { color: var(--pw-text-muted); font-size: 14px; }
.side-card .btn { width: 100%; margin-top: 12px; }
.side-card .btn:first-of-type { margin-top: 24px; }
.side-card .note { margin-top: 16px; color: var(--pw-text-faint); font-size: 13px; line-height: 20px; }

.compare-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-bottom: 96px; }
.compare-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 24px;
  border: 1px solid var(--pw-hairline);
  border-radius: var(--pw-r-panel);
  background: var(--pw-bg-velvet);
  transition: border-color var(--pw-dur) var(--pw-ease), background-color var(--pw-dur) var(--pw-ease);
}
.compare-link:hover { border-color: var(--pw-line-strong); background: var(--pw-bg-raised); }
.compare-link strong { font-family: var(--pw-font-display); font-size: 20px; font-weight: 600; line-height: 26px; letter-spacing: -0.01em; }
.compare-link span { color: var(--pw-text-muted); font-size: 14px; line-height: 20px; }

.credits-list { display: grid; gap: 12px; margin-top: 18px; }
.credits-list li { padding: 16px 20px; border: 1px solid var(--pw-hairline); border-radius: var(--pw-r-panel); background: var(--pw-bg-velvet); color: var(--pw-text-muted); }
.credits-list strong { color: var(--pw-text); font-weight: 500; }

/* ≤ 1024 px: 32 px gutters, automation stacks, reel scrolls with snap. */
@media (max-width: 1024px) {
  .nav-inner { padding-inline: var(--gutter); }
  .nav-links { gap: 24px; }

  .automation-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .automation-copy { max-width: 640px; }
  .recipe-card { max-width: 680px; }

  .reel-track {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 224px;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    padding-bottom: 4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .reel-track::-webkit-scrollbar { display: none; }
  .reel-card { scroll-snap-align: start; }

  .prose-grid { grid-template-columns: minmax(0, 1fr); }
  .side-card { position: static; max-width: 520px; }
  .compare-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ≤ 768 px: smaller type (tokens), stage 4:5 with the composer below, stacked pricing, menu button. */
@media (max-width: 768px) {
  .nav-inner { grid-template-columns: 1fr auto; }
  .nav-links,
  .nav-demo { display: none; }
  .nav-menu-btn { display: grid; }

  .hero { padding-top: 48px; }
  .hero-title { margin-top: 24px; }
  .stage { margin-top: 56px; }
  .stage-media { aspect-ratio: 4 / 5; border-radius: var(--pw-r-media); }
  .stage-media picture,
  .stage-media img { object-position: 50% 30%; }
  .stage-scrim { background: linear-gradient(180deg, rgb(15 13 20 / 0.3) 0%, rgb(15 13 20 / 0) 25%, rgb(15 13 20 / 0) 60%, rgb(15 13 20 / 0.6) 100%); }
  .status-pill { top: 12px; left: 12px; right: 12px; width: fit-content; max-width: calc(100% - 24px); flex-wrap: wrap; gap: 4px 8px; padding: 6px 12px; font-size: 12px; line-height: 16px; }
  .timecode { top: auto; right: 12px; bottom: 12px; }

  .composer {
    position: static;
    width: auto;
    margin-top: 12px;
    transform: none;
    padding: 18px;
    border-color: var(--pw-hairline);
    background: var(--pw-bg-velvet);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .composer-text { font-size: 17px; line-height: 26px; }
  .composer-row { flex-wrap: wrap; }

  .reel { padding-top: 112px; }
  .section-head.split { flex-direction: column; align-items: flex-start; gap: 12px; }

  .recipe-head { flex-wrap: wrap; }
  .recipe-step { grid-template-columns: 20px minmax(0, 1fr) auto; row-gap: 2px; padding: 10px 16px; }
  .recipe-step .step-name { grid-column: 2; }
  .recipe-step .step-detail { grid-column: 2; grid-row: 2; }
  .recipe-step > .icon:first-child { grid-row: 1 / span 2; align-self: start; margin-top: 2px; }
  .recipe-step .step-chevron,
  .recipe-step .wait-pill { grid-column: 3; grid-row: 1 / span 2; }
  .recipe-foot { flex-wrap: wrap; padding: 14px 16px; }

  .ownership { padding-block: 80px var(--section-y); }
  .own-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 40px; }

  .price-grid { grid-template-columns: minmax(0, 1fr); max-width: 480px; margin-top: 40px; }
  .price-card { padding: 28px 24px; }
  .price-note { margin-top: 40px; }

  .faq-q { font-size: 18px; line-height: 24px; }
  .faq-item summary { padding: 20px 0; }

  .cta { padding-block: 104px var(--section-y); }

  .support { padding-top: 32px; }
  .support-card { flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px; }
  .support-card .btn { width: 100%; }

  .footer-inner { flex-direction: column; align-items: flex-start; padding-block: 32px; }
  .footer-links { gap: 10px 20px; }

  .page-hero { padding-block: 48px 40px; }
  .prose { gap: 44px; }
  .prose h2 { font-size: 24px; line-height: 30px; }
  .compare-grid { grid-template-columns: minmax(0, 1fr); }
  .compare-table { min-width: 0; font-size: 13px; line-height: 19px; }
  .compare-table th,
  .compare-table td { padding: 12px 10px; }
}

/* Narrow phones: full-width buttons, wrapping chips. */
@media (max-width: 480px) {
  .hero-actions,
  .cta-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .hero-actions .btn,
  .cta-actions .btn { width: 100%; }
  .composer-row { flex-direction: column; align-items: stretch; }
  .composer-btn { width: 100%; height: 36px; }
  .announce { font-size: 12px; }
  .price-amount { font-size: 56px; line-height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .reel-poster img { transition: none; }
  .reel-poster:hover img { transform: none; }
}
