/* Reuse the studio's self-hosted Satoshi face and existing license. */
@font-face { font-family: Satoshi; src: url('/sideeye/fonts/SatoshiVariable.woff2') format('woff2'); font-weight: 300 900; font-style: normal; font-display: swap; }
:root { color-scheme: dark; --bg: #101214; --text: #eceee9; --muted: #a8afab; --line: #2a302d; --mint: #8fd9bb; --pink: #f2a3cb; --heading: Satoshi, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
:where(h1, h2, h3, p, figure, dl, dd) { margin: 0; }
:where(h1, h2, h3, dt, summary, strong, button, .button, .strapline) { font-family: var(--heading); }
:where(h1, h2) { font-weight: 800; }
a { color: inherit; text-underline-offset: 4px; }
button, input { font: inherit; }
button, summary, label { -webkit-tap-highlight-color: transparent; }
:where(a, button, input, summary):focus-visible { outline: 2px solid var(--mint); outline-offset: 5px; }
#stimmo-canvas:focus { outline: none; }
[hidden] { display: none !important; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip:focus { position: absolute; top: 16px; left: 16px; z-index: 10; background: var(--text); color: var(--bg); padding: 12px; border-radius: 6px; }
.wrap { width: min(1180px, calc(100% - 64px)); margin-inline: auto; transition: opacity .22s ease; }
.site-header { display: flex; justify-content: center; align-items: center; height: 142px; border-bottom: 1px solid var(--line); }
.brand { display: block; line-height: 0; }
.brand img { display: block; width: 440px; max-width: calc(100vw - 48px); height: auto; }
.hero { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 64px; padding-block: 52px 48px; }
.hero-copy, .playground { min-width: 0; }
.hero h1 { font-size: clamp(5.75rem, 9vw, 8rem); line-height: .98; letter-spacing: -.035em; }
.strapline { margin-top: 24px; font-weight: 700; font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.25; letter-spacing: -.035em; }
.intro { max-width: 440px; margin-top: 24px; color: var(--muted); font-size: 1.0625rem; line-height: 1.8; }
.availability { margin-top: 24px; color: var(--mint); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Helvetica, Arial, sans-serif; font-size: .9375rem; font-weight: 400; line-height: 1.5; letter-spacing: normal; }
.stage { position: relative; z-index: 40; background: transparent; width: 100%; aspect-ratio: 1.18; margin-block: 6px 12px; }
.stage-toolbar { position: absolute; right: 6px; bottom: 6px; z-index: 5; display: flex; flex-direction: column; gap: 5px; }
.stage:not(.is-ready) .stage-toolbar { visibility: hidden; }
/* 40px glass circles retain 44px touch targets. All controls share one shape. */
.stage-icon-button { position: relative; isolation: isolate; display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #fff; line-height: 0; cursor: pointer; transition: opacity .18s ease, visibility .18s ease, color .18s ease; }
.stage-icon-button::before { content: ''; position: absolute; inset: 2px; z-index: -1; border: 1px solid #ffffff26; border-radius: 50%; background: linear-gradient(150deg, #ffffff18, #ffffff0c); box-shadow: inset 0 1px 2px #ffffff0d, 0 2px 8px #0002; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.stage-icon-button svg { display: block; place-self: center; width: 22px; height: 22px; }
.stage-icon-button:hover::before { background: #ffffff25; }
.stage-icon-button:active::before { background: #ffffff30; }
.stage-icon-button:disabled { opacity: .45; cursor: default; }
.visibility-toggle[aria-pressed="true"] { color: #ffffff7a; }
.visibility-toggle .eye-hidden, .fullscreen-toggle .fullscreen-exit { display: none; }
.visibility-toggle[aria-pressed="true"] .eye-hidden, .fullscreen-toggle[aria-pressed="true"] .fullscreen-exit { display: initial; }
.visibility-toggle[aria-pressed="true"] .eye-open, .fullscreen-toggle[aria-pressed="true"] .fullscreen-enter { display: none; }
.controls-hidden .stage-toolbar > :not(.visibility-toggle) { opacity: 0; visibility: hidden; pointer-events: none; }
.audio-toggle .sound-waves { display: none; }
.audio-toggle[aria-pressed="true"] .sound-waves { display: initial; }
.audio-toggle[aria-pressed="true"] .sound-muted { display: none; }
.demo-settings-panel { position: absolute; z-index: 4; bottom: 52px; right: 60px; width: min(328px, calc(100% - 68px)); max-height: calc(100% - 60px); overflow-y: auto; overscroll-behavior: contain; padding: 16px; border: 1px solid #4d5752; border-radius: 14px; background: #1a1e1df5; box-shadow: 0 18px 48px #0009; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); scrollbar-width: thin; }
.demo-settings-panel h3 { margin: 0 0 10px; font-size: .9375rem; font-weight: 700; line-height: 1.5; }
.softness-control { margin-bottom: 8px; }
.demo-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.stimmo-render-layer { position: absolute; left: var(--stimmo-render-left, 0px); top: 50%; width: var(--stimmo-render-width); height: var(--stimmo-render-height); transform: translateY(-50%); z-index: 1; pointer-events: none; }
.stimmo-render-layer.is-viewport { position: fixed; left: var(--stimmo-viewport-left, 0px); top: var(--stimmo-viewport-top, 0px); width: var(--stimmo-viewport-width, 100vw); height: var(--stimmo-viewport-height, 100dvh); transform: none; z-index: 30; }
#stimmo-canvas { display: block; width: 100%; height: 100%; pointer-events: none; }
.stimmo-hitbox { position: absolute; top: 50%; left: 50%; z-index: 2; width: 125%; height: 125%; transform: translate(-50%, -50%); touch-action: none; cursor: grab; }
.stimmo-hitbox.is-held { cursor: grabbing; }
.stimmo-hitbox.is-detached { position: fixed; z-index: 35; transform: none; }
.stage.has-detached-body { pointer-events: none; }
.stage.has-detached-body .stage-toolbar, .stage.has-detached-body .demo-settings-panel { pointer-events: auto; }
/* Only actual renderer failures show a message, inside the demo rather than
   leaving a loose loading/instruction line below its stage. */
.demo-fallback { position: absolute; z-index: 4; bottom: 12px; left: 8px; right: 60px; padding: 10px 12px; border-radius: 8px; background: #101214ed; font-size: .8125rem; line-height: 1.6; color: var(--muted); }
.demo-fallback:empty { display: none; }
.demo-controls { border: 0; padding: 0; margin: 0; min-width: 0; }
.demo-controls:disabled { opacity: .45; }
.range-row { display: flex; gap: 14px; align-items: center; color: var(--muted); font-size: .75rem; }
.range-row input { width: 100%; min-width: 44px; min-height: 44px; margin: 0; accent-color: var(--mint); cursor: pointer; }
.toggle-row { display: flex; flex-direction: column; align-items: stretch; }
.toggle { display: inline-flex; gap: 10px; align-items: center; min-height: 40px; cursor: pointer; font-size: .8125rem; }
.toggle + .toggle { border-top: 1px solid #ffffff14; }
.toggle input { width: 17px; height: 17px; margin: 0; accent-color: var(--mint); cursor: pointer; }
.how-to, .features, .questions, .support { border-top: 1px solid var(--line); padding-block: 56px 64px; }
.how-to > h2 { font-size: 1.375rem; letter-spacing: -.02em; }
.instructions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; list-style: none; padding: 0; margin: 28px 0 0; counter-reset: instruction; }
.instructions li { counter-increment: instruction; }
.instructions strong { display: flex; align-items: center; gap: 10px; font-size: 1.125rem; font-weight: 700; }
.instructions strong::before { content: counter(instruction, decimal-leading-zero); color: var(--mint); font-size: .75rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.instructions p { margin-top: 10px; max-width: 340px; color: var(--muted); font-size: .9375rem; line-height: 1.8; }
.demo-notes { margin-top: 28px; display: grid; grid-template-columns: 2fr 1fr; gap: 36px; align-items: start; }
.demo-notes > p, .keyboard-help p { font-size: .8125rem; color: var(--muted); line-height: 1.8; }
.demo-notes strong { font-weight: 700; color: #c4cbc6; }
.keyboard-help summary { cursor: pointer; padding-block: 8px; color: var(--mint); font-size: .8125rem; }
.keyboard-help p { padding-top: 8px; }
.features h2, .questions h2, .support h2 { font-size: clamp(1.875rem, 3.2vw, 2.625rem); line-height: 1.16; letter-spacing: -.045em; }
.section-intro { margin-top: 16px; color: var(--muted); font-size: 1.0625rem; line-height: 1.8; }
.feature-list { margin-top: 40px; }
.feature { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; border-top: 1px solid var(--line); padding-block: 28px; }
.feature dt { font-size: 1.375rem; line-height: 1.45; font-weight: 700; letter-spacing: -.02em; }
.feature dd { max-width: 570px; min-width: 0; color: var(--muted); line-height: 1.8; }
.feature:last-child { padding-bottom: 0; }
.questions, .support { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; }
.faq-list { min-width: 0; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 22px; cursor: pointer; list-style: none; font-size: 1rem; font-weight: 700; line-height: 1.5; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--mint); font-size: 1.5rem; font-weight: 400; line-height: 1; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details > p { padding: 0 24px 24px 0; color: var(--muted); line-height: 1.8; }
.faq-list a, .support a, .contact a { color: var(--mint); }
.support > div { min-width: 0; }
.support p { color: var(--muted); line-height: 1.8; }
.support a { display: inline-block; margin-top: 8px; font-size: 1.125rem; line-height: 1.6; overflow-wrap: anywhere; }
.contact { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px 40px; border-top: 1px solid var(--line); padding-block: 40px; }
.contact p { font-size: 1.125rem; line-height: 1.5; letter-spacing: -.015em; }
.contact a { font-size: .9375rem; line-height: 1.6; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 24px; border-top: 1px solid var(--line); min-height: 108px; padding-block: 24px 28px; }
.site-footer p { color: var(--muted); font-size: .75rem; line-height: 1.8; }
.site-footer a { color: var(--muted); font-size: .875rem; line-height: 1.6; }
section[id] { scroll-margin-top: 24px; }
@media (max-width: 1050px) {
  .hero { gap: 36px; }
  .hero h1 { font-size: clamp(4.5rem, 9vw, 6rem); }
  .feature, .questions, .support { gap: 48px; }
}
@media (max-width: 800px) {
  .wrap { width: min(620px, calc(100% - 40px)); }
  .site-header { height: 124px; }
  .brand img { width: 360px; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding-block: 36px 36px; }
  .hero h1 { font-size: clamp(4rem, 13vw, 5.75rem); }
  .strapline { font-size: 1.875rem; margin-top: 20px; }
  .strapline br { display: none; }
  .intro { max-width: 530px; font-size: 1rem; margin-top: 18px; }
  .availability { margin-top: 18px; }
  .stage { aspect-ratio: 1.15; max-height: 480px; }
  .instructions { grid-template-columns: 1fr; gap: 24px; }
  .instructions p { max-width: none; margin-top: 6px; }
  .demo-notes { grid-template-columns: 1fr; gap: 12px; }
  .feature, .questions, .support { grid-template-columns: 1fr; gap: 12px; }
  .how-to, .features, .questions, .support { padding-block: 40px 48px; }
  .questions, .support { gap: 28px; }
  .feature { padding-block: 24px; }
  .feature dt { font-size: 1.25rem; }
  .contact { padding-block: 30px; }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 32px); }
}
.stimmo-fullscreen > .wrap, .stimmo-fullscreen > .skip { opacity: 0; pointer-events: none; }
.stage.is-fullscreen { position: fixed; left: var(--stimmo-viewport-left, 0px); top: var(--stimmo-viewport-top, 0px); width: var(--stimmo-viewport-width, 100vw); height: var(--stimmo-viewport-height, 100dvh); max-height: none; aspect-ratio: auto; margin: 0; }
.stage.is-fullscreen .stimmo-hitbox { inset: 0; width: 100%; height: 100%; transform: none; }
.stage.is-fullscreen .stage-toolbar { right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); }
.stage.is-fullscreen .demo-settings-panel { right: max(66px, calc(env(safe-area-inset-right) + 54px)); bottom: max(58px, calc(env(safe-area-inset-bottom) + 46px)); max-height: calc(100% - 80px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
.stimmo-stage-placeholder { pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
