/* WaveDeck: native CSS, local assets, no external font or analytics requests.
   Layer order: content (auto), sticky header (10), skip link (20), native dialog (top layer). */
:root {
  color-scheme: dark;
  --paper: #0b1220;
  --surface: #121e2f;
  --elevated: #172638;
  --ink: #edf4fc;
  --muted: #a7b8cc;
  --line: #28394d;
  --accent: #61d2ec;
  --button-ink: #08202b;
  --tint: #102b3b;
  --header: rgb(11 18 32 / .95);
  --shadow: 0 22px 64px rgb(0 0 0 / .19);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
:root[data-theme="light"] {
  color-scheme: light;
  --paper: #f4f7fb;
  --surface: #fcfdff;
  --elevated: #e9f0f7;
  --ink: #152c40;
  --muted: #4c6276;
  --line: #cbd9e5;
  --accent: #00647d;
  --button-ink: #f5fcff;
  --tint: #e2f1f6;
  --header: rgb(244 247 251 / .96);
  --shadow: 0 22px 64px rgb(24 54 80 / .09);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.7 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", "Hiragino Sans", "Apple SD Gothic Neo", sans-serif; }
body, button, select { -webkit-tap-highlight-color: transparent; }
a { color: var(--accent); text-underline-offset: .25em; }
a:hover { text-decoration-thickness: 2px; }
button, select { font: inherit; }
button { cursor: pointer; }
button, a, select, summary { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; border-radius: 5px; }
main:focus { outline: none; }
::selection { background: var(--accent); color: var(--button-ink); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.28; letter-spacing: -.035em; overflow-wrap: break-word; }
h1 { font-size: clamp(2.35rem, 4.4vw, 3.65rem); font-weight: 730; text-wrap: balance; }
.headline-phrase { display: inline-block; max-width: 100%; }
h2 { font-size: clamp(1.65rem, 2.8vw, 2.35rem); font-weight: 690; text-wrap: balance; }
h3 { font-size: 1.12rem; font-weight: 650; letter-spacing: -.015em; }
p { color: var(--muted); }
.page-shell { width: min(100% - 80px, 1200px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 20px; top: 12px; transform: translateY(-160%); z-index: 20; padding: 10px 20px; background: var(--accent); color: var(--button-ink); border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; min-height: 86px; border-bottom: 1px solid var(--line); background: var(--header); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.brand-group { display: flex; align-items: center; gap: 14px; }
.hub-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 9999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: .8rem; font-weight: 600; text-decoration: none; transition: all .18s cubic-bezier(0.16, 1, 0.3, 1); }
.hub-pill svg { width: 14px; height: 14px; stroke-width: 2.4; transition: transform .18s; }
.hub-pill:hover { background: var(--elevated); border-color: var(--accent); color: var(--ink); transform: translateX(-2px); }
.hub-pill:hover svg { transform: translateX(-2px); }
.brand { display: inline-flex; width: fit-content; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.2rem; letter-spacing: -.03em; }
.brand img { border-radius: 11px; }
.site-nav, .footer-links { display: flex; align-items: center; gap: 28px; }
.site-nav a { position: relative; color: var(--muted); text-decoration: none; white-space: nowrap; font-size: .9rem; padding-block: 10px; }
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"]::after { content: ''; position: absolute; height: 2px; background: var(--accent); inset: auto 0 0; }
.site-nav a:hover { color: var(--accent); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.footer-actions { display: none !important; }
.language-control select { max-width: 144px; min-height: 42px; border: 1px solid var(--line); border-radius: 9px; padding: 5px 9px; color: var(--ink); background: var(--surface); font-size: .85rem; cursor: pointer; }
.theme-toggle { min-height: 42px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: transparent; white-space: nowrap; font-size: .82rem; }
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.hero { display: grid; grid-template-columns: .9fr 1.2fr; gap: 44px; align-items: center; padding: 80px 0 64px; }
.eyebrow { color: var(--accent); font-size: .83rem; font-weight: 600; margin-bottom: 22px; }
.hero-copy { padding-bottom: 12px; }
.lede { margin-top: 24px; font-size: 1.08rem; max-width: 58ch; line-height: 1.85; }
.actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 32px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 14px; min-height: 50px; padding: 12px 20px; color: var(--button-ink); background: var(--accent); border: 1px solid transparent; border-radius: 11px; font-size: .94rem; font-weight: 650; text-decoration: none; white-space: nowrap; transition: transform .18s, filter .18s; }
.button:hover { transform: translateY(-2px); filter: brightness(1.06); }
.button:active { transform: translateY(0); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: .94rem; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.app-preview { min-width: 0; }
.app-preview .screenshot-link { display: block; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); cursor: zoom-in; transition: transform .25s; }
.app-preview .screenshot-link:hover { transform: translateY(-3px); }
.app-preview img { width: 100%; aspect-ratio: 8/5; object-fit: contain; }
.app-preview figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 14px 3px 0; font-size: .72rem; color: var(--muted); }
.station-section { border-block: 1px solid var(--line); padding: 26px 0 30px; }
.station-section h2 { font-size: .95rem; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-bottom: 24px; }
.stations { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 0; }
.stations > div + div { border-left: 1px solid var(--line); padding-left: 24px; }
.stations dt { color: var(--ink); font: 600 1.2rem/1.5 ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: -.04em; }
.stations dd { margin: 4px 0 0; color: var(--muted); font-size: .78rem; }
.content-section { padding-block: 76px; }
.section-heading { margin-bottom: 36px; max-width: 720px; }
.section-heading p { margin-top: 14px; }
.feature-layout { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 72px; }
.feature { display: grid; grid-template-columns: 28px 1fr; gap: 18px; padding: 22px 0; }
.feature:first-child { padding-top: 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature-index { color: var(--accent); font: 500 .78rem/1.9 ui-monospace, Menlo, monospace; }
.feature h3 { margin-bottom: 8px; }
.feature p { font-size: .94rem; }
.content-section + .content-section { border-top: 1px solid var(--line); }
.guide-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 30px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 32px 1fr; gap: 18px; }
.step-index { display: grid; align-items: center; justify-content: center; height: 32px; border: 1px solid var(--line); border-radius: 9px; color: var(--accent); font: 500 .9rem/1 ui-monospace, Menlo, monospace; }
.steps h3 { margin: 2px 0 9px; }
.steps p { font-size: .94rem; }
.privacy-note { display: flex; align-items: center; justify-content: space-between; gap: 36px; padding: 36px; margin: 0 0 30px; border-radius: 20px; background: var(--tint); border: 1px solid var(--line); }
.privacy-note h2 { font-size: 1.45rem; }
.privacy-note p { margin-top: 14px; max-width: 68ch; font-size: .94rem; }
.privacy-note .text-link { flex-shrink: 0; }
.limits { padding: 4px 3px 50px; max-width: 86ch; }
.limits h2 { font-size: .86rem; letter-spacing: 0; font-weight: 600; margin-bottom: 8px; }
.limits p { font-size: .8rem; line-height: 1.85; }
.site-footer { display: flex; justify-content: space-between; gap: 40px; padding: 36px 0; border-top: 1px solid var(--line); }
.footer-brand { font-weight: 700; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.site-footer p { margin: 7px 0 18px; font-size: .84rem; }
.site-footer small { color: var(--muted); font-size: .76rem; }
.footer-tools { display: grid; justify-items: end; gap: 22px; align-content: start; }
.footer-links { align-self: flex-start; padding-top: 4px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: .86rem; text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.page-hero { padding: 64px 0 50px; }
.page-hero h1 { max-width: 20ch; }
.support-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 100px; align-items: center; }
.contact-panel { padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.contact-panel h2 { font-size: 1.4rem; margin-bottom: 14px; }
.contact-panel p { font-size: .9rem; }
.contact-panel .button { margin: 24px 0 18px; }
.email-link { display: block; font: .9rem/1.8 ui-monospace, Menlo, monospace; overflow-wrap: anywhere; }
.copy-email { margin-top: 12px; padding: 0; min-height: 38px; color: var(--accent); border: 0; background: transparent; font-size: .84rem; text-decoration: underline; text-underline-offset: 4px; }
.copy-status { display: block; min-height: 1.6em; font-size: .8rem; color: var(--muted); }
.steps-horizontal { grid-template-columns: repeat(3, 1fr); gap: 36px; }
.support-hero + .content-section { border-block: 1px solid var(--line); }
.faq-section { display: grid; grid-template-columns: .72fr 1.28fr; gap: 70px; padding: 76px 0; }
.faq-list { min-width: 0; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: 20px 0; cursor: pointer; color: var(--ink); font-weight: 600; line-height: 1.65; }
.faq-list summary::marker { color: var(--accent); }
.faq-list details:first-child summary { padding-top: 0; }
.faq-list details[open] summary { color: var(--accent); }
.faq-list details p { padding: 0 0 24px; line-height: 1.9; font-size: .95rem; }
.safety-note { padding: 28px 32px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 12px; background: var(--surface); }
.safety-note h2 { font-size: 1.15rem; margin-bottom: 12px; }
.safety-note p { font-size: .93rem; }
.support-policy { padding: 28px 0 58px; }
.policy-hero { max-width: 900px; }
.policy-hero h1 { font-size: clamp(2.1rem, 4vw, 3.15rem); max-width: 26ch; }
.policy-hero .lede { font-size: 1rem; max-width: 80ch; }
.policy-dates { display: flex; flex-wrap: wrap; gap: 6px 28px; color: var(--muted); font-size: .82rem; margin-top: 22px; }
.policy-summary { border: 1px solid var(--line); border-radius: 18px; padding: 28px 32px; background: var(--surface); margin-bottom: 52px; }
.policy-summary > h2 { color: var(--accent); font-size: .85rem; letter-spacing: 0; margin-bottom: 22px; }
.policy-summary > div { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.policy-summary h3 { margin-bottom: 8px; }
.policy-summary p { font-size: .92rem; }
.legal-layout { display: grid; grid-template-columns: 245px minmax(0, 1fr); gap: 70px; padding-bottom: 68px; align-items: start; }
.toc { position: sticky; top: 122px; }
.toc h2 { font-size: .9rem; letter-spacing: 0; margin-bottom: 18px; }
.toc a { display: block; padding: 8px 0; font-size: .88rem; color: var(--muted); text-decoration: none; line-height: 1.6; }
.toc a:hover { color: var(--accent); }
.toc a.toc-sub { padding-left: 15px; font-size: .8rem; }
.legal-content { max-width: 790px; }
.legal-content > section + section { border-top: 1px solid var(--line); padding-top: 38px; margin-top: 42px; }
.legal-content h2 { font-size: 1.5rem; margin-bottom: 28px; }
.legal-section { margin-bottom: 30px; scroll-margin-top: 112px; }
.legal-section h3 { margin-bottom: 12px; font-size: 1.04rem; line-height: 1.6; }
.legal-content p, .legal-content li { font-size: .95rem; line-height: 1.95; overflow-wrap: anywhere; }
.legal-content p + p { margin-top: 12px; }
.legal-content ul { color: var(--muted); padding-left: 22px; margin-block: 0; }
.legal-content li + li { margin-top: 14px; }
.image-dialog { width: min(1360px, calc(100% - 40px)); max-width: none; max-height: calc(100dvh - 40px); padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.image-dialog::backdrop { background: rgb(4 10 20 / .84); }
.image-dialog img { width: 100%; max-height: calc(100dvh - 130px); object-fit: contain; }
.dialog-close { display: flex; align-items: center; gap: 14px; min-height: 44px; margin: 0 0 10px auto; padding: 6px 14px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--surface); }
.dialog-close span { font-size: 1.5rem; line-height: 1; }
.preview-open { overflow: hidden; }
@media (max-width: 1100px) {
  .site-header { gap: 18px; }
  .site-nav { gap: 20px; }
  .hero { gap: 30px; }
  .feature-layout, .guide-layout { gap: 36px; }
  .support-hero { gap: 48px; }
  .privacy-note { align-items: flex-start; flex-direction: column; gap: 22px; }
  .legal-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 36px; }
}
@media (max-width: 900px) {
  .page-shell { width: calc(100% - 48px); }
  .site-header { grid-template-columns: 1fr auto; gap: 8px 16px; padding: 16px 0 10px; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; justify-content: center; gap: 32px; }
  .hero { grid-template-columns: 1fr; gap: 38px; padding: 48px 0; }
  .hero-copy { max-width: 630px; }
  .hero h1 { max-width: 21ch; }
  .hero-preview { max-width: 760px; width: 100%; }
  .hero .lede { max-width: 54ch; }
  .content-section { padding-block: 54px; }
  .feature-layout, .guide-layout { grid-template-columns: 1fr; gap: 32px; }
  .feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; }
  .feature { padding: 0; }
  .feature + .feature { border: 0; }
  .guide-layout .steps { grid-row: 1; }
  .support-hero { grid-template-columns: 1fr; gap: 32px; padding-top: 42px; }
  .support-hero > div { max-width: 630px; }
  .contact-panel { max-width: 660px; }
  .steps-horizontal { grid-template-columns: 1fr; gap: 28px; }
  .faq-section { grid-template-columns: 1fr; gap: 8px; padding-block: 54px; }
  .legal-layout { grid-template-columns: 1fr; gap: 40px; }
  .toc { position: static; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
  .toc a { display: inline-block; margin-right: 22px; }
  .toc a.toc-sub { display: none; }
  html { scroll-padding-top: 160px; }
  .legal-section { scroll-margin-top: 160px; }
}
@media (max-width: 600px) {
  .page-shell { width: calc(100% - 36px); }
  .brand { gap: 8px; font-size: 1.08rem; }
  .brand img { width: 34px; height: 34px; border-radius: 9px; }
  .header-actions, .footer-actions { gap: 7px; }
  .language-control select { max-width: 112px; font-size: .8rem; padding-inline: 6px; }
  .theme-toggle { font-size: .75rem; padding-inline: 7px; }
  .site-nav { gap: 25px; }
  .site-nav a { font-size: .82rem; }
  .hero { padding: 38px 0 32px; gap: 28px; }
  h1 { font-size: 2.45rem; }
  .eyebrow { margin-bottom: 16px; font-size: .75rem; }
  .lede { font-size: 1rem; margin-top: 20px; }
  .actions { gap: 18px; margin-top: 24px; }
  .button { font-size: .86rem; min-height: 48px; padding-inline: 16px; }
  .text-link { font-size: .88rem; }
  .app-preview .screenshot-link { border-radius: 10px; }
  .app-preview figcaption { display: block; line-height: 1.8; font-size: .7rem; }
  .app-preview figcaption span { display: block; }
  .stations { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
  .stations > div + div { padding-left: 14px; }
  .stations > div:nth-child(4) { padding-left: 0; border: 0; }
  .stations dt { font-size: 1.08rem; }
  .stations dd { font-size: .73rem; }
  .station-section h2 { font-size: .9rem; }
  .section-heading { margin-bottom: 28px; }
  .feature-list { grid-template-columns: 1fr; }
  .feature { gap: 14px; }
  .feature p, .steps p { font-size: .9rem; }
  .privacy-note { padding: 24px; border-radius: 16px; }
  .privacy-note h2 { font-size: 1.3rem; }
  .site-footer { flex-direction: column; gap: 24px; }
  .footer-tools { justify-items: start; }
  .footer-actions { justify-content: flex-start; }
  .footer-links { gap: 22px; }
  .contact-panel { padding: 24px; }
  .page-hero h1 { font-size: 2.2rem; }
  .support-hero { padding-block: 36px; }
  .faq-list summary { font-size: .94rem; }
  .safety-note { padding: 24px; }
  .policy-summary { padding: 24px; margin-bottom: 36px; }
  .policy-summary > div { grid-template-columns: 1fr; gap: 24px; }
  .policy-hero { padding-top: 38px; }
  .policy-hero h1 { font-size: 2rem; }
  .legal-content h2 { font-size: 1.4rem; }
  .legal-content p, .legal-content li { font-size: .94rem; }
  .toc a { font-size: .84rem; margin-right: 16px; }
  .image-dialog { width: calc(100% - 16px); padding: 10px; border-radius: 12px; }
}
@media (max-width: 360px) {
  .brand span { font-size: .97rem; }
  .brand { gap: 6px; }
  .language-control select { max-width: 99px; }
  .site-nav { gap: 18px; }
  .page-shell { width: calc(100% - 28px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (prefers-reduced-transparency: reduce) { .site-header { background: var(--paper); } }
@media print {
  :root { color-scheme: light; --paper: #fff; --surface: #fff; --ink: #111; --muted: #333; --line: #bbb; --accent: #17445a; }
  .site-header, .site-footer, .toc, .skip-link, .image-dialog, .policy-summary { display: none; }
  .page-shell { width: 100%; }
  .legal-layout { display: block; }
  .legal-content { max-width: none; }
  .legal-section { break-inside: avoid; }
  .policy-hero { padding-top: 0; }
}
