/* How it works on helpsplit.com. Ported from research/2026-11-11-how-it-works-motion/.
   Every rule is scoped to #how so it cannot reach the rest of the page, and the page cannot reach it.
   Colours are the page's own variables (index.html :root). Without JavaScript the stage stays
   hidden and the three cards read as plain text. */
#how:not(.live) .fit, #how:not(.live) .bar { display: none; }
#how button { font: inherit; color: inherit; }
#how button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#how .ctl {
    min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--rule);
    background: none; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer;
  }
#how .ctl:hover { background: var(--card); }
#how { padding: 52px 0 64px; }
#how h2 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.1; letter-spacing: -0.025em; font-weight: 700; color: var(--ink-bright); }
#how .steps { list-style: none; display: grid; gap: 10px; margin-top: 20px; }
#how .step {
    position: relative; height: 100%; background: var(--card); border: 1px solid var(--rule); border-radius: 18px;
    overflow: hidden; cursor: pointer;
    transition: transform .5s cubic-bezier(.22,.61,.36,1), box-shadow .5s, border-color .5s;
  }
#how .step.on { box-shadow: var(--shadow); border-color: var(--accent); }
#how .label {
    position: relative; display: block; width: 100%; padding: 12px 18px; overflow: hidden;
    background: var(--inset); border: 0; border-bottom: 1px solid var(--rule-soft);
    font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.5;
    color: var(--ink); text-align: left; cursor: pointer;
  }
#how .label:focus-visible { outline-offset: -2px; }
#how .fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--wash); }
#how .label b { position: relative; font-weight: 700; }
#how .body { display: grid; gap: 8px; padding: 14px 18px 18px; }
#how .head { font-size: 18px; font-weight: 600; line-height: 1.3; color: var(--ink-bright); text-wrap: balance; }
#how .sub { font-size: 14.5px; line-height: 1.4; color: var(--muted); }
#how .ways { display: flex; flex-wrap: wrap; gap: 6px; }
#how .way {
    min-height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--rule);
    background: none; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer;
    transition: background .4s, color .4s, border-color .4s;
  }
#how .way.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
#how.live .step:not(.on) .body { display: none; }
#how .bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 14px; font-size: 14px; color: var(--muted); }
#how .note { padding-block: 0 28px; font-size: 13px; color: var(--muted); }
#how .fit { margin-top: 16px; }
#how .stage {
    position: relative; overflow: hidden; border-radius: 26px; border: 1px solid var(--rule);
    background: linear-gradient(180deg, var(--sky) 0%, var(--sky) 32%, var(--stage-bot) 100%);
    perspective: 1300px; perspective-origin: 50% 42%; transform-origin: 0 0;
    -webkit-user-select: none; user-select: none;
  }
#how .world, #how .act { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
#how .act { left: 0; top: 0; }
#how .floor {
    position: absolute; left: 0; top: 0; width: 2600px; height: 2600px; pointer-events: none;
    background-image: radial-gradient(circle, var(--floor-dot) 1.5px, transparent 2px); background-size: 42px 42px;
    -webkit-mask-image: radial-gradient(circle 1000px at 50% 50%, #000 0, #000 58%, transparent 100%);
    mask-image: radial-gradient(circle 1000px at 50% 50%, #000 0, #000 58%, transparent 100%);
  }
#how .floor::after {
    content: ""; position: absolute; left: 50%; top: 50%; width: 1480px; height: 1480px; margin: -740px 0 0 -740px;
    border-radius: 50%; border: 2px solid var(--floor-dot);
  }
#how .shadow {
    position: absolute; left: 0; top: 0; width: 240px; height: 240px; border-radius: 50%; pointer-events: none;
    background: radial-gradient(closest-side, var(--shadow-ink), transparent);
  }
#how .obj {
    position: absolute; left: 0; top: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden;
    font-size: 13px; line-height: 1.35; color: var(--ink);
  }
#how .obj::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: var(--sky); opacity: var(--veil, 0);
  }
#how .card { background: var(--card); border: 1px solid var(--rule); border-radius: 18px; box-shadow: 0 16px 26px -16px var(--shade); }
#how .phone { width: 236px; height: 496px; padding: 7px; border-radius: 41px; background: var(--bezel); box-shadow: 0 16px 26px -16px var(--shade); }
#how .screen { position: relative; height: 100%; border-radius: 34px; background: var(--card); overflow: hidden; }
#how .screen::before {
    content: ""; position: absolute; left: 50%; top: 7px; z-index: 6; width: 68px; height: 19px; margin-left: -34px;
    border-radius: 999px; background: var(--bezel);
  }
