/* Poppins, served from this site (scripts/build.mjs copies it from
   @fontsource/poppins): no visitor's address goes to Google Fonts, and it
   loads fast on show Wi-Fi. latin-ext only downloads for names that need it. */
@font-face { font-family: Poppins; font-style: normal; font-weight: 300; font-display: swap; src: url(/assets/fonts/poppins-latin-300-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/poppins-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/poppins-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/poppins-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/poppins-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 300; font-display: swap; src: url(/assets/fonts/poppins-latin-ext-300-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/poppins-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/poppins-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/poppins-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/poppins-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Rachelle's palette (dev pack, "Look and feel"). Orange buttons take
   charcoal text: white on this orange fails contrast. */
:root {
  --charcoal: #231F20;
  --page: #F7F5F4;
  --sand: #EDE8E4;
  --orange: #F18619;
  --orange-text: #F39433;
  --red: #C4222B;
  --red-dark: #8E1A21;
  --grey: #4E4C4C;
  --muted: #6B6868;
  --soft: #D8D6D6;
  --line: #E6E1DD;
  --chip-line: #DDD8D4;
  --input-line: #B9B4B0;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--sand); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Poppins, 'Helvetica Neue', Arial, sans-serif; color: var(--charcoal); background: var(--sand); }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 2px solid var(--charcoal); outline-offset: 2px; }
[hidden] { display: none !important; }

/* Phone first. On tablets the same column sits centred, up to 560px; from
   960px the page spreads out (see "desktop" at the end). */
.page { max-width: 560px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; background: var(--page); display: flex; flex-direction: column; }
main { flex: 1; }
@media (min-width: 600px) { .page { box-shadow: 0 0 0 1px var(--line), 0 12px 40px rgba(35, 31, 32, .08); } }

/* ---------- header and footer ---------- */

.top { background: var(--charcoal); padding: 16px 20px; display: flex; align-items: center; gap: 10px; }
.top img { width: 22px; height: 30px; object-fit: contain; }
.top-words { display: flex; flex-direction: column; gap: 1px; }
.wordmark { font-size: 13px; line-height: 16px; font-weight: 500; letter-spacing: 2.5px; color: #FFFFFF; }
.tagline { font-size: 11px; line-height: 14px; font-weight: 300; color: var(--orange-text); }

.bottom { margin-top: 28px; padding: 24px 20px 28px; background: var(--charcoal); display: flex; flex-direction: column; gap: 10px; }
.bottom-mark { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 500; letter-spacing: 2px; color: #FFFFFF; }
.bottom-mark img { width: 18px; height: 24px; object-fit: contain; }
.bottom-line { font-size: 12px; line-height: 18px; color: var(--soft); }
.bottom-links { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; }
.bottom-links a { color: var(--orange-text); }
.bottom-links a:hover { color: #FFFFFF; }
.bottom :focus-visible, .quiz :focus-visible { outline-color: #FFFFFF; }

/* ---------- the ask ---------- */

.hero { position: relative; height: 300px; overflow: hidden; background: var(--charcoal); }
@media (min-width: 480px) { .hero { height: 340px; } }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(35, 31, 32, 0) 35%, rgba(35, 31, 32, .92) 100%); }
.hero-words { position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 1; display: flex; flex-direction: column; gap: 6px; }
.kicker { font-size: 11px; font-weight: 600; letter-spacing: 1.2px; color: var(--orange-text); }
.hero h1 { margin: 0; font-size: 40px; line-height: 44px; font-weight: 700; letter-spacing: -.5px; color: #FFFFFF; }

.intro { padding: 24px 20px 8px; display: flex; flex-direction: column; gap: 16px; }
.intro p { margin: 0; font-size: 15px; line-height: 23px; color: var(--grey); }
.intro .lead { font-size: 16px; line-height: 24px; font-weight: 500; color: var(--charcoal); }
.chips { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 12px; border-radius: 999px; background: #FFFFFF; border: 1px solid var(--chip-line); font-size: 12px; font-weight: 500; }

.card { margin: 16px 20px 0; padding: 22px 18px; background: #FFFFFF; border-radius: 12px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.card-head { display: flex; flex-direction: column; gap: 4px; }
.card h2 { margin: 0; font-size: 20px; line-height: 26px; font-weight: 600; }
.card-head p { margin: 0; font-size: 13px; line-height: 19px; color: var(--grey); }

.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .ticks legend { font-size: 13px; font-weight: 500; }
.opt { font-weight: 400; color: var(--muted); }

/* 16px text: iOS zooms into any field set smaller. */
input[type=text], input[type=email], input[type=tel], select, textarea {
  width: 100%; height: 46px; padding: 0 12px; border: 1px solid var(--input-line); border-radius: 8px;
  background: #FFFFFF; color: var(--charcoal); font: 16px Poppins, 'Helvetica Neue', Arial, sans-serif;
}
textarea { height: auto; min-height: 92px; padding: 10px 12px; line-height: 22px; resize: vertical; }
select {
  appearance: none; padding-right: 40px; cursor: pointer;
  background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23231F20' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 14px center;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 0; border-color: var(--charcoal); }
[aria-invalid=true] { border-color: var(--red) !important; box-shadow: 0 0 0 1px var(--red); }
.error { margin: 0; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--red); }

.ticks { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ticks legend { padding: 0; margin-bottom: 8px; }
.tick { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 20px; cursor: pointer; }
.tick input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--red); cursor: pointer; }
.tick.small { font-size: 13px; line-height: 19px; color: var(--grey); }
.tick input[aria-invalid=true] { outline: 2px solid var(--red); outline-offset: 1px; box-shadow: none; }

.agree { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid #EDE8E4; }

.cta {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 52px; border: 0; border-radius: 10px;
  background: var(--orange); color: var(--charcoal); font: 600 16px Poppins, 'Helvetica Neue', Arial, sans-serif; text-decoration: none; cursor: pointer;
}
.cta:hover { background: #E07A10; color: var(--charcoal); }
.cta:disabled { opacity: .6; cursor: progress; }

.status { margin: 0; text-align: center; font-size: 14px; line-height: 20px; font-weight: 500; }
.status:empty { display: none; }
.status.err { color: var(--red); }
.fine { margin: -6px 0 0; text-align: center; font-size: 12px; line-height: 18px; color: var(--muted); }
.fine.recaptcha { margin-top: -10px; font-size: 11px; line-height: 16px; }
.fine a { color: var(--muted); }
/* Google allows hiding the badge when the form shows the notice above. */
.grecaptcha-badge { visibility: hidden; }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.alt { margin: 20px 20px 0; padding: 18px; border-radius: 12px; background: var(--sand); display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.alt span, .plain span { font-weight: 600; }
.alt a, .plain a { font-weight: 500; overflow-wrap: anywhere; }

/* ---------- thank you ---------- */

.thanks-head { padding: 36px 20px 8px; display: flex; flex-direction: column; gap: 14px; }
.done { width: 52px; height: 52px; border-radius: 50%; background: var(--orange); display: flex; align-items: center; justify-content: center; }
.thanks-head h1 { margin: 0; font-size: 32px; line-height: 38px; font-weight: 700; letter-spacing: -.3px; overflow-wrap: anywhere; }
.thanks-head h1:focus { outline: none; }
.thanks-head p { margin: 0; font-size: 15px; line-height: 23px; color: var(--grey); }
.thanks-head p.small { font-size: 13px; line-height: 19px; color: var(--muted); overflow-wrap: anywhere; }

.quiz { margin: 24px 20px 0; padding: 22px 18px; border-radius: 12px; background: var(--charcoal); display: flex; flex-direction: column; gap: 12px; }
.quiz h2 { margin: 0; font-size: 22px; line-height: 28px; font-weight: 600; color: #FFFFFF; }
.quiz p { margin: 0; font-size: 14px; line-height: 21px; color: var(--soft); }
.quiz .cta { height: 50px; font-size: 15px; }
.quiz-fine { font-size: 12px; line-height: 17px; color: var(--input-line); }

.plain { margin: 20px 20px 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }

/* ---------- desktop ----------
   The photo runs the full width, the intro sits on the left and the form
   card on the right, rising into the photo. The thank-you screen splits the
   same way. Same order in the markup as on a phone: only the grid moves. */

@media (min-width: 960px) {
  :root { --content: 1076px; --gutter: max(40px, calc((100% - var(--content)) / 2)); }
  .page { max-width: none; box-shadow: none; }

  .top, .bottom { padding-left: var(--gutter); padding-right: var(--gutter); }
  .top { padding-top: 18px; padding-bottom: 18px; }
  .bottom { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 32px; margin-top: 64px; }
  .bottom-line { flex: 1; }

  #ask, #thanks {
    display: grid;
    grid-template-columns: [full-start] minmax(40px, 1fr) [main-start] minmax(0, 560px) [main-end] 56px [side-start] 460px [side-end] minmax(40px, 1fr) [full-end];
    align-items: start;
  }
  #ask { grid-template-rows: auto auto 1fr; }

  .hero { grid-column: full; grid-row: 1; height: 460px; }
  .hero img { object-position: 50% 40%; }
  .hero::after { background: linear-gradient(90deg, rgba(35, 31, 32, .78) 0%, rgba(35, 31, 32, .35) 45%, rgba(35, 31, 32, 0) 70%), linear-gradient(180deg, rgba(35, 31, 32, 0) 50%, rgba(35, 31, 32, .6) 100%); }
  .hero-words { left: var(--gutter); right: auto; bottom: 48px; max-width: 560px; gap: 10px; }
  .kicker { font-size: 13px; letter-spacing: 1.6px; }
  .hero h1 { font-size: 72px; line-height: 76px; letter-spacing: -1px; }

  .intro { grid-column: main; grid-row: 2; padding: 48px 0 0; gap: 20px; }
  .intro .lead { font-size: 22px; line-height: 32px; }
  .intro p { font-size: 17px; line-height: 27px; }
  .chips li { font-size: 13px; padding: 7px 14px; }

  .card { grid-column: side; grid-row: 2 / 4; margin: -160px 0 0; padding: 28px 26px; position: relative; z-index: 1; box-shadow: 0 18px 48px rgba(35, 31, 32, .14); }
  .card h2 { font-size: 22px; line-height: 28px; }

  .alt { grid-column: main; grid-row: 3; margin: 32px 0 0; max-width: 420px; }

  .thanks-head { grid-column: main; grid-row: 1; padding: 72px 0 0; gap: 18px; }
  .thanks-head h1 { font-size: 48px; line-height: 54px; }
  .thanks-head p { font-size: 17px; line-height: 27px; }
  .thanks-head p.small { font-size: 14px; line-height: 21px; }
  .quiz { grid-column: side; grid-row: 1 / 3; margin: 72px 0 0; padding: 30px 28px; }
  .quiz h2 { font-size: 26px; line-height: 33px; }
  .plain { grid-column: main; grid-row: 2; margin: 32px 0 0; }
}
