:root {
  --bg: #ffffff;
  --surface: #f5f5f7;
  --surface-2: #ebebef;
  --border: rgba(15, 23, 42, 0.10);
  --border-strong: rgba(15, 23, 42, 0.20);
  --text: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --accent: #0f172a;
  --accent-fg: #ffffff;
  --shell-max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", sans-serif;
  font-feature-settings: "ss01", "cv11";
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

/* ---------- Topbar ---------- */
.topbar-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--shell-max), calc(100vw - 32px));
  height: 112px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand {
  display: inline-flex;
  align-items: center;
}
.brand-logo {
  width: 168px;
  height: 104px;
  object-fit: contain;
  display: block;
}

.hero-always {
  color: var(--accent);
}

.hero h1 .ch {
  display: inline-block;
  vertical-align: baseline;
  transition: transform 420ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hero h1 .ch--pixel {
  font-family: "210 8bit", "Press Start 2P", "Geist Mono", ui-monospace, monospace;
  font-weight: 400;
  letter-spacing: -2px;
  font-size: 0.78em;
  animation: pixel-fade 980ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hero h1 .ch--pop {
  animation: pixel-fade 980ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes pixel-fade {
  0%   { opacity: 0; transform: translateY(4px) scale(0.96); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}


.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
  color: var(--text-secondary);
}
.nav a { transition: color 150ms ease; }
.nav a:not(.topbar-download-main):hover { color: var(--text); }
.topbar-download-main:hover { color: var(--accent-fg); }

.topbar-download-group {
  display: inline-flex;
  align-items: center;
  height: 40px;
  margin-left: 8px;
  border: 0;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 14px;
  font-weight: 500;
  position: relative;
  box-shadow: none;
  transition: opacity 150ms ease;
}
.topbar-download-group:hover { opacity: 0.92; }

.topbar-download-main {
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 18px;
  border-radius: 9px 0 0 9px;
  color: var(--accent-fg);
  background: transparent;
}

.topbar-download-picker { margin-left: 0; position: relative; }
.topbar-download-picker summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 34px;
  padding: 0;
  border-left: 1px solid rgba(58, 47, 32, 0.14);
  border-radius: 0 9px 9px 0;
  list-style: none;
  cursor: pointer;
  background: transparent;
  color: var(--accent-fg);
}
.topbar-download-picker summary::-webkit-details-marker { display: none; }
.topbar-download-picker summary::after {
  content: "▾";
  font-size: 10px;
  color: var(--accent-fg);
  transition: transform 180ms ease;
}
.topbar-download-picker[open] summary::after { transform: rotate(180deg); }

.topbar-download-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  display: grid;
  min-width: 184px;
  padding: 6px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 12px 32px rgba(58, 47, 32, 0.18);
  z-index: 60;
  transform-origin: top right;
  animation: download-menu-in 160ms ease;
}
.topbar-download-menu a {
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text);
  background: transparent;
  transition: background 150ms ease;
}
.topbar-download-menu a:hover { background: var(--surface-2); }

