:root {
  color-scheme: light;
  --surface-page: #f7f7f5;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-subtle: #eceef2;
  --surface-inverse: #101828;
  --text: #111827;
  --text-muted: #5d6678;
  --text-inverse: #f8fafc;
  --line: #d7dbe2;
  --line-strong: #aab2c0;
  --brand: #2557d6;
  --brand-strong: #1746b8;
  --brand-soft: #e7eeff;
  --warm: #d95d39;
  --warm-soft: #fce9e3;
  --danger: #b42318;
  --danger-soft: #fee4e2;
  --success: #18794e;
  --warning: #a15c00;
  --shadow-sm: 0 1px 2px rgb(17 24 39 / 0.08);
  --shadow-md: 0 12px 32px rgb(17 24 39 / 0.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --content: 1180px;
  --header-height: 72px;
  --font-sans: Inter, "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

[data-theme="dark"] {
  color-scheme: dark;
  --surface-page: #0d1117;
  --surface: #151b26;
  --surface-raised: #1a2230;
  --surface-subtle: #202838;
  --surface-inverse: #f6f7f9;
  --text: #f3f4f6;
  --text-muted: #a8b0bf;
  --text-inverse: #111827;
  --line: #30394a;
  --line-strong: #536078;
  --brand: #7aa2ff;
  --brand-strong: #a7c0ff;
  --brand-soft: #1e3264;
  --warm: #ff8a66;
  --warm-soft: #522b25;
  --danger: #ff8a7d;
  --danger-soft: #4b2228;
  --success: #6fd6a5;
  --warning: #f5bd67;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.22);
  --shadow-md: 0 16px 36px rgb(0 0 0 / 0.3);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--surface-page);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  background: var(--surface-page);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
summary,
select {
  touch-action: manipulation;
}

button,
summary,
select {
  cursor: pointer;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--text);
  line-height: 1.14;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 4.7rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: 1.25rem;
}

code,
pre,
.mono {
  font-family: var(--font-mono);
}

::selection {
  background: var(--brand-soft);
  color: var(--text);
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-inverse);
  color: var(--text-inverse);
  transform: translateY(-150%);
  transition: transform 160ms ease-out;
}

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

.container {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}

.lede {
  max-width: 700px;
  color: var(--text-muted);
  font-size: clamp(1.06rem, 2vw, 1.25rem);
  line-height: 1.65;
}

.small {
  color: var(--text-muted);
  font-size: 0.875rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  background: color-mix(in srgb, var(--surface-page) 92%, transparent);
  backdrop-filter: blur(12px);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 750;
  text-decoration: none;
}

.brand-mark {
  width: 29px;
  height: 29px;
  color: var(--brand);
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  background: var(--surface-subtle);
  color: var(--text);
}

.icon-button,
.menu-button,
.language-toggle {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.language-toggle {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.icon-button:hover,
.menu-button:hover,
.language-toggle:hover {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.icon-button svg,
.menu-button svg,
.inline-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.menu-button {
  display: none;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button-primary {
  background: var(--brand);
  color: #ffffff;
}

.button-primary:hover {
  background: var(--brand-strong);
}

[data-theme="dark"] .button-primary {
  color: #0b1220;
}

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

.button-secondary:hover {
  border-color: var(--brand);
  color: var(--brand-strong);
}

.button-quiet {
  background: transparent;
  color: var(--text-muted);
}

.button-danger {
  border-color: color-mix(in srgb, var(--danger) 35%, var(--line));
  background: var(--danger-soft);
  color: var(--danger);
}

.button[disabled] {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 10vw, 126px) 0 88px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand-soft) 20%, var(--surface-page)) 0%, var(--surface-page) 72%);
}

.hero::after {
  position: absolute;
  right: -160px;
  bottom: -240px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 12%, transparent) 0 28%, color-mix(in srgb, var(--brand) 5%, transparent) 48%, transparent 70%);
  content: "";
  filter: blur(10px);
  opacity: 0.72;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(430px, 0.98fr);
  gap: clamp(48px, 8vw, 100px);
  align-items: center;
}

.hero-copy h1 {
  max-width: 760px;
  margin-bottom: 28px;
}

.hero-copy h1 span {
  color: var(--brand-strong);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0 24px;
}