#how .scr { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 8px; padding: 38px 14px 14px; }
#how .foot { margin-top: auto; }
#how .lab { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.4; color: var(--muted); }
#how .xs { font-size: 11px; line-height: 1.35; color: var(--muted); }
#how .num { font-variant-numeric: tabular-nums; }
#how .av {
    flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
    color: var(--on-av); font-size: 12px; font-weight: 700; font-style: normal; line-height: 1;
  }
#how .av.t { width: 16px; height: 16px; font-size: 9px; }
#how .av.s { width: 22px; height: 22px; font-size: 10.5px; }
#how .sam { background: var(--sam); }
#how .maya { background: var(--maya); }
#how .nia { background: var(--nia); }
#how .b {
    display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 0 12px;
    border-radius: 999px; border: 1.5px solid var(--accent); background: var(--accent); color: var(--on-accent);
    font-size: 12px; font-weight: 700; white-space: nowrap; cursor: pointer;
    transition: transform .25s ease, filter .25s ease, background .25s ease;
  }
#how .b.ghost { background: none; color: var(--accent); }
#how .b.soft { background: var(--inset); border-color: transparent; color: var(--ink); }
#how .b.wide { display: flex; width: 100%; min-height: 36px; }
#how .b.pr { transform: scale(0.97); filter: brightness(0.88); }
#how .rowp, #how .tg { transition: background .25s ease, color .3s ease, border-color .3s ease; }
#how .rowp.pr { background: var(--inset); }
#how .tg.pr { background: var(--wash); }
#how .chip {
    display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--inset); color: var(--ink);
    font-size: 9.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  }
#how .tick { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); }
#how .tick::after {
    content: ""; width: 14px; height: 8px; margin-top: -3px; border-left: 3px solid var(--on-accent); border-bottom: 3px solid var(--on-accent);
    transform: rotate(-45deg);
  }
#how .cap {
    padding: 4px 12px; border-radius: 999px; background: var(--ink-bright); color: var(--ground);
    font-size: 12px; font-weight: 700; white-space: nowrap;
  }
#how .toast {
    padding: 7px 13px; border-radius: 999px; background: var(--accent); color: var(--on-accent);
    font-size: 12px; font-weight: 700; white-space: nowrap; box-shadow: 0 10px 18px -10px var(--shade);
  }
#how .token {
    padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--on-accent);
    font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none;
  }
#how .finger { width: 22px; height: 22px; border-radius: 50%; background: var(--finger); border: 2px solid var(--finger-edge); pointer-events: none; }
#how .layers { position: relative; }
#how .layer { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 8px; padding: 0 14px; text-align: center; }
#how .lt { font-size: 15px; font-weight: 700; color: var(--ink-bright); line-height: 1.25; }
#how .st { font-size: 16px; font-weight: 700; text-align: center; color: var(--ink-bright); }
#how .st.left { text-align: left; font-size: 18px; letter-spacing: -0.01em; margin-bottom: -6px; }
#how .gcard { display: grid; gap: 4px; width: 196px; padding: 14px 16px; }
#how .gcard b { font-size: 16px; color: var(--ink-bright); }
#how .gcard small { font-size: 12px; color: var(--muted); }
#how .avs { display: flex; margin-bottom: 4px; }
#how .avs .av + .av { margin-left: -7px; box-shadow: -2px 0 0 var(--card); }
#how .gpick { text-align: center; margin-top: -4px; }
#how .gpick span { display: inline-block; padding: 3px 11px; border-radius: 999px; background: var(--inset); font-size: 11px; font-weight: 600; }
#how .big { margin: 10px 0 6px; text-align: center; font-size: 38px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; color: var(--ink-bright); }
#how .field { padding: 9px 12px; border-radius: 12px; border: 1px solid var(--rule); font-size: 13px; font-weight: 600; }
#how .psplit { padding: 9px 12px; border-radius: 12px; border: 1.5px solid var(--accent); text-align: center; font-size: 12px; font-weight: 700; color: var(--accent); }
#how .when { display: flex; justify-content: space-between; align-items: center; padding: 0 2px; font-size: 12px; color: var(--muted); }
#how .when span:last-child { padding: 3px 10px; border-radius: 999px; background: var(--inset); font-weight: 600; color: var(--ink); }
#how .scr > .lab { margin-top: 6px; }
#how .ins { display: flex; flex-wrap: wrap; gap: 6px; }
#how .in { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px 0 5px; border-radius: 999px; background: var(--inset); font-size: 11.5px; font-weight: 600; }
#how .claims { list-style: none; display: grid; gap: 6px; }
#how .claims li { display: grid; gap: 6px; padding: 8px 9px 9px; border-radius: 12px; background: var(--inset); }
#how .clh { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; line-height: 1.2; }
#how .clh .num { font-weight: 700; color: var(--ink-bright); }
#how .tgs { display: flex; gap: 5px; }
#how .tg {
    display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px 0 3px; border-radius: 999px;
    border: 1.5px solid var(--rule); background: var(--card); font-size: 11px; font-weight: 600; cursor: pointer;
  }
