/* ==========================================================================
   500 Sweepstakes - main stylesheet
   Hand-written CSS. No framework, no build step, no dependencies.

   1.  Design tokens
   2.  Base
   3.  Layout (container + first-screen "fold")
   4.  Header
   5.  Hero / Step 1 (horizontal entry form)
   6.  Form controls & buttons
   7.  Cards: Step 2, questionnaire, confirmation
   8.  Content sections below the fold
   9.  Footer
   10. Legal pages (terms / privacy)
   11. Alternate landing page (background-image hero)
   12. Utilities & motion
   ========================================================================== */

/* 1. Design tokens
   ========================================================================== */
:root {
  --font-display: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --ink: #0f292d;
  --ink-2: #1b494f;
  --text: #41686e;
  --text-2: #4f777c;
  --muted: #52797e;

  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;

  --green-50: #ecfdf5;
  --green-100: #d1fae5;
  --green-200: #a7f3d0;
  --green-300: #6ee7b7;
  --green-500: #10b981;
  --green-600: #059669;
  --green-700: #047857;
  --green-800: #065f46;
  --green-900: #064e3b;
  --teal-600: #0d9488;

  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-300: #fcd34d;
  --amber-500: #f59e0b;
  --amber-800: #92400e;

  --red-500: #ef4444;
  --red-600: #dc2626;

  --line: rgba(6, 78, 59, 0.1);
  --field-border: #d4ebf2;
  --shadow-card: 0 25px 50px -12px rgba(12, 74, 110, 0.14);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Gentle type scale-up on large monitors (16px up to 1440px wide, 18px at 1920px). */
@media (min-width: 1440px) {
  html {
    font-size: clamp(100%, calc(100% + (100vw - 1440px) * 0.004167), 112.5%);
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: #f7fcfe;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Soft ambient background (fixed, sits behind everything). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 52rem 24rem at 50% -5rem, rgba(167, 243, 208, 0.42), transparent 70%),
    radial-gradient(circle 20rem at 104% 46%, rgba(167, 243, 208, 0.24), transparent 70%),
    radial-gradient(circle 22rem at -4% 78%, rgba(254, 243, 199, 0.4), transparent 70%),
    linear-gradient(180deg, #f3fafc 0%, #f7fcfe 50%, #eaf5f8 100%);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: var(--green-700);
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid rgba(5, 150, 105, 0.45);
  outline-offset: 2px;
}

/* 3. Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: 77.5em;
  margin-inline: auto;
  padding-inline: 1em;
}

@media (min-width: 640px) {
  .container {
    padding-inline: 1.5em;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-inline: 2em;
  }
}

/* The "fold" is the first screen: header + the active step.
   On desktop it fills the viewport so the entry form is the only thing above the fold,
   and everything inside is sized in em so it scales up smoothly on large monitors
   (1em = 16px on laptops, about 24px on a 1920x1080 display). */
.fold {
  position: relative;
  font-size: 1rem;
}

@media (min-width: 1024px) {
  .fold {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    font-size: clamp(1rem, min(1.25vw, 2.55vh), 1.5rem);
  }
}

/* 4. Header
   ========================================================================== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1em;
  padding-block: 1em;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  flex: none;
  transition: opacity 0.2s;
}

.brand:hover {
  opacity: 0.9;
}

.brand img {
  height: 2.75em;
  width: auto;
}

.live-pill {
  display: none;
  align-items: center;
  gap: 0.67em;
  padding: 0.5em 1.33em;
  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--green-800);
  background: rgba(236, 253, 245, 0.85);
  border: 1px solid rgba(5, 150, 105, 0.2);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.live-pill__dot {
  position: relative;
  flex: none;
  width: 0.83em;
  height: 0.83em;
  border-radius: 50%;
  background: var(--green-600);
}

.live-pill__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #34d399;
  opacity: 0.75;
  animation: ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.live-pill__extra {
  display: none;
}

@media (min-width: 640px) {
  .site-header {
    justify-content: space-between;
    padding-block: 1.25em;
  }

  .brand img {
    height: 3.25em;
  }

  .live-pill {
    display: inline-flex;
  }
}

@media (min-width: 900px) {
  .live-pill__extra {
    display: inline;
  }
}

@media (min-width: 1024px) {
  .brand img {
    height: 3.75em;
  }
}

/* 5. Hero / Step 1
   ========================================================================== */
.hero {
  padding-block: 1.5em 2.25em;
}

@media (min-width: 1024px) {
  .hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: 1.75em 2.5em;
  }
}

/* Played when the visitor moves between steps (the first paint is not animated). */
.view.is-entering {
  animation: fadeUp 0.35s var(--ease-out) both;
}

.hero__copy {
  max-width: 48em;
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.67em;
  margin-bottom: 1em;
  padding: 0.33em 1.17em;
  font-size: 0.75em;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-800);
  background: var(--amber-50);
  border: 1px solid rgba(252, 211, 77, 0.8);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.eyebrow svg {
  width: 1.17em;
  height: 1.17em;
  color: var(--amber-500);
}

.hero__title {
  font-size: 1.875em;
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.hero__title em {
  font-style: normal;
  color: var(--green-600);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero__title em {
    background: linear-gradient(90deg, var(--green-600), var(--teal-600));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

.hero__lead {
  max-width: 37.4em;
  margin: 0.75em auto 0;
  font-size: 0.875em;
  font-weight: 500;
  line-height: 1.625;
  color: var(--text);
}

.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  margin: 1.25em 0 0;
  padding: 0;
  list-style: none;
}

.step {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.33em 0.5em;
  font-size: 0.75em;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  color: var(--slate-500);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--slate-200);
  border-radius: 999px;
}

.step__num {
  display: grid;
  place-items: center;
  width: 1.6em;
  height: 1.6em;
  font-size: 0.83em;
  border-radius: 50%;
  background: var(--slate-100);
}

/* On phones only the current step shows its label, so the row never wraps. */
.step__label {
  display: none;
}

.step.is-current {
  padding-inline: 1em;
  color: #fff;
  background: var(--green-600);
  border-color: var(--green-600);
  box-shadow: 0 1px 3px rgba(5, 150, 105, 0.35);
}

.step.is-current .step__num {
  background: rgba(255, 255, 255, 0.2);
}

.step.is-current .step__label {
  display: inline;
}

.steps__sep {
  font-size: 0.75em;
  color: var(--slate-300);
}

@media (min-width: 600px) {
  .step {
    padding-inline: 1em;
  }

  .step__label {
    display: inline;
  }
}

@media (min-width: 640px) {
  .hero__title {
    font-size: 2.25em;
  }

  .hero__lead {
    font-size: 1em;
  }

  .steps {
    margin-top: 1.5em;
  }
}

@media (min-width: 1024px) {
  .hero__title {
    font-size: 3.25em;
    line-height: 1.15;
  }

  .hero__lead {
    font-size: 1.125em;
  }
}

/* Entry form bar */
.entry {
  max-width: 64em;
  margin: 1.5em auto 0;
}

.entry__bar {
  padding: 1em;
  border: 2px solid transparent;
  border-radius: 1.25em;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(120deg, #34d399 0%, #a7f3d0 42%, #fcd34d 100%) border-box;
  box-shadow:
    0 0 0 0.4em rgba(16, 185, 129, 0.08),
    0 1.6em 3.5em -0.9em rgba(15, 60, 65, 0.22),
    0 0.3em 1em -0.15em rgba(15, 60, 65, 0.06);
}

.entry__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625em;
  align-items: start;
}

.entry__grid .field--email {
  grid-column: 1 / -1;
}

.entry__grid .btn {
  width: 100%;
}

@media (min-width: 640px) {
  .entry__bar {
    padding: 1.25em;
  }

  .entry__grid {
    gap: 0.75em;
  }

  .entry__grid .field--email {
    grid-column: auto;
  }

  .entry__grid .entry__action {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .entry {
    margin-top: 2em;
  }

  .entry__bar {
    padding: 1em 1.25em;
  }

  .entry__grid {
    grid-template-columns: 1fr 1fr 1.35fr 0.9fr auto;
  }

  .entry__grid .entry__action {
    grid-column: auto;
  }
}

.consent {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
  margin-top: 1em;
  padding-top: 1em;
  font-size: 0.75em;
  color: var(--muted);
  border-top: 1px solid var(--slate-100);
}

.consent__check {
  display: flex;
  align-items: center;
  gap: 0.67em;
  text-align: left;
  cursor: pointer;
}

.consent__check input {
  flex: none;
  width: 1.33em;
  height: 1.33em;
  margin: 0;
  accent-color: var(--green-600);
  cursor: pointer;
}

.consent a {
  font-weight: 700;
  color: var(--green-700);
}

.consent a:hover {
  color: var(--green-900);
}

.consent__note {
  font-size: 0.917em;
  color: var(--slate-400);
}

@media (min-width: 640px) {
  .consent {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Small "more below" cue pinned to the bottom of the first screen (desktop only). */
.scroll-cue {
  display: none;
}

@media (min-width: 1024px) and (min-height: 620px) {
  .scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 0.9em;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-size: 0.72em;
    font-weight: 600;
    color: var(--slate-400);
    text-decoration: none;
    transition: color 0.2s;
  }

  .scroll-cue:hover {
    color: var(--green-700);
  }

  .scroll-cue svg {
    width: 1.1em;
    height: 1.1em;
  }
}

/* 6. Form controls & buttons
   Sized in em so they follow the font-size of whatever contains them.
   ========================================================================== */
.field {
  position: relative;
  min-width: 0;
}

.field__icon {
  position: absolute;
  left: 0.875em;
  top: 1.625em;
  width: 1.25em;
  height: 1.25em;
  transform: translateY(-50%);
  color: rgba(5, 150, 105, 0.7);
  pointer-events: none;
}

.input {
  display: block;
  width: 100%;
  height: 3.25em;
  padding: 0 0.9em;
  font-family: var(--font-body);
  font-size: 1em;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  background-color: #fff;
  border: 1.5px solid var(--field-border);
  border-radius: 0.85em;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.field--icon .input {
  padding-left: 2.625em;
}

.input::placeholder {
  color: #9cb5b9;
  font-weight: 500;
  opacity: 1;
}

.input:hover {
  border-color: #7dd3fc;
}

.input:focus {
  border-color: var(--green-600);
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.15);
}

.input.is-invalid {
  border-color: var(--red-500);
  background-color: #fef2f2;
}

.input.is-invalid:focus {
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

select.input {
  padding-right: 2.5em;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2352797e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85em center;
  background-size: 1.1em;
}

select.input:invalid {
  color: #9cb5b9;
  font-weight: 500;
}

input[type="date"].input {
  min-width: 0;
}

.field__error {
  margin-top: 0.4em;
  font-size: 0.75em;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  color: var(--red-600);
}

.form-error {
  margin-top: 0.75em;
  font-size: 0.75em;
  font-weight: 700;
  text-align: center;
  color: var(--red-600);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  height: 3.095em;
  padding: 0 1.667em;
  font-family: var(--font-display);
  font-size: 1.05em;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #059669 0%, #10b981 50%, #f59e0b 100%);
  background-size: 200% 200%;
  border: 0;
  border-radius: 0.81em;
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(5, 150, 105, 0.45);
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out), background-position 0.4s ease;
}

.btn:hover {
  background-position: 100% 100%;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -5px rgba(5, 150, 105, 0.55);
}

.btn:active {
  transform: translateY(0);
}

.btn svg {
  flex: none;
  width: 1.2em;
  height: 1.2em;
}

.btn--block {
  width: 100%;
}

.btn--sm {
  height: 3.2em;
  font-size: 0.875em;
}

.btn--pulse {
  animation: pulseGlow 2.5s infinite;
}

.btn--ghost {
  color: var(--ink-2);
  background: #f0f7f9;
  border: 1.5px solid var(--field-border);
  box-shadow: none;
}

.btn--ghost:hover {
  color: var(--green-600);
  background: #e2f1f5;
  border-color: #a7d9e7;
  box-shadow: none;
  transform: none;
}

.btn.is-loading {
  opacity: 0.75;
  pointer-events: none;
}

.link-btn {
  padding: 0.25em 0.5em;
  font-size: 0.75em;
  font-weight: 700;
  color: var(--slate-500);
  text-decoration: none;
  background: none;
  border: 0;
  border-radius: 0.4em;
  cursor: pointer;
  transition: color 0.2s;
}

.link-btn:hover {
  color: var(--green-700);
}

.link-btn--quiet {
  color: var(--slate-400);
}

/* 7. Cards: Step 2, questionnaire, confirmation
   Cards reset to the root font-size so they do not grow with the hero scale.
   ========================================================================== */
.card {
  width: 100%;
  max-width: 42rem;
  margin-inline: auto;
  padding: 1.5rem;
  font-size: 1rem;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-card);
}

.card--narrow {
  max-width: 36rem;
  text-align: center;
}

@media (min-width: 640px) {
  .card {
    padding: 2.25rem;
  }

  .card--narrow {
    padding: 2.5rem;
  }
}

.card__head {
  margin-bottom: 1.5rem;
  text-align: center;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.3em 1.1em;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--green-700);
  background: var(--green-50);
  border-radius: 999px;
}

.card__title {
  margin-top: 0.5rem;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.25;
}

.card__sub {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--text-2);
}

@media (min-width: 640px) {
  .card__title {
    font-size: 1.875rem;
  }
}

/* Step 2 form */
.form-stack {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 0.75rem;
}

/* City on its own row on phones, with State + ZIP side by side underneath. */
.form-row--3 {
  grid-template-columns: 1.4fr 1fr;
}

.form-row--3 > :first-child {
  grid-column: 1 / -1;
}

@media (min-width: 640px) {
  .form-row--2 {
    grid-template-columns: 1fr 1fr;
  }

  .form-row--3 {
    grid-template-columns: 1.5fr 1.15fr 0.8fr;
  }

  .form-row--3 > :first-child {
    grid-column: auto;
  }
}

.label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-2);
}

