/* vogeledits.com
   Apple-style system: SF Pro, size-specific tracking, translucent chrome,
   critically damped spring motion, light and dark.
   Shared by the homepage and every page scripts/build.mjs writes. */

:root {
  color-scheme: light dark;

  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --tile: #f5f5f7;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --line: #d2d2d7;
  --line-soft: #e8e8ed;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --link: #0066cc;
  --on-accent: #ffffff;
  --chrome: rgba(255, 255, 255, 0.72);
  --chrome-edge: rgba(0, 0, 0, 0.08);
  --frame-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 18px 40px -18px rgba(0, 0, 0, 0.18);
  --focus: rgba(0, 113, 227, 0.6);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", system-ui, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

  /* Critically damped spring, response 0.4s (damping 1.0). Settles in ~590ms. */
  --spring: linear(0, 0.058, 0.18, 0.321, 0.455, 0.573, 0.671, 0.75, 0.812, 0.86, 0.897, 0.924, 0.945, 0.96, 0.971, 0.979, 0.985, 0.989, 0.992, 0.994, 0.996, 0.997, 0.998, 0.999, 1);
  --spring-dur: 590ms;

  --container: 1024px;
  --wide: 1240px;
  --gutter: max(16px, env(safe-area-inset-left));
  --nav-h: 48px;
  --r-tile: 28px;
  --r-media: 18px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #0b0b0c;
    --tile: #161617;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #86868b;
    --line: #424245;
    --line-soft: #2a2a2d;
    --accent: #0a84ff;
    --accent-hover: #2b95ff;
    --link: #2997ff;
    --chrome: rgba(22, 22, 23, 0.72);
    --chrome-edge: rgba(255, 255, 255, 0.1);
    --frame-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 18px 40px -18px rgba(0, 0, 0, 0.8);
    --focus: rgba(41, 151, 255, 0.7);
  }
}

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

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;          /* 17px */
  line-height: 1.47;
  letter-spacing: -0.022em;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background-color 300ms ease, color 300ms ease;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(0, 113, 227, 0.22); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 8px 14px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 0.875rem; }