#how .tg.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
#how .part { margin-bottom: 8px; text-align: center; font-size: 13.5px; font-weight: 700; color: var(--ink-bright); }
#how .res { width: 244px; padding: 14px 16px 8px; }
#how .resh { display: flex; justify-content: space-between; align-items: baseline; }
#how .resh b { font-size: 20px; letter-spacing: -0.01em; color: var(--ink-bright); }
#how .sbar, #how .ttbar { display: flex; gap: 3px; height: 10px; margin: 9px 0 4px; }
#how .sbar i, #how .ttbar i { display: block; min-width: 4px; border-radius: 4px; flex: 1 1 0; }
#how .res ul { list-style: none; }
#how .res li { display: flex; align-items: center; gap: 9px; padding: 7px 0; border-top: 1px solid var(--rule-soft); font-size: 14px; font-weight: 600; }
#how .res li:first-child { border-top: 0; }
#how .res li > span:nth-child(2) { flex: 1; min-width: 0; line-height: 1.2; }
#how .res .tag { display: block; font-size: 8.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
#how .res li .num { font-size: 16px; font-weight: 700; color: var(--ink-bright); }
#how .tt { width: 244px; padding: 13px 16px 12px; }
#how .tt .ttbar { margin: 9px 0 7px; height: 12px; }
#how .ttvals { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; }
#how .ttvals span { display: inline-flex; align-items: center; gap: 4px; }
#how .browser { width: 292px; background: var(--card); border: 1px solid var(--rule); border-radius: 20px; overflow: hidden; box-shadow: 0 16px 26px -16px var(--shade); }
#how .ubar { padding: 8px 12px; background: var(--inset); border-bottom: 1px solid var(--rule-soft); }
#how .url { display: block; padding: 4px 12px; border-radius: 999px; background: var(--card); font-size: 11.5px; color: var(--muted); }
#how .pg { display: grid; gap: 5px; padding: 14px 16px 8px; }
#how .meta { font-size: 11.5px; color: var(--muted); }
#how .grp { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; color: var(--ink-bright); }
#how .grp.sm { font-size: 17px; }
#how .pg .lab { margin-top: 8px; }
#how .orows { list-style: none; }
#how .orows li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--rule-soft); font-size: 13px; font-weight: 600; }
#how .orows li:first-child { border-top: 0; }
#how .orows li > span:nth-child(2) { flex: 1; min-width: 0; line-height: 1.25; }
#how .orows li small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }
#how .orows .num { font-weight: 700; color: var(--ink-bright); }
#how .orows.sm li { padding: 4px 0; font-size: 12px; }
#how .orows.plain li > span:first-child { display: none; }
#how .about { padding: 9px 16px 11px; background: var(--inset); font-size: 11px; line-height: 1.35; color: var(--muted); }
#how .jtop { display: grid; gap: 4px; }
#how .board { position: relative; height: 196px; margin-top: auto; border-radius: 16px; border: 1px solid var(--rule); background: var(--inset); }
#how .board .layer { padding: 0 12px; }
#how .spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--rule); border-top-color: var(--accent); }
#how .keeper { width: 248px; height: 222px; }
#how .keeper .layers { height: 100%; }
#how .keeper .layer { justify-items: stretch; text-align: left; gap: 8px; padding: 0 16px; }
#how .keeper .layer.c { justify-items: center; text-align: center; }
#how .krow { display: flex; align-items: center; gap: 9px; }
#how .krow > div { flex: 1; min-width: 0; }
#how .krow b { display: block; font-size: 14px; color: var(--ink-bright); }
#how .krow small { display: block; font-size: 11px; color: var(--muted); }
#how .krow .num { font-size: 17px; font-weight: 700; color: var(--accent); }
#how .pick { display: flex; gap: 6px; }
#how .opt { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px 0 5px; border-radius: 999px; border: 1.5px solid var(--rule); font-size: 12px; font-weight: 600; }
#how .opt:last-child { padding-left: 10px; color: var(--muted); }
#how .opt.on { border-color: var(--accent); }
#how .remind { display: grid; gap: 12px; width: 248px; padding: 16px; }
#how .two { display: grid; grid-template-columns: 1fr 1.5fr; gap: 6px; }
#how .two.eq { grid-template-columns: 1fr 1fr; }
#how .mh { display: grid; justify-items: center; gap: 3px; padding: 34px 0 8px; border-bottom: 1px solid var(--rule-soft); font-size: 11px; }
#how .thread { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; height: 388px; padding: 12px; }
#how .bubble {
    position: relative; overflow: hidden; max-width: 180px; padding: 9px 12px; border-radius: 18px 18px 18px 5px;
    background: var(--inset); color: var(--ink); font-size: 12.5px; line-height: 1.38;
  }
