/* Prepari — Variant A: "Exam Hall"
   Locked palette from Part 2. Fonts: Source Serif 4 (display), Source Sans 3 (body),
   IBM Plex Mono (labels/OMR markings). No gradients, no purple/blue, one shadow. */

:root {
  --bg: #f8f7f4;
  --surface: #ffffff;
  --text: #1a1917;
  --text-2: #6b6860;
  --teal: #0d7c6e;
  --teal-hover: #1a9e8e;
  --teal-fill: #e6f4f1;
  --green: #1a7a42;
  --green-fill: #edf7f1;
  --red: #c0392b;
  --red-fill: #fdf0ef;
  --amber: #b45309;
  --amber-fill: #fef3e2;
  --border: #e2e0db;
  --shadow: 0 1px 3px rgba(26, 25, 23, .08);

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--teal); }
a:hover { color: var(--teal-hover); }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 2px; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }
.wrap-wide { max-width: 960px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) {
  .wrap { padding: 0 24px; }
  .wrap-wide { padding: 0 24px; }
}

.mono { font-family: var(--mono); }

/* ---- shared eyebrow / section rhythm (paper sections) ---- */
.eyebrow {
  font: 500 12px/1.4 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-2);
  margin: 0;
}
.rule-top {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 64px;
}
.section { padding-bottom: 8px; }
.section-h2 {
  font: 700 24px/1.2 var(--serif);
  margin: 12px 0 12px;
  color: var(--text);
}
.section-body {
  margin: 0;
  max-width: 60ch;
  color: var(--text);
}

.copy-missing {
  color: var(--amber);
  background: var(--amber-fill);
  outline: 1px dashed var(--amber);
  outline-offset: 1px;
  padding: 1px 5px;
  border-radius: 2px;
  display: inline-block;
}

/* ---- header ---- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
}
.header-link {
  font: 500 12px/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-2);
}
.header-link:hover { color: var(--text); }

/* ---- brand lockup: wordmark with an OMR-bubble tittle on the final i ---- */
.brand {
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
  color: var(--text);
  font: 700 28px/1 var(--serif);
  letter-spacing: -.01em;
}
.brand-sm { font-size: 20px; }
.brand-i-wrap { position: relative; display: inline-block; }
.brand-bubble {
  position: absolute;
  left: 50%;
  top: -.06em;
  transform: translateX(-50%);
  width: .26em;
  height: .26em;
  border: 1.5px solid var(--text);
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-bubble::after {
  content: "";
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: var(--teal);
}

/* ---- hero ---- */
.hero { padding: 40px 16px 24px; }
@media (min-width: 720px) { .hero { padding: 64px 24px 24px; } }
.hero-h1 {
  font: 700 clamp(32px, 6vw, 48px)/1.1 var(--serif);
  letter-spacing: -.015em;
  margin: 16px 0 16px;
  max-width: 18ch;
}
.hero-sub {
  margin: 0 0 24px;
  max-width: 54ch;
  color: var(--text);
}
.hero-cue {
  font: 500 12px/1.4 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0;
}

/* ================= QUESTION OF THE DAY ================= */
.qotd-section { padding-top: 8px; }
.qotd {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.qotd-done {
  margin: 0;
  padding: 12px 16px;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-2);
  background: var(--teal-fill);
  border-bottom: 1px solid var(--border);
}

/* booklet stationery strip — labels in --text-2, values in --teal */
.qotd-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 12px 16px;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-2);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.qotd-strip-val { color: var(--teal); }
.qotd-timer { font-variant-numeric: tabular-nums; color: var(--teal); }

.qotd-caption {
  margin: 0;
  padding: 12px 16px 0;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-2);
}

.qotd-fieldset { border: 0; margin: 0; padding: 8px 16px 16px; }
.qotd-stem {
  padding: 0;
  font: 600 19px/1.4 var(--serif);
  color: var(--text);
}
.qotd-qno { color: var(--teal); font-weight: 700; margin-right: 4px; }

.qotd-options { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }

/* option row = an OMR answer line */
.qotd-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 8px 16px;
  text-align: left;
  font: 400 17px/1.35 var(--sans);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease;
}
.qotd-option:hover:not(:disabled) { border-color: var(--text-2); }
.qotd-option:disabled { cursor: default; }

/* the OMR bubble */
.qotd-bubble {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 2px solid var(--text);
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
}
.qotd-bubble::after {
  content: "";
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--text);
  transition: width .15s ease-out, height .15s ease-out; /* ink dot fill */
}
.qotd-option.chosen .qotd-bubble::after { width: 13px; height: 13px; }

.qotd-letter {
  flex: 0 0 auto;
  font: 500 13px/1 var(--mono);
  color: var(--text-2);
  min-width: 2.2ch;
}
.qotd-text { flex: 1 1 auto; }

/* reveal states */
.qotd-option.correct {
  background: var(--green-fill);
  border-color: var(--green);
}
.qotd-option.correct .qotd-bubble { border-color: var(--green); }
.qotd-option.correct .qotd-bubble::after { background: var(--green); }
.qotd-option.correct .qotd-letter { color: var(--green); }

.qotd-option.wrong {
  background: var(--red-fill);
  border-color: var(--red);
}
.qotd-option.wrong .qotd-bubble { border-color: var(--red); }
.qotd-option.wrong .qotd-bubble::after { background: var(--red); }
.qotd-option.wrong .qotd-letter { color: var(--red); }

