:root {
  --bg: #ffffff;
  --bg-soft: #f4f8f7;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #5b6b7d;
  --line: #d6e2e0;
  --accent: #0f766e;
  --accent-ink: #ffffff;
  --accent-dark: #0b5e58;
  --accent-soft: #e6f2f0;
  --warn: #92400e;
  --warn-soft: #fff8eb;
  --radius: 12px;
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Manrope", var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.015em; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 28px; } }
.narrow { max-width: 780px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent-dark); }
.btn-small { padding: 8px 16px; font-size: .92rem; white-space: nowrap; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-family: var(--display); font-size: 1.3rem; font-weight: 600; }
.brand strong { color: var(--accent); font-weight: 800; }
.site-header nav { margin-left: auto; }
.site-header nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.site-header nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; }
.site-header nav a:hover { color: var(--accent); }
.site-header nav a.is-active { color: var(--accent); font-weight: 700; }
@media (max-width: 900px) {
  .site-header nav { display: none; }
  .header-inner .btn-small { margin-left: auto; }
}
@media (max-width: 380px) {
  .header-inner .btn-small { padding: 7px 12px; font-size: .85rem; }
}

/* Hero */
.hero { padding: 64px 0 56px; background: linear-gradient(180deg, var(--bg-soft), var(--bg)); }
.hero-grid { display: grid; gap: 48px; }
.hero-grid > div:first-child { max-width: 760px; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1fr 1.15fr; align-items: center; gap: 56px; } }
.steps-line { font-family: var(--display); font-weight: 700; color: var(--ink); font-size: 1.05rem; margin-top: 4px; }
@media (min-width: 900px) { .hero { padding: 80px 0 72px; } }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--accent); margin-bottom: .8em; }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 38em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.access-note { margin: 14px 0 0; font-size: .92rem; color: var(--muted); }
.browser-frame {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 60px -20px rgba(15, 23, 42, .28), 0 4px 12px rgba(15, 23, 42, .06);
}
.browser-bar { display: flex; gap: 6px; padding: 10px 14px; background: #eef3f2; border-bottom: 1px solid var(--line); }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: #c8d4d2; }
.browser-frame img { display: block; width: 100%; height: auto; }

/* Sections */
section { padding: 72px 0; }
.section-lede { font-size: 1.08rem; max-width: 42em; margin-bottom: 36px; }
.problem { background: var(--bg); padding-top: 32px; }
.problem p { font-size: 1.1rem; }

.how { background: var(--bg-soft); }
.how .section-lede { margin-bottom: 28px; }
.steps { display: grid; gap: 14px; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  display: block; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.step:hover { border-color: var(--accent); }
.step[aria-selected="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), 0 10px 24px -14px rgba(15, 118, 110, .5); }
.step-num {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-weight: 800; font-family: var(--display);
  margin-bottom: 12px; transition: background .15s, color .15s;
}
.step[aria-selected="true"] .step-num { background: var(--accent); color: #fff; }
.step-title { display: block; font-family: var(--display); font-weight: 700; color: var(--ink); font-size: 1.08rem; margin-bottom: 6px; }
.step-text { display: block; font-size: .95rem; }
.step-panels { margin-top: 28px; display: grid; gap: 28px; }
/* Stacked layout: each step's screenshot sits directly under its card. */
@media (max-width: 639.98px) {
  .how-grid { display: grid; gap: 14px; }
  .how-grid .steps, .how-grid .step-panels { display: contents; }
  #step-tab-1 { order: 1; } #step-panel-1 { order: 2; }
  #step-tab-2 { order: 3; } #step-panel-2 { order: 4; }
  #step-tab-3 { order: 5; } #step-panel-3 { order: 6; }
  #step-tab-4 { order: 7; } #step-panel-4 { order: 8; }
  .how-grid .step-panel:not([hidden]) { margin-bottom: 10px; }
}
.step-panel { margin: 0; }
.step-panel[hidden] { display: none; }
.steps.is-interactive ~ .step-panels .step-panel:not([hidden]) { animation: step-fade .25s ease; }
@keyframes step-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .step, .step-num { transition: none; } .steps.is-interactive ~ .step-panels .step-panel:not([hidden]) { animation: none; } }

.card-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: #fff; }
.card p { margin: 0; font-size: .97rem; }
.icon { width: 40px; height: 40px; padding: 8px; border-radius: 10px; background: var(--accent-soft); fill: var(--accent); margin-bottom: 14px; }

.partners { background: var(--ink); color: #cbd5e1; }
.partners h2 { color: #fff; }

/* Supported forms */
.forms { background: var(--bg); }
.form-groups { display: grid; gap: 20px; }
@media (min-width: 700px) { .form-groups { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .form-groups { grid-template-columns: repeat(3, 1fr); } }
.form-group { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.form-group h3 { font-size: 1rem; margin-bottom: .8em; }
.form-group ul { margin: 0; padding-left: 1.1em; }
.form-group li { font-size: .95rem; margin-bottom: .45em; }
.form-group li::marker { color: var(--accent); }
.forms-note { margin: 28px 0 0; }
.forms-fine { font-size: .82rem; color: var(--muted); margin-top: 8px; }

/* Single stat */
.stat { border-left: 4px solid var(--accent); background: var(--bg-soft); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin-top: 28px; }
.stat strong { font-family: var(--display); color: var(--accent); font-size: 1.3rem; }

/* Stats */
.problem .stats-source { font-size: .72rem; color: var(--muted); margin-top: 14px; }

/* Founder */
.founder-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 800px) { .founder-grid { grid-template-columns: 300px 1fr; gap: 56px; } }
.founder-photo {
  width: 100%; max-width: 300px; height: auto; display: block;
  border-radius: 16px;
  box-shadow: 0 20px 40px -18px rgba(15, 23, 42, .35);
}
.founder-grid p { max-width: 40em; }
.founder-name { margin-top: 1.4em; }
.founder-name strong { display: block; font-family: var(--display); color: var(--ink); font-size: 1.1rem; }
.founder-name span { color: var(--muted); font-size: .95rem; }

/* Form */
.access { background: var(--bg-soft); }
.access-form { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
@media (max-width: 480px) { .access-form { padding: 20px; } }
.field-row { display: grid; gap: 0 20px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: .95rem; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 11px 12px; border: 1px solid #b8c7c5; border-radius: 8px; background: #fff;
}
.field textarea { resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15, 118, 110, .2); }
.field input[aria-invalid="true"] { border-color: #b91c1c; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.warning { background: var(--warn-soft); color: var(--warn); border-left: 4px solid #d97706; padding: 10px 14px; border-radius: 6px; font-weight: 600; font-size: .95rem; }
.form-status { min-height: 1.4em; margin: 14px 0 0; font-weight: 600; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: #b91c1c; }
.form-success { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 28px 12px; }
.form-success .tick { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; }
.form-success .tick svg { width: 30px; height: 30px; }
.form-success h3 { margin: 6px 0 0; }
.form-success p { margin: 0; max-width: 34em; }
.access-form.is-sent > :not(.form-success) { display: none; }
.notice { font-size: .82rem; color: var(--muted); margin: 14px 0 0; line-height: 1.5; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; font-size: .95rem; }
.footer-inner p { margin: 0 0 .5em; }
.small { font-size: .82rem; color: var(--muted); }

/* 404 */
.not-found { min-height: 70vh; display: flex; align-items: center; padding: 64px 0; background: linear-gradient(180deg, var(--bg-soft), var(--bg)); }

/* Form logic */
.form-logic { background: var(--bg-soft); }
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 700px) { .rules { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .rules { grid-template-columns: repeat(4, 1fr); } }
.rules li { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 22px 24px; }
.rules h3 { margin-bottom: .4em; }
.rules p { margin: 0; font-size: .97rem; }

/* Why DocDr */
.why { background: var(--bg); padding-top: 32px; }
@media (min-width: 1000px) { .card-grid-4 { grid-template-columns: repeat(4, 1fr); } }
.aside { margin: 24px 0 0; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--accent); color: #fff; padding: 48px 0; text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: .4em; }
.cta-band p { color: rgba(255, 255, 255, .88); max-width: 34em; margin: 0 auto 22px; font-size: 1.05rem; }
.cta-band .btn { background: #fff; border-color: #fff; color: var(--accent-dark); }
.cta-band .btn:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent-dark); }

/* Demonstration */
.example { background: var(--bg); }
.page-shot { margin: 28px 0 0; }
.page-shot.narrow { margin-left: auto; margin-right: auto; }
.page-shot img {
  display: block; width: 100%; height: auto; background: #fff;
  border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 24px 60px -20px rgba(15, 23, 42, .28), 0 4px 12px rgba(15, 23, 42, .06);
}
.page-shot figcaption { font-size: .8rem; color: var(--muted); margin-top: 10px; }

/* Expandable detail */
.note-card { margin: 28px auto 0; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 22px 24px; }
.note-card h3 { margin-bottom: .4em; }
.note-card p { margin: 0; font-size: .97rem; }
details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; }
details summary { cursor: pointer; padding: 16px 0; font-weight: 700; color: var(--ink); font-family: var(--display); }
details summary::marker { color: var(--accent); }
details[open] summary { padding-bottom: 8px; }
details p { margin: 0 0 18px; font-size: .97rem; }

/* Privacy */
.privacy { background: var(--bg-soft); }
.faq { display: grid; gap: 12px; }

/* Pilot outline */
.partners-intro { max-width: 46em; }
.pilot { margin: 32px 0 0; display: grid; gap: 14px; }
@media (min-width: 800px) { .pilot { grid-template-columns: repeat(2, 1fr); } .pilot > div:last-child { grid-column: 1 / -1; } }
.pilot > div { border: 1px solid #334155; border-radius: var(--radius); padding: 18px 20px; }
.pilot dt { color: #fff; font-family: var(--display); font-weight: 700; margin-bottom: 6px; }
.pilot dd { margin: 0; font-size: .97rem; }
.pilot strong { color: #fff; }
.pilot-list { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; }
.pilot-list li::marker { color: #5eead4; }
.partners .cta-row { margin-top: 28px; }
.btn-light { background: #fff; border-color: #fff; color: var(--ink); }
.btn-light:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--ink); }

/* Hero illustration: note to form */
.hero-illus { margin: 0; }
.illus { display: grid; gap: 12px; align-items: center; }
@media (min-width: 560px) { .illus { grid-template-columns: 1fr 28px 1.15fr; } }
.illus-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: 0 18px 40px -22px rgba(15, 23, 42, .3); font-size: .9rem; line-height: 1.5; }
.illus-card p { margin: 0 0 .7em; }
.illus-card p:last-child { margin-bottom: 0; }
.illus-tag { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.illus-note { color: var(--ink-2); font-family: Georgia, "Times New Roman", serif; }
.illus-note .illus-tag { font-family: var(--font); }
.illus-head { font-weight: 700; color: var(--ink); }
.illus-note mark { background: #f6e3a6; color: var(--ink); padding: 1px 2px; border-radius: 3px; }
.illus-arrow { color: var(--accent); display: grid; place-items: center; align-content: space-around; align-self: stretch; }
.illus-arrow svg { width: 36px; height: 18px; }
@media (max-width: 559px) { .illus-arrow svg { transform: rotate(90deg); } .illus-arrow svg + svg { display: none; } }
.illus-field + .illus-field { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.illus-label { font-size: .8rem; font-weight: 600; color: var(--ink); }
.illus-box { border: 1px solid #94a3b8; border-radius: 4px; padding: 6px 9px; min-height: 2.2em; margin-bottom: 6px !important; color: var(--ink); }
.illus-box-filled { background: #fdf6dd; border-color: #d6b85a; }
.illus-box-empty { background: repeating-linear-gradient(-45deg, #fff, #fff 6px, #f4f6f8 6px, #f4f6f8 12px); }
.illus-flag { display: inline-block; font-size: .74rem; font-weight: 700; border-radius: 8px; padding: 2px 10px; }
.illus-flag-check { background: #fbefc9; color: #7a5300; }
.illus-flag-blank { background: #fde4e1; color: #9f1d12; }

/* Notes column: two source documents stacked */
.illus-notes { display: grid; gap: 12px; }
.illus-form img { display: block; width: 100%; height: auto; border-radius: 4px; }
