/* Playthen landing page (/ and /vi/). Tokens follow SPEC.md section 9 ("light in the dark").
   Legal and support pages keep style.css. Fonts are self-hosted: the site makes no third-party requests. */

/* Familjen Grotesk and Google Sans Flex (SIL OFL), same subsets as style.css. */
@font-face {
  font-family: "Familjen Grotesk"; font-weight: 400 700; font-display: swap;
  src: url("/fonts/familjen-grotesk-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Familjen Grotesk"; font-weight: 400 700; font-display: swap;
  src: url("/fonts/familjen-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Familjen Grotesk"; font-weight: 400 700; font-display: swap;
  src: url("/fonts/familjen-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Google Sans Flex"; font-weight: 400 700; font-stretch: 100%; font-display: swap;
  src: url("/fonts/google-sans-flex-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Google Sans Flex"; font-weight: 400 700; font-stretch: 100%; font-display: swap;
  src: url("/fonts/google-sans-flex-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Google Sans Flex"; font-weight: 400 700; font-stretch: 100%; font-display: swap;
  src: url("/fonts/google-sans-flex-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  color-scheme: dark;
  --bg: #020204;
  --surface: #0B0B12;
  --elevated: rgba(255, 255, 255, 0.06);
  --control: rgba(255, 255, 255, 0.12);
  --glass-strong: rgba(255, 255, 255, 0.14);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text-primary: #F5F5F8;
  --text-secondary: #B8B8C6;
  --text-tertiary: #8D8DA2;
  --text-inverse: #020204;
  --accent: #7B5CFF;
  --accent-soft: #B5A3FF;
  --accent-deep: #6C3CFF;
  --accent-2: #A040F5;
  --old-clip: #6C6C80;
  --light-indigo: #3B3FD8;
  --light-violet: #7B5CFF;
  --light-magenta: #C14BFF;
  --light-ember: #FF6A3D;
  --light-blue: #2E6BFF;
  --pro: #FFF1B8; --pro-mid: #F6C453; --pro-deep: #C9851A; --pro-ink: #2A1A00;
  --font-display: "Familjen Grotesk", system-ui, sans-serif;
  --font-body: "Google Sans Flex", system-ui, sans-serif;
  --radius-lit: 24px;
  --radius-row: 18px;
  --radius-video: 16px;
  --gutter: 16px;
  --max: 1160px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-secondary);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: var(--accent-soft); text-underline-offset: 3px; }
a:hover { color: var(--text-primary); }
:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { margin: 0; color: var(--text-primary); font-family: var(--font-display); font-weight: 700; letter-spacing: -0.015em; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; padding: 10px 16px; background: var(--text-primary); color: var(--text-inverse); border-radius: 999px; }

/* ───────── Ambient sky: one soft violet glow, faint staves, drifting notes, sparkles ───────── */
.sky { position: absolute; inset: 0 0 auto 0; height: 1400px; pointer-events: none; overflow: hidden; z-index: 0; }
.sky::before {
  content: ""; position: absolute; left: 50%; top: -380px; width: 1400px; height: 1100px; transform: translateX(-50%);
  background:
    radial-gradient(closest-side, rgba(123, 92, 255, 0.34), transparent 70%),
    radial-gradient(40% 35% at 70% 60%, rgba(193, 75, 255, 0.16), transparent 70%);
  animation: breathe 9s ease-in-out infinite;
}
.sky::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 55%, var(--bg)); }
@keyframes breathe { 50% { opacity: 0.72; transform: translateX(-50%) scale(1.06); } }
.staff { position: absolute; left: -5%; width: 110%; height: 120px; opacity: 0.5; }
.staff path { fill: none; stroke: rgba(181, 163, 255, 0.11); stroke-width: 1; }
.staff-a { top: 120px; }
.staff-b { top: 760px; transform: scaleX(-1); opacity: 0.35; }
.note { position: absolute; color: var(--accent-soft); opacity: 0.5; animation: drift 14s ease-in-out infinite; }
.note svg { width: 100%; height: 100%; display: block; }
.note.glow { opacity: 0.85; filter: drop-shadow(0 0 10px rgba(123, 92, 255, 0.9)); }
.note.far { opacity: 0.25; filter: blur(1.5px); }
@keyframes drift {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-22px) rotate(6deg); }
}
@media (max-width: 979px) { .note.hide-sm { display: none; } }
.spark { position: absolute; width: 14px; height: 14px; color: #fff; animation: twinkle 4s ease-in-out infinite; }
.spark svg { width: 100%; height: 100%; display: block; }
@keyframes twinkle { 0%, 100% { opacity: 0.15; transform: scale(0.6); } 50% { opacity: 0.9; transform: scale(1); } }

/* ───────── Bar ───────── */
.bar { position: sticky; top: 0; z-index: 50; transition: background 0.3s ease, box-shadow 0.3s ease; }
.bar.is-scrolled {
  background: rgba(2, 2, 4, 0.62);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  box-shadow: 0 1px 0 var(--line);
}
.bar .wrap { display: flex; align-items: center; gap: 12px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text-primary); text-decoration: none; font: 700 20px/1 var(--font-display); }
.brand:hover { color: var(--text-primary); }
.brand img { width: 30px; height: 30px; border-radius: 22.4%; box-shadow: 0 0 0 1px var(--line-strong), 0 0 18px rgba(123, 92, 255, 0.45); }
.bar nav { display: none; margin-left: 28px; gap: 4px; }
.bar nav a { padding: 10px 12px; border-radius: 999px; color: var(--text-secondary); text-decoration: none; font: 500 14px/1 var(--font-body); }
.bar nav a:hover { color: var(--text-primary); background: var(--elevated); }
.bar-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--elevated);
  color: var(--text-primary); font: 500 13px/1 var(--font-body); text-decoration: none;
}
.lang:hover { background: var(--control); color: var(--text-primary); }
@media (min-width: 900px) { .bar nav { display: flex; } }
@media (max-width: 479px) { .bar .btn-sm { display: none; } }

