:root {
  color-scheme: light;
  --ink: #172126;
  --muted: #5f6a70;
  --line: #d9e2df;
  --paper: #fbfaf5;
  --paper-warm: #f8f1e7;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-solid: #ffffff;
  --deep: #10363b;
  --deep-2: #173f47;
  --green: #28705e;
  --sage: #e7f1ec;
  --sage-2: #d8e9e2;
  --gold: #c58b2c;
  --gold-soft: #f7ead3;
  --blue: #2f6288;
  --sky-soft: #edf5f8;
  --clay: #a84f45;
  --blush: #faece8;
  --red: #b23838;
  --shadow: 0 18px 55px rgba(22, 42, 52, 0.11);
  --shadow-strong: 0 24px 70px rgba(18, 52, 59, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(115deg, rgba(231, 241, 236, 0.72) 0%, rgba(231, 241, 236, 0) 32%),
    linear-gradient(245deg, rgba(247, 234, 211, 0.72) 0%, rgba(247, 234, 211, 0) 38%),
    linear-gradient(180deg, var(--paper) 0%, #f7faf7 48%, #f8f2e9 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 999;
  background:
    radial-gradient(circle at 20% 10%, rgba(231, 241, 236, 0.86), transparent 32%),
    radial-gradient(circle at 80% 0%, rgba(247, 234, 211, 0.74), transparent 34%),
    rgba(251, 250, 245, 0.94);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
  content: "";
  pointer-events: none;
}

body.is-leaving::before {
  opacity: 1;
  transform: translateY(0);
}

body:not(.is-loaded) .hero-copy,
body:not(.is-loaded) .home-hero .hero-copy,
body:not(.is-loaded) .tool-hero > div,
body:not(.is-loaded) .hero-media,
body:not(.is-loaded) .home-media,
body:not(.is-loaded) .side-rail,
body:not(.is-loaded) .tool-card {
  opacity: 0;
  transform: translateY(14px);
}

body.is-loaded .hero-copy,
body.is-loaded .home-hero .hero-copy,
body.is-loaded .tool-hero > div,
body.is-loaded .hero-media,
body.is-loaded .home-media,
body.is-loaded .side-rail,
body.is-loaded .tool-card {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 620ms ease, transform 620ms ease;
}

body.is-loaded .hero-media,
body.is-loaded .home-media,
body.is-loaded .side-rail,
body.is-loaded .tool-card {
  transition-delay: 110ms;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 58px);
  background: rgba(251, 250, 245, 0.9);
  border-bottom: 1px solid rgba(217, 226, 223, 0.82);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: min(310px, 48vw);
}

.brand-logo {
  display: block;
  width: auto;
  object-fit: contain;
}

.brand-logo-header {
  height: clamp(42px, 5.2vw, 64px);
  max-width: min(360px, 48vw);
  mix-blend-mode: multiply;
}

.brand-logo-footer {
  width: min(360px, 78vw);
  max-height: 220px;
  margin: -24px 0 8px;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.18));
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

nav a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  color: #34454f;
  font-size: 14px;
  border-radius: 6px;
  line-height: 1.1;
  text-align: center;
}

nav a:hover {
  background: var(--sage);
  color: var(--deep);
}

.hero,
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(36px, 7vw, 86px) clamp(18px, 5vw, 72px) clamp(28px, 5vw, 58px);
}

.home-hero {
  min-height: 640px;
  background:
    linear-gradient(120deg, rgba(216, 233, 226, 0.9) 0%, rgba(216, 233, 226, 0) 36%),
    linear-gradient(250deg, rgba(250, 236, 232, 0.82) 0%, rgba(250, 236, 232, 0) 42%),
    linear-gradient(180deg, #fffdf8 0%, #edf5f1 100%);
}

.hero h1,
.home-hero h1,
.tool-hero h1 {
  max-width: 920px;
  margin: 0;
  color: var(--deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 5vw, 74px);
  line-height: 1.06;
  letter-spacing: 0;
}

.hero p,
.home-hero p,
.tool-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 19px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-media {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--deep);
}

.hero-media img,
.home-hero img {
  width: 100%;
  aspect-ratio: 1.34;
  object-fit: cover;
}

.hero-actions,
.search-bar,
.lead-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-actions .button {
  min-width: 178px;
}

.button,
button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 0;
  border-radius: 7px;
  background: var(--deep);
  color: #fff;
  font: inherit;
  font-weight: 750;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
}

