/* Slate's existing palette, shared by the site and generated documentation. */
:root { color-scheme: dark; --bg: #0b0c0e; --surface: #111316; --raised: #17191d; --line: #272a30; --text: #f2f3f5; --muted: #8a9099; --violet: #a88cf4; --green: #79e2a0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--violet); }
a:focus-visible, button:focus-visible, video:focus-visible { outline: 2px solid var(--violet); outline-offset: 5px; }
button, input { font: inherit; }
.shell { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.site-header { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.logo { display: inline-flex; flex: 0 0 auto; }
.logo img { width: 96px; height: auto; }
nav { display: flex; align-items: center; gap: 28px; font-size: 13px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 46px; padding: 12px 20px; background: var(--text); color: var(--bg); border: 1px solid var(--text); border-radius: 7px; font-size: 14px; font-weight: 600; }
.button:hover { color: var(--bg); background: #dfe1e5; }
.button.small { min-height: 36px; padding: 8px 13px; font-size: 12px; }
.muted-button { background: var(--raised); color: var(--muted); border-color: var(--line); }
.release-pending.small { color: var(--muted); font-size: 12px; }
.text-link { display: inline-flex; gap: 10px; align-items: center; font-size: 14px; }
.hero { padding-top: clamp(62px, 8vw, 106px); text-align: center; }
.eyebrow { margin: 0 0 24px; font-size: 11px; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.signal { display: inline-block; width: 5px; height: 5px; margin: 0 7px 2px 0; border-radius: 50%; background: var(--green); }
h1, h2, h3, p { overflow-wrap: break-word; }
h1 { margin: 0; font-size: clamp(43px, 6.3vw, 78px); line-height: 1.06; letter-spacing: -.06em; font-weight: 550; }
.hero-copy { max-width: 565px; margin: 25px auto 0; font-size: clamp(16px, 1.5vw, 18px); line-height: 1.65; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px; margin-top: 30px; }
.hero-demo { margin-top: 58px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-align: left; }
.frame-heading, .frame-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 22px; }
.frame-heading { border-bottom: 1px solid var(--line); font-size: 13px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; letter-spacing: .08em; color: var(--muted); }
.hero-demo video { display: block; width: 100%; height: auto; aspect-ratio: 1440 / 900; background: var(--bg); }
/* WebKit can add a start overlay even without controls; playback lives in the footer. */
#hero-video::-webkit-media-controls, #hero-video::-webkit-media-controls-start-playback-button,
#hero-video::-webkit-media-controls-overlay-play-button { display: none !important; -webkit-appearance: none; }
.frame-footer { min-height: 70px; border-top: 1px solid var(--line); font-size: 13px; }
.frame-footer p { margin: 0; max-width: 70ch; line-height: 1.6; }
.frame-footer a { flex-shrink: 0; color: var(--muted); }
.frame-controls { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.hero-playback { border: 0; background: none; color: var(--muted); padding: 6px 0; cursor: pointer; font-size: inherit; }
.hero-playback:hover { color: var(--violet); }
.demo-note { margin: 16px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.work-section, .local-section { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 8vw, 120px); padding-block: clamp(70px, 9vw, 130px); border-bottom: 1px solid var(--line); }
h2 { margin: 0; font-size: clamp(31px, 3.3vw, 44px); letter-spacing: -.045em; line-height: 1.15; font-weight: 550; }
.section-intro > p:last-child, .local-section > div > p:not(.eyebrow) { max-width: 45ch; color: var(--muted); font-size: 16px; line-height: 1.7; margin: 24px 0; }
.work-points article + article, .local-details article + article { margin-top: 32px; padding-top: 30px; border-top: 1px solid var(--line); }
.point-number { color: var(--violet); }
h3 { margin: 13px 0 10px; font-size: 19px; font-weight: 500; letter-spacing: -.025em; }
.work-points p, .local-details p { color: var(--muted); font-size: 14px; line-height: 1.75; margin: 0; }
.walkthrough-section { padding-block: clamp(70px, 9vw, 110px); border-bottom: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 36px; }
.section-heading > p { color: var(--muted); max-width: 40ch; margin: 0; font-size: 14px; line-height: 1.7; }
.walkthrough-container { position: relative; overflow: hidden; border-radius: 12px; background: var(--bg); }
.walkthrough-fallback { position: relative; z-index: 1; min-height: 600px; padding: 64px 16px 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.walkthrough-fallback img { display: block; width: 100%; height: auto; aspect-ratio: 1440 / 900; border: 1px solid var(--line); border-radius: 12px; }
.walkthrough-fallback p { margin: 16px 0; color: var(--text); font-size: 14px; line-height: 1.5; }
#walkthrough-frame { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); opacity: 0; pointer-events: none; }
#walkthrough-frame.is-ready { position: static; min-height: 600px; opacity: 1; pointer-events: auto; }
.standalone-demo { margin-top: 18px; color: var(--muted); }
.local-details h3 { margin-top: 0; }
.local-details a { display: inline-block; margin-top: 16px; font-size: 13px; }
.closing { padding-block: clamp(80px, 10vw, 130px); text-align: center; }
.platform-note { color: var(--muted); font-size: 12px; margin-top: 18px; line-height: 1.6; }
#updates-link { margin-top: 16px; }
.site-footer { border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-block: 30px; color: var(--muted); font-size: 12px; }
.site-footer nav { font-size: 12px; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 20; padding: 12px 18px; background: var(--text); color: var(--bg); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
/* Docs come from repository Markdown, not a second manually maintained copy. */
.docs-layout { max-width: 800px; padding-block: 58px 100px; }
.docs-nav { flex-wrap: wrap; gap: 16px; margin-bottom: 42px; color: var(--muted); }
.docs-nav [aria-current="page"] { color: var(--text); }
.document { line-height: 1.8; font-size: 15px; color: #c9cdd3; }
.document h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 28px; color: var(--text); }
.document h2 { font-size: 24px; margin: 42px 0 18px; color: var(--text); }
.document h3 { margin-top: 28px; color: var(--text); }
.document p { margin: 18px 0; }
.document a { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }
.document code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86em; background: var(--raised); padding: 2px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.document pre { overflow: auto; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.document pre code { padding: 0; background: none; white-space: pre; }
.document li { padding-left: 4px; margin-block: 8px; }
.doc-card { display: block; margin-top: 20px; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.doc-card h2 { margin: 0 0 8px; font-size: 21px; }
.doc-card p { margin: 0; color: var(--muted); }
@media (max-width: 700px) {
  .shell { width: calc(100% - 36px); }
  .site-header { min-height: 72px; gap: 14px; }
  .logo img { width: 80px; }
  nav { gap: 18px; }
  .site-header .nav-platform { display: none; }
  .hero .eyebrow { font-size: 10px; letter-spacing: .09em; }
  .hero-actions { gap: 18px; }
  .hero-demo { margin-top: 40px; }
  .frame-heading, .frame-footer { padding: 14px; gap: 12px; }
  .frame-footer { align-items: start; font-size: 12px; }
  .frame-footer a { font-size: 11px; }
  .frame-controls { flex-direction: column; align-items: end; gap: 8px; }
  .work-section, .local-section { grid-template-columns: 1fr; gap: 36px; }
  .section-heading { flex-direction: column; align-items: start; gap: 22px; }
  .walkthrough-fallback, #walkthrough-frame.is-ready { min-height: 500px; }
  .site-footer { flex-direction: column; }
  .docs-layout { padding-top: 36px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
