:root {
  color-scheme: light;
  --ink: #171719;
  --paper: #f4f3f7;
  --white: #ffffff;
  --line: #d8d6dc;
  --muted: #5f5d65;
  --oxide: #b83c2e;
  --teal: #087f70;
  --amber: #9a6800;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif; letter-spacing: 0; line-height: 1.55; }
a { color: inherit; }

.site-header { position: sticky; top: 0; z-index: 20; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px clamp(18px, 4vw, 64px); background: rgba(244, 243, 247, 0.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 780; text-decoration: none; }
.brand img { border-radius: 8px; }
nav { display: flex; gap: clamp(14px, 3vw, 30px); }
nav a, footer a { color: var(--muted); font-weight: 650; text-decoration: none; }
nav a:hover, nav a:focus-visible, footer a:hover, footer a:focus-visible { color: var(--oxide); }

.hero { position: relative; min-height: min(80vh, 820px); overflow: hidden; background: var(--white); border-bottom: 1px solid var(--line); }
.hero picture, .hero-media { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { object-fit: cover; object-position: center 12%; }
.hero-copy { position: absolute; inset: auto 0 0; padding: clamp(28px, 4vw, 52px) 0; background: rgba(244, 243, 247, 0.92); border-top: 1px solid rgba(23, 23, 25, 0.16); }
.hero-inner, .content { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.hero-inner { max-width: 960px; margin-left: max(20px, calc((100% - 1180px) / 2)); }
.eyebrow { margin: 0 0 10px; color: var(--teal); font-size: 0.82rem; font-weight: 820; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; line-height: 1.08; }
h1 { max-width: 900px; margin-bottom: 16px; font-size: clamp(2.3rem, 6vw, 4.2rem); }
h2 { max-width: 850px; margin-bottom: 18px; font-size: clamp(1.8rem, 4vw, 3.3rem); }
h3 { margin-bottom: 8px; font-size: 1.2rem; }
.lede, .section-lede { max-width: 830px; margin: 0; color: #37363b; font-size: clamp(1.05rem, 2.2vw, 1.35rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.primary-action, .secondary-action { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 10px 16px; border: 1px solid var(--oxide); border-radius: 6px; font-weight: 760; text-decoration: none; }
.primary-action { background: var(--oxide); color: var(--white); }
.secondary-action { color: var(--oxide); }

.band { padding: clamp(64px, 9vw, 120px) 0; }
.workflow { background: var(--white); padding-top: clamp(38px, 5vw, 58px); }
.section-lede { margin-bottom: 42px; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-grid article { padding: 28px; border-right: 1px solid var(--line); }
.feature-grid article:first-child { padding-left: 0; }
.feature-grid article:last-child { padding-right: 0; border-right: 0; }
.feature-grid p { margin: 0; color: var(--muted); }
.step { display: block; margin-bottom: 24px; color: var(--oxide); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 800; }

.proof { background: #ecebef; }
.proof-layout { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr); align-items: center; gap: clamp(36px, 7vw, 96px); }
.proof img { display: block; width: 100%; max-height: 760px; object-fit: contain; object-position: top; }
.proof p { color: var(--muted); }
.checklist { margin: 26px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.checklist li { padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 650; }
.checklist li::before { content: "✓"; margin-right: 10px; color: var(--teal); }

.boundary { background: var(--white); }
.boundary-layout, .privacy-layout { display: grid; grid-template-columns: 1.1fr 1fr auto; align-items: end; gap: 36px; }
.boundary-layout p, .privacy-layout p { margin: 0; color: var(--muted); }
.text-link { color: var(--oxide); font-weight: 760; }
.boundary-layout .text-link { max-width: 180px; }
.privacy-band { background: var(--ink); color: var(--white); }
.privacy-layout p { color: #d8d6dc; }
.privacy-layout .eyebrow { color: #62c8b8; }
.privacy-layout .text-link { color: #ff8174; white-space: nowrap; }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 30px clamp(20px, 4vw, 64px); color: var(--muted); border-top: 1px solid var(--line); }
footer span:last-child { display: flex; gap: 20px; }
.legal-main { min-height: calc(100vh - 130px); background: var(--white); }
.legal-hero { padding: clamp(60px, 10vw, 118px) 0 42px; border-bottom: 1px solid var(--line); background: var(--paper); }
.legal-hero p { max-width: 790px; margin: 0; color: var(--muted); font-size: 1.1rem; }
.legal-copy { width: min(860px, calc(100% - 40px)); margin: 0 auto; padding: 52px 0 90px; }
.legal-copy h2 { margin-top: 44px; font-size: 1.5rem; }
.legal-copy p, .legal-copy li { color: #403e44; }
.support-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 36px 0; background: var(--line); border: 1px solid var(--line); }
.support-options section { padding: 24px; background: var(--white); }
.support-options h2 { margin-top: 0; }

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid article { border-bottom: 1px solid var(--line); }
  .feature-grid article:nth-child(2) { padding-right: 0; border-right: 0; }
  .feature-grid article:nth-child(3) { padding-left: 0; }
  .feature-grid article:nth-child(n+3) { border-bottom: 0; }
  .proof-layout, .boundary-layout, .privacy-layout { grid-template-columns: 1fr; align-items: start; }
  .boundary-layout .text-link { max-width: none; }
}

@media (max-width: 640px) {
  .site-header { align-items: flex-start; }
  nav { flex-wrap: wrap; justify-content: flex-end; font-size: 0.9rem; }
  .hero { min-height: 78vh; }
  .hero-media { object-position: center top; }
  .hero-copy { padding: 28px 0 34px; }
  .hero-actions a { flex: 1 1 155px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article, .feature-grid article:first-child, .feature-grid article:nth-child(2), .feature-grid article:nth-child(3), .feature-grid article:last-child { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .feature-grid article:last-child { border-bottom: 0; }
  .support-options { grid-template-columns: 1fr; }
  footer { flex-direction: column; }
}

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