* {
  box-sizing: border-box;
}
:root {
  --bg: #fbf6ec;
  --bg-pattern: #f4ecdc;
  --ink: #2b2722;
  --ink-soft: #6f665a;
  --card: #ffffff;
  --accent: #c2562f;
  --accent-soft: #f6e4da;
  --accent-ink: #ffffff;
  --correct: #1f7a4d;
  --correct-soft: #e2f1e8;
  --chip: #f1e7d6;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Libre Franklin", system-ui, sans-serif;
  --maxw: 1080px;
  --radius: 20px;
  --shadow:
    0 1px 2px rgba(35, 30, 22, 0.04), 0 14px 34px -18px rgba(35, 30, 22, 0.28);
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main {
  flex: 1 0 auto;
  width: 100%;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: color-mix(in oklab, var(--accent) 80%, #000);
}
::selection {
  background: var(--accent-soft);
}
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}
svg {
  flex: none;
}

/* ---------- Logo header ---------- */
.site-head {
  padding: 30px 0 8px;
  text-align: center;
}
.site-head .wrap {
  display: flex;
  justify-content: center;
}
.site-logo {
  display: block;
  width: min(235px, 100%);
  height: auto;
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(28px, 5vw, 52px) 0 clamp(40px, 6vw, 64px);
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 8px 15px;
  border-radius: 99px;
  margin: 0 0 22px;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.04;
  font-size: clamp(44px, 6.4vw, 72px);
  margin: 0 auto 20px;
  letter-spacing: -0.8px;
  max-width: 16ch;
  text-wrap: balance;
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
}
.hero-sub {
  font-size: clamp(19px, 2.2vw, 22px);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 auto 26px;
  max-width: 52ch;
  text-wrap: pretty;
}
.hero-reassure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px 26px;
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-size: 16px;
}
.reassure-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.reassure-item svg {
  color: var(--correct);
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 20px;
  padding: 17px 30px;
  min-height: 60px;
  border-radius: 15px;
  margin-bottom: 30px;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 24px -12px var(--accent);
  transition:
    transform 0.12s ease,
    box-shadow 0.2s ease;
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -12px var(--accent);
  color: var(--accent-ink);
}
.cta-btn:active {
  transform: translateY(0);
}

/* Hero preview card */
.hero-visual {
  position: relative;
  max-width: 440px;
  margin: clamp(38px, 5vw, 56px) auto 0;
}
.preview-card {
  background: var(--card);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: clamp(24px, 3vw, 34px);
  position: relative;
  z-index: 2;
  text-align: left;
}
.preview-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 15px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 7px 14px 7px 10px;
  border-radius: 99px;
  margin-bottom: 18px;
}
.preview-q {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.2;
  margin: 0 0 22px;
  letter-spacing: -0.3px;
}
.preview-answers {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.preview-a {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--bg);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: inset 0 0 0 2px color-mix(in oklab, var(--ink) 11%, transparent);
  font-size: 18px;
  font-weight: 500;
}
.preview-a .letter {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  background: var(--card);
  color: var(--ink-soft);
  box-shadow: inset 0 0 0 2px color-mix(in oklab, var(--ink) 12%, transparent);
}
.preview-a.correct {
  background: var(--correct-soft);
  box-shadow: inset 0 0 0 2.5px var(--correct);
  color: color-mix(in oklab, var(--correct) 75%, var(--ink));
}
.preview-a.correct .letter {
  background: var(--correct);
  color: #fff;
  box-shadow: none;
}
.preview-a .mark {
  margin-left: auto;
  color: var(--correct);
  display: grid;
  place-items: center;
}
.preview-badge {
  position: absolute;
  z-index: 3;
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}
.preview-badge .bicon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  flex: none;
}
.preview-badge .btext {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.preview-badge .btext strong {
  font-family: var(--serif);
  font-size: 20px;
}
.preview-badge .btext span {
  font-size: 13px;
  color: var(--ink-soft);
}
.badge-score {
  bottom: -22px;
  left: -26px;
}
.badge-topics {
  top: -24px;
  right: -18px;
}

/* ---------- Section shells ---------- */
section.band {
  padding: clamp(56px, 8vw, 96px) 0;
}
.band-alt {
  background: linear-gradient(
    180deg,
    transparent,
    color-mix(in oklab, var(--bg-pattern) 55%, var(--bg)) 40%,
    color-mix(in oklab, var(--bg-pattern) 55%, var(--bg))
  );
}
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(40px, 5vw, 60px);
}
.section-eyebrow {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(32px, 4.4vw, 46px);
  line-height: 1.1;
  margin: 0 0 14px;
  letter-spacing: -0.5px;
  text-wrap: balance;
}
.section-lede {
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  text-wrap: pretty;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.step {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  padding: 40px 30px 30px;
  box-shadow: var(--shadow);
}
.step-num {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 18px -8px var(--accent);
}
.step-glyph {
  width: 56px;
  height: 56px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: var(--chip);
  color: var(--accent);
  margin: 10px 0 18px;
}
.step h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  margin: 0 0 10px;
}
.step p {
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.feature {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: inset 0 0 0 2px color-mix(in oklab, var(--ink) 9%, transparent);
  transition:
    transform 0.14s ease,
    box-shadow 0.2s ease;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 0 0 2px color-mix(in oklab, var(--accent) 45%, transparent),
    var(--shadow);
}
.feature-glyph {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 18px;
}
.feature h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  margin: 0 0 9px;
}
.feature p {
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Topics strip ---------- */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.topic {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: inset 0 0 0 2px color-mix(in oklab, var(--ink) 9%, transparent);
  transition:
    transform 0.14s ease,
    box-shadow 0.2s ease;
}
.topic:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 0 2px color-mix(in oklab, var(--accent) 45%, transparent),
    var(--shadow);
}
.topic-glyph {
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: var(--chip);
  color: var(--accent);
}
.topic-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.topic-label {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.1;
}
.topic-blurb {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.3;
}

