@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/SourceSerif4-Variable.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 200 900;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/SourceSerif4-Italic-Variable.woff2") format("woff2");
  font-display: swap;
  font-style: italic;
  font-weight: 200 900;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Variable.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono-Variable.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 100 800;
}

:root {
  color-scheme: light;
  --paper: #f7f4ee;
  --paper-soft: #ede8de;
  --surface: #ffffff;
  --surface-elevated: #fbfaf7;
  --text: #222222;
  --muted: #49443f;
  --faint: #6d665e;
  --line: rgba(34, 34, 34, 0.12);
  --line-strong: rgba(34, 34, 34, 0.2);
  --ink: #244a73;
  --ink-strong: #183858;
  --ink-soft: rgba(36, 74, 115, 0.11);
  --success: #5d8c63;
  --shadow: 0 34px 80px rgba(42, 37, 28, 0.16), 0 8px 24px rgba(42, 37, 28, 0.08);
  --display: "Source Serif 4", Georgia, serif;
  --body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, var(--ink-soft), transparent 34rem),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-soft) 100%);
  color: var(--text);
  font-family: var(--body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.28;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 42%);
}

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

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--ink) 62%, white);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-140%);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  font-weight: 760;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 72px;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 760;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
  font-family: var(--display);
  font-size: 21px;
  font-weight: 680;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 660;
}

.nav-links a,
.site-footer nav a {
  transition: color 180ms ease;
}

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

.nav-cta,
.waitlist-form button,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 24px color-mix(in srgb, var(--ink) 28%, transparent);
  cursor: pointer;
  font-size: 14px;
  font-weight: 760;
}

.button-link.secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--text);
  box-shadow: none;
}

.hero,
.page-hero {
  position: relative;
  isolation: isolate;
}

.hero {
  padding: 88px 0 62px;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--paper) 92%, transparent) 0%, color-mix(in srgb, var(--paper) 66%, transparent) 48%, color-mix(in srgb, var(--paper) 26%, transparent) 100%),
    linear-gradient(180deg, transparent 0%, var(--paper) 96%),
    url("hero-reading-atmosphere.webp") right center / cover no-repeat;
}

.hero::after,
.page-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.44;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 72%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
  align-items: center;
  gap: 56px;
}

.hero-copy-block,
.product-frame,
.workspace-preview article,
.waitlist-form {
  min-width: 0;
  max-width: 100%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--success) 18%, transparent);
  content: "";
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 640;
  letter-spacing: 0;
  overflow-wrap: break-word;
  text-wrap: balance;
}

h1 {
  margin-top: 22px;
  max-width: 820px;
  font-size: clamp(48px, 5.8vw, 86px);
  line-height: 0.96;
}

h2 {
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1.02;
}

h3 {
  font-size: 25px;
  line-height: 1.12;
}

p {
  line-height: 1.62;
}

.lede {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  text-wrap: pretty;
}

.waitlist-form {
  margin-top: 28px;
}

.waitlist-form label {
  display: block;
  margin-bottom: 9px;
  color: var(--faint);
  font-size: 13px;
  font-weight: 720;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(220px, 340px) auto;
  gap: 12px;
}

.form-row.stacked {
  grid-template-columns: 1fr;
}

.waitlist-form input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--text);
  padding: 0 18px;
}

.waitlist-form p {
  margin: 10px 0 0;
  color: var(--faint);
  font-size: 13px;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.trust-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  color: var(--muted);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 660;
}

.product-frame {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  border-bottom: 1px solid var(--line);
  padding: 0 18px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
}

.window-dots {
  display: inline-flex;
  gap: 7px;
}

.window-dots span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--line-strong);
}

.workspace-preview {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 420px;
}

.workspace-preview aside {
  border-right: 1px solid var(--line);
  padding: 20px 14px;
  background: color-mix(in srgb, var(--paper-soft) 54%, transparent);
}

.workspace-preview article {
  padding: 42px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
}

.small-label,
.format-card code {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.file-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px;
  color: var(--muted);
  font-size: 13px;
}

