/* Moodwindow site. Tokens follow the tvOS concept (website/design/preview.html), cross-checked with the
   Android app's Mw palette (android/.../Ui.kt). Change values here, never inline. */
:root {
  --bg: #13211a; --bg-deep: #0e1812; --panel: #222f28; --panel-2: #2b3a32;   /* Ink, Pine: content/brand/BRAND.md */
  --text: #eeeadf; --muted: #b1bbae; --hint: #8f9b8e;
  --green: #c4d9b7; --green-hover: #d8e7cf; --green-deep: #8eaf80; --gold: #e5d2a4;
  --ink: #142018; --gold-ink: #241f15;
  --cream: #eeeadf; --linen: #f6f4ef; --ink-brand: #13211a; --ink-muted: #4a5a50; --line-ink: #13211a1f;   /* logo colours */
  --line: #ffffff14; --line-2: #ffffff26; --glass: #ffffff0d; --glass-2: #ffffff17;
  --r-sm: 12px; --r: 18px; --r-lg: 26px;
  --gutter: clamp(16px, 5vw, 72px); --max: 1240px; --section: clamp(88px, 11vw, 160px);
  --font: Outfit, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;   /* the brand family, self-hosted */
  --fw-display: 300; --brand-ink: var(--cream);   /* logo SVGs are drawn as masks in this colour */
  --fs-hero: clamp(46px, 7.2vw, 112px); --fs-h2: clamp(34px, 4.4vw, 64px); --fs-h3: 21px;
  --fs-lead: clamp(18px, 1.5vw, 21px); --fs-body: 17px; --fs-small: 14px; --fs-eyebrow: 13px;
  --track-tight: -.03em; --track-eyebrow: .29em;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
  color-scheme: dark;
}

@font-face { font-family: Outfit; src: url(/assets/fonts/Outfit-var.ttf) format("truetype"); font-weight: 100 900; font-display: swap; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: var(--fs-body)/1.55 var(--font);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; border-radius: 6px; }
::selection { background: var(--green); color: var(--ink); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--text); color: var(--ink); padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.eyebrow { color: var(--green); text-transform: uppercase; letter-spacing: var(--track-eyebrow); font-size: var(--fs-eyebrow); font-weight: 500; word-spacing: .385em; margin: 0; }
h1, h2, h3 { color: var(--text); margin: 0; font-weight: var(--fw-display); }
h1 { font-size: var(--fs-hero); line-height: .98; letter-spacing: var(--track-tight); }
h2 { font-size: var(--fs-h2); line-height: 1.02; letter-spacing: var(--track-tight); }
h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -.01em; font-weight: 500; }
p { color: var(--muted); margin: 0; }
.lead { font-size: var(--fs-lead); max-width: 34em; }
.small { font-size: var(--fs-small); }
.stack > * + * { margin-top: 18px; }

