/* Laya – Song Pack landing page
   Built from the Figma file "Laya – Song Pack Landing Page" (page: V4 – Guitar + unlock).
   Base styles are the 390px mobile frame; the min-width: 900px block is the 1440px desktop frame. */

/* ---------- Fonts (critical faces only; italic + mono load via fonts-late.css) ---------- */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/fraunces-latin-full-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/fraunces-latin-ext-full-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("/fonts/dm-sans-latin-opsz-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("/fonts/dm-sans-latin-ext-opsz-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #fbf8f3;
  --alt: #f3eee6;
  --ink: #1e1b16;
  /* Darkened for WCAG AA on --bg / --alt (~4.6:1+) */
  --muted: #4f4940;
  --line: #e4dccf;
  --accent: #1f4d3d;
  --accent-hover: #173b2f;
  --accentsoft: #dfeadf;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  /* Type scale (~6 sizes). Nothing below 14px in UI copy; inputs ≥ 16px. */
  --fs-sm: 0.875rem;    /* 14px — notes, eyebrows, meta */
  --fs-base: 1rem;      /* 16px — body, inputs, buttons */
  --fs-md: 1.125rem;    /* 18px — h3, free title, hero sub */
  --fs-lg: 1.375rem;    /* 22px — card titles */
  --fs-xl: 1.75rem;     /* 28px — section h2 (mobile) */
  --fs-hero: 2.375rem;  /* 38px — hero / large display */
  --fs-price: 3.25rem;  /* 52px — price figure */

  --shadow-card: 0 12px 16px rgba(17, 24, 39, 0.08), 0 1px 1px rgba(17, 24, 39, 0.04);
  --gutter: 20px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-base);
  font-variation-settings: "opsz" 16;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.serif {
  font-family: var(--serif);
  font-weight: 600;
  font-variation-settings: "SOFT" 0, "WONK" 1;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.only-desktop { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 22px;
  border: 0; border-radius: 12px;
  background: var(--accent); color: var(--bg);
  font-weight: 600; font-size: var(--fs-base); line-height: normal;
  text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s ease;
}
.btn:hover { background: var(--accent-hover); }
.btn[disabled] { opacity: 0.7; cursor: progress; }
.btn-block { width: 100%; }
.btn-secondary { background: var(--bg); color: var(--ink); border: 1px solid var(--line); }
.btn-secondary:hover { background: var(--alt); }
.btn-invert { background: var(--bg); color: var(--accent); }
.btn-invert:hover { background: var(--accentsoft); }
.btn-outline { background: transparent; color: var(--bg); border: 1px solid var(--bg); }
.btn-outline:hover { background: rgba(251, 248, 243, 0.12); }

.pill {
  display: inline-flex; align-items: flex-start;
  padding: 4px 10px; border-radius: 100px;
  background: var(--accentsoft); color: var(--accent);
  font-weight: 600; font-size: var(--fs-sm); white-space: nowrap;
}
.eyebrow { font-weight: 600; font-size: var(--fs-sm); color: var(--accent); }
.note { font-size: var(--fs-sm); color: var(--muted); }

/* ---------- Nav ---------- */
.nav { border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding-block: 14px; }
.brand { display: flex; flex-direction: column; gap: 0; text-decoration: none; line-height: 1.15; }
.logo { font-size: var(--fs-md); letter-spacing: -0.4px; white-space: nowrap; }
.brand-tag { font-size: var(--fs-sm); font-weight: 500; color: var(--muted); white-space: nowrap; }
.nav-links { display: none; }
.nav-cta {
  display: none;
  font-weight: 600; font-size: var(--fs-base); color: var(--accent);
  text-decoration: none; white-space: nowrap;
}
.nav-cta:hover { color: var(--accent-hover); }

/* ---------- Hero ---------- */
.hero-grid {
  display: grid;
  grid-template-areas: "copy" "visual" "features" "cta";
  justify-items: center;
  gap: 20px;
  padding-block: 28px 44px;
}
.hero-copy { grid-area: copy; display: flex; flex-direction: column; gap: 10px; text-align: center; width: 100%; }
.hero-title { font-size: var(--fs-hero); line-height: 1.06; letter-spacing: -1.14px; }
.hero-sub { font-style: italic; font-size: var(--fs-md); letter-spacing: -0.19px; color: var(--accent); }
.hero-lede { font-size: var(--fs-base); line-height: 1.55; color: var(--muted); }
.hero-cta {
  grid-area: cta;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  width: 100%;
}
.hero-cta .btn { width: 100%; }
#laya-count {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 4px 0; color: var(--muted); font-size: var(--fs-sm); opacity: 0.85;
}
#laya-count[hidden] { display: none !important; }
#laya-count .lc-dot {
  flex: none; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; opacity: 0.6;
}
#laya-count .lc-text { line-height: 1.35; }
#laya-count strong {
  font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums;
}
.features { grid-area: features; display: flex; align-items: center; gap: 8px; }
.features li {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: var(--fs-sm); letter-spacing: 0.88px; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}
.features li + li::before {
  content: ""; width: 4px; height: 4px; flex: none;
  background: url("/assets/dot-accent-4.svg") center / contain no-repeat;
}

