/* /slides deck (modelled on AcceptProperty): BenCao's kit tokens from style.css, so Light / Silver / Dark all work.
   No inline styles: --i (stagger) comes from slides.js. */
.dk-body { margin: 0; min-height: 100dvh; overflow: hidden; color: var(--ink); background: var(--bg); font-family: var(--sans); }
.dk-body a { color: inherit; }
.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.25em; }

/* top bar, progress, dots, arrows */
.dk-top { position: fixed; inset: 0 0 auto; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 10px clamp(16px, 4vw, 40px);
    background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); }
.dk-brand { margin-right: auto; font-size: 17px; font-weight: 600; text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.dk-hint { margin: 0; font-size: 13px; color: var(--muted); }
.dk-langs { display: flex; gap: 2px; }
.dk-langs a { display: inline-grid; place-items: center; min-width: 36px; min-height: 36px; padding: 0 6px; border-radius: 8px; font-size: 13px; color: var(--muted); text-decoration: none; }
.dk-langs a[aria-current] { color: var(--ink); font-weight: 600; background: var(--bg-alt); }
.dk-count { margin: 0; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dk-count span { color: var(--ink); font-weight: 600; }
.dk-top .theme { min-height: 36px; }
.dk-btn, .dk-arrow { display: inline-grid; place-items: center; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.dk-btn { width: 36px; height: 36px; }
.dk-bar { position: fixed; inset: 0 0 auto; z-index: 6; height: 3px; background: var(--line); }
.dk-bar span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 500ms var(--ease); }
.dk-dots { position: fixed; z-index: 5; left: 50%; bottom: 16px; display: flex; gap: 8px; transform: translateX(-50%); }
.dk-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--line-strong); opacity: 0.5; cursor: pointer; transition: width 300ms var(--ease), opacity 300ms; }
.dk-dots button[aria-current] { width: 24px; background: var(--accent); opacity: 1; }
.dk-arrow { position: fixed; z-index: 5; top: 50%; width: 44px; height: 44px; font-size: 24px; line-height: 1; transform: translateY(-50%); }
.dk-arrow.is-prev { left: 12px; } .dk-arrow.is-next { right: 12px; }
@media (hover: hover) { .dk-btn:hover, .dk-arrow:hover { border-color: var(--line-strong); } }
.dk-body :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* slides: stacked, one shown; without JS they simply follow each other */
.dk { position: relative; height: 100dvh; overflow: hidden; overflow: clip; touch-action: pan-y pinch-zoom; }   /* sideways moves are the swipe; clip keeps the waiting slide from widening a phone page */
.dk-ready .sl { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: translateX(3%); transition: opacity 500ms var(--ease), transform 500ms var(--ease), visibility 0s 500ms; }
.dk-ready .sl.is-past { transform: translateX(-3%); }
.dk-ready .sl.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.sl { display: grid; place-items: center; overflow: hidden auto; padding: 72px clamp(16px, 7vw, 96px) 56px; }
.sl__in { width: min(1120px, 100%); }
.dk-ready [data-r] { opacity: 0; transform: translateY(14px); }
.dk-ready .is-on [data-r] { opacity: 1; transform: none; transition: opacity 600ms var(--ease), transform 600ms var(--ease); transition-delay: calc(var(--i, 0) * 60ms + 150ms); }
@media (prefers-reduced-motion: reduce) { .dk-ready .sl, .dk-ready [data-r], .dk-bar span { transition: none; transform: none; } }

/* type: big, few words */
.kick { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.h { margin: 0 0 clamp(18px, 3vh, 32px); max-width: 22ch; font-size: clamp(30px, 4vw, 56px); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.mega { margin: 0; font-size: clamp(52px, 10vw, 132px); font-weight: 600; line-height: 1; letter-spacing: -0.04em; }
.lead { max-width: 30ch; margin: 18px 0; font-size: clamp(22px, 2.6vw, 34px); line-height: 1.3; color: var(--text); text-wrap: balance; }
.sl p { line-height: 1.55; }
.note { max-width: 60ch; margin: clamp(14px, 2.4vh, 24px) 0 0; font-size: 15px; color: var(--muted); }

/* lines with ticks */
.ticks, .pills { margin: 0; padding: 0; list-style: none; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); font-size: clamp(17px, 1.6vw, 22px); line-height: 1.4; }
.ticks li:first-child { border-top: 0; }
.ticks .ic { width: 24px; height: 24px; margin-top: 2px; color: var(--accent); }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.pills li { padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 16px; background: var(--surface); }

/* one icon per slide: a soft square with the slide number */
.split { display: grid; gap: clamp(20px, 5vw, 72px); grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.badge { display: inline-grid; place-items: center; width: 72px; height: 72px; margin-bottom: 18px; border-radius: 20px; color: var(--accent); background: var(--surface); border: 1px solid var(--line); }
.badge .ic { width: 40px; height: 40px; stroke-width: 1.4; }
.badge--big { position: relative; width: clamp(160px, 22vw, 280px); height: clamp(160px, 22vw, 280px); margin: 0; border-radius: 40px; }
.badge--big .ic { width: 46%; height: 46%; stroke-width: 1.1; }
.badge b { position: absolute; top: 16px; left: 20px; font-size: 14px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }

/* try-it slide */
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }
.cta { display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px; border-radius: 999px; background: var(--accent); font-size: 18px; font-weight: 600; text-decoration: none; }
.dk-body .cta { color: var(--on-accent); }

/* tablets and phones: one column, a tall slide scrolls inside itself */
@media (max-width: 899px) {
    .dk-hint { display: none; }
    .split { grid-template-columns: minmax(0, 1fr); }
    .badge--big { order: -1; width: 88px; height: 88px; border-radius: 22px; }
    .badge--big .ic { width: 48px; height: 48px; stroke-width: 1.4; }
    .badge--big b { display: none; }
}
@media (max-width: 599px) {
    .sl { place-items: start center; padding: 64px 16px 88px; }
    .dk-top { gap: 6px; padding: 8px 16px; }
    .dk-arrow { top: auto; bottom: 6px; width: 40px; height: 40px; font-size: 22px; transform: none; }   /* phones: small ‹ › beside the dots */
    .dk-arrow.is-prev { left: 16px; } .dk-arrow.is-next { right: 16px; }
    .dk-dots { bottom: 22px; gap: 5px; }
    .dk-dots button { width: 6px; height: 6px; }
    .dk-dots button[aria-current] { width: 16px; }
    .dk-count, .dk-btn { display: none; }                         /* brand + languages + theme fit 360 px */
    .dk-top .theme-name { display: none; }
    .dk-langs a { min-width: 32px; padding: 0 4px; }
    .badge, .badge--big { width: 64px; height: 64px; margin-bottom: 12px; }
    .badge .ic, .badge--big .ic { width: 34px; height: 34px; }
    .ticks li { padding: 8px 0; }
}
