/* AudioNest — audionest.app
   Self-contained: the fonts and images are served from this site, so visiting it contacts no one else. */

@font-face { font-family: 'Newsreader'; src: url('fonts/Newsreader-Medium.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('fonts/Newsreader-SemiBold.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('fonts/Newsreader-Italic.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }

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

:root {
  --bg: #07060c;
  --bg-raise: #0e0c16;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-2: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.085);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f5f3fa;
  --muted: #aca6be;
  --faint: #767089;
  /* The accent follows the picker in the Themes section; Lavender to start, like the app. */
  --accent: #b06fe8;
  --accent-rgb: 176, 111, 232;
  --accent-ink: #d4b1f6;
  --on-accent: #ffffff;
  --serif: 'Newsreader', ui-serif, 'New York', 'Iowan Old Style', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', 'Segoe UI', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.5, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
::selection { background: rgba(var(--accent-rgb), 0.38); color: #fff; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Colour changes glide when someone picks a new accent. */
.accent-glide, .accent-glide * { transition: color 0.5s var(--ease), background-color 0.5s var(--ease), border-color 0.5s var(--ease), fill 0.5s var(--ease), stroke 0.5s var(--ease), box-shadow 0.5s var(--ease) !important; }

/* A fine film grain over everything, for a printed rather than flat-digital finish. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(7, 6, 12, 0.72);
  backdrop-filter: saturate(170%) blur(20px);
  -webkit-backdrop-filter: saturate(170%) blur(20px);
  border-bottom-color: var(--line);
}
.header-inner { height: 68px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 23px; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; color: var(--muted); }
.nav a { transition: color 0.25s; }
.nav a:hover { color: var(--text); }
.header-cta { margin-left: 8px; }
@media (max-width: 860px) { .nav { display: none; } .header-cta { margin-left: auto; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.3s var(--spring), box-shadow 0.3s var(--ease), background 0.3s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn-small { height: 38px; padding: 0 16px; font-size: 14px; background: var(--glass-2); border: 1px solid var(--line-2); }
.btn-small:hover { background: rgba(255, 255, 255, 0.11); }
.btn-ghost { height: 58px; padding: 0 22px; font-size: 16px; background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); }
.btn-ghost svg { transition: transform 0.3s var(--spring); }
.btn-ghost:hover svg { transform: translateY(3px); }

/* The App Store button: a dark pill with a slowly turning ring of accent light. */
.btn-store {
  position: relative;
  height: 60px;
  padding: 0 26px 0 18px;
  background: #0d0b13;
  color: var(--text);
  box-shadow: 0 18px 50px -18px rgba(var(--accent-rgb), 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  isolation: isolate;
}
.btn-store::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  z-index: -1;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--angle), rgba(var(--accent-rgb), 1), rgba(255, 255, 255, 0.08) 22%, rgba(var(--accent-rgb), 0.85) 50%, rgba(255, 255, 255, 0.08) 72%, rgba(var(--accent-rgb), 1));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: spin 5s linear infinite;
}
.btn-store:hover { transform: translateY(-2px); box-shadow: 0 26px 60px -18px rgba(var(--accent-rgb), 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.1); }
.btn-store .store-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(160deg, rgba(var(--accent-rgb), 0.95), rgba(var(--accent-rgb), 0.55)); color: var(--on-accent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn-store .store-label { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.btn-store small { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-ink); }
.btn-store strong { font-size: 19px; letter-spacing: -0.01em; }
@keyframes spin { to { --angle: 360deg; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(118px, 15vw, 160px) 0 clamp(40px, 6vw, 80px); overflow: clip; }
.aurora { position: absolute; inset: -10% -20% auto; height: 110%; z-index: -1; filter: blur(90px); opacity: 0.9; pointer-events: none; }
.aurora span { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: drift 22s ease-in-out infinite alternate; }
.aurora .a1 { width: 52vw; height: 52vw; left: 44%; top: -8%; background: radial-gradient(circle, rgba(var(--accent-rgb), 0.55), transparent 65%); }
.aurora .a2 { width: 40vw; height: 40vw; left: 62%; top: 24%; background: radial-gradient(circle, rgba(64, 38, 160, 0.55), transparent 65%); animation-duration: 26s; animation-delay: -6s; }
.aurora .a3 { width: 34vw; height: 34vw; left: 18%; top: 36%; background: radial-gradient(circle, rgba(34, 104, 140, 0.32), transparent 65%); animation-duration: 30s; animation-delay: -12s; }
@keyframes drift { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(-4vw, 3vw, 0) scale(1.08); } 100% { transform: translate3d(3vw, -2vw, 0) scale(0.95); } }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: clamp(32px, 5vw, 72px); }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--glass);
  font-size: 13.5px;
  color: var(--muted);
  backdrop-filter: blur(10px);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.6); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.55); } 70% { box-shadow: 0 0 0 10px rgba(var(--accent-rgb), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); } }
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(48px, 7.4vw, 100px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 24px 0 24px;
  text-wrap: balance;
}
.hero h1 em, h2 em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(100deg, var(--accent-ink), #ffffff 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}
.hero-sub { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.55; color: var(--muted); max-width: 33ch; margin: 0 0 36px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.hero-note { margin-top: 22px; font-size: 14px; color: var(--faint); }

/* ---------- Phone ---------- */
.stage { position: relative; display: grid; place-items: center; perspective: 1600px; min-height: 640px; }
.phone {
  --w: 318px;
  width: var(--w);
  aspect-ratio: 9 / 19.4;
  padding: calc(var(--w) * 0.034);
  border-radius: calc(var(--w) * 0.165);
  background: linear-gradient(150deg, #4a4458 0%, #17151d 22%, #0c0b10 60%, #3a3546 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), inset 0 0 6px 2px rgba(0, 0, 0, 0.8), 0 60px 120px -30px rgba(0, 0, 0, 0.9), 0 40px 90px -40px rgba(var(--accent-rgb), 0.55);
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.9s var(--ease);
}
.phone::before, .phone::after { content: ''; position: absolute; width: 3px; border-radius: 2px; background: #2b2733; }
.phone::before { left: -3px; top: 22%; height: 9%; }
.phone::after { right: -3px; top: 27%; height: 14%; }
.screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--w) * 0.135);
  container-type: inline-size;
  background: #0f1218;
  color: #f4f5f7;
  isolation: isolate;
}
.island { position: absolute; z-index: 20; top: 3.2cqw; left: 50%; transform: translateX(-50%); width: 31cqw; height: 9.2cqw; border-radius: 99px; background: #000; }
.status { position: absolute; z-index: 19; inset: 0 0 auto; height: 15cqw; display: flex; align-items: center; justify-content: space-between; padding: 1.5cqw 8cqw 0 9.5cqw; font-size: 4.6cqw; font-weight: 600; }
.status .sys { display: flex; gap: 1.6cqw; align-items: center; }
.status .bars { display: flex; gap: 0.7cqw; align-items: flex-end; height: 3.4cqw; }
.status .bars i { width: 0.9cqw; background: currentColor; border-radius: 0.3cqw; }
.status .batt { width: 7cqw; height: 3.4cqw; border-radius: 1.1cqw; border: 0.35cqw solid rgba(255, 255, 255, 0.55); padding: 0.4cqw; }
.status .batt span { display: block; height: 100%; width: 78%; border-radius: 0.5cqw; background: currentColor; }
.home-bar { position: absolute; z-index: 20; bottom: 2.4cqw; left: 50%; transform: translateX(-50%); width: 36cqw; height: 1.4cqw; border-radius: 1cqw; background: currentColor; opacity: 0.85; }

/* Player screen */
.player { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 17cqw 7cqw 9cqw; }
.player-backdrop { position: absolute; inset: -20%; z-index: -1; filter: blur(34px) saturate(140%); opacity: 0.75; transform: scale(1.2); }
.player-backdrop svg { width: 100%; height: 100%; }
.player::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 12, 18, 0.25), rgba(10, 12, 18, 0.72) 55%, rgba(10, 12, 18, 0.94)); }
.player-top { display: flex; align-items: center; justify-content: space-between; color: rgba(255, 255, 255, 0.8); font-size: 3.6cqw; font-weight: 600; }
.player-top .grab { width: 10cqw; height: 1.4cqw; border-radius: 1cqw; background: rgba(255, 255, 255, 0.4); margin: 0 auto; }
.player-cover { margin: 7cqw auto 0; width: 78cqw; aspect-ratio: 1; border-radius: 3.8cqw; overflow: hidden; box-shadow: 0 6cqw 12cqw -4cqw rgba(0, 0, 0, 0.8); transition: transform 0.6s var(--spring); }
.player-cover svg { width: 100%; height: 100%; }
.player.paused .player-cover { transform: scale(0.9); }
.player-meta { margin-top: 7cqw; }
.player-title { font-family: var(--serif); font-weight: 600; font-size: 7.6cqw; line-height: 1.1; letter-spacing: -0.01em; }
.player-author { margin-top: 1.2cqw; font-size: 4.2cqw; color: rgba(255, 255, 255, 0.62); }
.player-chapter { margin-top: 1.8cqw; font-size: 3.7cqw; color: var(--accent-ink); font-weight: 600; }
.scrub { margin-top: 5cqw; }
.scrub-track { position: relative; height: 1.5cqw; border-radius: 1cqw; background: rgba(255, 255, 255, 0.16); }
.scrub-fill { position: absolute; inset: 0 auto 0 0; width: 11%; border-radius: inherit; background: #fff; }
.scrub-times { display: flex; justify-content: space-between; margin-top: 2cqw; font-size: 3.3cqw; color: rgba(255, 255, 255, 0.55); font-variant-numeric: tabular-nums; }
.controls { display: flex; align-items: center; justify-content: space-evenly; margin-top: 4cqw; }
.ctl { width: 13cqw; height: 13cqw; display: grid; place-items: center; background: none; border: 0; padding: 0; cursor: pointer; color: #fff; }
.ctl svg { width: 9cqw; height: 9cqw; }
.play { width: 19cqw; height: 19cqw; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #0f1218; border: 0; cursor: pointer; transition: transform 0.3s var(--spring); }
.play:active { transform: scale(0.92); }
.play svg { width: 8cqw; height: 8cqw; }
.chips { display: flex; justify-content: space-between; margin-top: auto; padding-top: 4cqw; }
.chip-p { display: flex; align-items: center; gap: 1.4cqw; padding: 2cqw 3.2cqw; border-radius: 99px; background: rgba(255, 255, 255, 0.1); font-size: 3.4cqw; font-weight: 600; color: rgba(255, 255, 255, 0.85); }
.chip-p svg { width: 4cqw; height: 4cqw; }
.chip-p.accent { color: var(--accent-ink); background: rgba(var(--accent-rgb), 0.2); }

/* Floating cards around the hero phone */
.float {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 16px 11px 11px;
  border-radius: 18px;
  background: rgba(22, 19, 30, 0.72);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.7);
  font-size: 14px;
  line-height: 1.25;
  white-space: nowrap;
  transform: translate3d(calc(var(--mx, 0) * var(--depth, 14px)), calc(var(--my, 0) * var(--depth, 14px)), 0);
  transition: transform 0.6s var(--ease);
}
.float .bob { display: contents; }
.float b { display: block; font-weight: 600; }
.float span.sub { color: var(--muted); font-size: 12.5px; }
.float .ico { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: var(--accent-ink); background: rgba(var(--accent-rgb), 0.18); }
.float .ico svg { width: 18px; height: 18px; }
.f1 { top: 11%; left: -2%; --depth: 22px; animation: bob 7s ease-in-out infinite; }
.f2 { top: 37%; right: -6%; --depth: 30px; animation: bob 8s ease-in-out -2s infinite; }
.f3 { bottom: 18%; left: -6%; --depth: 18px; animation: bob 9s ease-in-out -4s infinite; }
.f4 { bottom: 5%; right: 2%; --depth: 26px; animation: bob 7.5s ease-in-out -1s infinite; }
@keyframes bob { 0%, 100% { margin-top: 0; } 50% { margin-top: -10px; } }

/* ---------- Shelf marquee ---------- */
.shelf { padding: clamp(24px, 4vw, 50px) 0; display: grid; gap: 22px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.shelf-row { overflow: hidden; }
.shelf-track { display: flex; gap: 22px; width: max-content; animation: marquee 80s linear infinite; }
.shelf-row.rev .shelf-track { animation-direction: reverse; animation-duration: 95s; }
.shelf:hover .shelf-track { animation-play-state: paused; }
.shelf .cover { width: clamp(128px, 14vw, 176px); }
@keyframes marquee { to { transform: translateX(-50%); } }
.cover { aspect-ratio: 1; border-radius: 14px; overflow: hidden; flex: none; box-shadow: 0 22px 44px -20px rgba(0, 0, 0, 0.85), inset 0 0 0 1px rgba(255, 255, 255, 0.06); transition: transform 0.5s var(--spring), box-shadow 0.5s var(--ease); background: #1a1822; }
.cover svg { width: 100%; height: 100%; }
.shelf .cover:hover { transform: translateY(-8px) rotate(-1.5deg); box-shadow: 0 34px 60px -22px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(var(--accent-rgb), 0.35); }
.shelf-caption { text-align: center; color: var(--faint); font-size: 13px; margin-top: -6px; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(90px, 12vw, 160px) 0; }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-ink); }
h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 5.2vw, 66px); line-height: 1.02; letter-spacing: -0.025em; margin: 16px 0 20px; text-wrap: balance; }
h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 8px; font-weight: 650; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 44ch; margin: 0; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 70px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.muted { color: var(--muted); }