/* ───────── Buttons ───────── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 26px; text-decoration: none;
  font: 700 16px/1 var(--font-display); white-space: nowrap;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, background 0.25s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--text-primary); color: var(--text-inverse); box-shadow: 0 0 28px rgba(245, 245, 248, 0.18); }
.btn-primary:hover { background: #fff; color: var(--text-inverse); box-shadow: 0 0 40px rgba(245, 245, 248, 0.32); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* Official store badges (Apple and Google artwork, unaltered). Links live in landing.js (STORE_LINKS);
   an empty link shows "Coming soon" and dims the badge. */
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.badge-link { position: relative; display: inline-block; border-radius: 9px; line-height: 0; transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease; }
.badge-link img { height: 54px; width: auto; }
.badge-link:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -12px rgba(123, 92, 255, 0.9); }
.badge-link .soon {
  position: absolute; top: -10px; right: 10px; padding: 4px 9px; border-radius: 999px; line-height: 1;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent-2)); color: #fff; font-style: normal;
  font: 600 11px/1 var(--font-body); box-shadow: 0 0 14px rgba(123, 92, 255, 0.6);
}
.badge-link[aria-disabled="true"] { cursor: default; }
.badge-link[aria-disabled="true"]:hover { transform: none; box-shadow: none; }
.badge-link[aria-disabled="true"] img { opacity: 0.6; }
.badge-link.is-live .soon { display: none; }

/* Devices: iPad behind, iPhone Duo and iPhone in front */
.devices { position: relative; max-width: 1000px; margin: 48px auto 0; aspect-ratio: 1000 / 600; }
.devices::after { content: ""; position: absolute; inset: auto calc(var(--gutter) * -1) -2px; height: 24%; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.dev { position: absolute; height: auto; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 40px rgba(123, 92, 255, 0.35)); transition: transform 0.6s var(--ease-out); }
.dev-ipad { left: 13%; top: 0; width: 74%; }
.dev-duo { left: 0; bottom: 0; width: 25%; }
.dev-iphone { right: 1%; bottom: 0; width: 17%; }
.devices:hover .dev-duo { transform: translate(-6px, -6px) rotate(-1.5deg); }
.devices:hover .dev-iphone { transform: translate(6px, -6px) rotate(1.5deg); }
.devices + .chips { margin-top: 18px; }

/* ───────── Hero ───────── */
.hero { position: relative; z-index: 1; padding: 28px 0 72px; }
.hero { padding: 28px 0 32px; text-align: center; }
@media (min-width: 980px) { .hero { padding: 40px 0 40px; } }
.hero .lead { margin-left: auto; margin-right: auto; }
.hero .stores, .hero .trust { justify-content: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px;
  background: var(--elevated); border: 1px solid var(--line-strong); color: var(--text-primary);
  font: 500 13px/1 var(--font-body);
}
.bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.bars i { width: 2.5px; border-radius: 2px; background: currentColor; height: 100%; transform-origin: bottom; }
.bars i:nth-child(1) { transform: scaleY(0.45); } .bars i:nth-child(3) { transform: scaleY(0.65); } .bars i:nth-child(4) { transform: scaleY(0.85); }
.is-live-bars i { animation: bounce 0.9s ease-in-out infinite; }
.is-live-bars i:nth-child(2) { animation-delay: -0.3s; } .is-live-bars i:nth-child(3) { animation-delay: -0.6s; } .is-live-bars i:nth-child(4) { animation-delay: -0.15s; }
@keyframes bounce { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }
.pill .bars { color: var(--accent-soft); }

