/* How-it-works page. Builds on site.css; no external assets. */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.how-hero { padding-top: clamp(72px, 10vw, 140px); overflow: hidden; }
.how-hero h1 { max-width: 16ch; margin-inline: auto; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.scroll-hint { margin-top: 48px; font-size: .85rem; color: var(--ink-3); display: grid; justify-items: center; gap: 8px; }
.scroll-hint span { width: 2px; height: 36px; background: linear-gradient(var(--brand), transparent); animation: nudge 2s ease-in-out infinite; transform-origin: top; }
@keyframes nudge { 0%,100% { transform: scaleY(.4); opacity: .5; } 50% { transform: scaleY(1); opacity: 1; } }

/* timeline */
.tl { --p: 1; list-style: none; margin: 64px 0 0; padding: 0; position: relative; display: grid; gap: 40px; }
.tl-track { position: absolute; top: 10px; bottom: 10px; left: 50%; width: 4px; margin-left: -2px; background: var(--line); border-radius: 4px; list-style: none; }
.tl-fill { position: absolute; inset: 0 0 auto 0; height: calc(var(--p) * 100%); background: var(--grad); border-radius: 4px; box-shadow: 0 0 14px color-mix(in srgb, var(--brand-2) 60%, transparent); }
.step { display: grid; grid-template-columns: 1fr 64px 1fr; align-items: start; position: relative; }
.step .node { grid-column: 2; grid-row: 1; justify-self: center; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--panel); border: 3px solid var(--brand); color: var(--brand-ink); z-index: 2; transition: background .4s, color .4s, transform .4s var(--ease), border-color .4s; margin-top: 18px; }
.step .body { grid-row: 1; max-width: 480px; }
.step:nth-child(odd) .body { grid-column: 1; justify-self: end; }
.step:nth-child(even) .body { grid-column: 3; justify-self: start; }
.js .step:not(.on) .node { border-color: var(--line); color: var(--ink-3); }
.step.on .node { background: var(--grad); color: #fff; border-color: transparent; animation: pulse 2.4s ease-in-out infinite; }
.js .step.on .node { transform: scale(1.12); }
.body h3 { margin-top: 12px; }
.ill { width: 100%; max-width: 280px; height: auto; margin-top: 12px; color: var(--brand); }
.ill text { font: 600 11px ui-sans-serif, system-ui, sans-serif; fill: var(--ink-3); }
.ill .t { fill: var(--ink-3); }

@media (max-width: 760px) {
  .tl-track { left: 24px; }
  .step { grid-template-columns: 48px 1fr; column-gap: 16px; }
  .step .node { grid-column: 1; }
  .step:nth-child(n) .body { grid-column: 2; justify-self: stretch; max-width: none; }
  .body.card { padding: 22px; }
}

/* illustrations: final state by default; animated from the start state once the step is lit */
.ill .zone { fill: color-mix(in srgb, var(--brand) 7%, transparent); stroke: var(--brand); stroke-width: 2; stroke-dasharray: 7 6; }
.ill .f { fill: var(--panel); stroke: var(--brand); stroke-width: 2.5; }
.ill .fl { stroke: var(--brand); stroke-width: 2.5; stroke-linecap: round; fill: none; } .ill .fold { fill: none; stroke: var(--brand); stroke-width: 2; }
.ill .file { transform: translateY(54px); }
.ill .lab rect { fill: color-mix(in srgb, var(--violet) 16%, var(--panel)); stroke: var(--violet); stroke-width: 1.5; }
.ill .co rect { fill: color-mix(in srgb, var(--brand) 14%, var(--panel)); stroke: var(--brand); stroke-width: 1.5; }
.ill .ln { fill: none; stroke: var(--brand-2); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; }
.ill .row rect { fill: var(--bg-2); stroke: var(--line); } .ill .tick { fill: none; stroke: var(--good); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
.ill .ln2 { stroke: var(--ink-3); stroke-width: 5; stroke-linecap: round; opacity: .5; }
.ill .warn rect { stroke: var(--accent); } .ill .bang { stroke: #b45309; stroke-width: 4; stroke-linecap: round; }
.ill .box { fill: color-mix(in srgb, var(--brand) 10%, var(--panel)); stroke: var(--brand); stroke-width: 2; }
.ill .rw { fill: var(--brand-2); } .ill .rw.b { fill: var(--brand); } .ill .rw.c { fill: var(--violet); }
.ill .bar { transform-origin: 64px 0; } .ill .ro { fill: color-mix(in srgb, var(--violet) 55%, var(--panel)); } .ill .cl { fill: var(--brand-2); width: 148px; }
.ill .grace { fill: color-mix(in srgb, var(--accent) 22%, transparent); stroke: var(--accent); stroke-dasharray: 4 3; }
.ill .pg { fill: var(--panel); stroke: var(--line); stroke-width: 2; } .ill .hd { fill: var(--brand); } .ill .tx { fill: var(--ink-3); opacity: .45; }
.ill .shackle { fill: none; stroke: var(--ink-2); stroke-width: 8; stroke-linecap: round; } .ill .lb { fill: var(--brand); } .ill .kh { fill: #fff; }
.ill .trail { stroke: var(--brand-2); stroke-width: 3; stroke-linecap: round; opacity: .6; }

.js .step .ill * { animation-play-state: paused; }
.js .step.on .ill * { animation-play-state: running; }
.js .ill .file { animation: drop 1.1s var(--ease) .2s both infinite alternate; transform: none; }
.js .ill .ln { animation: draw 1s ease .2s both; stroke-dashoffset: 1; --o: 1; }
.js .ill .l2 { animation-delay: .6s; } .js .ill .l3 { animation-delay: 1s; }
.js .ill .co rect { animation: pop .5s var(--ease) both; } .js .ill .co rect:nth-child(2) { animation-delay: .5s; } .js .ill .co rect:nth-child(3) { animation-delay: .9s; }
.js .ill .row .tick { animation: draw .6s ease both; stroke-dashoffset: 1; } .js .ill .r1 .tick { animation-delay: .3s; } .js .ill .r2 .tick { animation-delay: .9s; }
.js .ill .r3 { animation: pop .6s var(--ease) 1.5s both; }
.js .ill .rw { animation: slidein 1.2s var(--ease) both; } .js .ill .rw.b { animation-delay: .25s; } .js .ill .rw.c { animation-delay: .5s; }
.js .ill .cl { animation: grow 1.4s var(--ease) .4s both; } .js .ill .ro { animation: grow 1s var(--ease) both; }
.js .ill .ill-check .tick, .js .ill-check .tick { animation: draw .6s ease 1.7s both; stroke-dashoffset: 1; }
.js .ill .tx { animation: line .7s var(--ease) both; transform-origin: 56px 0; transform-box: fill-box; } .js .ill .x2 { animation-delay: .5s; } .js .ill .x3 { animation-delay: 1s; } .js .ill .x4 { animation-delay: 1.5s; }
.js .ill .shackle { animation: shut 1s var(--ease) .3s both; }
.js .ill .wb { animation: fly 1.2s var(--ease) 1.2s both; } .js .ill .trail { animation: fadein .6s ease 1.6s both; }
@keyframes drop { from { transform: translateY(-4px); } to { transform: translateY(52px); } }
@keyframes pop { from { opacity: 0; transform: scale(.8); transform-box: fill-box; transform-origin: center; } to { opacity: 1; transform: none; } }
@keyframes slidein { from { transform: translateX(110px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes line { from { transform: scaleX(0); opacity: 0; } to { transform: none; opacity: .45; } }
@keyframes shut { from { transform: translateY(-14px); } to { transform: none; } }
@keyframes fly { from { transform: translateX(-90px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadein { from { opacity: 0; } to { opacity: .6; } }
.js .ill .bar { transform-box: fill-box; transform-origin: left; }
.js .ill .tx { opacity: .45; }

/* comparison */
.cmp { margin-top: 48px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; }
.cmp table { width: 100%; border-collapse: collapse; min-width: 640px; }
.cmp th, .cmp td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-size: .98rem; }
.cmp thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.cmp tbody th { font-weight: 650; color: var(--ink); width: 26%; }
.cmp td { color: var(--ink-2); } .cmp tr:last-child > * { border-bottom: 0; }
.cmp .us { background: color-mix(in srgb, var(--brand) 7%, transparent); color: var(--ink); } .cmp thead .us { color: var(--brand-ink); }
.x, .tk { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; vertical-align: -5px; margin-right: 10px; }
.x { background: color-mix(in srgb, var(--bad) 14%, transparent); position: relative; } .x::before, .x::after { content: ""; position: absolute; width: 10px; height: 2px; background: var(--bad); border-radius: 2px; transform: rotate(45deg); } .x::after { transform: rotate(-45deg); }
.tk { background: var(--good); } .tk svg { width: 14px; height: 14px; } .tk path { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
.js .cmp:not(.in) .tk path { stroke-dashoffset: 1; }
.js .cmp.in .tk path { animation: draw .5s ease both; }
.cmp tbody tr:nth-child(1) .tk path { animation-delay: .3s !important; } .cmp tbody tr:nth-child(2) .tk path { animation-delay: .5s !important; } .cmp tbody tr:nth-child(3) .tk path { animation-delay: .7s !important; } .cmp tbody tr:nth-child(4) .tk path { animation-delay: .9s !important; } .cmp tbody tr:nth-child(5) .tk path { animation-delay: 1.1s !important; } .cmp tbody tr:nth-child(6) .tk path { animation-delay: 1.3s !important; } .cmp tbody tr:nth-child(7) .tk path { animation-delay: 1.5s !important; }

/* data stays yours */
.own { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .own { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.ticks li { padding-left: 34px; position: relative; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--good); }
.ticks li::after { content: ""; position: absolute; left: 7px; top: 8px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.ticks strong { color: var(--ink); }
.dia { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.dia figcaption { text-align: center; color: var(--ink-3); font-size: .9rem; margin-top: 8px; }
.dia svg { width: 100%; height: auto; }
.dia text { font: 650 14px ui-sans-serif, system-ui, sans-serif; fill: var(--ink); } .dia .cap { fill: var(--ink-3); font-weight: 700; }
.dia .net { fill: color-mix(in srgb, var(--brand) 6%, transparent); stroke: var(--brand); stroke-width: 2.5; stroke-dasharray: 10 7; }
.dia .node-b rect:first-child { fill: var(--panel); stroke: var(--line); stroke-width: 2; } .dia .hl rect:first-child { stroke: var(--brand); }
.dia .scr { fill: color-mix(in srgb, var(--violet) 18%, var(--bg-2)); stroke: var(--violet); stroke-width: 2; }
.dia .st { fill: none; stroke: var(--brand); stroke-width: 3; stroke-linecap: round; } .dia .clk { fill: none; stroke: var(--brand); stroke-width: 3; }
.dia .fld { fill: color-mix(in srgb, var(--accent) 30%, var(--panel)); stroke: #b45309; stroke-width: 2; stroke-linejoin: round; }
.dia .arr { fill: none; stroke: var(--brand-2); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 1; }
.dia .cloud path { fill: var(--bg-2); stroke: var(--ink-3); stroke-width: 2.5; }
.dia .cross { fill: none; stroke: var(--bad); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 1; }
.js .dia:not(.in) .arr, .js .dia:not(.in) .cross { stroke-dashoffset: 1; }
.js .dia:not(.in) .node-b, .js .dia:not(.in) .cloud { opacity: 0; }
.js .dia.in .node-b { animation: pop .6s var(--ease) both; } .js .dia.in .n2 { animation-delay: .4s; } .js .dia.in .n3 { animation-delay: .8s; }
.js .dia.in .arr { animation: draw .7s ease both; } .js .dia.in .a1 { animation-delay: .3s; } .js .dia.in .a2 { animation-delay: .7s; }
.js .dia.in .cloud { animation: fadein2 .6s ease 1.1s both; } .js .dia.in .cross { animation: draw .7s ease 1.5s both; }
@keyframes fadein2 { from { opacity: 0; } to { opacity: 1; } }

/* setup */
.setup { list-style: none; padding: 0; margin: 48px 0 28px; }
.num { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--grad); color: #fff; font-weight: 800; margin-bottom: 14px; }
.cmd { max-width: 720px; margin-inline: auto; background: #0f1418; color: #e7fffb; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border: 1px solid #263038; }
.cmd-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid #263038; color: #9fb0b8; font-size: .85rem; }
.cmd-bar .btn { margin-left: auto; color: #e7fffb; border-color: #3a4852; } .cmd-bar .btn:hover { background: #1d262d; }
.dots { display: inline-flex; gap: 6px; } .dots i { width: 11px; height: 11px; border-radius: 50%; background: #3a4852; }
.cmd pre { margin: 0; padding: 22px 22px 26px; overflow-x: auto; font: 500 clamp(.95rem, 2.4vw, 1.2rem) ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.cmd .pr { color: #5eead4; } .cmd code::after { content: ""; display: inline-block; width: .55em; height: 1.1em; background: #5eead4; vertical-align: -.2em; margin-left: 4px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* faq */
.faq-wrap { max-width: 820px; }
.faq { margin-top: 40px; display: grid; gap: 12px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; transition: box-shadow .3s, border-color .3s; }
.faq details[open] { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 650; position: relative; color: var(--ink); border-radius: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border: solid var(--brand); border-width: 0 2.5px 2.5px 0; transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open]:not(.closing) summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; }
.faq .ans { overflow: hidden; padding: 0 22px; } .faq .ans p { margin: 0 0 20px; }

/* cta */
.cta-sec { padding-top: 0; }
.cta { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(40px, 7vw, 80px) 24px; text-align: center; background: var(--ink); color: var(--bg); isolation: isolate; }
.cta h2 { color: var(--bg); } .cta p { color: color-mix(in srgb, var(--bg) 78%, transparent); max-width: 52ch; margin-inline: auto; }
.cta .btn.primary { background: var(--bg); color: var(--ink); margin-top: 8px; }
.cta .orb { opacity: .35; }

@media (max-width: 480px) { .wrap { width: calc(100% - 32px); } .cmp th, .cmp td { padding: 14px; } }
@media (prefers-reduced-motion: reduce) {
  .scroll-hint span, .cmd code::after { animation: none; }
  .js .step .ill * { animation-play-state: running; }
}
