/* ============================================================
   Halizona Marketing Score, /scorecard/
   Sits on top of site.css and reuses its tokens. Nothing here
   redefines a brand value, it only lays out the app.
   ============================================================ */

/* ---------- hero, same treatment as /about/ ---------- */
.sc-hero{
  position:relative;
  background:
    url("/assets/images/hz-yellow.png") right -40px bottom -30px / clamp(620px,66vw,1040px) auto no-repeat,
    url("/assets/images/website-flat.jpg") center/cover var(--green);
  border-radius:0 0 36px 36px;
  padding:clamp(108px,14vh,150px) 0 0;
  overflow:hidden;
}
.sc-hero .wrap{max-width:1320px;padding-inline:clamp(24px,4vw,80px)}
.sc-hero-inner{
  display:grid;grid-template-columns:1fr auto;align-items:end;
  gap:clamp(20px,4vw,56px);min-height:min(48vh,420px);
}
.sc-hero-inner > div{padding-bottom:clamp(38px,7vh,74px)}
.sc-hero .eyebrow{color:var(--purple);margin-bottom:14px}
.sc-hero h1{
  font-size:clamp(2.4rem,6vw,4.6rem);line-height:.98;letter-spacing:-.03em;
  color:var(--purple);text-transform:uppercase;font-weight:800;
}
.sc-hero-sub{
  margin-top:20px;max-width:46ch;font-size:clamp(1rem,1.6vw,1.15rem);
  font-weight:600;color:var(--purple);line-height:1.55;
}
.sc-hero-lockup{
  display:flex;flex-wrap:wrap;gap:.3em .4em;margin-top:22px;
  font-size:clamp(1rem,1.7vw,1.3rem);font-weight:800;letter-spacing:-.02em;
}
.sc-hero-lockup span{background:var(--purple);color:#fff;padding:.12em .38em}
.sc-hero-photo{width:min(30vw,420px);height:auto;display:block;align-self:end}
@media (max-width:860px){
  .sc-hero-inner{grid-template-columns:1fr}
  .sc-hero-photo{display:none}
  .sc-hero{border-radius:0 0 22px 22px}
}

/* ---------- app shell ---------- */
.sc-app-wrap{padding-top:clamp(40px,6vh,72px)}
.sc-app{max-width:820px;margin-inline:auto}
.sc-noscript{
  max-width:820px;margin:0 auto 28px;padding:18px 22px;
  background:#fff6d6;border:2px solid var(--yellow);border-radius:var(--radius);
  color:var(--purple);font-size:1rem;
}

/* ---------- sticky stage tracker ----------
   Sticks under the fixed header while you work through the questions. It lives
   INSIDE the form, so it releases on its own once the last question scrolls
   past rather than trailing you down onto the result.
   --sc-sticky-top is written by the page script from the header's measured
   height, for the same reason scrollToTopOf measures it: the header is fixed,
   gains a border once scrolled, and hard-coding its height drifts. */
.sc-progress{
  position:sticky;top:var(--sc-sticky-top,88px);z-index:20;
  max-width:820px;margin:0 auto 30px;
  background:var(--white);border:1px solid var(--line);border-radius:var(--radius);
  padding:14px 18px 12px;box-shadow:0 8px 24px rgba(48,0,96,.07);
}
/* Once it is stuck it meets the header with no gap, so the top corners round
   against nothing and read as a mistake. Squaring them only while stuck needs
   a scroll observer; squaring them always is one line and looks deliberate. */
.sc-progress{border-top-left-radius:0;border-top-right-radius:0}
.sc-prog-stages{
  list-style:none;display:grid;grid-template-columns:repeat(3,1fr);
  gap:8px;margin:0 0 12px;padding:0;
}
.sc-prog-stages li{
  display:flex;align-items:center;gap:8px;min-width:0;
  font-size:.82rem;font-weight:700;color:var(--purple);opacity:.42;
  transition:opacity .3s var(--ease);
}
.sc-prog-stages li span{min-width:0;line-height:1.25}
.sc-prog-stages li span b{
  display:block;font-size:.6rem;font-weight:800;letter-spacing:.14em;
  text-transform:uppercase;color:var(--green-deep);opacity:.85;
}
.sc-prog-stages li.is-current span b{opacity:1}
.sc-prog-stages li i{
  flex:0 0 auto;width:20px;height:20px;border-radius:50%;
  border:2px solid var(--line);background:var(--white);
  display:grid;place-items:center;
  transition:background .3s var(--ease),border-color .3s var(--ease);
}
.sc-prog-stages li.is-current{opacity:1}
.sc-prog-stages li.is-current i{border-color:var(--green);background:var(--green)}
.sc-prog-stages li.is-done{opacity:.85}
.sc-prog-stages li.is-done i{
  border-color:var(--green);background:var(--green);
  /* a tick, drawn rather than shipped as an icon file */
  background-image:linear-gradient(45deg,transparent 42%,#fff 42%,#fff 52%,transparent 52%),
                   linear-gradient(-45deg,transparent 60%,#fff 60%,#fff 70%,transparent 70%);
  background-size:100% 100%;
}
.sc-progress-bar{height:8px;border-radius:999px;background:var(--bg-alt);overflow:hidden}
.sc-progress-bar span{
  display:block;height:100%;width:0;border-radius:999px;
  background:var(--green);transition:width .35s var(--ease);
}
.sc-progress-text{
  margin-top:8px;font-size:.78rem;font-weight:800;letter-spacing:.14em;
  text-transform:uppercase;color:var(--purple);opacity:.6;
}
@media (max-width:560px){
  .sc-progress{padding:12px 14px 10px}
  .sc-prog-stages{gap:6px}
  .sc-prog-stages li{font-size:.74rem;gap:6px;align-items:center}
  .sc-prog-stages li span b{font-size:.55rem;letter-spacing:.1em}
  .sc-prog-stages li i{width:17px;height:17px}
}
@media (prefers-reduced-motion:reduce){
  .sc-progress-bar span,.sc-prog-stages li,.sc-prog-stages li i{transition:none}
}

.sc-step{border:0;padding:0;margin:0}
.sc-step legend{
  display:flex;align-items:center;gap:14px;flex-wrap:wrap;
  font-size:clamp(1.6rem,3.4vw,2.4rem);font-weight:800;letter-spacing:-.025em;
  color:var(--purple);line-height:1.1;margin-bottom:.5rem;padding:0;
}
.sc-step-no{
  flex:0 0 auto;font-size:.72rem;font-weight:800;letter-spacing:.14em;
  text-transform:uppercase;color:var(--green-deep);
  border:2px solid var(--green);border-radius:999px;padding:.34rem .7rem;
}
.sc-step-intro{color:#3d2a58;margin-bottom:2rem;max-width:60ch}

/* ---------- the business fields ---------- */
.sc-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.sc-field{display:flex;flex-direction:column;gap:.4rem;margin-bottom:16px}
.sc-field-wide{max-width:none}
.sc-field label{
  font-size:.76rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;
  color:var(--purple);
}
.sc-field input,.sc-field select{
  width:100%;font:inherit;font-size:1rem;color:var(--ink);
  background:var(--bg-alt);border:2px solid var(--line);border-radius:12px;
  padding:.8rem .95rem;transition:border-color .2s,background .2s;
}
.sc-field input:focus-visible,.sc-field select:focus-visible{
  outline:3px solid var(--green);outline-offset:2px;
  border-color:var(--green);background:#fff;
}
.sc-field input.bad{border-color:#d8385a}
@media (max-width:640px){.sc-fields{grid-template-columns:1fr}}

/* ---------- a question ---------- */
.sc-q{
  padding:24px 0;border-top:2px solid var(--line);
}
.sc-q:first-of-type{border-top:0;padding-top:0}
.sc-q-text{
  font-size:clamp(1.02rem,1.8vw,1.18rem);font-weight:700;
  color:var(--purple);line-height:1.4;margin-bottom:1rem;max-width:62ch;
}
.sc-q-missing .sc-q-text{color:#d8385a}
.sc-q-missing .sc-opt-face{border-color:#f3b9c6}

/* the 0 to 5 scale. Six real radios, styled as a row of cards, wrapping to a
   column on a phone so the labels stay readable rather than truncating. */
.sc-opts{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}
.sc-opt{position:relative;display:block;cursor:pointer}
.sc-opt input{
  position:absolute;inset:0;width:100%;height:100%;
  opacity:0;margin:0;cursor:pointer;
}
.sc-opt-face{
  display:flex;flex-direction:column;gap:.35rem;height:100%;
  padding:.7rem .6rem .75rem;
  border:2px solid var(--line);border-radius:14px;background:#fff;
  font-size:.8rem;font-weight:600;color:#3d2a58;line-height:1.25;
  transition:border-color .18s,background .18s,transform .18s var(--ease);
}
.sc-opt-face b{
  font-size:.95rem;font-weight:800;color:var(--purple);
  display:inline-flex;align-items:center;justify-content:center;
  width:24px;height:24px;border-radius:50%;background:var(--bg-alt);
}
.sc-opt:hover .sc-opt-face{border-color:#cfc7de}
.sc-opt input:checked + .sc-opt-face{
  border-color:var(--green);background:#effbf5;
}
.sc-opt input:checked + .sc-opt-face b{background:var(--green);color:#fff}
.sc-opt input:focus-visible + .sc-opt-face{outline:3px solid var(--green);outline-offset:2px}
@media (prefers-reduced-motion:reduce){.sc-opt-face{transition:none}}
@media (max-width:900px){
  .sc-opts{grid-template-columns:repeat(3,1fr)}
}
@media (max-width:560px){
  .sc-opts{grid-template-columns:1fr;gap:6px}
  .sc-opt-face{flex-direction:row;align-items:center;gap:.7rem;padding:.6rem .8rem}
  .sc-opt-face b{flex:0 0 auto}
}

/* ---------- step navigation ---------- */
.sc-nav{
  display:flex;gap:12px;flex-wrap:wrap;justify-content:space-between;
  margin-top:2rem;padding-top:1.6rem;border-top:2px solid var(--line);
}
.sc-nav .btn{cursor:pointer;border:2px solid transparent}
.sc-nav .btn-ghost{background:transparent;color:var(--purple);border-color:var(--line)}
.sc-nav .btn-ghost:hover{border-color:var(--purple)}
.sc-nav .sc-next,.sc-nav #scSubmit{margin-left:auto}

/* ---------- result ---------- */
.sc-result{max-width:820px;margin-inline:auto}
.sc-result:focus{outline:none}
.sc-score-head{text-align:center;margin-bottom:2.4rem}
.sc-score{
  font-size:clamp(3.4rem,11vw,6rem);font-weight:800;letter-spacing:-.04em;
  color:var(--purple);line-height:1;margin:.4rem 0 .6rem;
}
.sc-score span{font-size:.34em;font-weight:800;opacity:.42;letter-spacing:-.02em}
.sc-band{font-size:clamp(1.4rem,3vw,2rem);color:var(--purple);letter-spacing:-.02em}
.sc-band-copy{margin:.8rem auto 0;max-width:56ch;color:#3d2a58;font-size:1.05rem}

.sc-bars{list-style:none;margin:0 0 2.6rem;padding:0;display:flex;flex-direction:column;gap:14px}
.sc-bar{display:grid;grid-template-columns:9.5rem 1fr auto;align-items:center;gap:14px}
.sc-bar-name{font-weight:800;color:var(--purple);font-size:.98rem}
.sc-bar-track{height:14px;border-radius:999px;background:var(--bg-alt);overflow:hidden}
.sc-bar-fill{
  display:block;height:100%;border-radius:999px;background:var(--green);
  animation:sc-grow .6s var(--ease) both;
}
@keyframes sc-grow{from{width:0 !important}}
@media (prefers-reduced-motion:reduce){.sc-bar-fill{animation:none}}
.sc-bar.is-low .sc-bar-fill{background:#e8a33c}
.sc-bar.is-high .sc-bar-fill{background:var(--green-deep)}
.sc-bar-num{font-weight:800;color:var(--purple);font-size:1.05rem;min-width:4.2rem;text-align:right}
.sc-bar-num i{font-style:normal;font-weight:700;opacity:.45;font-size:.8em}
@media (max-width:560px){
  .sc-bar{grid-template-columns:1fr auto;grid-template-areas:"name num" "track track";row-gap:6px}
  .sc-bar-name{grid-area:name}
  .sc-bar-num{grid-area:num}
  .sc-bar-track{grid-area:track}
}

.sc-opp{
  background:var(--purple);color:#fff;border-radius:var(--radius-lg);
  padding:clamp(26px,4vw,36px);margin-bottom:2rem;
}
.sc-opp .eyebrow{color:var(--green)}
.sc-opp h3{font-size:clamp(1.5rem,3vw,2.1rem);margin:.4rem 0 .7rem;letter-spacing:-.02em}
.sc-opp p{color:rgba(255,255,255,.9);font-size:1.05rem;max-width:60ch}
.sc-goal-line{
  margin-top:1.2rem;padding-top:1.2rem;
  border-top:1px solid rgba(255,255,255,.22);
  font-weight:600;
}

.sc-actions{margin-bottom:2.6rem}
.sc-actions h3{font-size:clamp(1.3rem,2.4vw,1.6rem);color:var(--purple);margin-bottom:1rem}
.sc-actions ol{margin:0;padding:0;list-style:none;counter-reset:sc}
.sc-actions li{
  counter-increment:sc;position:relative;
  padding:16px 20px 16px 62px;margin-bottom:10px;
  background:var(--bg-alt);border-radius:var(--radius);
  color:#3d2a58;font-size:1.02rem;line-height:1.5;
}
.sc-actions li::before{
  content:counter(sc);position:absolute;left:18px;top:15px;
  width:28px;height:28px;border-radius:50%;
  background:var(--green);color:#fff;
  display:flex;align-items:center;justify-content:center;
  font-weight:800;font-size:.9rem;
}

.sc-cta{
  border:2px solid var(--line);border-radius:var(--radius-lg);
  padding:clamp(26px,4vw,36px);
}
.sc-cta h3{font-size:clamp(1.35rem,2.6vw,1.8rem);color:var(--purple);letter-spacing:-.02em}
.sc-cta > p{margin:.7rem 0 1.6rem;color:#3d2a58;max-width:58ch}
.sc-cta-form button{
  width:100%;justify-content:center;margin-top:.4rem;cursor:pointer;
  border:0;border-radius:999px;padding:1rem 1.6rem;
  background:var(--green);color:#fff;
  font-weight:800;font-size:1rem;text-transform:uppercase;letter-spacing:.06em;
  transition:transform .25s var(--ease),opacity .2s;
}
.sc-cta-form button:hover{transform:translateY(-2px)}
.sc-cta-form button[disabled]{opacity:.6;transform:none;cursor:default}
.sc-cta-form button:focus-visible{outline:3px solid var(--purple);outline-offset:3px}
.sc-hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.sc-msg{margin-top:.9rem;font-weight:700;font-size:.96rem;min-height:1.2em;color:#3d2a58}
.sc-msg.ok{color:#0e8052}
.sc-msg.err{color:#d8385a}
.sc-small{margin-top:.8rem;font-size:.85rem;color:rgba(48,0,96,.62);line-height:1.5}

.sc-restart{text-align:center;margin-top:2rem}
.sc-link{
  background:none;border:0;padding:0;cursor:pointer;font:inherit;
  font-weight:800;color:var(--green-deep);
  border-bottom:2px solid currentColor;
}
.sc-link:hover{color:var(--purple)}
.sc-link:focus-visible{outline:3px solid var(--green);outline-offset:3px}

/* ---------- text-safe green ----------
   site.css's --green-deep #13a86a measures 3.07:1 on white, under the 4.5:1
   AA floor for normal text. Fine as a fill or a border, not as small type.
   #0e8052 is 4.97:1 and still reads as the brand green. Same value used on
   the Halifax local site for the same reason. */
:root{--green-text:#0e8052}
.sc-step-no{color:var(--green-text)}
.sc-link{color:var(--green-text)}
.sc-msg.ok{color:var(--green-text)}

/* ---------- stage 3: booking ----------
   Only revealed once their details have actually sent. The frame is a plain
   iframe from whichever scheduler is chosen, sized to the tall side because
   every one of them renders a month grid plus a slot list. */
.sc-book{
  margin-top:2rem;padding:clamp(26px,4vw,36px);
  border:2px solid var(--green);border-radius:var(--radius-lg);
  background:#f4fdf9;
}
.sc-book .eyebrow{color:var(--green-text)}
.sc-book h3{font-size:clamp(1.35rem,2.6vw,1.8rem);color:var(--purple);letter-spacing:-.02em;margin:.3rem 0 .7rem}
.sc-book > p{color:#3d2a58;max-width:60ch}
/* our own diary rather than a third-party embed */
.sc-slots{margin-top:1.6rem}
.sc-slots-intro{font-weight:700;color:var(--purple);margin-bottom:1rem}
.sc-slots-loading,.sc-slots-none{color:#3d2a58;font-size:.98rem;margin-bottom:.8rem}
.sc-slots-none a{color:var(--green-text);font-weight:700;border-bottom:2px solid currentColor}
.sc-day{
  display:grid;grid-template-columns:8.5rem 1fr;gap:14px;align-items:start;
  padding:14px 0;border-top:1px solid var(--line);
}
.sc-day:first-of-type{border-top:0;padding-top:0}
.sc-day-name{font-weight:800;color:var(--purple);font-size:.95rem;padding-top:.45rem}
.sc-day-times{display:flex;flex-wrap:wrap;gap:8px}
.sc-slot{
  font:inherit;font-size:.95rem;font-weight:800;cursor:pointer;
  color:var(--purple);background:#fff;
  border:2px solid var(--line);border-radius:999px;padding:.5rem 1rem;
  transition:border-color .18s,background .18s,color .18s;
}
.sc-slot:hover{border-color:var(--green);background:#effbf5}
.sc-slot:focus-visible{outline:3px solid var(--green);outline-offset:2px}
.sc-slot[disabled]{opacity:.55;cursor:default}
@media (max-width:560px){
  .sc-day{grid-template-columns:1fr;gap:8px}
  .sc-day-name{padding-top:0}
}

/* confirmation, replacing the list once a slot is claimed */
.sc-booked{margin-top:1.6rem;text-align:center;padding:26px 20px}
.sc-booked-tick{
  width:52px;height:52px;margin:0 auto .8rem;border-radius:50%;
  background:var(--green);color:#fff;font-size:1.7rem;font-weight:800;
  display:flex;align-items:center;justify-content:center;
}
.sc-booked h4{font-size:clamp(1.2rem,2.4vw,1.6rem);color:var(--purple);letter-spacing:-.02em}
.sc-booked p{color:#3d2a58;margin-top:.5rem}
.sc-book-alt{margin-top:1.2rem;font-size:.95rem;color:#3d2a58}
.sc-book-alt a{color:var(--green-text);font-weight:700;border-bottom:2px solid currentColor}
.sc-book-alt a:hover{color:var(--purple)}

/* ============================================================
   Confirm before booking, and lifting the form off the page.
   The first pass was correct but flat: white form on a white
   page, six identical grey option chips, thin borders.
   ============================================================ */

/* ---------- the form now sits as a card on a tinted page ---------- */
.sc-app-wrap{background:var(--bg-alt)}
.sc-app,
.sc-result{
  background:#fff;border-radius:var(--radius-lg);
  padding:clamp(26px,4vw,44px);
  box-shadow:0 18px 50px rgba(48,0,96,.10);
}
/* The tracker used to sit INSIDE the .sc-app card and borrow its padding.
   It is now a sibling above the card, because .sc-app is overflow:hidden (it
   has to be, to clip the bled-to-edge step photographs against the card's
   radius) and overflow:hidden on an ancestor kills position:sticky outright. */

/* progress reads as a journey, not a loading bar */
.sc-progress-bar{height:10px;background:#efecf6}
.sc-progress-bar span{
  background:linear-gradient(90deg,var(--green),var(--green-deep));
}
.sc-progress-text{margin-top:10px;opacity:1;color:var(--purple)}

/* ---------- the step heading carries the brand ---------- */
.sc-step legend{
  width:100%;padding-bottom:.6rem;margin-bottom:1rem;
  border-bottom:2px solid var(--line);
}
.sc-step-no{
  background:var(--green);border-color:var(--green);color:#fff;
}

/* ---------- questions read as questions ---------- */
.sc-q{padding:26px 0}
.sc-q-text{
  font-size:clamp(1.06rem,1.9vw,1.24rem);font-weight:800;letter-spacing:-.01em;
}

/* The six options now shade from muted to brand green, so the row reads as a
   scale at a glance instead of six identical chips. Number badge only, so the
   card itself stays calm. */
.sc-opt:nth-child(1) .sc-opt-face b{background:#efecf6;color:#7c6b96}
.sc-opt:nth-child(2) .sc-opt-face b{background:#e4eff0;color:#5f7f83}
.sc-opt:nth-child(3) .sc-opt-face b{background:#d8f0e4;color:#3f8a6d}
.sc-opt:nth-child(4) .sc-opt-face b{background:#c3ead6;color:#237a58}
.sc-opt:nth-child(5) .sc-opt-face b{background:#9fe0c3;color:#136b48}
.sc-opt:nth-child(6) .sc-opt-face b{background:#6fd3ab;color:#0b5537}
.sc-opt-face{background:var(--bg-alt);border-color:transparent}
.sc-opt:hover .sc-opt-face{background:#fff;border-color:#cfc7de}
.sc-opt input:checked + .sc-opt-face{
  background:#effbf5;border-color:var(--green);
}
.sc-opt input:checked + .sc-opt-face b{background:var(--green) !important;color:#fff !important}

/* ---------- confirm before it goes in the diary ---------- */
.sc-confirm{
  margin-top:1.4rem;padding:22px 24px;
  background:#fff;border:2px solid var(--green);border-radius:var(--radius-lg);
}
.sc-confirm-label{
  font-size:.72rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;
  color:var(--green-text);
}
.sc-confirm-when{
  font-size:clamp(1.25rem,2.6vw,1.7rem);font-weight:800;letter-spacing:-.02em;
  color:var(--purple);margin-top:.25rem;line-height:1.15;
}
.sc-confirm-detail{margin-top:.4rem;color:#3d2a58;font-size:.98rem}
.sc-confirm-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:1.1rem}
.sc-confirm-yes,.sc-confirm-no{
  font:inherit;font-weight:800;cursor:pointer;border-radius:999px;
  padding:.85rem 1.5rem;font-size:.95rem;
  transition:transform .2s var(--ease),background .2s,border-color .2s;
}
.sc-confirm-yes{background:var(--green);color:#fff;border:2px solid var(--green)}
.sc-confirm-yes:hover{transform:translateY(-2px);background:var(--green-deep);border-color:var(--green-deep)}
.sc-confirm-yes[disabled]{opacity:.6;transform:none;cursor:default}
.sc-confirm-no{background:transparent;color:var(--purple);border:2px solid var(--line)}
.sc-confirm-no:hover{border-color:var(--purple)}
.sc-confirm-yes:focus-visible,.sc-confirm-no:focus-visible{outline:3px solid var(--purple);outline-offset:3px}
@media (prefers-reduced-motion:reduce){.sc-confirm-yes{transition:none}}

/* the chosen slot stays visibly chosen while the panel is open */
.sc-slot.is-chosen{
  background:var(--green);border-color:var(--green);color:#fff;
}

/* ============================================================
   Making the answer row read as a SCALE.
   Screenshotted the live page: forty near-identical pale boxes
   down the screen, the only graduation a 24px badge nobody
   notices. The row now joins into one segmented control that
   shades left to right, so 0 to 5 is legible at a glance and
   the page stops looking like a grid of empty cards.
   ============================================================ */

/* question numbering, from a CSS counter so the markup stays clean */
.sc-step{counter-reset:q}
.sc-q{counter-increment:q;padding:22px 0}
.sc-q-text::before{
  content:"Q" counter(q);
  display:inline-block;margin-right:.6rem;
  font-size:.72rem;font-weight:800;letter-spacing:.1em;
  color:var(--green-text);vertical-align:.18em;
}

/* one joined control, not six floating cards */
.sc-opts{
  gap:0;border-radius:14px;overflow:hidden;
  border:2px solid var(--line);
}
.sc-opt-face{
  border:0;border-radius:0;height:100%;
  border-left:1px solid rgba(48,0,96,.09);
  padding:.85rem .7rem .9rem;
  gap:.5rem;
}
.sc-opt:first-child .sc-opt-face{border-left:0}

/* the shade across the row IS the scale */
.sc-opt:nth-child(1) .sc-opt-face{background:#f4f2f8}
.sc-opt:nth-child(2) .sc-opt-face{background:#edf5f2}
.sc-opt:nth-child(3) .sc-opt-face{background:#e2f3ea}
.sc-opt:nth-child(4) .sc-opt-face{background:#d3efe0}
.sc-opt:nth-child(5) .sc-opt-face{background:#bfe8d2}
.sc-opt:nth-child(6) .sc-opt-face{background:#a6e0c2}

/* the badge is now a plain number, the colour does the work */
.sc-opt .sc-opt-face b{
  width:auto;height:auto;background:none !important;border-radius:0;
  font-size:1.18rem;line-height:1;color:var(--purple);opacity:.42;
}
.sc-opt:nth-child(6) .sc-opt-face b{opacity:.62}

.sc-opt:hover .sc-opt-face{background:#fff;border-color:transparent}
.sc-opt:hover .sc-opt-face b{opacity:.8}

/* chosen is unmistakable */
.sc-opt input:checked + .sc-opt-face{
  background:var(--purple) !important;color:#fff;
  box-shadow:none;
}
.sc-opt input:checked + .sc-opt-face b{color:var(--green) !important;opacity:1 !important}
.sc-opt input:focus-visible + .sc-opt-face{outline:3px solid var(--green);outline-offset:-3px}

/* ends of the scale get a quiet label so the direction is explicit */
.sc-opts::after{content:none}
.sc-q .sc-scale-ends{
  display:flex;justify-content:space-between;
  margin-top:.5rem;font-size:.72rem;font-weight:700;
  letter-spacing:.08em;text-transform:uppercase;color:#8d7fa6;
}

@media (max-width:900px){
  .sc-opts{grid-template-columns:repeat(3,1fr)}
  .sc-opt-face{border-top:1px solid rgba(48,0,96,.09)}
  .sc-opt:nth-child(-n+3) .sc-opt-face{border-top:0}
  .sc-opt:nth-child(4) .sc-opt-face{border-left:0}
}
@media (max-width:560px){
  .sc-opts{grid-template-columns:1fr}
  .sc-opt-face{border-left:0;border-top:1px solid rgba(48,0,96,.09);padding:.7rem .9rem}
  .sc-opt:first-child .sc-opt-face{border-top:0}
  .sc-opt:nth-child(4) .sc-opt-face{border-left:0}
}

/* ============================================================
   Imagery and motion.
   The photography is real Halizona work, one image per section,
   so each step has its own identity and the page stops being a
   uniform run of white cards. Motion is limited to two moments
   that mean something: arriving at a step, and the score being
   worked out. Both stop dead under prefers-reduced-motion.
   ============================================================ */

/* The step heading is a <legend>, and a browser draws a legend at the very
   top of its fieldset whatever comes before it in the markup, so the photo
   sits under the heading and the fieldset's own padding-top only moves the
   photo. The room above the heading has to come from the card. */
.sc-app{padding-top:clamp(28px,4vw,44px);overflow:hidden}
.sc-step{padding:0 clamp(26px,4vw,44px) clamp(26px,4vw,44px)}
.sc-step[data-step="0"]{padding-top:26px}
.sc-step-img{
  display:block;width:calc(100% + 2 * clamp(26px,4vw,44px));
  margin-left:calc(-1 * clamp(26px,4vw,44px));
  height:clamp(120px,17vw,190px);object-fit:cover;
  margin-bottom:22px;
}
/* a green rule under the photo ties it to the brand rather than leaving a
   bare photographic edge */
.sc-step-img + legend{padding-top:0}

.sc-step legend{border-bottom-color:var(--green)}

/* arriving at a step: a short rise, once, not a carousel */
@keyframes sc-step-in{
  from{opacity:0;transform:translateY(14px)}
  to{opacity:1;transform:none}
}
.sc-step.is-in{animation:sc-step-in .34s var(--ease) both}

/* the score climbing is the payoff, so give the number room not to jump */
.sc-score{font-variant-numeric:tabular-nums}

@media (prefers-reduced-motion:reduce){
  .sc-step.is-in{animation:none}
  .sc-bar-fill{animation:none}
}
@media (max-width:560px){
  .sc-step-img{height:120px;margin-bottom:18px}
}

/* ============================================================
   FIX: the selected answer showed a solid green block instead of
   its number.
   Two rules from separate styling passes were both !important on
   the same selector: an earlier one gave the badge a green
   BACKGROUND, a later one made its TEXT green. Green on green, so
   the digit disappeared and left a bar. This is the single
   authoritative checked state; nothing above it should set these.
   ============================================================ */
.sc-opt input:checked + .sc-opt-face{
  background:var(--purple) !important;
  color:#fff !important;
  box-shadow:none;
}
.sc-opt input:checked + .sc-opt-face b{
  background:none !important;
  width:auto !important;height:auto !important;
  border-radius:0 !important;
  color:var(--green) !important;
  opacity:1 !important;
}
/* the divider belonging to the option AFTER the selected one would otherwise
   draw a hairline against the purple */
.sc-opt:has(input:checked) + .sc-opt .sc-opt-face{border-left-color:transparent}

/* ---- call or coffee -------------------------------------------------- */
/* Added when the booking gained a second kind. A coffee is a REQUEST, not a
   booking, because the venue has to be agreed first, so the control that picks
   it sits above the confirm button where the decision is actually made. */
.sc-kind{border:0;margin:14px 0 0;padding:0;display:grid;gap:8px}
.sc-kind legend{
  padding:0;margin-bottom:9px;font-size:.72rem;font-weight:800;text-transform:uppercase;
  letter-spacing:.09em;color:var(--slate);
}
.sc-kind-opt{position:relative;display:block}
.sc-kind-opt input{position:absolute;inset:0;width:100%;height:100%;opacity:0;margin:0;cursor:pointer}
.sc-kind-opt span{
  display:flex;flex-direction:column;gap:2px;min-height:56px;justify-content:center;
  padding:11px 16px;border:2px solid var(--line);border-radius:13px;background:#fff;
  transition:border-color .14s,background .14s;
}
.sc-kind-opt b{font-size:.98rem;font-weight:800;color:var(--purple)}
.sc-kind-opt em{font-style:normal;font-size:.82rem;color:var(--slate)}
.sc-kind-opt input:checked + span{border-color:var(--green);background:#f4fdf9}
.sc-kind-opt input:focus-visible + span{outline:3px solid var(--green);outline-offset:2px}

.sc-venue{margin-top:12px}
.sc-venue label{
  display:block;margin-bottom:6px;font-size:.72rem;font-weight:800;text-transform:uppercase;
  letter-spacing:.09em;color:var(--slate);
}
.sc-venue input{
  width:100%;min-height:50px;padding:0 15px;border:2px solid var(--line);border-radius:11px;
  font:inherit;font-size:1rem;color:var(--purple);background:#fff;
}
.sc-venue input:focus-visible{outline:3px solid var(--green);outline-offset:2px;border-color:var(--green)}
.sc-venue-note{margin:7px 2px 0;font-size:.8rem;color:var(--slate)}

/* ---- the missing primary button --------------------------------------- */
/* The markup has used .btn.btn-accent since the page was built, but no rule
   for .btn-accent was ever written, in site.css or here. .btn alone sets only
   shape, so all six step buttons, including "See my score", fell back to the
   browser's default grey chrome on a page where every other button is green.
   Measured live: background rgb(239,239,239), black text.
   The brand green with PURPLE text, not white. White on #20ce88 measures
   2.05:1 and fails WCAG AA for 16px bold, which is what .btn-primary does
   site-wide. Purple on the same green is 7.89:1 and is Halizona's own pairing:
   the logo is purple on the green header bar, and so is the email header. So
   this is more accessible AND more on-brand than copying .btn-primary. */
.sc-app .btn-accent,
.sc-cta .btn-accent{
  background:var(--green);
  color:var(--purple);
  border-color:var(--green);
}
.sc-app .btn-accent:hover,
.sc-cta .btn-accent:hover{
  background:#7ce8bb;
  border-color:#7ce8bb;
  transform:translateY(-3px);
}
.sc-app .btn-accent:disabled{opacity:.55;transform:none;box-shadow:none;cursor:not-allowed}
@media (prefers-reduced-motion:reduce){
  .sc-app .btn-accent:hover,.sc-cta .btn-accent:hover{transform:none}
}

/* Let the main CTA wrap. .btn in site.css sets white-space:nowrap, which is
   right for a short pill and wrong here: measured on a 390px phone the label
   was 281px of text inside a 234px button, so it ran straight out of the pill.
   Balanced wrapping breaks it into even lines rather than leaving one orphan
   word, and the padding tightens on the narrowest screens. */
.sc-cta-form button{
  white-space:normal;
  text-wrap:balance;
  line-height:1.3;
}
@media (max-width:400px){
  .sc-cta-form button{padding:.9rem 1rem;letter-spacing:.04em}
}

/* Step one on narrow phones (12 Nov 2026, found by the Boss Brain). A fieldset defaults to
   min-width:min-content, so the nowrap "Start the questions" button (287px) pushed the step
   wider than the form, and .sc-app's overflow:hidden cut the right edge of every line:
   27px at 360 wide, 12px at 375, 3px at 384. Let the step shrink and the button wrap. */
.sc-step{min-width:0}
@media (max-width:600px){
  .sc-app .sc-nav .btn{white-space:normal;text-wrap:balance;line-height:1.3;max-width:100%}
}
