/* ============================================================
   LOOPIN — landing page
   Dark, minimal, app-focused. Google Sans Flex.
   ============================================================ */

:root {
  /* canvas */
  --bg:        #0A0A0B;
  --bg-2:      #100F12;
  --surface:   #161519;
  --surface-2: #1E1D22;
  --line:      rgba(255, 255, 255, 0.08);
  --line-2:    rgba(255, 255, 255, 0.14);

  /* ink */
  --ink:       #F4F3F1;
  --ink-soft:  rgba(244, 243, 241, 0.62);
  --ink-faint: rgba(244, 243, 241, 0.40);

  /* monochrome "accent" — light on dark, no colour */
  --accent:    #F4F3F1;
  --accent-2:  rgba(244, 243, 241, 0.55);
  --accent-grad: linear-gradient(180deg, #FFFFFF, #BEBEC4);
  --accent-soft: rgba(255, 255, 255, 0.09);

  --radius:    18px;
  --radius-lg: 28px;
  --maxw:      1120px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);

  --font: "Google Sans Flex", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* semantic status colors — canonical values chosen from mastering's
     existing usage (most instances of each role today). Consolidates
     several near-duplicate one-off hex values that had crept in across
     pages for the same meaning. */
  --success: #5fcf80;
  --live:    #5fcf80;
  --record:  #ff4f4f;
  --error:   #F0B6B6;

  /* hero/page-heading convention — weight and tracking only; each page's
     own clamp() size is left as-is since hero sizes can reasonably differ
     by page purpose. */
  --h1-weight:   500;
  --h1-tracking: -0.04em;

  /* spacing scale — available for new/touched work, not a mandate to
     retrofit every existing section padding. */
  --space-sm:  32px;
  --space-md:  56px;
  --space-lg:  80px;
  --space-xl:  100px;
  --space-xxl: 130px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ───────── shared type ───────── */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 22px;
}

.h2 {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.big {
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;            /* split multi-line statements into even lines */
}
.big--muted { color: var(--ink-faint); }

.section-head { max-width: 640px; margin-bottom: 64px; }

/* ───────── buttons ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-size: 0.98rem;
  font-weight: 500;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 13px 22px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn--sm { padding: 9px 18px; font-size: 0.9rem; }

.btn--ghost { color: var(--ink-soft); }
.btn--ghost:hover { color: var(--ink); border-color: var(--ink-soft); }
/* circular "Play video" CTA next to the App Store badge */
.play-cta { display: inline-flex; align-items: center; gap: 12px; color: var(--ink-soft); transition: color .2s var(--ease); }
.play-cta:hover { color: var(--ink); }
.play-cta__circle {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-2); color: var(--ink);
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}
.play-cta:hover .play-cta__circle { transform: scale(1.06); background: rgba(255,255,255,.06); border-color: var(--ink-soft); }
.play-cta__circle svg { width: 18px; height: 18px; margin-left: 2px; }
.play-cta__label { font-size: 0.98rem; font-weight: 500; }

/* ── video lightbox ── */
.vmodal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; }
.vmodal.is-open { display: flex; }
.vmodal__scrim { position: absolute; inset: 0; background: rgba(5,5,7,.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s var(--ease); }
.vmodal.is-open .vmodal__scrim { opacity: 1; }
.vmodal__stage { position: relative; width: min(94vw, 1180px); }
.vmodal__frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden;
  background: #0a0a0b; box-shadow: 0 40px 120px -30px rgba(0,0,0,.9), inset 0 0 0 1px rgba(255,255,255,.08);
  transform: translateY(14px) scale(.985); opacity: 0; transition: transform .4s var(--ease), opacity .4s var(--ease); }
.vmodal.is-open .vmodal__frame { transform: none; opacity: 1; }
.vmodal__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.vmodal__close { position: absolute; top: -16px; right: -16px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: #0a0a0b; background: var(--ink); border: none;
  box-shadow: 0 6px 20px -6px rgba(0,0,0,.6); transition: transform .2s var(--ease); }
.vmodal__close:hover { transform: scale(1.08); }
.vmodal__close svg { width: 20px; height: 20px; }
@media (max-width: 560px) {
  .vmodal { padding: 14px; }
  .vmodal__close { top: -14px; right: -6px; }
}

.btn--store {
  background: var(--ink);
  color: #0A0A0B;
  border-color: var(--ink);
  padding: 11px 22px;
}
.btn--store:hover { background: #fff; }
.btn--store .store__apple { width: auto; height: 22px; margin-top: -2px; }
.btn--store span { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.btn--store small { font-size: 0.62rem; font-weight: 400; opacity: .7; letter-spacing: .02em; }
.btn--store strong { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }

.btn--lg { padding: 15px 30px; }
.btn--lg .store__apple { height: 27px; }
.btn--lg strong { font-size: 1.2rem; }

/* prominent hero download button — wider + larger type */
.btn--hero { padding: 17px 44px; }
.btn--hero .store__apple { height: 31px; }
.btn--hero small { font-size: 0.72rem; }
.btn--hero strong { font-size: 1.5rem; }

/* ───────── brand ───────── */
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; letter-spacing: -0.02em; }
.brand__mark {
  display: grid; place-items: center;
  width: 30px;
  color: var(--ink);
}
.brand__mark svg { width: 100%; height: auto; display: block; }
.brand__word { font-size: 1.12rem; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
}
.nav.is-stuck {
  background: rgba(16, 15, 18, 0.86);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.nav__links { display: flex; gap: 30px; margin-left: auto; margin-right: 8px; }
.nav__links a { font-size: 0.92rem; color: var(--ink-soft); transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
/* right cluster: Mastering link + Download */
.nav__right { display: flex; align-items: center; gap: 22px; }
/* A header with no menu behind it — the legal and pricing pages, which carry
   only one CTA and the language picker. Without a wrapper those two are
   separate flex children of .nav__inner, and `justify-content: space-between`
   strands the button in the middle of the bar with the picker off at the far
   right; that is what "the header looks broken" was.

   Deliberately NOT .nav__right: that class turns into a burger-triggered
   dropdown under 640px, and these pages have no burger to open it with. This
   one just groups. */
.nav__actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
@media (max-width: 640px) { .nav__actions { gap: 10px; } }
.nav__link { font-size: 0.92rem; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 5px; transition: color .2s var(--ease); }
.nav__link:hover { color: var(--ink); }
.nav__link svg { width: 13px; height: 13px; opacity: .8; }
@media (max-width: 400px) { .nav__link--mastering svg { display: none; } }

/* free tools dropdown */
.nav__dd { position: relative; }
.nav__dd::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 14px; }
.nav__ddbtn { font: inherit; font-size: 0.92rem; cursor: pointer; background: transparent; border: 0; padding: 0; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 6px; transition: color .2s var(--ease); }
.nav__ddbtn:hover, .nav__dd.is-open .nav__ddbtn { color: var(--ink); }
.nav__ddbtn > svg { width: 14px; height: 14px; opacity: .85; }
.nav__ddchev { width: 11px !important; height: 11px !important; transition: transform .2s var(--ease); }
.nav__dd.is-open .nav__ddchev { transform: rotate(180deg); }
.nav__ddmenu { position: absolute; top: calc(100% + 14px); right: 0; transform: translateY(-6px); min-width: 250px; padding: 8px; background: rgba(20,19,24,.98); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 24px 60px -18px rgba(0,0,0,.75); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); opacity: 0; pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease); z-index: 200; }
.nav__dd.is-open .nav__ddmenu, .nav__dd:hover .nav__ddmenu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.nav__ddmenu a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--ink); transition: background .2s var(--ease); }
.nav__ddmenu a:hover { background: rgba(255,255,255,.05); }
.nav__ddicon { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.05); border: 1px solid var(--line-2); }
.nav__ddicon svg { width: 18px; height: 18px; }
.nav__ddmenu strong { display: block; font-size: .95rem; font-weight: 600; }
.nav__ddmenu small { display: block; font-size: .8rem; color: var(--ink-soft); margin-top: 1px; }