/* Hero visual: one component drawn on a 350 x 370 grid.
   --u is one design pixel, so the whole illustration scales with its box (350px on mobile, 483px on desktop). */
.hero-visual {
  grid-area: visual;
  container-type: inline-size;
  position: relative;
  width: min(350px, 100%);
  aspect-ratio: 350 / 370;
}
.hv { --u: calc(100cqw / 350); position: absolute; inset: 0; }
.hv-backdrop { position: absolute; left: calc(30 * var(--u)); top: calc(48 * var(--u)); width: calc(290 * var(--u)); height: calc(290 * var(--u)); max-width: none; }
.hv-guitar { position: absolute; left: 0; top: calc(8 * var(--u)); width: calc(216 * var(--u)); height: calc(351 * var(--u)); max-width: none; }
.hv-phone {
  position: absolute; left: calc(184 * var(--u)); top: calc(44 * var(--u));
  width: calc(150 * var(--u)); height: calc(300 * var(--u));
  display: flex; flex-direction: column;
  padding: calc(5 * var(--u));
  border-radius: calc(26 * var(--u));
  background: var(--ink);
  filter: drop-shadow(0 calc(20 * var(--u)) calc(24 * var(--u)) rgba(17, 24, 39, 0.22));
}
.hv-screen {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column; gap: calc(8 * var(--u));
  padding-bottom: calc(8 * var(--u));
  border-radius: calc(21 * var(--u));
  background: var(--bg);
  overflow: hidden;
}
.hv-video { flex: none; height: calc(126 * var(--u)); display: flex; align-items: center; justify-content: center; background: var(--accentsoft); }
.hv-play {
  width: calc(32 * var(--u)); height: calc(32 * var(--u));
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--bg);
  filter: drop-shadow(0 calc(1 * var(--u)) calc(1.5 * var(--u)) rgba(17, 24, 39, 0.1));
}
.hv-play img { width: calc(13 * var(--u)); height: calc(13 * var(--u)); }
.hv-title { display: flex; align-items: center; gap: calc(4 * var(--u)); padding-inline: calc(9 * var(--u)); }
.hv-title span:first-child { flex: 1; font-weight: 600; font-size: calc(8 * var(--u)); }
.hv-free {
  padding: calc(2 * var(--u)) calc(5 * var(--u)); border-radius: 100px;
  background: var(--accentsoft); color: var(--accent);
  font-weight: 600; font-size: calc(7 * var(--u)); white-space: nowrap;
}
.hv-tabwrap { padding-inline: calc(9 * var(--u)); }
.hv-tab { position: relative; height: calc(76 * var(--u)); border-radius: calc(6 * var(--u)); background: var(--alt); overflow: hidden; }
.hv-string { position: absolute; left: calc(7 * var(--u)); width: calc(108 * var(--u)); height: calc(0.75 * var(--u)); top: calc(var(--y) * var(--u)); background: var(--muted); opacity: 0.45; }
.hv-playhead { position: absolute; left: calc(52 * var(--u)); top: 0; width: calc(1.5 * var(--u)); height: 100%; background: var(--accent); }
.hv-fret {
  position: absolute; left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u));
  padding-inline: calc(2 * var(--u)); border-radius: calc(2 * var(--u));
  background: var(--alt); color: var(--ink);
  font-family: var(--mono); font-weight: 500; font-size: calc(7 * var(--u)); line-height: normal;
  font-variation-settings: normal;
}
.hv-fret-on { background: var(--accent); color: var(--bg); }
.hv-progress { display: flex; align-items: center; gap: calc(5 * var(--u)); padding-inline: calc(9 * var(--u)); }
.hv-progress img { width: calc(12 * var(--u)); height: calc(12 * var(--u)); }
.hv-bar { height: calc(3 * var(--u)); border-radius: calc(1.5 * var(--u)); background: var(--line); flex: 1; }
.hv-bar-done { flex: none; width: calc(40 * var(--u)); background: var(--accent); }
.hv-speed { display: flex; justify-content: center; gap: calc(4 * var(--u)); padding-inline: calc(9 * var(--u)); }
.hv-speed span {
  padding: calc(3 * var(--u)) calc(8 * var(--u)); border-radius: 100px;
  background: var(--alt); color: var(--muted);
  font-weight: 500; font-size: calc(7 * var(--u)); white-space: nowrap;
}
.hv-speed .hv-speed-on { background: var(--accent); color: var(--bg); }
.hv-chip {
  position: absolute; left: calc(6 * var(--u)); top: calc(322 * var(--u));
  display: flex; align-items: center; gap: calc(7 * var(--u));
  padding: calc(8 * var(--u)) calc(12 * var(--u)); border-radius: 100px;
  background: var(--bg);
  font-weight: 600; font-size: calc(12 * var(--u)); white-space: nowrap;
  filter: drop-shadow(0 calc(12 * var(--u)) calc(16 * var(--u)) rgba(17, 24, 39, 0.08)) drop-shadow(0 calc(1 * var(--u)) calc(1 * var(--u)) rgba(17, 24, 39, 0.04));
}
.hv-chip img { width: calc(8 * var(--u)); height: calc(8 * var(--u)); }