.hero h1 { margin-top: 22px; font-size: clamp(46px, 8.4vw, 84px); line-height: 0.98; letter-spacing: -0.03em; }
.shine {
  background: linear-gradient(100deg, var(--accent-soft) 0%, #fff 22%, var(--accent-soft) 40%, #D9A8FF 70%, var(--accent-soft) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 26px rgba(123, 92, 255, 0.55));
  animation: shine 7s linear infinite;
}
@keyframes shine { to { background-position: -250% 0; } }
.hero .lead { margin-top: 22px; max-width: 34em; font-size: clamp(17px, 2vw, 19px); line-height: 1.55; }
.hero .stores { margin-top: 32px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; color: var(--text-tertiary); font: 500 13px/1.2 var(--font-body); }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 15px; height: 15px; color: var(--accent-soft); }

/* Hero screens: a fan of five app screens (exported from Figma "v2 · App Store") */
.screens { position: relative; width: 100%; max-width: 1120px; margin: 44px auto 0; aspect-ratio: 1120 / 500; clip-path: inset(-60% -40% 0 -40%); }
.screens::after { content: ""; position: absolute; inset: auto calc(var(--gutter) * -1) -2px; height: 30%; background: linear-gradient(transparent, var(--bg) 85%); pointer-events: none; z-index: 6; }
.screens::before {
  content: ""; position: absolute; left: 20%; right: 20%; top: 8%; bottom: 0; border-radius: 50%; z-index: 0;
  background: radial-gradient(closest-side, rgba(123, 92, 255, 0.55), transparent); filter: blur(40px);
}
.phone { position: absolute; bottom: 2%; height: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.75)); transform-origin: 50% 100%; }
.phone.p3 { left: 38%; width: 24%; bottom: -3%; z-index: 5; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 50px rgba(123, 92, 255, 0.45)); }
.phone.p2 { left: 20.5%; width: 20%; z-index: 4; transform: rotate(-6deg); }
.phone.p4 { right: 20.5%; width: 20%; z-index: 4; transform: rotate(6deg); }
.phone.p1 { left: 4%; width: 18%; bottom: -8%; z-index: 3; transform: rotate(-12deg); filter: brightness(0.75) drop-shadow(0 30px 40px rgba(0, 0, 0, 0.75)); }
.phone.p5 { right: 4%; width: 18%; bottom: -8%; z-index: 3; transform: rotate(12deg); filter: brightness(0.75) drop-shadow(0 30px 40px rgba(0, 0, 0, 0.75)); }
.js .phone { animation: phone-in 1.1s var(--ease-out) both; }
.js .phone.p3 { animation-delay: 0.15s; } .js .phone.p2, .js .phone.p4 { animation-delay: 0.3s; } .js .phone.p1, .js .phone.p5 { animation-delay: 0.45s; }
@keyframes phone-in { from { opacity: 0; translate: 0 80px; } }

.float {
  position: absolute; z-index: 7; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 16px; color: var(--text-primary); font: 500 13px/1.1 var(--font-body);
  background: rgba(18, 16, 30, 0.78); border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 18px 40px -16px rgba(0, 0, 0, 0.9);
  animation: bob 6s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(-8px); } }
.float-days { top: 6%; right: 25%; background: linear-gradient(135deg, var(--accent-deep), var(--accent-2)); border-color: transparent; box-shadow: 0 0 30px rgba(123, 92, 255, 0.7); border-radius: 999px; }
.float-days::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.float-pauses { left: 28%; top: 30%; display: grid; gap: 4px; padding: 12px 16px; animation-delay: -3s; }
.float-pauses small { color: var(--text-tertiary); font: 600 10px/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; }
.float-pauses strong { font: 600 30px/1 var(--font-body); font-variant-numeric: tabular-nums; color: var(--text-tertiary); }
.float-pauses strong em { font-style: normal; color: var(--accent-soft); text-shadow: 0 0 16px rgba(123, 92, 255, 0.9); }
.float-pauses strong i { font-style: normal; margin: 0 6px; font-size: 20px; vertical-align: 3px; }
.float-kept { left: 9%; top: 26%; animation-delay: -1.5s; }
.float-kept .ok { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-deep), var(--accent-2)); }
.float-kept .ok svg { width: 14px; height: 14px; }
.float-kept small { display: block; margin-top: 2px; color: var(--text-tertiary); font-size: 11px; }
@media (max-width: 760px) {
  .screens { aspect-ratio: 360 / 330; margin-top: 40px; overflow-x: clip; }
  .phone.p1, .phone.p5, .float-kept { display: none; }
  .phone.p3 { left: 29%; width: 42%; bottom: -2%; }
  .phone.p2 { left: 0; width: 36%; bottom: -6%; }
  .phone.p4 { right: 0; width: 36%; bottom: -6%; }
  .float-days { top: 2%; right: 2%; }
  .float-pauses { left: 1%; top: 30%; }
}