fieldset.choice {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

fieldset.choice legend {
  padding: 0;
}

.chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.chip {
  position: relative;
  cursor: pointer;
}

.chip input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.chip span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-2);
  background: #fff;
  border: 1.5px solid var(--field-border);
  border-radius: 0.75rem;
  transition: border-color 0.18s, background-color 0.18s, color 0.18s, box-shadow 0.18s;
}

.chip:hover span {
  border-color: #7dd3fc;
}

.chip input:checked + span {
  color: var(--green-700);
  background: var(--green-50);
  border-color: var(--green-600);
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.15);
}

.chip input:focus-visible + span {
  outline: 3px solid rgba(5, 150, 105, 0.45);
  outline-offset: 2px;
}

.chips.is-invalid .chip span {
  border-color: var(--red-500);
  background: #fef2f2;
}

.form-actions {
  padding-top: 0.5rem;
  text-align: center;
}

.form-actions .link-btn {
  margin-top: 0.75rem;
}

/* Questionnaire */
.quiz__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--ink-2);
}

.quiz__topic {
  padding: 0.3em 0.85em;
  color: var(--green-800);
  background: var(--green-100);
  border-radius: 0.375rem;
}

.progress {
  height: 0.5rem;
  margin: 0.65rem 0 1.5rem;
  overflow: hidden;
  background: var(--slate-100);
  border-radius: 999px;
}

