:root {
  --green: #1e4d2b;
  --green-dark: #143620;
  --green-soft: #e8efe9;
  --gold: #c8c372;
  --bg: #f5f6f3;
  --surface: #ffffff;
  --text: #1f2421;
  --muted: #5b635d;
  --border: #e1e4df;
  --link: #1e5d33;
  --shadow: 0 1px 2px rgba(20, 40, 25, 0.04), 0 4px 16px rgba(20, 40, 25, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --green: #4e9a63;
    --green-dark: #3f8253;
    --green-soft: #1d2a21;
    --gold: #d6d18a;
    --bg: #111513;
    --surface: #181d1a;
    --text: #e6e9e6;
    --muted: #a0a8a2;
    --border: #2a312c;
    --link: #8fd0a2;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-underline-offset: 2px; word-break: break-word; }

/* Reading progress */
.progress { position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 10; background: transparent; }
.progress-bar { height: 100%; width: 0; background: var(--gold); transition: width 0.1s linear; }

/* Hero */
.hero {
  background: linear-gradient(135deg, #1e4d2b 0%, #2c6a3d 100%);
  color: #fff;
  padding: 64px 16px 88px;
}
.hero-inner { max-width: 760px; margin: 0 auto; }
.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero h1 {
  margin: 0 0 12px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.15;
  font-weight: 700;
}
.subtitle { margin: 0; font-size: 18px; opacity: 0.88; max-width: 620px; }

.quick-facts {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.quick-facts li {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
}
.qf-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.75; }
.qf-value { font-size: 17px; font-weight: 600; }

/* Layout */
.container { max-width: 760px; margin: -48px auto 0; padding: 0 16px; position: relative; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.card h2 {
  margin: 0 0 12px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--green);
}
.card p { margin: 0 0 12px; }
.card p:last-child { margin-bottom: 0; }

/* Study details */
.meta dl { margin: 0; display: grid; gap: 14px; }
.meta dl > div { display: grid; grid-template-columns: 190px 1fr; gap: 16px; }
.meta dt { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); padding-top: 2px; }
.meta dd { margin: 0; font-weight: 500; }

.highlight { border-left: 4px solid var(--gold); }

.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232c7a45'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2Z'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.callout {
  display: flex;
  gap: 14px;
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--green-soft);
}
.callout svg { flex: none; width: 22px; height: 22px; fill: var(--green); margin-top: 3px; }

/* Decision */
.decision { border: 2px solid var(--green); padding: 32px; }
.prompt { font-weight: 600; }
.notice {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}
.notice svg { flex: none; width: 18px; height: 18px; fill: currentColor; margin-top: 1px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

.btn {
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  border-radius: 10px;
  padding: 14px 22px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn svg { width: 20px; height: 20px; fill: currentColor; }

.btn-primary { background: #1e4d2b; color: #fff; border: 1px solid #1e4d2b; }
.btn-primary:hover { background: #143620; }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--muted); }
.btn-link { background: none; border: none; color: var(--link); padding: 8px 0; text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }

/* Declined view */
.thanks { text-align: center; padding: 48px 40px; outline: none; }
.thanks p { max-width: 540px; margin-left: auto; margin-right: auto; }
.thanks-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--green-soft);
  display: grid;
  place-items: center;
}
.thanks-icon svg { width: 30px; height: 30px; fill: var(--green); }
.thanks h2 { font-size: 28px; }
.muted { color: var(--muted); }

.footer { text-align: center; color: var(--muted); font-size: 13px; padding: 24px 16px 40px; }

.fade-in { animation: fade 0.35s ease-out; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in { animation: none; }
}

@media (max-width: 640px) {
  .hero { padding: 40px 16px 72px; }
  .quick-facts { grid-template-columns: repeat(2, 1fr); }
  .card, .decision { padding: 22px 20px; }
  .meta dl > div { grid-template-columns: 1fr; gap: 2px; }
  .actions { flex-direction: column; }
  .btn { width: 100%; }
  .thanks { padding: 36px 20px; }
}
