/* =========================================================
   Design tokens — Part 1 spec
   ========================================================= */
:root {
  --canvas: #F8FAFC;
  --card-bg: #FFFFFF;
  --card-border: #E2E8F0;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --brand-navy: #1E293B;
  --legal-accent: #0284C7;
  --cta-green: #047857;
  --cta-green-hover: #065F46;
  --alert-red: #B91C1C;

  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Source Serif 4', Georgia, serif;

  --radius-sm: 6px;
  --radius-md: 6px;
  --radius-lg: 14px;

  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-cta: 0 4px 14px 0 rgba(15, 23, 42, 0.25);
  --shadow-cta-hover: 0 6px 20px 0 rgba(15, 23, 42, 0.35);

  --container-w: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography scale */
h1, h2, h3 { font-family: var(--font-heading); color: var(--text-primary); margin: 0; }
h1, h2, .h1, .h2 { font-family: var(--font-display); }

h1, .h1 {
  font-size: clamp(2rem, 1.35rem + 3vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2, .h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
}

h3, .h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

.body-lead {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.6;
  opacity: 0.85;
  color: var(--text-primary);
  margin: 0;
}

.body-standard { font-size: 1rem; font-weight: 400; line-height: 1.5; }

.micro { font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-serif);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--legal-accent);
  text-transform: uppercase;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-block;
  text-align: center;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: var(--font-heading);
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.btn-primary {
  background: var(--cta-green);
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 700;
  padding: 16px 32px;
  box-shadow: var(--shadow-cta);
  width: 100%;
}

.btn-primary:hover {
  background: var(--cta-green-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-cta-hover);
}

.btn-primary:active { transform: translateY(0); }

.btn-sm {
  font-size: 0.9375rem;
  font-weight: 700;
  padding: 10px 18px;
  width: auto;
  box-shadow: 0 2px 8px 0 rgba(5, 150, 105, 0.35);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  font-weight: 600;
  padding: 10px 18px;
}
.btn-outline:hover { border-color: var(--brand-navy); background: #F1F5F9; }

/* =========================================================
   Top banner
   ========================================================= */
.top-banner {
  background: var(--brand-navy);
  color: #FFFFFF;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 9px 16px;
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--card-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--brand-navy);
  white-space: nowrap;
}
.logo-accent { color: var(--cta-green); }

.header-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

select {
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 9px 30px 9px 12px;
  cursor: pointer;
}
select:focus { outline: 2px solid var(--legal-accent); outline-offset: 1px; }

.select-wrap::after {
  content: "";
  position: absolute;
  right: 11px;
  pointer-events: none;
  width: 8px; height: 8px;
  border-right: 2px solid var(--text-secondary);
  border-bottom: 2px solid var(--text-secondary);
  transform: rotate(45deg) translateY(-3px);
}

.trust-counter {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.state-select-mini, .trust-counter { display: inline-flex; }

/* =========================================================
   Hero
   ========================================================= */
.hero { padding: 56px 0 48px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: start;
}

.hero-left { display: flex; flex-direction: column; gap: 20px; }

.compliance-badge {
  display: inline-block;
  align-self: flex-start;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1E40AF;
  font-family: var(--font-serif);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
}

.value-pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 0;
  margin: 4px 0 0;
}

.value-pills li {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--brand-navy);
}

/* CTA card */
.cta-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
  max-width: 460px;
}

.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.field select { width: 100%; padding: 12px 30px 12px 12px; font-size: 0.9375rem; }

.micro-trust {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin: 0;
}

.beta-full-notice {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--text-primary);
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 0;
}
.beta-full-notice a { color: var(--legal-accent); font-weight: 600; }


/* Document mockup */
.hero-right { position: sticky; top: 90px; }

.doc-mockup {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.18);
  padding: 28px 28px 24px;
  transform: rotate(1.2deg);
}

.doc-mockup__bar {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}
.doc-mockup__bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--card-border); }

.doc-mockup__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
  border-bottom: 2px solid var(--brand-navy);
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.doc-mockup__line { height: 9px; border-radius: 4px; background: #F1F5F9; margin-bottom: 10px; }
.doc-mockup__line.w-90 { width: 90%; }
.doc-mockup__line.w-75 { width: 75%; }
.doc-mockup__line.w-60 { width: 60%; }

.doc-field {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--legal-accent);
  background: #EFF8FF;
  border: 1px dashed #7DD3FC;
  border-radius: 4px;
  padding: 3px 8px;
  margin: 3px 4px 3px 0;
}