/* ───────── Instrument marquee ───────── */
.marquee { position: relative; z-index: 1; overflow: hidden; padding: 22px 0; border-block: 1px solid var(--line); -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 44px; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 44px; color: var(--text-tertiary); font: 600 clamp(20px, 3vw, 28px)/1 var(--font-display); white-space: nowrap; }
.marquee-track span::after { content: "♪"; color: var(--accent); font-size: 0.8em; text-shadow: 0 0 12px rgba(123, 92, 255, 0.9); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ───────── Sections ───────── */
section { position: relative; z-index: 1; }
.section { padding: 96px 0; }
@media (min-width: 980px) { .section { padding: 132px 0; } }
.eyebrow { color: var(--accent-soft); font: 600 12px/1.2 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; }
.h2 { margin-top: 14px; font-size: clamp(36px, 5.4vw, 60px); line-height: 1.02; letter-spacing: -0.028em; }
.h2 em { font-style: normal; color: var(--accent-soft); text-shadow: 0 0 30px rgba(123, 92, 255, 0.6); }
.sub { margin-top: 18px; max-width: 36em; font-size: 18px; line-height: 1.55; }
.center { text-align: center; }
.center .sub { margin-left: auto; margin-right: auto; }

/* Steps */
.steps { display: grid; gap: 14px; margin-top: 48px; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.step { position: relative; overflow: hidden; padding: 28px 26px 30px; border-radius: var(--radius-lit); background: var(--surface); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; margin-bottom: 26px;
  font: 700 64px/0.8 var(--font-display); letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(181, 163, 255, 0.5);
}
.step h3 { font-size: 23px; line-height: 1.15; }
.step p { margin-top: 10px; }

/* Spotlight that follows the pointer on cards (set by landing.js). */
.glow-hover { --mx: 50%; --my: 0%; }
.glow-hover::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(123, 92, 255, 0.16), transparent 60%);
  transition: opacity 0.3s ease;
}
.glow-hover:hover::after { opacity: 1; }

/* Feature rows */
.feature { display: grid; gap: 36px; align-items: center; }
.feature + .feature { margin-top: 110px; }
@media (min-width: 940px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 72px; }
  .feature.flip .feature-media { order: -1; }
}
.points { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 16px; }
.points li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.points .ico {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px;
  background: rgba(123, 92, 255, 0.14); border: 1px solid rgba(181, 163, 255, 0.24); color: var(--accent-soft);
}
.points .ico svg { width: 18px; height: 18px; }
.points b { display: block; color: var(--text-primary); font: 600 17px/1.3 var(--font-display); }
.points span { display: block; margin-top: 2px; font-size: 15px; line-height: 1.5; }

