:root {
  --ink: #17201b;
  --muted: #647069;
  --line: #dce3de;
  --paper: rgba(255, 255, 255, 0.9);
  --accent: #176b4f;
  --accent-dark: #0f4e3a;
  --accent-pale: #e8f3ed;
  --warm: #e7a94c;
  --danger: #a43b35;
  --shadow: 0 24px 80px rgba(28, 52, 40, 0.11);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f5f7f4;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { min-width: 320px; scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(214, 235, 221, 0.72), transparent 34rem),
    linear-gradient(145deg, #f9faf7 0%, #f1f5f1 100%);
}

button, input, textarea, select { font: inherit; }

button { color: inherit; }

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(2px);
  opacity: .55;
}

.ambient-one { width: 28rem; height: 28rem; top: -13rem; right: -9rem; background: #e7d6b9; }
.ambient-two { width: 22rem; height: 22rem; bottom: -12rem; left: -10rem; background: #c8e1d3; }

.site-shell {
  width: min(1120px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.site-header {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.04em;
  box-shadow: 0 8px 22px rgba(23, 107, 79, .22);
}

.brand strong, .brand small { display: block; }
.brand strong { font-size: 16px; letter-spacing: -.02em; }
.brand small { margin-top: 1px; color: var(--muted); font-size: 12px; }

.trust-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, .55);
  font-size: 12px;
  font-weight: 650;
}

.trust-pill .status-dot { margin-right: 5px; color: var(--accent); font-size: 9px; }

.header-actions { display: flex; align-items: center; gap: 9px; }
.language-toggle {
  min-width: 46px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--accent);
  background: rgba(255, 255, 255, .7);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.language-toggle:hover { border-color: #9bb5a6; background: white; }

.quote-app {
  width: 100%;
  flex: 1;
  display: grid;
  align-items: center;
  padding: 26px 0 46px;
}

.welcome-panel,
.question-layout {
  animation: enter .38s cubic-bezier(.2, .75, .2, 1) both;
}

@keyframes enter {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

.welcome-panel { max-width: 900px; margin: 0 auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.eyebrow span { width: 26px; height: 1px; background: var(--accent); }

h1, h2, h3, p { margin-top: 0; }

.welcome-panel h1 {
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 7vw, 76px);
  line-height: .99;
  letter-spacing: -.045em;
  font-weight: 500;
}

.welcome-panel h1 em { color: var(--accent); font-weight: 500; }

.welcome-copy {
  max-width: 660px;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.65;
}

.welcome-actions { display: flex; justify-content: center; align-items: center; gap: 18px; }

.button {
  border: 0;
  border-radius: 13px;
  min-height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 760;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}

.button:hover { transform: translateY(-1px); }
.button:focus-visible, .choice:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(23, 107, 79, .22); outline-offset: 2px; }
.button-primary { background: var(--accent); color: white; box-shadow: 0 12px 28px rgba(23, 107, 79, .2); }
.button-primary:hover { background: var(--accent-dark); }
.button-primary:disabled { opacity: .55; cursor: wait; transform: none; }
.button-secondary { border: 1px solid var(--line); background: white; color: var(--ink); }
.button-ghost { min-height: 42px; padding: 0 12px; background: transparent; color: var(--muted); }
.button-large { min-height: 58px; padding: 0 25px; }
.button-large span { font-size: 20px; }
.microcopy { color: var(--muted); font-size: 12px; }

.promise-grid {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: left;
}

.promise-grid > div { position: relative; padding: 24px 22px 24px 54px; }
.promise-grid > div + div { border-left: 1px solid var(--line); }
.promise-icon { position: absolute; left: 20px; top: 25px; color: var(--warm); font-family: Georgia, serif; font-weight: 700; }
.promise-grid strong, .promise-grid small { display: block; }
.promise-grid strong { margin-bottom: 5px; font-size: 14px; }
.promise-grid small { color: var(--muted); font-size: 12px; line-height: 1.4; }

.welcome-note {
  max-width: 650px;
  margin: 22px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.welcome-note > span { width: 20px; height: 20px; border: 1px solid var(--line); border-radius: 999px; display: grid; place-items: center; font-family: Georgia, serif; }
.welcome-note p { margin: 0; }

.question-layout {
  width: min(780px, 100%);
  margin: 0 auto;
}

.progress-row { margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.progress-label { color: var(--muted); font-size: 12px; font-weight: 700; }
.progress-meter { width: auto; height: 5px; flex: 1; border: 0; border-radius: 999px; overflow: hidden; background: #e2e7e3; appearance: none; }
.progress-meter::-webkit-progress-bar { border-radius: 999px; background: #e2e7e3; }
.progress-meter::-webkit-progress-value { border-radius: 999px; background: linear-gradient(90deg, var(--accent), #42a17f); transition: width .3s ease; }
.progress-meter::-moz-progress-bar { border-radius: 999px; background: linear-gradient(90deg, var(--accent), #42a17f); }

.question-card {
  border: 1px solid rgba(209, 220, 213, .9);
  border-radius: 25px;
  padding: clamp(25px, 5vw, 48px);
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.question-kicker { margin-bottom: 10px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.question-card h2 { margin-bottom: 10px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(29px, 5vw, 43px); line-height: 1.08; letter-spacing: -.035em; font-weight: 520; }
.question-help { margin-bottom: 28px; color: var(--muted); line-height: 1.55; }

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

.choice {
  width: 100%;
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 15px 16px;
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  background: white;
  cursor: pointer;
  transition: border .15s ease, background .15s ease, transform .15s ease;
}

.choice:hover { border-color: #9bb5a6; transform: translateY(-1px); }
.choice.selected { border-color: var(--accent); background: var(--accent-pale); }
.choice-index { width: 28px; height: 28px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 9px; display: grid; place-items: center; color: var(--muted); font-size: 11px; font-weight: 800; background: #fafbf9; }
.choice.selected .choice-index { border-color: var(--accent); color: white; background: var(--accent); }
.choice strong, .choice small { display: block; }
.choice strong { font-size: 14px; line-height: 1.3; }
.choice small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.choice-tail { margin-left: auto; color: var(--accent); }

.fields { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-method-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.field label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 750; }
.field .optional { color: var(--muted); font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  color: var(--ink);
  background: white;
  font-size: 16px;
}
.field textarea { min-height: 106px; resize: vertical; line-height: 1.5; }
.field input.invalid, .field select.invalid { border-color: var(--danger); }
.field-error { margin-top: 6px; color: var(--danger); font-size: 12px; }
.field-hint { margin-top: 6px; color: var(--muted); font-size: 12px; }
.check-row { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.check-row input { width: 18px; height: 18px; accent-color: var(--accent); }
.honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.nav-row { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-row .right-actions { margin-left: auto; display: flex; gap: 10px; }
.keyboard-hint { color: var(--muted); font-size: 11px; }

.summary-card { padding: clamp(20px, 3.2vw, 30px); }
.summary-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.summary-price { min-width: 180px; text-align: right; }
.summary-price span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.summary-price strong { display: block; margin-top: 5px; font-family: Georgia, serif; color: var(--accent); font-size: 31px; }
.summary-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.summary-details-grid .summary-section { min-width: 0; }
.summary-section { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.summary-section-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.summary-section h3 { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.edit-link { border: 0; background: none; padding: 5px; color: var(--accent); font-size: 12px; font-weight: 750; cursor: pointer; }
.summary-list { margin: 9px 0 0; display: grid; gap: 6px; }
.summary-list.compact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.summary-line { display: flex; justify-content: space-between; gap: 14px; font-size: 13px; line-height: 1.4; }
.summary-line dt { color: var(--muted); }
.summary-line dd { margin: 0; text-align: right; font-weight: 650; }
.included-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.included-grid h4 { margin: 0 0 10px; font-size: 13px; }
.included-grid ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.summary-note { margin: 14px 0 0; border-radius: 13px; padding: 11px 13px; color: var(--muted); background: #f2f5f2; font-size: 11px; line-height: 1.45; }
.summary-note strong { color: var(--ink); }
.form-error { margin: 16px 0 0; border: 1px solid #ebc3c0; border-radius: 12px; padding: 13px 15px; color: var(--danger); background: #fff5f4; font-size: 13px; line-height: 1.45; }

.success-panel { text-align: center; }
.success-icon { width: 62px; height: 62px; margin: 0 auto 19px; border-radius: 999px; display: grid; place-items: center; color: white; background: var(--accent); font-size: 28px; }
.success-panel h2 { margin-bottom: 10px; }
.success-panel > p { color: var(--muted); line-height: 1.6; }
.reference-box { margin: 24px auto; border: 1px dashed #a6b8ad; border-radius: 14px; padding: 17px; background: #f8faf8; }
.reference-box span, .reference-box strong { display: block; }
.reference-box span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.reference-box strong { margin-top: 5px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 22px; }
.success-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

.site-footer {
  min-height: 64px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 680px) {
  .site-shell { width: min(100% - 26px, 1120px); }
  .site-header { min-height: 78px; }
  .trust-pill { display: none; }
  .quote-app { align-items: start; padding: 18px 0 98px; }
  .welcome-panel { text-align: left; padding-top: 12px; }
  .eyebrow { margin-bottom: 16px; }
  .welcome-panel h1 { font-size: clamp(40px, 13vw, 58px); }
  .welcome-actions { align-items: stretch; flex-direction: column; }
  .welcome-actions .button { width: 100%; }
  .microcopy { text-align: center; }
  .promise-grid { margin-top: 34px; grid-template-columns: 1fr; }
  .promise-grid > div { padding: 18px 15px 18px 48px; }
  .promise-grid > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .promise-icon { left: 13px; top: 20px; }
  .welcome-note { align-items: flex-start; justify-content: flex-start; }
  .welcome-note > span { flex: 0 0 auto; }
  .progress-row { margin-bottom: 15px; }
  .question-card { border-radius: 20px; padding: 24px 18px; }
  .question-card h2 { font-size: 31px; }
  .question-help { margin-bottom: 22px; }
  .choice-grid, .field-row, .contact-method-grid, .summary-details-grid, .summary-list.compact-grid { grid-template-columns: 1fr; }
  .choice { min-height: 70px; }
  .nav-row {
    position: fixed;
    z-index: 10;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 12px max(13px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(13px, env(safe-area-inset-left));
    border-top: 1px solid var(--line);
    background: rgba(250, 251, 249, .94);
    backdrop-filter: blur(14px);
  }
  .nav-row .button-secondary { background: transparent; border-color: transparent; }
  .keyboard-hint { display: none; }
  .summary-top { display: block; }
  .summary-price { margin-top: 16px; text-align: left; }
  .included-grid { grid-template-columns: 1fr; }
  .summary-line { align-items: flex-start; }
  .site-footer { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
