/* CEO Mama quiz. Palette and type follow the CEO Mama brand guide.
   Web stand-ins: Playfair Display (Domain Display), Pinyon Script (PP Playground), Archivo (Onsite). */
:root {
  --cloud: #EFECE3; --snow: #FAF8F2; --linen: #CFC4AF; --spice: #9B4431; --midnight: #070707;
  --sky: #C5D4DD; --teal: #173F4B; --sea: #041C23;
  --serif: 'Playfair Display', Georgia, serif;
  --script: 'Pinyon Script', 'Snell Roundhand', cursive;
  --sans: 'Archivo', system-ui, -apple-system, sans-serif;
  --pad: 24px;
  --line: rgba(7, 7, 7, 0.75);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cloud); color: var(--midnight); font-family: var(--sans); font-size: 16px; line-height: 1.62; }
h1, h2, p { margin: 0; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }

.label { font-stretch: 125%; font-weight: 500; font-size: 11px; line-height: 1.5; letter-spacing: 0.165em; text-transform: uppercase; }
.serif { font-family: var(--serif); font-weight: 500; letter-spacing: -0.035em; }
.script { font-family: var(--script); font-weight: 400; letter-spacing: 0; }
.accent { color: var(--spice); }

/* ---------- Shell */
.screen { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.bar { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 var(--pad); border-bottom: 1px solid var(--line); }
.bar.center { justify-content: center; }
.bar img { width: 112px; height: auto; display: block; }
.foot { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 var(--pad); border-top: 1px solid var(--line); font-size: 10px; }
.body { flex: 1; display: flex; flex-direction: column; gap: 24px; padding: 32px var(--pad) 24px; width: 100%; }
.nav { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 8px; }

.dots { display: flex; gap: 7px; align-items: center; }
.dots span { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--midnight); }
.dots span.on { background: var(--spice); border-color: var(--spice); }

/* ---------- Buttons */
.btn { appearance: none; border: 1px solid transparent; border-radius: 0; cursor: pointer; text-decoration: none; min-height: 52px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: space-between; gap: 18px;
  font-family: var(--sans); font-stretch: 125%; font-weight: 600; font-size: 12px; letter-spacing: 0.165em; text-transform: uppercase; transition: opacity .15s, background .15s, color .15s; }
.btn svg { flex-shrink: 0; }
.btn.dark { background: var(--midnight); color: var(--snow); }
.btn.spice { background: var(--spice); color: var(--snow); }
.btn.light { background: var(--snow); color: var(--midnight); }
.btn.line { background: transparent; color: var(--midnight); border-color: var(--midnight); }
.btn.wide { width: 100%; min-height: 58px; }
.btn:disabled { opacity: 0.35; cursor: not-allowed; }
.btn:not(:disabled):hover { opacity: 0.86; }
.btn:focus-visible, .opt:focus-visible, .back:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--spice); outline-offset: 3px; }
.back { appearance: none; background: none; border: 0; padding: 0; min-height: 44px; cursor: pointer; }
.back:hover { color: var(--spice); }

/* ---------- Start */
.start { background: var(--spice); color: var(--snow); --line: rgba(250, 248, 242, 0.4); }
.start .bar { min-height: 72px; }
.start .bar img { width: 148px; }
.start .body { justify-content: center; gap: 22px; padding-top: 40px; padding-bottom: 40px; }
.lockup { display: flex; flex-direction: column; font-weight: 500; }
.lockup .l1 { font-size: 48px; line-height: 1; }
.lockup .l2 { font-size: min(64px, 14.6vw); line-height: 0.95; margin-top: -2px; padding-left: 8px; white-space: nowrap; color: var(--cloud); }
.lockup .l3 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 27px; line-height: 1.15; letter-spacing: -0.02em; margin-top: 4px; }
.start .sub { font-size: 17px; line-height: 1.5; }
.start .intro { font-size: 14px; line-height: 1.55; padding-top: 22px; border-top: 1px solid var(--line); }
.start .btn { margin-top: 6px; }

/* ---------- Questions */
.qtitle { font-family: var(--serif); font-weight: 500; font-size: 31px; line-height: 1.12; letter-spacing: -0.03em; }
.qtitle em { font-weight: 400; color: var(--spice); }
.opts { display: flex; flex-direction: column; gap: 10px; }
.opt { appearance: none; text-align: left; width: 100%; cursor: pointer; display: flex; gap: 14px; align-items: flex-start; padding: 15px 16px; min-height: 64px; background: var(--snow); border: 1px solid rgba(7, 7, 7, 0.22); border-radius: 0; transition: background .12s, color .12s, border-color .12s; }
.opt .k { font-stretch: 125%; font-weight: 600; font-size: 11px; letter-spacing: 0.1em; line-height: 21px; width: 14px; flex-shrink: 0; }
.opt .t { font-size: 15px; line-height: 21px; flex: 1; }
.opt .tick { visibility: hidden; flex-shrink: 0; }
.opt:hover { border-color: var(--midnight); }
.opt[aria-pressed="true"] { background: var(--spice); color: var(--snow); border-color: var(--spice); }
.opt[aria-pressed="true"] .tick { visibility: visible; }

