/* ============================================================
   enScore — enscore.thejonathanv.com
   Warm paper, the icon's vivid gradient, quiet glass.
   Sans-serif throughout, like the app itself.
   ============================================================ */

:root {
  /* From the app icon (AppIcon.icon/icon.json) */
  --amber: #FFAA00;
  --tangerine: #FF7A0D;
  --vermilion: #FF3E28;
  --gold: #FFDE59;

  /* Deep brand (in-app palette) */
  --burnt: #B33000;
  --clay: #7A3E14;

  /* Ground */
  --paper: #FAF4E7;
  --paper-2: #F3EAD7;
  --card: #FFFDF6;
  --ink: #231203;
  --ink-soft: #61503C;
  --line: rgba(35, 18, 3, 0.13);

  /* Night (dark sections) */
  --night: #170B03;
  --night-ink: #FFF4E4;
  --night-soft: #C9A98C;

  --grad: linear-gradient(135deg, var(--amber) 0%, var(--tangerine) 46%, var(--vermilion) 100%);
  --radius: 18px;
  --nav-h: 62px;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --disp: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --hand: "Caveat", "Segoe Script", "Bradley Hand", cursive;

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  position: relative;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
body::before {
  /* faint paper grain */
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 300;
  pointer-events: none;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.26 0 0 0 0 0.15 0 0 0 0 0.05 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: var(--gold); color: var(--ink); }

h1, h2, h3, h4 { margin: 0; font-family: var(--disp); font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; }

section { position: relative; scroll-margin-top: calc(var(--nav-h) + 26px); }
.wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--burnt);
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.section-title {
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  line-height: 1.06;
  margin: 20px 0 0;
  letter-spacing: -0.03em;
}
.section-title em, .display em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  margin-top: 22px;
  max-width: 58ch;
  font-size: clamp(1rem, 1.35vw, 1.13rem);
  color: var(--ink-soft);
}
.lede strong, .feature-copy strong { color: var(--ink); font-weight: 600; }

