/* Rapid Diagnostic page and home-page band. Author: Andy Doherty. Uses the tokens in style.css. */

/* scroll reveal: content is visible without JS */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

.progress-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--leaf-bg); z-index: 40; }

/* ---- hero ---- */
.rd-hero { background:
  radial-gradient(620px 380px at 90% -10%, rgba(156,204,94,.18), transparent 70%),
  radial-gradient(520px 340px at 0% 100%, rgba(79,133,179,.14), transparent 70%), var(--surface);
  border-bottom: var(--rule); }
.rd-hero-inner { display: grid; gap: 40px; padding-top: 64px; padding-bottom: 64px; align-items: center; }
@media (min-width: 960px) { .rd-hero-inner { grid-template-columns: 1.15fr .85fr; } }
.rd-hero h1 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.rd-hero h1 em { display: block; font-style: normal; color: var(--leaf-text); }
/* green as text on light grounds: the deeper brand leaf, 4.4 to 4.8 against white and the page tint; the dark theme keeps its light leaf */
:root { --leaf-text: #46802a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --leaf-text: #a8dd6f; } }
:root[data-theme="dark"] { --leaf-text: #a8dd6f; }
.rd-page .eyebrow { color: var(--leaf-text); }
.rd-hero .lede { margin: 18px 0 26px; }
.ring-wrap { max-width: 360px; margin: 0 auto; width: 100%; }
.ring-dial { position: relative; }
.ring-wrap svg { width: 100%; height: auto; display: block; transform: rotate(-90deg); }
.ring-wrap circle { fill: none; stroke-width: 16; }
.ring-wrap .track { stroke: var(--surface-2); }
.ring-wrap .seg { stroke-linecap: butt; stroke-dasharray: 0 999; transition: stroke-dasharray 1.4s cubic-bezier(.2,.7,.2,1); }
.ring-centre { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ring-centre b { font-family: "Quicksand", sans-serif; font-size: clamp(3rem, 8vw, 4.4rem); color: var(--purple); line-height: 1; }
.ring-centre span { font-family: "IBM Plex Mono", monospace; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-muted); }
.ring-key { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 14px; font-size: .8rem; color: var(--ink-muted); }
.ring-key i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }

/* ---- stat strip ---- */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 760px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--surface); border: var(--rule); border-radius: var(--radius); padding: 22px 20px; }
.stat b { display: block; font-family: "Quicksand", sans-serif; font-size: clamp(2rem, 4vw, 2.7rem); color: var(--purple); line-height: 1; }
.stat span { display: block; margin-top: 8px; font-size: .88rem; color: var(--ink-muted); }

/* ---- problem selector ---- */
.problems { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .problems { grid-template-columns: 1fr; } }
.problem-list { display: grid; gap: 10px; }
.problem-btn { text-align: left; font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--paper-line); border-radius: var(--radius-sm); padding: 14px 18px; cursor: pointer; transition: border-color .15s, transform .15s, background .15s; }
.problem-btn:hover { border-color: var(--purple); transform: translateX(3px); }
.problem-btn[aria-pressed="true"] { border-color: var(--leaf-bg); background: var(--leaf-soft); }
.problem-btn strong { display: block; font-family: "Quicksand", sans-serif; color: var(--purple); }
.problem-panel { background: var(--surface); border: var(--rule); border-radius: var(--radius); padding: 28px 26px; position: sticky; top: 90px; min-height: 260px; }
.problem-panel h3 { margin-bottom: 10px; }
.problem-panel .k { font-family: "IBM Plex Mono", monospace; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted); margin: 18px 0 6px; }
.problem-panel p { margin: 0 0 .6em; }

/* ---- own bar vs peer group ---- */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 40px; }
@media (max-width: 760px) { .versus { grid-template-columns: 1fr; } }
.versus .card.theirs { background: var(--surface-2); }
.versus .card.ours { border-color: var(--leaf-bg); box-shadow: 0 18px 40px -26px rgba(110,168,60,.7); }
.tag { font-family: "IBM Plex Mono", monospace; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); }
.ours .tag { color: var(--leaf-text); }

