:root {
  --bg-light: #ffffff;
  --bg-dark: #111113;
  --sidebar-light: #f8f8fa;
  --sidebar-dark: #161619;
  --surface-light: #f2f2f5;
  --surface-dark: #1e1e22;
  --surface-hover-light: #eaeaef;
  --surface-hover-dark: #27272c;
  --active-row-light: #eaeaf0;
  --active-row-dark: #25252b;
  --text-light: #141416;
  --text-dark: #f2f2f4;
  --muted-light: #4e4e55;
  --muted-dark: #a2a2ac;
  --subtle-light: #6a6a73;
  --subtle-dark: #81818b;
  --border-light: rgba(20, 20, 22, 0.09);
  --border-dark: rgba(242, 242, 244, 0.11);
  --border-strong-light: rgba(20, 20, 22, 0.16);
  --border-strong-dark: rgba(242, 242, 244, 0.2);
  --accent-light: #0071e3;
  --accent-dark: #4da3ff;
  --accent-hover-light: #0062c4;
  --accent-hover-dark: #6bb3ff;
  --accent-soft-light: rgba(0, 113, 227, 0.09);
  --accent-soft-dark: rgba(77, 163, 255, 0.14);
  --accent-text-light: #ffffff;
  --accent-text-dark: #07192d;
  --agent-light: #6e56cf;
  --agent-dark: #9e8cfc;
  --agent-soft-light: rgba(110, 86, 207, 0.1);
  --agent-soft-dark: rgba(158, 140, 252, 0.15);
  --shadow-light: 0 20px 50px rgba(20, 20, 22, 0.08), 0 1px 3px rgba(20, 20, 22, 0.06);
  --shadow-dark: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);

  --bg: var(--bg-light);
  --sidebar: var(--sidebar-light);
  --surface: var(--surface-light);
  --surface-hover: var(--surface-hover-light);
  --active-row: var(--active-row-light);
  --text: var(--text-light);
  --muted: var(--muted-light);
  --subtle: var(--subtle-light);
  --border: var(--border-light);
  --border-strong: var(--border-strong-light);
  --accent: var(--accent-light);
  --accent-hover: var(--accent-hover-light);
  --accent-soft: var(--accent-soft-light);
  --accent-text: var(--accent-text-light);
  --agent: var(--agent-light);
  --agent-soft: var(--agent-soft-light);
  --shadow: var(--shadow-light);

  @media (prefers-color-scheme: dark) {
    --bg: var(--bg-dark);
    --sidebar: var(--sidebar-dark);
    --surface: var(--surface-dark);
    --surface-hover: var(--surface-hover-dark);
    --active-row: var(--active-row-dark);
    --text: var(--text-dark);
    --muted: var(--muted-dark);
    --subtle: var(--subtle-dark);
    --border: var(--border-dark);
    --border-strong: var(--border-strong-dark);
    --accent: var(--accent-dark);
    --accent-hover: var(--accent-hover-dark);
    --accent-soft: var(--accent-soft-dark);
    --accent-text: var(--accent-text-dark);
    --agent: var(--agent-dark);
    --agent-soft: var(--agent-soft-dark);
    --shadow: var(--shadow-dark);
  }

  @supports (color: light-dark(white, black)) {
    --bg: light-dark(var(--bg-light), var(--bg-dark));
    --sidebar: light-dark(var(--sidebar-light), var(--sidebar-dark));
    --surface: light-dark(var(--surface-light), var(--surface-dark));
    --surface-hover: light-dark(var(--surface-hover-light), var(--surface-hover-dark));
    --active-row: light-dark(var(--active-row-light), var(--active-row-dark));
    --text: light-dark(var(--text-light), var(--text-dark));
    --muted: light-dark(var(--muted-light), var(--muted-dark));
    --subtle: light-dark(var(--subtle-light), var(--subtle-dark));
    --border: light-dark(var(--border-light), var(--border-dark));
    --border-strong: light-dark(var(--border-strong-light), var(--border-strong-dark));
    --accent: light-dark(var(--accent-light), var(--accent-dark));
    --accent-hover: light-dark(var(--accent-hover-light), var(--accent-hover-dark));
    --accent-soft: light-dark(var(--accent-soft-light), var(--accent-soft-dark));
    --accent-text: light-dark(var(--accent-text-light), var(--accent-text-dark));
    --agent: light-dark(var(--agent-light), var(--agent-dark));
    --agent-soft: light-dark(var(--agent-soft-light), var(--agent-soft-dark));
  }

  color-scheme: light dark;
  accent-color: var(--accent);

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --max: 1040px;
  --prose: 680px;
  --radius: 12px;
  --radius-lg: 18px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: currentColor;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  background: var(--text);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  left: 16px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

