/* New Roots Coaching: Self-Check page.
   Loaded after style.css. Every rule is scoped under .sc, so nothing here can touch the rest of the site.
   Movement colours follow the homepage tree: Regulate purple, Reconnect green, Realign blue.
   The green and blue are the site's, deepened a shade so white labels and small text stay legible. */

.sc {
  --sc-line: #d9d3c4;
  --sc-faint: #e6dfcf;
  --sc-focus: #2f6fb8;
  --regulate: #6a3f8e;  --regulate-ink: #6a3f8e;
  --reconnect: #25775a; --reconnect-ink: #1f6a4f;
  --realign: #2f6fb8;   --realign-ink: #2a63a8;
  min-height: 60vh;
  outline: none;
}
.sc-main { padding-top: 44px; padding-bottom: 72px; outline: none; }

.sc h1, .sc h2, .sc h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; text-wrap: balance; margin: 0; }
.sc h1 { font-size: clamp(30px, 5.2vw, 48px); letter-spacing: -0.01em; }
.sc h2 { font-size: clamp(22px, 3vw, 28px); }
.sc h3 { font-size: 20px; }
.sc p { margin: 0; }
.sc section { padding: 0; }
.sc [hidden] { display: none !important; }
.sc h1[tabindex="-1"]:focus { outline: none; }
.sc :focus-visible { outline: 3px solid var(--sc-focus); outline-offset: 3px; border-radius: 4px; }

.sc .eyebrow { margin: 0; }
.sc .lede { font-size: 19px; max-width: 34em; }
.sc .muted { color: var(--ink-soft); }
.sc .small { font-size: 14px; line-height: 1.55; }
.sc .stack { display: flex; flex-direction: column; gap: 18px; }
.sc .row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* buttons: the site's .btn, made to work on <button> and kept to a comfortable tap size */
.sc .btn { font-size: 1rem; line-height: 1.3; min-height: 48px; padding: 0.7rem 1.8rem; display: inline-flex; align-items: center; justify-content: center; text-align: center; }
.sc button.btn { font-family: var(--sans); cursor: pointer; }
.sc .btn:disabled { opacity: 0.4; cursor: not-allowed; }
.sc .btn.green:disabled:hover { background: var(--green); color: #fff; }
.sc .btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.sc .btn.ghost:hover { background: var(--ink); color: #fff; }

/* movement tokens per element */
.sc .m-regulate  { --c: var(--regulate);  --ci: var(--regulate-ink); }
.sc .m-reconnect { --c: var(--reconnect); --ci: var(--reconnect-ink); }
.sc .m-realign   { --c: var(--realign);   --ci: var(--realign-ink); }
.sc .chip { display: inline-flex; align-items: center; gap: 8px; font: 600 13px var(--sans); color: var(--ci); }
.sc .chip::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }

/* intro */
/* one long page: three sections stacked, divided by a hairline */
.sc .intro { display: flex; flex-direction: column; gap: 56px; }
.sc .intro-sec { display: flex; flex-direction: column; gap: 20px; }
.sc .intro-sec + .intro-sec { border-top: 1px solid var(--sc-line); padding-top: 56px; }
.sc .big-title { font-size: clamp(30px, 5.2vw, 48px); letter-spacing: -0.01em; }
.sc .intro-sec > p { max-width: 38em; }
.sc .explore { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 48px; align-items: center; margin-top: 8px; }
.sc .panel { background: var(--sand); border-radius: 14px; padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; min-height: 17em; }
.sc .privacy { border-left: 3px solid var(--amber); padding-left: 14px; }
.sc .support { background: var(--sand); border-radius: 12px; padding: 16px 18px; font-size: 14px; line-height: 1.6; color: var(--ink-soft); }
.sc .support b { color: var(--ink); font-weight: 600; }
.sc .panel.overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-content: center; }
.sc .overview h3 { color: var(--ci); margin-bottom: 10px; }
.sc .overview ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.35; color: var(--ink); }
@media (max-width: 520px) {
  .sc .panel.overview { gap: 10px; padding: 18px 14px; }
  .sc .overview ul { font-size: 14px; }
}
@media (max-width: 860px) {
  .sc .explore { grid-template-columns: minmax(0, 1fr); }
  .sc .panel { min-height: 0; }
}