.shot { position: relative; max-width: 500px; margin: 0 auto; }
.shot::before {
  content: ""; position: absolute; inset: 10% 6% 0; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(123, 92, 255, 0.4), transparent);
  filter: blur(30px);
}
.shot img {
  width: 100%; height: auto;
  -webkit-mask: radial-gradient(120% 90% at 50% 40%, #000 60%, transparent 90%);
  mask: radial-gradient(120% 90% at 50% 40%, #000 60%, transparent 90%);
}

/* Milestones: night → sunrise (SPEC 9 "Light") */
.milestones { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 12px; margin: 56px calc(var(--gutter) * -1) 0; padding: 18px var(--gutter) 30px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); scrollbar-width: none; }
.milestones::-webkit-scrollbar { display: none; }
.ms {
  --c: var(--light-indigo);
  position: relative; scroll-snap-align: start; min-height: 230px; padding: 20px 18px; border-radius: 22px;
  display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(110% 70% at 50% 118%, color-mix(in srgb, var(--c) 62%, transparent), transparent 70%),
    linear-gradient(to top, color-mix(in srgb, var(--c) 22%, transparent), transparent 65%),
    var(--surface);
  box-shadow: 0 24px 60px -26px var(--c);
  opacity: 0.55; transform: translateY(14px);
  transition: opacity 0.8s ease, transform 0.8s var(--ease-out);
}
.ms::before {
  content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(to top, color-mix(in srgb, var(--c) 85%, white 15%), rgba(255, 255, 255, 0.08) 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.ms.top {
  background:
    radial-gradient(110% 70% at 50% -18%, color-mix(in srgb, var(--c) 62%, transparent), transparent 70%),
    linear-gradient(to bottom, color-mix(in srgb, var(--c) 22%, transparent), transparent 65%),
    var(--surface);
}
.ms.top::before { background: linear-gradient(to bottom, color-mix(in srgb, var(--c) 85%, white 15%), rgba(255, 255, 255, 0.08) 60%); }
.ms-14 { --c: var(--light-violet); } .ms-30 { --c: var(--light-magenta); } .ms-90, .ms-365 { --c: var(--light-ember); }
.milestones.is-lit .ms { opacity: 1; transform: none; }
.milestones.is-lit .ms:nth-child(2) { transition-delay: 0.15s; }
.milestones.is-lit .ms:nth-child(3) { transition-delay: 0.3s; }
.milestones.is-lit .ms:nth-child(4) { transition-delay: 0.45s; }
.milestones.is-lit .ms:nth-child(5) { transition-delay: 0.6s; }
.ms small { color: var(--text-secondary); font: 600 11px/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; }
.ms b { display: block; margin-top: 8px; color: var(--text-primary); font: 700 34px/1 var(--font-display); letter-spacing: -0.02em; }
.ms p { color: var(--text-primary); font: 500 14px/1.4 var(--font-body); }
.sunrise { position: relative; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--light-indigo), var(--light-violet), var(--light-magenta), var(--light-ember)); box-shadow: 0 0 18px rgba(193, 75, 255, 0.7); transform-origin: left; transform: scaleX(0); transition: transform 1.6s var(--ease-out) 0.2s; }
.milestones.is-lit + .sunrise { transform: scaleX(1); }
.sunrise-labels { display: flex; justify-content: space-between; margin-top: 12px; color: var(--text-tertiary); font: 500 13px/1 var(--font-body); }

/* Instruments */
.instruments { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 48px; }
@media (min-width: 760px) { .instruments { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.inst {
  --c: var(--light-magenta);
  position: relative; overflow: hidden; margin: 0; aspect-ratio: 4 / 4.4; border-radius: var(--radius-row);
  background: var(--surface); border: 1px solid var(--line); isolation: isolate;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease, border-color 0.4s ease;
}
.inst img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: grayscale(0.25) brightness(0.8); transition: transform 0.8s var(--ease-out), filter 0.5s ease; }
.inst::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, color-mix(in srgb, var(--c) 55%, rgba(2, 2, 4, 0.9)) 0%, rgba(2, 2, 4, 0.35) 48%, transparent 75%);
}
.inst:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 60%, transparent); box-shadow: 0 24px 50px -22px var(--c); }
.inst:hover img { transform: scale(1.06); filter: none; }
.inst figcaption { position: absolute; left: 16px; right: 16px; bottom: 14px; }
.inst b { display: block; color: var(--text-primary); font: 700 20px/1.1 var(--font-display); }
.inst span { display: block; margin-top: 5px; color: rgba(245, 245, 248, 0.8); font: 600 11px/1.2 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; }
.inst-piano { --c: var(--light-violet); } .inst-guitar { --c: var(--light-ember); }
.inst-other { background: radial-gradient(90% 70% at 50% 110%, rgba(193, 75, 255, 0.55), transparent 70%), var(--surface); }
.inst-other::before { display: none; }
.inst-other .big-note { position: absolute; left: 50%; top: 40%; width: 56px; height: 56px; transform: translate(-50%, -50%); color: #fff; filter: drop-shadow(0 0 18px rgba(193, 75, 255, 0.9)); }
.inst-note { margin-top: 22px; text-align: center; color: var(--text-tertiary); font-size: 14px; }

/* Lit pair (share, reminders) */
.duo { display: grid; gap: 18px; margin-top: 48px; }
@media (min-width: 940px) { .duo { grid-template-columns: 1fr 1fr; } }
.lit {
  position: relative; overflow: hidden; padding: 32px 28px 0; border-radius: 28px;
  background:
    radial-gradient(120% 60% at 50% 112%, rgba(123, 92, 255, 0.36), transparent 70%),
    linear-gradient(to top, rgba(123, 92, 255, 0.12), transparent 60%),
    var(--surface);
}
.lit::before {
  content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(to top, rgba(181, 163, 255, 0.7), rgba(255, 255, 255, 0.07) 55%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.lit h3 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.05; letter-spacing: -0.02em; }
.lit p { margin-top: 12px; max-width: 30em; }
.lit .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: var(--elevated); border: 1px solid var(--line-strong); color: var(--text-primary); font: 500 13px/1 var(--font-body); }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-soft); box-shadow: 0 0 8px var(--accent); }