.button.ghost {
  background: var(--sage-2);
  color: var(--deep);
}

.search-bar {
  max-width: 760px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.search-results {
  display: grid;
  max-width: 760px;
  gap: 8px;
  margin-top: 12px;
}

.search-results a,
.search-results p {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.search-results strong {
  color: var(--deep);
}

.search-results span,
.search-results em {
  color: var(--muted);
  font-size: 13px;
}

.search-bar input,
.lead-form input,
.lead-form textarea,
.lead-form select,
.tool-card input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font: inherit;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, transform 160ms ease;
}

.lead-form textarea {
  min-height: 96px;
  padding: 12px 13px;
  resize: vertical;
}

.search-bar input:focus,
.lead-form input:focus,
.lead-form textarea:focus,
.lead-form select:focus,
.tool-card input:focus {
  border-color: rgba(40, 112, 94, 0.48);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(40, 112, 94, 0.11);
}

.lead-form input.has-value,
.lead-form textarea.has-value,
.lead-form select.has-value,
.tool-card input.has-value,
.tool-card input:not(:placeholder-shown) {
  border-color: rgba(40, 112, 94, 0.28);
}

.lead-form input.has-error {
  border-color: rgba(178, 56, 56, 0.72);
  box-shadow: 0 0 0 4px rgba(178, 56, 56, 0.11);
}

.lead-form textarea.has-error {
  border-color: rgba(178, 56, 56, 0.72);
  box-shadow: 0 0 0 4px rgba(178, 56, 56, 0.11);
}

.search-bar input {
  flex: 1 1 320px;
  border-color: transparent;
}

.hub-grid,
.featured,
.related,
.ops-panel,
.tool-grid,
.content-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

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

.hub-card,
.related-grid a,
.lead-panel,
.answer-box,
.tool-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(22, 42, 52, 0.06);
  backdrop-filter: blur(10px);
}

.hub-card {
  min-height: 210px;
  padding: 20px;
}

.hub-card span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hub-card strong,
.related-grid strong {
  display: block;
  margin-top: 10px;
  color: var(--deep);
  font-size: 20px;
  line-height: 1.2;
}

.hub-card p,
.related-grid span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.featured {
  padding: 44px 0;
}

.featured h2,
.related h2,
.article h2,
.lead-panel h2,
.sources h2 {
  margin: 0 0 14px;
  color: var(--deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.12;
  letter-spacing: 0;
}

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

.related-grid a {
  padding: 18px;
}

.ops-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 26px 0 64px;
}

.ops-panel div {
  padding: 18px;
  border-top: 3px solid var(--green);
  background: var(--panel);
}

.ops-panel strong {
  display: block;
  color: var(--deep);
  font-size: 30px;
}

.ops-panel span {
  color: var(--muted);
  font-size: 14px;
}

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

.article {
  min-width: 0;
}

.article section,
.sources,
.toc {
  padding: 28px;
  margin-bottom: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(22, 42, 52, 0.045);
  backdrop-filter: blur(10px);
}

.support-visual {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 22px;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(237, 245, 248, 0.95) 0%, rgba(237, 245, 248, 0) 48%),
    linear-gradient(245deg, rgba(247, 234, 211, 0.72) 0%, rgba(247, 234, 211, 0) 54%),
    rgba(255, 255, 255, 0.92);
}

.support-visual::before {
  position: absolute;
  top: 0;
  right: 28px;
  left: 28px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--green));
  content: "";
}

.support-visual figure {
  margin: 0;
}

.support-visual img {
  width: 100%;
  aspect-ratio: 1.42;
  object-fit: cover;
  border: 1px solid rgba(217, 226, 223, 0.9);
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(18, 52, 59, 0.12);
}

.mini-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.mini-metrics span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 6px 10px;
  color: var(--deep);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(217, 226, 223, 0.9);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.faq-section details + details {
  margin-top: 10px;
}

.tool-section-wrap {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 16px;
}

.tool-section-wrap .support-visual,
.tool-section-wrap .faq-section {
  padding: 28px;
  background-color: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(22, 42, 52, 0.045);
}

.home-source-band .sources {
  margin-bottom: 0;
}

.toc {
  position: sticky;
  top: 86px;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(217, 226, 223, 0.74);
  border-radius: 8px;
  background: rgba(251, 250, 245, 0.72);
  box-shadow: 0 10px 28px rgba(18, 52, 59, 0.045);
  backdrop-filter: blur(12px);
}

