:root {
  --bg: #eef4fb;
  --bg-accent: #d8e7fb;
  --surface: #ffffff;
  --surface-muted: #f5f8fd;
  --text: #152133;
  --text-soft: #4f627f;
  --line: #d7e0ef;
  --primary: #123b72;
  --primary-strong: #0d2f5c;
  --primary-soft: #dce9ff;
  --accent: #0d8a5d;
  --warning: #e67b1f;
  --shadow: 0 18px 42px rgba(18, 59, 114, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(13, 138, 93, 0.09), transparent 28%),
    linear-gradient(180deg, var(--bg-accent) 0%, var(--bg) 24%, #f7f9fc 100%);
}

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

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 18px 64px;
}

.crumbs {
  margin-bottom: 16px;
  color: var(--text-soft);
  font-size: 0.94rem;
}

.crumbs a {
  color: var(--text-soft);
  text-decoration: none;
}

.crumbs a:hover {
  text-decoration: underline;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(18, 59, 114, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(18, 59, 114, 0.06);
}

.site-nav__link:hover {
  background: #ffffff;
  border-color: rgba(18, 59, 114, 0.22);
}

.site-nav__link--active {
  background: linear-gradient(135deg, #123b72 0%, #345f9e 100%);
  color: #ffffff;
  border-color: rgba(18, 59, 114, 0.18);
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #123b72 0%, #345f9e 55%, #4c7fc7 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -40px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0));
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.06;
}

.lead {
  max-width: 760px;
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--primary-strong);
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.cta:hover {
  background: #edf4ff;
}

.cta--ghost {
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
}

.cta--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.95rem;
  line-height: 1.45;
}

.section-title {
  margin: 0 0 12px;
  font-size: 1.6rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-top: 18px;
  box-shadow: 0 10px 30px rgba(18, 59, 114, 0.04);
}

.card p {
  margin: 0 0 14px;
  line-height: 1.64;
}

.card h2 {
  margin: 0 0 10px;
  font-size: 1.36rem;
}

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

.card ul {
  margin: 0;
  padding-left: 20px;
}

.card li {
  margin: 0 0 8px;
  line-height: 1.55;
}

.link-grid,
.feature-grid,
.faq-grid,
.shot-grid,
.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.link-card,
.feature-card,
.trust-card,
.story-card {
  display: block;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface-muted);
  color: inherit;
  text-decoration: none;
}

.link-card:hover,
.feature-card:hover,
.story-card:hover {
  border-color: #b8cbec;
  background: #edf4ff;
}

.kicker {
  margin: 0 0 6px;
  color: var(--warning);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.link-card strong,
.feature-card strong,
.trust-card strong,
.story-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.story-card__date,
.article-meta__item {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 0.86rem;
  font-weight: 700;
}

.story-card__date {
  margin-bottom: 10px;
}

.story-card p {
  margin: 0;
  color: var(--text-soft);
}

.muted {
  color: var(--text-soft);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  position: relative;
  padding-left: 24px;
}

.check-list li::before {
  content: "•";
  position: absolute;
  left: 8px;
  color: var(--accent);
  font-weight: 700;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.trust-card {
  background: #f9fbff;
}

.faq {
  margin-top: 10px;
  border-top: 1px solid var(--line);
}

.faq details {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

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

.faq p {
  margin: 10px 0 0;
  color: var(--text-soft);
}

.callout {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid #c9ddcf;
  background: #eefaf4;
}

.callout--warning {
  border-color: #f1d5bf;
  background: #fff8f1;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  text-decoration: none;
  font-weight: 600;
}

.pill:hover {
  background: #cfe0ff;
}

.shot {
  margin: 0;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
}

.shot figcaption {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.small {
  margin-top: 18px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.landing-footer {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.landing-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.landing-footer__links a {
  color: var(--text-soft);
  font-size: 0.92rem;
  text-decoration: none;
}

.landing-footer__links a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.api-box {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7faff;
}

.api-box code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9rem;
  word-break: break-all;
}

.code-sample {
  margin: 14px 0;
  padding: 16px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0f233f;
  color: #f3f7ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.code-sample code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92rem;
  line-height: 1.55;
  white-space: pre;
}

.live-answer-shell {
  border-color: #c8d7ee;
  background:
    linear-gradient(180deg, rgba(220, 233, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%),
    var(--surface);
}

.live-answer {
  display: grid;
  gap: 14px;
}

.live-answer__headline {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.45;
}

.live-answer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.live-answer__chart-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #f8fbff;
  padding: 12px 12px 6px;
}

.live-answer__chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.live-answer__chart {
  display: block;
  width: 100%;
  height: auto;
}

.live-answer__chart-grid {
  stroke: #d7e0ef;
  stroke-width: 1;
}

.live-answer__chart-ylabel,
.live-answer__chart-xlabel {
  fill: var(--text-soft);
  font-size: 11px;
}

.live-answer__chart-tick {
  stroke: #9eb5d8;
  stroke-width: 1;
}

.live-answer__chart-area {
  fill: rgba(76, 127, 199, 0.12);
}

.live-answer__chart-line {
  fill: none;
  stroke: #2f6fc0;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.live-answer__chart-area--co2 {
  fill: rgba(19, 129, 84, 0.14);
}

.live-answer__chart-line--co2 {
  stroke: #138154;
}

.live-answer__chart-marker {
  stroke: #ffffff;
  stroke-width: 2;
}

.live-answer__chart-marker--low {
  fill: #0d8a5d;
}

.live-answer__chart-marker--high {
  fill: #e67b1f;
}

.live-answer__item {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #f8fbff;
}

.live-answer__item--co2 {
  border-color: #c7dfd1;
  background: #f6fbf7;
}

.live-answer__label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-soft);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.live-answer__value {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

.live-answer__subvalue {
  margin: 6px 0 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.45;
}

.live-answer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.live-answer__tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 0.88rem;
  font-weight: 600;
}

.live-answer__note {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

.live-answer__state {
  min-height: 88px;
  padding: 14px 16px;
  border: 1px dashed #bfd0ea;
  border-radius: var(--radius-md);
  background: #f8fbff;
  color: var(--text-soft);
  line-height: 1.55;
}

.landing-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1200;
}

.landing-consent__inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 16px 18px;
  border: 1px solid rgba(18, 59, 114, 0.14);
  border-radius: 18px;
  background: rgba(13, 27, 46, 0.95);
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(9, 20, 37, 0.24);
}

.landing-consent__title {
  display: block;
  margin-bottom: 8px;
  font-size: 0.98rem;
}

.landing-consent__body {
  margin: 0;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}

.landing-consent__link {
  color: #ffffff;
  text-decoration: underline;
}

.landing-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.landing-consent__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: #ffffff;
  color: var(--primary-strong);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.landing-consent__button:hover {
  background: #edf4ff;
}

.landing-consent__button--ghost {
  background: transparent;
  color: #ffffff;
}

.landing-consent__button--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 720px) {
  .wrap {
    padding: 20px 14px 54px;
  }

  .site-nav {
    gap: 8px;
    margin-bottom: 14px;
  }

  .site-nav__link {
    min-height: 36px;
    padding: 0 12px;
  }

  .hero {
    padding: 24px 18px;
  }

  .card {
    padding: 18px;
  }

  .live-answer__chart-wrap {
    padding: 10px 8px 4px;
  }

  .landing-consent {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .landing-consent__inner {
    padding: 14px;
    border-radius: 16px;
  }
}