/* Mobile nav: a hamburger reveals .nav__right as a dropdown panel instead of
   every item — Free tools, the language switcher, Download — fighting for
   room on one line. Hidden above 640px, where the bar has room for all of
   it. Shared by every page's header (homepage, mastering, key-bpm-finder,
   blog); a page adds its own account/brand-specific rules on top if needed
   (see mastering.css). */
.nav__burger {
  display: none; width: 36px; height: 36px; flex: none; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line-2); border-radius: 10px; color: var(--ink);
  cursor: pointer; transition: border-color .2s var(--ease), background .2s var(--ease);
}
.nav__burger svg { width: 18px; height: 18px; }
.nav__burger:hover { border-color: var(--ink-soft); background: var(--surface); }

@media (max-width: 640px) {
  .nav__inner { height: 56px; }
  .nav__burger { display: inline-flex; }

  .nav__right {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 90;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px -20px rgba(0,0,0,.5);
    padding: 4px 20px 16px; margin: 0; max-height: 70vh; overflow: auto;
    /* Same show/hide as .acct__menu and .nav__ddmenu, not a height
       animation — a flex column's rendered height doesn't reliably collapse
       to 0 under max-height the way a block element's does. */
    opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-6px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  #nav.is-menu-open .nav__right { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }

  .nav__right .nav__dd, .nav__right > .nav__link, .nav__right > a.btn {
    width: 100%; padding: 13px 0; border-bottom: 1px solid var(--line);
  }
  .nav__right .nav__ddbtn { width: 100%; justify-content: space-between; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: 64px 0 56px; overflow: hidden; }
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
}
.hero__title {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  font-weight: var(--h1-weight);
  line-height: 0.98;
  letter-spacing: var(--h1-tracking);
  margin-bottom: 26px;
}
.hero__sub {
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  color: var(--ink-soft);
  max-width: 460px;
  margin-bottom: 38px;
}
.hero__cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* "We launched on Product Hunt" badge */
.ph-badge { display: inline-flex; align-items: center; gap: 9px; margin-top: 22px; padding: 8px 15px 8px 9px; border: 1px solid var(--line-2); border-radius: 999px; font-size: .9rem; color: var(--ink-soft); background: var(--surface); transition: color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.ph-badge:hover { color: var(--ink); border-color: var(--ink-soft); transform: translateY(-2px); }
.ph-badge__logo { width: 22px; height: 22px; flex: 0 0 auto; display: block; }

/* inline film embed (between hero and the story) — the film's own poster/play
   shows inside the iframe (video?embed=1&io), exactly like /video */
.homefilm { padding: 24px 0 8px; }
.homefilm__tagline {
  text-align: center;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.homefilm__frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #0a0a0b; border: 1px solid var(--line); box-shadow: 0 30px 80px -40px rgba(0,0,0,.8); }
.homefilm__video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

.hero__art { display: grid; place-items: center; }

.hero__glow {
  position: absolute;
  top: -10%; right: -5%;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.07), transparent 62%);
  filter: blur(20px);
  z-index: -1;
  pointer-events: none;
}

/* ============================================================
   PHONE MOCKUPS
   ============================================================ */
.phone {
  position: relative;
  width: 286px;
  aspect-ratio: 9 / 19.3;
  background: linear-gradient(160deg, #2a2a30, #131316);
  border-radius: 44px;
  padding: 8px;
  box-shadow:
    0 2px 4px rgba(0,0,0,.6),
    0 40px 90px -30px rgba(0,0,0,.8),
    inset 0 0 0 1px rgba(255,255,255,.06);
}
.phone--float { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(-8px); } 50% { transform: translateY(8px); } }

.phone--sm { width: 248px; }

.phone__screen {
  position: relative;
  width: 100%; height: 100%;
  background: radial-gradient(120% 80% at 50% 0%, #18171c, #0c0c0e 70%);
  border-radius: 36px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
/* notch */
.phone__screen::before {
  content: "";
  position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 22px; border-radius: 999px;
  background: #050506; z-index: 5;
}

.status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 22px 4px;
  font-size: 0.72rem; font-weight: 600; color: var(--ink-soft);
}
.status__icons { display: flex; gap: 4px; }
.status__icons i { width: 13px; height: 9px; border-radius: 2px; background: var(--ink-soft); display: inline-block; }
.status__icons i:last-child { width: 18px; border-radius: 3px; }

.app { flex: 1; display: flex; flex-direction: column; padding: 14px 18px 20px; min-height: 0; }

.app__topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.chev { font-size: 1.3rem; color: var(--ink-soft); }
.dots { color: var(--ink-faint); letter-spacing: 1px; font-size: .7rem; }
.pill {
  font-size: 0.66rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 999px;
}
.pill--demo { background: var(--accent-soft); color: var(--accent-2); }
.pill--mini { background: rgba(255,255,255,.06); color: var(--ink-soft); font-size: .62rem; letter-spacing: .02em; text-transform: none; }

/* — Player screen (matches app) — */
.app--player { position: relative; overflow: hidden; }

/* the soft teal→blue ambient that rises from the bottom while playing */
.player__ambient {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 150%; aspect-ratio: 1 / 1; pointer-events: none; z-index: 0;
  background: radial-gradient(circle at 50% 100%,
    rgba(70,179,157,.66) 0%,
    rgba(47,127,154,.50) 26%,
    rgba(36,78,118,.32) 50%,
    rgba(21,44,69,.12) 72%,
    rgba(10,22,38,0) 90%);
  opacity: 0;
  transform: translate(-50%, 38%);
  transition: opacity 1.1s var(--ease), transform 1.4s var(--ease);
}
.app--player > :not(.player__ambient) { position: relative; z-index: 1; }

/* playing state: gradient floats up + fades in */
.app--player.is-playing .player__ambient { opacity: 1; transform: translate(-50%, 0); }

.player__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.player__top svg { width: 18px; height: 18px; color: var(--ink-soft); display: block; }
.player__status { display: flex; align-items: center; gap: 8px; font-size: .64rem; font-weight: 600; letter-spacing: .2em; color: var(--ink-soft); }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-faint); transition: background .5s var(--ease), box-shadow .5s var(--ease); }
.app--player.is-playing .dot-live { background: var(--live); box-shadow: 0 0 8px rgba(95,207,128,.7); }
/* status label crossfade */
.ps__label { position: relative; display: inline-grid; }
.ps__label > span { grid-area: 1 / 1; transition: opacity .45s var(--ease); }
.ps__playing { opacity: 0; }
.ps__paused  { opacity: 1; }
.app--player.is-playing .ps__playing { opacity: 1; }
.app--player.is-playing .ps__paused  { opacity: 0; }
.vinyl {
  position: relative; width: 62%; aspect-ratio: 1; margin: 18px auto 22px; border-radius: 50%;
  background: repeating-radial-gradient(circle at 50% 50%, #202024 0 1.5px, #131316 1.5px 4px), #0e0e10;
  box-shadow: 0 24px 50px -18px rgba(0,0,0,.8), inset 0 0 0 1px rgba(255,255,255,.05);
}
.vinyl::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 50% 32%, rgba(255,255,255,.07), transparent 55%); }
.vinyl__label {
  position: absolute; inset: 34%; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 38%, #d2d2d8, #97979f); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
}
.vinyl__label::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #161618; }
.player__title { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; }
.player__meta { display: flex; align-items: center; gap: 10px; margin-top: 9px; font-size: .72rem; color: var(--ink-soft); }
.pm__sep { width: 1px; height: 11px; background: var(--line-2); }
.pm__stage { display: flex; align-items: center; gap: 6px; letter-spacing: .14em; }
.pm__stage i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-faint); }
.pm__icons { margin-left: auto; display: flex; gap: 14px; }
.player__meta svg { width: 15px; height: 15px; color: var(--ink-faint); display: block; }
.app--player .scrub { margin-top: 16px; }
.app--player .scrub__bar span { width: 27%; }
.app--player .scrub__bar::after { left: 27%; }
.player__controls { display: flex; align-items: center; justify-content: center; gap: 36px; margin: 18px 0 20px; }
.player__controls svg { display: block; color: var(--ink-soft); }
.player__controls .pc svg { width: 24px; height: 24px; }
.player__controls .pc--main { position: relative; display: inline-grid; place-items: center; width: 30px; height: 30px; }
.player__controls .pc--main svg { grid-area: 1 / 1; width: 30px; height: 30px; color: var(--ink); transition: opacity .4s var(--ease); }
.pc__play { opacity: 1; }
.pc__pause { opacity: 0; }
.app--player.is-playing .pc__play { opacity: 0; }
.app--player.is-playing .pc__pause { opacity: 1; }
.player__tabs { margin-top: auto; display: flex; align-items: flex-start; justify-content: space-around; padding-top: 14px; border-top: 1px solid var(--line); }
.tab { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .55rem; font-weight: 600; letter-spacing: .1em; color: var(--ink-faint); }
.tab svg { width: 18px; height: 18px; display: block; }
#writeTab { cursor: default; transition: color .3s var(--ease); }
.app--player.is-writing #writeTab { color: var(--ink); }