.progress__bar {
  height: 100%;
  width: 5%;
  background: linear-gradient(90deg, var(--green-500), var(--amber-500));
  border-radius: inherit;
  transition: width 0.3s ease;
}

.quiz__head {
  margin-bottom: 1.5rem;
  text-align: center;
}

.quiz__lede {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-800);
}

.quiz__question {
  margin-top: 0.4rem;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.375;
}

.quiz__hint {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--slate-500);
}

@media (min-width: 640px) {
  .quiz__question {
    font-size: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .quiz__question {
    font-size: 1.65rem;
  }
}

.options {
  display: grid;
  gap: 0.75rem;
}

.options.is-swapping {
  animation: fadeUp 0.28s var(--ease-out) both;
}

.option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1.1rem 1.4rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid #d8ebf1;
  border-radius: 1rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(15, 60, 65, 0.04);
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease-out);
}

.option__dot {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  color: transparent;
  border: 2px solid var(--slate-300);
  border-radius: 50%;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.option__dot svg {
  width: 0.85rem;
  height: 0.85rem;
}

.option__label {
  flex: 1;
}

.option__arrow {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--slate-400);
  opacity: 0.6;
  transition: transform 0.2s var(--ease-out), color 0.2s, opacity 0.2s;
}

.option:hover {
  background: #f0fdf4;
  border-color: var(--green-600);
  transform: translateX(4px);
  box-shadow: 0 8px 20px -4px rgba(5, 150, 105, 0.16);
}