/* Hero media (poster + deferred video when configured) */
.hero-visual-media { width: min(350px, 100%); aspect-ratio: 9 / 16; }
.hv-media {
  position: absolute; inset: 0;
  border-radius: 28px; overflow: hidden;
  background: var(--accentsoft);
  box-shadow: var(--shadow-card);
}
.hv-poster, .hv-clip {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.hv-clip { opacity: 0; transition: opacity 0.4s ease; }
.hv-clip.is-ready { opacity: 1; }
@media (min-width: 900px) {
  .hero-visual-media { width: min(360px, 100%); }
}


/* ---------- Sections ---------- */
.section { padding-block: 48px; content-visibility: auto; contain-intrinsic-size: auto 720px; }
.section-alt { background: var(--alt); }
.hero { content-visibility: visible; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.heading { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.h2 { font-size: var(--fs-xl); line-height: 1.18; letter-spacing: -0.7px; }
.heading-lede { font-size: var(--fs-base); line-height: 1.55; color: var(--muted); }

/* The pack */
.pack-card {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  padding: 28px 18px 18px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-card);
}
.pack-song-list {
  width: 100%;
  margin: 0;
  padding: 0 4px;
  list-style: none;
}
.pack-song-list .song-row-public {
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s ease;
}
.pack-song-list .song-row-public:hover { background: var(--alt); }
.pack-song-list .song-row-public:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 8px;
}
.pack-song-list .song-title { font-size: var(--fs-base); letter-spacing: -0.01em; }
.pack-song-list .song-meta { font-size: var(--fs-sm); }
.pack-song-list .song-free,
.pack-song-list .song-vote { flex: none; }
.pack-song-list .song-vote { background: var(--alt); color: var(--accent); }
.pack-card-actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 18px;
  width: 100%;
}
.pack-card .btn { width: 100%; }
.pack-card .link-accent { font-size: var(--fs-base); padding: 8px; }