/* wheel */
.sc .wheel { display: block; width: 100%; height: auto; max-width: 520px; margin-inline: auto; overflow: visible; }
.sc .plot { fill: #fff; stroke: var(--sc-line); stroke-width: 1; }
.sc .grid { fill: none; stroke: var(--sc-line); stroke-width: 1; }
.sc .spoke { stroke: var(--sc-line); stroke-width: 1; }
.sc .ring { fill: var(--c); }
.sc .seg { outline: none; }
.sc .seg[role=button] { cursor: pointer; }
.sc .sel-wedge { fill: var(--c); fill-opacity: 0.9; pointer-events: none; }
.sc .hub.hl { fill: var(--ci); }
.sc .seg:focus-visible .ring { stroke: var(--sc-focus); stroke-width: 4; }
.sc .lab { font: 700 15px var(--sans); fill: #fff; letter-spacing: 0.02em; pointer-events: none; }
.sc .wedge { fill: var(--ci); fill-opacity: 0.24; }
.sc .edge { fill: none; stroke: var(--ci); stroke-width: 4; stroke-linecap: round; }
.sc .wg { transform-box: view-box; transform-origin: center; animation: sc-grow 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes sc-grow { from { opacity: 0; transform: scale(0.4); } }
.sc .tick { font: 600 11px var(--sans); fill: var(--ink-soft); paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.sc .mark { fill: var(--amber); stroke: var(--ink); stroke-width: 2.5; }
.sc .hubbg { fill: #fff; }
.sc .hub { font: 400 25px var(--serif); fill: var(--ink); }
.sc .hub2 { font: 400 14px var(--sans); fill: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) { .sc .wg { animation: none; } }

/* steps */
.sc .sc-step { max-width: 700px; margin-inline: auto; display: flex; flex-direction: column; gap: 22px; }
/* progress bar, "Area x of 9" and the movement label stick under the site nav, with the page colour behind them so statements scroll away cleanly beneath */
.sc .step-sticky { position: sticky; top: var(--nav-h); z-index: 10; display: flex; flex-direction: column; gap: 8px; background: var(--paper); padding: 12px 0 10px; margin: -12px 0 -10px; }
.sc .prog { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; padding: 2px 0; }
.sc .prog i { height: 6px; border-radius: 99px; background: var(--sc-faint); }
.sc .prog i.done { background: var(--c); }
.sc .prog i.now { background: var(--c); box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--c); }
.sc .step-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sc .blurb { color: var(--ink-soft); max-width: 36em; }
.sc .how { background: var(--sand); border-radius: 12px; padding: 14px 18px; font-size: 15px; }
.sc .q { padding-block: 20px; border-top: 1px solid var(--sc-line); }
.sc .qt { display: block; font-weight: 500; font-size: 18px; line-height: 1.45; }
.sc .sl-row { display: grid; grid-template-columns: minmax(0, 1fr) 40px; gap: 14px; align-items: center; margin-top: 10px; }
.sc input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 34px; margin: 0; background: transparent; cursor: pointer; --p: 0%; }
.sc input[type=range]::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(to right, var(--ci) 0, var(--ci) var(--p), var(--sc-faint) var(--p), var(--sc-faint) 100%); }
.sc input[type=range]::-moz-range-track { height: 8px; border-radius: 99px; background: var(--sc-faint); }
.sc input[type=range]::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--ci); }
.sc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: #fff; border: 4px solid var(--ci); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); }
.sc input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--ci); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); }
.sc input[type=range].untouched::-webkit-slider-thumb { border: 3px dashed var(--ink-soft); opacity: 0.85; }
.sc input[type=range].untouched::-moz-range-thumb { border: 3px dashed var(--ink-soft); opacity: 0.85; }
.sc input[type=range].untouched::-moz-range-progress { background: transparent; }
/* Georgia's figures are old-style, which reads oddly for scores, so numbers use the sans */
.sc .val { font: 600 22px var(--sans); text-align: right; font-variant-numeric: tabular-nums; }
.sc .val.none { color: var(--ink-soft); }
.sc .scale { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.sc .hint { font-size: 14px; color: var(--ink-soft); }
.sc .nav-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 8px; }

