:root {
  color: #102a2f;
  background: #f8faf7;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #09234a;
  --muted: #536b70;
  --green: #086452;
  --green-dark: #062f35;
  --mint: #e9f6f1;
  --line: #d2e2dc;
  --paper: #ffffff;
  --warm: #f8faf7;
  --danger: #8c2f2f;
  --shadow: 0 24px 60px rgba(6, 47, 53, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--warm); color: #18383f; }
body, button, input, textarea, select { font: inherit; }
a { color: var(--green); text-underline-offset: 0.18em; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: 0.68; }
:focus-visible { outline: 3px solid #31a88d; outline-offset: 3px; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 50;
  border-radius: 0.4rem;
  background: #fff;
  color: var(--ink);
  padding: 0.7rem 1rem;
}
.skip-link:focus { top: 1rem; }

.safety-bar {
  background: var(--green-dark);
  color: #fff;
  padding: 0.65rem 1rem;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-header { border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.9); }
.header-inner {
  width: min(1160px, calc(100% - 2rem));
  margin: auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 850;
  line-height: 1.05;
}
.brand small {
  display: block;
  margin-top: 0.2rem;
  color: #647b7f;
  font-size: 0.57rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.brand-mark {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border-radius: 0.65rem;
  background: var(--green);
  color: white;
  font-family: Georgia, serif;
  font-size: 1.2rem;
}
nav { display: flex; align-items: center; gap: 0.3rem; }
nav a {
  border-radius: 0.55rem;
  color: #466167;
  padding: 0.7rem 0.9rem;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 750;
}
nav a:hover, nav a.active { background: var(--mint); color: var(--green); }

#app { min-height: 58vh; }
.page { width: min(1160px, calc(100% - 2rem)); margin: auto; padding: 4.8rem 0 5.4rem; }
.page.narrow { width: min(780px, calc(100% - 2rem)); }
.loading { color: var(--muted); }
.eyebrow {
  display: block;
  margin-bottom: 0.85rem;
  color: #0d6370;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}
h1, h2, h3 { color: var(--ink); font-family: Georgia, "Times New Roman", serif; line-height: 1.02; }
h1 { margin: 0; font-size: clamp(2.7rem, 7vw, 5.4rem); letter-spacing: -0.04em; }
h2 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.2rem); letter-spacing: -0.025em; }
h3 { margin: 0; font-size: 1.22rem; }
p { line-height: 1.65; }
.lead { max-width: 720px; color: var(--muted); font-size: 1.05rem; line-height: 1.75; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }

.hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr); gap: 4rem; align-items: center; }
.hero-copy h1 { max-width: 760px; }
.descriptor-card {
  margin: 2rem 0 1.6rem;
  border: 1px solid #acd7cc;
  border-radius: 0.85rem;
  background: #fff;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 16px 38px rgba(6, 47, 53, 0.08);
}
.descriptor-card small { display: block; color: #5a7378; font-size: 0.63rem; font-weight: 850; letter-spacing: 0.15em; text-transform: uppercase; }
.descriptor-card strong { display: block; margin-top: 0.5rem; color: var(--ink); font-size: clamp(1.2rem, 2.4vw, 1.75rem); }
.descriptor-card span { display: block; margin-top: 0.45rem; color: var(--muted); font-size: 0.79rem; line-height: 1.5; }
.hero-panel {
  border: 1px solid #16705f;
  border-radius: 1rem;
  background: var(--green-dark);
  color: #fff;
  padding: 2.3rem;
  box-shadow: var(--shadow);
}
.hero-panel h2 { color: white; font-size: clamp(2rem, 4vw, 2.8rem); }
.hero-panel .eyebrow { color: #83ddc8; }
.steps { display: grid; gap: 1rem; margin: 1.8rem 0 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 2rem 1fr; gap: 0.8rem; align-items: start; line-height: 1.48; font-size: 0.82rem; }
.steps b { display: grid; width: 2rem; height: 2rem; place-items: center; border: 1px solid #2b8976; border-radius: 50%; color: #98ead7; }
.steps strong { color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.3rem; }
.button, button.primary, button.secondary {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 0.55rem;
  padding: 0.7rem 1rem;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 800;
}
.button.primary, button.primary { background: var(--ink); color: white; }
.button.secondary, button.secondary { border-color: #b5cdc6; background: white; color: var(--ink); }
.button:hover, button:hover { transform: translateY(-1px); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 4rem; }
.feature-card, .card {
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--paper);
  padding: 1.45rem;
}
.feature-card h2 { margin-top: 0.55rem; font-size: 1.55rem; }
.feature-card p, .card > p { color: var(--muted); font-size: 0.88rem; }
.feature-icon { display: grid; width: 2.5rem; height: 2.5rem; place-items: center; border-radius: 0.65rem; background: var(--mint); color: var(--green); font-weight: 900; }

.notice { margin: 1rem 0; border: 1px solid #bedfd5; border-radius: 0.6rem; background: var(--mint); padding: 0.85rem 1rem; color: #185d4e; font-size: 0.82rem; line-height: 1.55; }
.notice.error { border-color: #e1b8b8; background: #fff1f1; color: var(--danger); }
.notice strong { color: inherit; }

.form-card { margin-top: 2rem; border: 1px solid var(--line); border-radius: 0.9rem; background: #fff; padding: 1.5rem; }
.form-card h2 { margin-bottom: 0.55rem; }
.form-card > p { color: var(--muted); }
form { display: grid; gap: 1rem; }
label { display: grid; gap: 0.4rem; color: #445f65; font-size: 0.78rem; font-weight: 750; }
input, textarea, select {
  width: 100%;
  border: 1px solid #c9dcd6;
  border-radius: 0.5rem;
  background: #fff;
  color: #17363d;
  padding: 0.78rem 0.85rem;
}
textarea { min-height: 8rem; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.radio-grid { display: grid; gap: 0.55rem; border: 0; margin: 0; padding: 0; }
.radio-grid legend { margin-bottom: 0.45rem; color: var(--ink); font-weight: 850; }
.radio-option { display: flex; gap: 0.7rem; border: 1px solid #d9e5e1; border-radius: 0.6rem; padding: 0.8rem; cursor: pointer; }
.radio-option:has(input:checked) { border-color: var(--green); background: #eff8f5; }
.radio-option input { width: auto; margin-top: 0.18rem; }
.radio-option strong, .radio-option small { display: block; }
.radio-option small { margin-top: 0.2rem; color: var(--muted); font-weight: 400; }

.result { margin-top: 1rem; border: 1px solid #acd8cb; border-radius: 0.75rem; background: #eff9f5; padding: 1rem; }
.result > strong { color: var(--green); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; margin: 1rem 0; }
.facts div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-radius: 0.55rem; background: white; padding: 0.8rem; }
.facts dt { color: #74898d; font-size: 0.64rem; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.facts dd { margin: 0; color: var(--ink); font-weight: 800; text-align: right; }
.result-note { border-radius: 0.55rem; background: #fff; padding: 0.9rem; color: var(--muted); font-size: 0.8rem; line-height: 1.55; }
.result-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 0.8rem; }

.faq-list, .legal-copy { display: grid; gap: 2rem; margin-top: 2.5rem; }
.faq-list section, .legal-copy section { scroll-margin-top: 1rem; }
.faq-list h2, .legal-copy h2 { font-size: 1.65rem; }
.faq-list p, .legal-copy p, .legal-copy li { color: var(--muted); line-height: 1.7; }
.legal-copy ul { padding-left: 1.25rem; }
.legal-version { color: #71858a; font-size: 0.75rem; }

.issuer-rights { border-top: 1px solid #c9e0da; background: #eaf4f1; }
.issuer-rights > div { width: min(1160px, calc(100% - 2rem)); margin: auto; padding: 1.25rem 0; }
.issuer-rights strong { color: var(--ink); }
.issuer-rights p { max-width: 980px; margin: 0.35rem 0 0; color: #46656b; font-size: 0.78rem; }

.site-footer {
  width: 100%;
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr;
  gap: 2rem;
  background: #041f26;
  color: #fff;
  padding: 2.8rem max(1rem, calc((100% - 1160px) / 2));
  font-size: 0.76rem;
}
.site-footer > div { display: flex; flex-direction: column; gap: 0.45rem; }
.site-footer span { color: #b9cfcb; }
.site-footer a { color: #e4f4f0; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.noscript { margin: 1rem; border: 2px solid var(--danger); padding: 1rem; }

@media (max-width: 840px) {
  .hero { grid-template-columns: 1fr; gap: 2rem; }
  .hero-panel { padding: 1.6rem; }
  .feature-grid { grid-template-columns: 1fr; margin-top: 2.5rem; }
  .site-footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .safety-bar { font-size: 0.58rem; letter-spacing: 0.13em; }
  .header-inner { align-items: flex-start; flex-direction: column; gap: 0.6rem; padding: 0.8rem 0; }
  nav { width: 100%; justify-content: space-between; }
  nav a { padding: 0.55rem 0.45rem; font-size: 0.76rem; }
  .page { padding: 3rem 0 3.7rem; }
  h1 { font-size: clamp(2.5rem, 13vw, 3.6rem); }
  .form-grid, .facts { grid-template-columns: 1fr; }
  .facts div { align-items: flex-start; flex-direction: column; gap: 0.25rem; }
  .facts dd { text-align: left; }
  .site-footer { grid-template-columns: 1fr; padding-top: 2.2rem; padding-bottom: 2.8rem; }
  .actions .button, .result-actions button { flex: 1 1 100%; }
}

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