.free-card {
  display: flex; flex-direction: column; gap: 16px;
  padding: 22px 20px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 16px;
  scroll-margin-top: 24px;
}
.free-copy { display: flex; flex-direction: column; gap: 4px; }
.free-title { font-weight: 600; font-size: var(--fs-md); letter-spacing: -0.285px; }
.free-text { font-size: var(--fs-base); line-height: 1.5; color: var(--muted); }
.free-form { display: flex; flex-direction: column; gap: 10px; }
.free-fields { display: flex; flex-direction: column; gap: 10px; }
.input {
  display: flex; align-items: center; gap: 10px;
  height: 50px; padding-inline: 14px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
}
.input:focus-within { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 1px; }
.input-prefix { font-weight: 500; font-size: var(--fs-base); }
.input-rule { width: 1px; height: 18px; background: var(--line); flex: none; }
.input input {
  flex: 1; min-width: 0; height: 100%; width: 100%;
  border: 0; outline: 0; background: transparent;
  font-size: var(--fs-base); font-variation-settings: "opsz" 16;
}
.input input::placeholder { color: var(--muted); opacity: 1; }
.form-status { font-size: var(--fs-sm); line-height: 1.5; color: var(--muted); }
.form-status.is-error { color: #9a3412; }
.form-status.is-ok { color: var(--accent); font-weight: 500; }
.form-status a { font-weight: 600; }

/* How it works */
.steps { display: flex; flex-direction: column; gap: 12px; }
.step { display: flex; align-items: flex-start; gap: 14px; padding: 18px; background: var(--alt); border-radius: 16px; }
.step-num {
  flex: none; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--accentsoft); color: var(--accent);
  font-weight: 700; font-size: var(--fs-base);
}
.step-text { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.h3 { font-size: var(--fs-md); letter-spacing: -0.27px; line-height: normal; }
.body { font-size: var(--fs-base); line-height: 1.5; color: var(--muted); }
.body-loose { line-height: 1.55; }

.tab-card { display: flex; flex-direction: column; gap: 16px; padding: 18px; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; }
.tab { position: relative; width: 100%; height: 124px; background: var(--alt); border-radius: 12px; overflow: hidden; font-family: var(--mono); font-weight: 500; font-variation-settings: normal; }
.tab-label { position: absolute; left: 12px; top: calc(var(--y) * 1px - 7px); font-size: var(--fs-sm); line-height: normal; color: var(--muted); }
.tab-string { position: absolute; left: 30px; right: 14px; top: calc(var(--y) * 1px); height: 1px; background: var(--muted); opacity: 0.4; }
.tab-fret {
  position: absolute;
  left: calc(21px + (100% - 44px) * var(--f)); top: calc(var(--y) * 1px - 9.5px);
  padding: 1px 5px; border-radius: 5px;
  background: var(--alt); color: var(--ink);
  font-size: var(--fs-sm); line-height: normal;
}
.tab-fret-on { background: var(--accent); color: var(--bg); }
.tab-text { display: flex; flex-direction: column; gap: 6px; }

/* Why Laya + Count my guitar in */
.duo-why { align-items: stretch; }
.why-copy { display: flex; flex-direction: column; gap: 14px; }
.why-title { text-align: left; }
.why-line { font-style: italic; font-size: var(--fs-md); letter-spacing: -0.2px; color: var(--accent); line-height: 1.3; }
.join-card {
  display: flex; flex-direction: column; gap: 12px; text-align: left;
  padding: 28px 22px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-card);
}
.join-card-embed {
  padding: 0; overflow: hidden; background: transparent; border: 0; box-shadow: none;
}
.guitar-frame {
  width: 100%; min-height: 720px; border: 0; border-radius: 20px;
  background: transparent; display: block;
}
.join-title { font-size: var(--fs-lg); letter-spacing: -0.33px; }
.join-text { font-size: var(--fs-base); line-height: 1.5; color: var(--muted); }
.lg-count {
  margin: 0; font-size: var(--fs-hero); line-height: 1.05; letter-spacing: -1.2px; color: var(--accent);
}
.lg-form { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.lg-drop {
  display: block; padding: 18px; cursor: pointer; text-align: center;
  border: 1.5px dashed var(--line); border-radius: 12px;
  color: var(--muted); font-size: var(--fs-sm); line-height: 1.45;
  background: var(--bg);
}
.lg-drop:hover { border-color: var(--accent); color: var(--ink); }
.lg-drop img { max-width: 100%; max-height: 180px; border-radius: 8px; display: block; margin: 0 auto; }
.lg-email {
  width: 100%; box-sizing: border-box; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg); font-size: var(--fs-base); font-variation-settings: "opsz" 16;
}
.lg-email:focus { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 1px; }
.lg-email::placeholder { color: var(--muted); opacity: 1; }
.lg-consent {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: var(--fs-sm); line-height: 1.45; color: var(--muted); text-align: left;
}
.lg-consent input { flex: none; margin-top: 2px; accent-color: var(--accent); }
.lg-consent a { color: var(--accent); font-weight: 600; }
.lg-msg { min-height: 1.2em; margin: 0; }
.lg-msg.is-error { color: #9a3412; }
.lg-msg.is-ok { color: var(--accent); font-weight: 500; }
.lg-song { display: inline-flex; margin-top: 4px; font-weight: 600; color: var(--accent); text-decoration: none; }
.lg-song:hover { color: var(--accent-hover); }
.lg-success { display: flex; flex-direction: column; gap: 10px; }

/* Song demand picker */
.stack-demand { gap: 24px; }
.demand-picker { width: min(880px, 100%); margin-inline: auto; display: flex; flex-direction: column; gap: 10px; }
.demand-search-wrap { position: relative; }
.demand-search {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
}
.demand-search:focus-within { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 1px; }
.demand-search img { flex: none; width: 18px; height: 18px; }
.demand-search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font-size: var(--fs-base); font-variation-settings: "opsz" 16;
}
.demand-search input::placeholder { color: var(--muted); opacity: 1; }
.demand-hint { text-align: center; }
.demand-suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 5;
  margin: 0; padding: 6px 0;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-card); max-height: 280px; overflow-y: auto;
}
.demand-suggest li { display: flex; align-items: center; gap: 12px; width: 100%; }
.demand-suggest button, .demand-suggest .demand-add-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px 16px; border: 0; background: transparent; text-align: left; cursor: pointer;
}
.demand-suggest button:hover, .demand-suggest .demand-add-row:hover { background: var(--alt); }
.demand-suggest-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.demand-suggest-title { font-weight: 600; font-size: var(--fs-base); }
.demand-suggest-meta { font-size: var(--fs-sm); color: var(--muted); }
.demand-suggest-count { flex: none; font-size: var(--fs-sm); color: var(--muted); white-space: nowrap; }
.demand-add-row { font-weight: 600; font-size: var(--fs-base); color: var(--accent); }