.card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.018));
  border: 1px solid var(--line);
  padding: 30px;
  isolation: isolate;
}
.card::after { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.5s; background: radial-gradient(420px circle at var(--x, 50%) var(--y, 50%), rgba(var(--accent-rgb), 0.13), transparent 45%); }
.card:hover::after { opacity: 1; }
.card p { color: var(--muted); margin: 0; font-size: 16px; }

/* Sources */
.sources { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.source-art { height: 190px; margin: -6px -6px 22px; border-radius: 20px; position: relative; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, rgba(var(--accent-rgb), 0.16), transparent 70%), rgba(255, 255, 255, 0.02); display: grid; place-items: center; }
.cloud-art { position: relative; width: 190px; height: 130px; }
.cloud-art svg.cloud { position: absolute; inset: 0; margin: auto; width: 150px; color: rgba(255, 255, 255, 0.9); filter: drop-shadow(0 12px 24px rgba(var(--accent-rgb), 0.45)); }
.cloud-art .drop { position: absolute; width: 38px; border-radius: 7px; overflow: hidden; box-shadow: 0 10px 20px -8px #000; animation: fall 3.6s var(--ease) infinite; opacity: 0; }
.cloud-art .drop:nth-child(2) { left: 30px; animation-delay: 0s; }
.cloud-art .drop:nth-child(3) { left: 76px; animation-delay: 1.2s; }
.cloud-art .drop:nth-child(4) { left: 122px; animation-delay: 2.4s; }
@keyframes fall { 0% { transform: translateY(20px) scale(0.6); opacity: 0; } 20% { opacity: 1; } 70% { transform: translateY(96px) scale(1); opacity: 1; } 100% { transform: translateY(120px) scale(1); opacity: 0; } }
.files-art { position: relative; width: 210px; height: 140px; }
.file { position: absolute; top: 34px; width: 64px; height: 80px; border-radius: 10px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)); border: 1px solid var(--line-2); display: grid; place-items: end center; padding-bottom: 12px; font: 700 11px/1 var(--sans); letter-spacing: 0.06em; color: var(--muted); transition: transform 0.7s var(--spring), opacity 0.5s; }
.file::before { content: ''; position: absolute; top: 14px; left: 14px; right: 14px; height: 26px; border-radius: 6px; background: repeating-linear-gradient(90deg, rgba(var(--accent-rgb), 0.9) 0 3px, transparent 3px 6px); -webkit-mask: linear-gradient(90deg, #000, #000); opacity: 0.8; clip-path: polygon(0 60%, 10% 30%, 20% 70%, 30% 10%, 40% 50%, 50% 20%, 60% 80%, 70% 35%, 80% 60%, 90% 25%, 100% 55%, 100% 100%, 0 100%); }
.file.f-a { left: 8px; transform: rotate(-10deg); }
.file.f-b { left: 73px; transform: translateY(-8px); z-index: 2; }
.file.f-c { left: 138px; transform: rotate(10deg); }
.files-art .merged { position: absolute; left: 50%; top: 50%; width: 96px; transform: translate(-50%, -50%) scale(0.6); opacity: 0; transition: transform 0.7s var(--spring) 0.15s, opacity 0.4s 0.15s; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 40px -14px #000; z-index: 3; }
.card:hover .file.f-a, .card.merged-demo .file.f-a { transform: translate(64px, 0) rotate(0) scale(0.8); opacity: 0; }
.card:hover .file.f-c, .card.merged-demo .file.f-c { transform: translate(-64px, 0) rotate(0) scale(0.8); opacity: 0; }
.card:hover .file.f-b, .card.merged-demo .file.f-b { transform: scale(0.8); opacity: 0; }
.card:hover .files-art .merged, .card.merged-demo .files-art .merged { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.spines { display: flex; align-items: flex-end; gap: 5px; height: 128px; padding: 0 10px; border-bottom: 3px solid rgba(255, 255, 255, 0.18); }
.spine { width: 22px; border-radius: 4px 4px 2px 2px; display: grid; place-items: center; writing-mode: vertical-rl; transform: rotate(180deg); font: 600 10.5px/1 var(--serif); letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.85); box-shadow: inset -3px 0 0 rgba(0, 0, 0, 0.2); transition: transform 0.5s var(--spring); }
.card:hover .spine:nth-child(3) { transform: rotate(180deg) translateY(16px); }
.card:hover .spine:nth-child(6) { transform: rotate(180deg) translateY(10px); }

/* Details: before and after */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.split.flip { grid-template-columns: 1.1fr 0.9fr; }
.checklist { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.checklist li svg { flex: none; width: 22px; height: 22px; color: var(--accent); margin-top: 1px; }
.segmented { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); position: relative; }
.segmented button { position: relative; z-index: 1; border: 0; background: none; cursor: pointer; padding: 9px 20px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--muted); transition: color 0.3s; }
.segmented button[aria-pressed='true'] { color: var(--text); }
.segmented .thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); transition: transform 0.5s var(--spring), width 0.5s var(--spring); }
.transform { min-height: 420px; }
.transform-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.panes { position: relative; min-height: 352px; }
.pane { position: absolute; inset: 0; transition: opacity 0.6s var(--ease), transform 0.7s var(--ease), filter 0.6s; }
.pane[hidden] { display: block; opacity: 0; transform: translateY(14px) scale(0.98); filter: blur(6px); pointer-events: none; }
.files-list { font: 13.5px/1 ui-monospace, 'SF Mono', Menlo, monospace; display: grid; gap: 8px; }
.files-list div { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); color: #cfc9dd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.files-list div::before { content: ''; flex: none; width: 16px; height: 18px; border-radius: 3px; border: 1.5px solid var(--faint); }
.files-list .more { color: var(--faint); justify-content: center; border-style: dashed; }
.files-list .more::before { display: none; }
.warns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.warn { font-size: 12.5px; font-weight: 600; padding: 6px 11px; border-radius: 999px; color: #f0b86b; background: rgba(240, 184, 107, 0.1); border: 1px solid rgba(240, 184, 107, 0.2); }
.book-card { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: start; }
.book-card .cover { width: 150px; border-radius: 16px; }
.book-card .title { font-family: var(--serif); font-size: 32px; font-weight: 600; line-height: 1.05; letter-spacing: -0.015em; }
.book-card .by { color: var(--muted); margin-top: 6px; }
.book-card .by b { color: var(--text); font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag { font-size: 12.5px; font-weight: 600; padding: 6px 11px; border-radius: 999px; background: rgba(var(--accent-rgb), 0.14); color: var(--accent-ink); border: 1px solid rgba(var(--accent-rgb), 0.24); }
.tag.plain { background: rgba(255, 255, 255, 0.05); color: var(--muted); border-color: var(--line); }
.chapters-mini { margin-top: 22px; display: grid; gap: 2px; font-size: 14px; }
.chapters-mini div { display: flex; justify-content: space-between; padding: 9px 2px; border-bottom: 1px solid var(--line); color: var(--muted); }
.chapters-mini div b { color: var(--text); font-weight: 500; }
.ai-note { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--faint); }
.ai-note svg { width: 16px; height: 16px; color: var(--accent-ink); }

/* Player demos */
.demos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.demo { display: flex; flex-direction: column; min-height: 400px; }
.demo .demo-ui { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 18px; margin: 4px 0 26px; }
.big-value { font-family: var(--serif); font-weight: 600; font-size: 58px; line-height: 1; letter-spacing: -0.02em; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.dial { position: relative; width: 100%; height: 64px; overflow: hidden; cursor: grab; touch-action: pan-y; -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); }
.dial:active { cursor: grabbing; }
.dial-ticks { position: absolute; top: 12px; left: 50%; display: flex; align-items: flex-start; height: 40px; will-change: transform; }
.dial-ticks i { flex: none; width: 2px; margin-right: 10px; height: 16px; border-radius: 2px; background: rgba(255, 255, 255, 0.28); }
.dial-ticks i.major { height: 30px; background: rgba(255, 255, 255, 0.6); }
.dial-needle { position: absolute; top: 4px; left: 50%; width: 3px; height: 50px; margin-left: -1.5px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.9); }
.dial input { position: absolute; inset: 0; opacity: 0; cursor: grab; }
.quick { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.quick button { min-width: 56px; height: 44px; padding: 0 14px; border-radius: 22px; border: 0; cursor: pointer; background: rgba(255, 255, 255, 0.07); color: #d9d4e6; font-weight: 600; font-size: 15px; transition: background 0.3s, color 0.3s, transform 0.3s var(--spring); }
.quick button:hover { background: rgba(255, 255, 255, 0.12); }
.quick button[aria-pressed='true'] { background: rgba(var(--accent-rgb), 0.22); color: var(--accent-ink); }
.quick button:active { transform: scale(0.94); }
.caption { font-size: 13.5px; color: var(--faint); text-align: center; min-height: 20px; }
.ring { position: relative; width: 170px; height: 170px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { stroke: rgba(255, 255, 255, 0.08); }
.ring .prog { stroke: var(--accent); stroke-linecap: round; filter: drop-shadow(0 0 8px rgba(var(--accent-rgb), 0.6)); transition: stroke-dashoffset 0.25s linear; }
.ring .center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .center strong { display: block; font-family: var(--serif); font-size: 38px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.ring .center span { font-size: 13px; color: var(--muted); }
.row-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: 14px; border: 0; cursor: pointer; background: rgba(255, 255, 255, 0.06); font-weight: 600; font-size: 15px; transition: background 0.3s; }
.row-btn:hover { background: rgba(255, 255, 255, 0.1); }
.row-btn[aria-pressed='true'] { background: rgba(var(--accent-rgb), 0.18); color: var(--accent-ink); }
.marks { width: 100%; display: grid; gap: 10px; }
.mark { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.045); border: 1px solid var(--line); animation: in-mark 0.6s var(--spring); }
.mark .t { flex: none; font: 600 13px/1 var(--sans); font-variant-numeric: tabular-nums; padding: 6px 9px; border-radius: 8px; color: var(--accent-ink); background: rgba(var(--accent-rgb), 0.16); }
.mark .m { min-width: 0; }
.mark .m b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mark .m span { font-size: 13px; color: var(--muted); }
@keyframes in-mark { from { opacity: 0; transform: translateY(-10px) scale(0.96); } }
.add-mark { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 23px; border: 0; cursor: pointer; background: var(--accent); color: var(--on-accent); font-weight: 650; font-size: 15px; box-shadow: 0 14px 30px -12px rgba(var(--accent-rgb), 0.9); transition: transform 0.3s var(--spring); }
.add-mark:active { transform: scale(0.95); }
.more-feats { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 34px; }
.more-feats span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); color: var(--muted); font-size: 14.5px; }
.more-feats svg { width: 16px; height: 16px; color: var(--accent-ink); }