/* ---- calculator ---- */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }
.calc-in, .calc-out { background: var(--surface); border: var(--rule); border-radius: var(--radius); padding: 26px 24px; }
.calc-in { display: grid; gap: 14px; align-content: start; }
.calc-in .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .calc-in .row2 { grid-template-columns: 1fr; } }
.calc-in small { display: block; color: var(--ink-muted); font-size: .76rem; margin-top: 4px; }
.calc-out { background: linear-gradient(180deg, var(--surface), var(--surface-2)); }
.big { font-family: "Quicksand", sans-serif; font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--purple); line-height: 1.05; }
.big small { font-size: .45em; color: var(--ink-muted); font-weight: 600; }
.bars { margin: 18px 0; display: grid; gap: 12px; }
.bar-row .lab { display: flex; justify-content: space-between; gap: 10px; font-size: .85rem; margin-bottom: 4px; }
.bar-row .lab b { font-family: "Quicksand", sans-serif; color: var(--purple); }
.bar { height: 12px; border-radius: 99px; background: var(--paper-line); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--sky); transition: width .8s cubic-bezier(.2,.7,.2,1); }
.bar-row.hot .bar i { background: var(--leaf-bg); }
.calc-note { font-size: .82rem; color: var(--ink-muted); margin: 14px 0 0; }
.waiting { background: var(--leaf-soft); border-left: 4px solid var(--leaf-bg); border-radius: var(--radius-sm); padding: 14px 18px; margin-top: 16px; font-size: .95rem; }
.waiting p { margin: 0; max-width: none; }
.empty-state { color: var(--ink-muted); }

