@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --ink: #182826;
  --cream: #f9f6ef;
  --mint: #dff3e8;
  --line: #dbe4df;
  --brand-glow: rgba(36, 95, 79, 0.18);
  --card-shadow: 0 4px 12px rgba(20, 42, 35, 0.07);
}

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

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 4% 3%,  rgba(57, 152, 122, 0.28) 0%, transparent 38%),
    radial-gradient(ellipse at 92% 0%,  rgba(100, 160, 230, 0.22) 0%, transparent 34%),
    radial-gradient(ellipse at 50% 100%, rgba(36, 95, 79, 0.10) 0%, transparent 45%),
    linear-gradient(180deg, #f5faf7 0%, #f9f6ef 60%, #f6f2ea 100%);
  overflow-x: hidden;
}

.page-shell {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  pointer-events: none;
}

.orb-one {
  top: -120px;
  right: -110px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(57, 152, 122, 0.22) 0%, rgba(57, 152, 122, 0) 70%);
}

.orb-two {
  bottom: -110px;
  left: -110px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.22) 0%, rgba(59, 130, 246, 0) 70%);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.75rem;
  background: linear-gradient(145deg, #152e28 0%, #1f4b40 45%, #2f8068 100%);
  box-shadow: 0 2px 8px rgba(21, 46, 40, 0.35);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.8rem;
}

.hero-graphic {
  position: relative;
  border-radius: 1.5rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.97), rgba(228, 245, 236, 0.93));
  border: 1px solid rgba(180, 210, 196, 0.7);
  padding: 1rem;
  min-height: 360px;
  box-shadow:
    0 2px 4px rgba(26, 57, 45, 0.06),
    0 8px 20px rgba(26, 57, 45, 0.10),
    0 30px 60px rgba(26, 57, 45, 0.14);
}

.placeholder-media {
  border: 1px dashed #b7c6be;
  border-radius: 1rem;
  background: repeating-linear-gradient(
    -45deg,
    rgba(224, 236, 229, 0.45),
    rgba(224, 236, 229, 0.45) 14px,
    rgba(244, 249, 246, 0.45) 14px,
    rgba(244, 249, 246, 0.45) 28px
  );
  min-height: 250px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.2rem;
}

.kpi-card {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: min(280px, calc(100% - 2rem));
  border-radius: 1rem;
  border: 1px solid #d6dfda;
  background: rgba(255, 255, 255, 0.96);
  padding: 0.9rem 1rem;
  box-shadow:
    0 2px 6px rgba(28, 50, 45, 0.08),
    0 14px 32px rgba(28, 50, 45, 0.14);
}

.stat-card {
  border: 1px solid #dde4e0;
  border-left: 3px solid #245f4f;
  border-radius: 1rem;
  background: linear-gradient(160deg, #ffffff 0%, #f4fbf7 100%);
  padding: 1rem;
  box-shadow: var(--card-shadow);
}

.stat-value {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 700;
  color: #1f4b40;
}

.stat-label {
  margin-top: 0.55rem;
  font-size: 0.9rem;
  color: #304542;
}

.stat-source {
  margin-top: 0.6rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6a7b75;
}

.info-card {
  border: 1px solid #dbe4df;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.82);
  padding: 1.2rem;
}

.info-step {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: #2c7a63;
}

.trust-pill {
  border-radius: 999px;
  border: 1px solid #b6dfce;
  background: rgba(255, 255, 255, 0.72);
  padding: 0.65rem 0.85rem;
}

.faq-item {
  border: 1px solid #dce4df;
  border-radius: 1rem;
  background: #ffffff;
  padding: 0.9rem 1rem;
}

.faq-item summary {
  list-style: none;
  font-weight: 700;
  cursor: pointer;
  color: #152422;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: #245f4f;
}

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

.faq-item p {
  margin-top: 0.55rem;
  font-size: 0.94rem;
  color: #344744;
}

.step-dot {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid #cad4cf;
  background: #ffffff;
  color: #4e635f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.step-dot.active {
  background: #245f4f;
  border-color: #245f4f;
  color: #ffffff;
}

.field {
  display: block;
}

.field span {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #3a4f4a;
  margin-bottom: 0.4rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #ccd6d2;
  border-radius: 0.8rem;
  padding: 0.7rem 0.8rem;
  font-size: 0.95rem;
  line-height: 1.3;
  color: #1e2f2c;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: #2c7a63;
  box-shadow: 0 0 0 3px rgba(44, 122, 99, 0.18);
}

.field input.is-invalid,
.field select.is-invalid,
.field textarea.is-invalid {
  border-color: #e11d48;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.15);
}

.quiz-step {
  animation: fade-up 260ms ease;
}

.hidden {
  display: none !important;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .hero-graphic {
    min-height: 315px;
  }

  .kpi-card {
    position: static;
    margin-top: 0.9rem;
    width: 100%;
  }
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  background: rgba(246, 250, 248, 0.90);
  border-bottom: 1px solid rgba(200, 218, 210, 0.75);
  transition: box-shadow 0.25s ease;
}

.site-header.scrolled {
  box-shadow:
    0 1px 0 rgba(170, 200, 188, 0.4),
    0 4px 20px rgba(20, 42, 35, 0.10);
}

.nav-link {
  color: #344744;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #245f4f;
}

.active-nav {
  color: #245f4f;
  font-weight: 800;
}

.active-nav::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #245f4f;
}