@supports (backdrop-filter: blur(12px)) {
  .site-header {
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    backdrop-filter: blur(12px);
  }
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  min-height: 44px;
}

.brand-mark {
  display: block;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-link:hover {
  color: var(--text);
  background: var(--surface);
}

.nav-link-signin {
  color: var(--text);
  font-weight: 500;
}

@media (max-width: 600px) {
  .nav-hide-sm {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 11px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

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

.btn-small {
  min-height: 36px;
  padding: 0 14px;
  font-size: 14px;
  border-radius: 9px;
}

.btn-nav {
  min-height: 36px;
  padding: 0 14px;
  font-size: 14px;
  border-radius: 9px;
  margin-left: 4px;
}

/* Hero */
.hero {
  padding: 44px 0 28px;
}

.hero-inner {
  max-width: 740px;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.hero-sub {
  margin: 0 0 24px;
  max-width: 620px;
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.55;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.cta-micro {
  margin: 0;
  max-width: 640px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

/* Fact strip */
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 30px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.facts dt,
.facts dd {
  margin: 0;
}

.fact-value {
  display: block;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.fact-label {
  display: block;
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}

@media (max-width: 720px) {
  .hero {
    padding: 36px 0 24px;
  }

  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
  }
}

@media (max-width: 560px) {
  .demo-badge {
    display: none;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn {
    width: 100%;
  }
}

/* Interactive workspace + MCP demo */
.showcase {
  padding: 20px 0 80px;
}

.demo-frame {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.demo-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: var(--sidebar);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

.demo-chrome-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.demo-dots {
  display: inline-flex;
  gap: 6px;
}

.demo-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}

.demo-url {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-badge {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.app-window {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  min-height: 360px;
}

.app-sidebar {
  min-width: 0;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
}

.app-sidebar-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.app-plus {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: none;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.app-plus:hover {
  background: var(--accent);
  color: var(--accent-text);
}

.app-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.app-search-icon {
  position: absolute;
  left: 11px;
  color: var(--subtle);
  pointer-events: none;
}

.app-search {
  width: 100%;
  height: 38px;
  padding: 0 42px 0 34px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}

.app-search::placeholder {
  color: var(--subtle);
}

.app-search:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg);
}

.app-kbd {
  position: absolute;
  right: 8px;
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid var(--border);
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--subtle);
  pointer-events: none;
}

.note-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.note-row {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-align: left;
  border: none;
  background: transparent;
  color: inherit;
  font-family: inherit;
  padding: 11px 12px;
  border-radius: 10px;
  cursor: pointer;
  display: block;
  transition: background-color 0.15s ease;
}

.note-row:hover {
  background: var(--surface-hover);
}

.note-row[aria-selected="true"] {
  background: var(--active-row);
}

.note-row.is-flash {
  background: var(--agent-soft);
}

.note-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.note-row-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.note-row-meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--subtle);
  flex-shrink: 0;
}

.agent-star {
  color: var(--agent);
  font-size: 12px;
}

.note-row-snippet {
  margin-top: 3px;
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.note-row-by {
  color: var(--agent);
  font-weight: 500;
}

.note-list-empty {
  padding: 28px 12px;
  text-align: center;
  font-size: 14px;
  color: var(--subtle);
}

.app-editor {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 20px 32px 24px;
  background: var(--bg);
}

.editor-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 24px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--subtle);
}

.editor-agent-line {
  color: var(--agent);
  font-weight: 500;
}

.editor-area {
  flex: 1;
  width: 100%;
  min-height: 220px;
  border: none;
  resize: none;
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  padding: 0;
}

.editor-area:focus {
  outline: none;
}

.editor-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--subtle);
}

/* MCP Transcript bar attached below the app window */
.mcp-bar {
  background: var(--sidebar);
  border-top: 1px solid var(--border);
  padding: 16px 20px;
}

.mcp-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.mcp-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--agent-soft);
  color: var(--agent);
  font-size: 12px;
  font-weight: 600;
}

.mcp-log {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  white-space: pre-wrap;
  word-break: break-word;
}

.mcp-log .tok-role {
  color: var(--text);
  font-weight: 600;
}

.mcp-log .tok-agent {
  color: var(--agent);
  font-weight: 600;
}

.mcp-log .tok-res {
  color: var(--muted);
}

.mcp-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.btn-agent {
  background: var(--agent-soft);
  color: var(--agent);
  border: 1px solid color-mix(in srgb, var(--agent) 28%, transparent);
}

.btn-agent:hover {
  background: var(--agent);
  color: #ffffff;
}

