:root {
  --bg: #f7f4ee;
  --paper: #ffffff;
  --ink: #111827;
  --muted: #5f6b7a;
  --line: #d9e0e8;
  --navy: #18233a;
  --blue: #275f8f;
  --teal: #2f766d;
  --amber: #b7791f;
  --red: #8f2d2d;
  --green: #2f6b45;
  --shadow: 0 16px 40px rgba(17, 24, 39, 0.10);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--navy);
  color: #fff;
  padding: .7rem 1rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: rgba(247, 244, 238, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: .35rem;
  flex-wrap: wrap;
}

.site-nav a {
  padding: .55rem .8rem;
  border-radius: 8px;
  color: var(--muted);
  font-size: .94rem;
}

.site-nav a:hover,
.site-nav .is-active {
  background: #fff;
  color: var(--ink);
}

.nav-toggle {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: .78rem 1rem;
  border: 1px solid var(--navy);
  border-radius: 8px;
  font-weight: 700;
  background: transparent;
}

.btn.primary {
  background: var(--navy);
  color: #fff;
}

.btn.ghost {
  border-color: var(--line);
  background: #fff;
}

.btn.small {
  min-height: 2.4rem;
  padding: .55rem .8rem;
  background: var(--navy);
  color: #fff;
}

.section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .75fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: calc(100svh - 74px);
}

.eyebrow,
.kicker {
  margin: 0 0 .9rem;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--amber);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 900px;
  font-size: clamp(3.4rem, 8vw, 7.8rem);
}

h2 {
  max-width: 820px;
  font-size: clamp(2rem, 4vw, 4rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

p {
  color: var(--muted);
}

.lead {
  max-width: 720px;
  font-size: clamp(1.08rem, 1.6vw, 1.35rem);
}

.actions {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-visual {
  position: relative;
  min-height: 440px;
  padding: 1rem;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: 8px;
  overflow: hidden;
}

.signal-bar {
  display: flex;
  gap: .45rem;
  margin-bottom: 1.5rem;
}

.signal-bar span {
  display: block;
  width: .7rem;
  height: .7rem;
  border-radius: 50%;
  background: var(--line);
}

.system-map {
  position: relative;
  height: 300px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(39, 95, 143, .08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(39, 95, 143, .08) 1px, transparent 1px);
  background-size: 36px 36px;
  border-radius: 8px;
}

.node {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 120px;
  min-height: 56px;
  padding: .7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(17, 24, 39, .08);
}

.node:nth-child(1) { left: 24px; top: 28px; }
.node:nth-child(2) { right: 26px; top: 70px; }
.node:nth-child(3) { left: 60px; bottom: 42px; }
.node:nth-child(4) { right: 44px; bottom: 28px; }
.node.strong { background: var(--navy); color: #fff; }
.node.accent { background: var(--teal); color: #fff; }

.line {
  position: absolute;
  height: 2px;
  background: var(--amber);
  transform-origin: left center;
}

.l1 { width: 155px; left: 144px; top: 74px; transform: rotate(12deg); }
.l2 { width: 160px; left: 130px; bottom: 92px; transform: rotate(-18deg); background: var(--blue); }
.l3 { width: 125px; right: 118px; bottom: 72px; transform: rotate(11deg); background: var(--green); }

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .6rem;
  margin-top: 1rem;
}

.metrics span,
.pillar-row span,
.evidence-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: .5rem .7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: .9rem;
  font-weight: 700;
}

.strip {
  border-block: 1px solid var(--line);
}

.pillar-row {
  display: flex;
  gap: .7rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.section-head {
  display: grid;
  gap: .8rem;
  margin-bottom: 2rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  min-height: 260px;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(17, 24, 39, .06);
}

.card.compact {
  min-height: 150px;
}

.card p {
  margin-bottom: 1.5rem;
}

.guided-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.guided-card {
  display: grid;
  align-content: start;
  gap: 1rem;
  min-height: 330px;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(17, 24, 39, .06);
}

.guided-card > span {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-weight: 900;
}

.guided-output {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.guided-output p {
  margin: .35rem 0 0;
}

.price-card,
.case-card {
  min-height: 330px;
}

.price-card h3 {
  color: var(--navy);
}

.price-card ul {
  display: grid;
  gap: .55rem;
  padding-left: 1.1rem;
  color: var(--muted);
}

.list-card ul,
.article-body ul {
  display: grid;
  gap: .65rem;
  padding-left: 1.1rem;
  color: var(--muted);
}

.list-card li::marker,
.article-body li::marker {
  color: var(--amber);
}

.text-link {
  font-weight: 800;
  color: var(--blue);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}

.evidence-list {
  display: grid;
  gap: .7rem;
}

.timeline {
  display: grid;
  gap: .9rem;
}

.step {
  display: grid;
  grid-template-columns: 4rem 1fr 1.4fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.step span {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-weight: 900;
}

.form {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  margin: 0;
  font-size: .92rem;
}

label {
  display: grid;
  gap: .45rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 2.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .7rem .8rem;
  font: inherit;
}

textarea {
  resize: vertical;
}

.legal {
  max-width: 900px;
}

.legal h1 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
}

.legal h2 {
  margin-top: 2rem;
  font-size: 1.5rem;
}

.article-body {
  max-width: 900px;
}

.article-body h2 {
  margin-top: 2.2rem;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.article-body p {
  font-size: 1.06rem;
}

.notice {
  padding: 1rem;
  border-left: 4px solid var(--amber);
  background: #fff;
  border-radius: 8px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 2rem clamp(1rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  background: var(--navy);
  color: #fff;
}

.site-footer p,
.site-footer a {
  color: rgba(255,255,255,.78);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem 1rem;
  justify-content: end;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header > .btn.small {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    justify-content: center;
    padding: .55rem .8rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    font-weight: 800;
  }

  .site-nav {
    display: none;
    grid-column: 1 / -1;
    justify-content: start;
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero,
  .split,
  .guided-grid,
  .grid.three,
  .grid.two,
  .form-grid,
  .step,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 380px;
  }

  .site-footer nav {
    justify-content: start;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: clamp(2.7rem, 15vw, 4rem);
  }

  .section {
    width: min(100% - 1rem, 1180px);
  }

  .hero-visual {
    display: none;
  }

  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .actions {
    flex-direction: column;
  }
}