/* Themes playground */
.playground { display: grid; grid-template-columns: auto 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.playground .phone { --w: 300px; }
.home-screen { position: absolute; inset: 0; padding: 16cqw 5.5cqw 0; background: var(--p-bg); color: var(--p-text); transition: background 0.6s var(--ease), color 0.6s var(--ease); }
.home-screen * { transition: background-color 0.6s var(--ease), color 0.6s var(--ease), border-color 0.6s var(--ease); }
.hs-top { display: flex; align-items: center; gap: 2.4cqw; }
.hs-top img { width: 9cqw; height: 9cqw; transition: opacity 0.3s; }
.hs-greet { font-family: var(--serif); font-weight: 600; font-size: 7.4cqw; letter-spacing: -0.01em; }
.hs-avatar { margin-left: auto; width: 9cqw; height: 9cqw; border-radius: 50%; background: rgba(var(--accent-rgb), 0.2); display: grid; place-items: center; color: var(--accent); font: 700 3.6cqw/1 var(--sans); }
.hs-card { margin-top: 5cqw; padding: 3.4cqw; border-radius: 5cqw; background: var(--p-card); border: 1px solid var(--p-border); display: flex; gap: 3.4cqw; align-items: center; box-shadow: 0 3cqw 8cqw -5cqw rgba(0, 0, 0, 0.45); }
.hs-card .cover { width: 22cqw; border-radius: 2.8cqw; box-shadow: none; }
.hs-card .lbl { font-size: 3cqw; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.hs-card .ttl { font-family: var(--serif); font-weight: 600; font-size: 5.4cqw; line-height: 1.1; margin-top: 1cqw; }
.hs-card .aut { font-size: 3.4cqw; color: var(--p-muted); margin-top: 0.6cqw; }
.hs-bar { margin-top: 2.4cqw; height: 1.2cqw; border-radius: 1cqw; background: var(--p-border); overflow: hidden; }
.hs-bar span { display: block; height: 100%; width: 42%; background: var(--accent); border-radius: inherit; }
.hs-left { margin-top: 1.4cqw; font-size: 3cqw; color: var(--p-muted); }
.hs-label { display: flex; justify-content: space-between; align-items: baseline; margin: 6cqw 0 3cqw; }
.hs-label b { font-size: 4.6cqw; font-weight: 700; }
.hs-label span { font-size: 3.4cqw; color: var(--accent); font-weight: 600; }
.hs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3cqw; }
.hs-grid .cover { width: 100%; border-radius: 2.6cqw; position: relative; box-shadow: 0 2cqw 4cqw -2cqw rgba(0, 0, 0, 0.5); }
.hs-grid .fold { position: absolute; top: 0; right: 0; width: 9cqw; height: 9cqw; background: linear-gradient(225deg, var(--accent) 50%, transparent 50%); }
.hs-grid .fold svg { position: absolute; top: 0.9cqw; right: 0.9cqw; width: 3.4cqw; height: 3.4cqw; color: var(--on-accent); }
.hs-tabs { position: absolute; left: 5cqw; right: 5cqw; bottom: 6.5cqw; height: 15cqw; border-radius: 8cqw; display: flex; justify-content: space-around; align-items: center; background: var(--p-card); border: 1px solid var(--p-border); box-shadow: 0 4cqw 10cqw -4cqw rgba(0, 0, 0, 0.5); }
.hs-tabs span { display: grid; place-items: center; gap: 0.6cqw; font-size: 2.5cqw; font-weight: 600; color: var(--p-muted); }
.hs-tabs span.on { color: var(--accent); }
.hs-tabs svg { width: 5.6cqw; height: 5.6cqw; }
.pick-title { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.pick-title span { letter-spacing: 0; text-transform: none; font-size: 15px; font-weight: 600; color: var(--accent-ink); font-family: var(--serif); font-style: italic; }
.themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 34px; }
.theme-opt { border: 0; padding: 0; background: none; cursor: pointer; text-align: left; }
.theme-opt .sw { display: block; aspect-ratio: 4 / 5; border-radius: 16px; position: relative; overflow: hidden; box-shadow: 0 0 0 1px var(--line-2); transition: box-shadow 0.3s, transform 0.4s var(--spring); }
.theme-opt:hover .sw { transform: translateY(-3px); }
.theme-opt[aria-checked='true'] .sw { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.theme-opt .sw i { position: absolute; left: 12%; right: 12%; border-radius: 6px; }
.theme-opt .sw i:nth-child(1) { top: 14%; height: 22%; }
.theme-opt .sw i:nth-child(2) { top: 43%; height: 9%; right: 40%; }
.theme-opt .sw i:nth-child(3) { top: 58%; height: 9%; right: 25%; }
.theme-opt .sw i:nth-child(4) { top: 76%; height: 12%; left: 12%; right: 12%; border-radius: 99px; }
.theme-opt b { display: block; margin-top: 10px; font-size: 14.5px; font-weight: 600; }
.theme-opt small { display: block; color: var(--faint); font-size: 12.5px; }
.accents { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; max-width: 480px; }
.accent-opt { aspect-ratio: 1; border-radius: 50%; border: 0; cursor: pointer; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); transition: transform 0.35s var(--spring), box-shadow 0.3s; position: relative; }
.accent-opt:hover { transform: scale(1.1); }
.accent-opt[aria-checked='true'] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--c), 0 10px 26px -6px var(--c); }
.accent-opt[aria-checked='true']::after { content: ''; position: absolute; inset: 34%; border-radius: 50%; background: rgba(255, 255, 255, 0.92); }
.theme-note { margin-top: 26px; display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 15px; }
.theme-note svg { width: 20px; height: 20px; flex: none; color: var(--accent-ink); }