.demo-caption {
  margin: 14px 4px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 780px) {
  .app-window {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .app-editor {
    padding: 18px 16px 20px;
  }

  .editor-area {
    min-height: 200px;
  }

  .mcp-bar {
    grid-template-columns: 1fr;
  }

  .mcp-actions {
    align-items: flex-start;
  }
}

/* Sections */
.section {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.section-sub {
  margin: 0;
  font-size: 17px;
  color: var(--muted);
  line-height: 1.55;
}

/* Three pillars */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.pillar h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.pillar-kicker {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.pillar-kicker.is-agent {
  color: var(--agent);
}

.pillar p {
  margin: 0;
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.62;
}

@media (max-width: 820px) {
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Two-column cards (Notion + Exit, Pricing) */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.card {
  min-width: 0;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--sidebar);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.62;
}

.card .card-meta {
  font-size: 13.5px;
  color: var(--subtle);
}

.code-block {
  margin: 4px 0 0;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
  overflow-x: auto;
}

@media (max-width: 780px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 52px 0;
  }
}

/* Pricing */
.plan-card {
  min-width: 0;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--sidebar);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.plan-card.is-featured {
  background: var(--bg);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.plan-name {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.plan-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

.plan-price {
  margin: 0 0 6px;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.plan-price span {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}

.plan-lead {
  margin: 0 0 22px;
  font-size: 15px;
  color: var(--muted);
}

.plan-list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}

.plan-list li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}

.plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--subtle);
}

.plan-card.is-featured .plan-list li::before {
  background: var(--accent);
}

.plan-card .btn {
  width: 100%;
}

.plan-note {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.pricing-footnotes {
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.pricing-footnotes p {
  margin: 0;
}

.pricing-footnotes strong {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 780px) {
  .pricing-footnotes {
    grid-template-columns: 1fr;
  }
}

/* FAQ Accordion — following modern-web-guidance accordion rules */
.faq-list {
  max-width: 740px;
  border-top: 1px solid var(--border);
}

.faq-list details {
  border-bottom: 1px solid var(--border);
}

.faq-list summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 16px 4px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.012em;
  cursor: pointer;
  color: var(--text);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::before {
  content: "";
  inline-size: 1em;
  block-size: 1em;
  flex-shrink: 0;
  background-color: var(--muted);
  mask: url("/chevron.svg") no-repeat center / contain;
  rotate: -90deg;
}

.faq-list details[open] > summary::before {
  rotate: 0deg;
  background-color: var(--text);
}

.faq-list details::details-content {
  interpolate-size: allow-keywords;
  overflow: clip;
  contain: layout;
}

.faq-list details:not([open])::details-content {
  block-size: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .faq-list summary::before {
    transition: rotate 0.2s ease, background-color 0.2s ease;
  }

  .faq-list details::details-content {
    transition: block-size, content-visibility, display;
    transition-duration: 0.24s;
    transition-timing-function: ease-in-out;
    transition-behavior: allow-discrete;
  }
}

.faq-body {
  padding: 0 4px 20px 28px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

.faq-body p {
  margin: 0;
}

/* Closing CTA */
.closing {
  padding: 76px 0;
  border-top: 1px solid var(--border);
}

.closing-box {
  padding: 48px 36px;
  border-radius: var(--radius-lg);
  background: var(--sidebar);
  border: 1px solid var(--border);
  text-align: center;
}

.closing-box h2 {
  margin: 0 0 12px;
}

.closing-box p {
  margin: 0 auto 24px;
  max-width: 520px;
  font-size: 16px;
  color: var(--muted);
}

.closing-box .cta-row {
  justify-content: center;
  margin-bottom: 14px;
}

.closing-quiet {
  margin: 0;
  font-size: 13px;
  color: var(--subtle);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
  font-size: 14px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  text-decoration: none;
  color: var(--muted);
}

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

/* Legal / prose pages (/terms, /privacy, /404) */
.prose-wrap {
  width: 100%;
  max-width: var(--prose);
  margin: 0 auto;
  padding: 56px 24px 88px;
}

.prose-wrap h1 {
  font-size: clamp(30px, 4.5vw, 40px);
  margin-bottom: 16px;
}

.prose-wrap h2 {
  font-size: 21px;
  margin: 36px 0 12px;
}

.prose-wrap p,
.prose-wrap li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
}

.prose-wrap .prose-lead {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 28px;
}

.prose-wrap ul,
.prose-wrap ol {
  padding-left: 22px;
  margin: 0 0 16px;
}

.prose-wrap li {
  margin-bottom: 8px;
}

/* Subtle compositor-only scroll lift (never hides content at opacity 0) */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes settle-in {
      from {
        transform: translateY(12px);
      }
      to {
        transform: translateY(0);
      }
    }

    .reveal {
      animation: settle-in auto linear backwards;
      animation-timeline: view();
      animation-range: entry 0% entry 28%;
    }
  }
}