@keyframes download-menu-in {
  from { opacity: 0; transform: translateY(-4px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Hero variant - same structure as the topbar pill, sized to match the
   primary-button (42px tall, slightly more padding). The picker chevron
   stays right-aligned and the dropdown anchors below the trigger. */
.hero-actions .topbar-download-group {
  height: 44px;
  margin-left: 0;
  font-size: 15px;
  font-weight: 500;
  border-radius: 10px;
}
.hero-actions .topbar-download-main {
  padding: 0 22px;
  border-radius: 10px 0 0 10px;
}
.hero-actions .topbar-download-picker summary {
  width: 38px;
  border-radius: 0 10px 10px 0;
}
.hero-actions .topbar-download-menu {
  min-width: 200px;
  font-size: 14px;
}

/* ---------- Page shell ---------- */
.page-shell {
  width: min(var(--shell-max), calc(100vw - 32px));
  margin: 0 auto;
  padding: 96px 0 64px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  margin: 0;
  padding: 0 0 56px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  align-items: start;
  gap: 48px;
}

.hero-text {
  min-width: 0;
  position: relative;
  z-index: 2;
}

.hero h1 {
  max-width: none;
  white-space: nowrap;
  font-size: clamp(36px, 5.2vw, 64px);
}
.hero::before {
  content: "";
  position: absolute;
  top: -120px; left: 50%;
  width: 720px; height: 380px;
  transform: translateX(-50%);
  background: radial-gradient(60% 60% at 50% 50%, rgba(15, 23, 42, 0.04), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.eyebrow {
  margin: 0 0 20px;
  display: inline-block;
  padding: 4px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-secondary);
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

h1, h2, h3 {
  margin: 0;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--text);
}

h1 {
  max-width: 14ch;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.038em;
  font-weight: 600;
}

h2 {
  max-width: 18ch;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.14;
  letter-spacing: -0.028em;
}

h3 {
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
}

.hero-body,
.section-copy,
.text-card p,
.price-copy,
.faq-list p {
  color: var(--text-secondary);
  line-height: 1.62;
}

.hero-body {
  max-width: 56ch;
  margin: 24px 0 0;
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.hero-showcase {
  display: block;
  width: 100%;
  height: auto;
  margin: 24px 0 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(58, 47, 32, 0.22);
  position: relative;
  z-index: 1;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: opacity 150ms ease, background 150ms ease, border-color 150ms ease;
}

.primary-button {
  color: var(--accent-fg);
  background: var(--accent);
}
.primary-button:hover { opacity: 0.92; }

.secondary-button {
  color: var(--text);
  border-color: var(--border-strong);
  background: transparent;
}
.secondary-button:hover { background: var(--surface); }

/* ---------- Sections ---------- */
.section {
  padding-top: 128px;
}
/* On subpages the first section is flush with the page shell padding,
   matching the home page's hero spacing. */
main > .section:first-child {
  padding-top: 0;
}

.section-heading {
  display: grid;
  gap: 12px;
  max-width: 640px;
  margin-bottom: 36px;
}

.section-copy {
  margin: 0;
  font-size: 15px;
}

/* ---------- Dedicated subpage layouts ---------- */
.feature-rows {
  display: grid;
  gap: 88px;
  margin-top: 16px;
}
.feature-row {
  display: grid;
  /* Equal columns so the media block is the same width whether the row is
     left-image or right-image (alternating via :nth-child(even) order). */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.feature-row:nth-child(even) .feature-row-media { order: 2; }
.feature-row-media {
  position: relative;
}
.feature-row-media video,
.feature-row-media img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 22px 50px rgba(58, 47, 32, 0.14);
  background: #000;
}
.feature-row-text h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.feature-row-text p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 52ch;
  margin: 0;
}

.workflow-rows {
  display: grid;
  gap: 0;
  margin-top: 16px;
}
.workflow-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 32px;
  align-items: baseline;
  padding: 36px 0;
  border-top: 1px solid var(--border);
}
.workflow-row:last-child {
  border-bottom: 1px solid var(--border);
}
.workflow-row-number {
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  padding-top: 4px;
}
.workflow-row-body h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.workflow-row-body p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 62ch;
  margin: 0;
}

.page-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 80px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

/* ---------- Legal pages (Terms, Privacy) ---------- */
.legal-prose {
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}
.legal-prose .legal-eyebrow {
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  margin: 0 0 12px;
}
.legal-prose h1 {
  font-size: clamp(32px, 4.4vw, 44px);
  letter-spacing: -0.025em;
  margin: 0 0 22px;
}
.legal-prose h2 {
  font-size: 19px;
  letter-spacing: -0.012em;
  margin: 44px 0 10px;
  font-weight: 600;
}
.legal-prose p { margin: 0 0 14px; color: var(--text-secondary); }
.legal-prose ul {
  margin: 0 0 14px;
  padding-left: 22px;
  color: var(--text-secondary);
}
.legal-prose li { margin-bottom: 6px; }
.legal-prose a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
}
.legal-prose a:hover { text-decoration-color: var(--text); }
.legal-prose code {
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
}
.legal-prose strong { color: var(--text); font-weight: 600; }

/* Footer Terms · Privacy strip - sits under the copyright line. */
.footer-legal {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--text-secondary);
}
.footer-legal a {
  color: var(--text-secondary);
  text-decoration: none;
}
.footer-legal a:hover { color: var(--text); }