.framework-actions {
  margin-top: 0;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.hero-note span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-note svg {
  width: 16px;
  color: var(--success);
}

.product-stage {
  position: relative;
  min-height: 520px;
  padding: 18px;
  border-radius: 20px;
  background: var(--surface-raised);
  box-shadow: 0 28px 72px rgb(17 24 39 / 0.12), 0 4px 18px rgb(17 24 39 / 0.06);
}

.stage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 6px 14px;
  border-bottom: 1px solid var(--line);
}

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

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

.stage-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.viewer-mock {
  display: grid;
  grid-template-columns: 52px 1fr;
  min-height: 420px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--surface-subtle);
}

.viewer-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 8px;
  border-right: 1px solid var(--line);
  background: var(--surface);
}

.rail-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

.rail-icon.active {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.viewer-canvas {
  position: relative;
  display: grid;
  place-items: center;
  padding: 30px;
}

.document-page {
  width: min(100%, 286px);
  aspect-ratio: 0.74;
  padding: 36px 28px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.document-page .line {
  height: 7px;
  margin-bottom: 12px;
  border-radius: 2px;
  background: #dfe3e9;
}

.document-page .line.title {
  width: 66%;
  height: 13px;
  margin-bottom: 30px;
  background: #344054;
}

.document-page .line.short {
  width: 68%;
}

.source-highlight {
  position: absolute;
  width: 252px;
  height: 64px;
  border: 2px solid var(--warm);
  background: color-mix(in srgb, var(--warm-soft) 65%, transparent);
  transform: translate(8px, 42px);
}

.source-callout {
  position: absolute;
  right: 8px;
  bottom: 18px;
  width: min(248px, 62%);
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--brand) 45%, var(--line));
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.source-callout strong,
.source-callout span {
  display: block;
}

.source-callout strong {
  margin-bottom: 4px;
  font-size: 0.82rem;
}

.source-callout span {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

.proof-strip {
  padding: 0 0 clamp(36px, 5vw, 60px);
  background: var(--surface-page);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 10px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-subtle) 68%, var(--surface-page));
}

.proof-item {
  min-height: 104px;
  padding: 20px 22px;
}

.proof-item strong,
.proof-item span {
  display: block;
}

.proof-item strong {
  margin-bottom: 4px;
  color: var(--brand-strong);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.proof-item span {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.section {
  padding: clamp(76px, 10vw, 124px) 0;
}

.section-soft {
  background: color-mix(in srgb, var(--surface) 58%, var(--surface-page));
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.48fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}

.section-heading h2 {
  max-width: 760px;
  margin-bottom: 0;
}

.section-heading .lede {
  margin-bottom: 2px;
  font-size: 1.03rem;
}

.integration-grid,
.feature-grid,
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.integration-card,
.feature-card,
.plan-card {
  background: var(--surface);
}

.integration-card {
  min-height: 224px;
  padding: 8px clamp(12px, 2vw, 26px) 12px 0;
  background: transparent;
}

.card-index {
  display: inline-grid;
  width: 36px;
  height: 36px;
  margin-bottom: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
}

.integration-card p,
.feature-card p,
.plan-card p {
  color: var(--text-muted);
}

.code-window {
  overflow: hidden;
  border: 1px solid #27324a;
  border-radius: var(--radius-lg);
  background: #0b1020;
  color: #e6eaf2;
  box-shadow: var(--shadow-md);
}

.code-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 16px;
  border-bottom: 1px solid #27324a;
  color: #98a3b8;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.code-window pre {
  margin: 0;
  overflow-x: auto;
  padding: 28px;
  color: #e6eaf2;
  font-size: 0.84rem;
  line-height: 1.8;
  tab-size: 2;
}

.code-key {
  color: #8ab4ff;
}

.code-string {
  color: #ff9c7a;
}

.copy-button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid #3a4660;
  border-radius: 5px;
  background: #151d2e;
  color: #e6eaf2;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 700;
}

.feature-card {
  min-height: 280px;
  padding: 28px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 74%, var(--brand-soft));
}

.feature-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 44px;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.feature-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.plan-grid {
  align-items: stretch;
}

.plan-card {
  display: flex;
  min-height: 440px;
  flex-direction: column;
  padding: 30px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 78%, var(--surface-subtle));
}