/* Share and reminders: one wide lit card each, text beside an HTML visual */
.rows { display: grid; gap: 18px; }
.row-card { display: grid; gap: 36px; align-items: center; padding: 34px 22px 30px; }
@media (min-width: 940px) {
  .row-card { grid-template-columns: 0.9fr 1.1fr; gap: 48px; padding: 56px 56px; }
  .row-card.flip .row-visual { order: -1; }
}
.row-visual { position: relative; display: flex; justify-content: center; }

/* Share visual: 9:16 export preview + what happens next */
.share-vis { display: flex; align-items: center; justify-content: center; gap: 20px; width: 100%; }
.export {
  position: relative; flex: none; width: 216px; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 22px; background: #000;
  box-shadow: 0 0 0 1.5px var(--accent-soft), 0 30px 60px -20px rgba(123, 92, 255, 0.9);
  transform: rotate(-3deg);
}
.export .half { position: absolute; left: 0; right: 0; height: 50%; overflow: hidden; }
.export .half img { width: 100%; height: 100%; object-fit: cover; }
.export .h1 { top: 0; } .export .h2b { bottom: 0; }
.export .h1 img { filter: grayscale(1) brightness(0.7); }
.export .scrim { position: absolute; inset: 0 0 auto; height: 34%; background: linear-gradient(rgba(2, 2, 4, 0.85), rgba(2, 2, 4, 0.5) 50%, transparent); }
.export header { position: absolute; top: 12px; left: 12px; right: 12px; }
.export header b { display: block; color: #fff; font: 700 15px/1.15 var(--font-display); }
.export header small { color: rgba(245, 245, 248, 0.85); font: 500 10px/1.3 var(--font-body); }
.export .lbl {
  position: absolute; left: 9px; display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: 999px;
  font: 500 10px/1 var(--font-body); color: #fff;
}
.export .lbl .bars { height: 8px; } .export .lbl .bars i { width: 1.5px; }
.export .lbl.on { top: calc(50% - 30px); background: linear-gradient(135deg, var(--accent-deep), var(--accent-2)); }
.export .lbl.off { bottom: 10px; background: rgba(255, 255, 255, 0.14); border: 1px solid var(--line-strong); }
.export .pbar { position: absolute; left: 0; top: calc(50% - 3px); height: 3px; width: 62%; background: var(--accent-soft); box-shadow: 0 0 8px var(--accent); }
.export .mark { position: absolute; right: 9px; bottom: 13px; display: inline-flex; align-items: center; gap: 4px; color: #fff; font: 500 9px/1 var(--font-body); }
.export .mark img { width: 11px; height: 11px; border-radius: 3px; }

.share-side { display: grid; gap: 12px; justify-items: start; min-width: 0; }
.bubble { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 18px; background: rgba(18, 16, 30, 0.8); border: 1px solid var(--line-strong); color: var(--text-primary); font: 500 14px/1.2 var(--font-body); box-shadow: 0 16px 36px -18px rgba(0, 0, 0, 0.9); }
.bubble .av { width: 30px; height: 30px; font-size: 13px; }
.seg-mini { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--elevated); border: 1px solid var(--line); }
.seg-mini span { padding: 7px 12px; border-radius: 999px; color: var(--text-secondary); font: 600 12px/1 var(--font-body); }
.seg-mini span:first-child { background: var(--glass-strong); color: var(--text-primary); }
.share-with { padding: 14px 14px 12px; border-radius: 18px; background: rgba(11, 11, 18, 0.9); border: 1px solid var(--line); }
.share-with p { margin-bottom: 10px; color: var(--text-tertiary); font: 600 10px/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; }
.share-with ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; }
.share-with li { display: grid; justify-items: center; gap: 2px; width: 54px; text-align: center; color: var(--text-primary); font: 500 11px/1.2 var(--font-body); }
.share-with li small { color: var(--text-tertiary); font-size: 10px; }
.av { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 4px; border-radius: 50%; color: #fff; font: 700 16px/1 var(--font-display); background: linear-gradient(135deg, var(--accent-deep), var(--accent-2)); overflow: hidden; }
.av.pink { background: linear-gradient(135deg, #C14BFF, #FF5C9A); }
.av.glass { background: var(--control); border: 1px solid var(--line-strong); }
.av.glass svg { width: 18px; height: 18px; }
.av.story { padding: 2px; background: linear-gradient(135deg, var(--accent-soft), var(--accent-2)); }
.av.story img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--surface); }
@media (max-width: 560px) {
  .share-vis { flex-direction: column; }
  .share-side { justify-items: center; }
  .export { width: 200px; }
}

/* Reminders visual: the Day 1 saved card */
.saved {
  position: relative; width: 100%; max-width: 380px; padding: 22px; border-radius: 26px;
  background:
    radial-gradient(110% 60% at 50% -12%, rgba(59, 63, 216, 0.55), transparent 70%),
    linear-gradient(to bottom, rgba(59, 63, 216, 0.16), transparent 60%),
    var(--surface);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 70px -30px rgba(59, 63, 216, 0.9);
}
.saved > small { color: var(--text-tertiary); font: 600 10px/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; }
.saved h4 { margin: 8px 0 2px; color: var(--text-primary); font: 700 28px/1.05 var(--font-display); letter-spacing: -0.02em; }
.saved h4 em { font-style: normal; color: var(--accent-soft); text-shadow: 0 0 20px rgba(123, 92, 255, 0.7); }
.saved > p { color: var(--text-secondary); font: 500 13px/1.3 var(--font-body); }
.first-clip { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px; border-radius: 18px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.first-clip img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; filter: grayscale(1) brightness(0.8); }
.first-clip small { display: block; color: var(--text-tertiary); font: 600 10px/1 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; }
.first-clip b { display: block; margin-top: 4px; color: var(--text-primary); font: 600 26px/1 var(--font-body); font-variant-numeric: tabular-nums; }
.path { position: relative; display: flex; justify-content: space-between; margin-top: 18px; padding-top: 16px; }
.path::before { content: ""; position: absolute; top: 5px; left: 6px; right: 6px; height: 2px; background: linear-gradient(90deg, var(--accent-soft) 0 22%, var(--line-strong) 22%); }
.path span { position: relative; display: grid; gap: 2px; color: var(--text-primary); font: 600 12px/1.2 var(--font-body); }
.path span::before { content: ""; position: absolute; top: -16px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong); }
.path span:first-child::before { background: var(--accent-soft); border-color: var(--accent-soft); box-shadow: 0 0 10px var(--accent); }
.path span:nth-child(2)::before { border-color: var(--accent-soft); left: calc(50% - 6px); }
.path span:nth-child(2) { text-align: center; }
.path span:last-child { text-align: right; }
.path span:last-child::before { right: 0; }
.path small { color: var(--text-tertiary); font: 500 11px/1.2 var(--font-body); }
.saved-rows { margin-top: 16px; border-radius: 18px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.saved-rows div { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 12px 14px; }
.saved-rows div + div { border-top: 1px solid var(--line); }
.saved-rows svg { width: 18px; height: 18px; margin-top: 1px; color: var(--accent-soft); }
.saved-rows b { display: block; color: var(--text-primary); font: 600 13px/1.3 var(--font-body); }
.saved-rows span { display: block; color: var(--text-tertiary); font: 500 12px/1.35 var(--font-body); }
.saved .btn { width: 100%; min-height: 46px; margin-top: 16px; font-size: 15px; }
.saved .btn-ghost { margin-top: 8px; background: var(--elevated); border: 1px solid var(--line-strong); color: var(--text-primary); }
.float-chip { position: absolute; left: 22px; bottom: -16px; }
.float-ms {
  position: absolute; right: -26px; top: 36px; width: 104px; padding: 12px; border-radius: 18px; transform: rotate(8deg);
  background: radial-gradient(110% 70% at 50% 118%, rgba(123, 92, 255, 0.7), transparent 70%), var(--surface);
  box-shadow: 0 0 0 1px rgba(181, 163, 255, 0.4), 0 20px 40px -16px rgba(123, 92, 255, 0.9);
  color: var(--text-primary); font: 700 18px/1 var(--font-display);
}
.float-ms small { display: block; margin-top: 30px; color: var(--accent-soft); font: 600 9px/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; }
@media (max-width: 560px) { .float-chip { left: 12px; } .float-ms { right: -4px; top: 60px; } }
.row-card.flip .row-visual { padding-bottom: 18px; }

/* Privacy */
.privacy-grid { display: grid; gap: 14px; margin-top: 48px; }
@media (min-width: 760px) { .privacy-grid { grid-template-columns: 1fr 1fr; } }
.priv {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start;
  padding: 24px; border-radius: var(--radius-lit);
  background: linear-gradient(100deg, rgba(123, 92, 255, 0.16), transparent 55%), var(--surface);
  border: 1px solid var(--line);
}
.priv .ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--elevated); border: 1px solid var(--line-strong); color: var(--text-primary); }
.priv .ico svg { width: 22px; height: 22px; }
.priv b { display: block; color: var(--text-primary); font: 600 19px/1.25 var(--font-display); }
.priv p { margin-top: 6px; font-size: 15px; }
.site-note { margin-top: 24px; color: var(--text-tertiary); font-size: 14px; text-align: center; }
.privacy-layout { display: grid; gap: 32px; align-items: center; margin-top: 48px; }
.privacy-layout .privacy-grid { margin-top: 0; }
@media (min-width: 980px) {
  .privacy-layout { grid-template-columns: 1.05fr 1fr; gap: 48px; }
  .privacy-layout .privacy-grid { grid-template-columns: 1fr; }
}

