:root {
  --navy: #0d2137;
  --steel: #1a3a5c;
  --ink: #13273d;
  --orange: #e8913a;
  --orange-soft: #f0a155;
  --gray: #f4f7fa;
  --white: #ffffff;
  --line: #dbe4ee;
  --muted: #5c6b7a;
  --green: #2d8c4a;
  --green-soft: #e8f5ec;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1160px;
  --radius: 9px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--gray);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main { flex: 1 0 auto; }
.site-header,
.site-footer { flex-shrink: 0; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--steel); }
a:hover { color: var(--orange); }

::selection { background: var(--orange); color: var(--navy); }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--orange);
  color: var(--navy);
  padding: 10px 16px;
  z-index: 100;
  font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.mono { font-family: var(--mono); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(13, 33, 55, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.015em;
  margin-right: auto;
}
.brand img { flex: none; }
.brand:hover { color: var(--white); }

.nav { display: flex; align-items: center; gap: 24px; }
.nav a {
  color: rgba(244, 247, 250, 0.72);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav a:hover { color: var(--white); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn-small { min-height: 36px; padding: 8px 14px; font-size: 0.82rem; }
.btn-accent { background: var(--orange); color: var(--navy); border-color: var(--orange); }
.btn-accent:hover { background: var(--orange-soft); border-color: var(--orange-soft); color: var(--navy); }
.btn-primary { background: var(--steel); color: var(--white); border-color: var(--steel); }
.btn-primary:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(244, 247, 250, 0.28); }
.btn-ghost:hover { border-color: var(--white); color: var(--white); }
.btn-block { width: 100%; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #0b1c30 0%, #102a45 52%, #1a3a5c 100%);
  color: var(--white);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black 0%, rgba(0, 0, 0, 0.55) 55%, transparent 100%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(620px 340px at 82% -8%, rgba(232, 145, 58, 0.12), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 54px;
  align-items: center;
  padding-top: 86px;
  padding-bottom: 80px;
}
.hero-copy { max-width: 620px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  flex: none;
}
.hero .eyebrow,
.section-dark .eyebrow { color: #a9bfd4; }

h1 {
  margin: 0 0 22px;
  font-size: clamp(2.4rem, 4.7vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--white);
}
h1 em { font-style: normal; color: var(--orange); }

.lede {
  margin: 0;
  max-width: 56ch;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--muted);
}
.hero .lede { color: rgba(244, 247, 250, 0.78); font-size: 1.11rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.hero-note {
  margin: 18px 0 0;
  font-family: var(--mono);
  font-size: 0.67rem;
  letter-spacing: 0.05em;
  color: rgba(244, 247, 250, 0.52);
}

/* Hero diagram */
.hero-visual { min-width: 0; }
.diagram-card {
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 11px;
  padding: 16px;
  box-shadow: 0 32px 70px -26px rgba(0, 0, 0, 0.62);
}
.diagram-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 11px;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.diagram-head .mono { font-size: 0.6rem; letter-spacing: 0.04em; text-transform: none; }
.diagram-card > img {
  width: 100%;
  border: 1px solid #e6edf4;
  border-radius: 6px;
  background: var(--white);
}
.check-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.check-card .label {
  display: block;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.check-card strong { font-size: 0.9rem; color: var(--ink); white-space: nowrap; }
.check-card .pass strong { color: var(--green); }
.diagram-caption {
  margin: 13px 0 0;
  font-family: var(--mono);
  font-size: 0.63rem;
  line-height: 1.6;
  color: rgba(244, 247, 250, 0.5);
}

/* Sections */
.section { padding: 92px 0; }
.section-white { background: var(--white); }
.section-dark { background: var(--navy); color: var(--white); }
.section-head { max-width: 780px; margin-bottom: 44px; }

h2 {
  margin: 0 0 16px;
  font-size: clamp(1.95rem, 3.6vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: -0.027em;
  font-weight: 700;
  color: var(--ink);
}
.section-dark h2 { color: var(--white); }
.section-dark .lede { color: rgba(244, 247, 250, 0.76); }

/* Problem cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.card-num {
  display: block;
  margin-bottom: 24px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--orange);
}
.card h3,
.step h3,
.example h3,
.who-card h3 {
  margin: 0 0 10px;
  font-size: 1.06rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 650;
}
.card p,
.step p,
.example p,
.who-card p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.62;
  color: var(--muted);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.step {
  display: flex;
  flex-direction: column;
  padding: 26px 24px 26px 0;
  border-right: 1px solid var(--line);
}
.step p { margin-bottom: 16px; }
.step .tag { margin-top: auto; align-self: flex-start; }
.step:not(:first-child) { padding-left: 24px; }
.step:last-child { border-right: 0; }
.step-num {
  display: block;
  margin-bottom: 20px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--orange);
}
.tag {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 8px;
  border: 1px solid #dce6ef;
  border-radius: 4px;
  background: #eef3f8;
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  color: var(--steel);
}
.scope-strip {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  margin-top: 38px;
  padding: 20px 24px;
  background: var(--gray);
  border-left: 3px solid var(--orange);
  border-radius: 0 6px 6px 0;
}
.scope-strip > span {
  flex: none;
  min-width: 190px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}
.scope-strip p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

/* Report */
.report-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: center;
}
.report-copy { max-width: 560px; }
.report-note {
  margin: 24px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--orange);
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.7;
  color: #a9bfd4;
}
.report-card {
  background: var(--white);
  border-radius: 10px;
  padding: 24px;
  color: var(--ink);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.6);
}
.report-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.report-kicker {
  display: block;
  margin-bottom: 5px;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.report-card h3 { margin: 0; font-size: 1.05rem; letter-spacing: -0.01em; }
.pill {
  flex: none;
  padding: 4px 8px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.pill-pass { background: var(--green-soft); color: var(--green); }
.report-sub {
  margin: 8px 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 0.66rem;
  color: var(--muted);
}
.check-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}
.check-table th {
  padding: 0 6px 8px;
  text-align: left;
  font-family: var(--mono);
  font-size: 0.57rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.check-table td {
  padding: 10px 6px;
  border-bottom: 1px solid #eef2f7;
  vertical-align: top;
}
.check-table td.mono { font-size: 0.68rem; color: var(--steel); white-space: nowrap; }
.check-table .status {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--green);
}
.check-table .row-emphasis { font-weight: 600; background: #f7fafc; }
.report-foot {
  margin: 13px 0 0;
  font-family: var(--mono);
  font-size: 0.58rem;
  color: var(--muted);
}

/* Examples */
.examples-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 56px;
  align-items: start;
}
.examples-grid .btn { margin-top: 26px; }
.example-list { display: grid; gap: 14px; }
.example {
  position: relative;
  display: block;
  padding: 22px 54px 22px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.example:hover {
  border-color: #b9cbdc;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -20px rgba(13, 33, 55, 0.38);
  color: inherit;
}
.example-tag {
  display: block;
  margin-bottom: 8px;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
}
.example-arrow {
  position: absolute;
  right: 22px;
  top: 24px;
  color: var(--steel);
  font-size: 1.1rem;
  transition: transform 0.15s ease, color 0.15s ease;
}
.example:hover .example-arrow { transform: translateX(4px); color: var(--orange); }

/* Who */
.who-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.who-card {
  padding: 26px 24px;
  background: var(--gray);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.disclaimer {
  margin: 30px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  max-width: 900px;
  font-size: 0.83rem;
  line-height: 1.6;
  color: var(--muted);
}

/* CTA */
.section-cta { background: var(--gray); }
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 56px;
  align-items: center;
}
.cta-grid > div:first-child { max-width: 600px; }
.cta-note {
  margin: 20px 0 0;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--muted);
}
.cta-card {
  padding: 30px;
  background: var(--navy);
  border-radius: 10px;
  color: var(--white);
  box-shadow: 0 26px 56px -30px rgba(13, 33, 55, 0.65);
}
.cta-kicker {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
}
.cta-price {
  margin: 12px 0 8px;
  font-size: 1.85rem;
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 700;
}
.cta-sub {
  margin: 0 0 22px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #c9d6e3;
}
.cta-sub strong { color: var(--white); }
.cta-fine {
  margin: 12px 0 0;
  font-family: var(--mono);
  font-size: 0.57rem;
  line-height: 1.6;
  color: #8fa6bb;
}
.cta-fine a { color: var(--orange); }

/* Footer */
.site-footer {
  padding: 54px 0 26px;
  background: #0a1a2c;
  color: var(--white);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr;
  gap: 36px;
}
.footer-brand p {
  margin: 12px 0 0;
  max-width: 34ch;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #a9bfd4;
}
.footer-brand .footer-fine { font-size: 0.75rem; color: #7f97ad; }
.footer-brand .footer-fine a { color: #c9d6e3; }
.footer-nav { display: grid; align-content: start; gap: 9px; }
.footer-nav a {
  color: #c9d6e3;
  text-decoration: none;
  font-size: 0.86rem;
  width: fit-content;
}
.footer-nav a:hover { color: var(--orange); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-bottom p {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.6;
  color: #7f97ad;
}
.footer-bottom .footer-fine { max-width: 58ch; }
.footer-bottom a { color: #c9d6e3; text-decoration: none; }
.footer-bottom a:hover { color: var(--orange); }
.site-footer-simple { padding: 24px 0; }
.site-footer-simple .footer-bottom { margin-top: 0; padding-top: 0; border-top: 0; }

/* Responsive */
@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 88px; padding-bottom: 64px; }
  .hero-copy { max-width: 720px; }
  .hero-visual { max-width: 640px; }
  .report-grid,
  .examples-grid,
  .cta-grid { grid-template-columns: 1fr; gap: 36px; }
  .report-copy,
  .cta-grid > div:first-child { max-width: 720px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step { border-right: 1px solid var(--line); padding: 24px 20px 24px 0; }
  .step:nth-child(2n) { border-right: 0; padding-left: 24px; }
  .step:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .step:not(:first-child) { padding-left: 24px; }
  .step:nth-child(2n + 1) { padding-left: 0; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .header-inner { gap: 16px; }
}

@media (max-width: 780px) {
  .section { padding: 68px 0; }
  .card-grid { grid-template-columns: 1fr; }
  .who-grid { grid-template-columns: 1fr; }
  .scope-strip { display: block; }
  .scope-strip > span { display: block; margin-bottom: 8px; min-width: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .header-inner { min-height: 62px; }
  .brand { font-size: 1.02rem; }
  .brand img { width: 26px; height: 26px; }
  .hero-grid { padding-top: 88px; padding-bottom: 54px; }
  h1 { font-size: clamp(2.25rem, 10.5vw, 3.1rem); }
  .hero .lede { font-size: 1rem; }
  .hero-actions .btn { width: 100%; }
  .check-card { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 12px; }
  .steps { grid-template-columns: 1fr; }
  .step,
  .step:nth-child(2n),
  .step:not(:first-child),
  .step:nth-child(2n + 1) {
    border-right: 0;
    border-top: 1px solid var(--line);
    padding: 22px 0;
  }
  .step:first-child { border-top: 0; padding-top: 22px; }
  .report-card { padding: 18px; }
  .check-table { font-size: 0.78rem; }
  .check-table th { font-size: 0.52rem; }
  .check-table td { padding: 9px 4px; }
  .check-table td.mono { font-size: 0.62rem; }
  .example { padding: 20px 46px 20px 18px; }
  .cta-card { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { display: block; }
  .footer-bottom .footer-fine { margin-top: 8px; }
}

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

/* Legal pages */
.legal-wrap {
  max-width: 920px;
  padding-top: 64px;
  padding-bottom: 88px;
}
.legal-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px;
}
.legal h1 {
  margin-bottom: 6px;
  font-size: clamp(2.1rem, 4vw, 2.8rem);
  color: var(--ink);
}
.legal-updated {
  margin: 0 0 24px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.legal h2 {
  margin: 32px 0 10px;
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.legal p {
  margin: 0 0 14px;
  font-size: 0.94rem;
  line-height: 1.7;
  color: #34475c;
}
.legal ul { margin: 0 0 18px; padding-left: 1.2rem; }
.legal li {
  margin-bottom: 7px;
  font-size: 0.94rem;
  line-height: 1.65;
  color: #34475c;
}
.legal a {
  color: var(--steel);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal strong { color: var(--ink); }
.draft-banner {
  margin: 0 0 26px;
  padding: 12px 16px;
  background: #fff4e5;
  border: 1px solid #f0c99a;
  border-radius: 6px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #7a4500;
}
.todo {
  padding: 0 3px;
  background: #fff1d6;
  border-bottom: 1px dashed #c98a2e;
  font-family: var(--mono);
  font-size: 0.82em;
  color: #7a4500;
}

/* 404 */
.simple-page {
  min-height: 56vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-top: 64px;
  padding-bottom: 64px;
}
.simple-code {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--orange);
}
.simple-page h1 { margin-bottom: 14px; color: var(--ink); }
.simple-page .lede { margin-bottom: 26px; }

@media (max-width: 640px) {
  .legal-wrap { padding-top: 40px; padding-bottom: 60px; }
  .legal-card { padding: 24px 18px; }
  .legal h2 { margin-top: 26px; }
}