.toc::before {
  position: absolute;
  right: 10px;
  bottom: 0;
  left: 10px;
  height: 2px;
  border-radius: 999px;
  background: rgba(217, 226, 223, 0.8);
  content: "";
}

.toc::after {
  position: absolute;
  bottom: 0;
  left: 10px;
  width: var(--toc-progress, 0%);
  max-width: calc(100% - 20px);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  transition: width 120ms linear;
  content: "";
}

.toc a {
  position: relative;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  color: var(--deep);
  background: var(--sage);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.1;
  text-align: center;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.toc a::after {
  position: absolute;
  right: 10px;
  bottom: 6px;
  left: 10px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  opacity: 0;
  transform: scaleX(0.3);
  transition: opacity 180ms ease, transform 180ms ease;
  content: "";
}

.toc a.is-active {
  background: #fff;
  color: var(--deep);
  box-shadow: 0 8px 18px rgba(18, 52, 59, 0.08);
}

.toc a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.answer-box {
  border-left: 5px solid var(--green);
}

.answer-box h2 {
  font-size: clamp(25px, 2.4vw, 36px);
  line-height: 1.14;
}

.answer-box p:last-child {
  color: #24333b;
  font-size: 19px;
}

.data-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.data-table div {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 16px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.data-table div:last-child {
  border-bottom: 0;
}

.data-table strong {
  color: var(--deep);
}

.side-rail {
  position: sticky;
  top: 94px;
  transition: transform 220ms ease, filter 220ms ease;
}

.lead-panel {
  padding: 22px;
}

.lead-form {
  margin-top: 18px;
}

.lead-form input,
.lead-form select,
.lead-form button {
  flex: 1 1 100%;
}

.form-status {
  min-height: 22px;
  margin: 2px 0 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  transition: color 160ms ease;
}

.lead-form.is-success .form-status {
  color: var(--deep);
}

.lead-form.is-success button {
  background: var(--green);
}

.sources ul {
  padding-left: 20px;
}

.sources li {
  margin: 10px 0;
}

.sources a {
  color: var(--blue);
  font-weight: 800;
}

.sources span {
  color: var(--muted);
}

.related {
  padding-bottom: 60px;
}

.tool-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: 32px;
  align-items: center;
  padding: clamp(44px, 7vw, 92px) clamp(18px, 5vw, 72px) 26px;
  background:
    linear-gradient(118deg, rgba(237, 245, 248, 0.96) 0%, rgba(237, 245, 248, 0) 46%),
    linear-gradient(245deg, rgba(247, 234, 211, 0.75) 0%, rgba(247, 234, 211, 0) 42%),
    var(--sage);
}

.tool-hero img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.tool-answer,
.tool-sources {
  width: min(1180px, calc(100% - 36px));
  margin: 24px auto 0;
}

.tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  padding: 36px 0 72px;
}

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

.tool-card label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 750;
}

.tool-card button {
  grid-column: 1 / -1;
}

.tool-result {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  padding: 16px;
  background: linear-gradient(135deg, var(--sage) 0%, var(--sky-soft) 100%);
  border: 1px solid #c8ded5;
  border-radius: 8px;
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease, background 200ms ease;
}

.tool-result strong {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
  color: var(--deep);
  font-size: 24px;
}

.tool-result strong b {
  font: inherit;
}

.tool-result span {
  color: var(--muted);
}

.tool-result.is-updated {
  border-color: rgba(40, 112, 94, 0.34);
  background: linear-gradient(135deg, #eef8f3 0%, var(--sky-soft) 100%);
  box-shadow: 0 14px 32px rgba(18, 52, 59, 0.11);
  transform: translateY(-1px);
}

.dashboard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.dashboard-actions strong {
  color: var(--deep);
  font-size: 22px;
}

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

.lead-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font-size: 14px;
}

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

.lead-table th {
  color: var(--deep);
  background: var(--sage);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 36px clamp(18px, 5vw, 72px);
  background:
    linear-gradient(120deg, rgba(197, 139, 44, 0.16) 0%, rgba(197, 139, 44, 0) 42%),
    linear-gradient(180deg, var(--deep-2) 0%, #09272c 100%);
  color: #fff;
}

.site-footer p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.75);
}