/* result line (color is never the only signal — text says it too) */
.qotd-result {
  margin: 0;
  padding: 16px 16px 0;
  font: 600 15px/1.4 var(--sans);
}
.qotd-result.is-correct { color: var(--green); }
.qotd-result.is-wrong { color: var(--red); }
.qotd-overtime { color: var(--text-2); font-family: var(--mono); font-size: 13px; }

/* explanation — highlighted booklet passage */
.qotd-explanation {
  margin: 12px 16px 0;
  padding: 16px;
  background: var(--amber-fill);
  border-left: 3px solid var(--amber);
  border-radius: 8px;
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .28s ease-out, opacity .28s ease-out, margin .28s ease-out, padding .28s ease-out;
}
.qotd-explanation.open { max-height: 480px; opacity: 1; }

/* conversion card (State 3) */
.qotd-convert {
  margin: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}
.qotd-hook { margin: 0 0 12px; font: 600 17px/1.4 var(--serif); color: var(--text); }
.qotd-tg {
  display: inline-block;
  margin-top: 12px;
  font: 500 12px/1.4 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
}
.qotd-tg:hover { text-decoration: underline; }

/* share line */
.qotd-share {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  text-align: left;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-2);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.qotd-share:hover { border-color: var(--text-2); color: var(--text); }
.qotd-share-text { flex: 1 1 auto; word-break: break-word; }
.qotd-share-done { flex: 0 0 auto; color: var(--green); font-weight: 700; }

/* ---- waitlist form ---- */
.wl-label {
  display: block;
  font: 500 12px/1.4 var(--mono);
  letter-spacing: .04em;
  margin-bottom: 8px;
}
.wl-row { display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 460px) { .wl-row { flex-direction: row; } }
.wl-input {
  flex: 1 1 auto;
  min-height: 48px;
  padding: 8px 12px;
  font: 400 17px/1.4 var(--sans);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.wl-input:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-color: var(--teal); }
.btn {
  min-height: 48px;
  padding: 8px 24px;
  font: 600 16px/1 var(--sans);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-hover); }
.btn-teal:disabled { opacity: .6; cursor: default; }
.wl-error { margin: 8px 0 0; color: var(--red); font-size: 14px; }
.wl-success {
  margin: 0;
  padding: 12px;
  color: var(--green);
  background: var(--green-fill);
  border: 1px solid var(--green);
  border-radius: 8px;
  font: 600 15px/1.5 var(--sans);
}

/* ---- how it works: Instructions-to-Candidates ---- */
.instructions {
  list-style: none;
  counter-reset: step;
  margin: 24px 0 0;
  padding: 0;
  border-top: 1px solid var(--border);
}
.instructions li {
  counter-increment: step;
  position: relative;
  padding: 16px 0 16px 44px;
  border-bottom: 1px solid var(--border);
  font: 400 18px/1.5 var(--serif);
  color: var(--text);
}
.instructions li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 16px;
  font: 500 13px/1.6 var(--mono);
  color: var(--teal);
  letter-spacing: .05em;
}

/* ---- pricing (ruled fee-structure notice) ---- */
.pricing-section { padding-bottom: 8px; }
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  font-size: 15px;
}
.pricing-table th, .pricing-table td {
  text-align: left;
  padding: 12px;
  border: 1px solid var(--border);
  vertical-align: top;
}
.pricing-table th {
  font: 500 12px/1.4 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-2);
  background: var(--bg);
}
.pricing-table td:first-child { font: 600 16px/1.4 var(--serif); white-space: nowrap; }
.pricing-table .pro-row td { background: var(--teal-fill); }
.pricing-table .pro-row td:first-child { color: var(--teal); }
.pricing-caption {
  margin: 16px 0 0;
  font: 500 12px/1.5 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-2);
}
@media (max-width: 560px) {
  .pricing-table, .pricing-table tbody, .pricing-table tr { display: block; width: 100%; }
  .pricing-table thead { display: none; }
  .pricing-table td { display: block; border: 0; padding: 4px 12px; }
  .pricing-table tr {
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 8px 0;
  }
  .pricing-table .pro-row { border-color: var(--teal); }
  .pricing-table td:first-child { padding-top: 8px; }
  .pricing-table td:not(:first-child)::before {
    content: attr(data-label);
    display: block;
    font: 500 11px/1.4 var(--mono);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-2);
  }
}

/* ---- FAQ ---- */
.faq { margin-top: 24px; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 32px 16px 0;
  position: relative;
  font: 600 17px/1.4 var(--serif);
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 14px;
  font: 400 20px/1 var(--mono);
  color: var(--teal);
}
.faq details[open] summary::after { content: "\2212"; }
.faq .faq-a {
  margin: 0;
  padding: 0 0 16px;
  color: var(--text-2);
  font: 400 16px/1.6 var(--sans);
  max-width: 62ch;
}

/* ---- final CTA ---- */
#cta .section-body { margin-bottom: 16px; }
#cta .wl-form { max-width: 480px; }
.tg-link {
  display: inline-block;
  margin-top: 16px;
  font: 500 12px/1.4 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
}
.tg-link:hover { text-decoration: underline; }

/* ---- footer ---- */
.site-footer {
  margin-top: 64px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner { padding: 40px 0; }
.footer-tag {
  margin: 16px 0 4px;
  font: 400 15px/1.5 var(--serif);
  color: var(--text);
}
.footer-contact { margin: 0 0 12px; font-size: 14px; }
.footer-contact a { text-decoration: none; }
.footer-social { margin: 0; font-size: 14px; color: var(--text-2); }
.footer-social a { text-decoration: none; }

/* ---- reduced motion: show final states, no animation ---- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .qotd-explanation { transition: none; }
  .qotd-explanation.open { max-height: none; }
}