@media (max-width: 768px) {
  .feature-rows { gap: 56px; }
  .feature-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .feature-row:nth-child(even) .feature-row-media { order: 0; }
  .workflow-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 28px 0;
  }
  .page-cta { margin-top: 56px; }
}

/* ---------- Card grids (line-divided) ---------- */
.text-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--border);
  gap: 1px;
  overflow: hidden;
}

#workflows .text-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.text-card {
  margin: 0;
  padding: 28px 24px;
  border: 0;
  border-radius: 0;
  background: var(--bg);
  box-shadow: none;
  transition: background 160ms ease;
}
.text-card:hover { background: var(--surface); }
#features .text-card[data-preview] { cursor: default; }

.beta-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 2px;
}

.text-card--coming { color: var(--text-secondary); }
.text-card--coming h3 { color: var(--text-secondary); font-weight: 500; }

.text-card p {
  margin: 8px 0 0;
  font-size: 14px;
}

/* ---------- Supported browsers row ---------- */
.browser-row {
  list-style: none;
  margin: 28px 0 0;
  padding: 28px 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 36px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
}

.browser-row li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 64px;
}

.browser-row img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
}

.browser-row span {
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

@media (max-width: 640px) {
  .browser-row {
    gap: 22px 22px;
    padding: 22px 12px;
  }
  .browser-row img { width: 38px; height: 38px; }
  .browser-row span { font-size: 11px; }
}

/* ---------- Floating preview popup ---------- */
.card-preview {
  position: fixed;
  top: 0;
  left: 0;
  width: 420px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 60;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(58, 47, 32, 0.18);
  overflow: hidden;
}
.card-preview.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.card-preview-video,
.card-preview-image {
  display: none;
  width: 100%;
  height: auto;
  /* Reserve the popup's final aspect ratio so the box never starts smaller
     than the loaded video. Background matches the popup bg so the brief
     pre-frame state is invisible against the surrounding card. */
  aspect-ratio: 866 / 480;
  object-fit: cover;
  background: var(--bg);
}
.card-preview[data-type="video"] .card-preview-video { display: block; }
.card-preview[data-type="image"] .card-preview-image { display: block; }
@media (max-width: 768px) {
  /* Hover-driven previews don't translate to touch - hide entirely. */
  .card-preview { display: none; }
}

/* ---------- Pricing (3-tier grid) ---------- */
.pricing-wrap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
  align-items: stretch;
}

.pricing-tier {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px 28px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.pricing-tier:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(58, 47, 32, 0.10);
}
.pricing-tier--featured {
  border-color: var(--accent);
  border-width: 2px;
  padding: 31px 27px 27px; /* offset 1px so card edges align with neighbors */
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(58, 47, 32, 0.12);
}

/* Two pill badges that sit on the top-right edge of the featured tier,
   straddling the card border instead of being tucked inside the padding. */
