:root {
  --ink: #101418;
  --ink-soft: #334047;
  --teal: #0d6670;
  --teal-dark: #083f45;
  --mint: #dff3ee;
  --amber: #efaa33;
  --coral: #d95f4f;
  --paper: #ffffff;
  --soft: #f4f7f5;
  --line: #d7e1dc;
  --shadow: 0 16px 38px rgba(16, 20, 24, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: var(--teal);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.contain {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.narrow {
  width: min(820px, calc(100% - 40px));
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 12px clamp(20px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 196px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--teal);
}

.site-nav a:last-child {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  color: var(--paper);
  background: var(--teal);
  border-radius: 6px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 600px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--paper);
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 251, 255, 0.96) 46%, rgba(230, 243, 255, 0.9) 100%),
    var(--soft);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 96px;
  background: linear-gradient(180deg, rgba(8, 63, 69, 0), rgba(8, 63, 69, 0.55));
  opacity: 0.9;
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding: 92px 0 132px;
}

.eyebrow,
.kicker {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  max-width: 650px;
  margin: 24px 0 0;
  color: #edf8f5;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.btn--primary {
  color: var(--ink);
  background: var(--amber);
}

.btn--ghost {
  color: inherit;
  border-color: currentColor;
  background: transparent;
}

.section {
  padding: clamp(64px, 8vw, 104px) 0;
}

.section h2 {
  margin: 0 0 26px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.section h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.section p {
  margin: 0 0 18px;
  color: var(--ink-soft);
}

.intro-grid,
.split-grid,
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.intro-panel {
  background: var(--soft);
}

.intro-grid img {
  width: min(430px, 100%);
  max-height: 360px;
  justify-self: center;
}

.feature-grid,
.price-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.price-card,
.resource-item,
.contact-person {
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.feature-card img,
.feature-mark {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
}

.feature-mark {
  display: inline-block;
  border-radius: 50%;
  background: conic-gradient(from 40deg, var(--teal), var(--amber), var(--coral), var(--teal));
}

.split-band {
  background: var(--teal-dark);
  color: var(--paper);
}

.split-band p,
.split-band li {
  color: #e6f6f2;
}

.split-grid img {
  width: min(520px, 100%);
  justify-self: center;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.24));
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-soft);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--amber);
}

.split-band .check-list li,
.contact-band .check-list li {
  color: #e6f6f2;
}

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

.faq-section {
  background: var(--soft);
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-list details {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
}

.story-grid img {
  justify-self: center;
  width: min(430px, 100%);
  max-height: 420px;
}

.quote-band,
.contact-band {
  color: var(--paper);
  background: var(--teal);
}

.quote-band p,
.contact-band p,
.contact-band li {
  color: #f2fffc;
}

.price-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 24px;
}

.price-card {
  border-top: 6px solid var(--teal);
}

.price-card:nth-child(2) {
  border-top-color: var(--amber);
  box-shadow: var(--shadow);
}

.price {
  color: var(--ink);
}

.price span {
  font-size: 2.7rem;
  font-weight: 900;
}

.included {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.muted-section {
  background: var(--soft);
}

.service-list,
.resource-list,
.steps {
  display: grid;
  gap: 16px;
}

.service-row,
.step-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.service-row strong {
  color: var(--teal);
  font-size: 1.25rem;
  white-space: nowrap;
}

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

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: var(--paper);
}

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

th {
  color: var(--paper);
  background: var(--teal-dark);
}

.note-section {
  background: #fff7e8;
}

.resource-item span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--coral);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.steps {
  counter-reset: steps;
}

.step-item {
  grid-template-columns: 72px minmax(0, 1fr);
}

.step-item::before {
  counter-increment: steps;
  content: counter(steps);
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--paper);
  font-weight: 900;
  background: var(--teal);
  border-radius: 50%;
}

.step-item::before {
  grid-row: 1 / span 2;
}

.step-item h3,
.step-item p {
  grid-column: 2;
  margin-bottom: 0;
}

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

.contact-person a,
.site-footer a {
  display: block;
  margin-top: 8px;
}

.direct-contact {
  display: grid;
  gap: 12px;
  align-content: center;
}

.site-footer {
  padding: 56px 0 28px;
  color: #dce8e5;
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.7fr;
  gap: 36px;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: var(--paper);
  font-size: 1rem;
}

.site-footer p,
.site-footer a {
  color: #dce8e5;
}

.site-footer img {
  margin-bottom: 18px;
}