/* ---------- Glass ---------- */
.glass {
  position: relative;
  background: rgba(255, 253, 247, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 16px 40px -22px rgba(96, 54, 18, 0.4);
}

/* ---------- Nav ---------- */
.nav, .mc-pen, .mc-setlist {
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
}
.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translate(-50%, 0);
  z-index: 60;
  width: min(1080px, calc(100% - 28px));
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 20px;
  border-radius: 999px;
  transition: background .4s ease, box-shadow .4s ease, border-color .4s ease;
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand svg { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 3px 9px -3px rgba(179, 48, 0, 0.45); }
.brand-name { font-family: var(--disp); font-size: 1.22rem; font-weight: 650; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--burnt); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.lang-menu { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 0;
  padding: 8px 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color .2s ease;
}
.lang-btn .lang-globe { width: 15px; height: 15px; opacity: 0.85; flex: none; }
.lang-btn::after {
  content: "";
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
  translate: 0 1px;
  transition: rotate .2s ease;
}
.lang-btn:hover { color: var(--burnt); }
.lang-btn[aria-expanded="true"]::after { rotate: 180deg; }
.nav.on-dark .lang-btn { color: var(--night-soft); }
.nav.on-dark .lang-btn:hover { color: var(--gold); }
.lang-list {
  position: absolute;
  right: 0;
  top: calc(100% + 14px);
  margin: 0;
  padding: 8px;
  list-style: none;
  min-width: 172px;
  border-radius: 16px;
  z-index: 70;
  max-height: min(72vh, 540px);
  overflow: auto;
  background: rgba(255, 252, 245, 0.97);
  border: 1px solid rgba(122, 62, 20, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 24px 56px -20px rgba(70, 38, 10, 0.5);
}
.lang-list[hidden] { display: none; }
.lang-list button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: none;
  border: 0;
  padding: 8px 12px;
  border-radius: 10px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: background-color .15s ease, color .15s ease;
}
.lang-list button:hover { background: rgba(179, 48, 0, 0.08); color: var(--burnt); }
.lang-list button[aria-current="true"] { color: var(--burnt); }
.lang-list button[aria-current="true"]::after {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--burnt);
}
.nav.on-dark {
  background: rgba(30, 17, 7, 0.7);
  border-color: rgba(255, 235, 205, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 235, 205, 0.1), 0 16px 40px -18px rgba(0, 0, 0, 0.55);
}
.nav.on-dark .nav-links a { color: var(--night-soft); }
.nav.on-dark .nav-links a:hover { color: var(--gold); }
.nav.on-dark .brand-name { color: var(--night-ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border: 0;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.005em;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease, color .22s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary {
  color: #fff;
  background: var(--grad);
  box-shadow: 0 12px 26px -14px rgba(198, 52, 10, 0.65);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 32px -14px rgba(198, 52, 10, 0.7); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  color: var(--ink);
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(35, 18, 3, 0.24);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1px rgba(179, 48, 0, 0.55); color: var(--burnt); }
.btn-small { padding: 10px 22px; font-size: 0.88rem; }
.btn-light { background: var(--card); color: var(--ink); box-shadow: 0 12px 28px -14px rgba(70, 24, 0, 0.5); }
.btn-light:hover { transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 96px) 0 0;
  overflow: clip;
}
.hero-bg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; }
.orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
  animation: drift 22s ease-in-out infinite alternate;
}
.orb-a { width: 560px; height: 560px; left: -180px; top: -140px; background: radial-gradient(circle at 35% 35%, var(--amber), transparent 62%); }
.orb-b { width: 660px; height: 660px; right: -220px; top: 40px; background: radial-gradient(circle at 60% 40%, var(--vermilion), transparent 60%); animation-delay: -8s; }
.orb-c { width: 480px; height: 480px; left: 36%; top: 480px; background: radial-gradient(circle at 50% 50%, var(--gold), transparent 62%); opacity: .3; animation-delay: -15s; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(34px, 22px, 0); }
}
.hero-staff {
  position: absolute;
  left: 0; right: 0; top: 210px;
  height: 220px;
  background:
    linear-gradient(var(--line), var(--line)) 0 10%  / 100% 1px no-repeat,
    linear-gradient(var(--line), var(--line)) 0 30%  / 100% 1px no-repeat,
    linear-gradient(var(--line), var(--line)) 0 50%  / 100% 1px no-repeat,
    linear-gradient(var(--line), var(--line)) 0 70%  / 100% 1px no-repeat,
    linear-gradient(var(--line), var(--line)) 0 90%  / 100% 1px no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  opacity: .35;
}

.hero-inner { position: relative; text-align: center; }
.hero-eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--clay);
}
.display {
  margin-top: 26px;
  font-size: clamp(2.9rem, 7.4vw, 6.1rem);
  line-height: 1.02;
  font-weight: 650;
  letter-spacing: -0.035em;
}
.hero-sub {
  margin: 28px auto 0;
  max-width: 60ch;
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  color: var(--ink-soft);
}
.hero-cta { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Hero stage: full-width, portrait device ---------- */
.stage {
  --device-w: 680px;
  position: relative;
  margin: 92px auto 0;
  width: min(1560px, calc(100% - 40px));
  perspective: 2200px;
}
.stage-device {
  position: relative;
  width: min(var(--device-w), 94%);
  margin-inline: auto;
  transform: rotateX(4deg);
  transform-style: preserve-3d;
  filter: drop-shadow(0 44px 58px rgba(96, 34, 2, 0.32));
  transition: transform .25s ease-out;
}
.tablet {
  background: #221912;
  border-radius: 46px;
  padding: 20px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.05);
}
.tablet-screen {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #FFFDF4;
}
.page-wrap { position: relative; }
.page-wrap img { width: 100%; height: auto; display: block; }
.anno-overlay { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; mix-blend-mode: multiply; }
.tab-status {
  position: absolute;
  top: 20px;
  left: 30px;
  right: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: rgba(35, 18, 3, 0.4);
}
.tab-status .batt { width: 23px; height: 12px; border: 1.5px solid rgba(35, 18, 3, 0.4); border-radius: 4px; position: relative; }
.tab-status .batt::before { content: ""; position: absolute; top: 2px; bottom: 2px; left: 2px; right: 7px; background: rgba(35, 18, 3, 0.4); border-radius: 1.5px; }
.tab-status .batt::after { content: ""; position: absolute; right: -4.5px; top: 2.5px; width: 2.5px; height: 6px; background: rgba(35, 18, 3, 0.4); border-radius: 1px; }
.fchip {
  position: absolute;
  z-index: 5;
  padding: 14px 18px;
  border-radius: 16px;
  will-change: transform;
}
.fc-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clay);
  display: block;
  margin-bottom: 7px;
}
.chip-metro { right: max(24px, calc(50% - var(--device-w) / 2 - 180px)); top: 48px; text-align: left; }
.chip-metro .bpm {
  font-family: var(--disp);
  font-size: 1.9rem;
  font-weight: 650;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.chip-metro .bpm .unit { font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; color: var(--ink-soft); }
.chip-metro .pulse {
  display: inline-block;
  width: 8px; height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--burnt);
  animation: beat 0.909s ease-in-out infinite;
  vertical-align: 2px;
}
@keyframes beat { 0%, 100% { opacity: 0.25; } 40% { opacity: 1; } }

