/*
 * Calibrate brand, per calibrate-brand.md (exact hex, Starling Creative guidelines).
 * Cucumber #BAD175 (primary green) | Blueberry #2D3047 (text/dark)
 * Oat #F7EDE3 (warm background)    | Sea Glass #D5EAE1 (soft fills/cards)
 * Turquoise #47828A (primary buttons/links, strongest contrast on Oat)
 * Lemon #FEE67B, Lilac #C9A2CC, Grape #5C4E6B (accents, sparing)
 * Headlines: Mr Eaves Sans OT is an Adobe font; per the guidelines the
 * sanctioned web fallback is Mulish Bold, loaded from Google Fonts.
 */

:root {
  --cucumber: #BAD175;
  --blueberry: #2D3047;
  --oat: #F7EDE3;
  --seaglass: #D5EAE1;
  --turquoise: #47828A;
  --lemon: #FEE67B;
  --lilac: #C9A2CC;
  --grape: #5C4E6B;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Mulish", -apple-system, "Segoe UI", sans-serif;
  background: var(--oat);
  color: var(--blueberry);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 24px 16px 48px;
}

#app { width: 100%; max-width: 560px; }

.card {
  background: transparent;
  padding: 8px 0;
}

.card-wide { max-width: 100%; }

/* ---------- brand head ---------- */

.brand-head { text-align: center; margin-bottom: 20px; }
.logo { max-height: 52px; max-width: 220px; }
.wordmark {
  font-weight: 800;
  letter-spacing: 0.35em;
  font-size: 18px;
  color: var(--blueberry);
}

/* ---------- intro ---------- */

.title {
  font-weight: 800;
  font-size: 28px;
  line-height: 1.25;
  margin: 8px 0 16px;
  text-align: center;
}

.lede { font-size: 17px; margin-bottom: 28px; text-align: center; }

/* ---------- progress ---------- */

.progress { margin-bottom: 24px; }
.progress-label { font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--grape); }
.progress-track { height: 8px; background: var(--seaglass); border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--cucumber); border-radius: 99px; transition: width 0.3s ease; }

/* ---------- questions ---------- */

.q-label { font-size: 22px; font-weight: 800; line-height: 1.3; margin-bottom: 6px; }
.hint { font-size: 14px; color: var(--grape); margin-bottom: 18px; }

.input {
  width: 100%;
  font: inherit;
  font-size: 17px;
  padding: 14px 16px;
  border: 2px solid var(--seaglass);
  border-radius: 12px;
  background: #fff;
  color: var(--blueberry);
  margin: 6px 0 16px;
}
.input:focus { outline: none; border-color: var(--turquoise); }

.options { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 18px; }

.option {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  font: inherit;
  font-size: 16px;
  color: var(--blueberry);
  background: #fff;
  border: 2px solid var(--seaglass);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.option:hover { border-color: var(--turquoise); }
.option.selected { border-color: var(--turquoise); background: var(--seaglass); }

.option-mark {
  flex: 0 0 18px;
  height: 18px;
  border: 2px solid var(--turquoise);
  border-radius: 50%;
  background: #fff;
}
.option.selected .option-mark { background: var(--turquoise); box-shadow: inset 0 0 0 3px #fff; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  border: none;
  border-radius: 99px;
  padding: 14px 32px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
.btn-primary { background: var(--turquoise); color: #fff; width: 100%; }
.btn-primary:hover { background: #3a6d74; }
.btn-secondary { background: var(--cucumber); color: var(--blueberry); width: 100%; }
.btn-secondary:hover { background: #a9c163; }

.btn-back {
  background: none;
  border: none;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--turquoise);
  cursor: pointer;
  padding: 0;
  margin-bottom: 14px;
  display: inline-block;
}

.error { color: #a24343; font-size: 14px; margin: -6px 0 12px; }

.foot { text-align: center; font-size: 13px; color: var(--grape); margin-top: 36px; letter-spacing: 0.04em; }

/* ---------- report ---------- */

.report-kicker {
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--turquoise);
}
.report-for { text-align: center; font-size: 15px; margin: 4px 0 24px; color: var(--grape); }

.report-section {
  background: #fff;
  border-radius: 16px;
  padding: 24px 22px;
  margin-bottom: 16px;
}
.report-section p { margin-bottom: 12px; font-size: 16px; }
.report-section p:last-child { margin-bottom: 0; }
.report-section h3 {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--turquoise);
  margin-bottom: 14px;
}

.felt-quote {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 6px;
}
.quote-intro { color: var(--grape); font-weight: 700; }

.pattern-card { background: var(--seaglass); }
.pattern-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grape);
  margin-bottom: 8px;
}
.pattern-card h2 { font-size: 24px; line-height: 1.25; margin-bottom: 2px; }
.pattern-card h2 .aside { font-weight: 400; font-size: 18px; }
.pattern-sub {
  display: inline-block;
  background: var(--cucumber);
  border-radius: 99px;
  font-size: 13px;
  font-weight: 800;
  padding: 4px 14px;
  margin: 10px 0 14px;
}

.video-wrap { position: relative; padding-top: 56.25%; border-radius: 12px; overflow: hidden; margin-top: 14px; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.refl { list-style: none; }
.refl li {
  padding: 8px 0 8px 26px;
  position: relative;
  font-size: 15.5px;
  border-bottom: 1px solid var(--oat);
}
.refl li:last-child { border-bottom: none; }
.refl li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 15px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cucumber);
}

.sf { list-style: none; }
.sf-item { display: flex; gap: 10px; padding: 7px 0; font-size: 15.5px; }
.sf-arrow { color: var(--turquoise); font-weight: 700; }
.sf-hit { font-weight: 700; }
.sf-tag {
  display: inline-block;
  background: var(--lemon);
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 10px;
  margin-left: 6px;
  vertical-align: 2px;
}

.teach-block, .help-block { margin-bottom: 18px; }
.teach-block:last-child, .help-block:last-child { margin-bottom: 0; }
.teach-block h4, .help-block h4 { font-size: 17px; margin-bottom: 4px; }

.help-card { background: var(--seaglass); }
.caveat { font-size: 13.5px; font-style: italic; color: var(--grape); }
.help-close { font-weight: 700; }

.btn-cta { width: 100%; margin-top: 6px; }
.inbox-line { font-size: 14px; color: var(--grape); text-align: center; margin-top: 14px; }

.report-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 8px; }

/* ---------- print: the downloadable report ---------- */

@media print {
  body { background: #fff; padding: 0; display: block; }
  #app { max-width: 100%; }
  .no-print, .video-wrap, .report-actions, .btn-cta { display: none !important; }
  .report-section {
    border: 1px solid #ddd;
    border-radius: 8px;
    page-break-inside: avoid;
    margin-bottom: 12px;
    padding: 18px;
  }
  .pattern-card, .help-card { background: #fff; }
  .sf-tag { border: 1px solid var(--blueberry); background: #fff; }
  a { color: var(--blueberry); }
  .inbox-line { display: none; }
  .report-section:last-of-type::after {
    content: "Free training: calibratewell.com/fertility-training";
    display: block;
    font-weight: 800;
    margin-top: 8px;
  }
}

/* ---------- small screens ---------- */

@media (max-width: 420px) {
  .title { font-size: 24px; }
  .q-label { font-size: 20px; }
  .pattern-card h2 { font-size: 21px; }
}
