/* Second Prime — 4 Numbers Quiz · brand tokens per site build */
:root {
  --ink: #101B2D;
  --ink-soft: #2A3A52;
  --ember: #E86A33;
  --ember-deep: #C9531F;
  --bone: #F5F1E8;
  --bone-deep: #EAE3D3;
  --white: #FFFFFF;
  --good: #2E7D4F;
  --warn: #C94F1F;
  --radius: 12px;
  --shadow: 0 2px 14px rgba(16, 27, 45, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Barlow", system-ui, -apple-system, sans-serif;
  background: var(--bone);
  color: var(--ink);
  min-height: 100vh;
  min-height: 100dvh;
}

.wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 20px 48px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Header */
.qhead {
  display: flex; align-items: center; justify-content: center;
  position: relative; padding: 18px 0 10px;
}
.qhead .back {
  position: absolute; left: 0; top: 14px;
  background: none; border: none; cursor: pointer; padding: 8px;
  color: var(--ink-soft); font-size: 22px; line-height: 1;
}
.qhead .logo {
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  font-size: 17px; color: var(--ink);
}
.qhead .logo b { color: var(--ember); }

/* Progress */
.progress { height: 4px; background: var(--bone-deep); border-radius: 2px; overflow: hidden; margin-bottom: 26px; }
.progress i { display: block; height: 100%; background: var(--ember); border-radius: 2px; transition: width 0.35s ease; }

/* Screen content */
.screen { flex: 1; display: flex; flex-direction: column; animation: fadein 0.28s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.kicker {
  font-family: "Barlow Condensed", sans-serif; text-transform: uppercase;
  letter-spacing: 0.16em; font-size: 13px; font-weight: 600; color: var(--ember);
  margin-bottom: 10px; text-align: center;
}
h1.qtitle {
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-weight: 700; font-size: clamp(26px, 6.4vw, 34px); line-height: 1.12;
  text-align: center; margin-bottom: 10px;
}
.qsub { text-align: center; color: var(--ink-soft); font-size: 15.5px; line-height: 1.45; margin-bottom: 24px; }

/* Options */
.opts { display: flex; flex-direction: column; gap: 12px; }
.opt {
  display: flex; align-items: center; gap: 14px; width: 100%;
  background: var(--white); border: 2px solid var(--white);
  border-radius: var(--radius); padding: 16px 18px;
  font-family: inherit; font-size: 16.5px; font-weight: 500; color: var(--ink);
  text-align: left; cursor: pointer; box-shadow: var(--shadow);
  transition: border-color 0.12s ease, transform 0.08s ease;
}
.opt:active { transform: scale(0.985); }
.opt.sel { border-color: var(--ember); }
.opt .tick {
  flex: 0 0 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--bone-deep); position: relative;
}
.opt.sel .tick { border-color: var(--ember); background: var(--ember); }
.opt.sel .tick::after {
  content: ""; position: absolute; left: 6px; top: 2.5px;
  width: 5px; height: 9px; border: solid #fff; border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

/* Buttons */
.btn {
  display: block; width: 100%; border: none; cursor: pointer;
  background: var(--ember); color: #fff;
  font-family: "Barlow Condensed", sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 19px;
  padding: 17px 24px; border-radius: 999px; margin-top: 26px;
  box-shadow: 0 4px 16px rgba(232, 106, 51, 0.35);
  transition: background 0.12s ease, transform 0.08s ease;
}
.btn:active { transform: scale(0.985); }
.btn:hover { background: var(--ember-deep); }
.btn:disabled { background: #d8cfc0; box-shadow: none; cursor: default; }

/* Interstitial */
.interstitial { text-align: center; padding-top: 4vh; }
.interstitial .body {
  font-size: 17.5px; line-height: 1.55; color: var(--ink-soft);
  white-space: pre-line; margin-top: 6px;
}
.interstitial .rule { width: 54px; height: 3px; background: var(--ember); margin: 22px auto; border-radius: 2px; }

/* Inputs */
.fields { display: flex; gap: 12px; }
.fields .fld { flex: 1; }
.fld label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.fld input {
  width: 100%; padding: 15px 14px; font-size: 18px; font-family: inherit;
  border: 2px solid var(--bone-deep); border-radius: var(--radius);
  background: var(--white); color: var(--ink); outline: none;
}
.fld input:focus { border-color: var(--ember); }

/* Gauge */
.gauge-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 22px; margin-top: 8px; }
.gauge-name {
  font-family: "Barlow Condensed", sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 15px; color: var(--ink-soft);
}
.gauge-score { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 46px; line-height: 1; margin: 6px 0 2px; }
.gauge-band { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 14px; }
.gauge-note { font-size: 13px; color: var(--ink-soft); margin-top: 12px; font-style: italic; }
.provisional-tag {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ember); background: rgba(232,106,51,0.1);
  border-radius: 4px; padding: 3px 8px; margin-bottom: 10px;
}

/* Loading theater */
.loading { text-align: center; padding-top: 10vh; }
.loading .bar { height: 8px; background: var(--bone-deep); border-radius: 4px; overflow: hidden; margin: 30px 0 22px; }
.loading .bar i { display: block; height: 100%; width: 0; background: var(--ember); border-radius: 4px; transition: width 0.5s ease; }
.loading .step { font-size: 16.5px; color: var(--ink-soft); min-height: 24px; }
.loading .step.done { color: var(--good); }
.load-steps { display: flex; flex-direction: column; gap: 10px; text-align: left; max-width: 320px; margin: 0 auto; }
.load-steps .ls { display: flex; gap: 10px; align-items: baseline; font-size: 15.5px; color: var(--ink-soft); opacity: 0.35; transition: opacity 0.3s; }
.load-steps .ls.active { opacity: 1; }
.load-steps .ls.done { opacity: 1; color: var(--good); }
.load-steps .ls .m { font-weight: 700; }

/* Email */
.email-screen input[type="email"] {
  width: 100%; padding: 17px 16px; font-size: 17px; font-family: inherit;
  border: 2px solid var(--bone-deep); border-radius: 999px; background: var(--white);
  outline: none; text-align: center;
}
.email-screen input[type="email"]:focus { border-color: var(--ember); }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: 13px; color: var(--ink-soft); line-height: 1.45; }
.consent input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--ember); flex: 0 0 auto; }
.err { color: var(--warn); font-size: 14px; text-align: center; margin-top: 10px; min-height: 18px; }