/* Buttons and pills */
.btn {
  display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: var(--r-sm);
  padding: 15px 22px; font-weight: 500; font-size: 16px; text-decoration: none; white-space: nowrap;
  background: var(--cream); color: var(--ink-brand); transition: background .2s, transform .2s var(--ease);
}
.btn:hover { background: var(--linen); transform: translateY(-1px); }
.btn.secondary { background: var(--glass-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); backdrop-filter: blur(12px); }
.btn.secondary:hover { background: #ffffff24; }
.btn.gold { background: var(--gold); color: var(--gold-ink); }
.btn.small { padding: 10px 16px; font-size: 15px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.pill { display: inline-block; background: #ffffff18; color: #dce7d5; padding: 5px 9px; border-radius: 7px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pill.gold { background: #e5d2a41f; color: var(--gold); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 40; height: var(--header-h);
  display: flex; align-items: center; transition: box-shadow .3s;
  background: var(--bg);   /* a flat Ink panel behind the logo, never photography (BRAND.md) */
}
.site-header.solid { box-shadow: 0 1px 0 var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; text-decoration: none; }
.logo { display: block; background: var(--brand-ink); -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
.logo-h { --logo: url(/assets/brand/logo-horizontal.svg); width: 210px; aspect-ratio: 303.88 / 63.17; }      /* min 200 px */
.logo-stack { --logo: url(/assets/brand/logo.svg); width: 190px; aspect-ratio: 213.72 / 121.65; }       /* min 160 px */
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; padding: 10px 14px; border-radius: 10px; font-size: 15px; }
.nav a:not(.btn):hover { color: var(--text); background: var(--glass); }
.nav .btn { margin-left: 10px; }

/* Hero: parallax-layer */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #13211af2 0%, #13211aa8 42%, #13211a10 100%), linear-gradient(0deg, var(--bg) 0%, #13211a00 45%), linear-gradient(180deg, #13211a99 0%, #13211a00 22%);
}
.hero-copy { padding-block: calc(var(--header-h) + 40px) clamp(56px, 10vh, 120px); }
.hero-copy h1 { margin: 18px 0 22px; max-width: 8.5em; }
.hero-copy .lead { color: #d6e0d3; max-width: 30em; }
.hero-copy .actions { margin-top: 32px; }
.hero-platforms { margin-top: 30px; font-size: var(--fs-small); color: var(--muted); }
.hero-platforms strong { color: var(--text); font-weight: 600; }

/* Brand interlude + lockup: the logo's cream/ink moment */
.interlude { text-align: center; }
.plate { margin: 0 auto; max-width: 840px; border-radius: var(--r-lg); overflow: hidden; background: var(--cream); box-shadow: 0 40px 120px -40px #000c, 0 0 0 1px var(--line); }
.plate img { width: 100%; height: auto; }
.tagline { text-transform: uppercase; letter-spacing: .29em; word-spacing: .385em; margin: 0 -.29em 0 0; font-size: 13px; font-weight: 400; color: var(--text); }
.interlude .tagline { margin-top: 40px; font-size: 14px; }
.interlude-copy { margin: 14px auto 0; }
.lockup { display: inline-block; margin-bottom: 8px; }

/* Sections */
section { position: relative; }
.section { padding-block: var(--section); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 760px; }

/* Scenes: horizontal-pan */
.pan { overflow: hidden; }
.pan-track { display: flex; gap: 20px; padding-inline: var(--gutter); width: max-content; }
.scene-card { position: relative; width: clamp(260px, 30vw, 420px); flex: none; border-radius: var(--r); overflow: hidden; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.scene-card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1.2s var(--ease); }
.scene-card:hover img { transform: scale(1.05); }
.scene-card .info { position: absolute; inset: auto 0 0; padding: 48px 18px 16px; background: linear-gradient(transparent, #0e1812e6); }
.scene-card .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.scene-card .tag { font-size: 11px; color: #b4c0b0; letter-spacing: .12em; text-transform: uppercase; margin-top: 4px; }
.pan-note { margin-top: 28px; }

/* Demo: the app's player, mixer and sleep timer, live */
.demo { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: 24px; align-items: start; }
.tv {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px var(--line-2), 0 40px 120px -30px #000, 0 0 0 10px #0e1812, 0 0 0 11px var(--line);
}
.tv video, .tv img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 1s, filter 1s; }
.tv::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #080d0bcc, transparent 45%); pointer-events: none; }
.tv-ui { position: absolute; inset: auto 0 0; z-index: 1; padding: clamp(16px, 3vw, 32px); display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.tv-ui h3 { font-size: clamp(20px, 2.6vw, 34px); letter-spacing: -.03em; margin-top: 4px; }
.tv-ui p { font-size: 13px; margin-top: 4px; }
.tv-timer { position: absolute; top: 16px; right: 16px; z-index: 1; }
.tv-dim { position: absolute; inset: 0; z-index: 2; background: #000; opacity: 0; pointer-events: none; transition: opacity 1s; }
.tv-wake { position: absolute; inset: 0; z-index: 3; display: none; place-items: center; background: #000; color: var(--muted); border: 0; width: 100%; font-size: 15px; }
.tv-wake.on { display: grid; }
.rail { display: flex; gap: 10px; margin-top: 18px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.rail button {
  flex: none; display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 12px;
  background: var(--glass); border: 1px solid var(--line); color: var(--muted); font-size: 14px;
}
.rail button img { width: 52px; height: 34px; object-fit: cover; border-radius: 7px; }
.rail button[aria-pressed="true"] { background: #ffffff1f; border-color: var(--text); color: var(--text); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 2.4vw, 28px); }
.panel h3 { margin-bottom: 4px; }
.panel .group { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.panel .label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--hint); font-weight: 700; margin-bottom: 6px; }
.slider { display: grid; grid-template-columns: 96px 1fr 40px; align-items: center; gap: 12px; padding: 5px 0; font-size: 15px; }
.slider output { color: var(--hint); font-size: 13px; text-align: right; }
input[type=range] { width: 100%; accent-color: var(--green); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line-2); background: transparent; border-radius: 30px; padding: 8px 14px; color: var(--muted); font-size: 14px; }
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--ink); font-weight: 650; }
#sound-toggle { width: 100%; justify-content: center; margin-top: 18px; }
.demo-status { margin-top: 12px; font-size: 13px; min-height: 1.5em; }

/* Features: sticky-stack */
.stack-cards { display: grid; gap: 24vh; }
.feature {
  position: sticky; top: calc(var(--header-h) + 24px); display: grid; grid-template-columns: 1fr 1.1fr; min-height: min(560px, 76vh);
  border-radius: var(--r-lg); overflow: hidden; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line), 0 -20px 60px -20px #0009;
  transform-origin: 50% 0;
}
.feature-copy { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.feature-copy h2 { font-size: clamp(30px, 3.4vw, 48px); }
.feature-media { position: relative; }
.feature-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { padding-left: 26px; position: relative; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 6px; border: solid var(--green); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; margin-top: 56px; color: var(--muted); font-size: 15px; }
.facts span::before { content: "● "; color: var(--green-deep); font-size: 10px; vertical-align: 2px; }

/* Platforms + pricing: reveal-on-enter */
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 2.6vw, 32px); display: flex; flex-direction: column; gap: 12px; }
.card .devices { color: var(--text); font-weight: 650; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-top: auto; padding-top: 10px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--hint); }
.status.live::before { background: var(--green); box-shadow: 0 0 0 4px #c4d9b72a; }
.pricing { position: relative; overflow: hidden; isolation: isolate; }
.pricing-bg { position: absolute; inset: 0; z-index: -1; }
.pricing-bg img { width: 100%; height: 130%; object-fit: cover; opacity: .35; }
.pricing-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg), #13211a99 40%, var(--bg)); }
.plans { display: grid; grid-template-columns: 1fr 1.25fr; gap: 20px; align-items: stretch; }
.plan { background: #222f28e6; border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 18px; backdrop-filter: blur(10px); }
.plan.premium { background: var(--cream); color: var(--ink-brand); border: 0; box-shadow: inset 0 3px 0 var(--gold), 0 40px 100px -40px #000c; }
.plan.premium h3, .plan.premium .price-row strong { color: var(--ink-brand); }
.plan.premium .ticks li, .plan.premium .price-row span { color: var(--ink-muted); }
.plan.premium .ticks li::before { border-color: var(--ink-brand); }
.plan.premium .price-row { background: #16251e0a; border-color: var(--line-ink); }
.plan.premium .pill.gold { background: var(--ink-brand); color: var(--cream); }
.plan.premium .btn.gold { background: var(--ink-brand); color: var(--cream); }
.plan.premium .btn.gold:hover { background: #24382d; }
.price { font-size: 46px; font-weight: 300; letter-spacing: -.04em; color: var(--text); line-height: 1; }
.price small { font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.price-rows { display: grid; gap: 10px; }
.price-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--glass); border: 1px solid var(--line); }
.price-row strong { font-size: 22px; letter-spacing: -.02em; font-weight: 500; }
.price-row span { color: var(--muted); font-size: 14px; }
.price-row .pill { margin-left: 8px; }
.fine { font-size: 13px; color: var(--hint); max-width: 60em; margin-top: 26px; }

/* Business: parallax-layer */
.business { position: relative; overflow: hidden; isolation: isolate; }
.business-bg { position: absolute; inset: -15% 0; z-index: -1; }
.business-bg img { width: 100%; height: 100%; object-fit: cover; }
.business-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #13211af5 0%, #13211acc 50%, #13211a66 100%), linear-gradient(180deg, var(--bg), transparent 20%, transparent 80%, var(--bg)); }
.uses { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.use { border-top: 1px solid var(--line-2); padding-top: 16px; }
.use p { font-size: 15px; margin-top: 6px; }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-size: 19px; font-weight: 500; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 26px; font-weight: 300; color: var(--green); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; max-width: 46em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 48px 56px; font-size: var(--fs-small); color: var(--muted); }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: flex-end; align-content: start; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { color: var(--text); }
.site-footer p { font-size: var(--fs-small); margin-top: 12px; }

/* Legal + support pages */
.doc { padding-block: calc(var(--header-h) + 56px) var(--section); }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(40px, 5vw, 64px); margin: 14px 0 12px; }
.doc h2 { font-size: 24px; letter-spacing: -.02em; margin: 44px 0 12px; }
.doc p, .doc li { color: #cdd6ca; }
.doc p + p { margin-top: 14px; }
.doc ul { padding-left: 22px; margin: 12px 0; display: grid; gap: 8px; }
.doc a:not(.btn) { color: var(--green); }
.doc .updated { color: var(--hint); font-size: var(--fs-small); }
.doc .callout { margin-top: 28px; }

/* Reveal: hidden only when motion is on (site.js adds .motion) */
.motion [data-reveal] { opacity: 0; transform: translateY(28px); }

@media (max-width: 1000px) {
  .demo, .plans { grid-template-columns: minmax(0, 1fr); }
  .cards-3 { grid-template-columns: 1fr; }
  .uses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature { grid-template-columns: 1fr; min-height: 0; }
  .feature-media { aspect-ratio: 16 / 9; order: -1; }
}
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .nav a:not(.btn) { display: none; }
  .logo-h { width: 200px; }
  .pan { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .pan-track { gap: 12px; }
  .scene-card { width: 78vw; scroll-snap-align: center; }
  .uses { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .site-footer nav { justify-content: flex-start; }
  .slider { grid-template-columns: 84px 1fr 36px; }
  .price { font-size: 40px; }
  .feature { position: relative; top: 0; }
  .stack-cards { gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
