/* AfriQuote holding page. Colours from the main site (apps/web/src/app/globals.css). */
:root {
  --navy-950: #071426; --navy-900: #0e1f3d; --navy-700: #23406f;
  --red-700: #b5121b; --red-800: #8f0e15; --red-50: #fdecee;
  --gold-100: #fdf1c7; --gold-400: #f2b705;
  --emerald-700: #0a6b42; --emerald-50: #e8f6ef;
  --ivory: #fbf7ee; --ink: #1b1b1f; --muted: #4b4b55; --line: #e4ded1;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; min-height: 100vh; font-family: var(--sans); color: var(--ink); line-height: 1.55;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(242, 183, 5, 0.18), transparent 60%),
    radial-gradient(50rem 30rem at -10% 110%, rgba(10, 107, 66, 0.10), transparent 60%),
    var(--ivory);
  overflow-x: hidden;
}
.kente { height: 10px; background: url("kente.svg") repeat-x center / auto 100%; }
body { position: relative; }
.deco { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.star {
  position: absolute; top: 6rem; right: -6rem; width: 26rem; opacity: 0.05; pointer-events: none;
  animation: turn 120s linear infinite;
}
@keyframes turn { to { transform: rotate(360deg); } }

.wrap {
  position: relative; z-index: 1; max-width: 72rem; margin: 0 auto; padding: 3.5rem 1.25rem 2rem;
  display: grid; gap: 2.5rem; align-items: start;
}
@media (min-width: 960px) { .wrap { grid-template-columns: 1fr 1.05fr; gap: 4rem; padding-top: 6rem; } }

.logo { width: 280px; max-width: 70vw; height: auto; display: block; }
.eyebrow {
  display: inline-block; margin: 2.25rem 0 0; padding: 0.3rem 0.8rem; border-radius: 999px;
  background: var(--gold-100); color: var(--navy-950); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
}
h1 {
  font-family: var(--display); font-weight: 700; color: var(--navy-950);
  font-size: clamp(2.4rem, 6vw, 3.8rem); line-height: 1.05; letter-spacing: -0.02em; margin: 1rem 0 1rem;
}
.lead { font-size: 1.15rem; color: var(--navy-900); max-width: 34rem; margin: 0; }
.promises { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: 0.7rem; }
.promises li { display: flex; gap: 0.75rem; align-items: baseline; color: var(--navy-900); font-weight: 600; }
.dot { flex: none; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--red-700); box-shadow: 0 0 0 4px var(--red-50); transform: translateY(-0.1rem); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: 1.5rem; padding: 1.75rem;
  box-shadow: 0 1px 2px rgba(7, 20, 38, 0.04), 0 20px 50px -20px rgba(7, 20, 38, 0.25);
}
@media (min-width: 640px) { .card { padding: 2.25rem; } }
h2 { font-family: var(--display); color: var(--navy-950); font-size: 1.7rem; line-height: 1.2; margin: 0; }
.sub { color: var(--muted); margin: 0.5rem 0 1.5rem; }

.row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .row.two { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 1rem; }
label { display: block; font-weight: 600; font-size: 0.92rem; color: var(--navy-950); margin-bottom: 0.35rem; }
.opt { font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1px solid #cfc8b8; border-radius: 0.8rem; padding: 0.7rem 0.85rem; min-height: 2.9rem;
}
textarea { resize: vertical; min-height: 8rem; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(181, 18, 27, 0.25); border-color: var(--red-700); }
[aria-invalid="true"] { border-color: var(--red-700); background: var(--red-50); }
.err { color: var(--red-700); font-size: 0.85rem; font-weight: 600; margin: 0.3rem 0 0; }

.check { display: flex; gap: 0.65rem; align-items: flex-start; font-weight: 400; color: var(--ink); margin: 0.6rem 0; cursor: pointer; }
.check input { width: 1.25rem; height: 1.25rem; min-height: 0; margin: 0.15rem 0 0; flex: none; accent-color: var(--red-700); }

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

button {
  margin-top: 0.75rem; width: 100%; border: 0; border-radius: 999px; padding: 0.95rem 1.5rem;
  font: inherit; font-weight: 700; font-size: 1.05rem; color: #fff; background: var(--red-700); cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
button:hover { background: var(--red-800); }
button:active { transform: translateY(1px); }
button:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 3px; }
button[disabled] { opacity: 0.7; cursor: progress; }
@media (min-width: 640px) { button { width: auto; } }

.status { min-height: 1.5rem; margin: 0.75rem 0 0; font-weight: 600; color: var(--navy-900); }
.status.bad { color: var(--red-700); }
.small { font-size: 0.82rem; color: var(--muted); margin: 1rem 0 0; }
.notice { background: var(--gold-100); border-radius: 0.8rem; padding: 0.8rem 1rem; }

.thanks { text-align: left; padding: 1.5rem; border-radius: 1rem; background: var(--emerald-50); border: 1px solid #bfe3cf; }
.thanks h3 { font-family: var(--display); color: var(--emerald-700); font-size: 1.35rem; margin: 0 0 0.4rem; }
.thanks p { margin: 0; color: var(--navy-900); }
.thanks:focus { outline: none; }

.foot { position: relative; z-index: 1; max-width: 72rem; margin: 0 auto; padding: 1.5rem 1.25rem 2.5rem; font-size: 0.82rem; color: var(--muted); border-top: 1px solid var(--line); }
.foot p { margin: 0.25rem 0; }

@media (prefers-reduced-motion: reduce) { body { position: relative; }
.deco { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.star { animation: none; } button { transition: none; } }

/* Countdown to opening day (6 March 2027, Independence Day). */
.countdown { margin: 0.5rem 0 1.75rem; }
.cd-label { margin: 0 0 0.85rem; color: var(--navy-900); }
.cd-label strong { color: var(--red-700); }
.cd-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; max-width: 30rem; }
.cd-unit {
  position: relative; overflow: hidden; text-align: center; padding: 0.9rem 0.25rem 0.7rem; border-radius: 1rem;
  background: linear-gradient(180deg, var(--navy-900), var(--navy-950)); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 24px -14px rgba(7, 20, 38, 0.6);
}
.cd-unit::after { /* a thin Kente-gold line under each number */
  content: ""; position: absolute; left: 20%; right: 20%; bottom: 0; height: 3px; border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, var(--red-700), var(--gold-400), var(--emerald-700));
}
.cd-num {
  display: block; font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums;
  font-size: clamp(1.8rem, 6vw, 2.8rem); line-height: 1; letter-spacing: -0.01em;
}
.cd-name { display: block; margin-top: 0.45rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-400); }
.cd-num.tick { animation: tick 0.45s ease-out; }
@keyframes tick { from { transform: translateY(-0.25em); opacity: 0.4; } to { transform: none; opacity: 1; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) { .cd-num.tick { animation: none; } }