/* Showcase: the three-phone fan from the Figma intro poster */
.showcase { position: relative; max-width: 820px; margin: 40px auto 0; }
.showcase::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: 20%; bottom: 0; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(123, 92, 255, 0.5), transparent); filter: blur(40px);
}
.showcase img {
  width: 100%; height: auto;
  -webkit-mask: linear-gradient(to bottom, transparent 0, #000 12%, #000 72%, transparent), linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-composite: source-in;
  mask: linear-gradient(to bottom, transparent 0, #000 12%, #000 72%, transparent), linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-composite: intersect;
}
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }

/* Plans */
.plans { display: grid; gap: 16px; max-width: 900px; margin: 48px auto 0; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { position: relative; padding: 30px 28px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); }
.plan h3 { display: flex; align-items: center; gap: 10px; font-size: 26px; }
.plan > p { margin-top: 6px; color: var(--text-tertiary); font-size: 15px; }
.plan ul { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.plan li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--text-primary); font-size: 15px; line-height: 1.45; }
.plan li svg { width: 18px; height: 18px; margin-top: 2px; color: var(--accent-soft); }
.plan-pro {
  background:
    radial-gradient(110% 60% at 50% 115%, rgba(123, 92, 255, 0.42), transparent 70%),
    linear-gradient(to top, rgba(123, 92, 255, 0.14), transparent 60%),
    var(--surface);
  border-color: transparent;
  box-shadow: 0 0 0 1.5px rgba(181, 163, 255, 0.6), 0 30px 80px -30px rgba(123, 92, 255, 0.9);
}
.badge-pro {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px; border-radius: 999px;
  background: linear-gradient(135deg, var(--pro), var(--pro-mid) 45%, var(--pro-deep)); color: var(--pro-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  font: 600 11px/1 var(--font-body); letter-spacing: 0.04em;
}
.badge-pro svg { width: 12px; height: 12px; }
.plans-note { margin-top: 22px; text-align: center; color: var(--text-tertiary); font-size: 14px; }

/* Final call */
.final { padding: 120px 0 110px; text-align: center; overflow: hidden; }
.final::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 1100px; height: 700px; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(123, 92, 255, 0.32), transparent 72%);
}
.final .icon { width: 96px; height: 96px; margin: 0 auto; border-radius: 22.4%; box-shadow: 0 0 0 1px var(--line-strong), 0 20px 60px -10px rgba(123, 92, 255, 0.9); animation: bob 6s ease-in-out infinite; }
.final .h2 { margin-top: 30px; }
.final .sub { margin-left: auto; margin-right: auto; }
.final .stores { justify-content: center; margin-top: 36px; }
.final .contact { margin-top: 30px; color: var(--text-tertiary); font-size: 15px; }