.vote-card {
  width: min(880px, 100%); margin-inline: auto;
  background: var(--bg); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-card); overflow: hidden;
}
.vote-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 20px; border-bottom: 1px solid var(--line);
}
.vote-head-title { font-weight: 600; font-size: var(--fs-sm); }
.vote-list { margin: 0; padding: 0; list-style: none; }
.vote-row {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.vote-row:last-child { border-bottom: 0; }
.vote-rank { flex: none; width: 20px; font-family: var(--serif); font-weight: 600; font-size: var(--fs-md); color: var(--muted); font-variation-settings: "SOFT" 0, "WONK" 1; }
.vote-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vote-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vote-title { font-weight: 600; font-size: var(--fs-base); }
.vote-meta { font-size: var(--fs-sm); color: var(--muted); }
.vote-btn {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg); font-weight: 600; font-size: var(--fs-sm); white-space: nowrap;
}
.vote-btn img { width: 10px; height: 8px; }
.vote-btn .vote-n { color: var(--muted); }
.vote-btn.is-voted { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.vote-btn.is-voted .vote-n { color: var(--bg); }
.vote-btn:disabled { opacity: 1; cursor: default; }
.demand-actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px;
  width: min(880px, 100%); margin-inline: auto;
}
.link-accent {
  border: 0; background: transparent; padding: 0;
  font-weight: 600; font-size: var(--fs-base); color: var(--accent); cursor: pointer;
}
.link-accent:hover { color: var(--accent-hover); }

.pick-card {
  width: min(560px, 100%); margin-inline: auto;
  display: flex; flex-direction: column; gap: 14px;
  padding: 28px 22px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-card); text-align: center;
}
.pick-card .join-title { text-align: center; }
.pick-song { display: flex; flex-direction: column; gap: 4px; }
.pick-song strong { font-size: var(--fs-md); }
.pick-card .btn-block { width: 100%; }

/* Stories */
.stack-stories { gap: 28px; }
.story-cards {
  display: flex; flex-direction: column; gap: 16px;
  width: 100%; margin: 0; padding: 0; list-style: none;
}
.story-card {
  display: flex; flex-direction: column; gap: 12px;
  min-height: 0; padding: 24px 22px;
  background: var(--alt); border-radius: 16px;
}
.story-card.is-founder {
  background: var(--accentsoft);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
}
.story-card.is-cta {
  background: transparent;
  border: 1px dashed var(--line);
  padding: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.story-card.is-cta:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accentsoft) 55%, transparent);
}
.story-cta-link {
  display: flex; flex-direction: column; gap: 12px; justify-content: center;
  flex: 1; min-height: 100%; padding: 24px 22px;
  text-decoration: none; color: inherit; border-radius: 16px;
}
.story-cta-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.story-label {
  font-weight: 600; font-size: var(--fs-sm); letter-spacing: 0.88px;
  text-transform: uppercase; color: var(--accent);
}
.story-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--fs-md);
  letter-spacing: -0.18px;
  line-height: 1.35;
  margin: 0;
  color: var(--ink);
}
.story-by { font-weight: 600; font-size: var(--fs-sm); margin-top: auto; color: var(--ink); }
.story-meta { font-weight: 500; font-size: var(--fs-sm); color: var(--muted); }
.story-cta-title {
  font-family: var(--serif);
  font-size: var(--fs-md);
  letter-spacing: -0.2px;
  line-height: 1.25;
  margin: 0;
  color: var(--accent);
}
.story-cta-hint { margin: 0; font-size: var(--fs-sm); color: var(--muted); line-height: 1.45; }
.stories-actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px;
}