.chip-tools {
  left: max(18px, calc(50% - var(--device-w) / 2 - 165px));
  top: 50%;
  translate: 0 -50%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 10px;
}
.tool {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--clay);
}
.tool svg { width: 21px; height: 21px; }
.tool.active {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 14px -6px rgba(198, 52, 10, 0.6);
}

.chip-layers { right: max(20px, calc(50% - var(--device-w) / 2 - 205px)); bottom: 140px; min-width: 206px; }
.layer-row { display: flex; align-items: center; gap: 10px; font-size: 0.86rem; font-weight: 500; padding: 5px 0; color: var(--ink); }
.layer-row .sw { width: 10px; height: 10px; border-radius: 3px; }
.layer-row .on { margin-left: auto; color: var(--burnt); }
.layer-row .on svg { width: 15px; height: 15px; }
.layer-row.off { opacity: 0.38; }

.chip-pedal { left: max(16px, calc(50% - var(--device-w) / 2 - 190px)); bottom: 100px; display: flex; align-items: center; gap: 12px; }
.chip-pedal .fc-ico {
  width: 38px; height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--burnt);
  box-shadow: inset 0 0 0 1px rgba(122, 62, 20, 0.16);
}
.chip-pedal .fc-ico svg { width: 20px; height: 20px; }
.chip-pedal b { display: block; font-size: 0.88rem; font-weight: 600; }
.chip-pedal small { font-size: 0.76rem; color: var(--ink-soft); }

.chip-pages {
  left: 50%;
  bottom: 26px;
  translate: -50% 0;
  padding: 9px 18px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clay);
}

/* ---------- Made for ---------- */
.made-for {
  background: var(--night);
  border-block: 1px solid rgba(255, 222, 89, 0.12);
  padding: 52px 24px;
  text-align: center;
}
.made-for p {
  font-family: var(--disp);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--night-ink);
}

/* ---------- Intro ---------- */
.intro { padding: 130px 0 50px; text-align: center; }
.intro-statement {
  margin: 0 auto;
  max-width: 24ch;
  font-family: var(--disp);
  font-size: clamp(1.8rem, 3.9vw, 3rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.03em;
}
.intro-statement em { font-style: normal; color: var(--burnt); }
.intro .lede { margin-inline: auto; text-align: center; }

/* ---------- Features ---------- */
.features { padding: 60px 0 40px; display: grid; gap: 110px; }
.feature {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
}
.feature:nth-child(even) .feature-visual { order: 2; }
.feature-visual {
  position: relative;
  border-radius: 24px;
  padding: clamp(18px, 3vw, 32px);
  background:
    radial-gradient(120% 120% at 20% 10%, rgba(255, 222, 89, 0.28), transparent 55%),
    radial-gradient(130% 130% at 85% 90%, rgba(255, 62, 40, 0.12), transparent 60%),
    var(--paper-2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  overflow: hidden;
}
.feature-visual > svg { border-radius: 14px; }
.feature-copy h3 {
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  line-height: 1.1;
  margin-top: 18px;
  letter-spacing: -0.025em;
}
.feature-copy p { margin-top: 18px; color: var(--ink-soft); max-width: 52ch; }
.feature-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 11px; }
.feature-list li { display: flex; gap: 12px; align-items: baseline; font-weight: 500; font-size: 0.96rem; }
.feature-list li::before {
  content: "";
  flex: none;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--burnt);
  translate: 0 -2px;
}