/* Momentum */
.mbullets { list-style: none; margin: 18px 0; display: flex; flex-direction: column; gap: 12px; }
.mbullets li { display: flex; gap: 12px; background: var(--white); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); font-size: 15.5px; line-height: 1.4; }
.mbullets li::before { content: "✓"; color: var(--good); font-weight: 700; }
.founder-line { font-style: italic; color: var(--ink-soft); text-align: center; font-size: 15.5px; line-height: 1.5; margin-top: 18px; padding: 0 8px; }

/* Results */
.results h1.qtitle { margin-bottom: 4px; }
.res-gauges { display: flex; flex-direction: column; gap: 14px; margin: 20px 0; }
.res-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.res-card.weak { border: 2px solid var(--ember); }
.res-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.res-name { font-family: "Barlow Condensed", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 15px; }
.res-score { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 30px; }
.res-blurb { font-size: 13.5px; color: var(--ink-soft); margin-top: 8px; }
.weak-flag { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ember); }
.echo, .dare {
  background: var(--white); border-left: 4px solid var(--ember); border-radius: 8px;
  box-shadow: var(--shadow); padding: 16px 18px; font-size: 15.5px; line-height: 1.5; margin: 14px 0;
}
.dare { border-left-color: var(--good); }
.reset-box {
  background: var(--ink); color: var(--bone); border-radius: var(--radius);
  padding: 26px 22px; margin: 22px 0 8px; text-align: center;
}
.reset-box h2 { font-family: "Barlow Condensed", sans-serif; font-size: 26px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }
.reset-box p { font-size: 15.5px; line-height: 1.5; color: #D8D2C4; }
.reset-box .btn { margin-top: 20px; }
.guarantee { font-size: 12.5px; color: #B9B29F; margin-top: 14px; line-height: 1.45; }
.founding { margin-top: 12px; font-size: 13.5px; color: var(--ember); font-weight: 600; }

/* Offer pricing + real countdown */
.price-row { display: flex; align-items: baseline; justify-content: center; gap: 12px; margin: 18px 0 4px; }
.price-full { font-family: "Barlow Condensed", sans-serif; font-size: 24px; color: #8b8574; text-decoration: line-through; }
.price-quiz { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 44px; color: var(--ember); line-height: 1; }
.price-tag { font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bone); background: rgba(232,106,51,0.25); border-radius: 4px; padding: 4px 8px; }
.rate-line { font-size: 13px; color: #D8D2C4; margin-top: 8px; }
.timerbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  background: var(--ink); color: var(--bone);
  padding: 13px 18px calc(13px + env(safe-area-inset-bottom));
  font-size: 15px; box-shadow: 0 -4px 16px rgba(16,27,45,0.25);
}
.timerbar b { color: var(--ember); }
.timerbar .t {
  font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 22px;
  color: var(--ember); min-width: 58px; text-align: center;
  background: rgba(232,106,51,0.15); border-radius: 6px; padding: 2px 10px;
}
.timerbar.expired { background: #3a3630; font-size: 13.5px; }
.results { padding-bottom: 74px; } /* room for the sticky bar */
.aesthetic-line { text-align: center; font-size: 14px; color: var(--ink-soft); font-style: italic; margin: 16px 0 4px; }
.close-line { text-align: center; font-size: 15.5px; line-height: 1.5; color: var(--ink); font-weight: 500; margin: 18px 0; }
.disclosure { font-size: 11.5px; color: #8b8574; line-height: 1.5; margin-top: 26px; }

/* SVG band gauge */
.bandgauge { width: 100%; height: auto; display: block; margin-top: 6px; }

@media (min-width: 640px) {
  .wrap { padding-top: 8px; }
}
