:root {
  --bg: #08070A;
  --card: #101014;
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --accent: #3dd6c6;
  --accent-hover: #4ee4d4;
  --accent-soft: rgba(61, 214, 198, 0.1);
  --stroke: rgba(255, 255, 255, 0.08);
  --stroke-strong: rgba(255, 255, 255, 0.12);
  --avatar: #2a2830;
  --error: #f87171;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --container: 76rem;
  --section-pad: clamp(4rem, 8vw, 6.5rem);
  --focus-ring: 0 0 0 3px rgba(61, 214, 198, 0.35);
  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
}

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

html {
  scroll-behavior: smooth;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus {
  outline: none;
}

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

.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;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  border-radius: 0.375rem;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */

.site-header {
  position: relative;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
  width: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  color: var(--accent);
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-link:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}

.btn-nav {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

main {
  flex: 1;
  width: 100%;
}

.section-label {
  margin: 0 0 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-lead {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 42ch;
  text-wrap: pretty;
}

/* Hero */

.hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem) 1.5rem var(--section-pad);
}

.hero-stage {
  position: relative;
  min-height: clamp(20rem, 48vw, 34rem);
}

.hero-dots {
  position: absolute;
  top: 4%;
  right: 0;
  width: min(52%, 38rem);
  height: 90%;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.28) 1px, transparent 1px);
  background-size: 20px 20px;
  mask-image: linear-gradient(to left, black 55%, transparent 100%);
}

.hero-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: inherit;
  max-width: min(78%, 54rem);
  padding: clamp(1rem, 3vw, 2rem) 0;
}

.hero-risk {
  margin: 0;
  font-size: clamp(2.75rem, 7.5vw, 5.25rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--text);
  text-wrap: balance;
}

.hero-overlay .lead {
  margin-top: clamp(1rem, 2.5vw, 1.75rem);
  max-width: 58ch;
}

.lead {
  margin: 0 0 2rem;
  font-size: clamp(1rem, 2vw, 1.1875rem);
  color: var(--text-muted);
  max-width: 32ch;
  text-wrap: pretty;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Story (problem | purpose) */

.story {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem var(--section-pad);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 3.5rem);
  align-items: start;
}

@media (min-width: 56rem) {
  .story-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 3rem;
  }
}

.story-block h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3.5vw, 2.125rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.story-block p:not(.section-label) {
  margin: 0;
  color: var(--text-muted);
  text-wrap: pretty;
}

/* How it works */

.how-it-works {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--section-pad) 1.5rem;
  border-top: 1px solid var(--stroke);
}

.how-head {
  max-width: 48rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  text-align: left;
}

.how-head .section-lead {
  margin-inline: 0;
  max-width: 50.4ch; /* was 42ch; ~20% wider */
}

.how-head h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.how-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.how-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.how-step:last-child {
  padding-bottom: 0;
}

.how-step-marker {
  position: relative;
  width: 1px;
  /* Center the 0.75rem dot on the h3 line box (font-size × line-height). */
  padding-top: calc((clamp(1.375rem, 2.5vw, 1.75rem) * 1.2 - 0.75rem) / 2);
}

.how-step-marker span {
  position: relative;
  z-index: 1;
  display: block;
  width: 0.75rem;
  height: 0.75rem;
  /* Center the wide dot on the 1px spine. */
  margin-left: calc(0.5px - 0.375rem);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* Spine from top of marker down to the top edge of the dot. */
.how-step:not(:first-child) .how-step-marker::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: calc((clamp(1.375rem, 2.5vw, 1.75rem) * 1.2 - 0.75rem) / 2);
  background: var(--stroke);
}

/* Spine from bottom edge of the dot through step padding to the next dot. */
.how-step:not(:last-child) .how-step-marker::after {
  content: "";
  position: absolute;
  left: 0;
  top: calc((clamp(1.375rem, 2.5vw, 1.75rem) * 1.2 - 0.75rem) / 2 + 0.75rem);
  bottom: calc(
    -1 * (clamp(2.5rem, 5vw, 4rem) + (clamp(1.375rem, 2.5vw, 1.75rem) * 1.2 - 0.75rem) / 2)
  );
  width: 1px;
  background: var(--stroke);
}

.how-step-body {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 3vw, 2rem);
  min-width: 0;
}

.how-step-copy h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.how-step-copy p {
  margin: 0;
  color: var(--text-muted);
  text-wrap: pretty;
}