@keyframes eq { 0%,100% { height: 14px; opacity:.6 } 50% { height: 48px; opacity:1 } }

/* — Writing bottom sheet — */
.sheet-scrim {
  position: absolute; inset: 0; z-index: 6;
  background: rgba(0,0,0,.5);
  opacity: 0; pointer-events: none;
  transition: opacity .5s var(--ease);
}
.sheet-scrim.is-open { opacity: 1; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 7;
  height: 84%;
  display: flex; flex-direction: column;
  padding: 12px 18px 0;
  background: #0c0c0e;
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -20px 50px -20px rgba(0,0,0,.8), 0 -0.5px 0 0 rgba(255,255,255,.08);
  transform: translateY(102%);
  transition: transform .62s var(--ease);
}
.sheet.is-open { transform: translateY(0); }
.sheet__grab { width: 36px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.18); margin: 2px auto 14px; }
.sheet__head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.sheet__title { display: flex; flex-direction: column; gap: 4px; }
.sheet__title b { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; }
.sheet__title small { font-size: .6rem; font-weight: 600; letter-spacing: .22em; color: var(--ink-faint); }
.sheet__done { font-size: .92rem; color: var(--ink); font-weight: 400; }
.sheet__mini {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0 16px; border-bottom: 1px solid var(--line); margin-bottom: 20px;
}
.sheet__mini .mini__pause { display: grid; place-items: center; }
.sheet__mini svg { width: 18px; height: 18px; color: var(--ink); display: block; }
.mini__bar { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.12); position: relative; }
.mini__bar i { position: absolute; left: 0; top: 0; height: 100%; width: 8%; border-radius: 3px; background: rgba(255,255,255,.5); }
.mini__time { font-size: .72rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.sheet__body { position: relative; flex: 1; }
.sheet__placeholder {
  position: absolute; left: 0; top: 0; right: 0;
  font-size: 1.02rem; color: var(--ink-faint); line-height: 1.6;
  transition: opacity .3s var(--ease);
}
.sheet__placeholder.is-hidden { opacity: 0; }
.sheet__text { font-size: 1.02rem; line-height: 1.7; color: var(--ink); white-space: pre-line; }
.sheet__cursor {
  display: inline-block; width: 2px; height: 1.05em;
  background: var(--live); vertical-align: -3px; margin-left: 1px;
  animation: blink 1.1s step-end infinite;
}

.scrub { margin: 16px 0; }
.scrub__bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.1); position: relative; }
.scrub__bar span { position: absolute; left: 0; top: 0; height: 100%; width: 38%; border-radius: 4px; background: var(--accent-grad); }
.scrub__bar::after { content:""; position:absolute; left:38%; top:50%; width:10px; height:10px; border-radius:50%; background:#fff; transform:translate(-50%,-50%); }
.scrub__time { display: flex; justify-content: space-between; font-size: .68rem; color: var(--ink-faint); margin-top: 7px; }

.controls { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 26px; }
.ctrl { font-size: 1.2rem; color: var(--ink-soft); }
.ctrl--main {
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--ink); color: #0a0a0b; font-size: 1.1rem;
  padding-left: 3px;
}
.ctrl--rec { color: var(--accent); font-size: 1.5rem; }
.ctrl--xs { width: 30px; height: 30px; font-size: .7rem; }