.option:hover .option__dot {
  border-color: var(--green-600);
}

.option:hover .option__arrow {
  color: var(--green-600);
  opacity: 1;
  transform: translateX(3px);
}

.option:focus-visible {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.25);
}

.option.is-selected {
  background: var(--green-50);
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.22);
}

.option.is-selected .option__dot {
  color: #fff;
  background: var(--green-600);
  border-color: var(--green-600);
}

.quiz__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--slate-100);
}

.nav-btn {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  color: var(--ink-2);
  background: #fff;
  border: 1.5px solid var(--field-border);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 60, 65, 0.08);
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.nav-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.nav-btn:hover:not(:disabled) {
  color: #fff;
  background: var(--green-600);
  border-color: var(--green-600);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.3);
}

.nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.quiz__back {
  margin-top: 1rem;
  text-align: center;
}

/* Confirmation */
.done__icon {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  color: var(--green-600);
  background: var(--green-100);
  border-radius: 1rem;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.done__icon svg {
  width: 2.5rem;
  height: 2.5rem;
}

.done__text {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-2);
}

.done__box {
  margin: 1.25rem 0;
  padding: 1rem;
  background: rgba(236, 253, 245, 0.7);
  border: 2px dashed var(--green-300);
  border-radius: 1rem;
}

.done__box-label {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-800);
}