.story-block code,
.how-step-copy code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  padding: 0.1rem 0.35rem;
  border-radius: 0.25rem;
  background: var(--card);
  color: var(--accent);
}

.how-step-media {
  margin: 0;
}

.how-step-media img {
  display: block;
  width: 100%;
  height: auto;
  border: none;
}

.how-step-media--workflow {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.how-step-media--workflow img {
  width: 100%;
  min-width: 40rem;
  height: auto;
}

/* Benefits */

.benefits {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--section-pad) 1.5rem;
  border-top: 1px solid var(--stroke);
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 40rem) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 3rem;
  }
}

.benefit-card h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.2;
  color: var(--text);
}

.benefit-card p {
  margin: 0;
  color: var(--text-muted);
  text-wrap: pretty;
}

/* Founder */

.founder {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--section-pad) 1.5rem;
  border-top: 1px solid var(--stroke);
}

.founder-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  margin-inline: auto;
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--stroke);
  border-radius: 0.75rem;
  background: var(--card);
}

@media (min-width: 48rem) {
  .founder-card {
    width: 75%;
  }
}

@media (min-width: 40rem) {
  .founder-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.75rem;
  }
}

.founder-avatar {
  flex-shrink: 0;
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--stroke);
  display: block;
}

.founder-copy h2 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.founder-role {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--text);
}

.founder-copy p:last-child {
  margin: 0;
  color: var(--text-muted);
  text-wrap: pretty;
}

/* CTA */

.cta-final {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  width: min(100%, calc(var(--container) - 3rem));
  margin: 0 auto var(--section-pad);
  padding: clamp(2.5rem, 5vw, 3.5rem) 1.5rem;
  font-family: inherit;
  text-align: center;
  color: var(--text);
  background: var(--card);
  border: 2px solid var(--accent);
  border-radius: 0.75rem;
  cursor: pointer;
  appearance: none;
  transition:
    background var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out);
}

.cta-final:hover {
  background: color-mix(in srgb, var(--card) 92%, var(--accent));
  border-color: var(--accent-hover);
}

.cta-final:hover .cta-final-sub {
  color: var(--accent-hover);
}

.cta-final:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.cta-final-title {
  display: block;
  max-width: 36ch;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.cta-final-sub {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* FAQ */

.faq {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem var(--section-pad);
}

.faq-layout {
  max-width: 50.4rem; /* was 42rem; ~20% wider */
}

.faq-copy h2 {
  margin: 0 0 2rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.faq-list {
  margin: 0;
}

.faq-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--stroke);
}

.faq-item:first-of-type {
  padding-top: 0;
}

.faq-item dt {
  margin: 0 0 0.5rem;
  font-weight: 600;
  font-size: 1rem;
}

.faq-item dd {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  text-wrap: pretty;
}

.faq-policy-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-out);
}

.faq-policy-link:hover {
  color: var(--accent-hover);
}

.faq-policy-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 0.15rem;
}

.faq-policy-panel {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: 0;
  opacity: 0;
  transition:
    grid-template-rows var(--duration-normal) var(--ease-out),
    opacity var(--duration-normal) var(--ease-out),
    margin-top var(--duration-normal) var(--ease-out);
}

.faq-policy-panel.is-open {
  grid-template-rows: 1fr;
  margin-top: 0.85rem;
  opacity: 1;
}

.faq-policy-panel[hidden] {
  display: none;
}

.faq-policy-panel.is-open[hidden] {
  display: grid;
}

.faq-policy-box {
  overflow: hidden;
  min-height: 0;
  border: 1px solid var(--stroke-strong);
  border-radius: 0.65rem;
  background: color-mix(in srgb, var(--card) 88%, #000);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.faq-policy-caption {
  margin: 0;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--stroke);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.faq-policy-caption code {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
}

.faq-policy-pre {
  margin: 0;
  padding: 0.85rem 0.9rem 1rem;
  max-height: min(22rem, 55vh);
  overflow: auto;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.45;
  color: #d4d4d8;
  -webkit-overflow-scrolling: touch;
}

.faq-policy-pre code {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  white-space: pre;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition:
    background var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

button.btn {
  appearance: none;
}

a.btn:hover {
  text-decoration: none;
}

.btn:active:not(:disabled) {
  transform: translateY(1px);
}

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

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

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--stroke);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-outline:focus-visible {
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}

.btn-lg {
  padding: 0.8rem 1.6rem;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.6;
}

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: 2rem 1.5rem 2.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  border-top: 1px solid var(--stroke);
  width: 100%;
}