/* — Home screen — */
.app--home .home__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.home__head h3 { font-size: 1.4rem; font-weight: 600; letter-spacing: -0.02em; }
.add { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--surface-2); font-size: 1.2rem; color: var(--ink-soft); }
.filters { display: flex; gap: 7px; margin-bottom: 16px; }
.chip { font-size: .68rem; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.05); color: var(--ink-soft); }
.chip--on { background: var(--ink); color: #0a0a0b; }
.songlist { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.songlist li { display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 11px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.sl__art { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(150deg,#26252b,#141318); display: grid; place-items: center; color: var(--ink-soft); font-size: .9rem; }
.sl__meta { display: flex; flex-direction: column; line-height: 1.25; }
.sl__meta b { font-size: .86rem; font-weight: 600; }
.sl__meta small { font-size: .68rem; color: var(--ink-faint); }
.sl__bar { grid-column: 1 / -1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.08); margin-top: 2px; }
.sl__bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent-grad); }

/* — Writing screen — */
.write__title { font-size: .92rem; font-weight: 600; }
.lyrics { flex: 1; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.ly { font-size: .92rem; line-height: 1.45; }
.ly--head { color: var(--accent-2); font-size: .72rem; font-weight: 600; letter-spacing: .05em; margin-top: 6px; }
.ly--ghost { color: var(--ink-faint); }
.caret { display: inline-block; width: 2px; height: 1em; background: var(--accent); margin-left: 2px; vertical-align: -2px; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.miniplayer { margin-top: 14px; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 9px 12px; }
.mp__wave { flex: 1; display: flex; align-items: center; gap: 3px; height: 22px; }
.mp__wave i { flex: 1; border-radius: 2px; background: rgba(255,255,255,.18); height: 40%; }
.mp__wave i:nth-child(2n) { height: 80%; }
.mp__wave i:nth-child(3n) { height: 60%; background: var(--accent); }
.miniplayer small { font-size: .68rem; color: var(--ink-faint); }

/* — Recording screen — */
.app--rec { align-items: center; }
.app--rec .app__topbar { width: 100%; }
.rec__live { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--ink-soft); margin: 10px 0 8px; }
.rec__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255,255,255,.5); animation: pulse 1.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.45); } 70% { box-shadow: 0 0 0 12px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.rec__wave { display: flex; align-items: center; gap: 3px; height: 96px; margin: 20px 0; }
.rec__wave span { width: 3px; border-radius: 3px; background: var(--accent-grad); animation: eq 0.9s ease-in-out infinite; }
.rec__wave span:nth-child(2n) { animation-delay: -.3s; }
.rec__wave span:nth-child(3n) { animation-delay: -.6s; }
.rec__wave span:nth-child(5n) { animation-delay: -.15s; }
.rec__timer { font-size: 2rem; font-weight: 500; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.takes { display: flex; gap: 8px; margin: 18px 0; }
.take { font-size: .68rem; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.05); color: var(--ink-soft); }
.take--on { background: var(--accent-soft); color: var(--accent-2); }
.ctrl--stop { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #0A0A0B; font-size: 1rem; }

/* — Progress screen — */
.app--prog { align-items: center; }
.app--prog .app__topbar { width: 100%; }
.ring { position: relative; width: 150px; height: 150px; margin: 18px 0 26px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring__bg { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 9; }
.ring__fg { fill: none; stroke: url(#g) ; stroke: var(--accent); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 124; }
.ring__label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring__label b { font-size: 1.8rem; font-weight: 600; }
.ring__label small { display: block; font-size: .66rem; color: var(--ink-faint); }
.checklist { list-style: none; width: 100%; display: flex; flex-direction: column; gap: 9px; }
.checklist li { display: flex; align-items: center; gap: 11px; font-size: .85rem; color: var(--ink-soft); }
.checklist li span { width: 19px; height: 19px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; font-size: .6rem; }
.checklist li.done { color: var(--ink); }
.checklist li.done span { background: var(--accent-grad); border-color: transparent; color: #0A0A0B; }


/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how { padding: 0 0 120px; }
.how__head { text-align: center; max-width: 760px; margin: 0 auto 64px; }
.how .steps { max-width: 980px; margin: 0 auto; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.step { background: var(--bg); padding: 40px 36px 44px; position: relative; }
.step h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 500; letter-spacing: -0.025em; margin: 0 0 10px; }
.step p { color: var(--ink-soft); max-width: 360px; }
.stages { display: flex; align-items: center; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.stage { font-size: .78rem; font-weight: 500; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-soft); }
.stage--done { background: var(--accent-grad); color: #0A0A0B; border-color: transparent; }
.arrow { color: var(--ink-faint); }

/* ============================================================
   BUILT FOR
   ============================================================ */
.built { padding: 0 0 130px; }
.built__list { list-style: none; }
.built__list li {
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.2;
  color: var(--ink-faint);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  transition: color .3s var(--ease), padding-left .3s var(--ease);
}
.built__list li:hover { color: var(--ink); padding-left: 14px; }
.built__last { color: var(--ink) !important; }

/* ============================================================
   FINALE / DOWNLOAD CTA
   ============================================================ */
.cta { padding: 40px 0 120px; background: var(--bg); }
.cta__card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  max-width: 920px; margin: 0 auto;
  padding: 84px 32px 80px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 130% at 50% -10%, rgba(255,255,255,.05), transparent 55%),
    var(--bg);
}
.cta__mark { width: 56px; color: var(--ink); margin-bottom: 30px; }
.cta__mark svg { width: 100%; height: auto; display: block; }
.cta__title {
  position: relative; z-index: 1;
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 500; line-height: 1.05; letter-spacing: -0.04em;
  margin-bottom: 16px;
}
.cta__sub { position: relative; z-index: 1; color: var(--ink-soft); font-size: 1.12rem; margin-bottom: 38px; }
.cta .btn--store { position: relative; z-index: 1; }
.cta__free { position: relative; z-index: 1; margin-top: 22px; font-size: .85rem; color: var(--ink-faint); letter-spacing: .01em; }
.cta__glow {
  position: absolute; bottom: -55%; left: 50%; transform: translateX(-50%);
  width: 680px; height: 560px;
  background: radial-gradient(circle, rgba(255,255,255,.05), transparent 62%);
  filter: blur(10px); pointer-events: none; z-index: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; }
.footer__inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__brand { display: flex; flex-direction: column; gap: 18px; }
.footer__links { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer__links a { font-size: .92rem; color: var(--ink-soft); transition: color .2s; }
.footer__links a:hover { color: var(--ink); }
.footer__social { display: flex; align-items: center; gap: 14px; }
.footer__social a { display: grid; place-items: center; color: var(--ink-soft); transition: color .2s, transform .2s var(--ease); }
.footer__social a:hover { color: var(--ink); transform: translateY(-2px); }
.footer__social svg { width: 19px; height: 19px; display: block; }
.footer__base { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 26px; }
.footer__base p { font-size: .85rem; color: var(--ink-faint); }

/* ============================================================
   HERO WORD CYCLE (typewriter)
   ============================================================ */
.type { position: relative; display: inline-block; white-space: nowrap; }
.type__word { display: inline-block; }
.type__caret {
  display: inline-block; width: 0.06em; min-width: 4px; height: 0.86em;
  margin-left: 6px; vertical-align: -0.06em; border-radius: 2px;
  background: var(--ink);
  animation: caretBlink 1s step-end infinite;
}
@keyframes caretBlink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

/* ============================================================
   SCATTERED GRID
   ============================================================ */
.scatter { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 40px 0 30px; }
.scatter li {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 20px;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.scatter li:hover { border-color: var(--line-2); transform: translateY(-3px); }
.scatter__where { display: block; font-size: .82rem; color: var(--ink-faint); margin-bottom: 9px; }
.scatter__what { display: block; font-size: 1.3rem; font-weight: 500; letter-spacing: -0.02em; }

/* ============================================================
   APP CHIPS (insight: your apps -> Loopin)
   ============================================================ */
.tools__row {
  display: flex; align-items: stretch; justify-content: center;
  flex-wrap: wrap; gap: 14px;
  margin-top: 8px;
}
.appchip {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px; min-width: 150px;
  display: flex; flex-direction: column; gap: 3px;
}
.appchip b { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }
.appchip small { font-size: .85rem; color: var(--ink-soft); }
.appchip--loopin { background: var(--ink); border-color: var(--ink); position: relative; padding-top: 22px; }
.appchip--loopin b, .appchip--loopin small { color: #0A0A0B; }
.appchip--loopin small { color: rgba(10,10,11,.6); }
.appchip__mark { width: 34px; color: #0A0A0B; margin-bottom: 6px; }
.appchip__mark svg { width: 100%; height: auto; display: block; }
.plus, .equals { align-self: center; color: var(--ink-faint); font-size: 1.2rem; }
.equals { color: var(--ink-soft); }

/* ============================================================
   STORY SECTIONS (Apple-style, label-free)
   ============================================================ */
.story { padding: 100px 0; }
.hero + .story { padding-top: 80px; }
.story + .story { padding-top: 0; }
.story--center { text-align: center; }
.story__inner { max-width: 1040px; margin: 0 auto; }
.story__head { max-width: 760px; margin: 0 auto 52px; }
.story .big { margin-bottom: 4px; }
.story__foot { margin-top: 30px; font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 500; letter-spacing: -0.025em; }
.story__note { margin: 34px auto 0; font-size: clamp(1.2rem, 2.5vw, 1.55rem); font-weight: 500; letter-spacing: -0.025em; color: var(--ink-faint); max-width: 680px; }
.story__note strong { color: var(--ink); font-weight: 500; }
.story--center .scatter { max-width: 760px; margin-inline: auto; }

/* "Hence, Loopin." resolution line — set off from the problem lines above it */
.story__hence { margin-top: clamp(48px, 7vw, 96px); }

/* ============================================================
   LEGAL / PROSE PAGE
   ============================================================ */
.legal { padding: 80px 0 120px; }
.legal__wrap { max-width: 760px; }
.legal__back { display: inline-flex; align-items: center; gap: 7px; font-size: .9rem; color: var(--ink-soft); margin-bottom: 38px; transition: color .2s; }
.legal__back:hover { color: var(--ink); }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: var(--h1-weight); letter-spacing: var(--h1-tracking); line-height: 1.05; }
.legal__updated { color: var(--ink-faint); font-size: .92rem; margin-top: 12px; margin-bottom: 8px; }
.legal h2 { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; margin-top: 52px; margin-bottom: 14px; }
.legal h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; margin-top: 30px; margin-bottom: 10px; color: var(--ink); }
.legal p { color: var(--ink-soft); margin-bottom: 16px; line-height: 1.7; }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); transition: text-decoration-color .2s; }
.legal a:hover { text-decoration-color: var(--ink); }
.legal ul { list-style: none; margin: 0 0 18px; padding: 0; }
.legal li { position: relative; padding-left: 22px; color: var(--ink-soft); margin-bottom: 10px; line-height: 1.65; }
.legal li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-faint); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .86em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--ink); }
.legal hr { border: none; border-top: 1px solid var(--line); margin: 44px 0; }
.legal__table-wrap { overflow-x: auto; margin: 8px 0 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.legal table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.legal th, .legal td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal thead th { color: var(--ink); font-weight: 600; background: var(--surface); }
.legal tbody td:first-child { color: var(--ink); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .86rem; white-space: nowrap; }
.legal tbody td { color: var(--ink-soft); }
.legal tbody tr:last-child td { border-bottom: none; }

/* ── blog post: article + right rail ──────────────────────────────────────
   Only blog posts get the two-column treatment. /privacy, /terms and /support
   share the .legal typography and must stay single-column and centred, which
   is why the grid hangs off .postgrid rather than off .legal__wrap.

   7fr / 3fr inside the same 1120px the nav and footer use, so the rail lines
   up with the header above it. minmax(0, …) on both tracks because a grid
   track's default min-width is auto — one long code span or unbroken URL in
   the prose would otherwise push the column wider than its share and shove the
   rail off the grid. */
/* No align-items:start here. Start-aligning the tracks shrinks each item to
   its own content height, and a sticky child can only travel inside its
   parent's box — so the rail would have had nowhere to stick to and simply
   scrolled away. The default `stretch` gives the aside the full row height. */
.postgrid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); gap: 48px; }
.postgrid__main { min-width: 0; }
.postgrid__aside { min-width: 0; }

/* The rail is shorter than the article, so it sticks rather than leaving a
   column of empty page. 88px clears the fixed nav plus the announcement bar. */
.prail { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 20px; }

/* ---- promo card ----
   One anchor around the whole card: image, copy and the button-shaped span are
   all inside it. Nesting a real <button> or a second <a> inside a link is a
   keyboard and screen-reader trap, and it would give one visual object two tap
   targets that go to the same place. */
.adcard {
  display: block; overflow: hidden; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s var(--ease), transform .3s var(--ease);
}
.adcard:hover { border-color: var(--line-2); transform: translateY(-2px); }
.adcard:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
/* Square by declaration, not by trusting the file: a creative that ships at the
   wrong ratio is cropped rather than allowed to resize the whole rail. The
   aspect-ratio also reserves the box before the image arrives, so swapping the
   creative on load cannot shift the page. */
/* <picture> is an inline wrapper; without this the img sits on a text baseline
   and leaves a few px of stray gap under it. */
.adcard picture { display: block; }
.adcard__img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; background: var(--surface-2); }
/* height:auto is load-bearing — without it the img's height="600" attribute
   wins over aspect-ratio and the card renders 305 wide by 600 tall. */
