:root {
  color-scheme: light;
  --ink: #10231c;
  --ink-soft: #43544e;
  --muted: #6a7a73;
  --paper: #f7fbf7;
  --panel: #ffffff;
  --panel-tint: #eef7f2;
  --line: #d7e5dd;
  --green: #0d6b45;
  --green-dark: #08462f;
  --mint: #32d18a;
  --cyan: #0ea5b7;
  --gold: #f2b84b;
  --coral: #e96f55;
  --shadow: 0 20px 60px rgba(16, 35, 28, 0.12);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #f7fbf7 0%, #eef6f2 48%, #f8faf5 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a {
  color: var(--green);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

a:hover {
  color: var(--green-dark);
}

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

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -6rem;
  z-index: 10;
  padding: 0.6rem 0.9rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
}

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

.topbar {
  width: min(calc(100% - 32px), var(--max));
  margin: 18px auto 0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 35px rgba(16, 35, 28, 0.08);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: sticky;
  top: 12px;
  z-index: 5;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  min-width: 245px;
}

.brand strong {
  display: block;
  line-height: 1.1;
  font-size: 1.05rem;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 2px;
}

.mark {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: inline-grid;
  place-items: center;
  background: var(--ink);
  color: #bdf8d8;
  font-weight: 900;
  border: 2px solid rgba(50, 209, 138, 0.35);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a,
.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.62rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.nav a:hover,
.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(13, 107, 69, 0.4);
  box-shadow: 0 10px 24px rgba(16, 35, 28, 0.1);
}

.nav-cta,
.btn.primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.btn.primary:hover {
  color: #fff;
  background: var(--green-dark);
}

main {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.hero,
.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 28px;
  align-items: center;
  padding: 74px 0 36px;
}

.page-hero.compact {
  grid-template-columns: minmax(0, 780px);
  padding-bottom: 14px;
}

.hero-copy,
.panel,
.card,
.tool-card,
.case-card,
.article,
.cta-band,
.footer {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 42px rgba(16, 35, 28, 0.08);
}

.hero-copy {
  padding: 34px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  background: var(--panel-tint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.62rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  margin-top: 16px;
  font-size: clamp(2.55rem, 6vw, 5.4rem);
  max-width: 11ch;
}

.page-hero h1,
.article h1 {
  max-width: 13ch;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.55rem);
}

h3 {
  font-size: 1.25rem;
}

.lede {
  color: var(--ink-soft);
  font-size: 1.14rem;
  max-width: 64ch;
  margin: 18px 0 0;
}

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.trust-strip span,
.tags span,
.check-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.32rem 0.62rem;
  border-radius: var(--radius);
  background: #f4faf7;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-weight: 800;
  font-size: 0.9rem;
}

.image-slot {
  min-height: 420px;
  border-radius: var(--radius);
  border: 1px solid #b9d7ca;
  background:
    linear-gradient(90deg, rgba(13, 107, 69, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(13, 107, 69, 0.06) 1px, transparent 1px),
    linear-gradient(135deg, #fbfffb 0%, #e8f7ef 54%, #fff7e8 100%);
  background-size: 32px 32px, 32px 32px, auto;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.image-slot::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent 0%, rgba(13, 107, 69, 0.12) 100%);
  pointer-events: none;
}

.hero-visual {
  padding: 24px;
  display: grid;
  align-content: space-between;
  gap: 18px;
}

.hero-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: saturate(0.85);
}

.map-card,
.rank-card {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 14px 38px rgba(16, 35, 28, 0.1);
}

.map-card {
  width: min(100%, 350px);
}

.map-card strong,
.rank-card b {
  display: block;
  font-size: 1.15rem;
  line-height: 1.2;
}

.map-card small {
  display: block;
  color: var(--muted);
  margin-top: 8px;
}

.pin {
  width: 42px;
  height: 42px;
  display: inline-block;
  border-radius: 50% 50% 50% 0;
  background: var(--coral);
  transform: rotate(-45deg);
  margin: 4px 0 18px 10px;
  box-shadow: 0 0 0 8px rgba(233, 111, 85, 0.14);
}

.pin::after {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 14px;
  left: 14px;
}

.rank-card {
  width: min(100%, 310px);
  justify-self: end;
}

.rank-card span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 10px;
}

.rank-card span::after {
  content: "check";
  color: var(--green);
  font-weight: 900;
}

.section {
  padding: 34px 0;
}

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

.card,
.panel,
.tool-card {
  padding: 24px;
}

.card h2 {
  font-size: 1.35rem;
}

.card p,
.panel p,
.case-card p,
.footer p {
  color: var(--ink-soft);
}

.card a,
.case-card a {
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 16px;
  align-items: stretch;
}

.tool-preview {
  display: grid;
  gap: 12px;
}

.tool-preview div {
  min-height: 100px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  border-left: 6px solid var(--mint);
}

.tool-preview div:nth-child(2) {
  border-left-color: var(--gold);
}

.tool-preview div:nth-child(3) {
  border-left-color: var(--cyan);
}

.tool-preview strong,
.tool-preview span {
  display: block;
}

.tool-preview span {
  color: #c6d9d1;
  margin-top: 6px;
}

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