.phone-link,
.lead-phone a,
.contact-options a {
  font-weight: 800;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(197, 139, 44, 0.55);
  text-underline-offset: 3px;
}

.lead-phone {
  padding: 10px 12px;
  border: 1px solid rgba(197, 139, 44, 0.26);
  border-radius: 8px;
  background: rgba(247, 234, 211, 0.45);
  color: var(--deep);
  font-size: 14px;
}

.conversion-hero .hero-actions {
  margin-top: 20px;
}

.lead-path-list {
  display: grid;
  gap: 10px;
}

.lead-path-list a {
  display: grid;
  gap: 4px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.lead-path-list strong {
  color: var(--deep);
}

.lead-path-list span {
  color: var(--muted);
  font-size: 13px;
}

.mobile-sticky-cta {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 45;
  display: none;
  grid-template-columns: 0.78fr 0.78fr 1.3fr;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(217, 226, 223, 0.84);
  border-radius: 10px;
  background: rgba(251, 250, 245, 0.94);
  box-shadow: 0 18px 45px rgba(18, 52, 59, 0.2);
  backdrop-filter: blur(14px);
}

.mobile-sticky-cta a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--deep);
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}

.mobile-sticky-cta a:nth-child(2) {
  background: var(--green);
}

.mobile-sticky-cta a:nth-child(3) {
  background: linear-gradient(90deg, var(--red), var(--gold));
}

.site-footer .brand-logo-footer {
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: flex-start;
}

.footer-links a {
  color: #fff;
  opacity: 0.88;
}

@media (max-width: 980px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo-header {
    max-width: min(330px, 72vw);
  }

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

  .hub-grid,
  .related-grid,
  .ops-panel,
  .tool-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .side-rail,
  .toc {
    position: static;
  }
}

@media (max-width: 640px) {
  .brand {
    min-width: 0;
  }

  .hero h1,
  .home-hero h1,
  .tool-hero h1 {
    font-size: 42px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hub-grid,
  .related-grid,
  .ops-panel,
  .tool-card {
    grid-template-columns: 1fr;
  }

  .article section,
  .sources,
  .lead-panel {
    padding: 20px;
  }

  .support-visual {
    grid-template-columns: 1fr;
  }

  .data-table div {
    grid-template-columns: 1fr;
  }
}

body.nav-open {
  overflow: hidden;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 100%;
  height: 3px;
  background: transparent;
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--gold));
}

.site-header {
  transition: padding 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  padding-top: 10px;
  padding-bottom: 10px;
  background: rgba(251, 250, 245, 0.97);
  box-shadow: 0 12px 35px rgba(18, 52, 59, 0.1);
}

.editorial-strip {
  position: relative;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  padding: 8px clamp(18px, 4vw, 58px);
  border-bottom: 1px solid rgba(217, 226, 223, 0.75);
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.editorial-strip span,
.editorial-strip a {
  display: inline-flex;
  align-items: center;
}

.editorial-strip span::before,
.editorial-strip a::before {
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 999px;
  background: var(--red);
  content: "";
}

.editorial-strip a {
  color: var(--deep);
  text-decoration: underline;
  text-decoration-color: rgba(179, 38, 47, 0.45);
  text-underline-offset: 3px;
}

nav a {
  position: relative;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

nav a:hover,
nav a.is-active,
nav a[aria-current="page"] {
  background: var(--sage);
  color: var(--deep);
}

nav a.is-active::after,
nav a[aria-current="page"]::after {
  position: absolute;
  right: 10px;
  bottom: 4px;
  left: 10px;
  height: 2px;
  background: var(--red);
  content: "";
}

.menu-toggle {
  display: none;
  width: 46px;
  min-height: 46px;
  padding: 0;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--deep);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle em {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.nav-open .menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.home-hero {
  overflow: hidden;
  background:
    linear-gradient(118deg, rgba(216, 233, 226, 0.92) 0%, rgba(216, 233, 226, 0) 38%),
    linear-gradient(250deg, rgba(250, 236, 232, 0.76) 0%, rgba(250, 236, 232, 0) 44%),
    linear-gradient(180deg, #fffdf8 0%, #edf5f1 100%);
}

.tool-hero {
  background:
    linear-gradient(118deg, rgba(237, 245, 248, 0.96) 0%, rgba(237, 245, 248, 0) 46%),
    linear-gradient(245deg, rgba(247, 234, 211, 0.75) 0%, rgba(247, 234, 211, 0) 42%),
    var(--sage);
}

.hero-media {
  position: relative;
  isolation: isolate;
  transform: translateZ(0);
}

.hero-media::after,
.home-media::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(16, 54, 59, 0.36), transparent 46%),
    linear-gradient(0deg, rgba(168, 79, 69, 0.16), transparent 36%);
  content: "";
  pointer-events: none;
}

.hero-media::before,
.home-media::before {
  position: absolute;
  inset: -35% -55%;
  z-index: 2;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.38) 50%, transparent 62%);
  opacity: 0;
  transform: translateX(-34%) rotate(3deg);
  transition: opacity 280ms ease, transform 760ms ease;
  content: "";
  pointer-events: none;
}