/* Real-score feature visuals */
.fv-page {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #FFFDF4;
  box-shadow: inset 0 0 0 1px rgba(74, 49, 21, 0.1), 0 2px 14px rgba(60, 35, 5, 0.12);
}
.fv-page img { width: 100%; height: auto; display: block; }
.fv-overlay { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; }
.fv-hl { mix-blend-mode: multiply; }

/* Feature-visual overlay chips */
.mini-chip { position: absolute; padding: 12px 16px; border-radius: 14px; }
.mc-pen { left: 26px; top: 22px; display: flex; align-items: center; gap: 10px; font-size: 0.86rem; }
.mc-pen b { font-weight: 600; }
.mc-pen svg { width: 17px; height: 17px; color: var(--burnt); }
.mc-setlist { right: 22px; bottom: 22px; min-width: 208px; }
.sl-row { display: flex; justify-content: space-between; gap: 14px; padding: 6px 0; font-size: 0.88rem; font-weight: 500; border-bottom: 1px solid rgba(122, 62, 20, 0.12); }
.sl-row:last-child { border-bottom: 0; }
.sl-row.done { opacity: 0.42; }
.sl-row.now { color: var(--burnt); font-weight: 600; }

/* ---------- Mosaic ---------- */
.mosaic { padding: 90px 0 130px; }
.mosaic-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.mos {
  padding: 26px 24px 24px;
  border-radius: 20px;
  transition: transform .25s ease;
}
.mos:hover { transform: translateY(-2px); }
.mos .mi {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 222, 89, 0.28);
  color: var(--burnt);
  margin-bottom: 16px;
}
.mos .mi svg { width: 21px; height: 21px; }
.mos h4 { font-family: var(--sans); font-size: 1rem; font-weight: 650; letter-spacing: -0.01em; }
.mos p { margin-top: 7px; font-size: 0.87rem; color: var(--ink-soft); line-height: 1.55; }

/* ---------- Sync (dark) ---------- */
.sync {
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(255, 122, 13, 0.14), transparent 70%),
    var(--night);
  color: var(--night-ink);
  padding: 130px 0 140px;
  overflow: clip;
}
.sync .eyebrow { color: var(--gold); }
.sync .section-title { color: var(--night-ink); }
.sync-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.sync .lede { color: var(--night-soft); }
.sync .lede strong { color: var(--night-ink); font-weight: 650; }
.sync-points { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 18px; }
.sync-points li { display: flex; gap: 16px; align-items: flex-start; }
.sync-points .sp-ico {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(255, 222, 89, 0.09);
  box-shadow: inset 0 0 0 1px rgba(255, 222, 89, 0.22);
  color: var(--gold);
}
.sync-points .sp-ico svg { width: 19px; height: 19px; }
.sync-points b { display: block; font-size: 1rem; font-weight: 600; color: var(--night-ink); }
.sync-points p { font-size: 0.9rem; color: var(--night-soft); margin-top: 3px; max-width: 46ch; }
.sync-note {
  margin-top: 34px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--night-soft);
}
.constellation svg { width: 100%; height: auto; }

/* ---------- Platforms ---------- */
.everywhere { padding: 130px 0 40px; }
.plat-grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.plat {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px 26px 24px;
  border-radius: 20px;
  transition: transform .25s ease;
}
a.plat:hover { transform: translateY(-2px); }
.plat-top { display: flex; align-items: center; justify-content: space-between; }
.plat-glyph {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 0 0 1px rgba(122, 62, 20, 0.1);
}
.plat-glyph svg { width: 25px; height: 25px; }
.plat-arrow { color: var(--burnt); opacity: 0; transition: opacity .25s ease; }
a.plat:hover .plat-arrow { opacity: 1; }
.plat h3 { font-size: 1.4rem; letter-spacing: -0.02em; }
.plat .store {
  margin-top: 7px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--burnt);
}
.plat .pnote { margin-top: 10px; font-size: 0.87rem; color: var(--ink-soft); line-height: 1.5; }