.done__code {
  margin-top: 0.25rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--green-700);
}

.done__summary {
  margin-top: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(6, 78, 59, 0.8);
}

.done__note {
  font-size: 0.75rem;
  line-height: 1.625;
  color: var(--slate-500);
}

.done__actions {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .done__icon {
    width: 5rem;
    height: 5rem;
  }

  .done__icon svg {
    width: 3rem;
    height: 3rem;
  }

  .done__text {
    font-size: 1rem;
  }

  .done__code {
    font-size: 1.875rem;
  }

  .done__actions {
    flex-direction: row;
    justify-content: center;
  }
}

/* 8. Content sections below the fold
   ========================================================================== */
.content {
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

@media (min-width: 1024px) {
  .content {
    padding-top: 3.5rem;
  }
}

.section-head {
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.25;
}

.section-head p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--text);
}

@media (min-width: 640px) {
  .section-head h2 {
    font-size: 1.875rem;
  }

  .section-head p {
    font-size: 1rem;
  }
}

.features {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .features {
    grid-template-columns: 1fr 1fr;
  }

  .features .feature:last-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }

  .features .feature:last-child {
    grid-column: auto;
  }
}

.feature {
  padding: 1.5rem;
  background: #fff;
  border: 1.5px solid #e2f0f4;
  border-radius: 1.25rem;
  box-shadow: 0 6px 20px -4px rgba(15, 60, 65, 0.06);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: #86efac;
  box-shadow: 0 14px 30px -6px rgba(5, 150, 105, 0.15);
}

.feature__icon {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  color: var(--green-600);
  background: linear-gradient(135deg, var(--green-50), var(--green-100));
  border-radius: 0.9rem;
  transition: background 0.2s, color 0.2s;
}

.feature__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.feature:hover .feature__icon {
  color: #fff;
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
}

.feature h3 {
  font-size: 1.125rem;
  font-weight: 900;
}

.feature p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--text-2);
}

.how {
  margin-top: 3rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.how__head {
  text-align: center;
}

.how__head h2 {
  font-size: 1.25rem;
  font-weight: 900;
}

.how__head p {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--text-2);
}

.how__grid {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.how__step {
  text-align: center;
}

.how__num {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-inline: auto;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 900;
  color: var(--green-800);
  background: var(--green-100);
  border-radius: 1rem;
}

.how__step:last-child .how__num {
  color: var(--amber-800);
  background: var(--amber-100);
}

.how__step h3 {
  margin-top: 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
}

.how__step p {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted);
}