.file-row.active {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.file-row b {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
}

.workspace-preview article h2 {
  margin-top: 16px;
  font-size: clamp(34px, 4vw, 54px);
}

.workspace-preview article p {
  color: var(--muted);
  font-size: 17px;
}

.note-card {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  border-left: 4px solid var(--ink);
  border-radius: 10px;
  background: var(--ink-soft);
  padding: 18px 20px;
  color: var(--muted);
}

.note-card strong {
  color: var(--text);
}

.section {
  padding: 88px 0;
}

.section-head {
  max-width: 780px;
}

.section-head h2,
.split h2,
.cta-panel h2 {
  margin-top: 14px;
}

.section-head p,
.split p,
.cta-panel p {
  color: var(--muted);
  font-size: 18px;
}

.card-grid {
  display: grid;
  gap: 18px;
  margin-top: 32px;
}

.card-grid.six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.card-grid.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.format-card,
.plain-card,
.theme-card,
.info-panel,
.table-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: 0 18px 42px rgba(42, 37, 28, 0.06);
}

.format-card,
.plain-card,
.theme-card,
.info-panel {
  padding: 24px;
}

.format-card {
  min-height: 230px;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.format-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--ink) 42%, var(--line));
  box-shadow: 0 24px 60px rgba(42, 37, 28, 0.12);
}

.format-card h3,
.plain-card h3 {
  margin-top: 22px;
}

.format-card p,
.plain-card p,
.theme-card p,
.info-panel p {
  color: var(--muted);
}

.split-section {
  background: color-mix(in srgb, var(--surface) 46%, transparent);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 44px;
}

.theme-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.theme-card {
  min-height: 280px;
}

.theme-card span {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.theme-card h3 {
  margin-top: 26px;
}

.theme-card.midnight {
  background: #121417;
  color: #e8e3d8;
}

.theme-card.midnight p {
  color: #a39d92;
}

.theme-card.midnight span {
  color: #6d93c0;
}

.page-hero {
  padding: 86px 0 54px;
}

.page-hero .lede {
  max-width: 760px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--faint);
  font-size: 13px;
  font-weight: 660;
}

.crumbs a {
  color: var(--ink);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.45fr);
  gap: 28px;
  align-items: start;
}

.feature-list {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  color: var(--muted);
}

.feature-list li::before {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--ink-soft);
  color: var(--ink);
  content: "+";
  font-weight: 800;
}

.table-card {
  overflow: hidden;
}

.support-table {
  width: 100%;
  border-collapse: collapse;
}

.support-table th,
.support-table td {
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
  text-align: left;
}

.support-table th {
  background: color-mix(in srgb, var(--paper-soft) 70%, transparent);
  color: var(--faint);
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.support-table td {
  color: var(--muted);
}

.support-table tr:last-child td {
  border-bottom: 0;
}

.callout-panel,
.cta-panel {
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--ink-soft) 84%, transparent), transparent 58%),
    color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: var(--shadow);
}

.callout-panel {
  padding: 28px;
}

.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 34px;
  align-items: center;
  padding: 34px;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 42px 0;
  color: var(--muted);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  font-size: 14px;
  font-weight: 660;
}

