/* Mobile-first: base styles are for phones; wider screens are layered on with min-width queries.
   Fonts are self-hosted, all SIL Open Font License (licences in fonts/):
   Fredoka (rounded headings), Nunito (text), Caveat (handwritten accents). */
@font-face { font-family: "Fredoka"; src: url("fonts/fredoka-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/nunito-latin-wght-normal.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("fonts/caveat-latin-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --pine: #0f2e24;        /* darkest green: headings */
  --forest: #395f1f;      /* buttons */
  --forest-hover: #2a4f0d;
  --leaf: #4f8a2b;        /* green, accents */
  --lime: #7cbf3f;        /* sparkle / highlight */
  --cream: #f8f8eb;       /* page */
  --paper: #fffff8;       /* cards */
  --outer: #eef2df;
  --sage: #e3edcc;
  --chosen: #eef6dc;
  --ink: #1d3328; --muted: #55675b; --line: #d9e3c6; --focus: #7cbf3f;
  --danger: #b0322a;
  --display: "Fredoka", "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  --sans: "Nunito", "Segoe UI", Arial, sans-serif;
  --script: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --gutter: 18px;
  color-scheme: light;
}
@media (min-width: 600px) { :root { --gutter: 32px; } }
@media (min-width: 1000px) { :root { --gutter: 64px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 16px/1.6 var(--sans); }
@media (min-width: 1100px) { body { background: var(--outer); } }
img { max-width: 100%; display: block; }
a { color: var(--forest); font-weight: 700; text-underline-offset: 3px; text-decoration-color: var(--lime); text-decoration-thickness: 2px; }
a:hover { color: var(--leaf); }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; color: var(--pine); letter-spacing: -.01em; line-height: 1.08; margin: 0; }
p { margin: 0 0 1em; }
.eyebrow { margin: 0 0 12px; color: var(--leaf); font-size: .78rem; line-height: 1.3; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.shell { max-width: 1260px; min-height: 100vh; margin: 0 auto; background: var(--cream); display: flex; flex-direction: column; }
@media (min-width: 1100px) { .shell { box-shadow: 0 18px 60px #1f4a2c1a; } }
main { flex: 1; }

/* ---------- header */
.demo-banner { padding: 15px var(--gutter); background: var(--danger); color: #fff; font-size: .82rem; font-weight: 700; text-align: center; }
.masthead { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px var(--gutter); }
.brand { display: flex; gap: 10px; align-items: center; color: var(--pine); text-decoration: none; font: 700 1.15rem/1.1 var(--display); letter-spacing: -.01em; }
.brand:hover { color: var(--pine); }
.brand-mark { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--leaf); color: var(--paper); box-shadow: 0 0 0 3px var(--sage); }
.brand-mark svg { width: 21px; height: 21px; fill: currentColor; }
.head-side { color: var(--forest); font: 600 1.05rem/1.05 var(--script); text-align: right; }
@media (min-width: 700px) {
  .masthead { padding-top: 22px; padding-bottom: 22px; }
  .brand { font-size: 1.45rem; gap: 12px; }
  .brand-mark { width: 46px; height: 46px; }
  .brand-mark svg { width: 24px; height: 24px; }
  .head-side { font-size: 1.35rem; }
}

/* ---------- buttons */
.button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 54px; padding: 14px 28px;
  border: 0; border-radius: 999px; background: var(--forest); color: #fff; font: 600 1.06rem/1.2 var(--display); letter-spacing: .01em; text-decoration: none;
  cursor: pointer; box-shadow: 0 6px 0 -2px #1f3d0f33; transition: background .15s, transform .15s; }
.button:hover { background: var(--forest-hover); color: #fff; transform: translateY(-1px); }
.button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.button .arrow { font-weight: 400; }
.button-outline { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 13px 22px;
  border: 2px solid var(--leaf); border-radius: 999px; background: transparent; color: var(--forest); font: 600 1.02rem/1.2 var(--display); cursor: pointer; text-decoration: none; }
.button-outline:hover { background: var(--sage); }

/* ---------- landing */
.hero { display: flex; flex-direction: column; }
.hero-photo { position: relative; min-height: clamp(190px, 28vh, 260px); overflow: hidden; background: var(--sage); }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.hero-photo::after, .aside::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #0f2e2499, transparent 50%); pointer-events: none; }
/* curved edge where the photo meets the page, like the poster's panel */
.hero-photo::before { content: ""; position: absolute; z-index: 2; left: 0; right: 0; bottom: -1px; height: 34px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 40' preserveAspectRatio='none'%3E%3Cpath fill='%23f8f8eb' d='M0 40 V22 C 90 2 170 4 250 18 S 360 30 400 14 V40Z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat; pointer-events: none; }
.photo-caption { position: absolute; z-index: 1; left: var(--gutter); right: var(--gutter); bottom: 42px; margin: 0;
  color: #fff; font: 600 1.7rem/1.05 var(--script); text-shadow: 0 2px 10px #0009; }
.hero-copy { padding: 16px var(--gutter) 40px; }
.hero-copy h1 { font-size: clamp(2.3rem, 10vw, 5rem); font-weight: 700; margin-bottom: 14px; }
.hero-copy h1 em { font-style: normal; color: var(--leaf); }
.hero-copy .lead { font-size: 1.16rem; line-height: 1.55; color: var(--pine); }
.hero-copy p { max-width: 50ch; font-size: 1.05rem; }
.hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 18px; }
.hero-actions .button { width: 100%; }
.cta-meta { font: 600 1.3rem/1.1 var(--script); color: var(--forest); }
.strip { display: flex; flex-direction: column; gap: 6px; padding: 22px var(--gutter); border-top: 1px solid var(--line); color: var(--forest); font-size: .94rem; }
.contact-line { margin: 0; padding: 4px var(--gutter) 30px; color: var(--muted); font-size: .9rem; }

@media (min-width: 860px) {
  .hero { display: grid; grid-template-columns: .92fr 1.08fr; min-height: min(720px, calc(100vh - 120px)); }
  .hero-photo { order: 2; min-height: 540px; }
  .hero-photo img { object-position: 55% center; }
  .hero-photo::before { top: 0; bottom: 0; left: -1px; right: auto; width: 52px; height: auto; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 400' preserveAspectRatio='none'%3E%3Cpath fill='%23f8f8eb' d='M0 0 H34 C 10 90 12 170 30 250 S 44 360 26 400 H0Z'/%3E%3C/svg%3E") left center / 100% 100% no-repeat; }
  .photo-caption { left: 64px; right: 30px; bottom: 30px; font-size: clamp(1.8rem, 2.6vw, 2.2rem); }
  .hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 48px var(--gutter); }
  .hero-copy .lead { font-size: 1.3rem; }
  .hero-actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
  .cta-meta { white-space: nowrap; }
  .hero-actions .button { width: auto; white-space: nowrap; }
  .hero-copy h1 { font-size: clamp(3rem, 5.2vw, 4.5rem); }
  .strip { flex-direction: row; justify-content: space-between; padding: 24px var(--gutter) 28px; }
  .contact-line { text-align: center; }
}

/* ---------- survey */
.survey { padding: 4px 12px 36px; }
.survey-top { display: flex; align-items: center; gap: 14px; margin: 0 6px 14px; color: var(--forest); font: 600 .95rem/1.2 var(--display); }
.survey-top .minutes { display: none; font: 600 1.25rem/1 var(--script); }
.progress-track { flex: 1; height: 9px; border-radius: 20px; background: var(--sage); overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--leaf), var(--lime)); border-radius: 20px; transition: width .25s ease; }
.card { display: flex; flex-direction: column; background: var(--paper); border: 2px solid var(--line); border-radius: 26px; overflow: hidden; box-shadow: 0 18px 55px #1f4a2c14; }
.aside { position: relative; min-height: 190px; background: var(--sage); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.aside img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.aside::before { content: ""; position: absolute; z-index: 2; left: 0; right: 0; top: -1px; height: 26px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 40' preserveAspectRatio='none'%3E%3Cpath fill='%23fffff8' d='M0 0 V18 C 90 38 170 36 250 22 S 360 10 400 26 V0Z'/%3E%3C/svg%3E") center top / 100% 100% no-repeat; pointer-events: none; }
.aside-caption { position: relative; z-index: 1; margin: 0; padding: 18px 22px; color: #fff; font: 600 1.6rem/1.05 var(--script); text-shadow: 0 2px 12px #0008; }
.aside.solid::after { display: none; }
.aside.solid .aside-caption { color: var(--forest); text-shadow: none; }
.question { display: flex; flex-direction: column; padding: 26px 20px 26px; min-width: 0; }
.question h2 { font-size: clamp(1.8rem, 7vw, 3.1rem); line-height: 1.1; margin-bottom: 12px; }
.question h2:focus { outline: none; }
.question .help { color: var(--muted); font-size: 1.04rem; margin-bottom: 20px; max-width: 60ch; }

.fields { display: grid; gap: 18px; margin-bottom: 8px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend, .field-label { display: block; margin: 0 0 8px; padding: 0; color: var(--pine); font-size: .95rem; font-weight: 800; }
.field-label small, legend small { font-weight: 400; color: var(--muted); }
.hint { display: block; margin-top: 2px; font-size: .86rem; font-weight: 400; color: var(--muted); }
.choices { display: grid; gap: 10px; }
.choice { display: flex; align-items: center; gap: 13px; padding: 14px 18px; border: 2px solid var(--line); border-radius: 999px; background: #fff;
  color: var(--ink); font-weight: 700; line-height: 1.35; cursor: pointer; transition: background .15s, border-color .15s; }
.choice:hover { border-color: var(--lime); }
.choice:has(input:checked) { border-color: var(--leaf); background: var(--chosen); }
.choice input { flex: none; width: 21px; height: 21px; margin: 0; accent-color: var(--leaf); cursor: pointer; }
.choice.consent { align-items: flex-start; font-weight: 400; border-radius: 18px; }
.choice.consent input { margin-top: 2px; }
.text-input { width: 100%; min-height: 52px; padding: 13px 16px; border: 2px solid var(--line); border-radius: 14px; background: #fff; font-size: 1rem; }
textarea.text-input { min-height: 96px; resize: vertical; }
.text-input::placeholder { color: #9aa79a; }
.text-input:focus { border-color: var(--leaf); outline: none; box-shadow: 0 0 0 4px #7cbf3f40; }
.has-error .text-input, .has-error .choice { border-color: var(--danger); }
.field-error { margin: 6px 0 0; color: var(--danger); font-size: .9rem; font-weight: 700; }
.form-error { min-height: 1.2em; margin: 8px 0 0; color: var(--danger); font-weight: 800; }
.survey-actions { display: flex; gap: 12px; align-items: center; margin-top: auto; padding-top: 18px; }
.survey-actions .button { flex: 1; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (min-width: 860px) {
  .survey { padding: 14px var(--gutter) 56px; }
  .survey-top { margin: 0 0 24px; }
  .survey-top .minutes { display: inline; }
  .progress-track { max-width: 520px; margin: 0 auto; }
  .card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .77fr); border-radius: 34px; min-height: 600px; }
  .question { padding: clamp(30px, 4vw, 56px); }
  .aside { min-height: 100%; }
  .aside::before { top: 0; bottom: 0; left: -1px; right: auto; width: 46px; height: auto; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 400' preserveAspectRatio='none'%3E%3Cpath fill='%23fffff8' d='M0 0 H34 C 10 90 12 170 30 250 S 44 360 26 400 H0Z'/%3E%3C/svg%3E") left center / 100% 100% no-repeat; }
  .aside-caption { padding: 34px 34px 34px 56px; max-width: 420px; font-size: clamp(1.9rem, 2.6vw, 2.6rem); }
  .survey-actions .button { flex: 0 0 auto; margin-left: auto; }
}

/* ---------- thanks / privacy / error */
.end { max-width: 820px; margin: 0 auto; padding: 14px var(--gutter) 56px; text-align: center; }
.end img { width: 100%; height: 240px; object-fit: cover; border-radius: 28px 28px 28px 28px / 24px 24px 60px 60px; margin-bottom: 28px; border: 3px solid var(--sage); }
.end h1 { font-size: clamp(2.2rem, 8vw, 3.6rem); font-weight: 700; margin-bottom: 16px; }
.end p { color: var(--muted); font-size: 1.08rem; }
.prose { max-width: 760px; margin: 0 auto; padding: 14px var(--gutter) 56px; font-size: 1.04rem; }
.prose h1 { font-size: clamp(2.2rem, 8vw, 3.3rem); font-weight: 700; margin-bottom: 10px; }
.prose h2 { font-size: 1.5rem; margin: 30px 0 10px; color: var(--forest); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--leaf); }
@media (min-width: 700px) { .end img { height: 300px; } }

/* ---------- footer: rolling hills, like the bottom of the poster */
.footer { --hills-h: min(13.9vw, 175px);   /* height of the hills picture: width x 200/1440 */
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 20px;
  padding: calc(var(--hills-h) - 6px) var(--gutter) 22px; margin-top: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 200' preserveAspectRatio='xMidYMax slice'%3E%3Cpath fill='%23d6e6b3' d='M0 96 C 180 40 360 52 560 84 S 900 40 1100 66 S 1340 52 1440 58 V200 H0Z'/%3E%3Cpath fill='%236f9c4c' d='M120 44 L127.854 62.7 L112.146 62.7Z M120 54.2 L130.71 74.6 L109.29 74.6Z M118.5 73.92 h3 v4.760000000000001 h-3Z'/%3E%3Cpath fill='%236f9c4c' d='M150 50 L156.006 64.3 L143.994 64.3Z M150 57.8 L158.19 73.4 L141.81 73.4Z M148.5 72.88 h3 v3.6400000000000006 h-3Z'/%3E%3Cpath fill='%236f9c4c' d='M470 44 L476.93 60.5 L463.07 60.5Z M470 53.0 L479.45 71.0 L460.55 71.0Z M468.5 70.4 h3 v4.2 h-3Z'/%3E%3Cpath fill='%236f9c4c' d='M1010 26 L1018.316 45.8 L1001.684 45.8Z M1010 36.8 L1021.34 58.4 L998.66 58.4Z M1008.5 57.68 h3 v5.040000000000001 h-3Z'/%3E%3Cpath fill='%236f9c4c' d='M1040 34 L1046.468 49.4 L1033.532 49.4Z M1040 42.400000000000006 L1048.82 59.2 L1031.18 59.2Z M1038.5 58.64 h3 v3.9200000000000004 h-3Z'/%3E%3Cpath fill='%236f9c4c' d='M1290 28 L1296.93 44.5 L1283.07 44.5Z M1290 37.0 L1299.45 55.0 L1280.55 55.0Z M1288.5 54.4 h3 v4.2 h-3Z'/%3E%3Cpath fill='%236f9c4c' d='M1320 38 L1325.082 50.1 L1314.918 50.1Z M1320 44.6 L1326.93 57.8 L1313.07 57.8Z M1318.5 57.36 h3 v3.08 h-3Z'/%3E%3Cpath fill='%23b3d185' d='M0 128 C 240 84 420 94 660 118 S 1010 86 1220 104 S 1400 100 1440 102 V200 H0Z'/%3E%3Cpath fill='%233f6f2e' d='M60 76 L71.088 102.4 L48.912 102.4Z M60 90.4 L75.12 119.2 L44.879999999999995 119.2Z M58.5 118.24 h3 v6.720000000000001 h-3Z'/%3E%3Cpath fill='%233f6f2e' d='M96 82 L104.778 102.9 L87.222 102.9Z M96 93.4 L107.97 116.2 L84.03 116.2Z M94.5 115.44 h3 v5.32 h-3Z'/%3E%3Cpath fill='%233f6f2e' d='M330 62 L340.164 86.2 L319.836 86.2Z M330 75.2 L343.86 101.6 L316.14 101.6Z M328.5 100.72 h3 v6.16 h-3Z'/%3E%3Cpath fill='%233f6f2e' d='M362 76 L369.392 93.6 L354.608 93.6Z M362 85.6 L372.08 104.8 L351.92 104.8Z M360.5 104.16 h3 v4.48 h-3Z'/%3E%3Cpath fill='%233f6f2e' d='M760 68 L771.55 95.5 L748.45 95.5Z M760 83.0 L775.75 113.0 L744.25 113.0Z M758.5 112.0 h3 v7.000000000000001 h-3Z'/%3E%3Cpath fill='%233f6f2e' d='M800 78 L808.778 98.9 L791.222 98.9Z M800 89.4 L811.97 112.2 L788.03 112.2Z M798.5 111.44 h3 v5.32 h-3Z'/%3E%3Cpath fill='%233f6f2e' d='M1150 54 L1160.626 79.3 L1139.374 79.3Z M1150 67.80000000000001 L1164.49 95.4 L1135.51 95.4Z M1148.5 94.48 h3 v6.44 h-3Z'/%3E%3Cpath fill='%233f6f2e' d='M1185 66 L1192.854 84.7 L1177.146 84.7Z M1185 76.2 L1195.71 96.6 L1174.29 96.6Z M1183.5 95.92 h3 v4.760000000000001 h-3Z'/%3E%3Cpath fill='%233f6f2e' d='M1400 62 L1409.24 84.0 L1390.76 84.0Z M1400 74.0 L1412.6 98.0 L1387.4 98.0Z M1398.5 97.2 h3 v5.6000000000000005 h-3Z'/%3E%3Cpath fill='%238bbb5c' d='M0 160 C 300 124 540 134 780 150 S 1180 128 1440 144 V200 H0Z'/%3E%3Cpath fill='%231f4a2c' d='M200 92 L213.398 123.9 L186.602 123.9Z M200 109.4 L218.27 144.2 L181.73 144.2Z M198.5 143.04 h3 v8.120000000000001 h-3Z'/%3E%3Cpath fill='%231f4a2c' d='M240 104 L250.164 128.2 L229.836 128.2Z M240 117.2 L253.86 143.6 L226.14 143.6Z M238.5 142.72 h3 v6.16 h-3Z'/%3E%3Cpath fill='%231f4a2c' d='M620 94 L632.012 122.6 L607.988 122.6Z M620 109.6 L636.38 140.8 L603.62 140.8Z M618.5 139.76 h3 v7.280000000000001 h-3Z'/%3E%3Cpath fill='%231f4a2c' d='M1300 86 L1312.936 116.8 L1287.064 116.8Z M1300 102.80000000000001 L1317.64 136.4 L1282.36 136.4Z M1298.5 135.28 h3 v7.840000000000001 h-3Z'/%3E%3Cpath fill='%231f4a2c' d='M1340 98 L1349.702 121.1 L1330.298 121.1Z M1340 110.6 L1353.23 135.8 L1326.77 135.8Z M1338.5 134.96 h3 v5.880000000000001 h-3Z'/%3E%3C/svg%3E") center top / 100% auto no-repeat, linear-gradient(transparent calc(var(--hills-h) - 3px), #8bbb5c 0);
  color: var(--pine); font-size: .9rem; font-weight: 700; }
.footer a { color: var(--pine); text-decoration-color: var(--pine); }
.footer a:hover { color: #fff; }
@media (max-width: 899px) { .footer { --hills-h: 125px; background-size: 900px auto, auto; } }