/* ---------- Forms */
.bigtitle { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 10px; font-weight: 500; }
.bigtitle .serif { font-size: 46px; line-height: 1; }
.bigtitle .script { font-size: 76px; line-height: 0.8; color: var(--spice); }
.fields { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { font-size: 10px; }
.field input, .field select { height: 56px; width: 100%; padding: 0 14px; background: var(--snow); border: 1px solid rgba(7, 7, 7, 0.35); border-radius: 0; font-size: 16px; }
.field input::placeholder { color: #5E5A52; }
.dob { display: grid; grid-template-columns: 0.8fr 1.4fr 1fr; gap: 10px; }
.help { font-size: 13px; line-height: 1.5; }
.error { font-size: 14px; line-height: 1.45; color: var(--spice); font-weight: 600; min-height: 20px; }

/* ---------- Report */
.report { background: var(--cloud); }
.hero { padding: 44px var(--pad); display: flex; flex-direction: column; gap: 18px; }
.hero h1 { display: flex; flex-direction: column; font-weight: 500; }
.hero h1 .script { font-size: 64px; line-height: 0.8; color: var(--spice); padding-left: 4px; }
.hero h1 .serif { font-size: clamp(64px, 23vw, 92px); line-height: 0.95; letter-spacing: -0.045em; }
.reflex { font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.3; letter-spacing: -0.01em; }
.band { padding: 48px var(--pad); display: flex; flex-direction: column; gap: 18px; }
.band.first { border-top: 1px solid var(--line); }
.band .txt { display: flex; flex-direction: column; gap: 18px; }
.band .head { display: flex; flex-direction: column; gap: 18px; }
.band h2 { display: flex; flex-direction: column; font-weight: 500; margin-bottom: 4px; }
.band h2 .serif { font-size: 36px; line-height: 1.02; }
.band h2 .script { font-size: 56px; line-height: 0.92; padding-left: 28px; color: var(--spice); }
.snow { background: var(--snow); }
.spice { background: var(--spice); color: var(--snow); }
.band.spice h2 .script { color: var(--cloud); }
.sky { background: var(--sky); color: var(--sea); }
.band.sky h2 .script { color: var(--teal); }
.teal { background: var(--teal); color: var(--snow); }
.teal .rule { height: 1px; background: rgba(250, 248, 242, 0.4); margin: 6px 0; }
.teal .bridge { font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.32; letter-spacing: -0.01em; }
.teal h2 .script { font-size: 62px; line-height: 0.8; padding-left: 4px; color: var(--sky); }
.teal h2 .serif { font-size: clamp(40px, 13vw, 56px); line-height: 1; letter-spacing: -0.04em; }
.part { display: flex; flex-direction: column; gap: 8px; }
.part .label, .keep .label { font-weight: 600; font-size: 10px; color: var(--sky); }
.keep { margin-top: 10px; padding: 24px 22px 26px; border: 1px solid rgba(250, 248, 242, 0.55); display: flex; flex-direction: column; gap: 12px; }
.keep p { font-family: var(--serif); font-style: italic; font-size: 27px; line-height: 1.2; letter-spacing: -0.02em; }
.blend { margin-top: 14px; padding: 22px 20px 24px; background: var(--linen); display: flex; flex-direction: column; gap: 10px; }
.blend .label { font-weight: 600; font-size: 10px; }
.blend p { font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; }
.close { padding: 52px var(--pad) 48px; background: var(--snow); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 22px; flex: 1; }
.close .big { font-family: var(--serif); font-weight: 500; font-size: 29px; line-height: 1.16; letter-spacing: -0.03em; }
.close .big em { font-weight: 400; color: var(--spice); }
.close .rule { height: 1px; background: var(--line); margin: 14px 0 2px; }
.close .actions { display: flex; flex-direction: column; gap: 12px; }
.toast { font-size: 13px; min-height: 20px; }

/* ---------- Desktop */
@media (min-width: 900px) {
  :root { --pad: 5vw; }
  .bar { min-height: 84px; }
  .bar img { width: 160px; }
  .start .bar img { width: 180px; }
  .dots { gap: 10px; }
  .dots span { width: 10px; height: 10px; }
  .foot { min-height: 56px; }
  .start .body { max-width: 980px; gap: 26px; }
  .lockup .l1 { font-size: clamp(3rem, 5.6vw, 5.2rem); }
  .lockup .l2 { font-size: clamp(4rem, 8.4vw, 7.8rem); padding-left: 0.3em; }
  .lockup .l3 { font-size: clamp(1.7rem, 2.9vw, 2.7rem); margin-top: 0.2em; }
  .start .sub { font-size: 1.25rem; max-width: 32rem; }
  .start .intro { font-size: 0.95rem; max-width: 32rem; }
  .start .btn { width: auto; min-width: 280px; align-self: flex-start; min-height: 62px; }

  .q .body { flex-direction: row; padding: 0; gap: 0; }
  .q .left { flex: 1 1 0; padding: 64px var(--pad) 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
  .q .right { flex: 1.25 1 0; padding: 56px var(--pad) 48px; display: flex; flex-direction: column; justify-content: center; gap: 28px; border-left: 1px solid var(--line); }
  .q .nav { margin-top: 0; justify-content: flex-end; }
  .qtitle { font-size: clamp(2.6rem, 4.4vw, 4.2rem); line-height: 1.02; letter-spacing: -0.04em; }
  .qtitle em { display: block; margin-top: 0.12em; }
  .opts { gap: 12px; }
  .opt { padding: 20px 24px; gap: 20px; }
  .opt .t { font-size: 17px; line-height: 26px; }
  .opt .k { line-height: 26px; }

  .form .body { max-width: 640px; margin: 0 auto; justify-content: center; padding-top: 64px; padding-bottom: 64px; gap: 30px; }
  .form .nav { margin-top: 12px; }
  .form .qtitle { font-size: 3.2rem; }
  .form .qtitle em { display: inline; }

  .hero { padding: 80px var(--pad) 72px; gap: 24px; }
  .hero h1 .script { font-size: clamp(4.5rem, 7.5vw, 7rem); }
  .hero h1 .serif { font-size: clamp(5.5rem, 11.5vw, 10.5rem); line-height: 0.92; }
  .reflex { font-size: 1.7rem; max-width: 34rem; }
  .hero .btn { align-self: flex-start; }
  .band { flex-direction: row; align-items: flex-start; padding: 0; gap: 0; }
  .band .head { flex: 1 1 0; padding: 80px var(--pad) 24px; gap: 22px; }
  .band .txt { flex: 1.15 1 0; padding: 80px var(--pad) 80px; gap: 20px; font-size: 17px; line-height: 1.65; }
  .band h2 .serif { font-size: clamp(2.4rem, 3.9vw, 3.6rem); }
  .band h2 .script { font-size: clamp(3.6rem, 6vw, 5.6rem); padding-left: 0.5em; }
  .teal .bridge { font-size: 1.5rem; max-width: 28rem; }
  .teal h2 .script { font-size: clamp(4.4rem, 7vw, 6.4rem); padding-left: 0.06em; }
  .teal h2 .serif { font-size: clamp(3.4rem, 5.8vw, 5.4rem); }
  .part { gap: 10px; }
  .part .label, .keep .label, .blend .label { font-size: 11px; }
  .keep { padding: 30px 32px 34px; }
  .keep p { font-size: 2.2rem; }
  .blend { padding: 28px 30px 30px; }
  .blend p { font-size: 1.5rem; }
  .close { align-items: center; text-align: center; padding: 96px var(--pad); gap: 28px; }
  .close .big { font-size: clamp(2rem, 3.6vw, 3.3rem); max-width: 58rem; }
  .close .rule { width: 100%; max-width: 58rem; }
  .close .actions { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .close .btn.wide { width: auto; min-width: 300px; }
}

/* ---------- PDF export (print) */
@media print {
  @page { size: A4; margin: 14mm 12mm; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .no-print { display: none !important; }
  body { background: #fff; }
  .screen { min-height: 0; }
  .band, .hero, .close { display: block; padding: 22px 26px; }
  .band .head, .band .txt { display: block; padding: 0; }
  .band .head > *, .band .txt > *, .hero > *, .close > * { margin-bottom: 12px; }
  .band .txt { font-size: 12pt; line-height: 1.55; }
  .hero h1 .serif { font-size: 80px; }
  .hero h1 .script { font-size: 56px; }
  .band h2 .serif, .teal h2 .serif { font-size: 32px; }
  .band h2 .script, .teal h2 .script { font-size: 48px; padding-left: 20px; }
  h2, .hero, .keep, .blend, .part { break-inside: avoid; }
  h2 { break-after: avoid; }
  .close { text-align: left; }
  .close .big { font-size: 24px; }
}