/* Spans, not block elements — the card is a single <a>, so everything inside
   it is phrasing content and has to be told to lay out as blocks. */
.adcard__body { display: block; padding: 18px 20px 20px; }
.adcard__title { display: block; color: var(--ink); font-size: 1.02rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.adcard__sub { display: block; color: var(--ink-soft); font-size: .9rem; line-height: 1.55; margin: 7px 0 15px; }
/* Looks like .btn--store, but it is a span — the card is the link. */
.adcard__cta {
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px;
  background: var(--ink); color: var(--bg); border-radius: 999px;
  font-size: .88rem; font-weight: 600; letter-spacing: -0.01em;
}
.adcard__cta svg { width: 15px; height: 15px; }
.adcard:hover .adcard__cta { background: #fff; }
/* A promo is not part of the article. Undo the .legal link and list styling it
   would otherwise inherit. */
.legal .adcard, .legal .adcard:hover { text-decoration: none; }

/* ---- read next ---- */
.nextup { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 8px; }
.legal .nextup__h { font-size: .78rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 12px; }
.legal .nextup ul { margin: 0; }
.legal .nextup li { padding-left: 0; margin-bottom: 0; border-top: 1px solid var(--line); }
.legal .nextup li:first-child { border-top: none; }
.legal .nextup li::before { content: none; }
.legal .nextup a {
  display: block; padding: 11px 0; color: var(--ink-soft); font-size: .93rem; line-height: 1.45;
  text-decoration: none; transition: color .2s;
}
.legal .nextup a:hover { color: var(--ink); }

/* Below the grid breakpoint the rail stops being a rail: it unsticks and falls
   under the article, where it reads as an end-of-post recommendation — which is
   where "Related reads" used to sit anyway. */
@media (max-width: 900px) {
  .postgrid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .prail { position: static; max-width: 420px; }
}
@media (prefers-reduced-motion: reduce) {
  .adcard, .adcard:hover { transition: none; transform: none; }
}

/* support page extras */
.legal__lead { font-size: 1.15rem; color: var(--ink-soft); margin-top: 14px; max-width: 620px; }
.contact-card {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; margin: 30px 0 8px;
}
.contact-card__text { display: flex; flex-direction: column; gap: 3px; }
.contact-card__text b { color: var(--ink); font-size: 1.05rem; font-weight: 600; word-break: break-all; }
.contact-card__text span { color: var(--ink-soft); font-size: .92rem; }
.legal a.btn--contact {
  flex: none;
  background: var(--ink); color: #0A0A0B; border-color: var(--ink);
  font-weight: 600; padding: 12px 26px; white-space: nowrap;
  text-decoration: none;
}
.legal a.btn--contact:hover { background: #fff; color: #0A0A0B; }

/* homepage SEO FAQ section */
.faqs { padding: 30px 0 110px; }
.faqs__inner { max-width: 760px; margin: 0 auto; }
.faqs__title { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 500; letter-spacing: -0.03em; text-align: center; margin-bottom: 30px; color: var(--ink); }

.faq { margin: 4px 0 8px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 20px 40px 20px 0; color: var(--ink); font-size: 1.05rem; font-weight: 500;
  letter-spacing: -0.01em; transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--ink); }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 300; color: var(--ink-faint); transition: transform .25s var(--ease), color .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--ink); }
