/* Copyright (c) 2026 Movesong (movesong.com). All rights reserved. See LICENSE.md. */
/* Movesong website: the landing page, privacy and terms. Same tokens as the app (DESIGN.md): Ink and grain. */
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 400; font-display: swap; src: url('/fonts/bricolage-grotesque-v9-latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 600; font-display: swap; src: url('/fonts/bricolage-grotesque-v9-latin-600.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 800; font-display: swap; src: url('/fonts/bricolage-grotesque-v9-latin-800.woff2') format('woff2'); }

:root {
  --ink: #0C0C0E; --ink-deep: #060607; --raised: #17171B;
  --text: #F5F3EE; --text-2: #D8D4CC; --text-3: #A8A49C;
  --line: rgba(245, 243, 238, 0.11); --surface: rgba(245, 243, 238, 0.06);
  --amber: #F2B562;
  --settle: #7FB6FF; --fog: #C3CADB; --let: #FF7A6B; --sun: #FFC659; --lightning: #C77DFF; --still: #8FD3C7;
  --font: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max: 1120px; --r-lg: 22px; --r-md: 16px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ''; position: fixed; inset: 0; background: url('/icons/grain.png') repeat; background-size: 160px; opacity: 0.5; pointer-events: none; z-index: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; border-radius: 6px; }
img, video { max-width: 100%; display: block; }
.wrap { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.glows { position: absolute; left: 0; right: 0; top: 0; height: 1400px; overflow: hidden; pointer-events: none; z-index: 0; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.32; pointer-events: none; z-index: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: calc(18px + env(safe-area-inset-top, 0px)) 18px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.brand svg { width: 32px; height: 32px; }
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--text); color: var(--ink); font-weight: 800; font-size: 17px; text-decoration: none; transition: transform 150ms ease; }
.pill:hover { transform: translateY(-1px); }
.pill.small { min-height: 44px; padding: 0 18px; font-size: 15px; }
.pill.ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line); }

/* ---------- the page: one idea per screen ---------- */
.eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
h1 { margin: 0; font-size: clamp(56px, 10vw, 128px); line-height: 0.95; font-weight: 800; letter-spacing: -0.04em; text-wrap: balance; }
h2 { margin: 0; font-size: clamp(36px, 5.4vw, 68px); line-height: 1; font-weight: 800; letter-spacing: -0.03em; text-wrap: balance; }
.lede { margin: 20px 0 0; max-width: 28em; font-size: clamp(19px, 1.9vw, 23px); line-height: 1.45; color: var(--text-2); text-wrap: pretty; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
section { position: relative; padding-block: clamp(72px, 12vw, 140px); }

/* phones: real screenshots in a simple frame */
.phone { position: relative; width: 100%; max-width: 320px; aspect-ratio: 585 / 1266; border-radius: 42px; overflow: hidden; border: 1px solid rgba(245, 243, 238, 0.16); background: var(--ink-deep); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); }
.phone img, .phone video { width: 100%; height: 100%; object-fit: cover; }
/* The month video is 9:16, wider than a screenshot: its frame takes the video's shape so nothing is cropped. */
.phone.film { aspect-ratio: 9 / 16; }
.phone.film video { object-fit: contain; }
.film-play { position: absolute; left: 50%; top: 74%; transform: translate(-50%, -50%); height: 56px; padding: 0 26px 0 20px; border: 0; border-radius: 999px; background: rgba(245, 243, 238, 0.95); color: var(--ink); display: flex; align-items: center; gap: 8px; font: inherit; font-size: 17px; font-weight: 800; cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }
.film-play[hidden] { display: none; }
.film-play svg { width: 22px; height: 22px; }
main video { cursor: pointer; }

/* the opening: centered, the phone rising under it */
.open { text-align: center; padding-block: clamp(40px, 8vw, 96px) 0; }
.open .lede, .open .ctas { margin-inline: auto; justify-content: center; }
.hero-phone { margin: clamp(48px, 7vw, 80px) auto 0; max-width: 360px; }

/* who it's for: big quiet lines, then the one loud one */
.manifesto { text-align: center; }
.manifesto .line { margin: 0 auto 10px; max-width: 20em; text-wrap: balance; font-size: clamp(24px, 3.2vw, 40px); line-height: 1.2; font-weight: 600; letter-spacing: -0.015em; color: var(--text-3); }
.manifesto .for { margin: 36px 0 0; font-size: clamp(18px, 1.8vw, 22px); color: var(--text-2); }
.manifesto .big { margin-top: 18px; font-size: clamp(48px, 8vw, 104px); line-height: 0.95; letter-spacing: -0.04em; }