/* ---- journey gantt ---- */
.gantt { background: var(--surface); border: var(--rule); border-radius: var(--radius); padding: 22px 22px 26px; }
.g-head, .g-row { display: grid; grid-template-columns: 150px repeat(6, 1fr); align-items: center; }
@media (max-width: 700px) { .g-head, .g-row { grid-template-columns: 90px repeat(6, 1fr); } .g-label { font-size: .78rem; } }
.g-head span { font-family: "IBM Plex Mono", monospace; font-size: .7rem; color: var(--ink-muted); text-align: center; padding-bottom: 8px; border-bottom: var(--rule); text-transform: uppercase; letter-spacing: .05em; }
.g-head span:first-child { border: 0; }
.g-row { position: relative; padding: 7px 0; border-bottom: 1px dashed var(--paper-line); }
.g-label { font-family: "Quicksand", sans-serif; font-weight: 600; color: var(--ink); }
.g-bar { height: 34px; border-radius: 99px; border: 0; cursor: pointer; font: 600 .78rem "Quicksand", sans-serif; color: #fff; background: var(--sky); transition: transform .15s, box-shadow .15s, filter .15s; position: relative; z-index: 1; }
.g-bar:hover, .g-bar[aria-pressed="true"] { transform: scaleY(1.12); box-shadow: 0 8px 20px -10px rgba(50,47,74,.6); }
.g-bar.site { background: var(--purple); }
.g-bar.out { background: var(--leaf); color: #1d3009; }
.g-day { position: absolute; top: 40px; bottom: 6px; width: 30px; margin-left: -15px; left: 0; z-index: 3; opacity: 0; transition: opacity .2s; cursor: grab; touch-action: none; background: linear-gradient(var(--leaf), var(--leaf)) center / 2px 100% no-repeat; }
.g-day.on { opacity: 1; }
.g-day.drag { cursor: grabbing; }
.g-day:focus-visible { outline: 2px solid var(--purple); border-radius: 6px; }
.g-day::after { content: attr(data-d) " ↔"; position: absolute; top: -26px; left: 50%; transform: translateX(-50%); min-width: 54px; text-align: center; font: 600 .7rem "IBM Plex Mono", monospace; background: var(--leaf-bg); color: #21360f; border-radius: 6px; padding: 2px 4px; box-shadow: 0 4px 10px -4px rgba(50,47,74,.5); }
.g-track { position: relative; }
.g-ctrl { display: flex; gap: 12px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.g-detail { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; background: var(--surface-2); border-radius: var(--radius-sm); padding: 20px 22px; }
@media (max-width: 760px) { .g-detail { grid-template-columns: 1fr; } }
.g-detail h3 { grid-column: 1 / -1; font-size: 1.05rem; }
.g-detail .k { font-family: "IBM Plex Mono", monospace; font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted); margin: 0 0 4px; }
.g-detail p { margin: 0; font-size: .92rem; }
.cmp { display: grid; gap: 8px; margin-top: 22px; }
.cmp .bar i { background: var(--purple); }
.cmp .full i { background: var(--leaf-bg); }

/* ---- readiness checklist ---- */
.ready { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .ready { grid-template-columns: 1fr; } }
.check-list { display: grid; gap: 8px; }
.check { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1.5px solid var(--paper-line); border-radius: var(--radius-sm); padding: 12px 16px; cursor: pointer; transition: border-color .15s, background .15s; }
.check:hover { border-color: var(--purple); }
.check input { margin-top: 4px; accent-color: #6ea83c; width: 18px; height: 18px; flex: none; }
.check:has(input:checked) { border-color: var(--leaf-bg); background: var(--leaf-soft); }
.check span { font-size: .94rem; }
.check span small { display: block; color: var(--ink-muted); }
.meter-card { background: var(--surface); border: var(--rule); border-radius: var(--radius); padding: 24px; position: sticky; top: 90px; }
.meter { height: 14px; border-radius: 99px; background: var(--paper-line); overflow: hidden; margin: 12px 0; }
.meter i { display: block; height: 100%; width: 0; background: var(--leaf-bg); transition: width .4s ease; }
.meter-card .big { font-size: 2.6rem; }
/* readiness path: the first zone is what is needed to start, the second is the rest, so every tick moves the bar */
.meter.pair { display: flex; gap: 5px; background: none; overflow: visible; }
.meter.pair .seg { display: block; height: 100%; border-radius: 99px; background: var(--paper-line); overflow: hidden; }
.meter.pair .seg.b i { background: #5d5c93; }
.m-state { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 6px !important; padding: 4px 12px; border-radius: 999px; background: var(--surface-2); color: var(--ink-muted); font: 700 .8rem "Quicksand", sans-serif; letter-spacing: .01em; max-width: none; transition: background .25s, color .25s; }
.m-state::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; opacity: .55; }
.m-state[data-s="1"] { background: var(--leaf-bg); color: #21360f; }
.m-state[data-s="1"]::before { opacity: 1; }
.m-state[data-s="2"] { background: #5d5c93; color: #fff; }
.m-state[data-s="2"]::before { content: "\2713"; width: auto; height: auto; background: none; opacity: 1; font-size: .85rem; line-height: 1; animation: m-pop .45s ease; }
@keyframes m-pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.25); } 100% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .meter i, .m-state { transition: none; } .m-state[data-s="2"]::before { animation: none; } }
#m-go { display: flex; justify-content: center; text-align: center; margin-top: 16px; }
#m-go[hidden] { display: none; }

/* ---- selling points ---- */
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: pt; }
@media (max-width: 900px) { .points { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .points { grid-template-columns: 1fr; } }
.point { background: var(--surface); border: var(--rule); border-radius: var(--radius); padding: 24px 22px; position: relative; transition: transform .2s, border-color .2s; }
.point:hover { transform: translateY(-4px); border-color: var(--leaf-bg); }
.point::before { counter-increment: pt; content: counter(pt, decimal-leading-zero); font: 700 1.6rem "Quicksand", sans-serif; color: var(--leaf-bg); display: block; margin-bottom: 6px; }
.point h3 { font-size: 1.05rem; margin-bottom: 6px; }
.point p { margin: 0; color: var(--ink-muted); font-size: .92rem; }

/* ---- the offer ---- */
.offer { background: #322f4a; color: #fff; border-radius: 24px; padding: clamp(28px, 5vw, 56px); display: grid; gap: 28px; }
@media (min-width: 900px) { .offer { grid-template-columns: 1.1fr .9fr; align-items: center; } }
:root[data-theme="dark"] .offer, :root:not([data-theme="light"]) .offer { }
.offer h2 { color: #fff; }
.offer p { color: #eceaf9; }
.offer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.offer li { padding-left: 30px; position: relative; color: #fff; }
.offer li::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%; background: var(--leaf-bg); }
.offer li::after { content: ""; position: absolute; left: 5px; top: .5em; width: 4px; height: 8px; border: solid #21360f; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.offer .btn { border-color: #fff; color: #fff; }
.offer .btn:hover { background: #fff; color: var(--purple); }
.offer .btn-primary { background: var(--leaf-bg); border-color: var(--leaf-bg); color: #21360f; }
.offer .btn-primary:hover { background: #fff; border-color: #fff; color: #21360f; }

/* ---- faq ---- */
.faq details { background: var(--surface); border: var(--rule); border-radius: var(--radius-sm); padding: 4px 20px; }
.faq details + details { margin-top: 10px; }
.faq summary { cursor: pointer; font-family: "Quicksand", sans-serif; font-weight: 600; color: var(--purple); padding: 14px 0; }
.faq details p { color: var(--ink-muted); }

/* ---- home page band ---- */
.rd-band { background: linear-gradient(120deg, var(--surface-2), var(--leaf-soft)); border: var(--rule); border-radius: 24px; padding: clamp(26px, 4vw, 44px); display: grid; gap: 24px; }
@media (min-width: 900px) { .rd-band { grid-template-columns: 1.2fr .8fr; align-items: center; } }
.rd-band .mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rd-band .mini .stat { padding: 16px 12px; text-align: center; }
.rd-band .mini .stat b { font-size: 1.9rem; }
.rd-band .mini .stat span { font-size: .78rem; }

.sticky-cta { position: fixed; right: 18px; bottom: 18px; z-index: 30; transform: translateY(90px); transition: transform .3s ease; box-shadow: 0 14px 30px -12px rgba(50,47,74,.5); }
.sticky-cta.on { transform: none; }

/* gantt bars on narrow screens: colour only, the row label names the step */
.g-bar { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 10px; }
@media (max-width: 700px) {
  .gantt { padding: 16px 12px 20px; }
  .g-head span { font-size: .6rem; letter-spacing: 0; }
  .g-bar { font-size: 0; padding: 0; height: 26px; }
  .g-day::after { font-size: .62rem; min-width: 46px; }
}

/* ---- what each gives ---- */
.diff { margin-top: 32px; }
.diff h3 { margin-bottom: 14px; }
.diff-grid { display: grid; grid-template-columns: 1fr 1.3fr 1.3fr; border: var(--rule); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.diff-grid > div { padding: 12px 16px; border-bottom: var(--rule); font-size: .92rem; }
.diff-grid > div:nth-last-child(-n+3) { border-bottom: 0; }
.diff-head { font-family: "Quicksand", sans-serif; font-weight: 700; color: var(--purple); background: var(--surface-2); }
.diff-head.rd { border-top: 3px solid var(--sky); }
.diff-head.fa { border-top: 3px solid var(--leaf-bg); }
.diff-k { font-family: "IBM Plex Mono", monospace; font-size: .7rem !important; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-muted); }
.diff .yes::before { content: "✓  "; color: var(--leaf); font-weight: 700; }
.diff .no { color: var(--ink-muted); }
@media (max-width: 760px) {
  .diff-grid { grid-template-columns: 1fr 1fr; }
  .diff-head:first-child { display: none; }
  .diff-k { grid-column: 1 / -1; background: var(--surface-2); border-bottom: 0 !important; padding-bottom: 4px !important; }
  .diff-grid > div:nth-last-child(-n+3) { border-bottom: var(--rule); }
  .diff-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
}

/* calculator inputs: two equal columns, every field the same shape, buttons in equal halves */
.calc-in h3 { text-align: center; }
.calc-in .field label { display: block; }
@media (min-width: 521px) { .calc-in .row2 .field label, .calc-in .row2 > div > label { min-height: 2.6em; display: flex; align-items: flex-end; } }
.calc-in .btn-pair { align-items: stretch; }
.calc-in .btn-pair .btn { justify-content: center; text-align: center; width: 100%; }
.calc-in .form-note { text-align: center; }

.cost-row { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; border-top: 1px dashed var(--paper-line); padding-top: 12px; margin-top: 4px; font-size: .85rem; color: var(--ink-muted); }
.cost-row[hidden] { display: none; }
.cost-row b { font-family: "Quicksand", sans-serif; color: var(--purple); white-space: nowrap; }

.calc-badge { display: inline-block; margin: 6px 0 10px; padding: 6px 12px; border-radius: 999px; background: var(--leaf-soft); color: var(--ink); font-size: .8rem; max-width: none; border: 1px dashed var(--leaf-bg); }
.calc-badge.mine { border-style: solid; }
.meter-line { margin: 8px 0 0 !important; font-size: .85rem; color: var(--ink-muted); }
.meter-line b { font-family: "IBM Plex Mono", monospace; font-weight: 500; color: var(--purple); }
.calc-in .btn-pair { display: block; }

/* entry blocks: one grid, six equal cells (label, box, hint) */
.calc-in .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; }
@media (max-width: 520px) { .calc-in .grid2 { grid-template-columns: 1fr; } }
.calc-in .grid2 > div { display: grid; grid-template-rows: 2.6em 44px auto; gap: 6px; align-content: start; }
.calc-in .grid2 label { display: flex; align-items: flex-end; margin: 0; }
.calc-in .grid2 input { height: 44px; }
.calc-in .grid2 small { margin: 0; }
.reset-btn { height: 44px; width: 100%; font: 600 .9rem "Quicksand", sans-serif; color: var(--purple); background: transparent; border: 1.5px solid var(--purple); border-radius: var(--radius-sm); cursor: pointer; transition: background .15s, color .15s; }
.reset-btn:hover { background: var(--purple); color: var(--surface); }

.waiting .punch { margin: 14px 0 8px; font-family: "Quicksand", sans-serif; font-weight: 700; font-size: clamp(1.2rem, 2.6vw, 1.55rem); line-height: 1.3; color: var(--ink); max-width: none; }
.waiting .punch mark { background: none; color: var(--purple); text-decoration: underline; text-decoration-color: var(--leaf); text-decoration-thickness: 3px; text-underline-offset: 5px; text-decoration-skip-ink: none; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@media (prefers-color-scheme: dark) { .waiting .punch mark { color: var(--leaf); } }
:root[data-theme="dark"] .waiting .punch mark { color: var(--leaf); }
:root[data-theme="light"] .waiting .punch mark { color: var(--purple); }

/* ---- Operating Reality Assessment, made prominent ---- */
.tm { font-size: .7em; vertical-align: super; line-height: 0; margin-left: 2px; font-weight: 700; }
.ora-badge .tm { font-size: .9em; }
.ora-badge { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 16px; padding: 8px 16px; border-radius: 999px; background: var(--purple); color: #fff; font: 700 clamp(.85rem, 2vw, 1rem) "Quicksand", sans-serif; letter-spacing: .01em; max-width: none; }
.ora-badge span { background: var(--leaf-bg); color: #21360f; border-radius: 999px; padding: 2px 12px; font-size: .85em; }
.ora { background: #322f4a; color: #fff; border-radius: 24px; padding: clamp(28px, 5vw, 56px); display: grid; gap: 32px; box-shadow: 0 30px 60px -34px rgba(50,47,74,.7); }
@media (min-width: 900px) { .ora { grid-template-columns: 1.1fr .9fr; align-items: center; } }
.ora h2 { color: #fff; font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.08; margin-bottom: 14px; }
.ora p { color: #eceaf9; }
.ora .btn { border-color: #fff; color: #fff; }
.ora .btn-primary { background: var(--leaf-bg); border-color: var(--leaf-bg); color: #21360f; }
.ora .btn-primary:hover { background: #fff; border-color: #fff; color: #21360f; }
.ora-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 460px) { .ora-tiles { grid-template-columns: 1fr; } }
.ora-tile { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius); padding: 18px 16px; transition: transform .2s, background .2s; }
.ora-tile:hover { transform: translateY(-3px); background: rgba(255,255,255,.2); }
.ora-tile b { display: block; font: 700 clamp(1.5rem, 3.4vw, 2rem) "Quicksand", sans-serif; color: var(--leaf-bg); line-height: 1.1; }
.ora-tile span { display: block; margin-top: 6px; font-size: .84rem; color: #eceaf9; }
.ora-badge b { font-weight: 700; }

/* readiness: groups, turnaround toggle */
.group-h { font-family: "IBM Plex Mono", monospace; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); margin: 22px 0 10px; max-width: none; }
.ready .check-list + .group-h { margin-top: 26px; }
.check.must { border-left: 4px solid var(--purple); }
.check[hidden], .ta-note[hidden] { display: none; }
.ta-toggle { border: var(--rule); border-radius: var(--radius-sm); background: var(--surface); padding: 12px 18px 14px; margin: 0 0 4px; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.ta-toggle legend { font-family: "Quicksand", sans-serif; font-weight: 700; color: var(--purple); padding: 0 6px; }
.ta-toggle label { cursor: pointer; font-size: .94rem; }
.ta-toggle input { accent-color: #6ea83c; margin-right: 6px; }
.ta-note { margin-top: 16px; background: var(--surface-2); border-radius: var(--radius-sm); padding: 18px 20px; border-left: 4px solid var(--sky); }
.ta-note h3 { font-size: 1.05rem; margin-bottom: 8px; }
.ta-note p { font-size: .92rem; margin: 0 0 .7em; max-width: none; }

/* readiness, simplified: three numbered steps */
.step-h b { font-weight: 700; }
.step-h { display: flex; gap: 12px; align-items: center; font: 700 1.05rem "Quicksand", sans-serif; color: var(--purple); margin: 0 0 12px; max-width: none; }
.step-h b { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--leaf-bg); color: #21360f; font-size: .9rem; }
.ready .step-h:not(:first-child) { margin-top: 30px; }
.seg-toggle { display: inline-flex; border: 1.5px solid var(--purple); border-radius: 999px; overflow: hidden; max-width: 100%; }
.seg-toggle label { cursor: pointer; margin: 0; }
.seg-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.seg-toggle span { display: block; padding: 10px 20px; font: 600 .9rem "Quicksand", sans-serif; color: var(--purple); transition: background .15s, color .15s; }
.seg-toggle input:checked + span { background: var(--purple); color: #fff; }
.seg-toggle input:focus-visible + span { outline: 2px solid var(--leaf-bg); outline-offset: -4px; }
@media (max-width: 460px) { .seg-toggle { display: flex; flex-direction: column; border-radius: var(--radius-sm); } }
.must-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 600px) { .must-grid { grid-template-columns: 1fr; } }
.must-grid .check { height: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.check.chip { padding: 8px 14px; border-radius: 999px; align-items: center; }
.check.chip input { margin-top: 0; width: 16px; height: 16px; }
.check.chip span { font-size: .9rem; }

/* the counted number sits on the same line as its unit, so all four figures align */
.stat b span { display: inline; margin: 0; font-size: inherit; color: inherit; }
.must-grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .must-grid.three { grid-template-columns: 1fr; } }
.ora h2 .tm { font-size: .42em; margin-left: 4px; }

/* ---- how the number connects, and what visitors ask next ---- */
.bridge { margin-top: 28px; background: var(--surface); border: var(--rule); border-radius: var(--radius); padding: 28px 26px; }
.bridge h3 { margin: 0 0 18px; }
.bridge-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .bridge-steps { grid-template-columns: 1fr; } }
.bstep { display: flex; flex-direction: column; position: relative; background: var(--surface-2); border-radius: var(--radius-sm); padding: 18px 18px 16px; border-top: 4px solid var(--sky); }
.bstep:nth-child(2) { border-top-color: var(--purple); }
.bstep:nth-child(3) { border-top-color: var(--leaf-bg); }
.bstep + .bstep::before { content: "\2192"; position: absolute; left: -17px; top: 50%; transform: translateY(-50%); font-size: 1.2rem; color: var(--ink-muted); }
@media (max-width: 860px) { .bstep + .bstep::before { content: "\2193"; left: 50%; top: -16px; transform: translateX(-50%); } }
.bn { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; align-items: center; justify-content: center; background: var(--purple); color: #fff; font: 700 .85rem "Quicksand", sans-serif; margin-bottom: 8px; }
.bstep h4 { margin: 0 0 6px; font-family: "Quicksand", sans-serif; color: var(--purple); }
.bstep p { margin: 0 0 10px; color: var(--ink-muted); font-size: .92rem; }
.bwho { margin-top: auto; font: 500 .68rem "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: .06em; color: var(--leaf-text); }
.asks { margin-top: 56px; }
.ask-btn { text-align: left; font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--paper-line); border-radius: var(--radius-sm); padding: 14px 18px; cursor: pointer; transition: border-color .15s, transform .15s, background .15s; }
.ask-btn:hover { border-color: var(--purple); transform: translateX(3px); }
.ask-btn[aria-pressed="true"] { border-color: var(--leaf-bg); background: var(--leaf-soft); }
.ask-btn strong { display: block; font-family: "Quicksand", sans-serif; color: var(--purple); }

/* ---- sector chooser ---- */
.sector { margin-bottom: 18px; }
.sector-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 700px) { .sector-row { grid-template-columns: 1fr; } }
.sector-btn { text-align: left; font: inherit; font-size: .9rem; color: var(--ink-muted); background: var(--surface); border: 1.5px solid var(--paper-line); border-radius: var(--radius-sm); padding: 14px 18px; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.sector-btn:hover { border-color: var(--purple); transform: translateY(-2px); }
.sector-btn[aria-pressed="true"] { border-color: var(--leaf-bg); background: var(--leaf-soft); }
.sector-btn strong { display: block; font-family: "Quicksand", sans-serif; font-size: 1.05rem; color: var(--purple); }
.bn-inline { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; align-items: center; justify-content: center; background: var(--purple); color: #fff; font: 700 .8rem "Quicksand", sans-serif; margin-right: 8px; vertical-align: 2px; }

/* ---- result card, in the readout's style ---- */
.calc-work { margin: 14px 0 0; font-size: .82rem; color: var(--ink-muted); max-width: none; }
.stack-wrap { margin-top: 14px; }
.stack-wrap[hidden] { display: none; }
.stack { display: flex; height: 26px; border-radius: 6px; overflow: hidden; background: var(--paper-line); }
.stack i { display: block; height: 100%; transition: width .8s cubic-bezier(.2,.7,.2,1); }
.stack .s-today { background: var(--purple); }
.stack .s-gap { background: var(--leaf-bg); }
.stack-lab { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; font-size: .82rem; color: var(--ink-muted); }
.stack-lab b { color: var(--ink); font-family: "Quicksand", sans-serif; }
.calc-one { margin: 14px 0 0; font-family: "Quicksand", sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--purple); max-width: none; }
.calc-one[hidden] { display: none; }
.loss-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
@media (max-width: 700px) { .loss-cards { grid-template-columns: 1fr; } }
.lcard { background: var(--surface-2); border: var(--rule); border-radius: var(--radius-sm); padding: 14px 16px; }
.lc-h { margin: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; font-family: "Quicksand", sans-serif; font-weight: 700; color: var(--purple); font-size: .92rem; max-width: none; }
.lc-tag { flex: none; font: 700 .68rem "Quicksand", sans-serif; background: var(--purple); color: #fff; border-radius: 999px; padding: 3px 10px; }
.lcard ul { margin: 8px 0 0; padding-left: 18px; font-size: .85rem; }
.lc-note { margin: 8px 0 0; font-size: .78rem; color: var(--ink-muted); max-width: none; }

/* ---- where it is lost, and what answers it ---- */
.themes { margin-top: 28px; background: var(--surface); border: var(--rule); border-radius: var(--radius); padding: 28px 26px; }
.themes[hidden] { display: none; }
.themes h3 { margin: 0 0 16px; }
.th-head { display: grid; grid-template-columns: 1fr 1.4fr; gap: 18px; font: 500 .68rem "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted); margin-bottom: 8px; }
.th-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 18px; align-items: center; padding: 12px 0; border-top: 1px dashed var(--paper-line); }
@media (max-width: 700px) { .th-head { display: none; } .th-row { grid-template-columns: 1fr; gap: 8px; } }
.th-ask { font-family: "Quicksand", sans-serif; font-weight: 700; color: var(--ink); padding-left: 12px; border-left: 4px solid var(--th, var(--purple)); }
.th-progs { display: flex; flex-wrap: wrap; gap: 8px; }
.th-chip { background: var(--th, var(--purple)); color: #fff; font: 600 .82rem "Quicksand", sans-serif; border-radius: 999px; padding: 7px 14px; }
.th-row.c0 { --th: #1f4678; }
.th-row.c1 { --th: #1b8a7a; }
.th-row.c2 { --th: #94600f; }

/* ---- a figure that cannot be right ---- */
.calc-in small.warn { color: #8a3b12; font-weight: 600; }
.calc-in small.warn[hidden] { display: none; }

/* ---- the chosen sector, restated ---- */
.sector { scroll-margin-top: 90px; }
.sector-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; background: var(--leaf-soft); border: 1px solid var(--leaf-bg); border-radius: var(--radius-sm); padding: 8px 14px; margin-bottom: 14px; font-size: .85rem; }
.sector-banner[hidden] { display: none; }
.sb-tag { font: 500 .66rem "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: .06em; color: var(--leaf-text); }
.sector-banner strong { font-family: "Quicksand", sans-serif; font-size: .98rem; color: var(--purple); }
.sb-basis { color: var(--ink-muted); }
.sb-change { margin-left: auto; font-weight: 600; color: var(--purple); text-decoration: underline; text-underline-offset: 3px; }
