@import url("https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&family=Fraunces:opsz,wght@9..144,500;9..144,600&display=swap");

:root {
  --ink: #22302a;
  --muted: #66736c;
  --line: #dbc6aa;
  --paper: #fbe8ce;
  --brand: #9ab17a;
  --brand-deep: #5f7d46;
  --brand-soft: #e5edda;
  --error: #9e3b2e;
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--paper); }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
}

a { color: inherit; }
button, input { font: inherit; }

.page-shell {
  width: min(100%, 43rem);
  margin: 0 auto;
  padding: clamp(1rem, 4vw, 3.5rem) 1rem 0;
}

.landing-card, .legal-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: clamp(1.35rem, 4vw, 2rem);
  background: var(--paper);
}

.hero {
  padding: clamp(2rem, 7vw, 4rem) clamp(1.25rem, 7vw, 4rem) clamp(2.25rem, 7vw, 3.75rem);
  text-align: center;
}

.brand { display: flex; width: 100%; justify-content: center; padding: .25rem; }
.brand-logo { display: block; width: min(100%, 13.5rem); height: auto; margin-inline: auto; fill: var(--brand); }

.eyebrow, .section-label {
  margin: 2.25rem 0 .55rem;
  color: var(--brand-deep);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1, h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  letter-spacing: -.045em;
}

h1 {
  max-width: 35rem;
  margin: 0 auto;
  font-size: clamp(2.35rem, 9vw, 4.3rem);
  line-height: .99;
}

h2 { margin: 0; font-size: clamp(1.65rem, 5vw, 2.25rem); line-height: 1.05; }

.intro {
  max-width: 33rem;
  margin: 1.4rem auto 0;
  color: var(--muted);
  font-size: clamp(.98rem, 2.5vw, 1.08rem);
  line-height: 1.65;
}

.survey-panel {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.5rem, 6vw, 2.5rem);
  border-top: 1px solid var(--brand);
  border-bottom: 1px solid var(--brand);
  background: var(--brand);
}

.survey-panel .section-label { margin-top: 0; color: #314323; }
.survey-meta { margin: .75rem 0 0; color: #3f5033; font-size: .9rem; font-weight: 600; }

.button {
  display: inline-flex;
  min-height: 3.45rem;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .82rem 1.15rem;
  border: 1px solid var(--brand-deep);
  border-radius: .9rem;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease;
}

.button:hover { transform: translateY(-1px); }
.button-primary { color: var(--paper); border-color: var(--ink); background: var(--ink); }
.button-primary:hover { background: #314039; }
.button-secondary { color: var(--ink); border-color: var(--brand); background: var(--brand); }
.button-secondary:hover { background: #a9bf8c; }
.button:disabled { cursor: wait; opacity: .65; transform: none; }

.signup { padding: clamp(2rem, 7vw, 3.4rem) clamp(1.25rem, 7vw, 4rem); }
.signup .section-label { margin-top: 0; }
.signup > p:not(.section-label) { margin: .8rem 0 1.6rem; color: var(--muted); line-height: 1.55; }

form label { display: block; margin-bottom: .45rem; font-size: .84rem; font-weight: 700; }
.form-row { display: grid; gap: .7rem; }

input {
  width: 100%;
  min-width: 0;
  min-height: 3.45rem;
  padding: .8rem 1rem;
  border: 1px solid var(--line);
  border-radius: .9rem;
  color: var(--ink);
  background: rgba(255, 255, 255, .28);
  outline: none;
}

input::placeholder { color: #7b837f; }
input:focus { border-color: var(--brand-deep); box-shadow: 0 0 0 3px rgba(95, 125, 70, .19); }
input[aria-invalid="true"] { border-color: var(--error); }

.consent { margin: .8rem 0 0; color: var(--muted); font-size: .72rem; line-height: 1.5; }
.consent a { font-weight: 600; }
.form-status { min-height: 1.4rem; margin: .7rem 0 0; font-size: .84rem; font-weight: 700; }
.form-status.success { color: var(--brand-deep); }
.form-status.error { color: var(--error); }

.site-footer {
  display: flex;
  width: min(100%, 43rem);
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1rem 1.75rem;
  color: var(--muted);
  font-size: .75rem;
}

.site-footer nav { display: flex; gap: 1rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--brand-deep); text-decoration: underline; }

.legal-card { padding: clamp(1.5rem, 7vw, 4rem); }
.legal-card .brand { margin-bottom: 2.5rem; }
.legal-card h1 { margin: 0; font-size: clamp(2.4rem, 8vw, 3.8rem); }
.legal-content { margin-top: 2.5rem; border-top: 1px solid var(--line); }
.legal-content section { padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.legal-content h2 { margin-bottom: .65rem; font-family: "DM Sans", sans-serif; font-size: 1rem; font-weight: 700; letter-spacing: 0; }
.legal-content p { margin: .35rem 0; color: var(--muted); line-height: 1.6; }
.back-link { display: inline-flex; margin-top: 2rem; color: var(--brand-deep); font-weight: 700; text-decoration: none; }

:focus-visible { outline: 3px solid #597e3c; outline-offset: 3px; }

@media (min-width: 36rem) {
  .survey-panel { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .form-row { grid-template-columns: minmax(0, 1fr) auto; }
}

@media (max-width: 25rem) {
  .site-footer { flex-direction: column; }
}

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