@media (min-width: 640px) {
  .how {
    padding: 2.5rem;
  }

  .how__head h2 {
    font-size: 1.5rem;
  }

  .how__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .how__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.faq {
  max-width: 48rem;
  margin: 3rem auto 0;
}

.faq__head {
  margin-bottom: 1.5rem;
  text-align: center;
}

.faq__head h2 {
  font-size: 1.5rem;
  font-weight: 900;
}

.faq__head p {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--slate-500);
}

.faq__item {
  margin-bottom: 0.75rem;
  background: #fff;
  border: 1.5px solid #d8ebf1;
  border-radius: 1rem;
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq__item:hover,
.faq__item[open] {
  border-color: #86efac;
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
  cursor: pointer;
  transition: color 0.2s;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary:hover {
  color: var(--green-600);
}

.faq__item summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  color: var(--green-600);
  transition: transform 0.2s;
}

.faq__item[open] summary::after {
  transform: rotate(45deg);
}

.faq__body {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #3f666c;
}

.notice {
  margin-top: 3rem;
  padding: 1.25rem;
  font-size: 0.75rem;
  line-height: 1.625;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 1rem;
}

.notice h2 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
}

.notice p {
  margin-top: 0.25rem;
}

.notice a {
  font-weight: 700;
}

/* 9. Footer
   ========================================================================== */
.site-footer {
  margin-top: 2.5rem;
  padding-block: 1.5rem;
  font-size: 0.75rem;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.site-footer a {
  font-weight: 700;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--green-700);
}

@media (min-width: 640px) {
  .site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .site-footer nav {
    margin-top: 0;
  }
}

/* 10. Legal pages (terms / privacy)
   ========================================================================== */
.legal-header {
  padding-block: 1rem;
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.legal-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.legal-header .brand img {
  height: 2.5rem;
}

@media (min-width: 640px) {
  .legal-header .brand img {
    height: 3rem;
  }
}

.back-link {
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--green-700);
  text-decoration: none;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--green-900);
}

.legal {
  max-width: 53.75rem;
  margin: 0 auto;
  padding: 2.5rem 1rem;
}

@media (min-width: 640px) {
  .legal {
    padding-inline: 1.5rem;
  }
}

.legal__card {
  padding: 2rem 1.5rem;
  background: #fff;
  border: 1.5px solid #e0eff4;
  border-radius: 1.5rem;
  box-shadow: 0 15px 35px -8px rgba(15, 60, 65, 0.08);
}

@media (min-width: 640px) {
  .legal__card {
    padding: 3.5rem 3rem;
  }
}

.legal__head {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  text-align: center;
  border-bottom: 1px solid var(--slate-100);
}

.legal__head h1 {
  margin-top: 0.5rem;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.2;
}

.legal__meta {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--slate-500);
}

@media (min-width: 640px) {
  .legal__head {
    text-align: left;
  }

  .legal__head h1 {
    font-size: 1.875rem;
  }
}

@media (min-width: 1024px) {
  .legal__head h1 {
    font-size: 2.25rem;
  }
}

.callout {
  margin-bottom: 2rem;
  padding: 1.25rem 1.5rem;
  font-size: 0.92rem;
  color: var(--green-800);
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 1rem;
}

.legal__body h2 {
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.35rem;
  font-size: 1.35rem;
  font-weight: 800;
  border-bottom: 1.5px solid #e5f1f5;
}

.legal__body p,
.legal__body li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #33595f;
}

.legal__body p {
  margin-bottom: 1.1rem;
}

.legal__body ul {
  margin: 0 0 1.1rem;
  padding-left: 1.5rem;
}

.legal__body li {
  margin-bottom: 0.375rem;
}

.legal__body strong {
  color: var(--ink-2);
}

.placeholder {
  padding: 0.05em 0.35em;
  font-weight: 700;
  color: var(--amber-800);
  background: var(--amber-50);
  border: 1px dashed var(--amber-300);
  border-radius: 0.35em;
}