.tier-banner {
  position: absolute;
  top: 0;
  right: 18px;
  transform: translateY(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}
.tier-recommended,
.tier-discount {
  margin: 0;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  font-family: inherit;
}
.tier-recommended {
  background: var(--text);
  color: var(--bg);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tier-discount {
  /* Wide multi-stop gradient + slow background-position shift = quiet shimmer
     that draws the eye without being a flashing distraction. */
  background: linear-gradient(120deg,
              #ff9a3c 0%,
              #ff4f81 28%,
              #b542ff 55%,
              #ff4f81 82%,
              #ff9a3c 100%);
  background-size: 220% 100%;
  animation: tier-discount-shimmer 4.5s ease-in-out infinite;
  color: #fff;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.20);
  box-shadow: 0 4px 14px rgba(255, 79, 129, 0.32);
}
@keyframes tier-discount-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .tier-discount { animation: none; }
}

.tier-name {
  margin: 0 0 6px;
  font-family: "210 8bit", "Press Start 2P", "Geist Mono", ui-monospace, monospace;
  /* Pixel fonts read visually larger per pixel; trimmed from 20px so the card
     header stays balanced. */
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.3;
}
.tier-blurb {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.tier-price {
  margin: 0 0 6px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.tier-price-amount {
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.tier-price-suffix {
  font-size: 12px;
  color: var(--text-tertiary);
}

.tier-devices {
  margin: 0 0 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
}

.pricing-features {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 10px;
  width: 100%;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
}
.pricing-features svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--text);
}

.tier-cta {
  margin-top: auto;
  width: 100%;
  height: 44px;
  font-family: "210 8bit", "Press Start 2P", "Geist Mono", ui-monospace, monospace;
  /* Same rationale as .tier-name - pixel glyphs are chunkier per px. */
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  border-radius: 9px;
}
/* Non-featured tiers get a subtle outlined CTA so the Plus tier's solid button
   stays the primary visual call to action. */
.pricing-tier:not(.pricing-tier--featured) .tier-cta {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.pricing-tier:not(.pricing-tier--featured) .tier-cta:hover {
  background: var(--surface);
  border-color: var(--text);
  opacity: 1;
}

@media (max-width: 900px) {
  .pricing-wrap { grid-template-columns: 1fr; gap: 14px; }
  .pricing-tier--featured { order: -1; } /* Surface the recommended tier first on narrow viewports. */
}

/* ---------- FAQ ---------- */
.faq-list {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

.faq-list details {
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: none;
  transition: background 160ms ease, border-color 160ms ease;
}
.faq-list details[open] {
  background: var(--surface-2);
  border-color: var(--border-strong);
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 500;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-size: 18px;
  font-weight: 400;
  color: var(--text-secondary);
  transition: transform 220ms ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }

.faq-list p {
  margin: 12px 0 0;
  font-size: 14px;
}

/* ---------- Changelog ---------- */
.changelog-list {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.changelog-entry {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 36px;
  padding: 28px 30px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.changelog-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.changelog-version {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text);
  line-height: 1.05;
}

.changelog-date {
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.changelog-tag {
  margin-top: 10px;
  padding: 3px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-secondary);
}

.changelog-body {
  min-width: 0;
}

.changelog-body h2,
.changelog-body h3 {
  max-width: none;
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

.changelog-body ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.changelog-body li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.62;
  color: var(--text-secondary);
}

.changelog-body li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-tertiary);
}

.inline-link {
  color: var(--text);
  border-bottom: 1px solid var(--border-strong);
}
.inline-link:hover { border-bottom-color: var(--text); }

/* ---------- Older changelog dropdown ---------- */
.changelog-older {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 36px;
}
/* A faint horizontal rule that the button "sits on" - creates a section
   break feel without a hard divider. */
.changelog-older::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  pointer-events: none;
  z-index: 0;
}
.changelog-older > summary {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  user-select: none;
  list-style: none;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  transition:
    transform 180ms cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 180ms cubic-bezier(0.4, 0, 0.2, 1),
    border-color 180ms cubic-bezier(0.4, 0, 0.2, 1),
    background 180ms cubic-bezier(0.4, 0, 0.2, 1);
}
.changelog-older > summary::-webkit-details-marker { display: none; }
/* Chevron rendered in CSS so it can rotate smoothly without an SVG. */
.changelog-older > summary::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: 2px;
  border-right: 1.5px solid var(--text-secondary);
  border-bottom: 1.5px solid var(--text-secondary);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 240ms cubic-bezier(0.4, 0, 0.2, 1);
}
.changelog-older[open] > summary::after {
  transform: translateY(1px) rotate(-135deg);
}
.changelog-older > summary:hover {
  transform: translateY(-1px);
  background: var(--bg);
  border-color: var(--text);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.10);
}
.changelog-older > summary:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}
.changelog-older[open] > summary {
  /* Open state - settle on the page, no hovering shadow needed */
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.changelog-older-label {
  font-weight: 500;
}
.changelog-older-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-secondary);
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: border-color 180ms ease, color 180ms ease;
}
.changelog-older > summary:hover .changelog-older-count {
  border-color: var(--text);
  color: var(--text);
}
.changelog-list--older {
  width: 100%;
  margin-top: 24px;
}
/* Cascade the older entries in when the section opens - staggered so the
   panel doesn't pop in as one block. `both` keeps the from-state applied
   while waiting on the delay, so each card stays invisible until its turn. */
