/* ==========================================================================
   Citizenship Test — page theme
   Colours are sampled from the app's own App Store screenshots: navy, civic
   blue, flag red, coral and parchment.
   ========================================================================== */

:root {
  --navy: #0e2244;
  --navy-2: #142c55;
  --blue: #2247b7;
  --red: #c63a33;
  --coral: #ff8467;
  --parchment: #fff6ea;
  --parchment-2: #f7ebda;
  --ink: #0e2244;

  /* Shell variables (site.css) */
  --bg: var(--navy);
  --bg-alt: var(--navy-2);
  --fg: #ffffff;
  --muted: #c7d1e6;
  --dim: #98a6c4;
  --line: #2a4170;
  --line-strong: #3d5687;
  --accent: var(--coral);
  --accent-hover: #ffa48d;
  --on-accent: var(--navy);

  --radius-btn: 12px;
  --radius-media: 24px;

  color-scheme: dark;
}

/* --- Type ----------------------------------------------------------------- */

.display {
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--fg);
  text-wrap: balance;
}
.display em { font-style: normal; color: var(--accent); }

.display--xl { font-size: clamp(3.5rem, 10.5vw, 6.5rem); line-height: 0.95; }
.display--lg { font-size: clamp(2.75rem, 7vw, 4.5rem); }
.display--md { font-size: clamp(2.25rem, 5.5vw, 3.25rem); }

.lede {
  font-size: clamp(1.25rem, 2.4vw, 1.5625rem);
  line-height: 1.35;
  color: var(--fg);
}

.copy {
  max-width: 34rem;
  color: var(--muted);
}

/* "★ INTERVIEW PRACTICE" — the label style from the screenshots */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
}
.kicker::before {
  content: "\2605";
  font-size: 1.05em;
  letter-spacing: 0;
  color: var(--star, var(--accent));
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.pill--free { color: var(--fg); opacity: 0.85; }

/* --- Hero ----------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 4.5rem;
  align-items: center;
  padding-block: 5rem 5.5rem;
}

.hero__copy {
  display: grid;
  gap: 1.625rem;
  justify-items: start;
}

.app-id {
  display: flex;
  align-items: center;
  gap: 1.125rem;
}

.app-id__icon {
  width: 80px;
  height: 80px;
  border-radius: 18px;
}

.app-id__name {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.app-id__platform {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.2;
  color: var(--dim);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  padding-top: 0.25rem;
}

.requirements {
  font-size: 0.875rem;
  color: var(--dim);
}

.shot {
  width: 100%;
  border-radius: var(--radius-media);
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.55);
}

/* --- Which test ----------------------------------------------------------- */

.tests {
  padding-block: 5rem;
  background: var(--parchment);
  color: var(--ink);
}

.tests__head {
  display: grid;
  gap: 1rem;
  max-width: 40rem;
}

.tests .kicker { --star: var(--red); color: var(--ink); }
.tests .display { color: var(--ink); }
.tests .display em { color: var(--red); }

.tests__intro { color: #3b4a68; }
.tests a { color: var(--blue); }
.tests a:hover { color: var(--navy); }

.test-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 2.75rem 0 0;
  padding: 0;
  list-style: none;
}

.test-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1rem;
  padding: 1.75rem 1.625rem;
  background: #ffffff;
  border: 1px solid #ecdcc6;
  border-radius: 20px;
}

.test-card__name {
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.test-card__who {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #4a5876;
}

.test-card__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid #efe3d2;
}

.test-card__stats dt {
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7792;
}

.test-card__stats dd {
  order: -1;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--blue);
}

.test-card__stats div {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.tests__note {
  margin-top: 1.5rem;
  max-width: 46rem;
  font-size: 0.9375rem;
  color: #4a5876;
}

/* --- Feature bands -------------------------------------------------------- */

.band { color: var(--fg); }
.band--red { background: var(--red); --accent: #ffe2d6; --star: #ffffff; --muted: #ffe9e4; }
.band--blue { background: var(--blue); --accent: #ffb3a1; --star: var(--coral); --muted: #dfe6ff; }
.band--navy { background: var(--navy-2); }
.band--parchment {
  background: #ffffff;
  border-top: 1px solid #ecdcc6;
  color: var(--ink);
  --fg: var(--ink);
  --muted: #3b4a68;
  --accent: var(--red);
  --star: var(--red);
}
.band--parchment .pill--free { color: var(--ink); }

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 5.5rem;
  align-items: center;
  padding-block: 5rem;
}

.feature--flip { grid-template-columns: 400px minmax(0, 1fr); }
.feature--flip .feature__media { order: -1; }

.feature__copy {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}

.ticks {
  display: grid;
  gap: 0.625rem;
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.ticks li {
  position: relative;
  padding-left: 1.75rem;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0.125rem;
  top: 0.55em;
  width: 0.75rem;
  height: 0.4rem;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* --- Free and Pro --------------------------------------------------------- */

.plans {
  padding-block: 5rem;
  display: grid;
  gap: 2.5rem;
}

.plans__head { display: grid; gap: 1rem; max-width: 40rem; }

.plan-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.plan {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: 2rem 1.875rem;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
}

.plan--pro {
  background: var(--blue);
  border-color: var(--blue);
  --accent: #ffffff;
  --muted: #e3e9ff;
}

.plan__name {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.plan__price { color: var(--muted); }

.disclaimer {
  font-size: 0.9375rem;
  color: var(--dim);
  max-width: 46rem;
}

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 1040px) {
  .hero { gap: 3rem; }
  .feature { gap: 3.5rem; grid-template-columns: minmax(0, 1fr) 340px; }
  .feature--flip { grid-template-columns: 340px minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .test-cards { grid-template-columns: minmax(0, 1fr); max-width: 34rem; }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 3.5rem 4rem;
  }
  .hero__media { max-width: 400px; }

  .feature,
  .feature--flip {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
    padding-block: 4rem;
  }
  /* On a phone, copy always comes before its picture */
  .feature--flip .feature__media { order: 0; }
  .feature__media { width: min(100%, 400px); }

  .plan-cards { grid-template-columns: minmax(0, 1fr); }
  .tests, .plans { padding-block: 4rem; }
}

@media (max-width: 420px) {
  .app-id__icon { width: 64px; height: 64px; border-radius: 15px; }
  .actions .btn { width: 100%; }
  .test-card__stats dd { font-size: 1.75rem; }
}

/* --- Document pages (support, privacy) ------------------------------------ */

.site-nav__link[aria-current="page"] { color: var(--fg); }

.doc {
  max-width: 44rem;
  padding-block: 4.5rem 5.5rem;
}

.doc > * + * { margin-top: 1.25rem; }

.doc__meta { font-size: 0.9375rem; color: var(--dim); }

.doc h2 {
  margin-top: 3.25rem;
  font-size: clamp(1.625rem, 4vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--fg);
}

.doc h3 {
  margin-top: 2.25rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--fg);
}
.doc h2 + h3 { margin-top: 1.5rem; }
.doc h3 + p { margin-top: 0.5rem; }

.doc p,
.doc li { color: var(--muted); }

.doc strong { color: var(--fg); font-weight: 700; }

.doc ul { padding-left: 1.25rem; margin-bottom: 0; }
.doc li + li { margin-top: 0.5rem; }

.doc__callout {
  padding: 1.5rem 1.75rem;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.doc__callout > * + * { margin-top: 0.75rem; }