.plan-card.featured {
  background: color-mix(in srgb, var(--brand-soft) 62%, var(--surface));
  box-shadow: 0 20px 50px rgb(37 87 214 / 0.14);
  transform: translateY(-10px);
}

.plan-label {
  margin-bottom: 18px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.plan-card h3 {
  margin-bottom: 8px;
  font-size: 1.5rem;
}

.plan-price {
  margin: 16px 0 24px;
  font-size: 1.9rem;
  font-weight: 750;
  line-height: 1.15;
}

.plan-list {
  display: grid;
  gap: 12px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.plan-list li {
  display: flex;
  gap: 9px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.plan-list svg {
  width: 17px;
  min-width: 17px;
  margin-top: 4px;
  color: var(--success);
}

.plan-card .button {
  width: 100%;
  margin-top: auto;
}

.enterprise-contact {
  flex-direction: column;
  gap: 5px;
  padding-block: 10px;
  line-height: 1.2;
}

.faq-list {
  display: grid;
  max-width: 880px;
  margin-inline: auto;
  gap: 8px;
}

.faq-list details {
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 74%, var(--surface-subtle));
}

.faq-list summary {
  min-height: 72px;
  padding: 22px 56px 22px 24px;
  font-weight: 700;
  list-style: none;
}

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

.faq-list details {
  position: relative;
}

.faq-list details::after {
  position: absolute;
  right: 24px;
  top: 23px;
  color: var(--text-muted);
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.2rem;
  pointer-events: none;
}

.faq-list details[open]::after {
  content: "−";
}

.faq-list details p {
  max-width: 740px;
  padding: 0 56px 24px 24px;
  color: var(--text-muted);
}

.final-cta {
  padding: 80px 0;
  background: var(--surface-inverse);
  color: var(--text-inverse);
}

.final-cta h2,
.final-cta p {
  color: inherit;
}

.final-cta-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.final-cta .button-primary {
  background: var(--brand);
}

.site-footer {
  padding: 52px 0 30px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.8fr) repeat(3, 1fr);
  gap: 48px;
}

.footer-grid h3 {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Legal */
.legal-page {
  min-height: calc(100dvh - var(--header-height));
  padding: clamp(56px, 8vw, 96px) 24px 120px;
}

.legal-article {
  width: min(100%, 760px);
  margin-inline: auto;
}

.legal-header {
  margin-bottom: 64px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.legal-kicker {
  margin-bottom: 16px;
  color: var(--brand-strong);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legal-header h1 {
  margin-bottom: 20px;
  font-size: clamp(2.75rem, 7vw, 4.8rem);
  letter-spacing: -0.045em;
}

.legal-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 36px 0 0;
}

.legal-meta div { display: grid; gap: 4px; }

.legal-meta dt {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.legal-meta dd { margin: 0; font-weight: 650; }

.legal-article section {
  margin-bottom: 48px;
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.legal-article section h2 {
  margin-bottom: 14px;
  font-size: 1.45rem;
}

.legal-article section p {
  color: var(--text-muted);
  line-height: 1.75;
}

.legal-article section p + p { margin-top: 14px; }
.legal-article a,
.legal-footer a { color: var(--brand-strong); }
.legal-footer .footer-bottom { margin-top: 0; }

@media (max-width: 620px) {
  .legal-page { padding-inline: 20px; }
  .legal-meta { grid-template-columns: 1fr; }
}

/* Interactive demo */
.demo-page {
  min-height: calc(100dvh - var(--header-height));
  padding: clamp(48px, 7vw, 82px) 0 72px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand-soft) 16%, var(--surface-page)) 0%, var(--surface-page) 340px);
}

.demo-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.46fr);
  gap: clamp(32px, 7vw, 88px);
  align-items: end;
  margin-bottom: 38px;
}

.demo-intro h1 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 5vw, 4.4rem);
}

.demo-intro .lede { margin-bottom: 0; }

.demo-privacy-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 72%, var(--brand-soft));
}