/* Stats bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.bento .card { padding: 26px; }
.b-goal { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.b-cal { grid-column: span 4; }
.b-streak, .b-level { grid-column: span 2; }
.b-records { grid-column: span 4; }
.stat-label { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.goal-ring { position: relative; width: min(230px, 100%); aspect-ratio: 1; margin: 22px 0 16px; }
.goal-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.goal-ring .prog { stroke: url(#goalGrad); stroke-linecap: round; transition: stroke-dashoffset 1.8s var(--ease); }
.goal-ring .center { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; }
.goal-ring strong { font-family: var(--serif); font-size: 60px; font-weight: 600; line-height: 1; }
.goal-ring span { color: var(--muted); font-size: 15px; }
.trophy { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(232, 184, 74, 0.14); color: #e8b84a; }
.trophy svg { width: 24px; height: 24px; }
.heat { display: grid; grid-template-rows: repeat(7, 1fr); grid-auto-flow: column; grid-auto-columns: 1fr; gap: 5px; margin-top: 20px; }
.heat i { aspect-ratio: 1; border-radius: 4px; background: rgba(255, 255, 255, 0.05); transform: scale(0.4); opacity: 0; transition: transform 0.5s var(--spring), opacity 0.4s, background-color 0.5s; }
.heat.in i { transform: none; opacity: 1; }
.heat-legend { display: flex; justify-content: space-between; margin-top: 12px; font-size: 13px; color: var(--faint); }
.big-num { font-family: var(--serif); font-weight: 600; font-size: 64px; line-height: 1; letter-spacing: -0.02em; margin: 16px 0 6px; font-variant-numeric: tabular-nums; }
.big-num small { font-size: 22px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.flame { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 123, 88, 0.14); color: #ff8a64; }
.flame svg { width: 24px; height: 24px; }
.level-bar { margin-top: 16px; height: 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.level-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.6), var(--accent)); transition: width 1.6s var(--ease) 0.3s; }
.records { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.records div { padding: 16px; border-radius: 18px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); }
.records b { display: block; font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1.1; }
.records span { font-size: 13.5px; color: var(--muted); }

/* Widgets */
.widgets-stage { position: relative; border-radius: 36px; overflow: hidden; padding: clamp(28px, 5vw, 60px); min-height: 420px; display: flex; gap: clamp(20px, 4vw, 44px); align-items: center; justify-content: center; flex-wrap: wrap; background: radial-gradient(80% 90% at 20% 10%, rgba(var(--accent-rgb), 0.55), transparent 60%), radial-gradient(70% 80% at 90% 90%, rgba(60, 40, 150, 0.6), transparent 60%), #120f1c; border: 1px solid var(--line); }
.widget { position: relative; overflow: hidden; border-radius: 30px; color: #fff; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.8); isolation: isolate; transition: transform 0.6s var(--spring); }
.widget:hover { transform: translateY(-6px) rotate(-0.5deg); }
.widget .wbg { position: absolute; inset: -30%; z-index: -2; filter: blur(26px) saturate(140%); }
.widget .wbg svg { width: 100%; height: 100%; }
.widget::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.55)); }
.w-small { width: 170px; height: 170px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; }
.w-small .cover { width: 76px; border-radius: 12px; }
.w-small b { font-size: 14px; font-weight: 650; line-height: 1.2; }
.w-small .w-bar { height: 5px; border-radius: 4px; background: rgba(255, 255, 255, 0.25); margin-top: 8px; overflow: hidden; }
.w-small .w-bar span { display: block; height: 100%; width: 62%; background: #fff; }
.w-large { width: min(364px, 100%); padding: 18px; display: grid; gap: 16px; }
.w-large .row { display: flex; gap: 14px; align-items: center; }
.w-large .cover { width: 110px; border-radius: 16px; }
.w-large .title { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.1; }
.w-large .sub { font-size: 14px; opacity: 0.75; margin-top: 4px; }
.w-large .left { font-size: 13px; opacity: 0.75; margin-top: 10px; }
.w-large .w-bar { height: 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
.w-large .w-bar span { display: block; height: 100%; width: 38%; background: #fff; }
.w-large .up { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.w-large .up .cover { width: 100%; border-radius: 11px; }
.app-tile { display: grid; justify-items: center; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, 0.9); }
.app-tile img { width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.8); }

/* Privacy */
.privacy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.privacy-grid .card { padding: 28px 26px; }
.privacy-grid .p-ico { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 20px; color: var(--accent-ink); background: rgba(var(--accent-rgb), 0.14); border: 1px solid rgba(var(--accent-rgb), 0.22); }
.privacy-grid .p-ico svg { width: 24px; height: 24px; }
.privacy-grid h3 { font-family: var(--serif); font-size: 28px; font-weight: 600; letter-spacing: -0.015em; }
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 34px; font-weight: 600; color: var(--accent-ink); }
.text-link svg { width: 18px; height: 18px; transition: transform 0.3s var(--spring); }
.text-link:hover svg { transform: translateX(4px); }

/* Final call */
.finale { text-align: center; overflow: clip; }
.finale .glow { position: absolute; left: 50%; top: 50%; width: min(900px, 120vw); aspect-ratio: 1; transform: translate(-50%, -50%); z-index: -1; background: radial-gradient(circle, rgba(var(--accent-rgb), 0.35), transparent 60%); filter: blur(40px); }
.finale .app-icon { width: 112px; height: 112px; border-radius: 26px; margin: 0 auto 30px; box-shadow: 0 30px 80px -20px rgba(var(--accent-rgb), 0.9), 0 0 0 1px rgba(255, 255, 255, 0.12); animation: float-icon 6s ease-in-out infinite; }
@keyframes float-icon { 50% { transform: translateY(-10px) rotate(-2deg); } }
.finale h2 { font-size: clamp(44px, 7vw, 92px); }
.finale .lead { margin: 0 auto 38px; }
.finale .hero-note { margin-top: 20px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 38px 0 50px; color: var(--faint); font-size: 14px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--text); }
.site-footer .brand { font-size: 19px; color: var(--text); }
.site-footer .brand img { width: 26px; height: 26px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 300; width: min(460px, calc(100% - 32px)); transform: translate(-50%, 140%); display: flex; gap: 14px; align-items: center; padding: 14px 18px 14px 14px; border-radius: 20px; background: rgba(24, 20, 33, 0.9); border: 1px solid var(--line-2); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8); transition: transform 0.6s var(--spring); }
.toast.show { transform: translate(-50%, 0); }
.toast img { width: 44px; height: 44px; border-radius: 12px; }
.toast b { display: block; font-size: 15px; }
.toast span { font-size: 14px; color: var(--muted); }

