/* Kinara website. Colors and type match the Kinara apps. */

:root {
  --bg: #0e1014;
  --bg-deep: #0a0c10;
  --surface-low: #13161c;
  --surface: #181b22;
  --surface-hi: #222631;
  --line: #232731;
  --border: #2c313c;
  --border-hi: #3a3f4b;
  --text: #f3f1ec;
  --light: #c9cdd5;
  --muted: #a9aeb9;
  --faint: #7f8592;
  --accent: #3fb0e0;
  --accent-soft: #8fd4f2;
  --accent-text: #04151f;
  --accent-dim: #10293a;
  --good: #5bc98b;
  --warn: #e8b45c;
  --display: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
  --font: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1200px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-soft); text-decoration: none; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: var(--accent); color: var(--accent-text); padding: 10px 16px; border-radius: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 14px 28px; border-radius: 999px;
  font-weight: 700; font-size: 17px; border: 1px solid transparent; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-soft); color: var(--accent-text); }
.btn-ghost { border-color: var(--border-hi); color: var(--text); font-weight: 600; }
.btn-ghost:hover { border-color: var(--muted); color: var(--text); }
.btn-sm { min-height: 44px; padding: 10px 20px; font-size: 15px; }

/* ---------- nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 16, 20, .9);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid #1c2028;
}
.nav { display: flex; align-items: center; gap: 32px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -.01em; }
.brand:hover { color: var(--text); }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav-links { display: flex; gap: 28px; flex: 1; font-size: 15px; font-weight: 500; }
.nav-links a { color: var(--light); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.icon-link { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; color: var(--light); }
.icon-link:hover { color: var(--text); background: var(--surface); }
.icon-link svg { width: 22px; height: 22px; }
.menu-btn { display: none; background: none; border: 1px solid var(--border-hi); color: var(--text); width: 44px; height: 44px; border-radius: 12px; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav { flex-wrap: wrap; gap: 12px; padding: 14px 0; }
  .nav .brand { flex: 1; }
  .nav-links { display: none; order: 3; flex: 1 1 100%; flex-direction: column; gap: 4px; padding: 8px 0 12px; }
  .nav-links a { padding: 10px 0; font-size: 17px; }
  .site-header.open .nav-links { display: flex; }
  .nav-actions .btn { display: none; }
}

/* ---------- sections ---------- */
section { padding-top: 150px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-soft); margin-bottom: 14px; }
.h2 { font-size: clamp(34px, 4.2vw, 54px); line-height: 1.04; letter-spacing: -.025em; }
.lede { margin-top: 22px; color: var(--muted); font-size: 19px; }
.lede + .lede { margin-top: 14px; }
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split.top { align-items: flex-start; }
.split.reverse { flex-wrap: wrap-reverse; }
.col-text { flex: 1 1 360px; min-width: 0; }
.col-visual { flex: 1.6 1 520px; min-width: 0; }
.intro { max-width: 760px; }
.checks { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-direction: column; gap: 14px; color: var(--light); font-size: 17px; }
.checks li { display: flex; gap: 14px; }
.checks li::before {
  content: ''; flex: none; width: 20px; height: 20px; margin-top: 4px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- hero ---------- */
.hero { padding-top: 96px; text-align: center; }
.hero h1 { max-width: 900px; margin: 0 auto; font-size: clamp(44px, 7vw, 92px); line-height: 1; letter-spacing: -.035em; }
.hero .sub { max-width: 680px; margin: 28px auto 0; font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); }
.hero .ctas { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero .fine { margin-top: 18px; font-size: 14px; color: var(--faint); }
.hero-devices { position: relative; max-width: 1080px; margin: 72px auto 0; padding-bottom: 40px; text-align: left; }
.hero-devices::before {
  content: ''; position: absolute; left: 10%; right: 10%; top: 10%; bottom: 20%;
  background: radial-gradient(closest-side, rgba(63, 176, 224, .18), rgba(63, 176, 224, 0));
  filter: blur(20px); pointer-events: none;
}
.hero-tv { position: relative; width: 86%; }
.hero-phone { position: absolute; right: 0; bottom: 0; width: 23%; min-width: 110px; }

/* ---------- device frames ---------- */
.tv { background: #05070a; border: 1px solid var(--border); border-radius: 16px; padding: 10px; box-shadow: 0 50px 100px rgba(0, 0, 0, .55); }
.tv.sm { border-radius: 12px; padding: 7px; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
.tv-stand { width: 22%; height: 10px; margin: 0 auto; background: #1a1d24; border-radius: 0 0 8px 8px; }
.phone { background: #05070a; border: 1px solid var(--border-hi); border-radius: 30px; padding: 7px; box-shadow: 0 40px 80px rgba(0, 0, 0, .6); }
.laptop { background: #1a1d24; border: 1px solid var(--border); border-radius: 14px 14px 4px 4px; padding: 10px 10px 0; }
.laptop-base { height: 14px; background: #23272f; border-radius: 0 0 14px 14px; margin: 0 -3%; }
.panel { background: #1a1d24; border: 1px solid var(--border); border-radius: 14px; padding: 10px; }
.screen { position: relative; overflow: hidden; background: var(--bg); container-type: inline-size; }
.screen.tv-screen { aspect-ratio: 16 / 9; border-radius: 8px; }
.screen.phone-screen { aspect-ratio: 9 / 19.5; border-radius: 24px; }
.screen.laptop-screen { aspect-ratio: 16 / 10; border-radius: 6px 6px 0 0; }
.screen img.cover, .cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shade-left { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,16,20,.95) 0%, rgba(14,16,20,.6) 45%, rgba(14,16,20,0) 75%); }
.shade-bottom { position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(0deg, var(--bg), rgba(14,16,20,0)); }
.d { font-family: var(--display); font-weight: 700; }
.pill { display: inline-block; font-weight: 700; color: var(--accent-text); background: var(--accent); }
.pill.soft { color: var(--text); background: rgba(243,241,236,.12); font-weight: 500; }
.tile { position: relative; overflow: hidden; background: var(--surface); }
.bar { background: rgba(0,0,0,.5); }
.bar > i { display: block; height: 100%; background: var(--accent); }

/* ---------- TV home mock ---------- */
.m-home .top { position: absolute; inset: 0 0 42% 0; overflow: hidden; }
.m-home .nav-row { position: absolute; top: 2.4cqw; left: 3.2cqw; right: 3.2cqw; display: flex; gap: 2.6cqw; align-items: center; font-size: 1.35cqw; color: var(--muted); }
.m-home .nav-row b { font-family: var(--display); color: var(--text); font-size: 1.7cqw; }
.m-home .nav-row .on { color: var(--text); border-bottom: .2cqw solid var(--accent); padding-bottom: .3cqw; }
.m-home .feature { position: absolute; left: 3.2cqw; top: 10cqw; width: 44cqw; }
.m-home .kicker { font-size: 1.2cqw; color: var(--accent-soft); letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.m-home .title { font-size: 4.6cqw; line-height: 1; margin-top: .8cqw; }
.m-home .meta { font-size: 1.3cqw; color: var(--muted); margin-top: 1cqw; }
.m-home .btns { display: flex; gap: 1cqw; margin-top: 2cqw; }
.m-home .btns .pill { font-size: 1.3cqw; padding: .9cqw 2cqw; border-radius: .6cqw; }
.m-home .rows { position: absolute; left: 3.2cqw; right: 0; top: 33.5cqw; }
.m-home .row-title { font-size: 1.35cqw; font-weight: 600; margin: 0 0 1cqw; }
.m-home .row-title + .row { margin-bottom: 2.2cqw; }
.m-home .row { display: flex; gap: 1.2cqw; }
.m-home .cw { flex: none; width: 16cqw; }
.m-home .cw .tile { aspect-ratio: 16 / 9; border-radius: .6cqw; }
.m-home .cw .tile.focus { outline: .25cqw solid var(--text); outline-offset: .2cqw; }
.m-home .cw .bar { position: absolute; left: 0; right: 0; bottom: 0; height: .45cqw; }
.m-home .cw .t { font-size: 1.15cqw; margin-top: .6cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-home .cw .s { font-size: 1cqw; color: var(--faint); }
.m-home .poster { flex: none; width: 8.4cqw; aspect-ratio: 2 / 3; border-radius: .6cqw; }

/* ---------- phone title page mock ---------- */
.m-title .art { position: absolute; inset: 0 0 52% 0; overflow: hidden; }
.m-title .art .shade-bottom { height: 30cqw; }
.m-title .cast-ic { position: absolute; top: 10cqw; right: 6cqw; width: 12cqw; height: 12cqw; border-radius: 50%; background: rgba(14,16,20,.6); display: flex; align-items: center; justify-content: center; }
.m-title .cast-ic svg { width: 60%; height: 60%; }
.m-title .body { position: absolute; left: 7cqw; right: 7cqw; top: 46cqw; }
.m-title .title { font-size: 11cqw; line-height: 1; }
.m-title .meta { font-size: 4.6cqw; color: var(--muted); margin-top: 3cqw; }
.m-title .pill { display: block; text-align: center; font-size: 5cqw; padding: 4cqw; border-radius: 3cqw; margin-top: 3cqw; }
.m-title .pill:first-of-type { margin-top: 6cqw; }
.m-title .line { height: 2.6cqw; border-radius: 2cqw; background: var(--surface-hi); margin-top: 2.6cqw; }
.m-title .line:first-of-type { margin-top: 7cqw; }

/* ---------- player mocks ---------- */
.m-player .shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,10,13,.92) 0%, rgba(8,10,13,0) 45%), linear-gradient(180deg, rgba(8,10,13,.7) 0%, rgba(8,10,13,0) 22%); }
.m-player .head { position: absolute; left: 4cqw; top: 3.5cqw; font-size: 1.9cqw; }
.m-player .head span { color: var(--muted); }
.m-player .skipbtn { position: absolute; right: 4cqw; bottom: 13cqw; background: rgba(243,241,236,.14); border: .15cqw solid rgba(243,241,236,.5); font-weight: 600; font-size: 1.9cqw; padding: 1.1cqw 2.4cqw; border-radius: .8cqw; }
.m-player .thumb { position: absolute; left: 31cqw; bottom: 8.5cqw; width: 18cqw; }
.m-player .thumb .tile { aspect-ratio: 16 / 9; border-radius: .6cqw; border: .25cqw solid var(--text); }
.m-player .thumb div:last-child { text-align: center; font-size: 1.5cqw; margin-top: .5cqw; }
.m-player .track { position: absolute; left: 4cqw; right: 4cqw; bottom: 5cqw; height: .6cqw; border-radius: 1cqw; background: rgba(243,241,236,.2); }
.m-player .track i { display: block; width: 40cqw; height: 100%; border-radius: 1cqw; background: var(--accent); }
.m-player .track b { position: absolute; left: 39cqw; top: -.7cqw; width: 2cqw; height: 2cqw; border-radius: 50%; background: var(--text); }
.m-player .times { position: absolute; left: 4cqw; right: 4cqw; bottom: 1.8cqw; display: flex; justify-content: space-between; font-size: 1.4cqw; color: var(--muted); }
.m-info .icard { position: absolute; top: 5cqw; right: 5cqw; bottom: 5cqw; width: 52cqw; background: rgba(14,16,20,.92); border: .2cqw solid var(--border); border-radius: 1.6cqw; padding: 4cqw; display: flex; flex-direction: column; gap: 2.6cqw; font-size: 2.5cqw; }
.m-info .icard .d { font-size: 3.4cqw; }
.m-info .kv { display: flex; justify-content: space-between; gap: 2cqw; align-items: center; }
.m-info .kv span:first-child { color: var(--muted); }
.m-info .ok { display: inline-flex; align-items: center; gap: 1.2cqw; color: var(--good); font-weight: 600; }
.m-info .ok::before { content: ''; width: 1.6cqw; height: 1.6cqw; border-radius: 50%; background: var(--good); }
.stack-visuals { display: flex; flex-direction: column; gap: 28px; }
.stack-visuals .smaller { width: 72%; align-self: flex-end; }

/* ---------- search mock ---------- */
.m-search .box { position: absolute; left: 5cqw; right: 5cqw; top: 5cqw; height: 6cqw; border-radius: 1cqw; background: var(--surface); border: .2cqw solid var(--border-hi); display: flex; align-items: center; padding: 0 2cqw; gap: 1.6cqw; font-size: 2.4cqw; }
.m-search .box svg { width: 2.6cqw; height: 2.6cqw; }
.m-search .caret { width: .2cqw; height: 3cqw; background: var(--accent); }
.m-search .scope { position: absolute; left: 5cqw; top: 14.5cqw; display: flex; gap: 1.2cqw; font-size: 1.9cqw; }
.m-search .scope span { padding: .8cqw 2cqw; border-radius: 4cqw; background: var(--surface-hi); color: var(--muted); }
.m-search .scope .on { background: var(--accent-dim); color: var(--accent-soft); outline: .2cqw solid var(--accent); font-weight: 600; }
.m-search .grid { position: absolute; left: 5cqw; right: 5cqw; top: 22cqw; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2.2cqw; }
.m-search .tile { aspect-ratio: 2 / 3; border-radius: .8cqw; }
.m-search .tag { position: absolute; left: .8cqw; bottom: .8cqw; font-size: 1.3cqw; font-weight: 700; background: rgba(14,16,20,.85); padding: .3cqw .8cqw; border-radius: .5cqw; }
.m-search .t { font-size: 1.5cqw; margin-top: .8cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- pairing mock + diagram ---------- */
.m-pair .copy { position: absolute; left: 7cqw; top: 13cqw; width: 42cqw; }
.m-pair .copy .k { font-size: 1.8cqw; color: var(--accent-soft); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.m-pair .copy .d { font-size: 5cqw; line-height: 1.02; margin-top: 1.4cqw; }
.m-pair .copy p { font-size: 2cqw; color: var(--muted); margin-top: 2cqw; line-height: 1.5; }
.m-pair .pcode { font-family: var(--mono); font-size: 4cqw; letter-spacing: .2em; margin-top: 3cqw; }
.m-pair .qr { position: absolute; right: 9cqw; top: 11cqw; width: 30cqw; aspect-ratio: 1; background: var(--text); border-radius: 1.6cqw; padding: 2.2cqw; }
.m-pair .qr div { display: grid; grid-template-columns: repeat(11, 1fr); width: 100%; height: 100%; }
.m-pair .qr i.on { background: var(--bg); }
.pair-wrap { position: relative; padding-bottom: 24px; }
.pair-wrap .tvbox { width: 88%; }
.pair-wrap .phonebox { position: absolute; right: 0; bottom: 0; width: 22%; min-width: 90px; }
.pair-wrap .phone { border-radius: 24px; padding: 6px; }
.m-scan { background: #0b0d11; }
.m-scan .frame { position: absolute; left: 14cqw; right: 14cqw; top: 38cqw; aspect-ratio: 1; border: 1.4cqw solid var(--accent); border-radius: 6cqw; }
.m-scan p { position: absolute; left: 0; right: 0; bottom: 18cqw; text-align: center; font-size: 6cqw; }
.route { margin-top: 36px; position: relative; height: 150px; max-width: 460px; }
.route .node { position: absolute; top: 30px; padding: 12px 0; text-align: center; border-radius: 12px; font-size: 14px; font-weight: 600; }
.route .a { left: 0; width: 140px; border: 1px solid var(--border-hi); background: var(--surface); }
.route .b { right: 0; width: 160px; border: 1px solid var(--accent); background: var(--accent-dim); }
.route .direct { position: absolute; left: 140px; right: 160px; top: 52px; height: 2px; background: var(--accent); }
.route .label { position: absolute; left: 0; right: 0; top: 4px; text-align: center; font-size: 13px; color: var(--accent-soft); }
.route .fallback { position: absolute; left: 70px; right: 80px; top: 76px; height: 46px; border: 2px dashed var(--border-hi); border-top: none; border-radius: 0 0 16px 16px; }
.route .relay { position: absolute; left: 50%; top: 106px; transform: translateX(-50%); padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); font-size: 13px; color: var(--faint); white-space: nowrap; }

/* ---------- living room mocks ---------- */
.trio { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; align-items: end; }
.trio .phonebox { max-width: 250px; width: 100%; margin: 0 auto; }
.m-cast .body { position: absolute; left: 7cqw; right: 7cqw; top: 14cqw; }
.m-cast .to { font-size: 4.2cqw; color: var(--accent-soft); display: flex; align-items: center; gap: 2cqw; }
.m-cast .to svg { width: 5cqw; height: 5cqw; }
.m-cast .art { margin-top: 7cqw; aspect-ratio: 16 / 9; border-radius: 4cqw; }
.m-cast .t { font-weight: 700; font-size: 6cqw; margin-top: 6cqw; }
.m-cast .s { font-size: 4.2cqw; color: var(--muted); margin-top: 1cqw; }
.m-cast .track { margin-top: 8cqw; height: 1.4cqw; border-radius: 2cqw; background: var(--surface-hi); }
.m-cast .track i { display: block; width: 56%; height: 100%; border-radius: 2cqw; background: var(--accent); }
.m-cast .times { display: flex; justify-content: space-between; font-size: 3.6cqw; color: var(--faint); margin-top: 2cqw; }
.m-cast .controls { display: flex; justify-content: center; align-items: center; gap: 10cqw; margin-top: 8cqw; }
.m-cast .controls svg { width: 9cqw; height: 9cqw; }
.m-cast .pp { width: 18cqw; height: 18cqw; border-radius: 50%; background: var(--text); display: flex; align-items: center; justify-content: center; gap: 2cqw; }
.m-cast .pp i { width: 2cqw; height: 7cqw; background: var(--bg); border-radius: .5cqw; }
.m-launcher { background: #15171c; }
.m-launcher .h { position: absolute; left: 5cqw; font-size: 3cqw; }
.m-launcher .row { position: absolute; left: 5cqw; top: 23cqw; display: flex; gap: 2.4cqw; }
.m-launcher .lcard { width: 36cqw; flex: none; aspect-ratio: 16 / 9; border-radius: 1.6cqw; }
.m-launcher .lcard.focus { outline: .6cqw solid var(--text); outline-offset: .4cqw; }
.m-launcher .lcard .shade-bottom { height: 50%; background: linear-gradient(0deg, rgba(8,10,13,.85), rgba(8,10,13,0)); }
.m-launcher .lcard .t { position: absolute; left: 2cqw; bottom: 3cqw; font-size: 2.6cqw; font-weight: 700; }
.m-launcher .lcard .app { position: absolute; right: 2cqw; top: 2cqw; font-size: 2cqw; font-weight: 700; background: rgba(14,16,20,.8); padding: .6cqw 1.4cqw; border-radius: 1cqw; color: var(--accent-soft); }
.m-launcher .lcard .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 1cqw; }
.m-launcher .sub { position: absolute; left: 5cqw; top: 50cqw; font-size: 2.6cqw; color: var(--muted); }
.m-roku .side { position: absolute; left: 0; top: 0; bottom: 0; width: 20cqw; background: var(--surface-low); padding: 6cqw 3cqw; display: flex; flex-direction: column; gap: 3cqw; font-size: 2.6cqw; color: var(--muted); }
.m-roku .side b { font-family: var(--display); color: var(--text); font-size: 3.2cqw; }
.m-roku .side .on { color: var(--text); font-weight: 600; }
.m-roku .grid { position: absolute; left: 24cqw; right: 4cqw; top: 6cqw; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.8cqw; }
.m-roku .tile { aspect-ratio: 2 / 3; border-radius: 1cqw; }
.m-roku .tile.focus { outline: .4cqw solid var(--text); outline-offset: .3cqw; }

/* ---------- web + manager mocks ---------- */
.m-web .chrome { position: absolute; left: 0; right: 0; top: 0; height: 4.4cqw; background: var(--surface-low); display: flex; align-items: center; gap: .8cqw; padding: 0 1.6cqw; }
.m-web .chrome i { width: 1cqw; height: 1cqw; border-radius: 50%; background: var(--border-hi); }
.m-web .chrome span { margin-left: 2cqw; flex: 0 1 40cqw; height: 2.6cqw; border-radius: 1.4cqw; background: #1c2028; font-size: 1.3cqw; color: var(--faint); display: flex; align-items: center; padding: 0 1.4cqw; }
.m-web .side { position: absolute; left: 0; top: 4.4cqw; bottom: 0; width: 17cqw; background: var(--surface-low); padding: 3cqw 2cqw; display: flex; flex-direction: column; gap: 1.8cqw; font-size: 1.4cqw; color: var(--muted); }
.m-web .side b { font-family: var(--display); color: var(--text); font-size: 1.9cqw; }
.m-web .side .on { color: var(--text); font-weight: 600; }
.m-web .main { position: absolute; left: 20cqw; right: 3cqw; top: 8cqw; }
.m-web .main .h { display: flex; align-items: baseline; gap: 2cqw; }
.m-web .main .h .d { font-size: 3cqw; }
.m-web .main .h span { font-size: 1.4cqw; color: var(--faint); }
.m-web .grid { margin-top: 2.4cqw; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.6cqw; }
.m-web .tile { aspect-ratio: 2 / 3; border-radius: .8cqw; }
.webbox { margin: 56px auto 0; max-width: 980px; }
.m-mgr { padding: 4cqw; }
.m-mgr .d { font-size: 3.2cqw; }
.m-mgr .stats { margin-top: 3cqw; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2cqw; }
.m-mgr .box { background: var(--surface); border: .2cqw solid var(--border); border-radius: 1.6cqw; padding: 2.4cqw; }
.m-mgr .box .l { font-size: 1.7cqw; color: var(--muted); }
.m-mgr .box .v { font-size: 4.4cqw; font-weight: 700; margin-top: .6cqw; }
.m-mgr .mid { margin-top: 2cqw; display: grid; grid-template-columns: 3fr 2fr; gap: 2cqw; }
.m-mgr .chart { margin-top: 1.6cqw; height: 12cqw; display: flex; align-items: flex-end; gap: .5cqw; }
.m-mgr .chart i { flex: 1; background: var(--accent); border-radius: .4cqw .4cqw 0 0; opacity: .85; }
.m-mgr .now { display: flex; flex-direction: column; gap: 1.4cqw; font-size: 1.6cqw; }
.m-mgr .now div { display: flex; justify-content: space-between; }
.m-mgr .storage { margin-top: 2cqw; }
.m-mgr .storage .top { display: flex; justify-content: space-between; font-size: 1.7cqw; }
.m-mgr .storage .top span:first-child { color: var(--muted); }
.m-mgr .seg { margin-top: 1.4cqw; height: 1.6cqw; border-radius: 1cqw; background: var(--surface-hi); display: flex; gap: .3cqw; overflow: hidden; }
.m-req { padding: 4cqw; }
.m-req .d { font-size: 3.6cqw; }
.m-req .list { margin-top: 3cqw; display: flex; flex-direction: column; gap: 1.6cqw; font-size: 2.2cqw; }
.m-req .item { display: flex; align-items: center; gap: 2cqw; background: var(--surface); border-radius: 1.6cqw; padding: 1.8cqw 2.4cqw; }
.m-req .item span:first-child { flex: 1; }
.m-req .who { color: var(--faint); }
.m-req .approve { background: var(--accent); color: var(--accent-text); font-weight: 700; padding: .8cqw 2cqw; border-radius: 1cqw; }
.m-req .decline { color: var(--muted); padding: .8cqw 1.4cqw; }
.m-req .ready { color: var(--good); font-weight: 600; padding: .8cqw 1.4cqw; }

/* ---------- proof strip ---------- */
.proof { padding-top: 72px; }
.proof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.proof-grid > div { background: var(--bg); padding: 28px; }
.proof-grid .d { font-size: 21px; line-height: 1.2; }
.proof-grid p { font-size: 15px; color: var(--muted); margin-top: 8px; }

/* ---------- download ---------- */
.dl-head { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-end; justify-content: space-between; }
.dl-head p { max-width: 420px; color: var(--muted); }
.dl-group { margin-top: 48px; }
.dl-group h3 { font-family: var(--font); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; color: var(--text); transition: border-color .2s, background .2s; }
a.card:hover { border-color: var(--accent); color: var(--text); }
.card svg.ic { width: 32px; height: 32px; color: var(--accent); margin-bottom: 10px; }
.card .name { font-weight: 700; font-size: 18px; }
.card .what { font-size: 15px; color: var(--muted); }
.card .go { margin-top: auto; padding-top: 14px; font-size: 15px; font-weight: 600; color: var(--accent-soft); }
.card pre { margin: 12px 0 0; padding: 10px 12px; background: var(--bg-deep); border: 1px solid var(--border); border-radius: 10px; font-family: var(--mono); font-size: 13px; color: var(--light); overflow-x: auto; }
.soon-tag { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; margin-top: auto; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--warn); background: rgba(232, 180, 92, .1); border: 1px solid rgba(232, 180, 92, .3); }
.card .soon-tag { margin-top: 14px; }
.is-soon { cursor: default; }
.is-soon .go { display: none; }
.is-ready .soon-tag { display: none; }
.badges { display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: flex-start; }
.badge { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.badge img { height: 52px; width: auto; }
.badge.is-soon img { filter: grayscale(.2); }
.badge .soon-tag { margin-top: 0; }
.store-note { margin-top: 18px; font-size: 15px; color: var(--faint); }
.oss { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; background: var(--surface-low); border: 1px solid var(--line); border-radius: 20px; padding: 28px 32px; }
.oss .d { font-size: 24px; line-height: 1.2; }
.oss p { color: var(--muted); font-size: 16px; margin-top: 6px; max-width: 560px; }
.oss .right { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.btn.is-soon, .icon-link.is-soon { opacity: .5; pointer-events: none; }
.site-footer nav a.is-soon { opacity: .5; pointer-events: none; }

/* ---------- developers ---------- */
.dev-grid { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.dev-cards { flex: 1.2 1 480px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.dev-cards .card { padding: 22px; }
.dev-cards .card p { font-size: 15px; color: var(--muted); line-height: 1.55; }
.code { flex: 1 1 380px; min-width: 0; background: var(--bg-deep); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.code .bar-top { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid #1c2028; font-size: 13px; color: var(--muted); }
.code .verb { background: var(--accent-dim); color: var(--accent-soft); font-weight: 700; font-family: var(--mono); padding: 2px 8px; border-radius: 6px; }
.code .bar-top .path { font-family: var(--mono); }
.code .bar-top .ev { margin-left: auto; }
.code pre { margin: 0; padding: 20px 18px; font-family: var(--mono); font-size: 13.5px; line-height: 1.7; color: var(--light); overflow-x: auto; flex: 1; }
.code .k { color: #8ccff0; } .code .s { color: #a9d9a1; } .code .n { color: #f2b880; }
.code .events { padding: 16px 18px; border-top: 1px solid #1c2028; }
.code .events h4 { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.code .events div { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--mono); font-size: 12px; }
.code .events span { background: var(--surface); border: 1px solid var(--border); color: var(--light); padding: 3px 8px; border-radius: 6px; }
.dev-links { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- values, cta, footer ---------- */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 48px; border-top: 1px solid var(--line); padding-top: 56px; }
.values .d { font-size: 26px; }
.values p { margin-top: 10px; color: var(--muted); font-size: 17px; }
.cta { padding-top: 140px; }
.cta-box { position: relative; overflow: hidden; background: var(--surface-low); border: 1px solid var(--line); border-radius: 28px; padding: clamp(48px, 7vw, 96px) 32px; text-align: center; }
.cta-box::before { content: ''; position: absolute; left: 50%; top: -40%; width: 70%; height: 90%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(63,176,224,.16), rgba(63,176,224,0)); pointer-events: none; }
.cta-box h2 { position: relative; font-size: clamp(38px, 5.4vw, 72px); line-height: 1; letter-spacing: -.03em; }
.cta-box p { position: relative; margin: 20px auto 0; max-width: 520px; color: var(--muted); }
.cta-box .btn { position: relative; margin-top: 36px; }
.site-footer { padding: 72px 0 56px; color: var(--faint); font-size: 14px; }
.site-footer .row { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; }
.site-footer .brand { font-size: 18px; }
.site-footer .brand svg { width: 24px; height: 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 28px; flex: 1; }
.site-footer nav a { color: var(--muted); }
.site-footer nav a:hover { color: var(--text); }
.credits { margin-top: 28px; font-size: 13px; line-height: 1.6; max-width: 900px; }
.credits a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- FAQ page ---------- */
.faq-page { max-width: 820px; padding-top: 96px; padding-bottom: 40px; }
.faq-page h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1; letter-spacing: -.03em; }
.faq { margin-top: 56px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0; min-height: 44px; font-family: var(--display); font-weight: 700; font-size: 22px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border-hi); display: flex; align-items: center; justify-content: center; color: var(--accent); font-family: var(--font); font-size: 20px; font-weight: 500; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding: 0 56px 28px 0; color: var(--muted); font-size: 17px; }
.faq-cta { margin-top: 72px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; background: var(--surface-low); border: 1px solid var(--line); border-radius: 22px; padding: 40px 32px; }
.faq-cta .d { font-size: 28px; line-height: 1.1; }
.faq-cta p { color: var(--muted); font-size: 16px; margin-top: 6px; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 600px) {
  body { font-size: 17px; }
  section { padding-top: 110px; }
  .hero { padding-top: 64px; }
  .stack-visuals .smaller { width: 100%; }
  .faq details p { padding-right: 0; }
}


/* ---------- highlight tiles (4 x 2) ---------- */
.ptiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ptile { border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px 28px; background-color: var(--surface-low); }
.ptile .tic { width: 24px; height: 24px; color: var(--accent); margin-bottom: 18px; transition: transform .4s ease; }
.ptile:hover .tic { transform: translateY(-2px); }
.ptile .d { font-size: 19px; line-height: 1.25; }
.ptile p { font-size: 15px; color: var(--muted); margin-top: 8px; line-height: 1.55; }
@media (max-width: 960px) { .ptiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ptiles { grid-template-columns: 1fr; } }

/* ---------- glow tiles ----------
   A faint dot pattern in one corner, and a soft light that follows the
   pointer. Every tile in a group draws the light from the same pointer
   position, so it spills across the borders of the tiles around it. */
@property --lit { syntax: '<number>'; inherits: true; initial-value: 0; }
.glow-group, .glow-solo { --lit: 0; transition: --lit .5s ease; }
.glow-group.lit, .glow-solo.lit { --lit: 1; }
.glow {
  position: relative; isolation: isolate;
  --mx: -999px; --my: -999px;
  background-image: radial-gradient(420px circle at var(--mx) var(--my), rgba(63, 176, 224, calc(.07 * var(--lit))), transparent 45%);
}
.glow > * { position: relative; z-index: 1; }
.glow::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: 2; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(143, 212, 242, calc(.55 * var(--lit))), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.glow::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(243, 241, 236, .07) 1px, transparent 1.3px);
  background-size: 14px 14px;
  -webkit-mask: radial-gradient(120% 90% at 100% 0%, #000 0%, transparent 55%);
          mask: radial-gradient(120% 90% at 100% 0%, #000 0%, transparent 55%);
  animation: drift 40s linear infinite;
}
@keyframes drift { to { background-position: 14px 28px; } }
.card.glow { background-color: var(--surface); }
.card.planned { border-style: dashed; background-color: transparent; }
.card.planned .name { color: var(--light); }
.card .ic { transition: transform .4s ease; }
.card:hover .ic { transform: translateY(-2px); }
.reveal .glow { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; transition-delay: calc(var(--i, 0) * 60ms); }
.reveal.in .glow { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .glow::after { animation: none; }
  .reveal .glow { opacity: 1; transform: none; transition: none; }
}
.mb { color: var(--muted); }
.mb:hover { color: var(--text); }

/* ---------- remote play visual ---------- */
.remote-vis { position: relative; aspect-ratio: 16 / 11.6; }
.rv-tv { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 66%; }
.rv-phone { position: absolute; right: 0; top: 0; width: 32%; }
.m-remote .vid { position: absolute; left: 0; right: 0; top: 10cqw; aspect-ratio: 16 / 9; }
.m-remote .vbar { position: absolute; left: 0; right: 0; bottom: 0; height: 1.2cqw; background: rgba(0,0,0,.5); }
.m-remote .vbar i { display: block; width: 34%; height: 100%; background: var(--accent); }
.m-remote .body { position: absolute; left: 7cqw; right: 7cqw; top: 76cqw; }
.m-remote .t { font-family: var(--display); font-weight: 700; font-size: 8cqw; line-height: 1.1; }
.m-remote .s { font-size: 4.4cqw; color: var(--muted); margin-top: 1.5cqw; }
.m-remote .conn { margin-top: 7cqw; background: var(--surface); border: .4cqw solid var(--border); border-radius: 4cqw; padding: 5cqw; display: flex; flex-direction: column; gap: 3.6cqw; font-size: 4.2cqw; }
.m-remote .row { display: flex; justify-content: space-between; gap: 3cqw; }
.m-remote .row span:first-child { color: var(--muted); }
.m-remote .ok { display: inline-flex; align-items: center; gap: 2cqw; color: var(--good); font-weight: 600; }
.m-remote .ok::before { content: ''; width: 2.4cqw; height: 2.4cqw; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 1.2cqw rgba(91, 201, 139, .18); }
.m-pair .copy { width: 40cqw; }
@media (max-width: 600px) { .remote-vis { aspect-ratio: 16 / 12; } }

/* ---------- every screen: TV, tablet, laptop, phone ---------- */
.devices { position: relative; aspect-ratio: 16 / 9.4; margin-top: 64px; }
.dv-tv { position: absolute; left: 13%; top: 0; width: 60%; z-index: 1; }
.dv-tab { position: absolute; right: 2.5%; top: 21%; width: 31%; z-index: 2; }
.dv-laptop { position: absolute; left: 0; bottom: 3%; width: 41%; z-index: 3; }
.dv-phone { position: absolute; right: 0; bottom: 0; width: 13.5%; z-index: 4; }
.dv-phone .phone { border-radius: 24px; padding: 5px; }
.dv-phone .phone-screen { border-radius: 19px; }
.tablet { background: #05070a; border: 1px solid var(--border-hi); border-radius: 20px; padding: 9px; box-shadow: 0 40px 80px rgba(0, 0, 0, .55); }
.screen.tab-screen { aspect-ratio: 4 / 3; border-radius: 10px; }
.m-casttv .chip { position: absolute; left: 3cqw; top: 3cqw; display: inline-flex; align-items: center; gap: 1cqw; font-size: 1.7cqw; color: var(--accent-soft); background: rgba(14, 16, 20, .75); padding: .8cqw 1.6cqw; border-radius: 3cqw; }
.m-casttv .chip svg { width: 2cqw; height: 2cqw; }
.m-casttv .foot { position: absolute; left: 3cqw; right: 3cqw; bottom: 3cqw; }
.m-casttv .foot .t { font-family: var(--display); font-weight: 700; font-size: 3cqw; }
.m-casttv .track { margin-top: 1.4cqw; height: .6cqw; border-radius: 1cqw; background: rgba(243, 241, 236, .2); }
.m-casttv .track i { display: block; width: 56%; height: 100%; border-radius: 1cqw; background: var(--accent); }
.m-tab .art { position: absolute; inset: 0 0 40% 0; overflow: hidden; }
.m-tab .art .shade-left { background: linear-gradient(0deg, var(--bg) 0%, rgba(14,16,20,0) 60%), linear-gradient(90deg, rgba(14,16,20,.85) 0%, rgba(14,16,20,0) 60%); }
.m-tab .body { position: absolute; left: 5cqw; right: 5cqw; top: 34cqw; }
.m-tab .d { font-size: 7cqw; line-height: 1; }
.m-tab .meta { font-size: 2.6cqw; color: var(--muted); margin-top: 1.6cqw; }
.m-tab .btns { display: flex; gap: 1.6cqw; margin-top: 3.4cqw; }
.m-tab .btns .pill { font-size: 2.6cqw; padding: 1.4cqw 3.4cqw; border-radius: 1.4cqw; }
.m-tab .line { height: 1.6cqw; border-radius: 1cqw; background: var(--surface-hi); margin-top: 3cqw; width: 90%; }
.m-tab .line + .line { margin-top: 1.6cqw; }
.dv-phone .m-cast .body { top: 10cqw; }
.dv-phone .m-cast .art { margin-top: 5cqw; }
.dv-phone .m-cast .controls { margin-top: 6cqw; }
.platforms { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.platforms li { font-size: 14px; color: var(--light); border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; background: var(--surface-low); }
@media (max-width: 600px) {
  .devices { aspect-ratio: 16 / 11; }
  .dv-phone { width: 17%; }
}

.m-remote .ctl { display: flex; justify-content: center; align-items: center; gap: 10cqw; margin-top: 9cqw; }
.m-remote .ctl svg { width: 9cqw; height: 9cqw; }
.m-remote .pp, .m-cast .pp { width: 16cqw; height: 16cqw; border-radius: 50%; background: var(--text); display: flex; align-items: center; justify-content: center; gap: 2cqw; }
.m-remote .pp i { width: 2cqw; height: 6cqw; background: var(--bg); border-radius: .5cqw; }
.m-cast .vol { margin-top: 9cqw; display: flex; align-items: center; gap: 3cqw; font-size: 3.8cqw; color: var(--muted); }
.m-cast .vol .track { flex: 1; margin: 0; }
.m-cast .stop { margin-top: 8cqw; text-align: center; font-size: 4.4cqw; padding: 3.6cqw; border-radius: 3cqw; border: .4cqw solid var(--border-hi); color: var(--light); }