.demo-privacy-note svg {
  width: 24px;
  min-width: 24px;
  fill: none;
  stroke: var(--brand-strong);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.demo-privacy-note strong,
.demo-privacy-note span { display: block; }
.demo-privacy-note strong { margin-bottom: 2px; }

.demo-privacy-note span {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.demo-shell {
  overflow: hidden;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 28px 80px rgb(17 24 39 / 0.12), 0 4px 20px rgb(17 24 39 / 0.05);
}

.demo-toolbar {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 18px;
  background: var(--surface);
}

.demo-file-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
}

.demo-file-button {
  position: relative;
  cursor: pointer;
}

.demo-file-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.demo-file-button:has(input:disabled) {
  cursor: wait;
  opacity: 0.55;
}

.demo-document-summary {
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(120px, 1fr);
  gap: 2px 10px;
  align-items: center;
}

.demo-format {
  grid-row: 1 / 3;
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.demo-document-copy {
  display: flex;
  min-width: 0;
  gap: 8px;
  align-items: baseline;
}

.demo-document-copy strong {
  overflow: hidden;
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-document-copy > span,
.demo-host-status {
  color: var(--text-muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

.demo-host-status {
  grid-column: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-host-status[data-tone="error"] { color: var(--danger); }
.demo-host-status[data-tone="loading"] { color: var(--warning); }

.demo-viewer-host {
  position: relative;
  height: clamp(620px, 72vh, 820px);
  min-height: 620px;
  padding: 0 10px 10px;
  background: var(--surface);
}

.demo-viewer-host docviewkit-viewer {
  width: 100%;
  height: 100%;
  --dv-accent: var(--brand);
  --dv-radius: 12px;
}

.demo-drag-overlay {
  position: absolute;
  z-index: 30;
  inset: 14px 24px 24px;
  display: grid;
  place-content: center;
  place-items: center;
  gap: 12px;
  border: 2px dashed var(--brand);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 88%, var(--brand-soft));
  color: var(--brand-strong);
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.demo-viewer-host[data-dragging="true"] .demo-drag-overlay { opacity: 1; }

.demo-drag-overlay svg {
  width: 36px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.demo-supported {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr) auto;
  gap: 28px;
  align-items: baseline;
  padding-top: 34px;
}

.demo-supported p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.demo-supported a {
  color: var(--brand-strong);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .demo-intro { grid-template-columns: 1fr; }
  .demo-toolbar { align-items: stretch; flex-direction: column; gap: 12px; }
  .demo-document-summary { width: 100%; }
}

@media (max-width: 620px) {
  .demo-page { padding-top: 36px; }
  .demo-intro h1 { font-size: clamp(2.35rem, 12vw, 3.35rem); }

  .demo-shell {
    width: 100%;
    border-radius: 0;
    box-shadow: none;
  }

  .demo-file-actions .button {
    flex: 1;
    padding-inline: 10px;
    font-size: 0.84rem;
    white-space: nowrap;
  }

  .demo-document-copy > span { display: none; }

  .demo-viewer-host {
    height: 620px;
    min-height: 620px;
    padding-inline: 0;
  }

  .demo-viewer-host docviewkit-viewer { --dv-radius: 0; }

  .demo-supported {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* Documentation */
.docs-body {
  overflow: hidden;
}

.docs-shell {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr) 220px;
  height: calc(100dvh - var(--header-height));
}

.docs-sidebar,
.docs-outline {
  overflow-y: auto;
  padding: 28px 22px 48px;
  background: var(--surface);
}

.docs-sidebar {
  border-right: 1px solid var(--line);
}

.docs-outline {
  border-left: 1px solid var(--line);
}

.docs-search {
  position: relative;
  margin-bottom: 28px;
}

.docs-search input {
  width: 100%;
  height: 44px;
  padding: 0 12px 0 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-page);
  color: var(--text);
}

.docs-search svg {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 19px;
  color: var(--text-muted);
}

.docs-group {
  margin-bottom: 28px;
}

.docs-group-title,
.outline-title {
  margin-bottom: 8px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.docs-nav {
  display: grid;
  gap: 2px;
}

.docs-nav a,
.outline-list a {
  display: flex;
  min-height: 40px;
  align-items: center;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.88rem;
  text-decoration: none;
}

.docs-nav a[hidden],
.docs-group[hidden] {
  display: none;
}

.docs-nav a {
  padding: 7px 10px;
}

.docs-nav a:hover,
.docs-nav a[aria-current="page"] {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.docs-main {
  overflow-y: auto;
  scroll-behavior: smooth;
}

.docs-article {
  width: min(calc(100% - 48px), 800px);
  margin-inline: auto;
  padding: 68px 0 120px;
}

.docs-article-header {
  margin-bottom: 54px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.docs-article-header h1 {
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 5vw, 3.5rem);
}

.docs-article section {
  scroll-margin-top: 30px;
  margin-bottom: 54px;
}

.docs-article section h2 {
  margin-bottom: 20px;
  font-size: 1.7rem;
}

.docs-article p,
.docs-article li {
  color: var(--text-muted);
}

.docs-article ul {
  display: grid;
  gap: 8px;
  padding-left: 22px;
}

.docs-link-list a {
  color: var(--brand-strong);
}

.docs-code {
  position: relative;
  margin: 22px 0;
  overflow: hidden;
  border: 1px solid #27324a;
  border-radius: var(--radius-md);
  background: #0b1020;
}

.docs-code-header {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 0 16px;
  border-bottom: 1px solid #27324a;
  color: #98a3b8;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.docs-code pre {
  margin: 0;
  overflow-x: auto;
  padding: 22px;
  color: #e6eaf2;
  font-size: 0.82rem;
  line-height: 1.75;
}

.docs-callout {
  margin: 22px 0;
  padding: 18px 20px;
  border-left: 3px solid var(--brand);
  background: var(--brand-soft);
}

.docs-callout.warning {
  border-left-color: var(--warm);
  background: var(--warm-soft);
}

.docs-callout strong {
  display: block;
  margin-bottom: 4px;
}

.docs-callout p {
  margin-bottom: 0;
  color: var(--text);
}

.docs-table-wrap {
  margin: 24px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.docs-table th,
.docs-table td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.docs-table th {
  background: var(--surface-subtle);
  color: var(--text);
}

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

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

.outline-list {
  display: grid;
  gap: 3px;
}

.outline-list a {
  min-height: 34px;
  padding: 5px 0;
  font-size: 0.8rem;
}

.outline-list a:hover {
  color: var(--brand-strong);
}

.ai-doc-card {
  margin-top: 28px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
}

.ai-doc-card strong {
  display: block;
  margin-bottom: 5px;
  font-size: 0.86rem;
}

.ai-doc-card a {
  color: var(--brand-strong);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.docs-mobile-toggle {
  display: none;
}

/* Portal */
.portal-body {
  background: var(--surface-page);
}

.portal-shell {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  min-height: 100dvh;
}

.portal-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100dvh;
  flex-direction: column;
  padding: 22px 16px;
  border-right: 1px solid var(--line);
  background: var(--surface);
}

.portal-sidebar .brand {
  padding: 0 8px;
}

.portal-nav {
  display: grid;
  gap: 4px;
  margin-top: 38px;
}

.portal-nav :is(button, a) {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 650;
  text-align: left;
}

.portal-nav :is(button, a):hover,
.portal-nav :is(button, a)[aria-current="page"] {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.portal-nav svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.portal-account {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.account-chip {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  padding: 8px;
}

.avatar {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-weight: 750;
}

.account-chip > div strong,
.account-chip > div span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-chip > div strong {
  font-size: 0.84rem;
}

.account-chip > div span {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.portal-main {
  min-width: 0;
}

.portal-topbar {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-page) 93%, transparent);
}

.portal-topbar h1 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0;
}

.portal-content {
  width: min(calc(100% - 40px), 1120px);
  margin: 0 auto;
  padding: 44px 0 90px;
}

.portal-view[hidden],
.auth-shell[hidden],
.portal-shell[hidden],
.modal[hidden] {
  display: none !important;
}

.page-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.page-intro h2 {
  margin-bottom: 8px;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.page-intro p {
  max-width: 640px;
  margin-bottom: 0;
  color: var(--text-muted);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.metric-card,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.metric-card {
  padding: 22px;
}

.metric-card span,
.metric-card strong {
  display: block;
}

.metric-card span {
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.metric-card strong {
  font-size: 2rem;
  line-height: 1;
}

.panel {
  margin-bottom: 18px;
}

.panel-header {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}

.panel-header h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0;
}

.panel-body {
  padding: 20px;
}

.portal-grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 18px;
}

.empty-state {
  display: grid;
  min-height: 220px;
  place-items: center;
  padding: 34px;
  text-align: center;
}

.empty-state-icon {
  display: grid;
  width: 50px;
  height: 50px;
  margin: 0 auto 16px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.empty-state h3 {
  margin-bottom: 6px;
}

.empty-state p {
  max-width: 430px;
  margin-bottom: 20px;
  color: var(--text-muted);
}

.data-list {
  display: grid;
}

.panel-stack {
  display: grid;
  gap: var(--space-5);
}

.data-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  min-height: 72px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}

.data-row:last-child {
  border-bottom: 0;
}

.data-row strong,
.data-row span {
  display: block;
}

.data-row strong {
  font-size: 0.9rem;
}

.data-row span {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.admin-report-text {
  margin-top: 0.35rem;
  white-space: pre-wrap;
}

.admin-report-details {
  margin-top: 0.55rem;
}

.admin-report-details summary {
  color: var(--accent);
  cursor: pointer;
}

.admin-report-details pre {
  max-width: min(70vw, 60rem);
  overflow: auto;
  white-space: pre-wrap;
}

.status {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status.active,
.status.approved,
.status.released {
  border-color: color-mix(in srgb, var(--success) 35%, var(--line));
  color: var(--success);
}

.status.received,
.status.reviewing,
.status.fixing,
.status.canary_ready {
  border-color: color-mix(in srgb, var(--warning) 35%, var(--line));
  color: var(--warning);
}

.status.expired {
  border-color: color-mix(in srgb, var(--danger) 35%, var(--line));
  color: var(--danger);
}

.license-token {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  padding: 10px 10px 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-page);
}

.license-token code {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form-grid {
  display: grid;
  gap: 18px;
}

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

.field {
  display: grid;
  gap: 7px;
}

.field label,
.field legend {
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent);
  outline: 0;
}

.field-help,
.field-error {
  min-height: 20px;
  margin: 0;
  font-size: 0.76rem;
}

.field-help {
  color: var(--text-muted);
}

.field-error {
  color: var(--danger);
}

.checkbox-field {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--brand);
}

.checkbox-field label {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}

.upload-box {
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface-page);
}

.upload-box input {
  width: 100%;
  min-height: 44px;
  padding: 8px;
  border: 0;
  background: transparent;
}

.auth-shell {
  display: grid;
  min-height: 100dvh;
  grid-template-columns: minmax(340px, 0.85fr) minmax(420px, 1.15fr);
}

.auth-panel {
  display: grid;
  place-items: center;
  padding: 44px 24px;
  background: var(--surface);
}

.auth-card {
  width: min(100%, 430px);
}

.auth-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.auth-card .brand {
  margin-bottom: 72px;
}

.auth-card h1 {
  margin-bottom: 12px;
  font-size: 2.2rem;
}

.auth-card > p {
  margin-bottom: 30px;
  color: var(--text-muted);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 24px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-page);
}

.auth-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
}

.auth-tabs button[aria-selected="true"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.auth-form[hidden] {
  display: none;
}

.auth-form .button {
  width: 100%;
  margin-top: 8px;
}

.auth-visual {
  position: relative;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(40px, 6vw, 80px);
  background: #0f172a;
  color: #f8fafc;
}

.auth-visual h2,
.auth-visual p {
  color: inherit;
}

.auth-visual h2 {
  max-width: 640px;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
}

.auth-visual p {
  max-width: 560px;
  color: #b9c2d2;
  font-size: 1.05rem;
}

.auth-visual::after {
  position: absolute;
  right: -100px;
  bottom: -100px;
  width: 420px;
  height: 420px;
  border: 1px solid #334155;
  border-radius: 50%;
  box-shadow: 0 0 0 80px #182238, 0 0 0 160px #141c2d;
  content: "";
}

.auth-proof {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.auth-proof div {
  padding: 16px;
  border-top: 1px solid #334155;
}

.auth-proof strong,
.auth-proof span {
  display: block;
}

.auth-proof strong {
  margin-bottom: 4px;
  color: #8fb0ff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.auth-proof span {
  color: #b9c2d2;
  font-size: 0.82rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgb(2 13 16 / 0.58);
}

.modal-card {
  width: min(100%, 620px);
  max-height: min(90dvh, 820px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.modal-header {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}

.modal-header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.modal-body {
  padding: 22px;
}

.toast-region {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  display: grid;
  width: min(calc(100% - 40px), 380px);
  gap: 10px;
}

.toast {
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface-inverse);
  color: var(--text-inverse);
  box-shadow: var(--shadow-md);
  animation: toast-in 180ms ease-out;
}

.toast.error {
  border-color: var(--danger);
}

.skeleton {
  min-height: 72px;
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
  animation: pulse 1.2s ease-in-out infinite alternate;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
}

@keyframes pulse {
  to { opacity: 0.5; }
}

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

  .hero-copy {
    max-width: 790px;
  }

  .product-stage {
    width: min(100%, 680px);
  }

  .docs-shell {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .docs-outline {
    display: none;
  }

  .portal-grid-two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 840px) {
  .nav-links {
    position: fixed;
    left: 20px;
    right: 20px;
    top: calc(var(--header-height) + 8px);
    display: none;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    display: grid;
  }

  .nav-links .nav-link {
    width: 100%;
  }

  .menu-button {
    display: inline-grid;
  }

  .nav-actions .button {
    display: none;
  }

  .proof-grid,
  .integration-grid,
  .feature-grid,
  .plan-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }

  .docs-shell {
    display: block;
    height: calc(100dvh - var(--header-height));
  }

  .docs-sidebar {
    position: fixed;
    inset: var(--header-height) auto 0 0;
    z-index: 40;
    width: min(88vw, 320px);
    transform: translateX(-102%);
    transition: transform 200ms ease-out;
  }

  .docs-sidebar.open {
    transform: translateX(0);
  }

  .docs-mobile-toggle {
    display: inline-grid;
  }

  .portal-shell {
    grid-template-columns: 1fr;
  }

  .portal-sidebar {
    position: static;
    display: block;
    height: auto;
    padding: 12px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .portal-sidebar .brand,
  .portal-account {
    display: none;
  }

  .portal-nav {
    display: flex;
    margin: 0;
    overflow-x: auto;
  }

  .portal-nav :is(button, a) {
    flex: 0 0 auto;
  }

  .portal-topbar {
    min-height: 64px;
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    display: none;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(calc(100% - 28px), var(--content));
  }

  .site-header {
    --header-height: 64px;
  }

  .site-nav {
    gap: 4px;
  }

  .brand {
    flex-shrink: 0;
    gap: 6px;
    font-size: 0.96rem;
    white-space: nowrap;
  }

  .brand-mark {
    width: 26px;
    height: 26px;
  }

  .nav-actions {
    min-width: 0;
    gap: 0;
  }

  .nav-actions .nav-link {
    flex: 0 0 auto;
    padding-inline: 4px;
    font-size: 0.86rem;
    white-space: nowrap;
  }

  .nav-actions .icon-button,
  .nav-actions .language-toggle,
  .nav-actions .menu-button {
    width: 40px;
  }

  .hero {
    padding: 54px 0 64px;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 13vw, 3.6rem);
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .product-stage {
    min-height: 430px;
    padding: 12px;
  }

  .viewer-mock {
    grid-template-columns: 40px 1fr;
    min-height: 340px;
  }

  .viewer-rail {
    padding: 10px 3px;
  }

  .rail-icon {
    width: 30px;
    height: 30px;
  }

  .viewer-canvas {
    padding: 18px;
  }

  .document-page {
    padding: 28px 20px;
  }

  .source-highlight {
    width: 190px;
  }

  .source-callout {
    right: 2px;
    width: 64%;
  }

  .proof-grid,
  .integration-grid,
  .feature-grid,
  .plan-grid,
  .metric-grid,
  .field-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .plan-card.featured {
    transform: none;
  }

  .section {
    padding: 68px 0;
  }

  .section-heading {
    margin-bottom: 36px;
  }

  .final-cta-grid,
  .page-intro,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .final-cta .button {
    width: 100%;
  }

  .footer-grid > :first-child {
    grid-column: auto;
  }

  .docs-article {
    width: min(calc(100% - 28px), 800px);
    padding-top: 44px;
  }

  .docs-article-header h1 {
    font-size: 2.25rem;
  }

  .portal-content {
    width: min(calc(100% - 28px), 1120px);
    padding-top: 30px;
  }

  .page-intro .button {
    width: 100%;
  }

  .data-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .form-actions .button {
    width: 100%;
  }

  .auth-panel {
    align-items: start;
    padding-top: 28px;
  }

  .auth-card .brand {
    margin-bottom: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
