/* xScroller landing page. Brand tokens mirror the extension (popup.css / DOCK_CSS in content.js). */
@font-face {
  font-family: Michroma;
  src: url("assets/fonts/Michroma-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root,
.skin-graphite {
  --ultra: #3b3b3f;
  --well: #242427;
  --rim: #5f5f66;
  --paper: #ffffff;
  --haze: #a6a6ad;
  --amber: #dcdce0;
  --shade: 0, 0, 0;
  --page: #1c1c1f;
  --page-alt: #232326;
  --ink-on-paper: #1c1c1f;
  --flow: 0.8s;
}
.skin-blue {
  --ultra: #2f3df5;
  --well: #1c27b4;
  --rim: #5562ff;
  --haze: #a8afff;
  --amber: #ffb23f;
  --shade: 10, 15, 74;
  --page: #1820a6;
  --page-alt: #1c27b4;
  --ink-on-paper: #1c27b4;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--page); color: var(--paper); font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; transition: background-color .3s; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: Michroma, sans-serif; font-weight: 400; letter-spacing: -0.01em; line-height: 1.2; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.mark { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.logo { display: inline-flex; align-items: center; gap: 8px; font: 400 17px/1 Michroma, sans-serif; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--haze); margin-bottom: 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 24px; border-radius: 25px; font-weight: 600; font-size: 15px; cursor: pointer; transition: transform .15s, box-shadow .2s, background-color .2s, color .2s; white-space: nowrap; }
.btn-sm { height: 38px; padding: 0 18px; font-size: 14px; border-radius: 19px; }
.btn-primary { background: var(--paper); color: var(--ink-on-paper); box-shadow: 0 8px 24px rgba(var(--shade), .35); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(var(--shade), .45); }
.btn-ghost { color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--rim); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--paper); }
.btn[aria-disabled="true"] { cursor: default; opacity: .75; transform: none; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--page) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.08); }
.nav-inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.nav-links { display: none; gap: 28px; font-size: 14px; color: var(--haze); }
.nav-links a:hover { color: var(--paper); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
@media (min-width: 860px) { .nav-links { display: flex; } }

/* Skin swatch: half blue, half graphite, like the popup's switch */
.swatch-btn { width: 38px; height: 38px; display: grid; place-items: center; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.swatch-btn:hover { background: rgba(255,255,255,.08); }
.swatch { width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, #2f3df5 50%, #3b3b3f 50%); box-shadow: inset 0 0 0 1.5px var(--paper); }

/* Hero */
.hero { padding: 64px 0 88px; background: radial-gradient(900px 500px at 85% 20%, rgba(255,255,255,.06), transparent 60%); }
.hero-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 5fr 6fr; } }
.hero h1 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 20px; }
.lede { font-size: 19px; color: var(--haze); max-width: 30em; margin-bottom: 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 0; list-style: none; font-size: 14px; color: var(--haze); }
.facts li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); margin-right: 8px; vertical-align: middle; }