@media (max-width: 980px) {
  .nav-shell {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero-grid,
  .split,
  .content-grid,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .product-frame {
    max-width: 720px;
  }

  .card-grid.six,
  .card-grid.five,
  .card-grid.four,
  .card-grid.three,
  .theme-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .container {
    width: calc(100vw - 72px);
    max-width: calc(100vw - 72px);
  }

  .site-header {
    position: static;
  }

  .nav-shell {
    display: flex;
    justify-content: space-between;
    min-height: 66px;
    gap: 14px;
  }

  .nav-cta {
    display: none;
  }

  .hero,
  .page-hero {
    padding: 54px 0 42px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, color-mix(in srgb, var(--paper) 90%, transparent) 0%, var(--paper) 90%),
      url("hero-reading-atmosphere.webp") center top / cover no-repeat;
  }

  h1 {
    font-size: clamp(38px, 11vw, 48px);
    line-height: 1.02;
    overflow-wrap: anywhere;
  }

  .lede {
    width: min(100%, 300px);
    max-width: 100%;
    font-size: 18px;
  }

  .hero-form,
  .trust-list {
    width: min(100%, 300px);
  }

  .hero-copy-block {
    width: min(100%, 330px);
    max-width: calc(100vw - 72px);
  }

  .product-frame {
    width: min(100%, 330px);
    max-width: calc(100vw - 72px);
  }

  .hero-grid {
    width: 100%;
    max-width: calc(100vw - 72px);
    overflow: hidden;
  }

  h1,
  .lede {
    max-width: calc(100vw - 72px);
  }

  .trust-list {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: start;
  }

  h2 {
    font-size: clamp(32px, 10vw, 44px);
  }

  .form-row,
  .card-grid.six,
  .card-grid.five,
  .card-grid.four,
  .card-grid.three,
  .theme-pair {
    grid-template-columns: 1fr;
  }

  .workspace-preview {
    grid-template-columns: 1fr;
  }

  .workspace-preview aside {
    display: none;
  }

  .workspace-preview article {
    padding: 28px;
  }

  .section {
    padding: 58px 0;
  }

  .support-table {
    min-width: 640px;
  }

  .table-card {
    overflow-x: auto;
  }

  .footer-grid {
    display: grid;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

/* Editorial system pass: ViewRight should feel like a field guide, not a SaaS template. */
.site-header {
  background: color-mix(in srgb, var(--paper) 94%, transparent);
}

.brand {
  letter-spacing: 0.01em;
}

.nav-links {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nav-cta,
.waitlist-form button,
.button-link {
  border-radius: 6px;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  padding: 70px 0 76px;
}

.hero::before {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--paper) 98%, transparent) 0%, color-mix(in srgb, var(--paper) 86%, transparent) 42%, color-mix(in srgb, var(--paper) 52%, transparent) 100%),
    linear-gradient(180deg, transparent 0%, var(--paper) 96%),
    url("hero-reading-atmosphere.webp") right center / cover no-repeat;
}

.editorial-hero {
  grid-template-columns: minmax(560px, 0.95fr) minmax(420px, 0.9fr);
  align-items: center;
}

.hero-copy-block {
  position: relative;
}

.hero-copy-block::before {
  position: absolute;
  left: -36px;
  top: 10px;
  bottom: 8px;
  width: 1px;
  background: var(--line-strong);
  content: "";
}

.eyebrow,
.chapter-label {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  display: none;
}

h1 {
  max-width: 760px;
  font-size: clamp(54px, 5.5vw, 86px);
  line-height: 0.92;
}

.lede {
  max-width: 560px;
  color: color-mix(in srgb, var(--text) 72%, var(--muted));
}

.waitlist-form input {
  border-radius: 6px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
}

.trust-list li {
  border-radius: 4px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}

.specimen-spread {
  position: relative;
  min-height: 590px;
}

.specimen {
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--line-strong) 78%, transparent);
  background:
    linear-gradient(90deg, rgba(34, 34, 34, 0.035) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--surface);
  box-shadow: 0 32px 80px rgba(42, 37, 28, 0.16);
  color: var(--text);
}

.specimen span {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.specimen p {
  color: var(--muted);
}

.specimen-main {
  right: 0;
  top: 24px;
  z-index: 3;
  width: min(520px, 100%);
  min-height: 490px;
  padding: 48px 52px;
}

.specimen-main h2 {
  margin-top: 26px;
  font-size: clamp(48px, 5vw, 72px);
  line-height: 0.9;
}

.specimen-main ol {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding-left: 22px;
  color: var(--muted);
}

.specimen-pdf,
.specimen-note {
  width: 260px;
  padding: 28px;
}

.specimen-pdf {
  left: 10px;
  top: 0;
  z-index: 1;
  transform: rotate(-4deg);
}

.specimen-note {
  left: 80px;
  bottom: 12px;
  z-index: 2;
  transform: rotate(3deg);
}

.reader-switcher {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow: 0 34px 90px rgba(42, 37, 28, 0.18);
  backdrop-filter: blur(14px);
}

.switcher-topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 18px 20px;
}