/* Footer */
.foot { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--text-tertiary); font: 500 13px/1.6 var(--font-body); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot a { color: var(--text-secondary); text-decoration: none; }
.foot a:hover { color: var(--text-primary); }
.foot .brand { font-size: 17px; color: var(--text-primary); }
.foot .brand img { width: 24px; height: 24px; box-shadow: 0 0 0 1px var(--line-strong); }

/* Reveal on scroll (only when landing.js runs: it adds .js to <html>) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s ease, transform 0.9s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: 0.1s; } .js .reveal.d2 { transition-delay: 0.2s; } .js .reveal.d3 { transition-delay: 0.3s; }
/* The hero is above the fold: it rises on load instead of waiting for the observer. */
.js .hero .reveal { opacity: 1; transform: none; transition: none; animation: rise 0.9s var(--ease-out) both; }
.js .hero .reveal.d1 { animation-delay: 0.08s; } .js .hero .reveal.d2 { animation-delay: 0.16s; } .js .hero .reveal.d3 { animation-delay: 0.24s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
html:not(.js) .ms { opacity: 1; transform: none; }
html:not(.js) .sunrise { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js .reveal, .ms { opacity: 1; transform: none; }
  .sunrise { transform: none; }
  .marquee-track { flex-wrap: wrap; width: auto; justify-content: center; row-gap: 12px; padding: 0 var(--gutter); }
  .marquee-track span[aria-hidden] { display: none; }
}