.hero-media img,
.home-hero img,
.tool-hero img {
  transform: translateY(var(--image-depth, 0));
  transition: transform 620ms ease, filter 620ms ease;
  will-change: transform;
}

.hero-media:hover img,
.home-media:hover img,
.tool-hero img:hover {
  transform: translateY(var(--image-depth, 0)) scale(1.035);
  filter: saturate(1.06) contrast(1.03);
}

.hero-media:hover::before,
.home-media:hover::before {
  opacity: 1;
  transform: translateX(34%) rotate(3deg);
}

body.is-loaded .hero-media {
  animation: hero-breathe 9s ease-in-out infinite;
}

.button,
button {
  position: relative;
  overflow: hidden;
  transform: translate(var(--btn-dx, 0), var(--btn-dy, 0));
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button::after,
button::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 28%, rgba(255, 255, 255, 0.28) 50%, transparent 72%);
  opacity: 0;
  transform: translateX(-110%);
  transition: opacity 180ms ease, transform 520ms ease;
  content: "";
  pointer-events: none;
}

.button::before,
button::before {
  position: absolute;
  inset: -1px;
  background: radial-gradient(circle at var(--btn-x, 50%) var(--btn-y, 50%), rgba(255, 255, 255, 0.34), transparent 34%);
  opacity: 0;
  transition: opacity 160ms ease;
  content: "";
  pointer-events: none;
}

.button:hover,
button:hover {
  transform: translate(var(--btn-dx, 0), calc(var(--btn-dy, 0) - 1px));
  box-shadow: 0 12px 28px rgba(18, 52, 59, 0.16);
}

.button:hover::before,
button:hover::before {
  opacity: 1;
}

.button:hover::after,
button:hover::after {
  opacity: 1;
  transform: translateX(110%);
}

.hub-card,
.related-grid a,
.lead-panel,
.tool-card,
.process-grid article,
.answer-box,
.data-table div,
.sources {
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.hub-card::before,
.related-grid a::before,
.lead-panel::before,
.tool-card::before,
.process-grid article::before,
.answer-box::before,
.sources::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  content: "";
}

.hub-card::after,
.related-grid a::after,
.lead-panel::after,
.tool-card::after,
.process-grid article::after,
.answer-box::after,
.data-table div::after,
.sources::after {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.75), transparent 24%);
  opacity: 0;
  transition: opacity 180ms ease;
  content: "";
  pointer-events: none;
}

.hub-card:hover,
.related-grid a:hover,
.lead-panel:hover,
.tool-card:hover,
.process-grid article:hover,
.answer-box:hover,
.sources:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 79, 69, 0.35);
  box-shadow: var(--shadow-strong);
}

.data-table div {
  transition: background 180ms ease, transform 180ms ease;
}

.data-table div:hover {
  background: rgba(231, 241, 236, 0.46);
  transform: translateX(3px);
}

.hub-card:hover::after,
.related-grid a:hover::after,
.lead-panel:hover::after,
.tool-card:hover::after,
.process-grid article:hover::after,
.answer-box:hover::after,
.data-table div:hover::after,
.sources:hover::after {
  opacity: 0.8;
}

.lead-panel {
  transform-origin: top center;
}

.lead-panel.is-visible {
  animation: lead-settle 760ms cubic-bezier(.2,.72,.18,1) both, panel-float 8s ease-in-out 900ms infinite;
}

.answer-box {
  border-left-color: var(--red);
}

.ops-panel div {
  position: relative;
  overflow: hidden;
  border-top-color: var(--red);
}

.toc a:hover {
  background: var(--blush);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.hero-trust span,
.region-chip {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(168, 79, 69, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--deep);
  font-size: 13px;
  font-weight: 800;
}

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

.process-grid article {
  min-height: 210px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 26px rgba(22, 42, 52, 0.06);
}

.process-grid article span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
}

