:root {
  --green-900: #00523f;
  --green-800: #0b5f4a;
  --green-500: #83a845;
  --cream: #f7f5ef;
  --paper: #fffdf7;
  --mint: #eff8ef;
  --ink: #14201a;
  --muted: #59675f;
  --line: #d8e3db;
  --white: #ffffff;
  --amber: #d99a2b;
  --blue: #315aa6;
  --purple: #8e1c85;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(0, 82, 63, .14);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

a { color: inherit; }

.hero {
  background: radial-gradient(circle at 84% 12%, rgba(131,168,69,.32), transparent 24rem), var(--green-900);
  color: var(--white);
  padding: 28px 0 72px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 270px;
  right: -120px;
  bottom: -80px;
  background: url("leaf-cream.png") center/contain no-repeat;
  opacity: .17;
  animation: floatPiece 9s ease-in-out infinite;
  pointer-events: none;
}

@keyframes floatPiece {
  0%, 100% { transform: translate3d(0,0,0) rotate(0deg); }
  50% { transform: translate3d(-12px,18px,0) rotate(5deg); }
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
  text-decoration: none;
  font-weight: 950;
}

.brand img {
  width: 150px;
  height: auto;
  display: block;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  padding: 7px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 999px;
  font-weight: 850;
  font-size: 13px;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,.16);
}

.eyebrow {
  color: #dcecdf;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0;
}

h1 {
  margin: 14px 0 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: .95;
  letter-spacing: 0;
  max-width: 880px;
}

.lead {
  max-width: 760px;
  color: #e6f2e4;
  font-size: 19px;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 68px 0;
}