/* a moment: words on one side, the picture on the other; alternating */
.moment { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.moment > .phone, .moment > .loop { justify-self: center; }
.moment.flip > .copy { order: 2; }
.loop { width: 100%; max-width: 440px; aspect-ratio: 1; border-radius: 36px; overflow: hidden; border: 1px solid rgba(245, 243, 238, 0.12); background: var(--ink-deep); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.loop { position: relative; }
.loop video { width: 100%; height: 100%; object-fit: cover; }
.loop .film-play { top: 88%; height: 48px; font-size: 16px; }

/* Be still: five sounds to tap and hear */
.sounds { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; max-width: 460px; }
.snd { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0; border: 0; background: none; color: var(--text-2); font: inherit; cursor: pointer; }
.snd .art { position: relative; width: 100%; max-width: 76px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 0 0 1px rgba(245, 243, 238, 0.12); transition: box-shadow 200ms ease, transform 200ms ease; }
.snd:hover .art { transform: scale(1.04); }
.snd[aria-pressed="true"] .art { box-shadow: 0 0 0 2px var(--still), 0 0 28px rgba(143, 211, 199, 0.45); }
.snd .pp { width: 34%; height: 34%; fill: rgba(245, 243, 238, 0.92); filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.5)); }
.snd .i-pause, .snd[aria-pressed="true"] .i-play { display: none; }
.snd[aria-pressed="true"] .i-pause { display: inline; }
.snd .nm { font-size: 13px; line-height: 1.25; text-align: center; }
.snd[aria-pressed="true"] .nm { color: var(--text); }
.art-warm { background: radial-gradient(circle at 30% 30%, #D29A5A, #4A2E1E 72%); }
.art-rain { background: radial-gradient(circle at 70% 25%, #7D9DB6, #16202C 72%); }
.art-sky { background: radial-gradient(circle at 50% 18%, #C3DCF4, #2B3F66 76%); }
.art-space { background: radial-gradient(circle at 72% 28%, #E9E4FF 0, #8A7BD8 6%, #21173F 38%, #07060E 74%); }
.art-water { background: radial-gradient(circle at 50% 0%, #6FC4C6, #10464F 55%, #061A20 85%); }

/* the promise and the close */
.promise, .close { text-align: center; }
.promise .lede, .close .ctas { margin-inline: auto; justify-content: center; }
.close .mark-big { width: 88px; height: 88px; margin: 0 auto 28px; display: block; }
.close h2 { max-width: 12em; margin-inline: auto; }

footer { position: relative; z-index: 1; border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); font-size: 15px; color: var(--text-3); }
footer nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
footer nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; text-decoration: none; color: var(--text-2); }
footer .fine { display: flex; flex-direction: column; gap: 4px; }
footer .fine a { color: var(--text-2); text-underline-offset: 3px; }
footer a:hover { color: var(--text); text-decoration: underline; }

/* legal pages */
.doc { max-width: 680px; padding-block: 32px 72px; }
.doc h1 { font-size: clamp(40px, 6vw, 60px); }
.doc h2 { margin: 36px 0 8px; font-size: 22px; letter-spacing: -0.01em; }
.doc p { margin: 0 0 12px; color: var(--text-2); }
.doc .lede { font-size: 19px; }
.doc .meta { margin-top: 36px; font-size: 14px; color: var(--text-3); }

/* legal pages keep simple sizes */
.doc h1 { font-size: clamp(40px, 6vw, 60px); line-height: 1; letter-spacing: -0.03em; }

/* Fade in on scroll (index.html adds .motion only when motion is welcome). */
.motion .reveal { opacity: 0; transform: translateY(28px); transition: opacity 900ms cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0ms), transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0ms); will-change: opacity, transform; }
.motion .reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .moment { grid-template-columns: minmax(0, 1fr); gap: 40px; text-align: center; }
  .moment.flip > .copy { order: 0; }
  .moment .lede { margin-inline: auto; }
  .phone { max-width: 280px; }
  .hero-phone { max-width: 300px; }
  .loop { max-width: 340px; }
  .sounds { margin-inline: auto; gap: 8px; }
  .snd .nm { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .pill { transition: none; } .snd .art { transition: none; } }
