/* ============================================================
   What keeps you stuck, dark aesthetic.
   Same system as the Emotional Language Wheel and the couples
   assessments: navy radial ground, Manrope, teal accent,
   hairline borders, ambient orbs.
   ============================================================ */

:root {
  --navy:        #262E3B;
  --navy-deep:   #1B222D;
  --navy-lift:   #2E3849;
  --navy-elev:   #35415A;

  --white:       #FFFFFF;
  --muted:       rgba(255, 255, 255, 0.66);
  --muted-2:     rgba(255, 255, 255, 0.42);
  --dim:         rgba(255, 255, 255, 0.28);

  --line:        rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);

  --teal:        #18C0C0;
  --teal-soft:   rgba(24, 192, 192, 0.18);
  --teal-tint:   rgba(24, 192, 192, 0.10);
  --teal-glow:   rgba(24, 192, 192, 0.35);

  --amber:       #E8B551;
  --red:         #E38070;
  --green:       #5FCB89;

  --font-body:    'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 680px;
  --radius-sm: 10px;
  --radius:    14px;
  --radius-lg: 18px;

  --shadow-1: 0 1px 2px rgba(0,0,0,.25), 0 6px 20px rgba(0,0,0,.18);
  --shadow-2: 0 2px 4px rgba(0,0,0,.28), 0 16px 40px rgba(0,0,0,.24);

  --ease-out: cubic-bezier(.2,.7,.3,1);
  --dur: 420ms;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--navy-deep);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(900px 600px at 50% -10%, rgba(24,192,192,.09), transparent 62%),
              radial-gradient(1200px 800px at 50% 110%, rgba(24,192,192,.05), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .5;
  pointer-events: none;
  z-index: 0;
}
.orb.a { width: 420px; height: 420px; top: -120px; left: -140px; background: rgba(24,192,192,.16); }
.orb.b { width: 520px; height: 520px; bottom: -200px; right: -180px; background: rgba(53,65,90,.5); }

#app {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 24px 96px;
}

/* ---------- Type ---------- */
h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 6vw, 42px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}
h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 27px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 40px 0 12px;
}
h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 28px 0 8px;
}
p { margin: 0 0 16px; color: var(--muted); }
.teal { color: var(--teal); }

.eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 14px;
}
.lede {
  font-size: 19px;
  line-height: 1.58;
  color: var(--muted);
  margin: 0 0 22px;
}
.meta {
  font-size: 14.5px;
  color: var(--muted-2);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--teal);
  color: var(--navy-deep);
  cursor: pointer;
  text-decoration: none;
  transition: transform 140ms var(--ease-out), box-shadow 140ms var(--ease-out), background 140ms;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px var(--teal-glow); }
.btn:active { transform: translateY(0); }
.btn.ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--line-strong);
}
.btn.ghost:hover { background: rgba(255,255,255,.05); box-shadow: none; }
.btn[disabled] { opacity: .45; cursor: default; transform: none; box-shadow: none; }

.btn-link {
  background: none;
  border: none;
  color: var(--muted-2);
  font-family: var(--font-body);
  font-size: 15px;
  cursor: pointer;
  padding: 8px 0;
}
.btn-link:hover { color: var(--white); }

/* ---------- The loop ---------- */
.loop-wrap {
  display: flex;
  justify-content: center;
  margin: 8px 0 28px;
}
.loop-wrap svg { width: 100%; max-width: 380px; height: auto; overflow: visible; }

.node-ring   { fill: none; stroke: rgba(255,255,255,.10); stroke-width: 7; }
/* How many of the five you have answered. Sits under the teal one. */
.node-seen   { fill: none; stroke: rgba(255,255,255,.26); stroke-width: 7; stroke-linecap: round;
               transition: stroke-dashoffset var(--dur) var(--ease-out); }
/* How many of them counted. */
.node-fill   { fill: none; stroke: var(--teal); stroke-width: 7; stroke-linecap: round;
               transition: stroke-dashoffset var(--dur) var(--ease-out), stroke var(--dur); }
.node-disc   { fill: var(--navy-lift); stroke: rgba(255,255,255,.08); stroke-width: 1; }
.node-label  { fill: var(--muted); font-family: var(--font-display); font-size: 13px;
               font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.node-count  { fill: var(--white); font-family: var(--font-display); font-size: 15px; font-weight: 700; }

.flow        { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 2; }
.flow-head   { fill: rgba(255,255,255,.22); }

/* The part you are being asked about. A stroked ring here reads as a full
   gauge, so the marker is the disc lifting and the label brightening. */
.node-g.is-active .node-label { fill: var(--white); }
.node-g.is-active .node-disc  { fill: var(--navy-elev); }

/* All five answered. The track turns from grey to teal and the name comes
   up to white, so at a glance you can see which parts are behind you and
   which are still to come. */
.node-g.is-done .node-seen  { stroke: rgba(24, 192, 192, .30); }
.node-g.is-done .node-ring  { stroke: rgba(24, 192, 192, .12); }
.node-g.is-done .node-label { fill: var(--white); }
.node-g.is-done .node-count { fill: var(--white); }

/* The break. Drawn on the arc leading INTO the part that failed, because
   that is where the circuit stops carrying. */
.flow.is-broken { stroke: var(--red); stroke-dasharray: 7 9; }
.node-g.is-broken .node-fill { stroke: var(--red); }
.node-g.is-broken .node-label { fill: var(--red); }
.node-g.is-broken .node-disc { stroke: var(--red); stroke-width: 2; }

/* ---------- One question at a time ---------- */
.q-card {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 30px 26px;
  box-shadow: var(--shadow-1);
}
.q-step {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 14px;
}
.q-text {
  font-family: var(--font-display);
  font-size: clamp(20px, 3.6vw, 24px);
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--white);
  margin: 0 0 26px;
}
/* Four options per item rather than yes and no, because the research is
   clear that agree-and-disagree scales give a lay reader a comfortable
   middle to hide in. Stacked, because the option text is a phrase. */