#how .bubwash { position: absolute; inset: 0; background: var(--wash); opacity: 0; }
#how .bubble span { position: relative; }
#how .bubble u { text-underline-offset: 2px; color: var(--accent); }
#how .compose { flex: none; align-self: stretch; height: 30px; margin-top: 12px; border-radius: 999px; border: 1.5px solid var(--rule); }
#how .rnav { text-align: center; line-height: 1.2; }
#how .rnav b { display: block; font-size: 13px; color: var(--ink-bright); }
#how .rnav small { font-size: 10.5px; color: var(--muted); }
#how .hero { text-align: center; }
#how .hamt { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; color: var(--ink-bright); }
#how .hamt.pos { color: var(--accent); }
#how .rsec { border-radius: 14px; border: 1px solid var(--rule); overflow: hidden; }
#how .rsec > .lab { padding: 7px 11px 6px; background: var(--inset); color: var(--accent); }
#how .rrows { list-style: none; }
#how .rrows li { display: flex; align-items: center; gap: 7px; height: 46px; padding: 0 8px 0 9px; overflow: hidden; border-top: 1px solid var(--rule-soft); font-size: 13px; font-weight: 600; cursor: pointer; }
#how .rrows li > span:nth-child(2) { flex: 1; min-width: 0; line-height: 1.2; white-space: nowrap; }
#how .rrows small { display: block; font-size: 10px; font-weight: 400; color: var(--muted); }
#how .rrows .num { font-weight: 700; color: var(--ink-bright); }
#how .rrows .num.pos { color: var(--accent); }
#how .rrows .go { color: var(--muted); font-size: 14px; }
#how .rrows .two-av { display: inline-flex; }
#how .rrows li.plain { font-size: 12px; }
#how .rrows .two-av .av + .av { margin-left: -5px; box-shadow: -1.5px 0 0 var(--card); }
#how .rrows li.plain { cursor: default; }
#how .sq { position: absolute; left: 0; right: 0; top: 196px; display: grid; justify-items: center; gap: 10px; pointer-events: none; text-align: center; }
#how .sq svg { width: 82px; height: 70px; }
#how .sq b { font-size: 16px; color: var(--ink-bright); }
#how .scrim { position: absolute; inset: 0; background: var(--ink-bright); opacity: 0; pointer-events: none; }
#how .sheet {
    position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 10px; padding: 16px 14px 18px;
    border-radius: 22px 22px 0 0; background: var(--card); box-shadow: 0 -10px 24px -14px var(--shade);
  }
#how .sheet.c { gap: 7px; text-align: center; }
#how .shh { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 1.2; }
#how .shh b { color: var(--ink-bright); }
#how .shh small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 400; }
#how .shl { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--muted); }
#how .shl b { font-size: 22px; letter-spacing: -0.01em; color: var(--accent); }
#how .sheet > b, #how .alert > b { font-size: 15px; color: var(--ink-bright); }
#how .alert {
    position: absolute; left: 12px; right: 12px; top: 176px; display: grid; gap: 12px; padding: 16px 12px 12px;
    border-radius: 20px; background: var(--card); text-align: center; box-shadow: 0 16px 30px -12px var(--shade);
  }
#how .ltoast {
    position: absolute; left: 10px; right: 10px; bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 6px 6px 6px 12px; border-radius: 14px; background: var(--ink-bright); color: var(--ground); font-size: 11px; font-weight: 600; white-space: nowrap;
  }
#how .ltoast .b { min-height: 28px; padding: 0 9px; font-size: 11px; border-color: var(--ground); background: var(--ground); color: var(--ink-bright); }
@media (min-width: 860px) {
  #how .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  #how.live .step:not(.on) .body { display: grid; }
  #how .step.on { transform: translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) {
  #how .step, #how .way, #how .b, #how .tg, #how .rowp { transition: none; }
}
.still #how .step, .still #how .way, .still #how .b, .still #how .tg, .still #how .rowp { transition: none; }
@media (min-width: 900px) { #how { padding: 72px 0 88px; } }