.faq details p { color: var(--ink-soft); margin: 0 0 22px; max-width: 640px; line-height: 1.7; }

/* ── from-the-blog carousel (2 cards per view + arrows) ── */
.reads { padding: 10px 0 90px; }
.reads__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.reads__title { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 500; letter-spacing: -0.03em; color: var(--ink); }
.reads__ctrl { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.reads__all { font-size: .9rem; color: var(--ink-soft); margin-right: 6px; white-space: nowrap; transition: color .2s var(--ease); }
.reads__all:hover { color: var(--ink); }
.reads__arrow { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink-soft); cursor: pointer; transition: color .2s var(--ease), border-color .2s var(--ease), opacity .2s; }
.reads__arrow svg { width: 20px; height: 20px; }
.reads__arrow:hover { color: var(--ink); border-color: var(--ink-soft); }
.reads__arrow[disabled] { opacity: .35; cursor: default; }
.reads__track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 4px; margin: -4px; }
.reads__track::-webkit-scrollbar { display: none; }
.read { flex: 0 0 calc((100% - 18px) / 2); scroll-snap-align: start; box-sizing: border-box; display: flex; flex-direction: column; gap: 12px; min-height: 210px; padding: 26px 26px 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(165deg, var(--surface-2), var(--surface)); color: var(--ink); transition: transform .25s var(--ease), border-color .25s var(--ease); }
.read:hover { transform: translateY(-3px); border-color: var(--line-2); }
.read__tag { align-self: flex-start; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 11px; }
.read__title { font-size: 1.32rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.read__sub { color: var(--ink-soft); font-size: .98rem; line-height: 1.55; margin-top: -2px; }
.read__more { margin-top: auto; display: inline-flex; align-items: center; gap: 7px; font-size: .92rem; font-weight: 500; color: var(--ink); }
.read__more svg { width: 17px; height: 17px; transition: transform .2s var(--ease); }
.read:hover .read__more svg { transform: translateX(3px); }
.reads__dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.reads__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); border: none; padding: 0; cursor: pointer; transition: background .2s, transform .2s; }
.reads__dot.is-on { background: var(--ink); transform: scale(1.25); }
@media (max-width: 760px) { .read { flex-basis: 86%; } }
@media (max-width: 560px) { .reads__arrow { display: none; } .read { flex-basis: 90%; } }