.switcher-label,
.switcher-status,
.reader-switcher strong,
.segmented button,
.demo-pane pre,
.rendered-doc span {
  font-family: var(--mono);
}

.switcher-label,
.switcher-status {
  display: block;
  color: var(--ink);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reader-switcher strong {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 560;
}

.switcher-controls {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper-soft) 52%, transparent);
  padding: 12px 14px;
}

.segmented {
  display: inline-flex;
  gap: 4px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  padding: 4px;
}

.segmented button {
  min-height: 34px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.segmented button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

.reader-stage {
  position: relative;
  min-height: 476px;
  background:
    linear-gradient(90deg, rgba(34, 34, 34, 0.035) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--surface);
}

.demo-pane {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 420ms ease,
    transform 420ms ease;
  pointer-events: none;
}

.demo-pane.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.demo-pane pre {
  height: 100%;
  margin: 0;
  overflow: auto;
  padding: 34px 38px;
  color: #24384d;
  font-size: 13px;
  line-height: 1.72;
  white-space: pre-wrap;
}

.demo-pane code {
  font-family: inherit;
}

.rendered-doc {
  padding: 42px 48px;
}

.rendered-doc span {
  color: var(--ink);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rendered-doc h2 {
  margin-top: 28px;
  max-width: 420px;
  font-size: clamp(48px, 4.8vw, 70px);
  line-height: 0.9;
}

.rendered-doc h3 {
  margin-top: 28px;
  font-size: 28px;
}

.rendered-doc p,
.rendered-doc li,
.rendered-doc dd {
  color: var(--muted);
  font-size: 17px;
}

.rendered-callout {
  margin-top: 24px;
  border-left: 4px solid var(--ink);
  background: var(--ink-soft);
  padding: 16px 18px;
}

.rendered-callout p {
  margin: 6px 0 0;
}

.rendered-html dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 26px;
}

.rendered-html dl div {
  border-top: 1px solid var(--line-strong);
  padding-top: 14px;
}

.rendered-html dt {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rendered-html dd {
  margin: 8px 0 0;
}

.source-render-hero {
  display: grid;
  grid-template-columns: minmax(560px, 1.08fr) minmax(360px, 0.78fr);
  grid-template-rows: auto minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  box-shadow: 0 34px 90px rgba(42, 37, 28, 0.16);
  backdrop-filter: blur(14px);
}

.source-render-hero,
.source-switcher,
.source-stage,
.hero-render {
  min-width: 0;
}

.source-switcher {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 630px;
  border-left: 1px solid var(--line-strong);
  background:
    linear-gradient(90deg, rgba(34, 34, 34, 0.035) 1px, transparent 1px) 0 0 / 28px 28px,
    color-mix(in srgb, var(--paper-soft) 70%, transparent);
}

.comparison-rail {
  grid-column: 1 / -1;
  position: relative;
  display: grid;
  grid-template-columns: minmax(560px, 1.08fr) minmax(360px, 0.78fr);
  align-items: center;
  border-bottom: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.comparison-rail span {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 0 clamp(28px, 4vw, 72px);
}

.comparison-rail span:first-child {
  grid-column: 1;
  grid-row: 1;
  background: var(--ink);
  color: #fff;
}

.comparison-arrow {
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  justify-content: flex-end;
  background: transparent;
  color: color-mix(in srgb, #fff 88%, var(--ink));
  padding-right: 28px;
  padding-left: 28px;
}

.comparison-arrow b {
  display: inline-block;
  margin-left: 8px;
  font-family: var(--body);
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-1px);
}

.comparison-rail span:last-child {
  grid-column: 2;
  grid-row: 1;
  justify-content: flex-start;
  padding-left: clamp(30px, 3.5vw, 52px);
}

.comparison-rail span:last-child strong {
  color: var(--text);
  font-weight: 900;
  letter-spacing: 0.12em;
}

.source-switcher-top {
  display: grid;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 22px;
}

.source-switcher-top .segmented {
  width: max-content;
  justify-self: start;
}

.source-switcher strong {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 560;
}

.source-stage {
  position: relative;
  min-height: 0;
}

.source-pane {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(-10px);
  transition:
    opacity 360ms ease,
    transform 360ms ease;
  pointer-events: none;
}

.source-pane.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.source-pane pre {
  height: 100%;
  margin: 0;
  overflow: auto;
  padding: 30px 28px;
  color: #24384d;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.72;
  white-space: pre-wrap;
}

.source-pane code {
  font-family: inherit;
}

.hero-render {
  display: grid;
  align-content: start;
  min-height: 630px;
  padding: clamp(34px, 4vw, 52px) clamp(44px, 5vw, 76px);
  background:
    linear-gradient(90deg, rgba(34, 34, 34, 0.03) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--surface);
}

.hero-render h1 {
  max-width: 620px;
  font-size: clamp(36px, 3.2vw, 52px);
  line-height: 1.08;
}

.hero-render .lede {
  max-width: 600px;
  font-size: clamp(18px, 1.45vw, 20px);
}

.hero-render .form-row {
  grid-template-columns: minmax(230px, 340px) auto;
}

.hero-render .trust-list {
  max-width: 560px;
}

.section {
  border-top: 1px solid var(--line);
  padding: 96px 0;
}

.section-head {
  display: grid;
  grid-template-columns: 160px minmax(0, 760px);
  column-gap: 54px;
  max-width: 1060px;
}

.section-head .chapter-label {
  grid-row: span 2;
  padding-top: 12px;
}

.section-head p:not(.chapter-label) {
  grid-column: 2;
}

.card-grid {
  gap: 0;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line);
}

.format-card,
.plain-card,
.theme-card,
.info-panel {
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: color-mix(in srgb, var(--surface) 58%, transparent);
  box-shadow: none;
}

.format-card {
  min-height: 260px;
}

.format-card:hover {
  transform: none;
  border-color: var(--line);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  box-shadow: none;
}

.format-card code {
  display: inline-block;
  margin-bottom: 34px;
}

.split-section {
  background:
    linear-gradient(90deg, var(--paper) 0%, color-mix(in srgb, var(--surface) 62%, transparent) 100%);
}

.theme-card {
  min-height: 330px;
}

.theme-card h3 {
  font-size: 34px;
}

.plain-card h3,
.format-card h3 {
  font-size: 28px;
}

.page-hero {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--paper) 96%, transparent), color-mix(in srgb, var(--surface) 54%, transparent)),
    radial-gradient(circle at top right, var(--ink-soft), transparent 36rem);
}