/* Demo browser */
.demo { position: relative; }
.browser { position: relative; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px rgba(var(--shade), .5), 0 0 0 1px rgba(255,255,255,.12); }
.browser-bar { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 12px; background: #e9e9ec; }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #c9c9ce; }
.url { flex: 1; height: 22px; border-radius: 11px; background: #fff; font-size: 12px; line-height: 22px; padding: 0 12px; color: #77777e; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ext-icon { width: 24px; height: 24px; border-radius: 6px; background: var(--ultra); color: #fff; display: grid; place-items: center; }
.ext-icon .mark { width: 16px; height: 16px; }
.browser-page { height: 420px; overflow-y: auto; scrollbar-width: thin; outline: none; }
.demo-article { max-width: 560px; margin: 0 auto; padding: 28px 28px 40px 96px; color: #1f1f22; font: 17px/1.75 Georgia, "Times New Roman", serif; }
.demo-article h2 { font: 700 26px/1.25 Georgia, serif; letter-spacing: 0; margin-bottom: 6px; }
.demo-article .meta { font: 13px/1.4 -apple-system, sans-serif; color: #77777e; margin-bottom: 18px; }
.demo-article p + p { margin-top: 16px; }
.demo-article .end { text-align: center; color: #9a9aa0; font-style: italic; padding-bottom: 120px; }
.demo-note { margin-top: 16px; font-size: 14px; color: var(--haze); min-height: 1.6em; }
.demo-note.held { color: var(--amber); }
@media (max-width: 560px) { .demo-article { padding-left: 84px; font-size: 16px; } .browser-page { height: 380px; } }

/* Dock replica: same geometry as DOCK_CSS in content.js */
.dock { position: absolute; left: 14px; bottom: 18px; width: 52px; padding: 4px 6px 6px; border-radius: 26px; background: var(--ultra); display: flex; flex-direction: column; align-items: center; gap: 4px; box-shadow: 0 10px 28px rgba(var(--shade), .38), 0 2px 6px rgba(var(--shade), .3), inset 0 0 0 1px rgba(255,255,255,.14); user-select: none; transition: background-color .3s; }
.dock[hidden] { display: none; }
.dock button { all: unset; box-sizing: border-box; cursor: pointer; display: grid; place-items: center; color: var(--haze); }
.dock button:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }
.dock svg { display: block; }
.dock .grip { width: 40px; height: 14px; cursor: default; }
.dock .grip svg { width: 16px; height: 6px; fill: var(--haze); }
.dock .toggle { position: relative; width: 40px; height: 40px; border-radius: 50%; color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--rim); }
.dock .toggle:hover { box-shadow: inset 0 0 0 1.5px var(--paper); }
.dock .glyph { grid-area: 1/1; width: 18px; height: 18px; fill: currentColor; }
.dock .pause, .dock.is-playing .play { display: none; }
.dock.is-playing .pause { display: block; }
.dock.is-playing .toggle { background: var(--paper); color: var(--ultra); box-shadow: none; }
.dock .ring { position: absolute; inset: 0; width: 40px; height: 40px; transform: rotate(-90deg); fill: none; stroke: var(--amber); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 116.2; stroke-dashoffset: 116.2; opacity: 0; }
.dock.is-held .toggle { color: var(--amber); box-shadow: none; background: none; }
.dock.is-held .play { display: block; }
.dock.is-held .pause { display: none; }
.dock.is-held .ring { opacity: 1; animation: drain var(--hold, 5s) linear forwards; }
@keyframes drain { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 116.2; } }
.dock .speed { width: 40px; height: 40px; border-radius: 12px; background: var(--well); color: var(--paper); }
.dock .speed:hover { box-shadow: inset 0 0 0 1.5px var(--rim); }
.dock .speed svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.dock.is-playing:not(.is-held) .speed polyline { animation: flow var(--flow) ease-in-out infinite; }
.dock.is-playing:not(.is-held) .speed polyline:nth-child(2) { animation-delay: calc(var(--flow) / 6); }
.dock.is-playing:not(.is-held) .speed polyline:nth-child(3) { animation-delay: calc(var(--flow) / 3); }
@keyframes flow { 0%, 100% { opacity: .35; } 40% { opacity: 1; } }
.dock .close { width: 24px; height: 20px; border-radius: 8px; }
.dock .close:hover { color: var(--paper); }
.dock .close svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.dock-restore { position: absolute; left: 14px; bottom: 18px; height: 34px; padding: 0 14px; border: 0; border-radius: 17px; background: var(--ultra); color: var(--paper); font-size: 13px; cursor: pointer; box-shadow: 0 6px 18px rgba(var(--shade), .35); }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--page-alt); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 16px; }
.section-head p, .split p { color: var(--haze); font-size: 17px; }
.split p + p { margin-top: 14px; }
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 6fr; } }