.q-options { display: grid; gap: 10px; }
.opt {
  text-align: left;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--white);
  background: rgba(255,255,255,.035);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 14px 18px;
  cursor: pointer;
  transition: background 140ms var(--ease-out), border-color 140ms var(--ease-out), transform 140ms var(--ease-out);
}
.opt:hover { background: rgba(255,255,255,.07); border-color: var(--teal); transform: translateX(2px); }
.opt.is-chosen { background: var(--teal-soft); border-color: var(--teal); }

/* Keeps the reader on one thing for all twenty questions. Without it they
   answer about a different goal each time and the blocks mean nothing. */
.hold {
  border-left: 2px solid var(--teal);
  padding: 2px 0 2px 18px;
  margin: 8px 0 22px;
}
.hold p { margin: 0; color: var(--white); font-size: 16.5px; }

/* What a twenty-item tool may and may not claim, said on the page. */
.honesty {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted-2);
  margin: 26px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.q-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}
.q-hint { font-size: 13.5px; color: var(--dim); margin: 0; }

.progress {
  height: 3px;
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  overflow: hidden;
  margin: 0 0 26px;
}
.progress i {
  display: block;
  height: 100%;
  background: var(--teal);
  border-radius: 999px;
  transition: width var(--dur) var(--ease-out);
}

/* ---------- Result ---------- */
.verdict {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  margin: 0 0 22px;
  box-shadow: var(--shadow-1);
}
.verdict h2 { margin-top: 0; }

.scores { display: grid; gap: 12px; margin: 22px 0 32px; }
.score-row {
  display: grid;
  grid-template-columns: 116px 1fr 40px;
  gap: 14px;
  align-items: center;
}
.score-name { font-size: 15px; font-weight: 600; color: var(--white); }
/* Both are spans inside a grid row. Without display:block an inline element
   has no box, so height does nothing and the bar renders as an empty line.
   Caught in testing, 28 Sep 2026: every bar looked empty at every score. */
.score-track { display: block; height: 6px; background: rgba(255,255,255,.08); border-radius: 999px; overflow: hidden; }
.score-fill  { display: block; height: 6px; background: var(--teal); border-radius: 999px; transition: width 800ms var(--ease-out); }
.score-row.is-broken .score-fill { background: var(--red); }
.score-row.is-broken .score-name { color: var(--red); }
.score-num { text-align: right; font-size: 14.5px; font-weight: 700; color: var(--muted); }

.gate {
  background: var(--teal-tint);
  border: 1px solid var(--teal-soft);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  margin: 28px 0;
}
.gate h3 { margin-top: 0; }
.gate .row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.gate input {
  flex: 1 1 180px;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 14px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(0,0,0,.18);
  color: var(--white);
}
.gate input::placeholder { color: var(--dim); }
.gate input:focus { outline: none; border-color: var(--teal); }
.gate .fine { font-size: 13px; color: var(--muted-2); margin: 14px 0 0; }
.gate .err { color: var(--amber); font-size: 14.5px; margin: 12px 0 0; min-height: 1px; }

.answers-list { margin: 0; padding: 0; list-style: none; }
.answers-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
  color: var(--muted);
}
.answers-list li:last-child { border-bottom: none; }
.answers-list .a { font-weight: 700; color: var(--muted-2); }
.answers-list .a.counts { color: var(--teal); }

/* Two ways on, side by side, sitting under the result rather than under
   twenty questions. */
.offer { margin: 32px 0 8px; }
.offer > .eyebrow { margin-bottom: 16px; }
.offer-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.offer-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 26px 24px;
  box-shadow: var(--shadow-1);
}
.offer-card h3 { margin: 0 0 10px; font-size: 21px; }
.offer-card p { font-size: 16px; line-height: 1.55; flex: 1; }
.offer-card .btn { align-self: flex-start; margin-top: 6px; }

/* The answers come last and start closed. Putting them between somebody's
   result and their next step asks them to read past the offer to reach it. */
.answers-fold { margin: 28px 0 0; border-top: 1px solid var(--line); padding-top: 18px; }
.answers-fold > summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
  list-style: none;
}
.answers-fold > summary::-webkit-details-marker { display: none; }
/* A chevron rather than a plus and a dash, because the dash character that
   reads best here is an en dash and those are banned everywhere. */
.answers-fold > summary::before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 10px;
  border-right: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: translateY(-2px) rotate(-45deg);
  transition: transform 180ms var(--ease-out);
}
.answers-fold[open] > summary::before { transform: translateY(1px) rotate(45deg); }
.answers-fold > summary:hover { color: var(--white); }
.answers-fold .answers-list { margin-top: 14px; }

@media (max-width: 620px) {
  .offer-pair { grid-template-columns: 1fr; }
}

.nav-row { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px 48px;
  font-size: 14px;
}
.site-footer a { color: var(--muted-2); text-decoration: none; margin: 0 12px; }
.site-footer a:hover { color: var(--white); }

@media (max-width: 560px) {
  #app { padding: 40px 18px 72px; }
  .q-card, .verdict, .offer, .gate { padding: 22px 20px; }
  .score-row { grid-template-columns: 92px 1fr 34px; gap: 10px; }
  .q-answers { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
