/* Landing page sections. Tokens live in site.css. */

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(64px, 8vw, 112px); position: relative; overflow-x: clip; }
.hero::after {
  /* a single soft stage light behind the device, not a gradient wash */
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 900px; height: 900px; right: -200px; top: -160px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 176, 46, .07), transparent);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 26px; justify-items: start; }
.hero h1 { font-size: clamp(2.8rem, 1.6rem + 3.4vw, 4.9rem); line-height: 1; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { color: var(--faint); font-size: var(--step--1); letter-spacing: .02em; }

.load-in > * { animation: rise 1s var(--ease) both; }
.load-in > *:nth-child(2) { animation-delay: .08s; }
.load-in > *:nth-child(3) { animation-delay: .16s; }
.load-in > *:nth-child(4) { animation-delay: .24s; }
.load-in > *:nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.device-stage { margin: 0; display: grid; justify-items: center; gap: 22px; }
.ipad {
  width: 100%; aspect-ratio: 1.43; max-width: 100%;
  padding: 2.2%; border-radius: 4.2% / 6%;
  background: #0a0a0a;
  box-shadow: 0 0 0 1px #34312c, 0 0 0 4px #1a1917, 0 50px 90px -40px rgba(0,0,0,.9), 0 30px 60px -30px rgba(255,176,46,.08);
  animation: float-in 1.4s var(--ease) both .1s;
}
@keyframes float-in { from { opacity: 0; transform: translateY(26px) scale(.985); } }
.screen { width: 100%; height: 100%; background: #131313; border-radius: 1.6% / 2.3%; overflow: hidden; display: flex; flex-direction: column; }
.reader-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 1.1% 2.4%; font-size: clamp(9px, .9vw, 12px); color: #c9c4ba; border-bottom: 1px solid #222;
  white-space: nowrap;
}
.rb-dim { color: #77736b; }
.rb-page { color: #a39e94; }
.spread-viewport { flex: 1; position: relative; overflow: hidden; }
.spread-track { position: absolute; inset: 0; display: flex; transition: transform .38s cubic-bezier(.3,.7,.2,1); will-change: transform; }
.spread { flex: 0 0 100%; height: 100%; display: flex; justify-content: center; align-items: center; gap: 0; padding: 2% 0; }
.page { position: relative; width: 46.5%; height: auto; aspect-ratio: 850 / 1100; background: var(--paper); box-shadow: 0 1px 0 rgba(0,0,0,.4); }
.page canvas { width: 100%; height: 100%; }
.page + .page { box-shadow: inset 1px 0 0 rgba(0,0,0,.08); }
.page svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.pedal { display: flex; gap: 14px; padding: 10px; border-radius: 18px; background: #1a1917; box-shadow: inset 0 0 0 1px #2c2a26, 0 18px 30px -18px rgba(0,0,0,.8); }
.pedal-key {
  width: 74px; height: 46px; border: 0; border-radius: 10px; cursor: pointer; color: var(--muted);
  background: linear-gradient(#2b2925, #232120); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 3px 0 #0d0c0b;
  font: 400 26px/1 var(--display); transition: transform .12s, box-shadow .12s, color .2s;
}
.pedal-key:hover { color: var(--ivory); }
.pedal-key.down { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 0 0 #0d0c0b; color: var(--amber); }
.hint { color: var(--faint); font-size: var(--step--1); }
kbd {
  font: 500 .85em/1 var(--mono); padding: .2em .45em; border-radius: 5px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 1px 0 var(--line); color: var(--ivory);
}

/* ink in the hero */
.ink { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ink-text { font-family: var(--hand); font-weight: 600; }

/* ---------- Audience band ---------- */
.audience-band { border-block: 1px solid var(--line); padding-block: 26px; }
.audience-band .wrap { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: center; justify-content: space-between; }
.audience-band p { font: italic 400 var(--step-1)/1.3 var(--display); color: var(--ivory); }
.audience-band ul { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; color: var(--muted); font-size: var(--step--1); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.split.reverse .split-copy { order: 2; }
.split-copy { display: grid; gap: 24px; align-content: start; }
.ticks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 16px; }
.ticks li { padding-left: 28px; position: relative; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .72em; width: 14px; height: 1px; background: var(--amber); }
.ticks strong { color: var(--ivory); font-weight: 600; }

.turn-card {
  max-width: 440px; margin-inline: auto; border-radius: 18px; overflow: hidden;
  background: var(--stage-2); border: 1px solid var(--line);
  box-shadow: 0 40px 80px -50px rgba(0,0,0,.9);
}
.tc-row { display: flex; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.tc-k { color: var(--muted); font-size: var(--step--1); letter-spacing: .06em; text-transform: uppercase; }
.tc-v { color: var(--ivory); }
.tc-test { display: grid; place-items: center; gap: 8px; padding: 38px 22px 42px; text-align: center; }
.tc-test .mono { color: var(--muted); font-size: var(--step--1); letter-spacing: .1em; text-transform: uppercase; }
.tc-page { font: 500 var(--step-3)/1 var(--display); }
.tc-page b { font-weight: 500; color: var(--amber); display: inline-block; min-width: 1.2em; }
.tc-page b.bump { animation: bump .35s var(--ease); }
@keyframes bump { 40% { transform: translateY(-6px); } }

/* ---------- Markings ---------- */
.markings { background: var(--stage-2); border-block: 1px solid var(--line); }
.markings-for { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px; border-radius: 999px; background: var(--stage); border: 1px solid var(--line); justify-self: start; }
.mf-label { color: var(--muted); font-size: var(--step--1); padding: 0 6px 0 10px; letter-spacing: .04em; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  font: 500 .92rem/1 var(--body); color: var(--muted); background: transparent; border: 1px solid var(--line);
  transition: background .25s, color .25s, border-color .25s;
}
.chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
.chip:hover { color: var(--ivory); }
.chip.is-on { background: var(--ivory); color: var(--amber-ink); border-color: var(--ivory); }
.paper-frame {
  position: relative; width: min(100%, 470px); margin-inline: auto; aspect-ratio: 850 / 1100;
  background: var(--paper); border-radius: 4px;
  box-shadow: 0 1px 0 rgba(255,255,255,.04), 0 50px 90px -40px rgba(0,0,0,.95);
  transform: rotate(-1.2deg);
}
.paper-frame canvas, .paper-frame svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mark-group { transition: opacity .45s var(--ease); }
.mark-group.hidden { opacity: 0; }

/* ---------- Playlists + metronome ---------- */
.duo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
.duo-card { display: grid; gap: 20px; align-content: start; padding: clamp(28px, 4vw, 48px); border-radius: 22px; background: var(--stage-2); border: 1px solid var(--line); }
.duo-card h2 { font-size: var(--step-2); }
.duo-card > p { color: var(--muted); }
.playlist { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--line); }
.playlist li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); transition: background .3s; }
.playlist b { display: block; font-weight: 500; }
.playlist em { display: block; font-style: normal; color: var(--muted); font-size: .88rem; }
.pl-n, .pl-p { color: var(--faint); font-size: var(--step--1); }
.playlist li.is-now { background: color-mix(in srgb, var(--amber) 9%, transparent); border-radius: 10px; box-shadow: inset 2px 0 0 var(--amber); }
.playlist li.is-now .pl-n { color: var(--amber); }

.metro { margin-top: 12px; display: grid; gap: 22px; justify-items: center; padding: 30px 20px; border-radius: 18px; background: var(--stage); border: 1px solid var(--line); }
.metro-beats { display: flex; gap: 14px; }
.metro-beats i { width: 12px; height: 12px; border-radius: 50%; background: var(--line); transition: background .08s, transform .08s; }
.metro-beats i.on { background: var(--ivory); transform: scale(1.25); }
.metro-beats i.on:first-child { background: var(--amber); }
.metro-read { display: grid; justify-items: center; gap: 2px; }
.metro-bpm { font: 500 var(--step-3)/1 var(--display); font-variant-numeric: tabular-nums; }
.metro-note { font-family: "Noto Music", var(--display); font-size: .8em; }
.metro-bpm b { font-weight: 500; display: inline-block; min-width: 2.1ch; text-align: left; }
.metro-name { font: italic 400 var(--step-1)/1.2 var(--display); color: var(--muted); }
.metro-ctrl { display: flex; gap: 14px; align-items: center; }
.mbtn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ivory); font-size: 1.4rem; cursor: pointer; transition: border-color .2s; }
.mbtn:hover { border-color: var(--muted); }
.mbtn.play { width: 60px; height: 60px; background: var(--amber); color: var(--amber-ink); border: 0; display: grid; place-items: center; }
.mbtn.play svg { width: 24px; height: 24px; }
.mbtn.play .ic-stop { display: none; }
.mbtn.play[aria-pressed="true"] .ic-stop { display: block; }
.mbtn.play[aria-pressed="true"] .ic-play { display: none; }
.metro-presets { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* ---------- Library ---------- */
.lib-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.lib-mock { border-radius: 18px; background: var(--stage-2); border: 1px solid var(--line); padding: 14px; font-size: .95rem; }
.lib-search { padding: 12px 14px; border-radius: 12px; background: var(--surface); color: var(--faint); margin-bottom: 8px; }
.lib-group, .lib-item { display: flex; justify-content: space-between; gap: 12px; padding: 13px 14px; border-radius: 10px; }
.lib-group span:last-child, .lib-item span:last-child { color: var(--faint); font-size: var(--step--1); }
.lib-group.is-open { background: color-mix(in srgb, var(--amber) 10%, transparent); color: var(--ivory); }
.lib-group.is-open span:last-child { color: var(--amber); }
.lib-item { padding-left: 32px; color: var(--muted); }
.lib-item span:last-child { color: var(--amber) !important; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 40px; margin: 0; }
.facts div { display: grid; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--muted); }

/* ---------- Switch ---------- */
.switch { border-block: 1px solid var(--line); }
.switch-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.switch-grid h2 { margin-top: 20px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.steps li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; align-items: start; padding: 22px; border-radius: 16px; background: var(--stage-2); border: 1px solid var(--line); }
.step-n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--amber); color: var(--amber); }
.steps p { color: #d6d1c8; padding-top: 7px; }

/* ---------- Who ---------- */
.who-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.who-grid article { padding: 30px 28px 10px 0; display: grid; gap: 12px; align-content: start; }
.who-grid article + article { padding-left: 28px; border-left: 1px solid var(--line); }
.who-grid h3 { font: 500 var(--step-2)/1.1 var(--display); }
.who-grid p { color: var(--muted); }

/* ---------- Privacy ---------- */
.privacy-band { background: var(--amber); color: var(--amber-ink); }
.privacy-band h2 em { color: var(--amber-ink); }
.privacy-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 72px; align-items: end; }
.privacy-band .lede { color: #3a2a0c; }
.text-link { display: inline-block; margin-top: 18px; font-weight: 600; text-underline-offset: 4px; }
.privacy-band :focus-visible { outline-color: var(--amber-ink); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq-grid h2 { margin-top: 20px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative; font-weight: 500; font-size: var(--step-1); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 300 1.6rem/1 var(--body); color: var(--muted); transition: transform .3s var(--ease); }
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--amber); }
.faq-list details p { color: var(--muted); padding-bottom: 24px; max-width: 60ch; }
.faq-list a { color: var(--amber); }

/* ---------- Final ---------- */
.final { text-align: center; }
.final-inner { display: grid; justify-items: center; gap: 24px; }
.final-icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 30px 60px -24px rgba(255,176,46,.35); }
.final .lede { margin-inline: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .split, .duo-grid, .lib-grid, .switch-grid, .faq-grid, .privacy-grid { grid-template-columns: minmax(0, 1fr); }
  .split.reverse .split-copy { order: 0; }
  .who-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .who-grid article:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .who-grid, .facts { grid-template-columns: minmax(0, 1fr); }
  .who-grid article + article { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .hero h1 { font-size: 3rem; }
  .pedal-key { width: 64px; }
}

/* ---------- Hero title: plain statement, then the payoff in amber with a pencil stroke under it ---------- */
.hero h1.hero-title { font-size: clamp(2.4rem, 1.3rem + 3vw, 4.3rem); line-height: 1.02; letter-spacing: -0.02em; }
.ht-a { display: block; font-weight: 400; }
.ht-b {
  position: relative; display: inline-block; margin-top: .06em;
  font-weight: 700; font-size: 1.2em; letter-spacing: -0.03em; color: var(--amber); white-space: nowrap;
}
.ht-mark { position: absolute; left: -2%; right: -2%; bottom: -.24em; width: 104%; height: .32em; overflow: visible; }
.ht-mark path {
  fill: none; stroke: var(--amber); stroke-width: 5; stroke-linecap: round; opacity: .85;
  vector-effect: non-scaling-stroke; stroke-dasharray: 420; stroke-dashoffset: 0;
  animation: pencil 1.1s cubic-bezier(.5,.1,.2,1) .9s both;
}
@keyframes pencil { from { stroke-dashoffset: 420; } }
.load-in .hero-title .ht-a { animation: rise 1s var(--ease) both; }
.load-in .hero-title .ht-b { animation: rise 1s var(--ease) .25s both; }