.process-grid article strong {
  display: block;
  margin: 12px 0 6px;
  color: var(--deep);
  font-size: 21px;
}

.process-grid article p {
  margin: 0;
  color: var(--muted);
}

.score-pill {
  display: inline-flex;
  min-width: 42px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--sage);
  color: var(--deep);
  font-weight: 850;
}

.reveal-item {
  opacity: 0;
  transform: translateY(22px) scale(0.992);
  transition: opacity 640ms ease, transform 640ms cubic-bezier(.2,.72,.18,1);
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes hero-breathe {
  0%,
  100% {
    box-shadow: var(--shadow);
  }
  50% {
    box-shadow: 0 28px 78px rgba(18, 52, 59, 0.2);
  }
}

@keyframes panel-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes lead-settle {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  62% {
    opacity: 1;
    transform: translateY(-2px) scale(1.004);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  width: min(540px, calc(100% - 36px));
  padding: 16px;
  border: 1px solid rgba(217, 226, 223, 0.9);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.97) 0%, rgba(247, 250, 247, 0.94) 100%);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(14px);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner strong {
  color: var(--deep);
}

.cookie-banner p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.cookie-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

details {
  overflow: hidden;
  border-radius: 8px;
  transition: background 180ms ease, box-shadow 180ms ease;
}

details[open] {
  background: rgba(231, 241, 236, 0.28);
  box-shadow: inset 3px 0 0 rgba(40, 112, 94, 0.28);
}

details summary {
  cursor: pointer;
  transition: color 160ms ease;
}

details summary:hover {
  color: var(--green);
}

@media (max-width: 980px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
  }

  #primary-nav {
    grid-column: 1 / -1;
    display: none;
    justify-content: flex-start;
    gap: 10px;
    padding-top: 12px;
  }

  .nav-open #primary-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #primary-nav a {
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid rgba(217, 226, 223, 0.82);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 8px 20px rgba(18, 52, 59, 0.06);
  }

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

@media (max-width: 640px) {
  body {
    padding-bottom: 78px;
  }

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

  .site-header {
    gap: 10px;
    padding: 12px 18px;
  }

  .brand {
    min-width: 0;
    width: min(248px, calc(100vw - 98px));
  }

  .brand-logo-header {
    width: 100%;
    height: auto;
    max-height: 44px;
    max-width: none;
  }

  .editorial-strip {
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    padding: 8px 18px;
    font-size: 11px;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .editorial-strip::-webkit-scrollbar {
    display: none;
  }

  .hero,
  .home-hero,
  .tool-hero {
    gap: 22px;
    padding: 28px 20px 30px;
  }

  .home-hero {
    min-height: auto;
  }

  .hero h1,
  .home-hero h1,
  .tool-hero h1 {
    font-size: clamp(34px, 10.4vw, 42px);
    line-height: 1.04;
  }

  .process-grid,
  .cookie-banner {
    grid-template-columns: 1fr;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-actions button {
    flex: 1;
  }

  .home-hero p,
  .hero p,
  .tool-hero p {
    font-size: 17px;
  }

  .hero-trust {
    margin: 14px 0;
  }

  .hero-trust span {
    min-height: 36px;
    padding: 0 11px;
    font-size: 12px;
  }

  .search-bar {
    gap: 8px;
    padding: 7px;
  }

  .search-bar input {
    flex-basis: 100%;
    min-height: 48px;
  }

  .search-bar button {
    width: 100%;
  }

  .home-hero img {
    aspect-ratio: 1.22;
  }

  .site-footer {
    gap: 18px;
    padding: 28px 20px;
  }

  .brand-logo-footer {
    width: min(260px, 72vw);
    max-height: 170px;
    margin: -10px 0 4px;
  }

  .footer-links {
    gap: 8px;
  }

  .footer-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal-item {
    opacity: 1;
    transform: none;
  }

  body:not(.is-loaded) .hero-copy,
  body:not(.is-loaded) .home-hero .hero-copy,
  body:not(.is-loaded) .tool-hero > div,
  body:not(.is-loaded) .hero-media,
  body:not(.is-loaded) .home-media,
  body:not(.is-loaded) .side-rail,
  body:not(.is-loaded) .tool-card {
    opacity: 1;
    transform: none;
  }
}