/* Scroll reveals */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .stage { min-height: 0; margin-top: 10px; }
  .split, .split.flip { grid-template-columns: 1fr; }
  .split.flip .split-copy { order: -1; }
  .playground { grid-template-columns: 1fr; justify-items: center; }
  .playground .controls-col { width: 100%; max-width: 560px; }
  .sources, .demos { grid-template-columns: 1fr 1fr; }
  .demos .demo:last-child { grid-column: span 2; }
  .privacy-grid { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .b-goal, .b-cal, .b-streak, .b-level, .b-records { grid-column: span 2; grid-row: auto; }
  .b-streak, .b-level { grid-column: span 1; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .phone { --w: min(292px, 76vw); }
  .playground .phone { --w: min(280px, 74vw); }
  .float { font-size: 12.5px; padding: 8px 12px 8px 8px; gap: 8px; border-radius: 14px; }
  .float .ico { width: 28px; height: 28px; border-radius: 9px; }
  .float span.sub { font-size: 11px; }
  .f1 { left: -3%; top: 8%; }
  .f2 { right: -4%; top: 44%; }
  .f3 { display: none; }
  .f4 { right: -2%; bottom: 4%; }
  .sources, .demos, .privacy-grid { grid-template-columns: 1fr; }
  .demos .demo:last-child { grid-column: auto; }
  .bento .b-streak, .bento .b-level { grid-column: span 2; }
  .records { grid-template-columns: 1fr; }
  .themes { grid-template-columns: repeat(2, 1fr); }
  .accents { grid-template-columns: repeat(4, 1fr); max-width: 260px; }
  .book-card { grid-template-columns: 1fr; }
  .book-card .cover { width: 130px; }
  .card { padding: 24px; border-radius: 24px; }
  .btn-store { height: 58px; }
  .demo { min-height: 0; }
  .transform { min-height: 0; }
  .panes { min-height: 470px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .heat i { transform: none; opacity: 1; }
}
