:root {
  --ink: #10231d;
  --muted: #5f6f68;
  --line: #d9e3dc;
  --soft: #f3f7f2;
  --paper: #ffffff;
  --accent: #16735a;
  --accent-dark: #0f5844;
  --sun: #e5b84b;
  --blue: #3b6f8f;
  --max: 1160px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
a { color: inherit; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 16px clamp(18px, 4vw, 42px);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.96);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 205px;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: white;
  background: var(--accent);
  font-weight: 800;
}
.brand small { display: block; color: var(--muted); font-size: 12px; }
.main-nav { display: flex; gap: 20px; margin-left: auto; }
.main-nav a, .site-footer a { text-decoration: none; color: var(--muted); font-weight: 650; }
.header-cta { color: white; background: var(--accent); padding: 10px 15px; border-radius: 8px; text-decoration: none; font-weight: 750; }
.menu-toggle { display: none; }
.hero {
  margin: 0;
  background: var(--ink);
  overflow: hidden;
}
.hero-link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.hero-link:focus-visible {
  outline: 4px solid var(--sun);
  outline-offset: -8px;
}
.hero-media {
  display: block;
}
.hero-media img {
  width: 100%;
  height: auto;
  display: block;
  transition: filter .18s ease, transform .18s ease;
}
.hero-link:hover .hero-media img {
  filter: brightness(1.05);
}
.hero-intro {
  padding-top: clamp(34px, 5vw, 58px);
}
.hero-intro h1, .assistant-intro h1, .result-page h1 { font-size: clamp(38px, 7vw, 68px); line-height: 1.02; margin: 8px 0 18px; letter-spacing: 0; }
.lead { max-width: 760px; color: var(--muted); font-size: clamp(18px, 2vw, 22px); }
.eyebrow { color: var(--accent); font-weight: 800; text-transform: uppercase; font-size: 13px; letter-spacing: .08em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button, button {
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
}
.primary { background: var(--accent); color: white; }
.primary:hover { background: var(--accent-dark); }
.button:disabled, button:disabled {
  cursor: not-allowed;
  opacity: .62;
}
.secondary { background: var(--soft); color: var(--ink); border: 1px solid var(--line); }
.consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 14px clamp(14px, 3vw, 28px);
  pointer-events: none;
}
.consent-panel {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px;
  border: 1px solid rgba(16, 35, 29, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 48px rgba(16, 35, 29, .16);
  pointer-events: auto;
}
.consent-copy {
  flex: 1;
  min-width: 0;
}
.consent-banner .eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
}
.consent-banner h2 {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.2;
}
.consent-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.consent-banner a {
  color: var(--accent-dark);
  font-weight: 750;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.consent-actions { display: flex; flex: 0 0 285px; flex-direction: column; gap: 8px; }
.consent-settings { margin-top: 14px; }
.consent-option { display: flex; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.consent-option + .consent-option { margin-top: 8px; }
.consent-option input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.consent-option span, .consent-option small { display: block; }
.consent-option small { margin-top: 2px; color: var(--muted); }
.footer-link { min-height: 0; padding: 0; color: var(--muted); background: transparent; font-weight: 650; text-align: left;
}
.back-to-top {
  position: fixed;
  right: clamp(16px, 3vw, 30px);
  bottom: clamp(16px, 3vw, 30px);
  z-index: 20;
  width: 48px;
  min-height: 48px;
  padding: 0;
  border-radius: 50%;
  color: white;
  background: var(--accent);
  box-shadow: 0 12px 28px rgba(16, 35, 29, .22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .18s ease, transform .18s ease, background .18s ease;
}
.back-to-top span {
  display: block;
  font-size: 26px;
  line-height: 1;
  transform: translateY(-1px);
}
.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--accent-dark);
}
.back-to-top:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
}
.hero-panel {
  align-self: end;
  padding: 26px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 8px;
  background: rgba(255,255,255,.9);
  color: var(--ink);
  backdrop-filter: blur(8px);
}
.hero-panel span { color: var(--blue); font-weight: 750; }
.hero-panel strong { display: block; font-size: 26px; margin: 10px 0; }
.section { max-width: var(--max); margin: 0 auto; padding: 46px 22px; }
.section-heading { max-width: 720px; }
.section-heading p:not(.eyebrow) { color: var(--muted); font-size: 18px; margin-top: -8px; }
.section h2, .final-cta h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.12; margin: 6px 0 20px; }
.intent-section {
  position: relative;
  max-width: none;
  padding: clamp(44px, 6vw, 72px) max(22px, calc((100vw - var(--max)) / 2 + 22px));
  background:
    linear-gradient(180deg, #f8fbf8 0%, #eef6f1 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.intent-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(22, 115, 90, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 115, 90, .06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}
.intent-section > * {
  position: relative;
}
.goal-grid, .option-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.goal-card, .option-card {
  min-height: 94px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  font-weight: 750;
}
.goal-card {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  min-height: 142px;
  padding: 20px;
  border-color: rgba(22, 115, 90, .18);
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.88));
  box-shadow: 0 12px 32px rgba(16, 35, 29, .06);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.goal-card::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 22px;
  height: 22px;
  border-right: 2px solid rgba(22, 115, 90, .35);
  border-bottom: 2px solid rgba(22, 115, 90, .35);
}
.goal-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: white;
  background: var(--accent);
  font-size: 13px;
  font-weight: 900;
}
.goal-copy {
  display: block;
  padding-right: 12px;
  min-width: 0;
}
.goal-copy strong {
  display: block;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.18;
  margin-bottom: 10px;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.goal-copy small {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.42;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.goal-card:hover, .option-card:hover, .option-card.selected {
  border-color: var(--accent);
  box-shadow: 0 18px 44px rgba(16, 35, 29, .12), 0 0 0 3px rgba(22,115,90,.10);
}
.goal-card:hover {
  transform: translateY(-3px);
  background: white;
}
.goal-card-wide {
  grid-column: span 2;
  min-height: 156px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f2f8f4 100%);
  border-color: rgba(22, 115, 90, .34);
}
.goal-card-wide .goal-icon {
  background: var(--accent-dark);
}
.goal-card-wide .goal-copy strong {
  font-size: clamp(21px, 2.4vw, 28px);
}
.band { max-width: none; background: var(--soft); }
.steps { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps article { background: white; border: 1px solid var(--line); border-radius: 8px; padding: 22px; }
.steps span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sun); font-weight: 900; }
.two-column { display: flex; align-items: center; justify-content: space-between; gap: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.final-cta {
  padding: clamp(42px, 6vw, 72px) 22px;
  background:
    linear-gradient(180deg, #f7fbf8 0%, #eef6f1 100%);
  border-top: 1px solid var(--line);
}
.final-cta-card {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 48px);
  border-radius: 8px;
  color: white;
  background:
    linear-gradient(135deg, rgba(16, 35, 29, .98), rgba(15, 88, 68, .96));
  box-shadow: 0 22px 52px rgba(16, 35, 29, .16);
}
.final-cta-card .eyebrow {
  color: #ccefe2;
}
.final-cta-card h2 {
  color: white;
}
.final-cta-card p:not(.eyebrow) {
  max-width: 660px;
  margin: 0 0 24px;
  color: rgba(255,255,255,.86);
  font-size: clamp(17px, 2vw, 20px);
}
.final-cta-card .button.primary {
  color: var(--ink);
  background: var(--sun);
}
.final-cta-card .button.primary:hover {
  background: #f0c85a;
}
.site-footer { display: flex; justify-content: space-between; gap: 24px; padding: 34px clamp(18px, 4vw, 42px); background: #f8faf8; border-top: 1px solid var(--line); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-credit {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.35;
}
.site-credit a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  color: #52655d;
  font-weight: 650;
  text-decoration: none;
}
.site-credit a::before {
  content: "→";
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: white;
  background: var(--accent);
  font-size: 12px;
  line-height: 1;
}
.site-credit a:hover {
  color: var(--accent-dark);
}
.assistant-shell, .result-page, .content-page, .admin-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 48px 22px 72px;
}
.assistant-intro { max-width: 780px; margin-bottom: 26px; }
.wizard {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: white;
}
.progress { height: 8px; background: var(--soft); }
.progress-bar { height: 100%; width: 0; background: var(--accent); transition: width .2s ease; }
.wizard-body { min-height: 420px; padding: clamp(20px, 4vw, 34px); }
.step-head p { color: var(--blue); font-weight: 800; margin: 0; }
.step-head h2 { margin: 4px 0 6px; font-size: clamp(26px, 4vw, 38px); line-height: 1.15; }
.step-head span, .muted { color: var(--muted); }
.field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 22px; }
label span { display: block; font-weight: 750; margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  background: white;
}
.check-field { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 10px; }
.check-field input { width: auto; min-height: auto; margin-top: 6px; }
.wide-field { grid-column: 1 / -1; }
.file-field { grid-column: 1 / -1; padding: 24px; border: 1px dashed var(--accent); border-radius: 8px; background: var(--soft); }
.wizard-actions { display: flex; justify-content: space-between; gap: 12px; padding: 18px; border-top: 1px solid var(--line); background: #fbfdfb; }
.wizard-message {
  display: none;
  margin: 0;
  padding: 0 18px 18px;
  color: #8a3a13;
  background: #fbfdfb;
  font-weight: 700;
}
.wizard-message.is-visible {
  display: block;
}
.result-box { font-size: 24px; font-weight: 850; padding: 24px; margin: 20px 0; border-radius: 8px; background: var(--soft); border: 1px solid var(--line); }
.admin-table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 14px; }
.admin-table th, .admin-table td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.filters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; align-items: end; }
.notice { padding: 14px; border: 1px solid var(--line); background: var(--soft); border-radius: 8px; }

@media (max-width: 860px) {
  .site-header { flex-wrap: wrap; }
  .menu-toggle { display: inline-flex; margin-left: auto; background: var(--soft); }
  .main-nav { display: none; width: 100%; order: 4; flex-direction: column; margin-left: 0; padding: 10px 0; }
  .main-nav.is-open { display: flex; }
  .header-cta { display: none; }
  .goal-grid, .option-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .goal-card-wide { grid-column: span 2; }
  .steps, .filters { grid-template-columns: 1fr; }
  .two-column, .site-footer { flex-direction: column; align-items: flex-start; }
  .consent-panel {
    align-items: stretch;
    flex-direction: column;
  }
  .consent-actions { width: 100%; flex-basis: auto; }
}

@media (max-width: 560px) {
  .brand { min-width: auto; }
  .brand small { display: none; }
  .goal-grid, .option-grid, .field-grid { grid-template-columns: 1fr; }
  .goal-card-wide { grid-column: span 1; }
  .wizard-actions { flex-direction: column; }
  .button, button:not(.back-to-top) { width: 100%; }
  .back-to-top {
    width: 46px;
    min-height: 46px;
  }
}
