:root {
  --bg: #f7f3ea;
  --ink: #1f1f1f;
  --muted: #5f5f5f;
  --accent: #eb5e29;
  --blue: #0f53a2;
  --white: #ffffff;
  --line: #e4ded2;
  --soft: #fbf8f1;
  --green: #258a5b;
  --shadow: 0 22px 70px rgba(31, 31, 31, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.menu-open {
  overflow: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(228, 222, 210, 0.85);
  background: rgba(247, 243, 234, 0.94);
  backdrop-filter: blur(16px);
}

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: 5px;
  background: rgba(235, 94, 41, 0.14);
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width 80ms linear;
}

.header-inner,
.section-inner {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-weight: 850;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--ink);
  box-shadow: inset -9px -9px 0 var(--accent);
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  width: fit-content;
  max-width: 100%;
  justify-self: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 5px;
  box-shadow: 0 10px 30px rgba(31, 31, 31, 0.05);
}

.nav-item {
  position: relative;
}

.nav-link,
.menu-button {
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 720;
  padding: 10px 11px;
  white-space: nowrap;
}

.nav-link:hover,
.nav-item:hover .menu-button,
.nav-item:focus-within .menu-button {
  background: var(--white);
  box-shadow: 0 8px 20px rgba(31, 31, 31, 0.06);
}

.menu-button::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}

.mega-menu {
  position: fixed;
  left: 50%;
  top: 76px;
  display: grid;
  grid-template-columns: minmax(210px, 0.78fr) minmax(360px, 1.5fr) minmax(220px, 0.82fr);
  gap: 14px;
  width: min(980px, calc(100vw - 32px));
  max-height: calc(100vh - 96px);
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-item:focus-within .mega-menu,
.nav-item:hover .mega-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.mega-intro {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.mega-intro strong {
  display: block;
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.05;
}

.mega-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.mega-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  border: 1px solid rgba(235, 94, 41, 0.28);
  border-radius: 8px;
  color: var(--accent);
  background: rgba(235, 94, 41, 0.08);
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.mega-intro-link {
  margin-top: auto;
  color: var(--blue);
  font-size: 14px;
  font-weight: 840;
}

.mega-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
  padding: 0;
}

.mega-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
  min-height: 76px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-size: 14px;
  font-weight: 720;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.mega-card-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--ink);
  font-size: 12px;
  font-weight: 880;
}

.mega-card:nth-child(3n + 2) .mega-card-icon {
  background: var(--accent);
}

.mega-card:nth-child(3n) .mega-card-icon {
  background: var(--blue);
}

.mega-card strong,
.mega-card small {
  display: block;
}

.mega-card strong {
  line-height: 1.2;
}

.mega-card small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 620;
  line-height: 1.35;
}

.mega-card:hover {
  border-color: #d4cab9;
  background: var(--soft);
  transform: translateY(-1px);
}

.mega-feature {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--ink);
  padding: 18px;
}

.mega-feature .mega-kicker {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--white);
  background: rgba(255, 255, 255, 0.09);
}

.mega-feature strong {
  display: block;
  font-size: 20px;
  line-height: 1.08;
}

.mega-feature p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  margin: 12px 0 18px;
}

.mega-feature .button {
  width: 100%;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 780;
  line-height: 1;
  padding: 14px 18px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--white);
  background: var(--accent);
  box-shadow: 0 12px 24px rgba(235, 94, 41, 0.22);
}

.button-primary:hover {
  background: #d95120;
}

.button-secondary {
  color: var(--ink);
  border-color: var(--line);
  background: var(--white);
}

.button-secondary:hover {
  border-color: #d4cab9;
  box-shadow: 0 12px 24px rgba(31, 31, 31, 0.06);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.mobile-toggle span,
.mobile-toggle span::before,
.mobile-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  content: "";
}

.mobile-toggle span::before {
  transform: translateY(-6px);
}

.mobile-toggle span::after {
  transform: translateY(4px);
}

.mobile-panel {
  display: none;
}

.hero {
  padding: 78px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(390px, 0.98fr);
  gap: 52px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 820;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--accent);
  content: "";
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 850px;
  margin-bottom: 22px;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.2;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 42px;
}

.stat-tile {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.stat-tile strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.stat-tile span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.floating-note {
  position: absolute;
  right: -8px;
  bottom: 26px;
  max-width: 236px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 38px rgba(31, 31, 31, 0.12);
  font-size: 14px;
  font-weight: 720;
}

.section {
  padding: 74px 0;
}

.section-muted {
  background: var(--soft);
  border-block: 1px solid var(--line);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 36px;
  align-items: end;
  margin-bottom: 34px;
}

.section-head p {
  max-width: 560px;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

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

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 24px;
}

.card p,
.step p,
.faq-answer,
.footer p {
  color: var(--muted);
}

.icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 8px;
  color: var(--white);
  background: var(--blue);
  font-weight: 850;
}

.card:nth-child(2n) .icon,
.service-card:nth-child(2n) .icon {
  background: var(--accent);
}

.service-card {
  display: flex;
  min-height: 232px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 24px;
}

