:root {
  color-scheme: light;
  --ink: #172123;
  --muted: #596466;
  --paper: #f6f7f3;
  --white: #ffffff;
  --line: #cbd3cf;
  --coral: #ed674e;
  --coral-dark: #b94335;
  --green: #2f7354;
  --sky: #b8d7da;
  --header-height: 68px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.site-header {
  position: relative;
  z-index: 20;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 72px);
  background: var(--paper);
  border-bottom: 1px solid rgba(23, 33, 35, 0.16);
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; }
.brand img { border-radius: 7px; }
.site-nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 650; }
.site-nav a, .site-footer a { text-decoration-thickness: 1px; text-underline-offset: 5px; }
.site-nav a:hover, .site-nav a:focus-visible, .site-footer a:hover, .site-footer a:focus-visible { text-decoration: underline; }

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.menu-button span { display: block; height: 2px; margin: 5px 0; background: var(--ink); }

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-height) - 72px);
  isolation: isolate;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #30423f;
}
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 43%; z-index: -3; }
.hero-scrim { position: absolute; inset: 0; z-index: -2; background: rgba(12, 20, 21, 0.64); }
.hero-content { width: min(680px, 88vw); margin-left: clamp(20px, 8vw, 120px); padding: 70px 0 110px; color: var(--white); }
.eyebrow { margin: 0 0 12px; color: var(--coral); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.hero .eyebrow { color: #ffab98; }
h1, h2, h3, p { letter-spacing: 0; }
h1 { margin: 0; font-size: clamp(52px, 8vw, 112px); line-height: 0.94; font-weight: 820; }
.hero-copy { max-width: 590px; margin: 28px 0 0; font-size: clamp(18px, 2vw, 24px); line-height: 1.45; color: #edf3f0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid transparent; border-radius: 5px; font-weight: 750; }
.button-primary { background: var(--coral); color: #1b2021; }
.button-primary:hover, .button-primary:focus-visible { background: #ff8068; }
.button-secondary { border-color: rgba(255,255,255,0.72); color: var(--white); }
.button-secondary:hover, .button-secondary:focus-visible { background: rgba(255,255,255,0.12); }
.hero-next { position: absolute; left: clamp(20px, 8vw, 120px); bottom: 25px; color: var(--white); font-size: 13px; font-weight: 700; }
.hero-next span { padding-left: 7px; }

.compare-section { padding: 92px clamp(20px, 7vw, 104px) 112px; background: var(--white); }
.section-heading { width: min(720px, 100%); margin-bottom: 44px; }
h2 { margin: 0; font-size: clamp(36px, 5vw, 66px); line-height: 1.04; font-weight: 790; }
.section-heading > p:last-child { max-width: 620px; margin: 22px 0 0; color: var(--muted); font-size: 18px; }
.comparison { --position: 58%; position: relative; width: min(1180px, 100%); aspect-ratio: 14 / 9; overflow: hidden; background: var(--sky); border: 1px solid var(--ink); }
.comparison > img, .comparison-after, .comparison-after img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.comparison-after { clip-path: inset(0 calc(100% - var(--position)) 0 0); }
.comparison-label { position: absolute; top: 16px; padding: 7px 10px; border-radius: 4px; background: rgba(23, 33, 35, 0.86); color: #fff; font-size: 12px; font-weight: 800; }
.comparison-label-before { right: 16px; }
.comparison-label-after { left: 16px; }
.comparison-line { position: absolute; top: 0; bottom: 0; left: var(--position); width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; }
.comparison-line::after { content: "\2194"; position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; display: grid; place-items: center; transform: translate(-50%, -50%); border: 2px solid #fff; border-radius: 50%; background: var(--coral); color: var(--ink); font-size: 22px; font-weight: 900; }
.comparison-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }

.principles { display: grid; grid-template-columns: minmax(260px, 0.8fr) minmax(360px, 1.2fr); gap: clamp(50px, 10vw, 150px); padding: 110px clamp(20px, 7vw, 104px); background: #dfeceb; }
.principles-intro h2 { font-size: clamp(34px, 4vw, 56px); }
.principle-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(23,33,35,0.32); }
.principle-list li { display: grid; grid-template-columns: 54px 1fr; gap: 20px; padding: 27px 0; border-bottom: 1px solid rgba(23,33,35,0.32); }
.principle-list li > span { color: var(--coral-dark); font-size: 13px; font-weight: 850; }
.principle-list h3 { margin: 0 0 7px; font-size: 21px; }
.principle-list p { margin: 0; color: #465456; }

.legal-band { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 92px clamp(20px, 7vw, 104px); background: var(--ink); color: var(--white); }
.legal-band h2 { max-width: 650px; font-size: clamp(34px, 4vw, 56px); }
.legal-links { border-top: 1px solid rgba(255,255,255,0.32); }
.legal-links a { min-height: 76px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,0.32); font-size: 18px; font-weight: 700; }
.legal-links a:hover span:last-child { transform: translateX(5px); }
.legal-links span:last-child { transition: transform 160ms ease; }

.site-footer { min-height: 110px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 25px clamp(20px, 5vw, 72px); border-top: 1px solid var(--line); font-size: 13px; }
.site-footer p { margin: 0; color: var(--muted); text-align: center; }
.site-footer nav { display: flex; justify-content: flex-end; gap: 22px; }

.document-main { min-height: calc(100vh - var(--header-height)); }
.demo-notice { padding: 12px clamp(20px, 5vw, 72px); background: #ffe5dd; border-bottom: 1px solid #d58c7c; color: #762b21; font-size: 14px; font-weight: 750; text-align: center; }
.document-hero { padding: 76px clamp(20px, 7vw, 104px) 54px; border-bottom: 1px solid var(--line); background: #dfeceb; }
.document-hero h1 { max-width: 900px; font-size: clamp(44px, 7vw, 88px); }
.document-meta { margin: 20px 0 0; color: var(--muted); }
.document-layout { display: grid; grid-template-columns: 250px minmax(0, 760px); gap: clamp(45px, 8vw, 120px); padding: 66px clamp(20px, 7vw, 104px) 110px; }
.document-toc { align-self: start; position: sticky; top: 24px; }
.document-toc p { margin: 0 0 14px; font-size: 12px; font-weight: 800; text-transform: uppercase; color: var(--muted); }
.document-toc a { display: block; padding: 7px 0; color: var(--muted); font-size: 14px; }
.document-toc a:hover, .document-toc a:focus-visible { color: var(--coral-dark); text-decoration: underline; text-underline-offset: 4px; }
.document-content section { scroll-margin-top: 24px; }
.document-content section + section { margin-top: 52px; padding-top: 4px; }
.document-content h2 { margin-bottom: 18px; font-size: 30px; line-height: 1.2; }
.document-content h3 { margin: 28px 0 10px; font-size: 19px; }
.document-content p, .document-content li { color: #394547; }
.document-content ul { padding-left: 22px; }
.document-content a { color: var(--coral-dark); text-decoration: underline; text-underline-offset: 3px; }

:focus-visible { outline: 3px solid #ff9d89; outline-offset: 3px; }

@media (max-width: 760px) {
  :root { --header-height: 62px; }
  .site-header { padding: 0 18px; }
  .menu-button { display: block; }
  .site-nav { display: none; position: absolute; top: calc(100% + 1px); left: 0; right: 0; padding: 18px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .site-nav.is-open { display: grid; gap: 0; }
  .site-nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); }
  .hero { min-height: calc(100svh - var(--header-height) - 44px); align-items: flex-end; }
  .hero-image { object-position: 57% center; }
  .hero-content { margin: 0 20px; padding: 70px 0 90px; }
  h1 { font-size: clamp(48px, 17vw, 72px); }
  .hero-copy { font-size: 18px; }
  .hero-actions { display: grid; }
  .hero-next { left: 20px; }
  .compare-section { padding-top: 72px; padding-bottom: 82px; }
  .comparison { aspect-ratio: 4 / 3; }
  .comparison > img, .comparison-after img { object-position: center; }
  .principles, .legal-band { grid-template-columns: 1fr; gap: 42px; padding-top: 76px; padding-bottom: 76px; }
  .site-footer { grid-template-columns: 1fr; justify-items: start; }
  .site-footer p { text-align: left; }
  .site-footer nav { justify-content: flex-start; }
  .document-hero { padding-top: 56px; }
  .document-layout { grid-template-columns: 1fr; padding-top: 42px; }
  .document-toc { position: static; border-bottom: 1px solid var(--line); padding-bottom: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
