:root {
  --forest: #29483a;
  --forest-deep: #1e382d;
  --gold: #b18a4a;
  --cream: #f8f5ee;
  --cream-deep: #f3ebdd;
  --ink: #4f5a54;
  --line: #e2dacb;
  --white: #fff;
  --shadow: 0 24px 70px rgba(41, 72, 58, .12);
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at 85% 17%, rgba(177, 138, 74, .16), transparent 34%),
              linear-gradient(135deg, #fbf8f1, var(--cream-deep));
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

button { font: inherit; }

.page-shell {
  width: min(100%, 1120px);
  min-height: 100vh;
  margin: auto;
  display: flex;
  flex-direction: column;
  padding: 20px clamp(18px, 4vw, 48px) 26px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.contact-download-footer { width: 100%; margin: 0 auto 18px; text-align: center; }
.contact-download { display: inline-flex; align-items: center; justify-content: center; gap: 9px; max-width: 100%; min-height: 44px; padding: 8px 14px; color: var(--forest); font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; border-radius: 8px; }
.contact-download svg { flex: 0 0 23px; width: 23px; height: 23px; }
.contact-download span { min-width: 0; }
.contact-download:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.has-compass-panel .contact-download-footer { display: none; }
.footer-links a, .footer-links button { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
.footer-links button { padding: 0; border: 0; background: none; cursor: pointer; }
.footer-links a:focus-visible, .footer-links button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.analytics-consent[hidden] { display: none; }
.analytics-consent {
  position: fixed;
  z-index: 1000;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  left: max(16px, env(safe-area-inset-left));
  width: min(600px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(20, 38, 29, .24);
}
.analytics-consent h2 { margin: 0 0 8px; font-size: 22px; }
.analytics-consent p { margin: 0; font-size: 14px; }
.analytics-consent p a { color: var(--forest); }
.analytics-consent-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.analytics-consent-actions button { min-height: 42px; padding: 9px 16px; border: 1px solid var(--forest); border-radius: 8px; cursor: pointer; }
#analytics-reject { background: #fff; color: var(--forest); }
#analytics-accept { background: var(--forest); color: #fff; }
.analytics-consent-actions button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--forest);
  font-family: "Montserrat", "Avenir Next", Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.04em;
}

.brand-symbol {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-size: 19px;
}

.footer {
  font-size: 12px;
  letter-spacing: .04em;
}

.app-card {
  width: min(100%, 760px);
  min-height: 580px;
  margin: clamp(24px, 7vh, 76px) auto 40px;
  padding: clamp(28px, 5.8vw, 62px);
  border: 1px solid rgba(177, 138, 74, .2);
  border-radius: 24px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow);
}

.view { animation: arrive .35s ease both; }

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

.eyebrow {
  margin: 0 0 26px;
  color: var(--gold);
  font-family: "Montserrat", "Avenir Next", Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

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

h1, h2, h3 {
  color: var(--forest);
  font-family: "Montserrat", "Avenir Next", Arial, sans-serif;
  line-height: 1.18;
}

h1 { max-width: 620px; font-size: clamp(42px, 7vw, 68px); letter-spacing: -.045em; }
h2 { max-width: 640px; font-size: clamp(30px, 5vw, 45px); letter-spacing: -.035em; }
h3 { margin-bottom: 10px; font-size: 17px; }

.gold { color: var(--gold); }
.lede { max-width: 550px; font-size: clamp(17px, 2.3vw, 21px); }
.small-note { font-size: 13px; color: #707a74; }

.progress-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 38px; }
.progress-label { color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.progress-dots { display: flex; gap: 9px; }
.progress-dot { width: 8px; height: 8px; border-radius: 50%; background: #d9dfda; transition: background .2s, transform .2s; }
.progress-dot.past { background: var(--gold); }
.progress-dot.current { background: var(--forest); transform: scale(1.45); }

.choices { display: grid; gap: 12px; margin: 40px 0 30px; }
.choice {
  min-height: 63px;
  padding: 15px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--forest);
  cursor: pointer;
  text-align: left;
  font-family: "Montserrat", "Avenir Next", Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  transition: border-color .2s, background .2s, transform .2s, box-shadow .2s;
}
.choice:focus-visible, .primary:focus-visible, .text-button:focus-visible { outline: 3px solid rgba(177, 138, 74, .45); outline-offset: 3px; }

.impulse {
  margin: 36px 0 30px;
  padding: 26px 28px;
  border-left: 4px solid var(--gold);
  border-radius: 0 14px 14px 0;
  background: var(--cream);
  color: var(--forest);
  font-size: clamp(18px, 2.6vw, 22px);
  line-height: 1.55;
}
.impulse p { margin-bottom: 0; }

.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 13px 26px;
  border: 1px solid var(--forest);
  border-radius: 8px;
  background: var(--forest);
  color: #fff;
  cursor: pointer;
  font-family: "Montserrat", "Avenir Next", Arial, sans-serif;
  font-weight: 700;
  transition: transform .2s, background .2s;
}
.actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; flex-wrap: wrap; margin-top: 30px; }
.text-button { padding: 10px 0; border: 0; background: none; color: var(--forest); cursor: pointer; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

.summary-group { margin: 24px 0; padding: 18px 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.summary-group ul { margin: 0; padding-left: 20px; }
.summary-group li + li { margin-top: 5px; }
.summary-group.strong { border-color: rgba(177, 138, 74, .5); background: var(--cream); }
.cta-panel { margin-top: 34px; padding: 28px; border-radius: 16px; background: var(--forest); color: #fff; }
.cta-panel h3 { color: #fff; font-size: 24px; }
.cta-panel p { margin-bottom: 18px; }
.cta-panel .primary { border-color: #fff; background: #fff; color: var(--forest); }

@media (hover: hover) and (pointer: fine) {
  .choice:hover { border-color: var(--gold); background: var(--cream); transform: translateY(-2px); box-shadow: 0 9px 20px rgba(41, 72, 58, .07); }
  .primary:hover { background: var(--forest-deep); transform: translateY(-2px); }
  .cta-panel .primary:hover { background: var(--cream); }
}

.footer { margin-top: auto; padding-top: 20px; border-top: 1px solid rgba(41, 72, 58, .12); }

@media (max-width: 650px) {
  .page-shell { padding: 14px 14px 18px; }
  .app-card { min-height: calc(100vh - 128px); margin: 18px auto; padding: 27px 23px; border-radius: 20px; }
  .progress-top { margin-bottom: 30px; }
  .choices { margin: 34px 0 24px; }
  .footer { align-items: flex-start; flex-direction: column; gap: 8px; font-size: 11px; }
}

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