/* ── blog hub grid ── */
.bloghub__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 22px; }
.bloghub__grid .read { flex: none; min-height: 200px; }
@media (max-width: 680px) { .bloghub__grid { grid-template-columns: 1fr; } }

/* blog topic filter + search */
.bloghub__filter { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.bloghub__search { position: relative; flex: 1 1 100%; max-width: none; }
.bloghub__search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-faint); pointer-events: none; }
.bloghub__search input { width: 100%; font: inherit; font-size: .95rem; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 11px 16px 11px 40px; transition: border-color .2s var(--ease); }
.bloghub__search input:focus { outline: none; border-color: var(--line-2); }
.bloghub__search input::placeholder { color: var(--ink-faint); }
.bloghub__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.bloghub__tag { font: inherit; font-size: .85rem; cursor: pointer; color: var(--ink-soft); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease); }
.bloghub__tag:hover { color: var(--ink); border-color: var(--line-2); }
.bloghub__tag.is-on { color: #0A0A0B; background: var(--ink); border-color: var(--ink); font-weight: 500; }
.bloghub__empty { text-align: center; color: var(--ink-soft); padding: 50px 0; }
@media (max-width: 680px) { .bloghub__filter { flex-direction: column; align-items: stretch; } .bloghub__search { max-width: none; } }

/* blog hub header */
.bloghub__head { max-width: 760px; }
.bloghub__back { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; transition: color .2s var(--ease), border-color .2s var(--ease); }
.bloghub__back:hover { color: var(--ink); border-color: var(--line-2); }
.bloghub__back svg { width: 15px; height: 15px; }
.bloghub__title { margin-top: 24px; }
.bloghub__lead { font-size: 1.12rem; color: var(--ink-soft); margin-top: 14px; max-width: 600px; }

/* tags row + date sort */
.bloghub__row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; flex: 1 1 100%; }
.bloghub__row .bloghub__tags { flex: 1 1 auto; }
.bloghub__sort { position: relative; display: inline-flex; align-items: center; gap: 8px; margin-left: auto; flex: 0 0 auto; }
.bloghub__sort label { font-size: .82rem; color: var(--ink-faint); }
.bloghub__sort select { appearance: none; -webkit-appearance: none; font: inherit; font-size: .85rem; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 8px 34px 8px 15px; cursor: pointer; transition: border-color .2s var(--ease); }
.bloghub__sort select:hover { border-color: var(--line-2); }
.bloghub__sort select:focus { outline: none; border-color: var(--line-2); }
.bloghub__sortchev { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--ink-soft); pointer-events: none; }
@media (max-width: 560px) { .bloghub__sort { margin-left: 0; width: 100%; justify-content: space-between; } .bloghub__sort select { flex: 1; } }

/* ── footer internal guide links ── */
.footer__reads { display: flex; flex-wrap: wrap; gap: 9px 22px; padding-top: 22px; margin-top: 4px; }
.footer__reads a { font-size: .86rem; color: var(--ink-faint); transition: color .2s var(--ease); }
.footer__reads a:hover { color: var(--ink); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero { padding: 36px 0 72px; }
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__sub { margin-inline: auto; }
  .hero__copy { text-align: center; }
  .hero__cta { justify-content: center; }
  .hero__glow { width: 380px; height: 380px; }
  .steps { grid-template-columns: 1fr; }
  .story { padding-block: 72px; }
  .hero + .story { padding-top: 56px; }
  .built { padding-block: 80px; }
  .how { padding: 0 0 80px; }
  .scatter { grid-template-columns: repeat(2, 1fr); }
  .tools__row { flex-direction: column; align-items: stretch; }
  .plus, .equals { transform: rotate(90deg); }
  .cta { padding: 24px 0 80px; }
  .cta__card { padding: 64px 26px 60px; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 22px; }
  .btn--ghost { display: none; }
  .btn--store { width: 100%; max-width: 320px; justify-content: center; }
  .hero__cta { width: 100%; }
  .hero__title { font-size: clamp(2.5rem, 12vw, 3.4rem); }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__links { gap: 18px 22px; }
  .footer__base { flex-direction: column; align-items: flex-start; gap: 6px; }
  .scatter { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .step { padding: 30px 26px 32px; }
  .contact-card { flex-direction: column; align-items: stretch; }
  .contact-card .btn--contact { width: 100%; text-align: center; }
  .faq summary { font-size: 1rem; padding-right: 36px; }
  .cta__card { padding: 52px 22px 48px; }
  .cta .btn--store { max-width: none; }
}

/* keep the hero device from ever overflowing a narrow screen */
.phone { max-width: 84vw; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ─────────────────────────── HERO PAGER (swipe: player ⇄ jam) ─────────────────────────── */
.pager { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; min-height: 0; scrollbar-width: none; -ms-overflow-style: none; scroll-behavior: smooth; }
.pager::-webkit-scrollbar { display: none; }
.pager__pane { flex: 0 0 100%; width: 100%; scroll-snap-align: start; display: flex; flex-direction: column; min-height: 0; }
.pager__pane .app { flex: 1; }
.pager__dots { position: absolute; left: 0; right: 0; bottom: 8px; z-index: 6; display: flex; gap: 6px; justify-content: center; pointer-events: none; }
.pager__dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.28); transition: background .2s, width .2s; }
.pager__dots i.is-on { background: rgba(255,255,255,.9); width: 16px; border-radius: 3px; }
.pager__hint { position: absolute; right: 14px; bottom: 26px; z-index: 6; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: rgba(0,0,0,.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: .64rem; font-weight: 600; letter-spacing: .04em; color: var(--ink-soft); animation: jamHint 2.2s ease-in-out infinite; transition: opacity .3s; }
.pager.is-touched ~ .pager__hint { opacity: 0; pointer-events: none; }
@keyframes jamHint { 0%,100% { transform: translateX(0); } 50% { transform: translateX(4px); } }

/* ─────────────────────────── JAM SCREEN ─────────────────────────── */
.app--jam { position: relative; overflow: hidden; justify-content: flex-start; text-align: center; transition: background .5s ease; padding: 12px 16px 16px; }
.jam__top { display: flex; justify-content: space-between; align-items: center; }
.jam__lang { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.08); font-size: .68rem; font-weight: 500; color: var(--ink); }
.jam__lang svg { width: 11px; height: 11px; opacity: .8; }
.jam__save { font-size: .72rem; font-weight: 600; color: var(--ink-faint); padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.05); }