/* ---------- Languages ---------- */
.langs { padding: 60px 0 120px; text-align: center; }
.langs-line {
  margin: 34px auto 0;
  max-width: 880px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  column-gap: 16px;
  row-gap: 10px;
  font-family: var(--disp);
  font-size: clamp(1.1rem, 2.2vw, 1.55rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
}
.langs-line button.l {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.langs-line .l { white-space: nowrap; transition: color .25s ease; }
.langs-line .l[aria-current="true"] { color: var(--burnt); }
.langs-line .l[lang="ja"] { font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", sans-serif; }
.langs-line .l[lang="ko"] { font-family: "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; }
.langs-line .l[lang="zh-Hans"] { font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
.langs-line .l[lang="zh-Hant"] { font-family: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif; }
.langs-line .l:hover { color: var(--burnt); }
.langs-line .sp { color: var(--tangerine); }

/* ---------- Finale ---------- */
.finale { padding: 20px 0 140px; }
.finale-panel {
  position: relative;
  border-radius: 32px;
  padding: clamp(60px, 8vw, 104px) clamp(24px, 6vw, 90px);
  text-align: center;
  color: #fff;
  background:
    radial-gradient(120% 160% at 8% -10%, rgba(255, 254, 196, 0.35), transparent 50%),
    linear-gradient(160deg, var(--amber) 0%, var(--tangerine) 42%, var(--vermilion) 100%);
  box-shadow: 0 36px 80px -32px rgba(198, 52, 10, 0.55);
  overflow: hidden;
}
.finale-notes { position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; opacity: 0.1; }
.finale-icon {
  width: 104px; height: 104px;
  margin: 0 auto 34px;
  border-radius: 24px;
  box-shadow: 0 22px 46px -16px rgba(90, 10, 0, 0.55);
}
.finale h2 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 650; letter-spacing: -0.03em; color: #fff; }
.finale p { margin: 18px auto 0; max-width: 46ch; font-size: 1.05rem; color: rgba(255, 248, 238, 0.92); }
.finale-cta { margin-top: 38px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.finale-stores { margin-top: 30px; display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; }
.finale-stores a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 250, 240, 0.92);
  border-bottom: 1px solid rgba(255, 250, 240, 0.35);
  padding-bottom: 3px;
  transition: border-color .2s ease, color .2s ease;
}
.finale-stores a:hover { color: #fff; border-color: #fff; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 46px;
  background: var(--paper-2);
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot-brand p { margin-top: 14px; max-width: 34ch; font-size: 0.9rem; color: var(--ink-soft); }
.foot-col h5 {
  margin: 0 0 16px;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--burnt);
}
.foot-col a { display: block; padding: 5px 0; font-size: 0.92rem; color: var(--ink-soft); transition: color .2s ease; }
.foot-col a:hover { color: var(--burnt); }
.foot-legal {
  margin-top: 54px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* ---------- Per-language type ----------
   The tokens are redefined once per language, so every consumer follows.
   Greek: the served Inter Tight decomposes the tonos, so Greek uses Inter. */
html[lang="el"] { --disp: var(--sans); }
html[lang="ja"] {
  --sans: "Inter", "Yu Gothic UI", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  --disp: "Inter Tight", "Inter", "Yu Gothic UI", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
}
html[lang="ko"] {
  --sans: "Inter", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  --disp: "Inter Tight", "Inter", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
}
html[lang="zh-Hans"] {
  --sans: "Inter", "Microsoft YaHei", "PingFang SC", sans-serif;
  --disp: "Inter Tight", "Inter", "Microsoft YaHei", "PingFang SC", sans-serif;
}
html[lang="zh-Hant"] {
  --sans: "Inter", "Microsoft JhengHei", "PingFang TC", sans-serif;
  --disp: "Inter Tight", "Inter", "Microsoft JhengHei", "PingFang TC", sans-serif;
}
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3, html[lang="ja"] h4, html[lang="ja"] .display, html[lang="ja"] .intro-statement, html[lang="ja"] .made-for p,
html[lang="ko"] h1, html[lang="ko"] h2, html[lang="ko"] h3, html[lang="ko"] h4, html[lang="ko"] .display, html[lang="ko"] .intro-statement, html[lang="ko"] .made-for p,
html[lang="zh-Hans"] h1, html[lang="zh-Hans"] h2, html[lang="zh-Hans"] h3, html[lang="zh-Hans"] h4, html[lang="zh-Hans"] .display, html[lang="zh-Hans"] .intro-statement, html[lang="zh-Hans"] .made-for p,
html[lang="zh-Hant"] h1, html[lang="zh-Hant"] h2, html[lang="zh-Hant"] h3, html[lang="zh-Hant"] h4, html[lang="zh-Hant"] .display, html[lang="zh-Hant"] .intro-statement, html[lang="zh-Hant"] .made-for p {
  letter-spacing: 0;
}
.langs-line [lang="el"], .lang-list [lang="el"] { font-family: var(--sans); }

.svg-hand { font-family: var(--hand); }
.svg-cap { font-family: var(--sans); }

/* ---------- Focus ---------- */
:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--burnt);
  outline-offset: 3px;
  border-radius: 6px;
}
.nav.on-dark :where(a, button):focus-visible,
.sync :where(a, button):focus-visible {
  outline-color: var(--gold);
}

/* ---------- Motion ---------- */
/* Content is visible by default; only a successfully running script may
   hide it for the reveal animation (html.js is added by an inline script). */
[data-reveal] {
  transition: opacity .7s cubic-bezier(.25,.6,.3,1), transform .7s cubic-bezier(.25,.6,.3,1);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
}
[data-reveal].in { opacity: 1; transform: none; }

svg .draw { transition: stroke-dashoffset 1.5s cubic-bezier(.4,0,.2,1) .35s; }
.js svg .draw {
  stroke-dasharray: var(--len, 600);
  stroke-dashoffset: var(--len, 600);
}
svg .draw.drawn { stroke-dashoffset: 0; }
svg .hl-sweep { transform-box: fill-box; transform-origin: left center; transition: transform 1s cubic-bezier(.3,0,.2,1) .5s; }
.js svg .hl-sweep { transform: scaleX(0); }
svg .hl-sweep.drawn { transform: scaleX(1); }

.hp-divider { animation: hp-breathe 6s ease-in-out infinite; }
@keyframes hp-breathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.scan-dash { animation: dashmarch 2s linear infinite; }
@keyframes dashmarch { to { stroke-dashoffset: -36; } }
.imslp-caret { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .mosaic-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .feature { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature-visual { order: 0; }
  .sync-grid { grid-template-columns: 1fr; }
  .plat-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
  .chip-layers, .chip-pedal, .chip-pages { display: none; }
  .chip-tools { padding: 10px 8px; }
  .tool { width: 36px; height: 36px; }
  .tool svg { width: 18px; height: 18px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 36px); }
  .nav { padding: 0 8px 0 14px; }
  .brand { gap: 8px; }
  .brand-name { font-size: 1.05rem; }
  .nav-right { gap: 4px; }
  .lang-btn .lang-cur { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .lang-btn { padding: 8px 4px; }
  .btn-small { padding: 9px 14px; font-size: 0.85rem; }
  .hero { padding-top: calc(var(--nav-h) + 64px); }
  .stage { margin-top: 60px; width: calc(100% - 24px); }
  /* Phones keep two chips, deliberately riding the bezel: the metronome
     over the top-right corner (status-bar chrome, no music under it) and
     the tool rail in the score's left margin. Layers/pedal/pages stay
     hidden (the ≤900px rule): they would sit on the music itself. Over
     imagery the glass needs real blur, unlike the desktop chips. */
  .chip-metro, .chip-tools {
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    backdrop-filter: blur(14px) saturate(1.4);
    background: rgba(255, 253, 247, 0.82);
  }
  .chip-metro { top: -14px; right: 2px; padding: 10px 14px; }
  .chip-metro .fc-label { margin-bottom: 4px; }
  .chip-metro .bpm { font-size: 1.45rem; }
  .chip-tools { left: 6px; padding: 8px 6px; gap: 6px; }
  .tool { width: 32px; height: 32px; border-radius: 10px; }
  .tool svg { width: 16px; height: 16px; }
  .plat-grid, .mosaic-grid { grid-template-columns: 1fr; }
  .finale-panel { border-radius: 24px; }
  .foot-legal { flex-direction: column; }
  .langs-line .sp { margin: 0 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js svg .draw { stroke-dashoffset: 0; }
  .js svg .hl-sweep { transform: none; }
}