.page-hero h1 {
  max-width: 900px;
}

.crumbs {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cta-panel,
.callout-panel,
.table-card {
  border-radius: 0;
  box-shadow: none;
}

.support-table th {
  font-family: var(--mono);
}

@media (max-width: 980px) {
  .editorial-hero,
  .section-head {
    grid-template-columns: 1fr;
  }

  .section-head p:not(.chapter-label) {
    grid-column: auto;
  }

  .hero-copy-block::before {
    display: none;
  }

  .specimen-spread {
    min-height: 520px;
  }
}

@media (max-width: 680px) {
  .hero {
    min-height: 0;
    padding: 52px 0 58px;
  }

  h1 {
    font-size: clamp(42px, 12.5vw, 52px);
    line-height: 0.98;
  }

  .lede,
  .hero-form,
  .trust-list {
    width: 100%;
  }

  .hero-copy-block,
  .product-frame,
  .specimen-spread,
  h1,
  .lede {
    max-width: 100%;
  }

  .hero-grid {
    width: calc(100vw - 72px);
    max-width: calc(100vw - 72px);
  }

  .specimen-spread {
    min-height: auto;
    display: grid;
    gap: 12px;
    margin-top: 42px;
  }

  .specimen {
    position: static;
    width: 100%;
    min-height: 0;
    transform: none;
    box-shadow: 0 16px 42px rgba(42, 37, 28, 0.1);
  }

  .specimen-main {
    padding: 30px;
  }

  .specimen-main h2 {
    font-size: 46px;
  }

  .specimen-pdf,
  .specimen-note {
    padding: 24px;
  }

  .reader-switcher {
    width: 100%;
    max-width: 100%;
  }

  .switcher-topbar,
  .switcher-controls {
    display: grid;
  }

  .segmented {
    width: 100%;
  }

  .segmented button {
    flex: 1;
    padding: 0 8px;
  }

  .reader-stage {
    min-height: 520px;
  }

  .demo-pane pre,
  .rendered-doc {
    padding: 28px;
  }

  .rendered-doc h2 {
    font-size: 44px;
  }

  .rendered-html dl {
    grid-template-columns: 1fr;
  }

  .source-render-hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    width: min(330px, calc(100vw - 72px));
    max-width: min(330px, calc(100vw - 72px));
    margin-right: auto;
    margin-left: auto;
    overflow: hidden;
  }

  .comparison-rail {
    display: none;
  }

  .source-switcher-top::before {
    display: none;
  }

  .source-switcher {
    order: 1;
    min-height: 560px;
    border-left: 0;
    border-bottom: 0;
  }

  .hero-render {
    order: 2;
    display: block;
    min-height: 0;
    padding: 22px 20px 34px;
    border-top: 1px solid var(--line-strong);
  }

  .source-switcher .segmented {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-render .eyebrow,
  .hero-render h1,
  .hero-render .lede,
  .hero-render .trust-list {
    display: none;
  }

  .hero-render h1 {
    font-size: clamp(42px, 12.5vw, 54px);
    line-height: 0.98;
  }

  .hero-render .form-row {
    grid-template-columns: 1fr;
  }

  .hero-render .waitlist-form,
  .hero-render .waitlist-form input,
  .hero-render .waitlist-form button,
  .hero-render .trust-list {
    width: 100%;
    max-width: 100%;
  }

  .section-head {
    display: block;
  }

  .card-grid {
    border-left: 0;
  }

  .format-card,
  .plain-card,
  .theme-card,
  .info-panel {
    border-right: 0;
  }
}

/* Subpage product proof sections */
.proof-section {
  border-top: 1px solid var(--line);
  padding: 82px 0;
}

.proof-shell {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  box-shadow: 0 28px 70px rgba(42, 37, 28, 0.1);
}

.proof-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 56px;
  border-bottom: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  padding: 0 22px;
}

