/* Landing page. Mobile first; colours come only from tokens.css. */

.landing { padding-bottom: 5rem; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; min-height: 3.5rem; }
.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--primary-dark);
  text-decoration: none;
}

/* Opening section */
.hero { background: var(--primary-tint); padding: 2rem 0 2.25rem; }
.hero h1 { font-size: 1.625rem; line-height: 1.6; font-weight: 700; color: var(--ink); }
.hero-sub { margin: 0.875rem 0 1.5rem; font-size: 1.0625rem; }
.hero .btn { width: 100%; }
.hero .small { margin-top: 0.75rem; text-align: center; color: var(--ink); }

/* Sections */
h1, h2, h3 { text-wrap: balance; }
.section { padding: 2.25rem 0; }
.section h2 { font-size: 1.375rem; line-height: 1.6; font-weight: 700; margin-bottom: 1.25rem; }

.steps { display: grid; gap: 0.875rem; }
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-inline-start: 5px solid var(--primary);
  border-radius: 0.75rem;
  padding: 1rem 1.125rem;
}
.step h3 { font-size: 1.0625rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 0.25rem; }

.checks { display: grid; gap: 0.75rem; }
.checks li { position: relative; padding-inline-start: 2rem; }
.checks li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0.125rem;
  top: 0.55rem;
  width: 0.375rem;
  height: 0.75rem;
  border: solid var(--primary);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.note {
  margin-top: 1.25rem;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.9375rem;
}

/* Form */
.form-section { background: var(--surface); border-block: 1px solid var(--line); }
.form-card {
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.25rem 1rem;
}
.form-intro { margin-bottom: 1.25rem; color: var(--muted); }
.submit-row { margin-top: 0.5rem; }
.consent-slot { margin-bottom: 0.75rem; }
.gate-step { margin-bottom: 1.25rem; }
.form-card .small { margin-top: 0.75rem; }

/* Thank-you state */
.thanks:focus { outline: none; }
.thanks h2 { color: var(--primary-dark); }
.thanks-text { font-size: 1.0625rem; margin-bottom: 1rem; }
.notes { display: grid; gap: 0.5rem; margin-bottom: 1.5rem; }
.notes li { position: relative; padding-inline-start: 1.25rem; }
.notes li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.8rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--primary);
}
.messenger-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1rem;
}
.messenger-box h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 0.75rem; }
.messenger-buttons { display: grid; gap: 0.5rem; margin-bottom: 0.75rem; }

/* FAQ */
.faq-list { display: grid; gap: 0.625rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 0.75rem; }
.faq summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.5rem 1rem;
  padding-inline-end: 2.75rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  inset-inline-end: 1.125rem;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: -0.375rem;
  border: solid var(--primary-dark);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -0.125rem; }
.faq details p { padding: 0 1rem 1rem; }

/* Footer */
.site-footer { padding: 1.75rem 0 2rem; color: var(--muted); font-size: 0.875rem; line-height: 1.9; }
.site-footer .wrap { display: grid; gap: 0.25rem; }
.footer-brand { font-weight: 700; color: var(--ink); }

/* Sticky button, mobile only; the script hides it while the form is on screen */
.sticky-cta {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 -2px 8px color-mix(in srgb, var(--ink) 20%, transparent);
}
.sticky-cta:hover { background: var(--primary-dark); }
.sticky-cta.is-hidden { display: none; }

@media (min-width: 48rem) {
  .landing { padding-bottom: 0; }
  .sticky-cta { display: none; }
  .hero { padding: 3.5rem 0 3.75rem; }
  .hero h1 { font-size: 2.125rem; }
  .hero .btn { width: auto; min-width: 16rem; }
  .hero .small { text-align: start; }
  .section { padding: 3rem 0; }
  .how .wrap { max-width: 60rem; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .form-card { padding: 1.75rem; }
  .messenger-buttons { grid-template-columns: 1fr 1fr; }
}
