/* styles/start.css -- the first run (onboarding v1, 10 Oct 2026): what only
   screens/start.js's screens need. The shared parts (`onb*`, `savePop`) are
   calm.css's; the tokens (`--unlock*`) are calm.css's `:root`.
   Sizes are the handoff's references (`reference/Onb4_*.html` at 390 x 844,
   `Onb4s_*` at 375 x 667). */

/* ---- the shell: no heading (the frame draws the logo), the button pinned
        30 px from the foot over a 150 px fade into the page ------------- */
body.startmode > h1 { display: none; }
body.startmode { padding-bottom: calc(160px + env(safe-area-inset-bottom)); }
body.startmode .bar { padding: 60px 1rem calc(30px + env(safe-area-inset-bottom));
                      background: linear-gradient(180deg, rgba(5, 6, 7, 0),
                                                  var(--bg) 55%); }
body.startmode .bar button.c-btn { min-height: 56px; border-radius: 16px;
                                   font-size: 17px; }
body.startmode .bar button.c-btn:disabled { opacity: 1; background: #1c2636;
                                            color: #6c7686; }
.st-foot { display: flex; flex-direction: column; gap: 4px; }
.st-foot button.c-link { align-self: center; justify-content: center;
                         font-size: 15px; }
@media (max-height: 700px) {
  body.startmode .bar { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
}

.st-page { display: flex; flex-direction: column; }
.st-page > * { margin-top: 0; margin-bottom: 0; }
.st-page > * + * { margin-top: 16px; }
.st-page > .c-unlock, .st-page > .c-onhead { margin-top: 0; }
.st-quiet { color: var(--quiet); font-size: 13px; line-height: 1.4; }
/* R4's line for an active injury (onboarding v2, `Vol_A6`). */
.st-injline { color: var(--c-ink-2); font-size: 13.5px; line-height: 1.45; }
.st-center { text-align: center; }
.st-card { padding: 4px 16px; border-radius: 22px;
           border: 1px solid var(--unlock-off);
           background: var(--card-fill); box-shadow: var(--card-lift); }
.st-rise { animation: c-rise 320ms cubic-bezier(.2, .8, .2, 1) both; }
.st-page .grow, .st-svlayer .grow { flex: 1 1 auto; min-width: 0; }

/* ---- S0, the welcome screen: gone with the intro (15 Oct 2026, styles/intro.css) */

/* ---- the questions --------------------------------------------------- */
.st-qlabel { margin: 0 0 10px; font-size: 16px; font-weight: 800;
             line-height: 1.3; }
.st-later { opacity: .35; }
.st-secnote { color: var(--c-ink-2); font-size: 15px; line-height: 1.45; }
.st-page > .st-secnote { margin-top: 6px; }
.st-callout { display: flex; gap: 10px; align-items: flex-start;
              padding: 12px 14px; border-radius: 14px;
              background: rgba(47, 138, 224, .08);
              border: 1px solid rgba(47, 138, 224, .25); }
.st-callout p { margin: 0; color: var(--c-ink-2); font-size: 13.5px;
                line-height: 1.45; }
.st-cico { flex: none; display: inline-flex; width: 16px; height: 16px;
           margin-top: 1px; color: var(--accent-soft); }
.st-cico svg { width: 100%; height: 100%; fill: none; stroke: currentColor;
               stroke-width: 2; stroke-linejoin: round; }
.st-qs, .st-choices { display: flex; flex-direction: column; gap: 8px; }
.st-qs > .st-qopen { margin-top: 10px; }
.st-qs > .st-later { margin: 10px 0 0; }
.st-q2seg { padding: 12px 0 14px; }
.st-q2seg + button.c-orow { border-top: 1px solid var(--grid); }

/* ---- A1 -------------------------------------------------------------- */
/* 2026-11-01 (slice 4, `Onb6_A1`): the T rating card -- WAS the level
   scale (`st-scale`) and three icon rows (`st-a1row`). */
.st-a1 { padding: 16px; border-radius: 24px; }
.st-a1top { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.st-a1top > span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.st-a1top b { font-size: 18px; font-weight: 800; line-height: 1.22; }
.st-a1top b + span { color: var(--c-ink-2); font-size: 13.5px; line-height: 1.4; }
.st-tips { display: flex; flex-direction: column; gap: 8px; margin: 16px 0 0;
           padding: 0 0 0 22px; color: var(--c-ink-2); font-size: 15px;
           line-height: 1.35; }
.st-tips li::marker { color: var(--quiet); }

/* The T rating's seven parts (slice 4, O1): a name and a track each, in
   You's colours; no Target tick. Intro page 1 fills them all to one
   length; A1 leaves them empty. */
.st-tbars { display: flex; flex-direction: column; gap: 7px; }
.st-tbars > span { display: flex; align-items: center; gap: 12px; }
.st-tbars em { flex: 0 0 122px; font-style: normal; font-size: 13.5px;
               font-weight: 700; color: var(--ink); text-align: left; }
.st-tbars i { flex: 1 1 auto; height: 6px; border-radius: 3px;
              background: #1d2a3b; overflow: hidden; }
.st-tbars i b { display: block; height: 100%; border-radius: 3px;
                background: var(--sc); }
.st-tcap { margin: 4px 0 0; color: var(--c-ink-2); font-size: 12.5px;
           line-height: 1.35; text-align: center; }

/* ---- Q5, the check list ---------------------------------------------- */
.st-eq { padding: 0 16px; }
.st-eqgrp + .st-eqgrp { border-top: 1px solid var(--grid); }
button.st-eqhead { display: flex; align-items: center; gap: 10px; width: 100%;
                   min-height: 52px; margin: 0; padding: 0; border: 0;
                   background: none; color: var(--ink); font-size: 15px;
                   font-weight: 700; text-align: left; }
button.st-eqhead:active, button.st-eqrow:active { transform: none; }
.st-eqn { flex: none; color: var(--quiet); font-size: 13px; font-weight: 600; }
.st-eqn.all { color: var(--unlock-text); }
.st-eqhead .lchev { transition: transform .18s ease; }
.st-eqgrp.open .st-eqhead .lchev { transform: rotate(90deg); }
button.st-eqrow { display: flex; align-items: center; gap: 12px; width: 100%;
                  min-height: 44px; margin: 0; padding: 0 0 0 4px; border: 0;
                  background: none; color: var(--c-ink-2); font-size: 15px;
                  text-align: left; }
.st-eqgrp.open button.st-eqrow:last-child { margin-bottom: 8px; }
.st-box { flex: none; display: inline-flex; width: 22px; height: 22px;
          padding: 3px; border-radius: 6px; border: 2px solid #3d5068; }
.st-box.on { border: 0; padding: 4px; background: var(--accent-bright);
             color: #fff; }
.st-box svg { width: 100%; height: 100%; fill: none; stroke: currentColor;
              stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
button.st-eqrow:disabled { opacity: .7; }

/* ---- Q6, the rows and their sheets ----------------------------------- */
.st-rows { padding: 4px 16px; }
.st-sheetnote { margin: 0; color: var(--c-ink-2); font-size: 13.5px;
                line-height: 1.45; }
.st-sheetlab { margin: 4px 0 0; color: var(--c-ink-2); font-size: 13px;
               font-weight: 700; }
.st-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
button.st-day { display: flex; flex-direction: column; align-items: center;
                justify-content: center; gap: 2px; min-height: 56px; margin: 0;
                padding: 0; border: 1px solid var(--unlock-off);
                border-radius: 12px; background: none; color: var(--c-ink-2);
                text-align: center; }
button.st-day b { font-size: 18px; }
button.st-day span { font-size: 10.5px; font-weight: 600; }
button.st-day.on { border-color: var(--accent-bright);
                   background: var(--accent-bright); color: #fff; }
.st-seg { display: flex; gap: 4px; }
button.st-segb { flex: 1 1 0; min-width: 0; min-height: 40px; margin: 0;
                 padding: 0 4px; border: 1px solid var(--unlock-off);
                 border-radius: 10px; background: none; color: var(--c-ink-2);
                 font-size: 13.5px; font-weight: 700; text-align: center; }
button.st-segb.on { border-color: var(--accent-bright);
                    background: var(--accent-bright); color: #fff; }
.st-subopts { display: flex; flex-direction: column; gap: 8px;
              margin-left: 12px; padding-left: 12px;
              border-left: 2px solid var(--unlock-off); }

/* ---- Q7 -------------------------------------------------------------- */
.st-t { display: flex; flex-direction: column; gap: 14px; padding: 16px; }
.st-dico { flex: none; display: inline-flex; width: 18px; height: 18px;
           margin-left: auto; color: var(--accent-soft); }
.st-dico svg { width: 100%; height: 100%; fill: none; stroke: currentColor;
               stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
button.st-date { gap: 8px; }
button.st-date.empty { color: #5d6778; font-weight: 400; }

/* ---- R1's failure ---------------------------------------------------- */
.st-fail { padding-top: 40px; text-align: center; }
.st-failico { display: inline-flex; width: 64px; height: 64px; padding: 18px;
              border-radius: 50%; background: rgba(240, 185, 90, .12);
              color: #f6d38f; }
.st-failico svg { width: 100%; height: 100%; fill: none; stroke: currentColor;
                  stroke-width: 2; stroke-linejoin: round; }
.st-fail .c-onstem { margin-top: 20px; }

/* ---- R2, the road ---------------------------------------------------- */
.st-road { --focal: var(--comp); padding: 16px; border-radius: 24px; }
.st-roadtop { display: flex; justify-content: space-between; gap: 12px;
              margin-bottom: 12px; color: #c9b88f; font-size: 12px;
              font-weight: 700; }
.st-tiles { display: flex; flex-direction: column; gap: 8px; }
.st-cycbar { display: flex; gap: 3px; }
.st-cycbar > span { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.st-cycbar i { display: block; height: 12px; border-radius: 6px;
               background: var(--pc); }
.st-cycbar b { color: var(--pl); font-size: 11px; font-weight: 800;
               white-space: nowrap; }
button.st-ctile { display: flex; align-items: center; gap: 12px; width: 100%;
                  min-height: 0; margin: 0; padding: 12px 14px;
                  border: 1px solid var(--unlock-off); border-radius: 18px;
                  background: var(--card-fill); color: var(--ink);
                  text-align: left; }
.st-ring { flex: none; width: 14px; height: 14px; border-radius: 50%;
           border: 3px solid var(--pc); }
.st-ctop { display: flex; justify-content: space-between; gap: 8px; }
.st-ctop b { color: var(--pl); font-size: 13px; font-weight: 800;
             letter-spacing: .1em; text-transform: uppercase; }
.st-ctop span { color: var(--quiet); font-size: 12px; }
.st-cline { display: block; margin-top: 3px; color: var(--c-ink-2);
            font-size: 14px; }
button.st-ctile svg { flex: none; width: 14px; height: 14px; fill: none;
                      stroke: var(--quiet); stroke-width: 2.2;
                      stroke-linecap: round; stroke-linejoin: round; }
button.st-addt { display: flex; align-items: center; justify-content: center;
                 gap: 8px; width: 100%; min-height: 52px; margin: 0;
                 border: 1.5px dashed rgba(240, 185, 90, .55); border-radius: 16px;
                 background: none; color: #f6d38f; font-size: 15px;
                 font-weight: 700; text-align: center; }
button.st-addt svg { width: 16px; height: 16px; fill: none; stroke: currentColor;
                     stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- R3, the first week ---------------------------------------------- */
.st-week { padding: 2px 16px 4px; }
.st-wday { display: flex; gap: 12px; align-items: center; min-height: 50px;
           padding: 6px 0; }
.st-wday + .st-wday { border-top: 1px solid var(--grid); }
.st-wd { flex: none; width: 52px; color: var(--c-ink-2); font-size: 13px;
         font-weight: 800; }
.st-wday.first .st-wd { color: var(--accent-soft); }
.st-wl { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap;
         column-gap: 10px; row-gap: 2px; line-height: 1.6; }
.st-sess { display: inline-flex; align-items: center; gap: 6px; }
.st-sess > i { flex: none; width: 8px; height: 8px; border-radius: 50%;
               background: var(--sc); }
.st-sess b { font-size: 14px; font-weight: 700; }
.st-sess > span { color: var(--quiet); font-size: 13px; }
.st-sess > .st-sample { padding: 2px 7px; border-radius: 6px;
                        background: rgba(240, 185, 90, .14);
                        border: 1px solid rgba(240, 185, 90, .4);
                        color: #f6d38f; font-size: 10.5px; font-weight: 800;
                        letter-spacing: .06em; text-transform: uppercase;
                        line-height: 1.3; }
.st-rest { color: var(--quiet); font-size: 13px; }
.st-rest b { color: var(--unlock); font-size: 14px; font-weight: 700; }

/* ---- R4 -------------------------------------------------------------- */
/* slice 4 (`Onb6_R4`): the T rating the hero, the rest three quiet rows
   in one card -- WAS a grid of four tiles (`st-coming`). */
.st-thero { display: flex; gap: 14px; align-items: center; padding: 12px 14px;
            border-radius: 22px; }
.st-thero > span { display: flex; flex-direction: column; align-items: flex-start;
                   gap: 4px; min-width: 0; }
/* its COMING beside the eyebrow, not under the line: R4 fits a 667 px
   phone without scrolling (`Onb6_R4`, DRIVEN 2026-11-01) */
.st-thtop { display: flex; align-items: center; gap: 8px; }
.st-theye { color: var(--accent-soft); font-size: 11px; font-weight: 800;
            letter-spacing: .12em; text-transform: uppercase; }
.st-thero b { font-size: 20px; font-weight: 800; line-height: 1.2; }
.st-thline { color: var(--c-ink-2); font-size: 14px; line-height: 1.4; }
.st-tag { flex: none; padding: 2px 8px; border-radius: 8px;
          background: rgba(140, 196, 245, .12); color: var(--accent-soft);
          font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.st-urows { margin-top: 8px; padding: 0 14px; }
.st-urow { display: flex; gap: 12px; align-items: center; padding: 8px 0; }
.st-urow + .st-urow { border-top: 1px solid var(--grid); }
.st-ulock { flex: none; display: inline-flex; width: 16px; height: 16px;
            color: var(--quiet); }
.st-ulock svg { width: 100%; height: 100%; fill: none; stroke: currentColor;
                stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.st-um { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column;
         gap: 2px; }
.st-um b { font-size: 15.5px; font-weight: 800; }
.st-um span { color: var(--c-ink-2); font-size: 13px; line-height: 1.35; }
.st-urow .st-tag { background: rgba(255, 255, 255, .05); color: var(--quiet); }
/* The gate block (onboarding v2, `Vol_A6`): Ready now in the unlock green,
   Starting gently in the soft blue, a row each under a hairline. */
.st-gates { padding: 4px 16px 6px; }
.st-glab { margin: 0; padding: 12px 0 4px; color: var(--accent-soft);
           font-size: 11.5px; font-weight: 800; letter-spacing: .12em;
           text-transform: uppercase; }
.st-glab.ok { color: var(--unlock); }
.st-glab:first-child { padding-top: 10px; }
.st-grow { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0;
           border-top: 1px solid var(--grid); }
.st-gico { flex: none; display: inline-flex; width: 30px; height: 30px;
           padding: 7.5px; border-radius: 10px; box-sizing: border-box;
           background: rgba(140, 196, 245, .10); color: var(--accent-soft); }
.st-grow.ok .st-gico { background: rgba(99, 210, 154, .12);
                       color: var(--unlock); }
.st-gico svg { width: 100%; height: 100%; fill: none; stroke: currentColor;
               stroke-width: 2.6; stroke-linecap: round;
               stroke-linejoin: round; }
.st-gname { display: block; font-size: 15px; font-weight: 800; }
.st-gline { display: block; margin-top: 1px; color: var(--c-ink-2);
            font-size: 13px; line-height: 1.35; }
/* R1's gates card (`Vol_A7`), under the build lines. */
.st-gcard { padding: 12px 14px; border-radius: 16px;
            border: 1px solid var(--unlock-off); background: var(--card-fill);
            font-size: 14px; font-weight: 800; line-height: 1.5; }
.st-gcard p { margin: 0; color: var(--accent-soft); }
.st-gcard p.ok { color: var(--unlock); }

/* ---- the save sheet: over any screen, outside it --------------------- */
.st-svtitle { margin: 0; font-size: 22px; font-weight: 800; }
.st-svlayer button.c-link { align-self: center; }
.sheetwrap.st-svlayer { z-index: 95; transition: opacity 240ms ease; }
.sheetwrap.st-svlayer .sheet { transition: transform 260ms ease; }
.sheetwrap.st-svlayer.in, .sheetwrap.st-svlayer.out { opacity: 0; }
.sheetwrap.st-svlayer.in .sheet,
.sheetwrap.st-svlayer.out .sheet { transform: translateY(40%); }

@media (prefers-reduced-motion: reduce) {
  .st-rise { animation: none; }
  .st-eqhead .lchev { transition: none; }
  .sheetwrap.st-svlayer .sheet, .sheetwrap.st-svlayer.in .sheet,
  .sheetwrap.st-svlayer.out .sheet { transition: none; transform: none; }
}

/* ---- v2 (2026-10-20): the date of birth's three wheels, side by side, and
        H2's kind stop ---------------------------------------------------- */
.st-dobrow { display: flex; gap: 8px; }
.st-dobcol { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column;
             gap: 4px; }
.st-doblab { margin: 0; color: var(--quiet); font-size: 12.5px;
             font-weight: 700; text-align: center; }
.st-dobcol .c-wv { font-size: 17px; }
.st-dobcol .c-wv.on { font-size: 20px; }
/* 2026-10-22 ("Wheels start blank"): the empty row above each wheel's
   first value -- its label, quiet, never a value */
.st-dobcol .c-wv.st-dobnone { color: var(--quiet); font-size: 15px; }
.st-dobcol .c-wv.st-dobnone.on { font-size: 16px; font-weight: 700; }
.st-stop { display: flex; flex-direction: column; gap: 14px;
           padding-top: 18vh; }
/* ---- v2 B6a (2026-10-21): the junior first run -- an input's ⓘ beside
        it, H1's birth parents' heights, H12, H3's stepper and room card,
        H4's sheet, H5. No H designs exist (Round 3): the house parts, in
        the I9b / I9c / I9e references' places ---------------------------- */
.st-why { display: flex; align-items: center; gap: 4px; }
.st-why > :first-child { flex: 0 1 auto; min-width: 0; }
.st-why > button.c-orow { flex: 1 1 auto; }
.st-card > .st-why + .st-why, .st-card > button.c-orow + .st-why,
.st-card > .st-why + button.c-orow, .st-q2seg + .st-why {
  border-top: 1px solid var(--grid); }
.st-parents { display: flex; flex-direction: column; gap: 8px; }
.st-parhead { display: flex; align-items: center; gap: 4px; }
.st-parhead .st-qlabel { margin: 0; }
.st-optional { margin-left: auto; color: var(--quiet); font-size: 13px; }
.st-parnote { margin: 0; color: var(--c-ink-2); font-size: 13.5px;
              line-height: 1.45; }
.st-partiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.st-partiles > button.c-orow, .st-partiles > button.c-orow + button.c-orow {
  padding: 10px 14px; border-radius: 16px;
  border: 1px solid var(--unlock-off); background: var(--card-fill); }
.st-partiles .lchev { display: none; }
.st-parents > button.c-link { align-self: center; }
.st-parknown { display: flex; flex-direction: column; gap: 4px;
               padding: 12px 16px; }
.st-parv { margin: 0; font-size: 16px; font-weight: 800; }
.st-parknown button.c-link { align-self: flex-start; padding-left: 0; }
.st-hours .c-stepper { margin: 4px 0 12px; }
.st-hours .c-ochips { grid-template-columns: 1fr; }
.st-hours .c-stepv { cursor: pointer; }
.st-room { margin-top: 12px; padding: 14px 16px; }
.st-roomt { margin: 0; font-size: 16px; font-weight: 800; line-height: 1.3; }
.st-roomx { margin: 6px 0 0; color: var(--c-ink-2); font-size: 13.5px;
            line-height: 1.45; }
.st-rbar { display: flex; height: 8px; margin-top: 12px; border-radius: 999px;
           overflow: hidden; background: var(--grid); }
.st-rbar > i { display: block; height: 100%; }
.st-rbar > i.t { background: var(--accent); }
.st-rbar > i.s { background: var(--unlock); }
.st-rlabs { display: flex; justify-content: space-between; gap: 8px;
            margin-top: 8px; color: var(--c-ink-2); font-size: 12.5px; }
.st-h4eye { color: var(--warn); }
.st-h4 button.c-link { align-self: center; justify-content: center; }
.st-h4p { margin: 0; color: var(--c-ink-2); font-size: 15px;
          line-height: 1.5; }
.st-glab.held { color: var(--accent-soft); }
.st-glabrow { display: flex; align-items: center; justify-content: space-between;
              gap: 8px; }
.st-glabrow .st-glab { padding-top: 12px; }
.st-ceiling { color: var(--c-ink-2); font-size: 14px; line-height: 1.45; }
