/* W24: steps 7 (clinic support) and 8 (2A support), the step tiles, the title glow, an 8-step rail. */

/* ── Step tiles: machined black steel, top-lit, brass bevel on the top and left edges ── */
.act--js .step {
  --tile-sh: 0 1px 0 rgba(0,0,0,.6), 0 18px 36px -18px rgba(0,0,0,.95), 0 46px 80px -46px rgba(0,0,0,.85);
  position: relative; box-sizing: border-box; border-radius: 22px; padding: clamp(18px, 2vw, 28px);
  background: radial-gradient(120% 60% at 30% 0, rgba(255,255,255,.055), transparent 60%), linear-gradient(180deg, #17181c 0, #101114 45%, #0b0c0e 100%);
  box-shadow: inset 1px 1px 0 rgba(226,196,134,.32), inset 0 -2px 0 rgba(0,0,0,.65), inset -1px 0 0 rgba(0,0,0,.45), var(--tile-sh);
  transition: box-shadow .4s var(--ease, ease-out), transform .4s var(--ease, ease-out), opacity .4s;
}
.act--js .step.is-cur {
  --tile-sh: 0 1px 0 rgba(0,0,0,.6), 0 24px 44px -18px rgba(0,0,0,.95), 0 60px 100px -50px rgba(0,0,0,.9), 0 0 0 1px rgba(209,173,106,.14);
  box-shadow: inset 1px 1px 0 rgba(240,217,166,.62), inset 0 -2px 0 rgba(0,0,0,.65), inset -1px 0 0 rgba(0,0,0,.45), var(--tile-sh);
}
/* Desktop pinned stage: the view clips, so the tile keeps its shadow inside the stage. */
@media (min-width: 1101px) and (min-height: 600px) and (pointer: fine) {
  .act.is-scrub .act__view > .step { --tile-sh: 0 1px 0 rgba(0,0,0,.6), 0 10px 22px -12px rgba(0,0,0,.9); }
}
/* Phones and tablets: a very slight lean back that settles flat when the tile becomes current. */
@media (prefers-reduced-motion: no-preference) {
  html.pp .act.pp-flow .step { transform-origin: 50% 100%; }
  html.pp .act.pp-flow .step:not(.is-cur) { transform: perspective(1600px) rotateX(1.2deg); }
}
@media (max-width: 599px) {
  html.pp .act.pp-flow .step { padding: 4px 10px 16px; border-radius: 20px; }
}
@media (max-width: 359px) {
  html.pp .act.pp-flow .step { padding: 2px 8px 14px; }
}

/* ── Title glow: a warm brass-to-ember sweep as a step becomes current, then a steady soft glow ── */
.act--js .step__t { transition: filter .6s; }
.act--js .step.is-cur .step__t { filter: drop-shadow(0 0 8px rgba(226,196,134,.38)) drop-shadow(0 0 20px rgba(255,106,43,.16)); }
@media (prefers-reduced-motion: no-preference) {
  .act--js .step.is-cur .step__t {
    background: linear-gradient(100deg, #f6f1e7 0 36%, #ffe7b0 45%, #ff9a5c 50%, #ffe7b0 55%, #f6f1e7 64% 100%) 100% 0 / 300% 100% no-repeat;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    animation: w24sweep .9s var(--ease, ease-out) both, w24glow .9s ease-out both;
  }
}
@keyframes w24sweep { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes w24glow {
  0% { filter: drop-shadow(0 0 0 rgba(226,196,134,0)); }
  45% { filter: drop-shadow(0 0 14px rgba(255,154,92,.75)) drop-shadow(0 0 30px rgba(255,106,43,.4)); }
  100% { filter: drop-shadow(0 0 8px rgba(226,196,134,.38)) drop-shadow(0 0 20px rgba(255,106,43,.16)); }
}

/* ── Rail: 8 steps ── */
@media (min-width: 1101px) and (max-height: 960px) {
  .act__bar.is-rail .steps__sub { display: none; }
}
/* Short laptops (1366x657): 8 compact 44px rows so Next, Back and Skip stay on screen. */
@media (min-width: 1101px) and (max-height: 760px) {
  .act .act__bar.is-rail .steps button { min-height: 44px; height: 44px; padding-top: 0; padding-bottom: 0; }
}
@media (max-width: 599px) {
  html.pp .act.pp-flow .steps { gap: 4px; }
  html.pp .act.pp-flow .steps button { height: 50px; min-height: 50px; gap: 2px; }
  html.pp .act.pp-flow .steps li:not(:last-child)::after, html.pp .act.pp-flow .steps li:not(:last-child)::before { top: 50px; height: 4px; }
}
@media (max-width: 599px) and (max-height: 700px) {
  html.pp .act.pp-flow .steps__n { width: 30px; height: 30px; }
  html.pp .act.pp-flow .steps button { height: 48px; min-height: 48px; }
  html.pp .act.pp-flow .steps li:not(:last-child)::after, html.pp .act.pp-flow .steps li:not(:last-child)::before { top: 48px; }
}

/* ── Short links that jump to steps 7 and 8 ── */
.wf__see { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
.wf__lnk { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 18px; border: 1px solid rgba(209,173,106,.5); border-radius: 999px; background: rgba(209,173,106,.08); color: var(--brass-2, #e2c486); font: 600 15px/1.2 var(--f-body); cursor: pointer; transition: background-color .2s, border-color .2s; }
.wf__lnk:hover, .wf__lnk:focus-visible { background: rgba(209,173,106,.16); border-color: #e2c486; }
.wf__lnk .wf__go { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* ── Step 7 ── */
.rvd { min-width: 0; }
.step__demo-note { margin: 14px 0 0; font: 500 14px/1.45 var(--f-body); color: var(--ink-2, #c9c2b4); }
.step__demo-note b { color: var(--brass-2, #e2c486); font-weight: 600; }
.perks__key--built .perks__dot { background: transparent; border: 1.5px solid var(--brass, #d1ad6a); box-shadow: none; }
.perk__tag--built { margin-left: 8px; }

/* ── Step 8: the 2A demo ── */
.ta { --ta-b: #d1ad6a; --ta-g: #6ebe8c; display: grid; gap: 14px; min-width: 0; color: var(--ink, #f3eee4); }
.ta [hidden] { display: none !important; }
.ta__hd { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.ta__hd b { font: 600 17px/1.3 var(--f-body); }
.ta__hd span, .ta__item, .ta__lb, .ta__sub, .ta__msg, .ta__say { font: 500 14px/1.45 var(--f-body); color: var(--ink-2, #c9c2b4); }
.ta__hd span { font-family: var(--f-mono); font-size: 13px; letter-spacing: .04em; color: var(--ta-b); }
.ta__item { margin: -6px 0 0; }
.ta__item b { color: var(--ink, #f3eee4); font-family: var(--f-mono); font-weight: 500; }
.ta__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.ta__c { min-width: 0; padding: 14px; border: 1px solid rgba(209,173,106,.18); border-radius: 16px; background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)); opacity: .55; transition: opacity .35s, border-color .35s; }
.ta__c.is-on, .ta__c--4473 { opacity: 1; border-color: rgba(209,173,106,.38); }
.ta__k { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font: 600 15px/1.3 var(--f-body); color: var(--ink, #f3eee4); }
.ta__n { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--ta-b); color: var(--ta-b); font: 600 13px/1 var(--f-mono); }
.ta__n--x { border-style: dashed; }
.ta__lb { display: block; margin: 0 0 6px; }
.ta__row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ta__sel { flex: 1 1 180px; min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-2, rgba(255,255,255,.16)); border-radius: 12px; background: #0c0d10; color: var(--ink, #f3eee4); font: 500 16px/1.2 var(--f-body); }
.ta__btn { min-height: 44px; padding: 0 16px; border: 1px solid rgba(209,173,106,.45); border-radius: 12px; background: rgba(209,173,106,.06); color: var(--brass-2, #e2c486); font: 600 15px/1.2 var(--f-body); cursor: pointer; }
.ta__btn--b { border-color: #d1ad6a; background: linear-gradient(180deg, #e2c486, #c19a55); color: #160b05; }
.ta__btn:disabled { opacity: .4; cursor: default; }
.ta__res { display: grid; gap: 4px; margin-top: 12px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.03); font: 500 14px/1.45 var(--f-body); color: var(--ink-2, #c9c2b4); }
.ta__res.is-ok { border: 1px solid rgba(110,190,140,.4); background: rgba(110,190,140,.07); }
.ta__res > span:not(.ta__ok):not(.ta__mt):not(.ta__dv) { font-family: var(--f-mono); font-size: 13px; }
.ta__ok { display: inline-flex; align-items: center; gap: 6px; color: var(--ta-g); font: 700 15px/1.2 var(--f-body); }
.ta__ok svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ta__dv { font: 500 13px/1.3 var(--f-mono); color: var(--muted, #9a9384); }
.ta__spin { display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; border: 2px solid rgba(209,173,106,.3); border-top-color: #d1ad6a; border-radius: 50%; animation: taSpin .8s linear infinite; }
@keyframes taSpin { to { transform: rotate(360deg); } }
.ta__chk { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.ta__chk li { display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 8px; font: 500 14px/1.4 var(--f-body); color: var(--ink-2, #c9c2b4); animation: taIn .35s ease-out both; }
.ta__chk li b { color: var(--ink, #f3eee4); font-weight: 600; }
.ta__chk li > span:last-child { grid-column: 2; }
.ta__tw { overflow-x: auto; }
.ta__c[data-ta-c="book"], .ta__c[data-ta-c="cust"] { grid-column: 1 / -1; }
.ta__c[data-ta-c="book"] { container-type: inline-size; }
.ta__sn { white-space: nowrap; }
.ta__xm { margin: 8px 0 0; font: 500 14px/1.45 var(--f-body); color: var(--brass-2, #e2c486); }
.ta__xm:empty { display: none; }
.ta__t td:first-child { white-space: nowrap; }
/* A narrow book card lists each row as a small block instead of squeezing four columns. */
@container (max-width: 440px) {
  .ta__t thead { display: none; }
  .ta__t tr { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; padding: 10px 6px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .ta__t td { padding: 0; border: 0; }
  .ta__t td:nth-child(2) { color: var(--brass-2, #e2c486); }
  .ta__t td:nth-child(4) { grid-column: 1 / -1; font-family: var(--f-body); font-size: 14px; color: var(--ink-2, #c9c2b4); }
  .ta__t tr.is-new { background: rgba(209,173,106,.12); }
  .ta__t tr.is-new td { background: none; }
}
.ta__t { width: 100%; border-collapse: collapse; font: 500 13px/1.35 var(--f-mono); }
.ta__t th { padding: 6px 6px; text-align: left; font-weight: 500; color: var(--muted, #9a9384); border-bottom: 1px solid rgba(209,173,106,.25); }
.ta__t td { padding: 8px 6px; border-bottom: 1px solid rgba(255,255,255,.06); color: var(--ink, #f3eee4); overflow-wrap: anywhere; }
.ta__t tr.is-new td { background: rgba(209,173,106,.12); animation: taIn .45s ease-out both; }
.ta__cu, .ta__st { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ta__cu li, .ta__st li { padding: 8px 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; font: 500 13px/1.2 var(--f-body); color: var(--muted, #9a9384); }
:is(.ta__cu, .ta__st) li.is-done { border-color: rgba(209,173,106,.4); color: var(--brass-2, #e2c486); }
:is(.ta__cu, .ta__st) li.is-cur { border-color: #e2c486; background: rgba(209,173,106,.16); color: #fff; box-shadow: 0 0 14px -4px rgba(255,106,43,.6); }
.ta__st li.is-delay.is-cur { border-color: #ff9a5c; background: rgba(255,106,43,.14); }
.ta__sub { margin: -4px 0 10px; }
.ta__msg { margin: 10px 0 0; min-height: 2.9em; color: var(--ink, #f3eee4); }
/* The status line stays a live region for screen readers; each card shows its own confirmation. */
.ta { position: relative; }
.ta__say { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.ta__re { justify-self: start; min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--ink-2, #c9c2b4); font: 500 14px/1.2 var(--f-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@keyframes taIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ta__proof { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; font: 600 15px/1.3 var(--f-body); color: var(--ink, #f3eee4); }
.ta__proof img { flex-shrink: 0; width: 56px; height: 56px; object-fit: cover; object-position: 50% 0; border-radius: 12px; border: 1px solid rgba(209,173,106,.35); }
/* Phones: room between the Grizzly line and the demo order, so the line does not read as the demo's heading. */
@media (max-width: 599px) {
  [data-step-panel="8"] .step__show { margin-top: 28px; }
}
@media (prefers-reduced-motion: reduce) { .ta__chk li, .ta__t tr.is-new td { animation: none; } .ta__spin { animation: none; } }