.copyright {
  width: min(1120px, calc(100% - 40px));
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.9rem;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: fixed;
    inset: 78px 0 auto;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 16px 20px 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav-open .site-nav {
    display: grid;
  }

  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    justify-content: center;
    margin-top: 14px;
  }

  .hero {
    min-height: 540px;
  }

  .intro-grid,
  .split-grid,
  .story-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .price-grid,
  .contact-grid,
  .two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .contain,
  .narrow {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    min-height: 70px;
    padding: 10px 14px;
  }

  .brand img {
    width: 162px;
  }

  .site-nav {
    inset: 70px 0 auto;
  }

  .hero {
    min-height: 500px;
  }

  .hero__inner {
    padding: 74px 0 104px;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 16vw, 4.5rem);
  }

  .hero-actions,
  .btn {
    width: 100%;
  }

  .feature-grid,
  .metric-grid,
  .service-row,
  .step-item {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .step-item::before,
  .step-item h3,
  .step-item p {
    grid-column: 1;
  }

  .step-item::before {
    grid-row: auto;
    margin-bottom: 2px;
  }

  .service-row strong {
    white-space: normal;
  }

  .table-wrap {
    overflow: visible;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
    min-width: 0;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  tr {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  td {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 14px;
    border-bottom: 0;
  }

  td::before {
    content: attr(data-label);
    color: var(--teal-dark);
    font-weight: 800;
  }
}

/* 2026 visual refresh: AI accounting ninja system */
:root {
  --ink: #052449;
  --ink-soft: #38516f;
  --teal: #126edc;
  --teal-dark: #052449;
  --mint: #e8f4ff;
  --amber: #ff9f1c;
  --coral: #ff7a00;
  --paper: #ffffff;
  --soft: #f4f8ff;
  --line: #d7e8ff;
  --success: #20a35b;
  --shadow: 0 18px 44px rgba(5, 36, 73, 0.14);
  --shadow-strong: 0 28px 70px rgba(5, 36, 73, 0.2);
}

body {
  background:
    linear-gradient(180deg, #ffffff 0, #f7fbff 48%, #ffffff 100%);
}

a {
  color: var(--teal);
}

.contain {
  width: min(1180px, calc(100% - 40px));
}

.narrow {
  width: min(860px, calc(100% - 40px));
}

.site-header {
  min-height: 82px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(185, 220, 255, 0.9);
  box-shadow: 0 10px 32px rgba(5, 36, 73, 0.06);
}

.brand img {
  width: 236px;
}

.site-nav {
  gap: 22px;
}

.site-nav a {
  color: #143b68;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--teal);
}

.site-nav a:last-child {
  color: #ffffff;
  background: linear-gradient(135deg, #126edc, #074b9a);
  box-shadow: 0 12px 24px rgba(18, 110, 220, 0.22);
}

.nav-toggle {
  border-color: var(--line);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(5, 36, 73, 0.08);
}

.nav-toggle span:not(.sr-only) {
  background: var(--ink);
}

.hero {
  min-height: 650px;
  color: var(--ink);
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 251, 255, 0.96) 46%, rgba(230, 243, 255, 0.9) 100%),
    var(--soft);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 83px, rgba(185, 220, 255, 0.28) 84px 86px, transparent 87px),
    linear-gradient(0deg, transparent 0 83px, rgba(185, 220, 255, 0.18) 84px 86px, transparent 87px);
  background-size: 86px 86px;
  opacity: 0.45;
  pointer-events: none;
}

.hero::after {
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(247, 251, 255, 0), #ffffff);
}

.hero__inner {
  width: min(100% - clamp(40px, 8vw, 120px), 1840px);
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(620px, 1.18fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: 78px 0 104px;
}

.hero__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.eyebrow,
.kicker {
  color: var(--coral);
  letter-spacing: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid #ffd7a2;
  border-radius: 999px;
  background: #fff4e6;
}

.hero h1 {
  max-width: 700px;
  color: var(--ink);
  font-size: clamp(3rem, 6.2vw, 6.15rem);
  overflow-wrap: anywhere;
}

.hero p:not(.eyebrow) {
  max-width: 620px;
  color: var(--ink-soft);
  overflow-wrap: break-word;
}

.hero__visual {
  position: relative;
  z-index: 1;
  align-self: center;
  justify-self: stretch;
  width: 100%;
  height: var(--paired-visual-height, auto);
  min-width: 0;
  min-height: 0;
}

.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: drop-shadow(0 28px 42px rgba(5, 36, 73, 0.16));
}

.btn {
  border-radius: 8px;
  min-height: 50px;
  padding: 0 24px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.btn--primary {
  color: #052449;
  background: linear-gradient(135deg, #ffbd4a, #ff8a00);
  box-shadow: 0 14px 28px rgba(255, 138, 0, 0.22);
}

.btn--ghost {
  color: var(--teal);
  border-color: #9ecfff;
  background: rgba(255, 255, 255, 0.74);
}

.section {
  padding: clamp(68px, 8vw, 112px) 0;
}

.section h2 {
  color: var(--ink);
}

.section p {
  color: var(--ink-soft);
}

.section-head {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-head p {
  margin-bottom: 0;
  font-size: 1.08rem;
}

.intro-panel,
.faq-section,
.muted-section {
  background:
    linear-gradient(180deg, #f7fbff 0%, #eef7ff 100%);
}

.intro-grid,
.split-grid,
.story-grid {
  gap: clamp(36px, 6vw, 78px);
  align-items: center;
}

.intro-grid img,
.story-grid img {
  width: min(500px, 100%);
  height: var(--paired-visual-height, auto);
  max-height: none;
  align-self: center;
  justify-self: center;
  object-fit: contain;
  padding: 10px;
  border-radius: 8px;
  filter: drop-shadow(0 22px 32px rgba(5, 36, 73, 0.14));
}

.feature-grid,
.price-grid,
.contact-grid {
  gap: 20px;
}

.app-showcase {
  background:
    linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.app-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(5, 36, 73, 0.08);
}

.app-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #eef7ff;
  border-bottom: 1px solid var(--line);
}

.app-card__body {
  padding: 20px;
}

.app-card span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--coral);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.app-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.app-card p {
  margin-bottom: 0;
}

.metric-section {
  padding: 28px 0;
  color: #ffffff;
  background:
    linear-gradient(135deg, #052449 0%, #07346d 52%, #126edc 100%);
}

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

.metric-card {
  min-height: 104px;
  padding: 18px;
  border: 1px solid rgba(185, 220, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.metric-card strong,
.metric-card span {
  display: block;
}

.metric-card strong {
  color: #ffbd4a;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  line-height: 1.1;
}

.metric-card span {
  margin-top: 8px;
  color: #dcecff;
  font-weight: 700;
  line-height: 1.35;
}

.feature-card,
.price-card,
.resource-item,
.contact-person,
.service-row,
.step-item,
.included,
.faq-list details,
.table-wrap {
  border-color: var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(5, 36, 73, 0.06);
}

.feature-card,
.price-card,
.resource-item,
.contact-person {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
}

.feature-card::before,
.price-card::before,
.resource-item::before,
.contact-person::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #126edc, #ff9f1c);
}

.feature-card img,
.feature-mark {
  width: 62px;
  height: 62px;
  margin-bottom: 18px;
}

.feature-mark {
  border: 4px solid #ffffff;
  box-shadow: 0 0 0 1px #b9dcff, 0 12px 22px rgba(18, 110, 220, 0.16);
  background:
    radial-gradient(circle at 50% 50%, #ffffff 0 28%, transparent 29%),
    conic-gradient(from 32deg, #126edc, #ff9f1c, #20a35b, #126edc);
}

.split-band,
.quote-band,
.contact-band {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(135deg, #052449 0%, #07346d 46%, #0a55b5 100%);
}

.split-band::before,
.quote-band::before,
.contact-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 77px, rgba(185, 220, 255, 0.12) 78px 80px, transparent 81px),
    linear-gradient(0deg, transparent 0 77px, rgba(255, 159, 28, 0.08) 78px 80px, transparent 81px);
  background-size: 80px 80px;
}

.split-band .contain,
.quote-band .contain,
.contact-band .contain {
  position: relative;
  z-index: 1;
}

.split-band h2,
.quote-band h2,
.contact-band h2 {
  color: #ffffff;
}

.split-band p,
.split-band li,
.quote-band p,
.contact-band p,
.contact-band li {
  color: #dcecff;
}

.split-grid img {
  width: min(560px, 100%);
  height: var(--paired-visual-height, auto);
  align-self: center;
  justify-self: center;
  object-fit: cover;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  filter: drop-shadow(0 24px 34px rgba(0, 0, 0, 0.24));
}

.check-list li::before {
  top: 0.45em;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: inset 0 0 0 4px #ffffff, 0 0 0 1px rgba(32, 163, 91, 0.28);
}

.price-card {
  border-top: 0;
}

.price-card:nth-child(2) {
  box-shadow: var(--shadow);
}

.price span {
  color: var(--ink);
}

.included,
.note-section {
  background: linear-gradient(180deg, #fff8ef 0%, #ffffff 100%);
}

.service-row strong {
  color: var(--coral);
}

.resource-item span {
  color: var(--coral);
}

.step-item::before {
  color: #ffffff;
  background: linear-gradient(135deg, #126edc, #074b9a);
  box-shadow: 0 12px 22px rgba(18, 110, 220, 0.22);
}

th {
  background: linear-gradient(135deg, #052449, #074b9a);
}

td::before {
  color: var(--teal-dark);
}

.site-footer {
  color: #dcecff;
  background:
    linear-gradient(135deg, #031f43 0%, #052449 58%, #07346d 100%);
}

.site-footer img {
  width: 236px;
}

.site-footer p,
.site-footer a {
  color: #dcecff;
}

@media (max-width: 980px) {
  .hero__inner {
    width: min(100% - 40px, 1180px);
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 70px 0 82px;
  }

  .hero__visual {
    justify-self: center;
    width: min(100%, 680px);
    height: auto;
  }

  .intro-grid img,
  .split-grid img,
  .story-grid img {
    height: auto;
  }
}

@media (max-width: 920px) {
  .site-nav {
    inset: 82px 0 auto;
    background: rgba(255, 255, 255, 0.98);
  }
}

@media (max-width: 560px) {
  .contain,
  .narrow {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    min-height: 72px;
    gap: 12px;
  }

  .brand img {
    width: 184px;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
  }

  .site-nav {
    inset: 72px 0 auto;
  }

  .hero {
    min-height: auto;
  }

  .hero__inner {
    width: min(100% - 28px, 1180px);
    padding: 54px 0 68px;
  }

  .hero h1 {
    font-size: clamp(2.05rem, 10.5vw, 3.1rem);
    line-height: 1.03;
  }

  .hero p:not(.eyebrow) {
    max-width: 100%;
    font-size: 1rem;
  }

  .hero__visual {
    width: min(100%, 520px);
    margin-inline: 0;
  }

  .section {
    padding: 58px 0;
  }

  td {
    grid-template-columns: minmax(0, 1fr);
  }
}

.blog-hero .hero__inner {
  padding-bottom: 78px;
}

.blog-library {
  background: #ffffff;
}

.blog-tools {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 12px 28px rgba(5, 36, 73, 0.06);
}

.blog-tools label {
  color: var(--ink);
  font-weight: 900;
}

.blog-search {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid #b9dcff;
  border-radius: 999px;
  color: var(--teal);
  background: #eef7ff;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

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

.blog-card {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(5, 36, 73, 0.08);
}

.blog-card[hidden] {
  display: none;
}

.blog-card__image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #eef7ff;
}

.blog-card__body {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.blog-card__meta,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.blog-card h2 {
  margin: 0;
  font-size: 1.26rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.blog-card h2 a {
  color: var(--ink);
  text-decoration: none;
}

.blog-card p {
  margin: 0;
  color: var(--ink-soft);
}

.article-shell {
  background: #ffffff;
}

.article-layout {
  width: min(980px, calc(100% - 40px));
}

.article-header {
  display: grid;
  gap: 18px;
}

.article-header h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.35rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0;
}

.article-header > p {
  max-width: 820px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1.04rem, 1.7vw, 1.22rem);
}

.article-cover,
.article-figure {
  margin: 20px 0 30px;
}

.article-cover img,
.article-figure img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.article-cover figcaption,
.article-figure figcaption {
  margin-top: 9px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.article-content {
  margin-top: 20px;
  color: var(--ink);
}

.article-content h2 {
  margin: 44px 0 14px;
  color: var(--ink);
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.article-content h3 {
  margin: 30px 0 10px;
  color: var(--ink);
  font-size: 1.3rem;
}

.article-content p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 1.04rem;
}

.article-content ul,
.article-content ol {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding-left: 22px;
  color: var(--ink-soft);
}

.article-note {
  margin: 30px 0;
  padding: 22px;
  border-left: 5px solid var(--amber);
  border-radius: 8px;
  background: #fff8ef;
}

.article-sources {
  margin-top: 34px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbff;
}

.article-sources h2 {
  margin-top: 0;
  font-size: 1.5rem;
}

.related-section {
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}

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

@media (max-width: 920px) {
  .blog-grid,
  .blog-grid--related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .blog-grid,
  .blog-grid--related {
    grid-template-columns: 1fr;
  }

  .article-layout {
    width: min(100% - 28px, 980px);
  }
}