.footer-brand {
  font-weight: 600;
  color: var(--text);
}

.footer-left {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
}

.footer-copy {
  font-size: 0.8125rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

.footer-nav a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}

/* Cookie consent */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  opacity: 0;
  transform: translateY(0.75rem);
  transition:
    opacity var(--duration-normal) var(--ease-out),
    transform var(--duration-normal) var(--ease-out);
}

.cookie-banner--visible {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

.cookie-banner-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--stroke-strong);
  border-radius: 0.75rem;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
}

.cookie-banner-copy {
  flex: 1 1 16rem;
  min-width: 0;
}

.cookie-banner-title {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

.cookie-banner-desc {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-muted);
  text-wrap: pretty;
}

.cookie-banner-desc a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner-desc a:hover {
  color: var(--accent-hover);
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-cookie {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

@media (max-width: 40rem) {
  .cookie-banner-actions {
    width: 100%;
  }

  .cookie-banner-actions .btn {
    flex: 1 1 auto;
  }
}

/* Drawer */

body.drawer-open {
  overflow: hidden;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
}

.drawer[hidden] {
  display: none;
}

.drawer--open {
  pointer-events: auto;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 8, 0.8);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.drawer--open .drawer-backdrop {
  opacity: 1;
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(100%, 26rem);
  height: 100%;
  padding: 1.5rem;
  background: var(--card);
  border-left: 1px solid var(--stroke);
  box-shadow: -16px 0 48px rgba(0, 0, 0, 0.45);
  transform: translateX(100%);
  transition: transform var(--duration-normal) var(--ease-out);
}

.drawer--open .drawer-panel {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.drawer-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.drawer-lead {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.drawer-close {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  padding: 0;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--stroke);
  border-radius: 0.375rem;
}

.drawer-close:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.drawer-close:focus-visible {
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.field-label {
  font-size: 0.875rem;
  font-weight: 500;
}

.field input {
  width: 100%;
  padding: 0.625rem 0.75rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--stroke);
  border-radius: 0.5rem;
  /* Kill global :focus-visible ring; focus uses overlay outline below. */
  outline: none;
}

.field input:focus,
.field input:focus-visible {
  /* Overlay border — no layout shift, no paint into adjacent gaps. */
  outline: 2px solid var(--accent);
  outline-offset: -1px;
  border-color: var(--stroke);
  box-shadow: none;
}

.field input:user-invalid:not(:placeholder-shown) {
  border-color: var(--error);
}

.waitlist-form[hidden],
.waitlist-success[hidden] {
  display: none !important;
}

.waitlist-success:not([hidden]) {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.waitlist-success p {
  margin: 0;
  color: var(--text-muted);
}

.waitlist-error {
  margin: 0;
  font-size: 0.875rem;
  color: var(--error);
}

/* Legal pages */

.legal-page {
  max-width: 40rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.legal-page h1 {
  margin: 0 0 1rem;
}

.legal-page h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}

.legal-page p {
  color: var(--text-muted);
}

.legal-page .section-label {
  color: var(--accent);
}

.legal-page ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.legal-page li + li {
  margin-top: 0.5rem;
}

.doc-page {
  max-width: 48rem;
}

.doc-page h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.doc-page h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
}

.doc-page ul,
.doc-page ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.doc-page li + li {
  margin-top: 0.35rem;
}

.doc-page table {
  width: 100%;
  margin: 1rem 0 1.5rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.doc-page th,
.doc-page td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--stroke);
}

.doc-page th {
  font-weight: 600;
  color: var(--text);
}

.doc-page td {
  color: var(--text-muted);
}

.doc-meta {
  margin: 0 0 2rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Mobile */

@media (max-width: 40rem) {
  .hero-overlay {
    max-width: 100%;
  }

  .hero-dots {
    top: 10%;
    width: min(70%, 18rem);
    height: 70%;
    opacity: 0.75;
  }

  .hero-risk {
    font-size: clamp(2rem, 9vw, 2.75rem);
  }

  .hero-stage {
    min-height: clamp(18rem, 70vw, 26rem);
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .doc-page table {
    display: block;
    overflow-x: auto;
  }
}
