/* LiveSprite — introduction, Sprit's'fast product page, help library. Dark, with the teal of the Sprit's'fast logo. */
:root {
  color-scheme: dark;
  --bg: #0d1117; --bg-2: #121821; --panel: #161d28; --panel-2: #1c2431;
  --ink: #eef2f7; --soft: #c5cedb; --muted: #8b97a8;
  --line: rgba(255, 255, 255, .09); --line-2: rgba(255, 255, 255, .17);
  --accent: #27c9fb; --accent-2: #0a9cf5; --accent-ink: #04131f; --blue: #5b8def;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", var(--sans);
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --max: 1160px; --r: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.65 var(--sans); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 700; margin-bottom: 18px; }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
code { font: 500 .88em var(--mono); background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: .08em .4em; }
pre { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; overflow-x: auto; }
pre code { background: none; border: 0; padding: 0; font-size: .86rem; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.narrow { max-width: 820px; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 50; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }
.accent { color: var(--accent); }

.site-header { position: sticky; top: 0; z-index: 30; background: rgba(13, 17, 23, .8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 22px; min-height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.15rem var(--display); }
.brand .mark { width: 22px; height: 22px; border-radius: 5px; background: conic-gradient(from 45deg, var(--accent) 0 25%, var(--blue) 0 50%, var(--accent-2) 0 75%, #2b3544 0); box-shadow: 0 0 0 2px rgba(255, 255, 255, .08) inset; }
.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a { font-size: .92rem; color: var(--soft); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }
.lang { display: flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; font: 500 .75rem var(--mono); }
.lang span, .lang a { padding: 3px 10px; border-radius: 999px; text-decoration: none; color: var(--muted); }
.lang span { background: var(--accent); color: var(--accent-ink); }
.lang a:hover { color: var(--ink); }

.hero { padding: clamp(48px, 9vw, 104px) 0 clamp(40px, 6vw, 72px); background: radial-gradient(900px 420px at 80% -10%, rgba(39, 201, 251, .12), transparent 70%), radial-gradient(700px 400px at 0% 0%, rgba(91, 141, 239, .1), transparent 70%); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-inner.narrow { display: block; }
.pill { display: inline-block; font: 500 .8rem var(--mono); color: var(--accent); border: 1px solid rgba(39, 201, 251, .4); border-radius: 999px; padding: 4px 14px; margin-bottom: 20px; }
.lede { font-size: clamp(1.05rem, 1.7vw, 1.25rem); color: var(--soft); max-width: 62ch; margin-top: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.btn { display: inline-flex; flex-direction: column; justify-content: center; min-height: 48px; padding: 8px 22px; border-radius: 10px; font-weight: 600; text-decoration: none; border: 1px solid var(--line-2); line-height: 1.2; }
.btn small { font: 500 .66rem var(--mono); letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.btn-go { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-go:hover { background: var(--accent-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-store { border-style: dashed; color: var(--soft); cursor: default; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 0; color: var(--muted); font-size: .9rem; }
.facts li::before { content: "✓"; color: var(--accent); margin-right: 7px; }
.hero-shot .zoom, .shot .zoom { display: block; width: 100%; padding: 0; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; background: var(--panel); cursor: zoom-in; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.zoom img { width: 100%; }

.section { padding: clamp(44px, 7vw, 84px) 0; }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.cards { display: grid; gap: 16px; margin-top: 24px; }
.cards.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cards.four { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.cards.feats { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; text-decoration: none; display: block; }
.card p { color: var(--soft); margin-bottom: 0; margin-top: 8px; }
.card ul { margin: 12px 0 0; padding-left: 18px; color: var(--soft); }
.card li { margin-bottom: .55em; }
a.card:hover { border-color: var(--accent); }
.kicker { font: 500 .72rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent) !important; margin: 0 0 6px !important; }
.link-arrow { color: var(--accent); text-decoration: none; font-weight: 600; margin-right: 18px; }
.link-arrow:hover { text-decoration: underline; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 24px; }
.shot { margin: 0; }
.shot .zoom { box-shadow: none; }
.shot figcaption { color: var(--muted); font-size: .88rem; margin-top: 8px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(28px, 5vw, 64px); }
.split p { color: var(--soft); }
.note { color: var(--muted); font-size: .92rem; }
.note a, .doc a, .help-article a { color: var(--accent); }

.table-scroll { overflow-x: auto; margin: 1.2em 0; border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: .94rem; }
th, td { text-align: left; padding: 9px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--panel); font-weight: 600; color: var(--soft); }
tr:last-child td { border-bottom: 0; }

/* Help */
.help-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding: 40px 0 72px; align-items: start; }
.help-sidebar { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; padding-right: 6px; }
.search-label { display: block; font: 500 .72rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
#help-search { width: 100%; font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; }
.help-topics, .help-results { display: flex; flex-direction: column; margin: 14px 0; }
.help-topics a, .help-results a { text-decoration: none; color: var(--soft); padding: 7px 12px; border-left: 2px solid var(--line); font-size: .93rem; }
.help-topics a:hover, .help-results a:hover { color: var(--ink); border-left-color: var(--accent); }
.help-topics a[aria-current="page"] { color: var(--accent); border-left-color: var(--accent); background: rgba(39, 201, 251, .08); }
.help-results small { display: block; color: var(--muted); font-size: .8rem; }
.back-link { font-size: .9rem; color: var(--muted); text-decoration: none; }
.back-link:hover { color: var(--accent); }
.help-main h1, .help-article h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.topics .card h3 { font-size: 1.05rem; }
.topics .card p { font-size: .92rem; }
.help-article { max-width: 78ch; }
.help-article h2 { font-size: 1.55rem; margin: 2em 0 .6em; }
.help-article h3 { margin: 1.6em 0 .5em; }
.help-article h1 { margin-bottom: 18px; }
.help-article li { margin-bottom: .4em; }
.help-article blockquote { margin: 1.2em 0; padding: 4px 18px; border-left: 3px solid var(--accent); background: var(--panel); border-radius: 0 10px 10px 0; color: var(--soft); }
.anchor { color: var(--muted) !important; text-decoration: none; opacity: 0; margin-left: .3em; font-size: .8em; }
h2:hover .anchor { opacity: 1; }
.crumb { font-size: .9rem; color: var(--muted); margin-bottom: 8px; }
.crumb a { color: var(--muted); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 3em 0 1.4em; }
.pager a { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); text-decoration: none; color: var(--ink) !important; font-weight: 600; }
.pager a:hover { border-color: var(--accent); }
.pager small { display: block; color: var(--muted); font: 500 .7rem var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.pager .next { text-align: right; }
.doc h2 { font-size: 1.5rem; margin-top: 1.8em; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
.footer-inner p { margin: 0; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: var(--accent); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.lightbox::backdrop { background: rgba(0, 0, 0, .85); }
.lightbox img { max-width: 96vw; max-height: 92vh; border-radius: 10px; }
.lb-close { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .7); color: #fff; font-size: 1.4rem; cursor: pointer; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .help-layout { grid-template-columns: 1fr; }
  .help-sidebar { position: static; max-height: none; }
  .help-topics { max-height: 240px; overflow-y: auto; }
  .site-nav { gap: 14px; }
}
@media (max-width: 560px) {
  .site-nav a:last-child { display: none; }
  .header-inner { gap: 12px; }
  .pager { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Logos */
.brand img { height: 26px; width: auto; }
.card-logo { height: 40px; width: auto; margin-bottom: 14px; }
.hero-logo { height: 60px; width: auto; margin-bottom: 18px; }