.jam__words { flex: 1.3; display: flex; flex-direction: column; justify-content: center; gap: .06em; padding: 6px 0; }
.jam__word { font-size: 1.85rem; font-weight: 300; line-height: 1.12; letter-spacing: -0.01em; color: #fff; }
@keyframes jamWordIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.jam__bpm { display: flex; align-items: center; justify-content: center; gap: 18px; }
.jam__bpm-step { width: 38px; height: 38px; border-radius: 50%; border: none; background: rgba(255,255,255,.07); color: var(--ink); font-size: 1.2rem; font-weight: 300; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background .15s; }
.jam__bpm-step:hover { background: rgba(255,255,255,.14); }
.jam__bpmwrap { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.jam__bpmval { font-size: 2.6rem; font-weight: 300; letter-spacing: 0.01em; }
.jam__bpmwrap small { font-size: .58rem; letter-spacing: .28em; color: var(--ink-faint); margin-top: 4px; padding-left: .28em; }

.jam__divs { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.jam__div { padding: 7px 16px; border-radius: 999px; border: none; background: rgba(255,255,255,.06); color: var(--ink-soft); font-size: .74rem; font-weight: 500; cursor: pointer; transition: background .15s, color .15s; }
.jam__div.is-on { background: #f4f3f1; color: #111; }

.jam__timer { margin-top: 12px; font-size: .78rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.jam__timer::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--record); margin-right: 6px; vertical-align: middle; animation: jamBlink 1s steps(2) infinite; }
@keyframes jamBlink { 50% { opacity: .25; } }

.jam__controls { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding: 8px 6px 2px; }
.jam__dice, .jam__metro { width: 46px; height: 46px; border-radius: 50%; border: none; background: rgba(255,255,255,.07); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background .15s, transform .1s; }
.jam__dice:hover, .jam__metro:hover { background: rgba(255,255,255,.14); }
.jam__dice:active { transform: rotate(-18deg) scale(.92); }
.jam__dice svg, .jam__metro svg { width: 20px; height: 20px; }
.jam__metro.is-off { opacity: .4; }
.jam__rec { width: 58px; height: 58px; border-radius: 50%; border: none; background: rgba(255,255,255,.04); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.jam__rec-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--record); transition: border-radius .2s, width .2s, height .2s; }
.jam.is-rec .jam__rec, .app--jam.is-rec .jam__rec { box-shadow: 0 0 0 1px rgba(255,79,79,.5), 0 0 22px -4px rgba(255,79,79,.6); }
.is-rec .jam__rec-dot { width: 20px; height: 20px; border-radius: 5px; }

/* takes sheet (slides up) */
.jam__takes { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; background: #18171b; border-radius: 22px 22px 0 0; padding: 14px 16px 16px; box-shadow: 0 -20px 40px -20px rgba(0,0,0,.7); animation: jamSheetUp .3s var(--ease) both; max-height: 56%; overflow-y: auto; }
@keyframes jamSheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.jam__takeshead { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.jam__takeshead b { font-size: .92rem; }
.jam__takescount { font-size: .72rem; color: var(--ink-faint); }
.jam__take { display: flex; align-items: center; gap: 12px; padding: 9px 2px; border-top: 1px solid rgba(255,255,255,.06); }
.jam__take-n { width: 16px; font-size: .72rem; color: var(--ink-faint); }
.jam__take-name { flex: 1; display: flex; flex-direction: column; text-align: left; line-height: 1.25; }
.jam__take-name b { font-size: .82rem; font-weight: 600; }
.jam__take-name small { font-size: .68rem; color: var(--ink-faint); }
.jam__take-play { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.08); display: inline-flex; align-items: center; justify-content: center; }
.jam__take-play svg { width: 13px; height: 13px; margin-left: 1px; color: var(--ink); }

/* /jamming page — interactive demo wrapper */
.jam-demo { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 8px 0 34px; }
.jam-demo__hint { color: var(--ink-faint); font-size: .9rem; text-align: center; }

/* Jam demo is a self-running showcase — controls are display-only */
.app--jam .jam__lang, .app--jam .jam__save, .app--jam .jam__bpm-step,
.app--jam .jam__div, .app--jam .jam__dice, .app--jam .jam__rec, .app--jam .jam__metro { pointer-events: none; cursor: default; }
.jam__dice.is-spin { animation: jamDice .5s var(--ease); }
@keyframes jamDice { from { transform: rotate(0); } to { transform: rotate(180deg); } }
/* subtle "recording" pulse on the BPM number */
.app--jam.is-rec .jam__bpmval { animation: jamPulse 1s ease-in-out infinite; }
@keyframes jamPulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }

/* hero sub-note (e.g. "Free to start · No account needed") */
.hero__note { margin-top: 16px; font-size: .85rem; color: var(--ink-faint); }


/* ─────────────── Home: Jamming launch top announcement (slides down after load) ─────────────── */
.announce { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); background: linear-gradient(180deg, #15131b, #100e15); }
.announce.is-in { grid-template-rows: 1fr; border-bottom: 1px solid var(--line); }
.announce__inner { overflow: hidden; min-height: 0; display: flex; align-items: center; }
.announce__row {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px;
  padding: 11px 8px 11px 22px; color: var(--ink);
  transform: translateY(-10px); opacity: 0; transition: transform .5s .12s var(--ease), opacity .5s .12s var(--ease);
}
.announce.is-in .announce__row { transform: none; opacity: 1; }
.announce__badge { flex: none; font-size: .62rem; font-weight: 700; letter-spacing: .09em; padding: 3px 8px; border-radius: 999px; background: #FF6154; color: #fff; }
.announce__msg { flex: none; font-size: .92rem; font-weight: 600; letter-spacing: -0.01em; }
.announce__preview { flex: 1; min-width: 0; display: inline-flex; gap: 8px; overflow: hidden; color: var(--ink-soft); font-size: .9rem; }
.announce__preview span { white-space: nowrap; }
.announce__preview span + span::before { content: "·"; margin-right: 8px; color: var(--ink-faint); }
.announce__cta { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 600; }
.announce__cta svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.announce__row:hover .announce__cta svg { transform: translateX(3px); }
.announce__close { flex: none; margin: 0 12px 0 4px; width: 30px; height: 30px; border-radius: 50%; border: none; background: transparent; color: var(--ink-faint); cursor: pointer; display: grid; place-items: center; transition: color .2s, background .2s; }
.announce__close:hover { color: var(--ink); background: rgba(255,255,255,.07); }
.announce__close svg { width: 15px; height: 15px; }
@media (max-width: 640px) {
  .announce__preview { display: none; }
  .announce__row { gap: 10px; padding-left: 16px; }
  .announce__msg { font-size: .85rem; }
}
