/* Business Season palette, taken from the Interact original:
   dark forest green ground, cream answer cards, black CTA. */
:root {
  --ground: #143024;
  --card: #f2ede4;
  --ink: #143024;
  --paper: #ffffff;
  --cta: #000000;
  --cta-ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  /* tokens below let a page flip to a light theme without touching this file */
  --track: rgba(255, 255, 255, 0.18);
  --hairline: rgba(255, 255, 255, 0.28);
  --focus: #ffffff;
  --notice-bg: rgba(255, 255, 255, 0.1);
  --card-border: transparent;
  --card-border-hover: rgba(0, 0, 0, 0.25);
  --box-border: rgba(0, 0, 0, 0.45);
  --radius: 10px;
  --max: 760px;
}

* { box-sizing: border-box; }

html { margin: 0; padding: 0; }

body {
  margin: 0;
  padding: 0;
  background: var(--ground);
  color: var(--paper);
  font-family: "Poppins", "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 20px 64px;
}

h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.2; font-weight: 600; margin: 0 0 20px; text-align: center; }
h2 { font-size: clamp(1.35rem, 3.4vw, 1.9rem); line-height: 1.25; font-weight: 600; margin: 0 0 24px; text-align: center; }
p  { margin: 0 0 16px; }

img.hero { width: 100%; height: auto; border-radius: var(--radius); display: block; margin: 0 0 24px; }

/* Progress */
.progress { height: 4px; background: var(--track); border-radius: 99px; margin: 0 0 28px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--card); width: 0; transition: width .3s ease; }
.step { text-align: center; color: var(--muted); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 12px; }

/* Answers */
.answers { display: flex; flex-direction: column; gap: 12px; margin: 0 0 28px; }

.answer {
  display: flex; align-items: flex-start; gap: 14px;
  width: 100%; text-align: left;
  background: var(--card); color: var(--ink);
  border: 2px solid var(--card-border); border-radius: var(--radius);
  padding: 18px 20px;
  font: inherit; cursor: pointer;
  transition: transform .12s ease, border-color .12s ease;
}
.answer:hover { transform: translateY(-1px); border-color: var(--card-border-hover); }
.answer:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.answer[aria-pressed="true"] { border-color: var(--cta); }

.answer .box {
  flex: 0 0 auto; width: 22px; height: 22px; margin-top: 1px;
  border: 2px solid var(--box-border); border-radius: 5px; background: #fff;
  display: grid; place-items: center; font-size: 14px; font-weight: 700; color: var(--cta);
}
.answer[aria-pressed="true"] .box::after { content: "✓"; }

/* Buttons */
.btn {
  display: block; width: 100%;
  background: var(--cta); color: var(--cta-ink);
  border: 0; border-radius: var(--radius);
  padding: 17px 24px; font: inherit; font-weight: 600;
  cursor: pointer; text-align: center; text-decoration: none;
  transition: opacity .15s ease;
}
.btn:hover { opacity: .88; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--muted); border: 1px solid var(--hairline); margin-top: 12px; }

/* Opt-in */
label { display: block; font-size: .9rem; color: var(--muted); margin: 0 0 6px; }
input[type="text"], input[type="email"] {
  width: 100%; padding: 15px 16px; margin: 0 0 18px;
  border: 0; border-radius: var(--radius);
  background: var(--card); color: var(--ink);
  font: inherit;
}
input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Result */
.result ul { margin: 0 0 18px; padding-left: 22px; }
.result li { margin: 0 0 6px; }
.avoid { color: var(--muted); font-style: italic; }

.notice {
  background: var(--notice-bg); border-left: 3px solid var(--cta);
  padding: 12px 16px; border-radius: 6px; font-size: .9rem; margin: 0 0 20px;
}
.error { background: rgba(255,120,120,.16); border-left-color: #ff8080; }

.center { text-align: center; }
.muted { color: var(--muted); font-size: .88rem; }
.hidden { display: none !important; }

.spinner {
  width: 30px; height: 30px; margin: 40px auto;
  border: 3px solid var(--track); border-top-color: var(--paper);
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}


/* ---------------------------------------------------------------------------
   Per-quiz themes.
   These live here, not in a <style> block on the page: our CSP sets
   style-src 'self' with no 'unsafe-inline', so inline styles are dropped.
   Keyed off the data-quiz attribute the page already carries.
   --------------------------------------------------------------------------- */

/* Starbrands — white ground, black text. A separate offer from Plan With The
   Seasons, so deliberately not the green. */
body[data-quiz="starbrands-master-key"],
body[data-quiz="starbrands-os-calculator"] {
  --ground: #ffffff;
  --paper: #000000;
  --ink: #000000;
  --card: #f1f1f3;
  --cta-ink: #ffffff;
  --muted: rgba(0, 0, 0, 0.62);
  --track: rgba(0, 0, 0, 0.12);
  --hairline: rgba(0, 0, 0, 0.2);
  --focus: #000000;
  --notice-bg: rgba(0, 0, 0, 0.05);
  --card-border: rgba(0, 0, 0, 0.16);
  --card-border-hover: rgba(0, 0, 0, 0.5);
  --box-border: rgba(0, 0, 0, 0.45);
}

body[data-quiz="starbrands-master-key"]  { --cta: #f5a623; }  /* Master Key amber */
body[data-quiz="starbrands-os-calculator"] { --cta: #d4714f; } /* OS Calculator terracotta */