.legal__note {
  margin-top: 2rem;
  padding: 1rem;
  font-size: 0.75rem;
  font-style: italic;
  color: var(--slate-500);
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 0.75rem;
}

.legal__foot {
  margin-top: 2rem;
  padding-top: 1.25rem;
  text-align: center;
  border-top: 1px solid var(--slate-100);
}

.legal-footer {
  margin-top: 1rem;
  padding-block: 1.5rem;
  font-size: 0.75rem;
  text-align: center;
  color: var(--slate-500);
  border-top: 1px solid var(--line);
}

.legal-footer a {
  display: inline-block;
  margin-left: 0.5rem;
  font-weight: 700;
  white-space: nowrap;
  color: inherit;
}

/* Stand-alone questionnaire page (questions.html) */
.page-quiz {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

.page-quiz main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 2rem 1rem;
}

.page-quiz main > .view {
  width: 100%;
}

/* 11. Alternate landing page (index-alt.html): background-image hero
   Add class="theme-voucher" to <body>. Swap the image by replacing
   assets/images/hero-voucher.jpg (or edit the url() below).
   ========================================================================== */
.theme-voucher .fold {
  isolation: isolate;
  color: #fff;
  background-color: #063a2a;
}

.theme-voucher .fold::before,
.theme-voucher .fold::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.theme-voucher .fold::before {
  z-index: -2;
  background: url("../assets/images/hero-voucher.jpg") center 58% / cover no-repeat;
}

.theme-voucher .fold::after {
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 62% at 50% 46%, rgba(4, 47, 34, 0.9) 0%, rgba(4, 47, 34, 0.72) 55%, rgba(4, 47, 34, 0.5) 100%),
    linear-gradient(180deg, rgba(3, 38, 28, 0.82) 0%, rgba(3, 38, 28, 0.25) 30%, rgba(3, 38, 28, 0.35) 70%, rgba(3, 38, 28, 0.85) 100%);
}

.theme-voucher .site-header {
  border-bottom-color: rgba(255, 255, 255, 0.16);
}

.theme-voucher .live-pill {
  color: #d1fae5;
  background: rgba(6, 78, 59, 0.55);
  border-color: rgba(110, 231, 183, 0.35);
}

.theme-voucher .live-pill__dot {
  background: #34d399;
}

.theme-voucher .eyebrow {
  color: #fde68a;
  background: rgba(120, 83, 9, 0.35);
  border-color: rgba(252, 211, 77, 0.55);
}

.theme-voucher .eyebrow svg {
  color: var(--amber-300);
}

.theme-voucher .hero__title {
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.theme-voucher .hero__title em {
  background: linear-gradient(90deg, #fde68a, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #fcd34d;
}

.theme-voucher .hero__lead {
  color: #d7efe6;
}

.theme-voucher .step {
  color: #d1fae5;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}

.theme-voucher .step__num {
  background: rgba(255, 255, 255, 0.16);
}

.theme-voucher .step.is-current {
  color: #063a2a;
  background: #fcd34d;
  border-color: #fcd34d;
  box-shadow: none;
}

.theme-voucher .step.is-current .step__num {
  background: rgba(6, 58, 42, 0.14);
}

.theme-voucher .steps__sep {
  color: rgba(255, 255, 255, 0.4);
}

.theme-voucher .entry__bar {
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(120deg, #fde68a 0%, #fbbf24 50%, #34d399 100%) border-box;
  box-shadow:
    0 0 0 0.4em rgba(252, 211, 77, 0.16),
    0 1.8em 4em -0.9em rgba(0, 0, 0, 0.55);
}

.theme-voucher .scroll-cue {
  color: rgba(255, 255, 255, 0.6);
}

.theme-voucher .scroll-cue:hover {
  color: #fff;
}

.theme-voucher .content {
  border-top: 0;
}

/* 12. Utilities & motion
   ========================================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 10px 25px -5px rgba(5, 150, 105, 0.45), 0 0 0 0 rgba(5, 150, 105, 0.4);
  }

  50% {
    box-shadow: 0 10px 25px -5px rgba(5, 150, 105, 0.45), 0 0 0 12px rgba(5, 150, 105, 0);
  }
}

@keyframes ping {
  75%,
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

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