/* Brightpath Maths — January bootcamp sign-up page.
   Brand: deep blue for type and backgrounds, sunny yellow for accents and
   button fills, Lexend headings and Source Sans 3 body, generous tap targets. */

:root {
  --blue: #1e3a8a;
  --blue-deep: #14275e;
  --blue-ink: #101f4a;
  --yellow: #f5b400;
  --yellow-soft: #fff4cc;
  --paper: #ffffff;
  --mist: #f4f7ff;
  --line: #dbe3f5;
  --muted: #47547a;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 39, 94, 0.12);
  --max: 1120px;
  --font-head: 'Lexend', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--blue-ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.2;
  color: var(--blue);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(1.85rem, 6vw, 3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.4rem, 4.4vw, 2rem); }
h3 { font-size: 1.1rem; margin-bottom: 0.35em; }

p { margin: 0 0 1rem; }

a { color: var(--blue); }

[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--yellow);
  color: var(--blue-ink);
  padding: 0.75rem 1rem;
  font-weight: 600;
  z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.narrow { max-width: 720px; }

/* Header ------------------------------------------------------------------ */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: var(--blue-deep);
  color: #fff;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
}

.mark { width: 30px; height: 30px; display: block; }

.header-note {
  margin: 0;
  font-size: 0.8125rem;
  color: #c9d4f2;
  text-align: right;
}

/* Hero and offer block ---------------------------------------------------- */

.hero {
  background:
    radial-gradient(circle at 90% 0%, rgba(245, 180, 0, 0.16), transparent 55%),
    linear-gradient(170deg, var(--blue-deep), var(--blue) 70%);
  color: #fff;
  padding: 1.25rem 0 1.5rem;
}

.hero-inner {
  display: grid;
  gap: 1rem;
}

.hero-copy .eyebrow {
  color: var(--yellow);
  margin-bottom: 0.65rem;
}

.hero h1 { color: #fff; }

.tagline {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--yellow);
  margin-bottom: 0.9rem;
}

.hero-line { font-size: 1.125rem; color: #e7ecfb; max-width: 34ch; }

.hero-meta {
  margin: 0;
  color: #c9d4f2;
  font-size: 0.9375rem;
}

.offer { min-width: 0; }

.price-card {
  background: var(--paper);
  color: var(--blue-ink);
  border-radius: 18px;
  border-top: 6px solid var(--yellow);
  padding: 1.1rem 1.25rem 1.1rem;
  box-shadow: var(--shadow);
}

.price-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
  margin: 0 0 0.6rem;
}

.price-amount {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.75rem, 12vw, 3.75rem);
  line-height: 1;
  color: var(--blue);
  letter-spacing: -0.02em;
}

.price-period {
  font-weight: 600;
  color: var(--blue-ink);
  font-size: 1rem;
  max-width: 12ch;
  line-height: 1.25;
}

.price-rule {
  margin: 0 0 0.6rem;
  font-size: 0.9375rem;
  color: var(--blue-ink);
}

.price-rule strong { color: var(--blue); }

.price-places {
  margin: 0 0 0.85rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.price-small {
  margin: 0.6rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Buttons ----------------------------------------------------------------- */

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.75rem 1.4rem;
  border: 0;
  border-radius: 10px;
  background: var(--yellow);
  color: var(--blue-ink);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}

.cta:hover { background: #ffc21f; }
.cta:active { transform: translateY(1px); }

.cta--full { width: 100%; }

.cta--ghost {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}

.cta--ghost:hover { background: var(--mist); }

/* Sections ---------------------------------------------------------------- */

.section { padding: 3rem 0; }

.section.band { background: var(--mist); }

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--blue);
}

.lead {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 58ch;
}

/* Group cards ------------------------------------------------------------- */

.group-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.group-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.group-card .grade {
  margin: 0;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}

.group-card h3 { margin: 0; }

.code {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--blue);
  background: var(--mist);
  border-radius: 6px;
  padding: 0.1rem 0.4rem;
  vertical-align: middle;
}

.places { margin: 0; font-size: 1rem; }
.places strong { font-family: var(--font-head); font-size: 1.25rem; color: var(--blue); }
.places--full { color: #a12c2c; font-weight: 600; }

.dots { display: flex; gap: 6px; margin: 0; }

.dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  background: transparent;
}

