:root {
  --navy: #071f46;
  --navy-deep: #031735;
  --blue: #174a73;
  --blue-mid: #245f8e;
  --blue-soft: #dfeff8;
  --gold: #fab604;
  --ink: #162433;
  --muted: #526274;
  --border: #cbd8e4;
  --background: #f4f7fb;
  --surface: #ffffff;
  --green: #24613e;
  --shadow: 0 18px 50px rgba(22, 36, 51, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background: rgba(244, 247, 251, 0.95);
  border-bottom: 1px solid rgba(203, 216, 228, 0.9);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}

.header-inner,
.page,
.footer-inner {
  width: min(1100px, calc(100% - 36px));
  margin: 0 auto;
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  object-fit: cover;
  flex: 0 0 auto;
}

.brand-name {
  font-weight: 850;
  letter-spacing: -0.02em;
}

.brand-tagline {
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 700;
}

.site-nav {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.site-nav a[aria-current="page"] { color: var(--blue); }

.page {
  flex: 1;
  padding: 64px 0 78px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(290px, 0.85fr);
  gap: 34px;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.card,
.form-card,
.note {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-copy {
  border-radius: 30px;
  padding: clamp(30px, 5vw, 58px);
  position: relative;
  overflow: hidden;
}

.hero-copy::after {
  content: "₦?";
  position: absolute;
  right: -12px;
  bottom: -50px;
  font-size: clamp(7rem, 18vw, 13rem);
  line-height: 1;
  font-weight: 900;
  color: rgba(7, 31, 70, 0.045);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.84rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.14;
  letter-spacing: -0.035em;
  color: var(--navy-deep);
}

h1 {
  margin: 20px 0 16px;
  font-size: clamp(2.5rem, 7vw, 5rem);
  max-width: 850px;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 4vw, 2.45rem);
}

h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.lead {
  font-size: clamp(1.08rem, 2vw, 1.24rem);
  color: var(--muted);
  max-width: 760px;
  margin: 0;
}

.hero-panel {
  border-radius: 30px;
  padding: 32px;
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-panel h2,
.hero-panel h3 { color: #fff; }

.hero-panel p { color: rgba(255, 255, 255, 0.8); }

.hero-panel .mini-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.mini-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.mini-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(250, 182, 4, 0.16);
  color: var(--gold);
  flex: 0 0 auto;
  font-weight: 900;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  position: relative;
  z-index: 1;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 850;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(22, 36, 51, 0.12);
}

.button-primary {
  background: var(--navy);
  color: #fff;
}

.button-gold {
  background: var(--gold);
  color: var(--navy-deep);
}

.button-secondary {
  background: #fff;
  color: var(--navy);
  border-color: var(--border);
}

.section {
  margin-top: 54px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 22px;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.card {
  border-radius: 24px;
  padding: 28px;
}

.card p { color: var(--muted); }

.card .kicker {
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}

.card ul,
.form-card ul {
  padding-left: 21px;
  margin: 16px 0 0;
}

.card li,
.form-card li { margin: 8px 0; }

.ways-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.way {
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.75);
  padding: 22px;
}

.way-number {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 900;
  margin-bottom: 14px;
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 26px;
  align-items: start;
}

.form-card {
  border-radius: 28px;
  padding: clamp(28px, 5vw, 44px);
}

.form-card p { color: var(--muted); }

.prompt-list {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
  margin: 22px 0 0;
}

.prompt-list li {
  border-left: 3px solid var(--blue-soft);
  padding: 3px 0 3px 14px;
  color: var(--muted);
}

.note {
  border-radius: 22px;
  padding: 24px;
  box-shadow: none;
  position: sticky;
  top: 98px;
}

.note p { color: var(--muted); }

.status {
  margin-top: 16px;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff8df;
  color: #6b5100;
  font-size: 0.92rem;
  display: none;
}

.status.visible { display: block; }

.small {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #fff;
}

.footer-inner {
  padding: 28px 0 34px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 820px) {
  .hero,
  .form-layout { grid-template-columns: 1fr; }

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

  .note { position: static; }
}

@media (max-width: 640px) {
  .header-inner {
    align-items: flex-start;
    padding: 14px 0;
  }

  .brand-tagline { display: none; }

  .site-nav {
    gap: 12px;
    font-size: 0.92rem;
  }

  .page {
    width: min(100% - 24px, 1100px);
    padding-top: 34px;
  }

  .hero-copy,
  .hero-panel,
  .form-card { border-radius: 22px; }

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

  .actions { flex-direction: column; }

  .button { width: 100%; }
}

/* First-party Community forms */
.form-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}

.native-form {
  margin-top: 34px;
  display: grid;
  gap: 22px;
}

.field {
  display: grid;
  gap: 8px;
}

.field > label,
.fieldset > legend {
  color: var(--navy-deep);
  font-weight: 800;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 12px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea {
  resize: vertical;
  min-height: 96px;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(36, 95, 142, 0.13);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #a52828;
}

.field-help,
.field-error {
  margin: 0;
  font-size: 0.9rem;
}

.field-help { color: var(--muted); }
.field-error { color: #8a1f1f; font-weight: 700; min-height: 0; }
.field-error:empty { display: none; }
.required { color: #8a1f1f; }

.fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

.fieldset legend {
  padding: 0;
  margin-bottom: 10px;
}

.choice-grid {
  display: grid;
  gap: 10px;
}

.choice-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  background: #fff;
}

.choice-card:has(input:checked) {
  border-color: var(--blue-mid);
  background: #f1f8fc;
  box-shadow: 0 0 0 2px rgba(36, 95, 142, 0.08);
}

.choice-card input {
  margin-top: 5px;
  accent-color: var(--blue);
}

.choice-card span { display: grid; gap: 3px; }
.choice-card small { color: var(--muted); line-height: 1.45; }

.conditional-field[hidden] { display: none; }

.consent-field {
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.consent-choice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  cursor: pointer;
}

.consent-choice input {
  margin-top: 5px;
  accent-color: var(--blue);
}

.form-message {
  display: none;
  border-radius: 14px;
  padding: 13px 15px;
  font-weight: 700;
}

.form-message.success {
  display: block;
  background: #eaf6ee;
  color: var(--green);
  border: 1px solid #b9ddc4;
}

.form-message.error {
  display: block;
  background: #fff0f0;
  color: #7f1d1d;
  border: 1px solid #e9b9b9;
}

.form-actions { margin-top: 0; }
.form-actions button { cursor: pointer; font: inherit; }
.form-actions button:disabled { opacity: 0.64; cursor: wait; transform: none; box-shadow: none; }
.form-privacy { margin: -4px 0 0; }

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

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

.optional-label {
  color: var(--muted);
  font-weight: 650;
}

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

.feedback-prompt-list {
  margin-top: 12px;
}

@media (max-width: 640px) {
  .compact-choice-grid { grid-template-columns: 1fr; }
}

/* Community Stage 4.3 - calmer, more mature landing-page hierarchy */
.community-page .site-header {
  position: relative;
  top: auto;
  background: var(--background);
  backdrop-filter: none;
}

.community-page .community-main {
  padding-top: 46px;
  padding-bottom: 64px;
}

.community-page .community-hero {
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
  gap: 24px;
  align-items: stretch;
}

.community-page .community-hero-copy {
  border-radius: 24px;
  padding: clamp(34px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 360px;
}

.community-page .community-hero-copy::after {
  display: none;
}

.community-page .community-hero h1 {
  margin: 0 0 18px;
  max-width: 640px;
  font-size: clamp(2.65rem, 5vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.community-page .community-hero .lead {
  max-width: 620px;
  font-size: clamp(1.05rem, 1.7vw, 1.18rem);
  line-height: 1.65;
}

.community-page .hero-side {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
}

.community-page .community-note,
.community-page .participation-card {
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(22, 36, 51, 0.08);
}

.community-page .community-note {
  padding: 28px;
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.community-page .community-note h2 {
  margin: 8px 0 10px;
  color: #fff;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.community-page .community-note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  line-height: 1.6;
}

.community-page .kicker-light {
  color: #fff;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.community-page .participation-card {
  background: var(--surface);
  padding: 24px 26px;
}

.community-page .participation-card > h2 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.community-page .participation-list {
  display: grid;
}

.community-page .participation-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 13px;
  align-items: start;
  padding: 15px 0;
  border-top: 1px solid var(--border);
}

.community-page .participation-item:first-child {
  border-top: 0;
}

.community-page .participation-number {
  width: 36px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
}

.community-page .participation-item h3 {
  margin: 0 0 3px;
  font-size: 1.02rem;
  letter-spacing: -0.015em;
}

.community-page .participation-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.community-page .section {
  margin-top: 58px;
}

.community-page .compact-heading {
  margin-bottom: 16px;
}

.community-page .section-heading h2 {
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  letter-spacing: -0.035em;
}

.community-page .action-card-grid {
  gap: 18px;
}

.community-page .action-card {
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 10px 28px rgba(22, 36, 51, 0.07);
}

.community-page .action-card h3 {
  font-size: 1.35rem;
}

.community-page .action-card p {
  margin: 0;
  max-width: 520px;
  line-height: 1.6;
}

.community-page .action-card .actions {
  margin-top: 22px;
}

.community-page .why-heading {
  max-width: 720px;
  margin-bottom: 20px;
}

.community-page .why-grid {
  gap: 16px;
}

.community-page .why-card {
  border-radius: 18px;
  padding: 22px;
  background: var(--surface);
}

.community-page .why-card .way-number {
  margin-bottom: 12px;
}

.community-page .why-card h3 {
  margin-bottom: 8px;
  font-size: 1.16rem;
}

.community-page .why-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .community-page .community-hero {
    grid-template-columns: 1fr;
  }

  .community-page .community-hero-copy {
    min-height: auto;
  }

  .community-page .hero-side {
    grid-template-columns: 0.85fr 1.15fr;
    grid-template-rows: auto;
  }
}

@media (max-width: 700px) {
  .community-page .community-main {
    padding-top: 28px;
    padding-bottom: 48px;
  }

  .community-page .hero-side {
    grid-template-columns: 1fr;
  }

  .community-page .community-hero h1 {
    font-size: clamp(2.25rem, 11vw, 3rem);
  }

  .community-page .community-note,
  .community-page .participation-card,
  .community-page .action-card,
  .community-page .why-card {
    border-radius: 18px;
  }

  .community-page .community-note,
  .community-page .participation-card {
    padding: 22px;
  }

  .community-page .section {
    margin-top: 44px;
  }
}
