/* Site identity: colours come from the "Animate on Scroll" scheme on developry.com */
:root { --brand: #ff0088; --brand-deep: #a80059; --accent-mix: 42%; --glyph: #fff; }
.mark .g1 { stop-color: color-mix(in oklab, var(--brand) 75%, var(--brand-deep)); }
.mark .g2 { stop-color: color-mix(in oklab, var(--brand) 30%, var(--brand-deep)); }
.mark .gf { fill: var(--glyph); }
.mark .gs { fill: none; stroke: var(--glyph); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- animation tools ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.sfx-demo { height: 330px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: 1rem; display: grid; gap: 150px; align-content: start; }
.demo-item { padding: 1.1rem 1.2rem; border-radius: 14px; background: linear-gradient(135deg, var(--accent-soft), transparent), var(--surface-2); border: 1px solid var(--line); font-weight: 650; }
.demo-item small { display: block; color: var(--muted); font-weight: 500; margin-top: .15rem; }
.demo-hint { text-align: center; color: var(--muted); font-size: .85rem; margin: 0; }
.plot { width: 100%; max-width: 26rem; height: auto; margin-inline: auto; touch-action: none; user-select: none; }
.plot-box { fill: var(--surface-2); stroke: var(--line); }
.plot-grid { stroke: var(--line); stroke-dasharray: 3 4; }
.plot-diag { stroke: var(--line); }
.plot-arm { stroke: var(--muted); stroke-width: 1.5; }
.plot-curve { stroke: var(--accent); stroke-width: 3.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.plot-handle { fill: var(--brand); stroke: #fff; stroke-width: 2.5; cursor: grab; touch-action: none; filter: drop-shadow(0 2px 4px rgb(0 0 0 / .4)); }
.plot-handle:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.track { position: relative; height: 58px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); padding: 5px 4px; overflow: hidden; }
.ball { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), color-mix(in oklab, var(--brand) 40%, var(--brand-deep))); box-shadow: 0 4px 14px color-mix(in oklab, var(--brand) 50%, transparent); }
.fx-card { display: grid; gap: .8rem; padding: 1rem; }
.fx-stage { display: grid; place-items: center; height: 120px; width: 100%; border: 0; border-radius: 12px; background: var(--surface-2); cursor: pointer; overflow: hidden; }
.lib-demo { width: 58px; height: 58px; border-radius: 15px; background: linear-gradient(135deg, var(--brand), color-mix(in oklab, var(--brand) 40%, var(--brand-deep))); box-shadow: 0 6px 18px color-mix(in oklab, var(--brand) 45%, transparent); }

kbd { padding: .1rem .4rem; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: var(--surface-2); }
.io-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
@media (max-width: 860px) { .io-grid { grid-template-columns: 1fr; } }
.opts { display: grid; gap: .75rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.opts .group-title { grid-column: 1 / -1; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0; }
.drop { display: grid; justify-items: center; gap: .6rem; text-align: center; padding: clamp(1.6rem, 5vw, 3rem) 1rem; border: 2px dashed color-mix(in oklab, var(--accent) 45%, var(--line)); border-radius: calc(var(--radius) - 4px); background: linear-gradient(180deg, var(--accent-soft), transparent); transition: border-color .2s, background .2s, transform .2s; cursor: pointer; }
.drop svg { width: 3rem; height: 3rem; color: var(--accent); }
.drop strong { font-size: 1.25rem; letter-spacing: -.02em; }
.drop-actions { margin-top: .5rem; justify-content: center; }
.drop.over { border-style: solid; border-color: var(--accent); background: var(--accent-soft); transform: scale(1.01); }
.table-wrap input, .table-wrap select { padding: .4rem .55rem; font-size: .85rem; min-width: 5.5rem; }
.table-wrap td.act { text-align: right; white-space: nowrap; }
.note { font-size: .85rem; color: var(--muted); }
.stage { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: 1.1rem; overflow: hidden; }
.mono-out { font-family: var(--mono); font-size: .85rem; }
.help { font-size: .8rem; color: var(--muted); margin: .3rem 0 0; }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .6rem; }
.metric-grid div { padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.metric-grid b { display: block; font-size: 1.35rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.metric-grid span { font-size: .75rem; color: var(--muted); font-weight: 600; }

/* ---------- browser extension promo ---------- */
.store-btns { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 0; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.shots img { width: 100%; height: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ext-cta { margin-top: 2.5rem; }
.ext-cta .card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; }
.ext-cta h2 { margin: 0 0 .2rem; font-size: 1.25rem; }
.ext-cta p { margin: 0; color: var(--muted); }

/* header button for the browser extension */
.nav-ext { display: inline-flex; align-items: center; gap: .4rem; margin-left: .5rem; padding: .45rem .85rem; border-radius: 99px; background: var(--brand); color: var(--accent-ink); font-weight: 700; font-size: .85rem; text-decoration: none; white-space: nowrap; }
.nav-ext:hover { filter: brightness(1.08); }
.nav-ext svg { width: 16px; height: 16px; }
.nav-ext + .icon-btn { margin-left: .5rem; }
@media (max-width: 720px) { .nav-ext span { display: none; } .nav-ext { padding: .55rem; } }