.skip:focus { top: 8px; text-decoration: none; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.wide { width: min(var(--wide), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Type scale (tracking tightens as size grows) ---------- */

.t-hero    { font-size: clamp(2.5rem, 1.6rem + 4.2vw, 5rem); line-height: 1.05; font-weight: 600; letter-spacing: -0.015em; }
.t-display { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.5rem); line-height: 1.07; font-weight: 600; letter-spacing: -0.005em; }
.t-title   { font-size: clamp(1.75rem, 1.45rem + 1.2vw, 2.5rem); line-height: 1.1; font-weight: 600; letter-spacing: 0; }
.t-lead    { font-size: clamp(1.1875rem, 1.1rem + 0.45vw, 1.5rem); line-height: 1.33; font-weight: 400; letter-spacing: 0.009em; }
.t-eyebrow { font-size: 1.0625rem; line-height: 1.24; font-weight: 600; letter-spacing: -0.022em; }
.t-small   { font-size: 0.875rem; line-height: 1.43; letter-spacing: -0.016em; }
.t-micro   { font-size: 0.75rem; line-height: 1.33; letter-spacing: -0.01em; }
.muted { color: var(--text-2); }
.balance { text-wrap: balance; }

/* ---------- Global nav: translucent material, edge effect only once content scrolls under ---------- */

.gnav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: var(--chrome);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.gnav::after {
  content: ""; position: absolute; inset: auto 0 0; height: 1px;
  background: var(--chrome-edge);
  opacity: 0; transition: opacity 240ms ease;
}
.gnav.is-scrolled::after { opacity: 1; }
.gnav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { color: var(--text); font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.gnav-links { display: flex; align-items: center; gap: 4px; margin-right: -10px; }
.gnav-links a {
  color: var(--text); opacity: 0.8;
  font-size: 0.875rem; letter-spacing: -0.016em;
  padding: 10px; border-radius: 10px;
  transition: opacity 160ms ease;
}
.gnav-links a:hover { opacity: 1; text-decoration: none; }
.gnav-links a[aria-current="page"] { opacity: 1; font-weight: 500; }

/* ---------- Buttons: feedback on press, not release ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-size: 1.0625rem; font-weight: 400; letter-spacing: -0.022em;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease,
              transform var(--spring-dur) var(--spring);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.97); transition: transform 100ms ease-out; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { color: var(--accent); border-color: var(--accent); background: transparent; }
.btn-secondary:hover { background: var(--accent); color: var(--on-accent); }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 0.875rem; letter-spacing: -0.016em; }

.link-arrow { font-size: 1.0625rem; letter-spacing: -0.022em; }
.link-arrow::after { content: "\203A"; display: inline-block; margin-left: 0.25em;transition: transform var(--spring-dur) var(--spring); }
.link-arrow:hover::after { transform: translateX(3px); }

.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; }

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

.home-hero { padding: clamp(64px, 10vw, 128px) 0 clamp(40px, 6vw, 72px); text-align: center; }
.home-hero h1 { margin: 0 auto; max-width: 13ch; }
.home-hero p { margin: 20px auto 0; max-width: 34em; color: var(--text-2); }
.home-hero .actions { margin-top: 32px; }

/* Chapter nav: product shortcuts. Native horizontal scroll keeps momentum and rubber-banding on touch. */
.chapters {
  margin: clamp(48px, 7vw, 80px) auto 0;
  display: flex; justify-content: center; gap: 8px;
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
  scroll-snap-type: x proximity; padding: 4px var(--gutter);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
}
.chapters::-webkit-scrollbar { display: none; }
.chapter {
  flex: none; scroll-snap-align: center;
  display: grid; gap: 2px; justify-items: center; text-align: center;
  min-width: 132px; padding: 14px 18px; border-radius: 18px;
  color: var(--text);
  transition: background-color 160ms ease, transform var(--spring-dur) var(--spring);
  -webkit-tap-highlight-color: transparent;
}
.chapter:hover { background: var(--bg-alt); text-decoration: none; }
.chapter:active { transform: scale(0.97); transition: transform 100ms ease-out; }
.chapter b { font-size: 0.875rem; font-weight: 600; letter-spacing: -0.016em; }
.chapter span { font-size: 0.75rem; letter-spacing: -0.01em; color: var(--text-2); }
.chapter .new { color: #bf4800; }
@media (prefers-color-scheme: dark) { .chapter .new { color: #ff9f4a; } }

/* ---------- Used by: one-color logos, drifting slowly ----------
   Each SVG in assets/used-by is an alpha mask, so the logo takes the text color in light and dark.
   --r is its aspect ratio; --k evens out optical size: (r / 2.4)^-0.5 * (ink density / 0.35)^-0.3,
   then by eye (National Geographic up: thin type beside a frame). */

.used-by { --logo-h: clamp(1.75rem, 1.4rem + 0.9vw, 2.25rem); padding: 0 0 clamp(40px, 6vw, 64px); text-align: center; }
.used-by-label { margin: 0 0 20px; font-size: 0.875rem; letter-spacing: -0.016em; color: var(--text-3); }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
/* With JS, site.js drives the drift so it can be grabbed, flicked and eased to a stop. */
.js .marquee { touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none; }
.js .marquee.is-dragging { cursor: grabbing; }
.js .marquee-track { animation: none; will-change: transform; }
.marquee-group {
  display: flex; align-items: center; gap: clamp(48px, 6vw, 80px);
  margin: 0; padding: 0 clamp(48px, 6vw, 80px) 0 0; list-style: none;
}
.marquee-group li { display: flex; align-items: center; height: calc(var(--logo-h) * 1.3); }
.logo {
  display: block; height: calc(var(--logo-h) * var(--k, 1)); aspect-ratio: var(--r);
  background: var(--text-2);
  -webkit-mask: var(--logo) center / contain no-repeat;
          mask: var(--logo) center / contain no-repeat;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Product tiles ---------- */

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-bottom: 12px; }
.tile {
  grid-column: span 2;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(24px, 4vw, 56px);
  padding: clamp(28px, 5vw, 64px);
  border-radius: var(--r-tile);
  background: var(--tile);
  scroll-margin-top: calc(var(--nav-h) + 12px);
}
.tile.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.tile.flip .tile-copy { order: 2; }
/* Half tiles: copy grows, so Buy buttons and images line up across the pair whatever the headline length. */
.tile.half { grid-column: span 1; display: flex; flex-direction: column; gap: 40px; text-align: center; }
.tile.half .tile-copy { flex: 1; display: flex; flex-direction: column; align-items: center; }
.tile.half .tile-copy .actions { margin-top: auto; padding-top: 28px; justify-content: center; }

.tile-copy { display: grid; justify-items: start; gap: 0; }
.tile-copy .t-eyebrow { display: flex; align-items: center; gap: 10px; color: var(--text); }
.tile-copy h2 { margin: 8px 0 0; }
.tile-copy p { margin: 16px 0 0; color: var(--text-2); max-width: 30em; }
.tile-copy .actions { margin-top: 28px; justify-content: flex-start; }

.badge { font-size: 0.75rem; font-weight: 600; letter-spacing: -0.01em; color: #bf4800; }
@media (prefers-color-scheme: dark) { .badge { color: #ff9f4a; } }

.frame {
  margin: 0; overflow: hidden;
  border-radius: var(--r-media);
  background: #ffffff;           /* banners are drawn on white */
  box-shadow: var(--frame-shadow);
  aspect-ratio: 16 / 9;
}
.frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Guides list ---------- */

.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head h2 { margin: 0; }

.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-soft); }
.rows a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 24px;
  padding: 24px 4px; border-bottom: 1px solid var(--line-soft);
  color: var(--text);
  transition: transform var(--spring-dur) var(--spring);
}
.rows a:hover { text-decoration: none; }
.rows a:active { transform: scale(0.99); transition: transform 100ms ease-out; }
.row-title { font-size: clamp(1.1875rem, 1.1rem + 0.4vw, 1.5rem); font-weight: 600; line-height: 1.25; letter-spacing: 0.004em; }
.row-excerpt { grid-column: 1; color: var(--text-2); font-size: 1.0625rem; }
.row-meta { grid-column: 1; color: var(--text-3); font-size: 0.875rem; letter-spacing: -0.016em; }
.row-chev { grid-column: 2; grid-row: 1 / span 3; color: var(--text-3); font-size: 1.5rem; transition: transform var(--spring-dur) var(--spring), color 160ms ease; }
.rows a:hover .row-title { color: var(--link); }
.rows a:hover .row-chev { transform: translateX(4px); color: var(--link); }

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

.gfoot { background: var(--bg-alt); color: var(--text-2); padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); font-size: 0.75rem; letter-spacing: -0.01em; line-height: 1.33; }
.gfoot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.gfoot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.gfoot a { color: var(--text-2); }
.gfoot a:hover { color: var(--text); }
.gfoot-bottom { padding-top: 16px; color: var(--text-3); }

/* ---------- Reveal on scroll (only when JS is running) ---------- */

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 500ms ease, transform var(--spring-dur) var(--spring); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Article pages ---------- */

.article-wrap { width: min(692px, 100% - 2 * var(--gutter)); margin: 0 auto; padding: clamp(40px, 7vw, 80px) 0 clamp(72px, 10vw, 120px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; font-size: 0.875rem; letter-spacing: -0.016em; color: var(--text-3); }
.crumbs a { color: var(--text-2); }
.article-head h1 { margin: 0; text-wrap: balance; }
.byline { margin: 16px 0 0; color: var(--text-2); font-size: 0.875rem; letter-spacing: -0.016em; }
.lead { margin: 16px 0 0; color: var(--text-2); max-width: 34em; }

.article figure.hero { margin: 40px 0 0; }
.article figure.hero img { width: 100%; border-radius: var(--r-media); box-shadow: var(--frame-shadow); background: var(--bg-alt); }
.article figure.hero figcaption { margin-top: 10px; font-size: 0.875rem; letter-spacing: -0.016em; color: var(--text-2); }
.prose figure.fig { margin: 32px 0; }
.prose figure.fig img { width: 100%; border-radius: var(--r-media); box-shadow: var(--frame-shadow); background: #161616; }
.prose figure.fig figcaption { margin-top: 10px; font-size: 0.875rem; letter-spacing: -0.016em; color: var(--text-2); }

.toc { margin: 40px 0 0; padding: 20px 24px; border-radius: var(--r-media); background: var(--bg-alt); }
.toc .label { font-size: 0.875rem; font-weight: 600; letter-spacing: -0.016em; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 1.25em; font-size: 0.9375rem; letter-spacing: -0.01em; color: var(--text-2); }
.toc li { margin: 6px 0; }
.toc li::marker { color: var(--text-3); }

.prose { font-size: 1.0625rem; line-height: 1.6; }
.prose > :first-child { margin-top: 40px; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.2em; }
.prose li { margin: 0.4em 0; }
.prose li::marker { color: var(--text-3); }
.prose strong { font-weight: 600; }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.prose h2 { margin: 2.4em 0 0.6em; font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem); line-height: 1.15; font-weight: 600; letter-spacing: 0.004em; }
.prose h3 { margin: 1.8em 0 0.5em; font-size: 1.3125rem; line-height: 1.24; font-weight: 600; letter-spacing: 0.011em; }
.prose code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.9em; padding: 0.1em 0.35em; border-radius: 6px; background: var(--bg-alt); }
.prose pre { margin: 24px 0; padding: 16px 20px; border-radius: 12px; background: var(--bg-alt); overflow-x: auto; line-height: 1.6; }
.prose pre code { padding: 0; background: none; font-size: 0.85em; }

.table-wrap { margin: 28px 0 32px; overflow-x: auto; border-radius: var(--r-media); background: var(--bg-alt); overscroll-behavior-x: contain; }
.table-wrap table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.875rem; line-height: 1.43; letter-spacing: -0.016em; }
.table-wrap th, .table-wrap td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
.table-wrap th { font-weight: 600; color: var(--text-2); }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap td:first-child { font-weight: 600; }

.product-box { margin: 36px 0; padding: clamp(24px, 4vw, 32px); border-radius: var(--r-tile); background: var(--tile); }
.product-box p { margin: 0 0 16px; }
.product-box .sale { font-size: 0.875rem; font-weight: 600; letter-spacing: -0.016em; color: #bf4800; }
@media (prefers-color-scheme: dark) { .product-box .sale { color: #ff9f4a; } }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.prose .cta-row .btn { text-decoration: none; }

.video { margin: 36px 0; }
.video iframe, .yt { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r-media); background: #000; box-shadow: var(--frame-shadow); }
.yt { position: relative; padding: 0; cursor: pointer; overflow: hidden; -webkit-tap-highlight-color: transparent; transition: transform var(--spring-dur) var(--spring); }
.yt:active { transform: scale(0.99); transition: transform 100ms ease-out; }
.yt img { width: 100%; height: 100%; object-fit: cover; }
.yt-play {
  position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform var(--spring-dur) var(--spring);
}
.yt-play::after { content: ""; position: absolute; left: 29px; top: 24px; border-style: solid; border-width: 12px 0 12px 19px; border-color: transparent transparent transparent #1d1d1f; }
.yt:hover .yt-play { transform: scale(1.06); }
.video figcaption { margin-top: 10px; font-size: 0.875rem; letter-spacing: -0.016em; color: var(--text-2); }

.more { margin: 64px 0 0; padding-top: 24px; border-top: 1px solid var(--line-soft); }

.post-list { margin-top: 48px; }

/* ---------- Product pages ----------
   The global nav scrolls away and the product bar sticks, so Buy is always one click from aescripts. */

.has-pnav .gnav { position: relative; }
.pnav {
  position: sticky; top: 0; z-index: 50;
  height: 52px;
  background: var(--chrome);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: inset 0 -1px 0 var(--chrome-edge);
}
.pnav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pnav-title { color: var(--text); font-size: 1.3125rem; font-weight: 600; letter-spacing: 0.011em; white-space: nowrap; }
.pnav-title:hover { text-decoration: none; }
.pnav-end { display: flex; align-items: center; gap: 16px; }
.pnav-price { font-size: 0.875rem; letter-spacing: -0.016em; color: var(--text-2); white-space: nowrap; }

/* The sale price removes itself after its date (site.js); the regular price is struck only while it's there. */
.price-sale + .price-reg { margin-left: 0.15em; color: var(--text-3); font-weight: 400; font-size: 0.8em; text-decoration: line-through; }

.p-hero { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 64px); text-align: center; }
.hosts { display: flex; justify-content: center; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.hosts abbr {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: #00005b; color: #9999ff;
  font-size: 1.125rem; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; cursor: default;
}
.p-hero .t-eyebrow { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 0; }
.p-hero h1 { margin: 10px auto 0; max-width: 15ch; }
.p-hero .t-lead { margin: 20px auto 0; max-width: 34em; color: var(--text-2); }

.buy { margin-top: 36px; }
.buy-price { margin: 0; font-size: 1.3125rem; line-height: 1.2; font-weight: 600; letter-spacing: 0.011em; }
.buy-once { font-size: 1.0625rem; font-weight: 400; letter-spacing: -0.022em; color: var(--text-2); }
.buy .sale { margin: 8px 0 0; font-size: 0.875rem; font-weight: 600; letter-spacing: -0.016em; color: #bf4800; }
@media (prefers-color-scheme: dark) { .buy .sale { color: #ff9f4a; } }
.buy .actions { margin-top: 20px; }
.buy-note { margin: 16px auto 0; max-width: 32em; font-size: 0.875rem; letter-spacing: -0.016em; color: var(--text-3); text-wrap: balance; }

/* Body: one section per h2. Text keeps an article measure; tables, demos and cards get the full width. */
.p-section { padding-top: clamp(72px, 10vw, 128px); }
.p-section > * { margin-block: 0; }
.p-section > * + * { margin-top: 16px; }
.p-section > h2 { margin-inline: auto; max-width: 20ch; text-align: center; text-wrap: balance; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.5rem); line-height: 1.07; font-weight: 600; letter-spacing: -0.005em; }
.p-section > p { max-width: 692px; margin-inline: auto; text-align: center; color: var(--text-2); line-height: 1.6; text-wrap: pretty; }
.p-section > h2 + p { max-width: 34em; margin-top: 20px; font-size: clamp(1.1875rem, 1.1rem + 0.45vw, 1.5rem); line-height: 1.33; letter-spacing: 0.009em; text-wrap: balance; }
.p-section strong { font-weight: 600; color: var(--text); }
.p-section > .video { max-width: 880px; margin: 48px auto 0; }
.p-section > :first-child.video { margin-top: clamp(48px, 7vw, 80px); }
.p-section > .table-wrap, .p-section > .cards, .p-section > .demo, .p-section > .faq, .p-section > ul { margin-top: 48px; }
.p-section > .table-wrap + p { margin-top: 12px; max-width: none; font-size: 0.75rem; line-height: 1.33; letter-spacing: -0.01em; color: var(--text-3); }
.p-section > .video + p { margin-top: 24px; }

/* Comparison tables: our column reads strongest. */
.p-section td { color: var(--text-2); }
.p-section td:first-child, .p-section td:nth-child(2), .p-section th:nth-child(2) { color: var(--text); }
.p-section td:nth-child(2), .p-section th:nth-child(2) { font-weight: 600; }
.p-section td small { display: block; margin-top: 2px; font-size: 0.8125rem; font-weight: 400; color: var(--text-2); }
.yes { color: var(--text-2); font-weight: 600; }
td:nth-child(2) .yes { color: var(--accent); }

/* Checklist */
.p-section > ul { max-width: 880px; margin-inline: auto; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 40px; }
.p-section > ul li { position: relative; padding-left: 30px; color: var(--text-2); }
.p-section > ul li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 760px; margin-inline: auto; padding: 0; list-style: none; }
.p-section > .chips { margin-top: 36px; }
.chips li { padding: 8px 16px; border-radius: 999px; background: var(--tile); font-size: 0.9375rem; letter-spacing: -0.01em; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.card { padding: clamp(24px, 3vw, 32px); border-radius: 24px; background: var(--tile); }
.card h3 { margin: 0; font-size: 1.3125rem; line-height: 1.24; font-weight: 600; letter-spacing: 0.011em; }
.card p { margin: 10px 0 0; color: var(--text-2); }

.faq { max-width: 692px; margin-inline: auto; border-top: 1px solid var(--line-soft); }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  position: relative; padding: 20px 40px 20px 0; cursor: pointer; list-style: none;
  font-size: 1.1875rem; line-height: 1.3; font-weight: 600; letter-spacing: 0.004em;
  -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; translate: 0 -50%;
  font-size: 1.75rem; font-weight: 300; line-height: 1; color: var(--text-3);
  transition: rotate var(--spring-dur) var(--spring), color 160ms ease;
}
.faq summary:hover::after { color: var(--link); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { margin: 0 0 22px; padding-right: 40px; color: var(--text-2); line-height: 1.6; }

/* Demos: the panel and timeline in Premiere's own dark UI, in light and dark mode alike. */
.demo { max-width: 960px; margin-inline: auto; }
.demo figcaption { margin-top: 16px; text-align: center; font-size: 0.875rem; letter-spacing: -0.016em; color: var(--text-2); }
.demo-split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 12px; align-items: start; }
.demo-win {
  padding: 14px; border-radius: var(--r-media);
  background: #1d1d1f; color: #d2d2d7;
  box-shadow: var(--frame-shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  font-size: 0.8125rem; letter-spacing: -0.01em;
}
.demo-head { display: flex; justify-content: space-between; margin: -2px 0 12px; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); color: #f5f5f7; font-weight: 600; }
.demo-label { color: #86868b; font-size: 0.75rem; }
.demo-field { margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: #2c2c2e; }
.demo-btn { margin-top: 14px; padding: 10px 16px; border-radius: 999px; background: #0a84ff; color: #fff; font-weight: 600; text-align: center; white-space: nowrap; }
.demo-tracks, .demo-bin { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.demo-tracks li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 8px; align-items: center; height: 34px; }
.trk { display: grid; place-items: center; height: 100%; border-radius: 6px; background: #2c2c2e; color: #a1a1a6; font-size: 0.6875rem; font-weight: 600; }
.clip { position: relative; height: 100%; overflow: hidden; border-radius: 6px; background: #2b8a63; color: #fff; }
.clip > span { position: relative; z-index: 1; display: block; padding: 4px 8px; font-size: 0.6875rem; font-weight: 600; line-height: 1; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35); }
.wave { position: absolute; left: 0; top: 14px; width: 100%; height: calc(100% - 16px); color: rgba(255, 255, 255, 0.45); }
.wave path { fill: none; stroke: currentColor; stroke-width: 2px; vector-effect: non-scaling-stroke; }
.is-off .clip { background: #3a3a3c; color: #8e8e93; }
.is-off .wave { color: rgba(255, 255, 255, 0.16); }

.demo-rename { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; align-items: center; max-width: 760px; margin-inline: auto; }
.demo-rename > .demo-btn { margin: 0; }
.demo-bin li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; background: #2c2c2e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-bin li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 2px; background: #9b7bd9; }
.demo-bin li:nth-child(3n + 2)::before { background: #3fa9d6; }
.demo-bin li:nth-child(3n + 3)::before { background: #e5a33b; }

/* Once a demo scrolls in: the button presses, then the new clips land one by one. */
.js .demo.reveal .demo-tracks li:not(.is-off), .js .demo.reveal .demo-new li {
  opacity: 0; transform: translateX(-12px);
  transition: opacity 400ms ease, transform var(--spring-dur) var(--spring);
  transition-delay: calc(500ms + var(--i) * 70ms);
}
.js .demo.reveal.is-in .demo-tracks li, .js .demo.reveal.is-in .demo-bin li { opacity: 1; transform: none; }
.js .demo.reveal.is-in .demo-btn { animation: press 500ms ease 200ms 1; }
@keyframes press { 40% { transform: scale(0.94); filter: brightness(0.85); } }

.p-cta { margin-top: clamp(72px, 10vw, 128px); padding: clamp(48px, 7vw, 80px) clamp(24px, 5vw, 64px); border-radius: var(--r-tile); background: var(--tile); text-align: center; }
.p-cta .t-eyebrow { margin: 0; }
.p-cta h2 { margin: 8px auto 0; max-width: 18ch; }

.p-more { padding: clamp(72px, 10vw, 120px) 0; }
.p-more h2 { margin: 0 0 28px; }
.more-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 16px; margin: 0; padding: 0; list-style: none; }
.more-grid a { display: grid; gap: 4px; color: var(--text); transition: transform var(--spring-dur) var(--spring); }
.more-grid a:hover { text-decoration: none; }
.more-grid a:active { transform: scale(0.98); transition: transform 100ms ease-out; }
.more-grid .frame { margin-bottom: 10px; border-radius: 14px; }
.more-grid b { font-weight: 600; transition: color 160ms ease; }
.more-grid a:hover b { color: var(--link); }
.more-grid span { font-size: 0.875rem; letter-spacing: -0.016em; color: var(--text-2); }

@media (max-width: 834px) {
  .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .demo-split, .demo-rename { grid-template-columns: 1fr; }
  .demo-rename > .demo-btn { justify-self: center; }
  .p-section > ul { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .pnav-price { display: none; }
  .p-section > p:not(h2 + p):not(.table-wrap + p) { text-align: left; }
}

/* ---------- Cookie banner (site.js adds it) ---------- */

.consent {
  position: fixed; z-index: 60; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom));
  width: min(600px, 100% - 2 * var(--gutter)); translate: -50% 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  padding: 16px 20px; border-radius: 18px;
  background: var(--chrome);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 0 0 1px var(--chrome-edge), 0 18px 40px -12px rgba(0, 0, 0, 0.3);
  font-size: 0.875rem; line-height: 1.43; letter-spacing: -0.016em;
  animation: consent-in var(--spring-dur) var(--spring);
}
.consent p { flex: 1 1 280px; margin: 0; }
.consent-actions { display: flex; gap: 8px; margin-left: auto; }
@keyframes consent-in { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Phone ---------- */

@media (max-width: 834px) {
  .tile, .tile.flip { grid-template-columns: 1fr; text-align: center; }
  .tile.flip .tile-copy { order: 0; }
  .tile-copy { justify-items: center; }
  .tile-copy .actions { justify-content: center; }
  .tile-copy .t-eyebrow { justify-content: center; }
  .chapters { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .tiles { grid-template-columns: 1fr; }
  .tile, .tile.half { grid-column: span 1; padding: 32px 20px 20px; border-radius: 24px; }
  .frame { border-radius: 14px; }
  .chapter { min-width: 116px; padding: 12px 14px; }
  .rows a { padding: 20px 0; }
  .cta-row .btn { flex: 1 1 auto; }
}

/* ---------- Accessibility preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { transition-duration: 1ms !important; animation: none !important; }
  .js .reveal { transform: none; transition: opacity 200ms ease !important; }
  .btn:active, .chapter:active, .rows a:active, .yt:active, .more-grid a:active { transform: none; }
  .js .demo.reveal li { transform: none; transition-delay: 0s !important; }
  /* No drift: one centered, wrapping line of names. */
  .marquee, .js .marquee { -webkit-mask-image: none; mask-image: none; cursor: auto; touch-action: auto; }
  .marquee-track { width: auto; justify-content: center; }
  .marquee-group { flex-wrap: wrap; justify-content: center; gap: 16px 40px; padding: 0 var(--gutter); }
  .marquee-group[aria-hidden] { display: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .gnav, .pnav, .consent { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .gnav::after { opacity: 1; }
  .yt-play { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --text-2: var(--text); --chrome-edge: var(--text); --line-soft: var(--line); }
  .gnav, .pnav { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .tile, .toc, .product-box, .table-wrap, .card, .chips li, .p-cta { outline: 1px solid var(--text); }
}
