/* Waves public site. One stylesheet for every page, both languages.
   Colours are tokens so the dark (default) and light themes stay in step. */
:root, [data-theme="dark"] {
  --bg: #101114; --surface: #18191E; --surface-2: #1F2127; --surface-3: #24262C; --alt-row: #1A1B20;
  --ink: #F4F3EF; --ink-2: #CFCEC8; --ink-3: #B9B8B2; --ink-4: #8F8E88; --ink-5: #77766F;
  --inv: #F4F3EF; --on-inv: #101114;
  --amber: #F2B33D; --coral: #FF6B5A; --teal: #52D1C4;
  --amber-t: #F2B33D; --coral-t: #FF6B5A; --teal-t: #52D1C4;
  --code-bg: #0A0B0D; --code-bg-2: #131418; --code-ink: #DAD9D3;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #F6F5F1; --surface: #FFFFFF; --surface-2: #ECEBE6; --surface-3: #E3E2DC; --alt-row: #FAF9F6;
  --ink: #15161A; --ink-2: #3D3C38; --ink-3: #55544F; --ink-4: #6B6A64; --ink-5: #7E7D77;
  --inv: #15161A; --on-inv: #F6F5F1;
  --amber-t: #8A5E00; --coral-t: #B8382A; --teal-t: #0E6E65;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.55 "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
code, pre, .mono { font-family: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace; }
h1, h2, h3 { margin: 0; font-family: "Bricolage Grotesque", "DM Sans", sans-serif; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap {
  max-width: 1240px; margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
.section { padding-top: 128px; }
.eyebrow { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13px; color: var(--amber-t); }
.h1 { font-weight: 800; font-size: clamp(40px, 6vw, 80px); line-height: 1; letter-spacing: -0.04em; }
.h2 { font-weight: 800; font-size: clamp(32px, 4.2vw, 56px); line-height: 1.02; letter-spacing: -0.04em; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 58ch; }
.muted { color: var(--ink-4); font-size: 14px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 14px; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; text-decoration: none;
  transition: transform .15s ease, filter .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn-lg { min-height: 54px; padding: 0 28px; }
.btn-accent { background: var(--amber); color: #101114; }
.btn-inv { background: var(--inv); color: var(--on-inv); }
.btn-quiet { background: var(--surface-2); color: var(--ink); }
.btn-dark { background: #101114; color: #F4F3EF; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--bg); }
.site-header .wrap { height: 72px; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-bars { display: flex; gap: 3px; align-items: flex-end; height: 22px; }
.logo-bars span { width: 5px; border-radius: 3px; }
.logo-bars span:nth-child(1) { height: 10px; background: var(--amber); }
.logo-bars span:nth-child(2) { height: 22px; background: var(--coral); }
.logo-bars span:nth-child(3) { height: 15px; background: var(--teal); }
.logo-word { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 24px; letter-spacing: -0.03em; }
.nav { display: flex; gap: 26px; margin-left: 16px; }
.nav a { text-decoration: none; color: var(--ink-3); font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { font-weight: 700; }
.header-tools { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 12px; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--ink); transition: background-color .15s ease;
}
.icon-btn:hover { background: var(--surface-3); }
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; border-radius: 12px;
  background: var(--surface-2); text-decoration: none; font-weight: 700; font-size: 14px; color: var(--ink-4);
}
.lang-switch .on { color: var(--ink); }
.header-tools .login { padding: 0 12px; text-decoration: none; font-weight: 500; color: var(--ink); }
.theme-icon-light { display: none; }
[data-theme="light"] .theme-icon-dark { display: none; }
[data-theme="light"] .theme-icon-light { display: block; }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .nav.open {
    display: flex; flex-direction: column; gap: 0; position: absolute; top: 72px; left: 0; right: 0;
    margin: 0; padding: 8px 24px 20px; background: var(--bg);
  }
  .nav.open a { padding: 12px 0; font-size: 18px; }
  .header-tools .btn, .header-tools .login { display: none; }
}

/* Hero */
.hero { padding-top: 88px; text-align: center; }
.hero .wrap { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.hero-chip {
  display: inline-flex; gap: 10px; align-items: center; font-size: 13px; color: var(--ink-3);
  background: var(--surface); border-radius: 999px; padding: 8px 16px;
}
.hero h1 { font-weight: 800; font-size: clamp(40px, 6vw, 84px); line-height: 1; letter-spacing: -0.04em; max-width: 18ch; }
.hero .lead { font-size: 20px; max-width: 54ch; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Media tiles */
.media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 72px; text-align: left; }
.tile { border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.tile-image { background: var(--amber); color: #1A1406; }
.tile-video { background: var(--coral); color: #2A0B07; }
.tile-music { background: var(--teal); color: #062421; }
.tile-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tile-title { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 32px; letter-spacing: -0.03em; }
.tile-count { font-family: "JetBrains Mono", monospace; font-size: 13px; }
.tile-media { width: 100%; height: 190px; object-fit: cover; border-radius: 14px; background: rgba(0,0,0,.12); }
.tile-models { font-size: 13px; font-weight: 500; }
@media (max-width: 900px) { .media-grid { grid-template-columns: minmax(0, 1fr); } }

/* Music player */
.player { display: flex; gap: 16px; align-items: center; height: 190px; background: #3FBFB2; border-radius: 14px; padding: 14px; }
.player-cover { position: relative; flex: none; width: 112px; height: 112px; }
.player-cover img { width: 112px; height: 112px; object-fit: cover; border-radius: 12px; }
.play-btn {
  position: absolute; left: 28px; top: 28px; width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
  background: #062421; color: #52D1C4; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(6,36,33,.35); transition: transform .15s ease;
}
.play-btn:hover { transform: scale(1.06); }
.play-btn .icon-pause { display: none; }
.player.playing .play-btn .icon-play { display: none; }
.player.playing .play-btn .icon-pause { display: block; }
.ring { position: absolute; left: 28px; top: 28px; width: 56px; height: 56px; border-radius: 50%; background: #F4F3EF; opacity: 0; pointer-events: none; }
.player.playing .ring { animation: pulseRing 1.4s ease-out infinite; }
@keyframes pulseRing { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.5); opacity: 0; } }
.player-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.player-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.player-title { font-weight: 700; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.player-time { font-family: "JetBrains Mono", monospace; font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wave { position: relative; height: 48px; }
.wave-bars { display: flex; align-items: center; gap: 2px; height: 48px; pointer-events: none; }
.wave-bars span { flex: 1; border-radius: 2px; background: rgba(6,36,33,.28); }
.wave-bars span.on { background: #062421; }
.seek { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seek:focus-visible + .wave-bars { outline: 2px solid #062421; outline-offset: 3px; border-radius: 4px; }

/* Marquee */
.marquee-wrap { margin-top: 48px; overflow: hidden; white-space: nowrap; }
.marquee { display: inline-flex; gap: 48px; padding-right: 48px; animation: marquee 38s linear infinite; }
.marquee span { font-family: "JetBrains Mono", monospace; font-size: 15px; color: var(--ink-5); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Section heads */
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 32px; }
.head-text { display: flex; flex-direction: column; gap: 14px; }
.stats { display: flex; flex-wrap: wrap; gap: 32px; }
.stat-num { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 40px; line-height: 1; }
.stat-label { color: var(--ink-3); font-size: 14px; margin-top: 6px; }

/* Filter pills */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  font: inherit; font-weight: 500; font-size: 15px; border: 0; border-radius: 999px; padding: 0 18px; height: 44px; cursor: pointer;
  background: var(--surface-2); color: var(--ink-2);
}
.filter[aria-pressed="true"] { background: var(--inv); color: var(--on-inv); }

/* Tables */
.table-box { overflow-x: auto; border-radius: 20px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
th { background: var(--surface-2); color: var(--ink-3); text-align: left; font-weight: 500; padding: 15px 20px; white-space: nowrap; }
td { padding: 15px 20px; vertical-align: top; }
tbody tr:nth-child(even) { background: var(--alt-row); }
td .model-name { font-weight: 700; }
td code { font-size: 12px; color: var(--ink-4); }
.num { text-align: right; }
.dim { color: var(--ink-3); }
.chip {
  display: inline-block; font-family: "JetBrains Mono", monospace; font-size: 12px; font-weight: 500;
  color: #101114; border-radius: 6px; padding: 3px 8px; white-space: nowrap;
}
.chip-image { background: var(--amber); }
.chip-video { background: var(--coral); }
.chip-music { background: var(--teal); }
.save { font-family: "JetBrains Mono", monospace; font-size: 13px; font-weight: 500; border-radius: 6px; padding: 4px 8px; background: var(--surface-2); color: var(--ink-3); white-space: nowrap; }
.save.good { background: #5FD39A; color: #062421; }
.strike { text-decoration: line-through; }
.table-foot { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
[hidden] { display: none !important; }

/* Model cards */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--surface); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; transition: transform .2s ease, background-color .2s ease; }
.card:hover { transform: translateY(-4px); background: var(--surface-2); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card-price { font-family: "JetBrains Mono", monospace; font-size: 13px; color: var(--ink-3); }
.card h3 { font-weight: 700; font-size: 23px; letter-spacing: -0.02em; }
.card code { font-size: 13px; color: var(--ink-4); }
.card p { color: var(--ink-2); font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tags span { font-size: 13px; color: var(--ink-2); background: var(--surface-3); border-radius: 6px; padding: 4px 8px; }
@media (max-width: 1060px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .card-grid { grid-template-columns: minmax(0, 1fr); } }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: start; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--surface); border-radius: 16px; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 24px; font-weight: 700; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--amber-t); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 24px 24px; color: var(--ink-2); max-width: 64ch; }
@media (max-width: 760px) { .faq { grid-template-columns: minmax(0, 1fr); } }

/* Bands */
.band { border-radius: 28px; padding: clamp(32px, 6vw, 80px) clamp(24px, 5vw, 64px); }
.band-accent { background: var(--amber); color: #101114; }
.band-light { background: var(--inv); color: var(--on-inv); }
.band-center { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.band-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.band h2 { font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.band-center h2 { font-size: clamp(36px, 6vw, 76px); max-width: 14ch; }
.band-row h2 { font-size: clamp(28px, 3.6vw, 46px); max-width: 18ch; }
.contact { display: inline-flex; align-items: center; gap: 10px; background: rgba(16,17,20,.1); border-radius: 999px; padding: 6px 6px 6px 18px; font-weight: 700; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan { background: var(--surface); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.plan.popular { background: var(--amber); color: #101114; }
.plan-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.plan-head h2 { font-weight: 800; font-size: 28px; letter-spacing: -0.03em; }
.badge { font-family: "JetBrains Mono", monospace; font-size: 12px; font-weight: 500; background: #101114; color: #F2B33D; border-radius: 6px; padding: 4px 8px; }
.plan-price { display: flex; align-items: baseline; gap: 8px; }
.plan-price strong { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 52px; line-height: 1; letter-spacing: -0.04em; }
.plan-price span { font-size: 15px; opacity: .75; }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { flex: none; margin-top: 3px; }
.plan .btn { margin-top: auto; }
.plan .btn-plan { background: var(--surface-3); color: var(--ink); }
.plan.popular .btn-plan { background: #101114; color: #F4F3EF; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 32px; }
.stat-card { background: var(--surface); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.stat-card .stat-num { font-size: 44px; }
.policies { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.policy { background: var(--surface); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.policy h3 { font-family: "DM Sans", sans-serif; font-size: 21px; font-weight: 700; }
.policy p { color: var(--ink-2); font-size: 15px; }
@media (max-width: 980px) { .plans, .policies { grid-template-columns: minmax(0, 1fr); } }

/* Models page extras */
.ops { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.ops-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ops-grid div { background: var(--surface); border-radius: 14px; padding: 16px 18px; font-weight: 700; }
@media (max-width: 900px) { .ops { grid-template-columns: minmax(0, 1fr); } }

/* Terms */
.legal-layout { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.toc { flex: 1 1 240px; max-width: 280px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; background: var(--surface); border-radius: 18px; padding: 22px; }
.toc a { text-decoration: none; color: var(--ink-3); }
.toc a:hover { color: var(--ink); }
.legal { flex: 999 1 560px; min-width: 0; max-width: 760px; display: flex; flex-direction: column; gap: 44px; line-height: 1.65; }
.legal section { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 96px; }
.legal h2 { font-weight: 700; font-size: 26px; letter-spacing: -0.02em; line-height: 1.15; }
.legal p, .legal ul { color: var(--ink-2); margin: 0; }
.legal ul { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.draft { font-family: "JetBrains Mono", monospace; font-size: 13px; color: var(--coral-t); }

/* Footer */
.site-footer { margin-top: 96px; }
.site-footer .wrap { padding-top: 48px; padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; max-width: 320px; }
.footer-brand p { color: var(--ink-4); font-size: 15px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 64px; }
.footer-cols nav { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-cols strong { font-weight: 700; }
.footer-cols a { text-decoration: none; color: var(--ink-3); }
.footer-cols a:hover { color: var(--ink); }
.copyright { width: 100%; font-size: 14px; color: var(--ink-5); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