.service-card p {
  color: var(--muted);
}

.service-card a {
  margin-top: auto;
  color: var(--blue);
  font-weight: 800;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pill-list li,
.tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 10px 13px;
  font-weight: 720;
}

.steps {
  counter-reset: steps;
}

.step {
  position: relative;
  padding-left: 82px;
}

.step::before {
  position: absolute;
  left: 24px;
  top: 24px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--ink);
  counter-increment: steps;
  content: counter(steps);
  font-weight: 850;
}

.result-band {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.result-band div {
  min-height: 132px;
  padding: 22px;
  border-right: 1px solid var(--line);
}

.result-band div:last-child {
  border-right: 0;
}

.result-band strong {
  display: block;
  font-size: 30px;
}

.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.comparison .card:first-child {
  background: #fff7f2;
}

.comparison .card:last-child {
  background: #f2f8ff;
}

.audit-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.audit-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.audit-table th,
.audit-table td {
  border-bottom: 1px solid var(--line);
  padding: 18px;
  text-align: left;
  vertical-align: top;
}

.audit-table th {
  background: var(--soft);
  font-size: 13px;
  text-transform: uppercase;
}

.audit-table tr:last-child td {
  border-bottom: 0;
}

.audit-table td:first-child {
  width: 20%;
  font-weight: 850;
}

.page-hero {
  padding: 72px 0 42px;
}

.page-hero h1 {
  max-width: 940px;
}

.breadcrumbs {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 34px;
  align-items: start;
}

.content-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 30px;
  margin-bottom: 16px;
}

.article-section p {
  color: var(--muted);
  font-size: 17px;
}

.article-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--ink);
}

.article-list li {
  padding-left: 4px;
}

.article-table-wrap {
  margin-top: 8px;
}

.article-table {
  min-width: 680px;
}

.article-table td:first-child {
  width: 24%;
}

.article-sidebar {
  display: grid;
  gap: 16px;
}

.toc-box,
.author-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 24px;
}

.toc-title {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 860;
  text-transform: uppercase;
}

.toc-box ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.toc-box a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
}

.toc-box a:hover {
  color: var(--blue);
}

.author-box {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 22px;
}

.author-avatar {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--ink);
  box-shadow: inset -16px -16px 0 var(--accent);
  font-weight: 900;
}

.author-box p:not(.mega-kicker) {
  color: var(--muted);
}

.sidebar {
  position: sticky;
  top: 104px;
}

.audit-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  padding: 26px;
}

.audit-box p {
  color: rgba(255, 255, 255, 0.72);
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  margin-bottom: 10px;
}

.faq-question {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  padding: 18px 20px;
  text-align: left;
}

.faq-question::after {
  content: "+";
  color: var(--accent);
  font-size: 24px;
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "-";
}

.faq-answer {
  padding: 0 20px 18px;
}

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

.form-field {
  display: grid;
  gap: 7px;
}

.form-field.full {
  grid-column: 1 / -1;
}

label {
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  padding: 12px 13px;
}

textarea {
  min-height: 118px;
  resize: vertical;
}

.form-status {
  display: none;
  margin: 14px 0 0;
  border: 1px solid rgba(37, 138, 91, 0.3);
  border-radius: 8px;
  background: rgba(37, 138, 91, 0.09);
  color: var(--green);
  padding: 12px;
  font-weight: 720;
}

.site-footer {
  padding: 60px 0 88px;
  background: #171717;
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 34px;
}

.footer a {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  margin: 9px 0;
}

.footer h3 {
  font-size: 15px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.sticky-mobile-cta {
  position: fixed;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 45;
  display: none;
}

.sticky-mobile-cta .button {
  width: 100%;
  box-shadow: 0 14px 30px rgba(31, 31, 31, 0.2);
}

@media (max-width: 1180px) {
  .desktop-nav,
  .header-cta {
    display: none;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .mobile-panel {
    position: fixed;
    inset: 78px 0 auto;
    display: none;
    max-height: calc(100vh - 78px);
    overflow: auto;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    padding: 16px 20px 28px;
  }

  body.menu-open .mobile-panel {
    display: block;
  }

  .mobile-panel a,
  .mobile-panel summary {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-weight: 800;
  }

  .mobile-panel details a {
    padding-left: 16px;
    color: var(--muted);
    font-weight: 700;
  }

  .hero-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .grid-4,
  .grid-3,
  .result-band,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .header-inner,
  .section-inner {
    width: min(100% - 28px, 1180px);
  }

  .hero,
  .section,
  .page-hero {
    padding: 48px 0;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 31px;
  }

  .hero-proof,
  .grid-2,
  .grid-3,
  .grid-4,
  .comparison,
  .result-band,
  .footer-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .floating-note {
    position: static;
    margin-top: 12px;
    max-width: none;
  }

  .author-box {
    grid-template-columns: 1fr;
  }

  .result-band div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .footer-bottom {
    display: block;
  }

  .sticky-mobile-cta {
    display: block;
  }

  .site-footer {
    padding-bottom: 106px;
  }
}
