/* Badger landing — denim blues, Poppins, mobile-first, light + dark */

/* Brand palette: Denim Blue #4A73A8 · Charcoal #1D1D1F · Off-White #F7F7F5 */
:root {
  --denim-900: #1f3350;
  --denim-800: #2c4668;
  --denim-700: #3a5c88;
  --denim-600: #4a73a8;
  --denim-500: #5b82b4;
  --denim-400: #7d9fce;
  --denim-100: #dbe4f0;
  --denim-50:  #eef2f8;
  --charcoal:  #1d1d1f;
  --offwhite:  #f7f7f5;

  --bg: var(--offwhite);
  --bg-alt: var(--denim-50);
  --surface: #ffffff;
  --ink: var(--charcoal);
  --ink-soft: #4a5560;
  --brand: var(--denim-600);
  --brand-strong: var(--denim-700);
  --border: #d9dee6;
  --hero-grad-a: var(--denim-800);
  --hero-grad-b: var(--denim-600);
  --hero-ink: var(--offwhite);
  --hero-ink-soft: #d5e0ee;
  --focus: var(--charcoal);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141416;
    --bg-alt: #1b1c20;
    --surface: #232429;
    --ink: var(--offwhite);
    --ink-soft: #b4bac4;
    --brand: var(--denim-400);
    --brand-strong: #9db8dd;
    --border: #35373e;
    --hero-grad-a: #1a2434;
    --hero-grad-b: #33517c;
    --focus: var(--offwhite);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.container.narrow { max-width: 46rem; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.75em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 700; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-strong); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}
/* on denim sections a light outline is the visible one */
.hero :focus-visible,
.cta2 :focus-visible { outline-color: var(--offwhite); }

/* ── Hero ── */
.hero {
  background: linear-gradient(150deg, var(--hero-grad-a), var(--hero-grad-b));
  color: var(--hero-ink);
  padding: 3rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
}
.brand-icon { width: 2.3rem; height: auto; flex: none; }
.brand-name {
  font-weight: 600; /* Poppins SemiBold — primary typeface */
  font-size: 1.5rem;
  color: var(--hero-ink);
}
.tagline {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--hero-ink-soft);
  margin-bottom: 2.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.15rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.subhead {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--hero-ink-soft);
  max-width: 34em;
  margin-bottom: 2rem;
}

.hero-mascot { text-align: center; }
.hero-mascot img {
  width: min(82%, 330px);
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(6, 15, 30, 0.35));
}

/* ── Signup form (custom-styled, no MailerLite widget CSS) ── */
.signup {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 30rem;
}

.field { display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }

.signup label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.signup input[type="email"] {
  font: inherit;
  padding: 0.8rem 1rem;
  border-radius: 0.65rem;
  border: 2px solid transparent;
  background: #ffffff;
  color: #16283f;
  width: 100%;
}
.signup input[type="email"]::placeholder { color: #626c78; }

.signup button {
  font: inherit;
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border: 0;
  border-radius: 0.65rem;
  background: var(--offwhite);
  color: var(--denim-800);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  white-space: nowrap;
}
.signup button:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); }
.signup button:active { transform: translateY(0); }

.reassure {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--hero-ink-soft);
}

/* ── Problem ── */
.problem { padding: 4rem 0; }
.problem p { font-size: 1.05rem; color: var(--ink-soft); }

/* ── Benefit tiles ── */
.benefits { background: var(--bg-alt); padding: 4rem 0; }
.benefits h2 { text-align: center; margin-bottom: 2rem; }

.tiles { display: grid; gap: 1.25rem; }

.tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 4px 16px rgba(18, 35, 61, 0.06);
}
.tile-icon { font-size: 1.9rem; margin-bottom: 0.75rem; }
.tile h3 { font-size: 1.1rem; font-weight: 700; color: var(--brand-strong); }
.tile p { color: var(--ink-soft); font-size: 0.95rem; }

/* ── Founder line ── */
.founder { padding: 3.5rem 0; text-align: center; }
.founder p {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  font-weight: 500;
  font-style: italic;
  color: var(--ink-soft);
  max-width: 36em;
  margin: 0 auto;
}

/* ── FAQ ── */
.faq { background: var(--bg-alt); padding: 4rem 0; }
.faq h2 { text-align: center; margin-bottom: 2rem; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-q { margin: 0; }

.faq-q button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1rem 1.25rem;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
}
.faq-q button:focus-visible {
  outline-offset: -3px;
  border-radius: 0.85rem;
}

.faq-marker {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--denim-100);
  position: relative;
}
@media (prefers-color-scheme: dark) {
  .faq-marker { background: var(--denim-700); }
}
.faq-marker::before,
.faq-marker::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 0.65rem; height: 2px;
  background: var(--brand-strong);
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease;
}
.faq-marker::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-q button[aria-expanded="true"] .faq-marker::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq-a p {
  padding: 0 1.25rem 1.25rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ── Second CTA ── */
.cta2 {
  background: linear-gradient(150deg, var(--hero-grad-a), var(--hero-grad-b));
  color: var(--hero-ink);
  padding: 4rem 0;
  text-align: center;
}
.cta2 p { color: var(--hero-ink-soft); max-width: 34em; margin: 0 auto 2rem; }
.cta2 .signup { margin: 0 auto; text-align: left; }

/* ── Footer ── */
footer {
  padding: 2.5rem 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
}
footer p { margin-bottom: 0.4em; }

/* ── ≥640px: inline forms, 3-across tiles ── */
@media (min-width: 640px) {
  .signup { flex-direction: row; align-items: flex-end; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
}

/* ── ≥820px: two-column hero ── */
@media (min-width: 820px) {
  .hero { padding: 4rem 0 4.5rem; }
  .hero-grid { grid-template-columns: 1.35fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