.proof-kicker,
.proof-meta,
.doc-tab,
.ledger-key {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.proof-meta {
  color: var(--faint);
}

.markdown-proof-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1fr);
}

.mini-source,
.mini-render {
  min-width: 0;
}

.mini-source {
  border-right: 1px solid var(--line-strong);
  background:
    linear-gradient(90deg, rgba(34, 34, 34, 0.035) 1px, transparent 1px) 0 0 / 28px 28px,
    color-mix(in srgb, var(--paper-soft) 70%, transparent);
}

.mini-source pre {
  margin: 0;
  overflow: auto;
  padding: 30px;
  color: #24384d;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.72;
  white-space: pre-wrap;
}

.mini-render {
  padding: clamp(34px, 5vw, 58px);
  background:
    linear-gradient(90deg, rgba(34, 34, 34, 0.025) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--surface);
}

.mini-render h2 {
  max-width: 680px;
  font-size: clamp(42px, 4.5vw, 64px);
  line-height: 0.95;
}

.mini-render p,
.mini-render li {
  max-width: 640px;
  color: var(--muted);
  font-size: 17px;
}

.mini-render ul {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding-left: 20px;
}

.reader-frame {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 210px;
  min-height: 620px;
  background: color-mix(in srgb, var(--paper-soft) 58%, transparent);
}

.reader-side,
.reader-notes {
  padding: 22px;
}