/* Features */
.features { display: grid; gap: 20px; }
@media (min-width: 680px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { padding: 28px; border-radius: 18px; background: var(--ultra); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); transition: transform .2s, background-color .3s; }
.feature:hover { transform: translateY(-3px); }
.feature h3 { font-size: 18px; font-weight: 600; margin: 18px 0 8px; }
.feature p { color: var(--haze); font-size: 15px; }
.f-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--well); display: grid; place-items: center; }
.f-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--paper); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.f-icon .solid { fill: var(--paper); stroke: none; }

/* Screenshots */
.shot img, .g-item img { border-radius: 14px; box-shadow: 0 24px 48px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.08); }
.shot { margin: 0; }
.gallery { display: grid; gap: 24px; }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.g-item { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 14px; transition: transform .2s; }
.g-item:hover { transform: translateY(-3px); }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.85); display: grid; place-items: center; padding: 32px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; width: auto; border-radius: 10px; }
.lb-close { position: absolute; top: 16px; right: 20px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }

/* Looks */
.looks { display: grid; gap: 24px; }
@media (min-width: 760px) { .looks { grid-template-columns: repeat(2, 1fr); } }
.look { padding: 0; border: 0; background: none; cursor: pointer; text-align: left; border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.1); transition: box-shadow .2s, transform .2s; }
.look > img { width: 100%; }
.look:hover { transform: translateY(-3px); }
.look[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--paper); }
.look-label { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: rgba(0,0,0,.25); font-weight: 600; }
.look-label small { font-weight: 400; color: var(--haze); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; counter-reset: s; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { padding: 24px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--rim); }
.steps .n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--paper); color: var(--ink-on-paper); font: 400 15px/1 Michroma, sans-serif; margin-bottom: 16px; }
.steps p { color: var(--haze); }

/* Privacy */
.perms { margin: 0; display: grid; gap: 12px; }
.perms > div { padding: 18px 22px; border-radius: 14px; background: var(--ultra); }
.perms dt { font: 400 13px/1.4 Michroma, sans-serif; margin-bottom: 4px; }
.perms dd { margin: 0; color: var(--haze); font-size: 15px; }
.link { color: var(--paper); font-weight: 600; border-bottom: 1px solid var(--rim); }
.link:hover { border-color: var(--paper); }

/* Final CTA */
.final { text-align: center; }
.final-banner { border-radius: 18px; margin: 0 auto 56px; box-shadow: 0 30px 60px rgba(0,0,0,.4); }
.final-cta img { margin: 0 auto 20px; }
.final-cta h2 { margin-bottom: 28px; }

/* Footer */
.footer { padding: 40px 0; border-top: 1px solid rgba(255,255,255,.08); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; color: var(--haze); }
.footer-links a:hover { color: var(--paper); }
.copy { width: 100%; font-size: 13px; color: var(--haze); opacity: .7; }
@media (min-width: 760px) { .copy { width: auto; margin-left: auto; } }

/* Privacy policy page */
.policy { padding: 64px 0 96px; }
.policy .wrap { max-width: 760px; }
.policy h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 10px; }
.policy .updated { color: var(--haze); margin-bottom: 40px; }
.policy h2 { font-family: inherit; font-weight: 700; font-size: 20px; letter-spacing: 0; margin: 36px 0 12px; }
.policy p, .policy li { color: #d6d6dc; }
.policy p + p { margin-top: 12px; }
.policy ul { padding-left: 22px; }
.policy li { margin-bottom: 8px; }
.policy code { font-family: ui-monospace, Menlo, monospace; font-size: .9em; background: var(--ultra); padding: 1px 6px; border-radius: 6px; }
.policy a { border-bottom: 1px solid var(--rim); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dock .speed polyline, .dock.is-held .ring { animation: none !important; }
  .dock.is-held .ring { stroke-dashoffset: 0; }
  .btn, .feature, .g-item, .look { transition: none; }
}