.section-head h2 {
  margin-top: 12px;
}

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

.case-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: 160px 1fr;
}

.case-image {
  min-height: 160px;
  box-shadow: none;
  display: grid;
  place-items: end start;
  padding: 14px;
  position: relative;
  overflow: hidden;
  background: var(--panel-tint);
}

.case-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(16, 35, 28, 0.46) 100%);
  z-index: 1;
}

.case-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-image span {
  position: relative;
  z-index: 2;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 0.34rem 0.55rem;
  font-weight: 900;
  font-size: 0.78rem;
}

.case-body {
  padding: 20px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 16px 0;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px;
  background:
    linear-gradient(90deg, var(--ink) 0%, #173f2c 100%);
  color: #fff;
}

.cta-band h2,
.cta-band .eyebrow {
  color: #fff;
}

.cta-band .eyebrow {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.cta-band .btn.primary {
  background: #fff;
  color: var(--green-dark);
  border-color: #fff;
}

.service-visual {
  min-height: 310px;
  padding: 26px;
  display: grid;
  align-content: end;
}

.service-visual strong,
.service-visual span {
  position: relative;
  z-index: 1;
  display: block;
}

.service-visual strong {
  font-size: 2rem;
  line-height: 1.08;
}

.service-visual span {
  color: var(--ink-soft);
  max-width: 38ch;
  margin-top: 8px;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.clean-list {
  padding-left: 1.2rem;
  margin: 18px 0 24px;
  color: var(--ink-soft);
}

.clean-list li + li {
  margin-top: 8px;
}

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

.tool-card h2 {
  font-size: 1.35rem;
  margin-bottom: 16px;
}

.checks {
  display: grid;
  gap: 10px;
}

.checks label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f9fcfa;
  color: var(--ink-soft);
}

.checks input {
  width: 20px;
  height: 20px;
  margin-top: 4px;
  accent-color: var(--green);
}

.score-output,
.tool-output {
  display: block;
  margin-top: 16px;
  padding: 14px;
  min-height: 54px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--ink);
  color: #eafff3;
  white-space: pre-line;
}

.tool-card input,
.tool-card textarea,
.audit-form input,
.audit-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 0.72rem 0.82rem;
  margin: 6px 0 12px;
}

.tool-card textarea,
.audit-form textarea {
  min-height: 116px;
  resize: vertical;
}

.audit-form label {
  display: block;
  color: var(--ink-soft);
  font-weight: 800;
}

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

.notice {
  padding: 12px 14px;
  border-radius: var(--radius);
  background: #e9f8ef;
  border: 1px solid #bfe8cd;
  color: var(--green-dark);
  font-weight: 900;
  margin-bottom: 14px;
}

.micro {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0;
}

.contact-card {
  align-self: start;
}

.article {
  width: min(100%, 860px);
  margin: 54px auto 34px;
  padding: 34px;
}

.article-body {
  margin: 26px 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.footer {
  width: min(calc(100% - 32px), var(--max));
  margin: 44px auto 18px;
  padding: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 22px;
}

.footer strong {
  display: block;
  font-size: 1.2rem;
}

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

.footer-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.7rem;
  background: var(--panel-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 900;
  text-decoration: none;
}

.copyright {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin: 0;
  font-size: 0.92rem;
}

:focus-visible {
  outline: 3px solid rgba(14, 165, 183, 0.45);
  outline-offset: 3px;
}

@media (max-width: 1020px) {
  .topbar,
  .hero,
  .page-hero,
  .split,
  .footer {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
  }

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

  .tool-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .topbar,
  main,
  .footer {
    width: min(calc(100% - 20px), var(--max));
  }

  .topbar {
    position: static;
    margin-top: 10px;
    flex-direction: column;
    gap: 12px;
  }

  .brand {
    width: 100%;
    min-width: 0;
  }

  .brand strong {
    font-size: 1.18rem;
  }

  .brand small {
    font-size: 0.9rem;
  }

  .mark {
    width: 48px;
    height: 48px;
  }

  .nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .nav a {
    min-height: 42px;
    padding: 0.48rem 0.4rem;
    font-size: 0.92rem;
    text-align: center;
  }

  .hero,
  .page-hero {
    padding-top: 26px;
    gap: 18px;
  }

  .hero-copy,
  .panel,
  .card,
  .tool-card,
  .article,
  .cta-band,
  .footer {
    padding: 20px;
  }

  h1 {
    font-size: 2.65rem;
    max-width: 11ch;
  }

  .lede {
    font-size: 1.05rem;
    line-height: 1.7;
  }

  .image-slot {
    min-height: 330px;
  }

  .service-grid,
  .case-grid,
  .check-grid {
    grid-template-columns: 1fr;
  }

  .cta-band {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 440px) {
  h1 {
    font-size: 2.28rem;
    max-width: 12ch;
  }

  .hero-copy,
  .panel,
  .card,
  .tool-card,
  .article,
  .cta-band,
  .footer {
    padding: 18px;
  }

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

  .actions .btn,
  .cta-band .btn,
  .audit-form .btn {
    width: 100%;
  }

  .rank-card {
    justify-self: stretch;
  }
}

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