.reader-side {
  border-right: 1px solid var(--line-strong);
}

.reader-notes {
  border-left: 1px solid var(--line-strong);
}

.reader-page-wrap {
  display: grid;
  place-items: start center;
  padding: 38px;
}

.pdf-page {
  width: min(100%, 520px);
  min-height: 690px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 24px 62px rgba(42, 37, 28, 0.12);
  padding: 48px 54px;
}

.pdf-page h2,
.docx-paper h2 {
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.02;
}

.pdf-page p,
.docx-paper p,
.reader-notes p,
.format-atlas p,
.ledger-row p,
.waitlist-manifest p {
  color: var(--muted);
}

.thumb-list,
.doc-list,
.manifest-list {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.thumb-list li,
.doc-list li {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
}

.thumb-list li:first-child,
.doc-list li:first-child {
  border-color: color-mix(in srgb, var(--ink) 44%, var(--line));
  background: var(--surface);
  color: var(--text);
}

.docx-frame {
  background: color-mix(in srgb, var(--paper-soft) 58%, transparent);
}

.docx-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  padding: 12px 16px;
}

.docx-toolbar span {
  min-height: 32px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 7px 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.docx-stage {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  min-height: 560px;
}

.docx-stage aside {
  border-right: 1px solid var(--line-strong);
  padding: 22px;
}

.docx-paper-wrap {
  display: grid;
  place-items: start center;
  padding: 36px;
}

.docx-paper {
  width: min(100%, 640px);
  min-height: 620px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 24px 62px rgba(42, 37, 28, 0.12);
  padding: 56px 62px;
}

.format-atlas {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line);
}

.format-atlas article {
  min-height: 320px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 64%, transparent);
  padding: 24px;
}

.format-atlas article:nth-child(even) {
  background: color-mix(in srgb, var(--paper-soft) 54%, transparent);
}

.format-atlas h3 {
  margin-top: 34px;
  font-size: 30px;
}

.privacy-ledger {
  display: grid;
  border-top: 1px solid var(--line-strong);
}

.ledger-row {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 230px;
  gap: 24px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  padding: 24px;
}

.ledger-row strong {
  display: block;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 620;
}

.ledger-status {
  color: var(--success);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.waitlist-proof {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.55fr);
  gap: 0;
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}

.waitlist-manifest,
.waitlist-form-panel {
  padding: clamp(28px, 4vw, 44px);
}

.waitlist-form-panel {
  border-left: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--paper-soft) 60%, transparent);
}

.manifest-list li {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  color: var(--muted);
}

.manifest-list strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-family: var(--display);
  font-size: 24px;
  font-weight: 620;
}

@media (max-width: 980px) {
  .markdown-proof-grid,
  .reader-frame,
  .docx-stage,
  .ledger-row,
  .waitlist-proof {
    grid-template-columns: 1fr;
  }

  .mini-source,
  .reader-side,
  .reader-notes,
  .docx-stage aside,
  .waitlist-form-panel {
    border-right: 0;
    border-left: 0;
  }

  .mini-source,
  .reader-side,
  .docx-stage aside {
    border-bottom: 1px solid var(--line-strong);
  }

  .reader-notes,
  .waitlist-form-panel {
    border-top: 1px solid var(--line-strong);
  }

  .format-atlas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .proof-section {
    padding: 58px 0;
  }

  .proof-header {
    display: grid;
    padding: 16px 18px;
  }

  .mini-source pre,
  .mini-render,
  .reader-side,
  .reader-notes,
  .reader-page-wrap,
  .docx-paper-wrap,
  .docx-stage aside,
  .waitlist-manifest,
  .waitlist-form-panel {
    padding: 22px;
  }

  .pdf-page,
  .docx-paper {
    min-height: 0;
    padding: 32px 28px;
  }

  .format-atlas {
    grid-template-columns: 1fr;
    border-left: 0;
  }

  .format-atlas article {
    min-height: 0;
    border-right: 0;
  }

  .ledger-row {
    gap: 12px;
    padding: 22px;
  }
}