.doc-field.alt { color: #047857; background: #ECFDF5; border-color: #A7F3D0; }

.doc-mockup__footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--card-border);
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
}

/* =========================================================
   Sections general
   ========================================================= */
section { padding: 64px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; display: flex; flex-direction: column; gap: 12px; }
.section-head .body-standard { color: var(--text-secondary); }

.alt-bg { background: #FFFFFF; border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); }

/* =========================================================
   Founder note
   ========================================================= */
.founder-note {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.founder-note .eyebrow { margin-bottom: 2px; }
.founder-lead {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin: 0;
}
.founder-note p:not(.founder-lead):not(.founder-sig) {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}
.founder-sig {
  font-weight: 600;
  color: var(--text-primary);
  margin: 6px 0 0;
}

/* =========================================================
   Comparison table
   ========================================================= */
.compare-hint { display: none; }

.compare-scroll {
  position: relative;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
  -webkit-overflow-scrolling: touch;
}

table.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  background: var(--card-bg);
}

table.compare th, table.compare td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--card-border);
  font-size: 0.9375rem;
}

table.compare thead th {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  background: #F8FAFC;
}

table.compare th:first-child, table.compare td:first-child { color: var(--text-secondary); font-weight: 600; }

table.compare .col-us {
  background: #ECFDF5;
  font-weight: 600;
  border-left: 2px solid var(--cta-green);
  border-right: 2px solid var(--cta-green);
}
table.compare thead .col-us { color: var(--cta-green-hover); }

.tick, .cross {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}
.tick { background: var(--cta-green); }
.cross { background: var(--alert-red); }

/* =========================================================
   Feature grid
   ========================================================= */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid #BFDBFE;
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.10);
}

.feature-card .icon {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: #ECFDF5;
  color: var(--cta-green);
}
.feature-card .icon svg { width: 22px; height: 22px; }

.feature-card .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--alert-red);
  background: #FEF2F2;
  border-radius: 4px;
  padding: 2px 7px;
  width: fit-content;
}

/* =========================================================
   3-step process
   ========================================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}

.step {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: left;
  position: relative;
}

.step .num {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--brand-navy);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  margin-bottom: 14px;
}

/* =========================================================
   Guarantee box
   ========================================================= */
.guarantee {
  background: var(--brand-navy);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.guarantee .shield { font-size: 2.5rem; flex-shrink: 0; }
.guarantee h2 { color: #fff; }
.guarantee p { color: #CBD5E1; margin: 10px 0 0; max-width: 60ch; }
.guarantee-text { flex: 1; min-width: 240px; }

/* =========================================================
   Footer
   ========================================================= */
footer {
  background: #0F172A;
  color: #94A3B8;
  padding: 40px 0 28px;
  font-size: 0.875rem;
}
footer a { color: #CBD5E1; text-decoration: none; }
footer a:hover { text-decoration: underline; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.footer-link-pending { color: #64748B; }
.footer-link-pending em { font-style: normal; opacity: 0.7; }
.footer-disclaimer { border-top: 1px solid #1E293B; padding-top: 18px; line-height: 1.6; }

/* =========================================================
   Mobile — <= 900px stack hero, grids to 2-col
   ========================================================= */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-right { position: static; order: -1; }
  .doc-mockup { transform: none; max-width: 420px; margin: 0 auto; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .trust-counter { display: none; }
}

/* =========================================================
   Mobile — <= 640px
   ========================================================= */
@media (max-width: 640px) {
  section { padding: 44px 0; }
  .top-banner { font-size: 0.75rem; padding: 8px 12px; }
  .header-inner { padding-top: 10px; padding-bottom: 10px; }
  .header-controls { gap: 8px; }
  .state-select-mini { display: none; }
  .logo { font-size: 1.05rem; }
  .cta-card { max-width: 100%; padding: 20px; }
  .field-row { flex-direction: column; gap: 12px; }
  .feature-grid { grid-template-columns: 1fr; }
  .guarantee { padding: 28px 22px; text-align: left; }
  .guarantee .shield { font-size: 2rem; }
  .value-pills { flex-direction: column; gap: 8px; }
  .btn-primary { font-size: 17px; padding: 15px 24px; }

  .compare-hint {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--legal-accent);
    text-align: center;
    margin: 0 0 10px;
  }

  .compare-scroll::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 28px;
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(15,23,42,0.12));
    pointer-events: none;
  }
}

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