.changelog-older[open] .changelog-list--older > .changelog-entry {
  animation: changelog-older-reveal 360ms cubic-bezier(0.4, 0, 0.2, 1) both;
}
.changelog-older[open] .changelog-list--older > .changelog-entry:nth-child(1) { animation-delay: 40ms; }
.changelog-older[open] .changelog-list--older > .changelog-entry:nth-child(2) { animation-delay: 110ms; }
.changelog-older[open] .changelog-list--older > .changelog-entry:nth-child(3) { animation-delay: 180ms; }
.changelog-older[open] .changelog-list--older > .changelog-entry:nth-child(4) { animation-delay: 250ms; }
.changelog-older[open] .changelog-list--older > .changelog-entry:nth-child(5) { animation-delay: 320ms; }

@keyframes changelog-older-reveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .changelog-older > summary,
  .changelog-older > summary::after,
  .changelog-older[open] .changelog-list--older > .changelog-entry {
    transition: none;
    animation: none;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  width: 100vw;
  margin: 96px calc(50% - 50vw) 0;
  padding: 56px max(32px, calc((100vw - var(--shell-max)) / 2)) 36px;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.footer-divider { display: none; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 0;
}

.footer-brand-block,
.footer-column {
  display: grid;
  align-content: start;
  gap: 14px;
}

.footer-heading {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

.footer-subitems {
  display: grid;
  gap: 10px;
}

.footer-note,
.footer-copy,
.footer-contact,
.footer-column a,
.footer-column span {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
  transition: color 150ms ease;
}

.footer-contact a {
  color: var(--text);
  border-bottom: 1px solid var(--border-strong);
}
.footer-contact a:hover {
  border-bottom-color: var(--text);
}

.footer-column a:hover { color: var(--text); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 480ms ease, transform 480ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .text-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; gap: 32px; }
  .changelog-entry { grid-template-columns: 1fr; gap: 18px; padding: 24px; }
}

@media (max-width: 640px) {
  .topbar { height: 64px; }
  .nav { gap: 14px; font-size: 13px; }
  .nav a:not(.topbar-download-main):not([data-auto-download]) { display: none; }
  .nav .topbar-download-group ~ a { display: none; }
  .text-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .pricing-panel {
    max-width: 100%;
    padding: 32px 22px 24px;
  }
  .price { font-size: 52px; }
  .page-shell { padding: 64px 0 48px; }
  h1 { font-size: clamp(36px, 9.5vw, 56px); }
  h2 { font-size: clamp(26px, 6.5vw, 34px); }
  .section { padding-top: 88px; }
  .site-footer {
    margin: 80px calc(50% - 50vw) 0;
    padding: 44px 20px 28px;
  }
}