/* ---------- Why / benefits split ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}
.why-copy .section-title {
  font-size: clamp(30px, 4vw, 42px);
}
.benefits {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.benefits li {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}
.benefit-check {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--correct-soft);
  color: var(--correct);
  margin-top: 2px;
}
.benefit-text strong {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 3px;
}
.benefit-text span {
  font-size: 16.5px;
  color: var(--ink-soft);
  line-height: 1.45;
}
.stats-card {
  background: var(--card);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: clamp(30px, 4vw, 44px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 24px;
  text-align: center;
}
.stat .num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(38px, 5vw, 52px);
  color: var(--accent);
  line-height: 1;
  letter-spacing: -1px;
}
.stat .lbl {
  font-size: 16px;
  color: var(--ink-soft);
  margin-top: 8px;
  line-height: 1.35;
}

/* ---------- Footer ---------- */
footer {
  flex: 0 0 auto;
  padding: 48px 0 44px;
  border-top: 1px solid color-mix(in oklab, var(--ink) 10%, transparent);
  margin-top: clamp(56px, 8vw, 96px);
  text-align: center;
}
footer .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer-note {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 18px auto 0;
  max-width: 48ch;
  line-height: 1.5;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  margin-top: 22px;
}
.footer-links a {
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 600;
}
.footer-links a:hover {
  color: var(--accent);
}

/* Legal pages use the same project layout, but their long-form copy needs a
   narrower reading measure than the landing page. */
.quizai-static.quizai-container {
  width: min(920px, calc(100% - 56px));
  max-width: 920px;
  margin-right: auto;
  margin-left: auto;
  padding-top: 64px;
  padding-bottom: 72px;
}

.quizai-static h1,
.quizai-static h2,
.quizai-static h3 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.15;
}

.quizai-static h1 {
  margin: 0 0 34px;
  font-size: clamp(38px, 5vw, 58px);
}

.quizai-static h2 {
  margin: 38px 0 14px;
  font-size: clamp(26px, 3vw, 34px);
}

.quizai-static h3 {
  margin: 28px 0 10px;
  font-size: 24px;
}

.quizai-static p,
.quizai-static li {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
}

.quizai-static p {
  margin: 0 0 18px;
}

.quizai-static ul,
.quizai-static ol {
  margin: 0 0 24px;
  padding-left: 26px;
}

.fdbc-img-holder {
  background: var(--chip);
}

.fdbck-header-holder {
  background: var(--accent-soft);
}

#starScore {
  margin-left: -20px;
}

@media (max-width: 560px) {
  .quizai-static.quizai-container {
    width: calc(100% - 32px);
    padding-top: 42px;
    padding-bottom: 52px;
  }
}

@media (max-width: 860px) {
  .steps,
  .features,
  .topics-grid {
    grid-template-columns: 1fr;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1024px) {
  html body main .box970x250-apps,
  html body main .box728x90 {
    display: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* The shared footer script injects this disclosure only when the landing CTA
   is present. Keep the markup global and make it part of this project design. */
[data-disclosures-text="1"] {
  background: var(--accent) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--accent-ink) !important;
  font-family: var(--sans) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  margin: 0 !important;
  padding: 11px 20px !important;
  text-align: center;
}

[data-disclosures-text="1"] a {
  color: inherit;
  text-decoration: underline;
}

@media (max-width: 560px) {
  [data-disclosures-text="1"] {
    font-size: 14px !important;
    padding-right: 16px !important;
    padding-left: 16px !important;
  }
}