.section-title {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(260px, .5fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 24px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(31px, 4vw, 54px);
  line-height: 1.02;
}

.section-title p {
  margin: 0;
  color: var(--muted);
}

.tool {
  display: grid;
  grid-template-columns: minmax(280px, .42fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.side {
  position: sticky;
  top: 18px;
  background: var(--green-900);
  color: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  overflow: hidden;
}

.side::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 128px;
  right: -44px;
  bottom: -36px;
  background: url("leaf-cream.png") center/contain no-repeat;
  opacity: .18;
  pointer-events: none;
}

.side h2 {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1;
}

.side p,
.side li { color: #dcecdf; }

.side a { color: #dcecdf; font-weight: 850; }

form, .stack { display: grid; gap: 18px; }

fieldset,
.card,
.result {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 10px 32px rgba(0,82,63,.07);
}

legend {
  padding: 0 8px;
  font-weight: 950;
  color: var(--green-900);
  font-size: 18px;
}

.grid-2,
.grid-3,
.cards {
  display: grid;
  gap: 16px;
  min-width: 0;
}

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

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  min-width: 0;
}

.field-group {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.field-label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

select,
input,
textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid #cadbd2;
  border-radius: var(--radius);
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
}

textarea {
  min-height: 96px;
  resize: vertical;
}

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

.checks label {
  grid-template-columns: 22px 1fr;
  align-items: start;
  color: var(--ink);
  line-height: 1.35;
}

.checks input {
  width: 18px;
  min-height: 18px;
  margin-top: 1px;
  accent-color: var(--green-900);
}

.inline-check {
  display: inline-grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 850;
  line-height: 1.35;
}

.inline-check input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--green-900);
}

.compact-checks {
  display: grid;
  gap: 7px;
  padding: 10px 12px;
  border: 1px solid #cadbd2;
  border-radius: var(--radius);
  background: var(--white);
}

.compact-checks label {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}

.compact-checks input {
  width: 18px;
  min-height: 18px;
  margin-top: 1px;
  accent-color: var(--green-900);
}

.button {
  border: 0;
  border-radius: var(--radius);
  min-height: 50px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  font-weight: 950;
  font: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}

.button:hover { transform: translateY(-1px); }
.button.dark { background: var(--green-900); color: var(--white); }
.button.primary { background: var(--green-500); color: #07120e; }
.button.light { background: var(--white); color: var(--green-900); border: 1px solid var(--line); }

.result {
  display: none;
  border-color: #b9d6c8;
  background: linear-gradient(180deg, #f7fff6, #ffffff);
  box-shadow: var(--shadow);
}

.result.show { display: block; }

.step-panel {
  scroll-margin-top: 18px;
}

.step-panel[hidden] {
  display: none;
}

.step-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.inline-alert {
  margin-top: 14px;
  padding: 14px;
  border-radius: var(--radius);
  background: #fff8ea;
  border-left: 4px solid var(--amber);
  color: var(--muted);
}

.result h2,
.card h3 {
  margin: 0 0 10px;
}

.result ul,
.card ul {
  margin: 0;
  padding-left: 19px;
  color: var(--muted);
}

.note {
  background: var(--mint);
  border-left: 4px solid var(--green-500);
  padding: 15px;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--muted);
}

.route-card {
  min-height: 220px;
  background: var(--green-900);
  color: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  display: grid;
  align-content: space-between;
}

.route-card p { color: #dcecdf; }

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 32px rgba(0,82,63,.07);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 950;
  color: var(--green-900);
  list-style-position: inside;
}

.faq-item div {
  padding: 0 20px 20px;
  color: var(--muted);
}

.faq-item p { margin-top: 0; }

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

.source-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  text-decoration: none;
  color: var(--muted);
}

.source-card b {
  display: block;
  color: var(--ink);
  margin-bottom: 6px;
}

.emergency {
  background: #fff8ea;
  border-left: 5px solid var(--amber);
  padding: 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.emergency h3 { margin-top: 0; }

.wayfinder {
  background: #eaddeb;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  max-width: 920px;
  margin: 0 auto;
}

.wayfinder img {
  display: block;
  width: 100%;
  height: auto;
}

.hotspot {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px 10px;
  background: rgba(49,90,166,.96);
  color: var(--white);
  border: 0;
  border-radius: 0;
  text-decoration: none;
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(0,0,0,.16);
}

.hotspot:hover { background: var(--green-500); color: #07120e; }
.hotspot small { display: block; font-weight: 800; opacity: .86; }

.h1 { left: 65.2%; top: 30.9%; width: 20.3%; height: 3.9%; }
.h2 { left: 7.6%; top: 50.9%; width: 23%; height: 3.9%; }
.h3 { left: 56.1%; top: 53%; width: 23.4%; height: 3.9%; }
.h4 { left: 7.6%; top: 83.5%; width: 19.7%; height: 3.9%; }
.h5 { left: 52.4%; top: 92.4%; width: 20.3%; height: 3.9%; }
.hbonus { left: 56.1%; top: 73%; width: 17.4%; height: 3.8%; }

footer {
  background: var(--green-900);
  color: var(--white);
  padding: 46px 0;
}

.footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, .95fr) repeat(3, minmax(160px, 1fr));
  gap: 28px;
  align-items: start;
}

.footer-inner img { width: 210px; height: auto; }
.footer-inner a { color: #dcecdf; font-weight: 850; }

.footer-about p {
  margin: 14px 0 0;
  color: #dcecdf;
  max-width: 320px;
}

.footer-nav {
  display: grid;
  gap: 8px;
}

.footer-nav h2,
.footer-nav h3 {
  margin: 0 0 6px;
  color: var(--white);
  font-size: 16px;
  line-height: 1.2;
}

.footer-nav a {
  display: inline-flex;
  width: fit-content;
  text-decoration: none;
  color: #dcecdf;
  font-size: 14px;
}

.footer-nav a:hover {
  color: var(--white);
  text-decoration: underline;
}

@media (max-width: 950px) {
  .nav, .tool, .section-title, .grid-2, .grid-3, .cards, .source-grid, .footer-inner { grid-template-columns: 1fr; }
  .nav, .footer-inner { display: grid; }
  .nav-links { justify-content: flex-start; border-radius: var(--radius); }
  .side { position: static; }
  .checks { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .wrap, .section, .footer-inner { width: min(100% - 28px, 1180px); }
  h1 { font-size: 42px; }
  .brand img { width: 132px; }
  .hotspot { font-size: 11px; padding: 5px; border-width: 1px; }
}