/* tie-break */
.sc .opts { display: flex; flex-direction: column; gap: 10px; border: 0; margin: 0; padding: 0; }
.sc .opt { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 2px solid var(--sc-line); border-radius: 14px; background: #fff; cursor: pointer; font-weight: 500; }
.sc .opt:has(input:checked) { border-color: var(--ci); background: var(--sand); }
.sc .opt input { accent-color: var(--ci); width: 20px; height: 20px; margin: 0; }
.sc .opt .chip { margin-left: auto; }

/* results */
.sc .res { display: flex; flex-direction: column; gap: 52px; }
.sc .res-head { max-width: 40em; display: flex; flex-direction: column; gap: 14px; }
.sc .sc-card { background: #fff; border: 1px solid var(--sc-line); border-radius: 18px; padding: 28px 24px; display: flex; flex-direction: column; gap: 18px; align-items: stretch; }
.sc .card-title { text-align: center; }
.sc .meta { display: flex; flex-direction: column; gap: 6px; text-align: center; align-items: center; }
.sc .meta .big { font: 400 22px var(--serif); }
.sc .legend { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; font-size: 14px; color: var(--ink-soft); }
.sc .legend .dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--amber); border: 2px solid var(--ink); vertical-align: -1px; margin-right: 6px; }
.sc .wheel-wrap { max-width: 560px; margin-inline: auto; width: 100%; }
.sc .moves { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sc .move { background: #fff; border: 1px solid var(--sc-line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.sc .move .num { font: 600 28px var(--sans); font-variant-numeric: tabular-nums; }
.sc .bar-t { height: 8px; border-radius: 99px; background: var(--sc-faint); overflow: hidden; }
.sc .bar-t i { display: block; height: 100%; background: var(--ci); border-radius: 99px; }
.sc .move ul { margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-soft); }
.sc .sect { display: flex; flex-direction: column; gap: 14px; }
.sc .two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 48px; background: var(--sand); border-radius: 18px; padding: 32px 28px; }
.sc .two ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.sc .hand { font: 400 1.25rem/1.4 var(--hand); color: var(--purple); max-width: 30em; }
.sc .center { max-width: 38em; margin-inline: auto; text-align: left; }
.sc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.sc th, .sc td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--sc-line); font-variant-numeric: tabular-nums; }
.sc th { font-weight: 600; color: var(--ink-soft); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.sc .tablewrap { overflow-x: auto; }
.sc details > summary { cursor: pointer; font-weight: 600; padding-block: 6px; }
.sc .linkbox { font: 400 16px var(--sans); min-height: 48px; padding: 10px 14px; border-radius: 10px; border: 2px solid var(--sc-line); background: var(--paper); color: var(--ink); width: 100%; }
.sc .status { font-size: 15px; padding: 12px 14px; border-radius: 10px; background: var(--sand); }
.sc .cta { background: var(--amber); color: var(--ink); border-radius: 20px; padding: 44px 28px; text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.sc .cta p { max-width: 30em; }
@media (max-width: 760px) {
  .sc .moves, .sc .two { grid-template-columns: minmax(0, 1fr); }
  .sc .sc-card { padding: 22px 14px; }
  .sc .two { padding: 24px 20px; }
}

/* Keeps a keyboard-focused slider clear of the nav and the sticky progress bar (the one rule here outside .sc) */
html { scroll-padding-top: calc(var(--nav-h) + 84px); }