.mobile-menu-panel {
  border-top: 1px solid #d6dfda;
  background: rgba(255, 255, 255, 0.96);
}

.mobile-link {
  display: block;
  border-radius: 0.75rem;
  padding: 0.65rem 0.85rem;
  font-weight: 700;
  color: #334844;
}

.mobile-link:hover {
  background: #eef8f4;
  color: #245f4f;
}

.page-hero {
  border: 1px solid rgba(185, 215, 200, 0.75);
  border-radius: 1.5rem;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.97) 0%,
    rgba(228, 246, 237, 0.92) 55%,
    rgba(210, 238, 224, 0.85) 100%
  );
  padding: 1.5rem;
  box-shadow:
    0 2px 6px rgba(24, 52, 42, 0.05),
    0 10px 28px rgba(24, 52, 42, 0.09);
}

.page-hero h1 {
  line-height: 1.05;
  text-wrap: balance;
}

.content-card {
  border: 1px solid #d4ddd8;
  border-radius: 1.1rem;
  background: linear-gradient(160deg, #ffffff 0%, #f7fbf9 100%);
  padding: 1.2rem;
  min-width: 0;
  box-shadow: var(--card-shadow);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
}

.metric {
  border: 1px solid #dce4df;
  border-radius: 0.95rem;
  padding: 0.9rem;
  background: #fdfefe;
}

.metric strong {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.55rem;
  line-height: 1;
  color: #1f4b40;
}

.cta-band {
  border: 1.5px solid #9ecfb8;
  border-radius: 1.5rem;
  padding: 1.3rem;
  background: linear-gradient(
    155deg,
    rgba(228, 246, 237, 0.98) 0%,
    rgba(195, 232, 213, 0.94) 50%,
    rgba(172, 222, 200, 0.90) 100%
  );
  box-shadow:
    0 2px 8px rgba(36, 95, 79, 0.08),
    0 0 0 1px rgba(158, 207, 184, 0.4);
}

.inline-list {
  margin: 0;
  padding-left: 1.1rem;
  color: #39504b;
}

.inline-list li {
  margin-top: 0.25rem;
}

.resource-card {
  border: 1px solid #dbe4df;
  border-radius: 1rem;
  background: #fff;
  padding: 1rem;
  min-width: 0;
  box-shadow: var(--card-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.resource-card:hover {
  transform: translateY(-3px);
  border-color: #b6dfce;
  box-shadow:
    0 2px 6px rgba(29, 54, 48, 0.06),
    0 14px 32px rgba(29, 54, 48, 0.14);
}

.tag {
  display: inline-flex;
  border-radius: 999px;
  background: #eef8f4;
  border: 1px solid #c8dfd5;
  padding: 0.2rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #245f4f;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.legal-copy p,
.legal-copy li {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #344744;
}

.legal-copy h2 {
  margin-top: 1.2rem;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.25rem;
  color: #132321;
}

.small-muted {
  font-size: 0.8rem;
  color: #647874;
}

.gateway-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.8rem;
}

.gateway-card {
  border: 1px solid #dbe4df;
  border-radius: 1rem;
  background: #ffffff;
  padding: 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.gateway-card:hover {
  transform: translateY(-3px);
  border-color: #b6dfce;
  box-shadow:
    0 2px 6px rgba(28, 52, 45, 0.06),
    0 14px 32px rgba(28, 52, 45, 0.14);
}

.gateway-card::after {
  content: "→";
  position: absolute;
  bottom: 0.75rem;
  right: 0.85rem;
  font-size: 0.9rem;
  color: #245f4f;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.gateway-card:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.stock-image {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  min-height: 240px;
  object-fit: cover;
  border-radius: 1rem;
}

.methodology-panel {
  border: 1px solid #b8d8cc;
  border-radius: 1rem;
  background: linear-gradient(165deg, #f4faf7 0%, #e8f4ee 100%);
  padding: 1rem;
  min-width: 0;
  box-shadow:
    0 1px 3px rgba(24, 52, 42, 0.04),
    0 6px 18px rgba(24, 52, 42, 0.07);
}

.methodology-panel h3 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.1rem;
  color: #173430;
}

.methodology-panel p,
.methodology-panel li {
  font-size: 0.9rem;
  line-height: 1.45;
  color: #2e4a45;
}

.compare-filter {
  border: 1px solid #d9e2dd;
  border-radius: 0.8rem;
  background: #fff;
  padding: 0.55rem 0.65rem;
  font-size: 0.9rem;
}

.compare-filter:focus {
  outline: none;
  border-color: #2c7a63;
  box-shadow: 0 0 0 3px rgba(44, 122, 99, 0.17);
}

.compare-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #4f6560;
}

.compare-table td,
.compare-table th {
  text-align: left;
}

.disclosure-inline {
  border-left: 3px solid #2c7a63;
  padding-left: 0.65rem;
  font-size: 0.8rem;
  color: #48625d;
}

.lead-magnet {
  border: 1.5px solid #a8d5be;
  border-radius: 1.2rem;
  background: linear-gradient(
    158deg,
    rgba(240, 252, 246, 0.99) 0%,
    rgba(215, 240, 228, 0.95) 100%
  );
  padding: 1.1rem;
  box-shadow:
    0 2px 8px rgba(36, 95, 79, 0.07),
    0 0 0 1px rgba(168, 213, 190, 0.35);
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.75rem;
}

.result-chip {
  border: 1px solid #d7e3dd;
  border-radius: 0.85rem;
  background: #fff;
  padding: 0.75rem;
}

.result-chip p:first-child {
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #5e7570;
}

.result-chip p:last-child {
  margin-top: 0.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: #1a3f37;
}

.section-kicker {
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2d7560;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.section-kicker::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2d7560;
  flex-shrink: 0;
}

.assistant-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.32rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.assistant-badge-score,
.assistant-badge-best {
  background: #eff5ff;
  color: #1f3f78;
  border: 1px solid #cfe0ff;
}

.assistant-badge-supportive {
  background: #eef8f4;
  color: #245f4f;
  border: 1px solid #c8dfd5;
}

.assistant-badge-mixed {
  background: #fff6e8;
  color: #925d10;
  border: 1px solid #efd6ab;
}

.assistant-badge-cautionary {
  background: #fff1f2;
  color: #a11d33;
  border: 1px solid #fecdd3;
}

.compare-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.recommendation-card {
  border: 1px solid #d7e3dd;
  border-radius: 1rem;
  background: #ffffff;
  padding: 1rem;
  min-width: 0;
}

.recommendation-card-primary {
  border-color: #b6dfce;
  background: linear-gradient(160deg, rgba(255, 255, 255, 1), rgba(238, 248, 244, 0.88));
}

.state-link-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border: 1px solid #dbe4df;
  border-radius: 1rem;
  background: #ffffff;
  padding: 0.95rem;
  text-decoration: none;
  color: #1e2f2c;
  box-shadow: var(--card-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.state-link-card:hover {
  transform: translateY(-3px);
  border-color: #b6dfce;
  box-shadow:
    0 2px 6px rgba(28, 52, 45, 0.06),
    0 14px 32px rgba(28, 52, 45, 0.14);
}

.state-link-card strong {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1rem;
}

.state-link-card span:last-child {
  font-size: 0.8rem;
  color: #5f746f;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #245f4f 0%, #2f8068 100%);
  border: none;
  cursor: pointer;
  transition: box-shadow 0.22s ease, transform 0.18s ease, background 0.22s ease;
  text-decoration: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1f4b40 0%, #245f4f 100%);
  box-shadow:
    0 0 0 3px rgba(36, 95, 79, 0.22),
    0 6px 18px rgba(36, 95, 79, 0.28);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 0 0 3px rgba(36, 95, 79, 0.18);
}

.topic-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #c8dfd5;
  background: #eef8f4;
  padding: 0.4rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #245f4f;
  text-decoration: none;
}

.topic-pill-muted {
  background: #f8fafc;
  border-color: #dce4df;
  color: #46615b;
}

.article-hero {
  margin-bottom: 0.5rem;
}

.article-body .content-card p {
  overflow-wrap: anywhere;
}

.content-card h2,
.content-card h3,
.resource-card h2,
.resource-card h3,
.methodology-panel h3,
.recommendation-card p {
  overflow-wrap: anywhere;
}

@media (max-width: 768px) {
  .page-hero,
  .content-card,
  .methodology-panel,
  .resource-card,
  .recommendation-card,
  .cta-band,
  .stat-card {
    padding: 1rem;
  }

  .page-hero h1 {
    font-size: clamp(2rem, 9vw, 2.85rem);
  }

  .hero-graphic {
    min-height: auto;
    padding: 0.8rem;
  }

  .stock-image {
    min-height: 190px;
    aspect-ratio: 16 / 11;
  }

  .gateway-grid,
  .metric-grid,
  .result-grid,
  .recommendation-grid {
    grid-template-columns: 1fr;
  }

  .assistant-badge {
    max-width: 100%;
    white-space: normal;
    line-height: 1.2;
  }

  .compare-table {
    min-width: 760px;
  }

  .compare-table td,
  .compare-table th {
    padding: 0.7rem 0.75rem;
    vertical-align: top;
  }

  .kpi-card > div {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .cta-band a {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .result-chip p:last-child,
  .recommendation-card p,
  .methodology-panel p,
  .methodology-panel li {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 480px) {
  .page-hero {
    border-radius: 1.2rem;
  }

  .hero-graphic {
    border-radius: 1.2rem;
  }

  .stock-image {
    min-height: 168px;
  }

  .step-dot {
    width: 1.8rem;
    height: 1.8rem;
    font-size: 0.75rem;
  }

  .inline-list {
    padding-left: 0.95rem;
  }
}