/* Who it's for + teacher */
.duo { display: flex; flex-direction: column; gap: 16px; }
.card { display: flex; flex-direction: column; gap: 16px; padding: 24px 22px; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; }
.card-title { font-size: var(--fs-lg); line-height: 1.22; letter-spacing: -0.44px; }
.checks { display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; align-items: flex-start; gap: 10px; font-size: var(--fs-base); line-height: 1.5; }
.checks li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px;
  background: url("/assets/check.svg") center / 18px 18px no-repeat;
}
.teacher-row { display: flex; align-items: center; gap: 14px; }
.teacher-photo {
  flex: none; width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--alt); border: 1px solid var(--line);
  font-weight: 500; font-size: var(--fs-sm); color: var(--muted);
  overflow: hidden;
}
.teacher-photo img { width: 100%; height: 100%; object-fit: cover; }
.teacher-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.teacher-name { font-size: var(--fs-md); letter-spacing: -0.4px; }
.teacher-role { font-size: var(--fs-sm); color: var(--muted); }

/* Price */
.price-card {
  display: flex; flex-direction: column; gap: 24px;
  padding: 26px 22px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-card);
}
.offer { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.offer .btn { width: 100%; }
.product-name { font-weight: 500; font-size: var(--fs-base); color: var(--muted); }
.price-row { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.price { font-size: var(--fs-price); line-height: 1.05; letter-spacing: -1.56px; }
.price-unit { font-size: var(--fs-base); color: var(--muted); }
.included { display: flex; flex-direction: column; gap: 12px; padding: 20px 18px; background: var(--alt); border-radius: 12px; }
.included-title { font-weight: 600; font-size: var(--fs-base); }
.included .checks { gap: 12px; }

/* FAQ */
.faq { padding-block: 0 48px; }
.faq-grid { display: flex; flex-direction: column; gap: 12px; }
.faq-head { display: flex; flex-direction: column; gap: 8px; }
.faq-item { border-bottom: 1px solid var(--line); padding-block: 16px; }
.faq-item summary {
  display: flex; align-items: center; gap: 12px;
  list-style: none; cursor: pointer;
  font-weight: 600; font-size: var(--fs-base); line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary span,
.faq-item summary h3 { flex: 1; min-width: 0; font: inherit; font-weight: 600; }
.faq-item summary img { flex: none; width: 20px; height: 20px; }
.faq-item .i-minus { display: none; }
.faq-item[open] .i-minus { display: block; }
.faq-item[open] .i-plus { display: none; }
.faq-item p { margin-top: 8px; font-size: var(--fs-base); line-height: 1.6; color: var(--muted); }

/* Final CTA */
.final { background: var(--accent); padding-block: 48px; }
.final-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.final-title { font-size: var(--fs-xl); line-height: 1.18; letter-spacing: -0.7px; color: var(--bg); text-align: center; }
.final-line { font-size: var(--fs-md); line-height: 1.4; color: var(--bg); text-align: center; opacity: 0.92; }
.final-actions { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.final :focus-visible { outline-color: var(--bg); }

/* Footer */
.footer-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-block: 28px; }
.footer-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; white-space: nowrap; }
.footer-logo { font-size: var(--fs-md); letter-spacing: -0.36px; }
.footer-tag { font-size: var(--fs-sm); color: var(--muted); }
.footer-copy { font-size: var(--fs-sm); color: var(--muted); }
.footer-crew { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.footer-social, .footer-legal {
  display: flex; flex-wrap: wrap; gap: 10px 16px;
  font-size: var(--fs-sm);
}
.footer-social a, .footer-legal a { color: var(--muted); text-decoration: none; }
.footer-social a:hover, .footer-legal a:hover { color: var(--accent); }
.checkout-legal { margin-top: 8px; max-width: 28ch; white-space: normal; }
.checkout-legal a { color: var(--accent); }
.has-buybar .footer { padding-bottom: 72px; }

.teacher-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }

/* ---------- Sticky buy bar (mobile) ---------- */
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--bg); border-top: 1px solid var(--line);
  transform: translateY(100%); visibility: hidden;
  transition: transform 0.2s ease, visibility 0s linear 0.2s;
}
.buybar.is-visible { transform: none; visibility: visible; transition-delay: 0s; }
.buybar-price { flex: 1; min-width: 0; display: flex; flex-direction: column; white-space: nowrap; }
.buybar-amount { font-size: var(--fs-md); letter-spacing: -0.4px; }
.buybar-unit { font-size: var(--fs-sm); color: var(--muted); }