.dot--taken { background: var(--blue); }

.group-when {
  margin: 0.25rem 0 0.75rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.choose-group {
  margin-top: auto;
  align-self: flex-start;
  min-height: 48px;
  padding: 0.6rem 1.1rem;
  border-radius: 10px;
  border: 2px solid var(--blue);
  background: var(--paper);
  color: var(--blue);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  cursor: pointer;
}

.choose-group:hover { background: var(--mist); }

.choose-group--waitlist { border-style: dashed; }

/* Steps ------------------------------------------------------------------- */

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 1.25rem;
}

.steps li {
  counter-increment: step;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem 1.15rem 3.5rem;
  position: relative;
  border: 1px solid var(--line);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.1rem;
  top: 1.1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--blue-ink);
  font-family: var(--font-head);
  font-weight: 700;
  display: grid;
  place-items: center;
}

.steps p { margin: 0; color: var(--muted); }

/* Form -------------------------------------------------------------------- */

.register-form {
  margin-top: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.field { margin-bottom: 1rem; }

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--blue-ink);
}

.field .optional { font-weight: 400; color: var(--muted); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.75rem;
  font-family: inherit;
  font-size: 1.0625rem;
  color: var(--blue-ink);
  background: var(--paper);
  border: 1.5px solid #b9c5e4;
  border-radius: 10px;
}

.field input[aria-invalid='true'],
.field select[aria-invalid='true'] {
  border-color: #b42318;
  background: #fff7f6;
}

.field-error {
  color: #b42318;
  font-size: 0.875rem;
  margin: 0.3rem 0 0;
}

.field-error:empty { display: none; }

.summary {
  background: var(--yellow-soft);
  border-left: 5px solid var(--yellow);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-size: 0.9375rem;
  margin: 1.25rem 0 1rem;
}

.summary strong { color: var(--blue); }

.form-note {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Confirmation ------------------------------------------------------------ */

.confirm {
  margin-top: 1.5rem;
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  background: var(--mist);
}

.confirm .eyebrow { color: var(--blue); }

.confirm-price {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--blue);
}

.confirm-price strong { font-family: var(--font-head); font-size: 1.5rem; }

.confirm-crossing {
  background: var(--yellow-soft);
  border-left: 5px solid var(--yellow);
  border-radius: 8px;
  padding: 0.8rem 0.9rem;
  font-weight: 600;
}

.confirm-time {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0;
}

/* Waitlist ---------------------------------------------------------------- */

.waitlist { background: var(--yellow-soft); }

.waitlist-form {
  margin-top: 1.25rem;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid var(--line);
}

.waitlist-form .field,
.waitlist-form label { margin-bottom: 1rem; }

.waitlist-form label { display: block; font-weight: 600; }

.waitlist-form input,
.waitlist-form select {
  width: 100%;
  min-height: 48px;
  margin-top: 0.3rem;
  padding: 0.65rem 0.75rem;
  font-family: inherit;
  font-size: 1.0625rem;
  border: 1.5px solid #b9c5e4;
  border-radius: 10px;
}

/* FAQ --------------------------------------------------------------------- */

details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.75rem;
}

summary {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
}

details[open] summary { margin-bottom: 0.6rem; }

details p { margin: 0; color: var(--muted); }

/* Share block and footer -------------------------------------------------- */

.share { text-align: left; }

.micro {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 1rem;
}

.site-footer {
  background: var(--blue-deep);
  color: #c9d4f2;
  padding: 1.75rem 0;
  font-size: 0.9375rem;
}

.site-footer p { margin: 0; }
.site-footer p + p { margin-top: 0.35rem; }

/* Larger screens ---------------------------------------------------------- */

@media (min-width: 880px) {
  .hero { padding: 3.5rem 0 4rem; }

  .hero-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
    align-items: center;
    gap: 3rem;
  }

  .price-card { padding: 1.75rem 1.75rem 1.9rem; }

  .section { padding: 4.5rem 0; }

  .group-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }

  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .register-form { padding: 1.75rem; }

  .confirm { padding: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta { transition: none; }
}