/* ---------- Pack opened: bottom sheet (mobile) / pop-up (desktop) ---------- */
.sheet {
  width: 100%; max-width: 100%; max-height: 92dvh;
  margin: auto 0 0; padding: 0;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--line); border-bottom: 0; border-radius: 20px 20px 0 0;
  box-shadow: 0 24px 64px rgba(17, 24, 39, 0.18);
  overflow: hidden;
}
.sheet[open] { display: flex; flex-direction: column; animation: sheet-up 0.22s ease; }
.sheet::backdrop { background: rgba(30, 27, 22, 0.45); }
@keyframes sheet-up { from { transform: translateY(24px); opacity: 0; } }
.sheet-handle { flex: none; height: 12px; display: flex; justify-content: center; align-items: flex-end; }
.sheet-handle::before { content: ""; width: 36px; height: 4px; border-radius: 2px; background: var(--line); }
.sheet-head { flex: none; display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.sheet-title-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sheet-title { font-size: var(--fs-md); letter-spacing: -0.4px; }
.sheet-sub { font-size: var(--fs-sm); color: var(--muted); }
.sheet-close { flex: none; width: 36px; height: 36px; padding: 0; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: var(--alt); }
.sheet-close img { width: 16px; height: 16px; }
.sheet-songs { flex: 1; min-height: 0; overflow-y: auto; padding-inline: 20px; overscroll-behavior: contain; }
.sheet-foot { flex: none; display: flex; align-items: center; gap: 12px; padding: 15px 20px calc(15px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.sheet-price { flex: 1; min-width: 0; display: flex; flex-direction: column; white-space: nowrap; }
.sheet-amount { font-size: var(--fs-lg); letter-spacing: -0.44px; }

.song-row { display: flex; align-items: center; gap: 14px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.song-row:last-child { border-bottom: 0; }
.song-num { flex: none; width: 20px; font-weight: 500; font-size: var(--fs-sm); color: var(--muted); }
.song-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.song-title { font-weight: 600; font-size: var(--fs-base); }
.song-meta { font-size: var(--fs-sm); color: var(--muted); }
.song-free { padding: 4px 9px; }
.song-play, .song-lock { flex: none; width: 32px; height: 32px; padding: 0; display: flex; align-items: center; justify-content: center; border: 0; background: transparent; text-decoration: none; }
.song-play { border-radius: 50%; background: var(--accent); }
.song-play:hover { background: var(--accent-hover); }
.song-play img { width: 13px; height: 13px; }
.song-lock img { width: 16px; height: 16px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; inset: auto auto 96px 50%; z-index: 40;
  margin: 0; border: 0;
  transform: translateX(-50%);
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 16px; border-radius: 12px;
  background: var(--ink); color: var(--bg);
  font-size: var(--fs-sm); line-height: 1.45; text-align: center;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.25);
}

/* ---------- Mobile layout stays readable on larger phones / small tablets ---------- */
@media (min-width: 600px) and (max-width: 899.98px) {
  :root { --gutter: 32px; }
  .wrap { width: min(560px, 100% - 2 * var(--gutter)); }
  .nav .wrap, .footer .wrap { width: calc(100% - 2 * var(--gutter)); }
}

/* ---------- Desktop (Figma frame: Desktop – 1440) ---------- */
@media (min-width: 900px) {
  :root { --gutter: 40px; }
  .only-desktop { display: inline-flex !important; }
  .only-mobile { display: none !important; }
  .nav-cta.only-desktop { display: inline !important; }

  .nav-inner { padding-block: 16px; }
  .logo { font-size: var(--fs-lg); letter-spacing: -0.44px; }
  .brand-tag { font-size: var(--fs-sm); }
  .nav-links { display: flex; gap: 28px; }
  .nav-links a { font-weight: 500; font-size: var(--fs-sm); color: var(--muted); text-decoration: none; white-space: nowrap; }
  .nav-links a:hover { color: var(--ink); }

  .duo-why { gap: 40px; align-items: center; }
  .why-copy { flex: 1.2 1 0; min-width: 0; gap: 16px; }
  .why-title { font-size: var(--fs-hero); letter-spacing: -0.95px; }
  .why-line { font-size: var(--fs-lg); letter-spacing: -0.24px; }
  .join-card { flex: 0 1 480px; max-width: 480px; padding: 32px; gap: 14px; }
  .lg-count { font-size: var(--fs-hero); letter-spacing: -1.4px; }

  .stack-demand { gap: 32px; }
  .stack-stories { gap: 36px; }
  .story-cards { flex-direction: row; align-items: stretch; gap: 20px; }
  .story-card { flex: 1 1 0; min-width: 0; min-height: 219px; padding: 28px; }
  .story-cta-link { padding: 28px; }
  .story-text { font-size: var(--fs-md); letter-spacing: -0.2px; }
  .story-cta-title { font-size: var(--fs-lg); letter-spacing: -0.22px; }
  .vote-head { padding: 14px 24px; }
  .vote-row { gap: 16px; padding: 18px 24px; }
  .vote-rank { font-size: var(--fs-lg); }
  .vote-title { font-size: var(--fs-base); }
  .vote-btn { font-size: var(--fs-base); }
  .pick-card { padding: 32px; gap: 16px; }

  .hero-grid {
    grid-template-columns: minmax(0, 560fr) minmax(0, 592fr);
    grid-template-rows: 1fr auto auto auto 1fr;
    grid-template-areas: ". visual" "copy visual" "cta visual" "features visual" ". visual";
    justify-items: start; align-items: start;
    gap: 0 48px;
    padding-block: 64px 88px;
  }
  .hero-copy { gap: 20px; text-align: left; }
  .hero-title { font-size: clamp(2.75rem, 4.31vw, 3.875rem); letter-spacing: -0.03em; }
  .hero-sub { font-size: var(--fs-lg); letter-spacing: -0.26px; }
  .hero-lede { font-size: var(--fs-md); }
  .hero-cta {
    flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px;
    width: auto; margin-top: 20px;
  }
  .hero-cta .btn { width: auto; }
  #laya-count {
    flex: 1 1 100%; justify-content: flex-start; padding: 0;
  }
  .features { gap: 10px; margin-top: 20px; }
  .features li { gap: 10px; font-size: var(--fs-sm); letter-spacing: 0.96px; }
  .hero-visual { width: min(483px, 100%); justify-self: center; align-self: center; }

  .section { padding-block: 96px; }
  .stack { gap: 32px; }
  .stack-how { gap: 36px; }
  .h2 { font-size: var(--fs-hero); letter-spacing: -0.95px; }
  .heading-lede { font-size: var(--fs-base); }

  .pack-card { gap: 24px; padding: 40px 32px 32px; }
  .pack-song-list { padding-inline: 8px; }
  .pack-card .btn { width: auto; }

  .free-card { flex-direction: row; align-items: center; gap: 40px; padding: 28px 32px; }
  .free-copy { flex: 1; min-width: 0; }
  .free-title { font-size: var(--fs-lg); letter-spacing: -0.33px; }
  .free-form { flex: none; }
  .free-fields { flex-direction: row; align-items: center; }
  .free-fields .input { width: 280px; }
  .form-status { max-width: 439px; }

  .steps { flex-direction: row; align-items: stretch; gap: 20px; }
  .step { flex: 1 1 0; min-width: 0; flex-direction: column; gap: 16px; padding: 24px; }
  .step-text { flex: none; width: 100%; }
  .h3 { font-size: var(--fs-md); letter-spacing: -0.3px; }
  .tab-card { flex-direction: row; align-items: center; gap: 32px; padding: 28px; }
  .tab { flex: none; width: 340px; }
  .tab-text { flex: 1; min-width: 0; }

  .duo { flex-direction: row; align-items: stretch; gap: 24px; }
  .card { flex: 1 1 0; min-width: 0; gap: 18px; padding: 32px; }
  .card-title { font-size: var(--fs-lg); letter-spacing: -0.52px; }
  .teacher-name { font-size: var(--fs-lg); letter-spacing: -0.44px; }

  .price-card { flex-direction: row; align-items: center; gap: 48px; width: min(880px, 100%); margin-inline: auto; padding: 40px; }
  .offer { flex: 1; min-width: 0; gap: 14px; }
  .offer .btn { width: auto; }
  .price { font-size: var(--fs-price); letter-spacing: -1.92px; }
  .included { flex: none; width: 360px; padding: 24px; }

  .faq { padding-block: 0 96px; }
  .faq-grid { flex-direction: row; align-items: flex-start; gap: 64px; }
  .faq-list { flex: 1; min-width: 0; }
  .faq-item { padding-block: 20px; }
  .faq-item summary { font-size: var(--fs-base); }

  .final { padding-block: 80px; }
  .final-inner { gap: 24px; }
  .final-title { font-size: var(--fs-hero); letter-spacing: -0.95px; }
  .final-actions { flex-direction: row; justify-content: center; width: auto; }

  .footer-stack { padding-block: 36px; gap: 20px; }
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
  .has-buybar .footer { padding-bottom: 0; }
  .buybar { display: none; }

  .sheet {
    width: 560px; max-width: calc(100vw - 48px); max-height: calc(100dvh - 48px);
    margin: auto;
    border-bottom: 1px solid var(--line); border-radius: 20px;
  }
  .sheet[open] { animation-name: sheet-in; }
  .sheet-handle { display: none; }
  .sheet-head { padding: 20px 24px; }
  .sheet-songs { padding-inline: 24px; }
  .sheet-foot { padding: 14px 24px; }

  .toast { bottom: 32px; }
}
@keyframes sheet-in { from { transform: scale(0.98); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sheet[open] { animation: none; }
  .buybar, .btn { transition: none; }
}
