:root {
  --ink: #1d1a16;
  --cream: #f6efe3;
  --paper: #fffaf2;
  --orange: #ff5a36;
  --teal: #0f6e66;
  --mustard: #f2b134;
  --plum: #6b3a6e;
  --muted: #6a6157;
  --line: #e4d8c5;
  --head: 'Unbounded', system-ui, sans-serif;
  --body: 'Figtree', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.6 var(--body); color: var(--ink); background: var(--cream); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.1; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.kicker { font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--orange); margin: 0 0 12px; }

/* top bar + header */
.topbar { background: var(--ink); color: var(--cream); font-size: .82rem; font-weight: 600; }
.topbar-in { display: flex; justify-content: center; gap: 34px; padding: 8px 20px; flex-wrap: wrap; }
.topbar-in span::before { content: '✓'; color: var(--mustard); margin-right: 7px; }
.header { position: sticky; top: 0; z-index: 20; background: rgba(246,239,227,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; }
.brand b { color: var(--orange); font-weight: 800; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--orange); }
.cart { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--cream); }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--orange); color: #fff; font-size: .75rem; font-weight: 700; display: grid; place-items: center; transition: transform .2s; }
.cart-count.bump { transform: scale(1.35); }

/* hero */
.hero { padding: 56px 0 70px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -.03em; }
.hl { color: var(--orange); position: relative; white-space: nowrap; }
.hl::after { content: ''; position: absolute; left: 0; right: 0; bottom: .02em; height: .14em; background: var(--mustard); z-index: -1; border-radius: 4px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; margin: 22px 0 28px; }
.search { display: flex; align-items: center; gap: 10px; background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; padding: 6px 6px 6px 18px; max-width: 520px; box-shadow: 5px 5px 0 var(--ink); }
.search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; outline: none; padding: 8px 0; }
.search button { font: 700 .95rem var(--body); border: 0; border-radius: 999px; background: var(--orange); color: #fff; padding: 12px 22px; cursor: pointer; }
.search button:hover { background: var(--ink); }
.hero-side { position: relative; height: 420px; display: grid; place-items: center; }
.hero-side::before { content: ''; position: absolute; width: 340px; height: 340px; border-radius: 50%; background: var(--teal); }
.hero-guitar { position: relative; height: 410px; transform: rotate(14deg); }
.sticker { position: absolute; z-index: 2; font-family: var(--head); font-weight: 700; font-size: .9rem; line-height: 1.15; text-align: center; display: grid; place-items: center; border-radius: 50%; }
.sticker b { font-size: 1.1rem; }
.s1 { width: 128px; height: 128px; background: var(--mustard); top: 20px; left: 0; transform: rotate(-10deg); }
.s2 { width: 104px; height: 104px; background: var(--paper); border: 2px solid var(--ink); bottom: 30px; right: 10px; transform: rotate(8deg); }

/* piano */
.piano-card { margin-top: 48px; background: var(--ink); color: var(--cream); border-radius: 22px; padding: 20px 22px 24px; }
.piano-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.piano-head p { margin: 0; font-size: .95rem; }
.now { font-family: var(--head); color: var(--mustard); min-width: 60px; text-align: right; }
.piano { position: relative; display: flex; height: 150px; user-select: none; -webkit-user-select: none; touch-action: none; }
.key { position: relative; flex: 1; background: var(--paper); border: 0; border-right: 2px solid var(--ink); border-radius: 0 0 8px 8px; cursor: pointer; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 10px; font: 700 .72rem var(--body); color: #a59784; transition: background .08s; }
.key:last-child { border-right: 0; }
.key.black { position: absolute; top: 0; height: 60%; background: #2e2a25; color: #8a7f72; z-index: 2; border: 2px solid var(--ink); border-top: 0; border-radius: 0 0 6px 6px; padding-bottom: 6px; }
.key.on { background: var(--mustard); color: var(--ink); }
.key.black.on { background: var(--orange); color: #fff; }
.key:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }

/* categories */
.cats { padding: 80px 0; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 640px; margin-bottom: 36px; }
.sec-head p:not(.kicker) { color: var(--muted); margin: 12px 0 0; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat { --c: var(--orange); text-decoration: none; border: 2px solid var(--ink); border-radius: 18px; padding: 20px; background: #fff; display: flex; flex-direction: column; gap: 6px; transition: transform .15s, box-shadow .15s; }
.cat svg { width: 46px; height: 46px; color: var(--c); margin-bottom: 18px; }
.cat span { font-size: .85rem; color: var(--muted); }
.cat:hover { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--c); }
.c-teal { --c: var(--teal); } .c-mustard { --c: #d18f0a; } .c-plum { --c: var(--plum); }

/* starter sets */
.sets { padding: 90px 0; background: var(--teal); color: #fff; }
.sec-head.light p:not(.kicker) { color: #cfe6e2; }
.sets .kicker { color: var(--mustard); }
.set-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.set { background: var(--paper); color: var(--ink); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.set-top { position: relative; padding: 26px 20px 20px; min-height: 120px; display: flex; flex-direction: column; justify-content: flex-end; }
.set-top p { margin: 4px 0 0; font-size: .88rem; opacity: .85; }
.t-orange { background: var(--orange); color: #fff; } .t-teal { background: #cfe6e2; } .t-mustard { background: var(--mustard); } .t-plum { background: var(--plum); color: #fff; }
.tag { position: absolute; top: 14px; left: 20px; background: var(--ink); color: #fff; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 3px 9px; border-radius: 999px; }
.set ul { list-style: none; margin: 0; padding: 18px 20px; flex: 1; font-size: .93rem; }
.set li { padding: 6px 0 6px 24px; position: relative; border-bottom: 1px dashed var(--line); }
.set li:last-child { border-bottom: 0; }
.set li::before { content: '♪'; position: absolute; left: 2px; color: var(--orange); font-weight: 700; }
.set-foot { padding: 0 20px 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.price { margin: 0; font-family: var(--head); font-weight: 800; font-size: 1.35rem; }
.price s { font-family: var(--body); font-weight: 500; font-size: .9rem; color: var(--muted); margin-right: 4px; }
.add { font: 700 .88rem var(--body); border: 2px solid var(--ink); background: var(--ink); color: #fff; border-radius: 999px; padding: 10px 16px; cursor: pointer; }
.add:hover { background: var(--orange); border-color: var(--orange); }
.add.done { background: #fff; color: var(--ink); }

/* promise timeline */
.promise { padding: 80px 0; }
.promise-in h2 { text-align: center; margin-bottom: 40px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.timeline::before { content: ''; position: absolute; top: 22px; left: 12.5%; right: 12.5%; border-top: 3px dashed var(--ink); }
.timeline li { text-align: center; padding: 0 10px; position: relative; }
.timeline .t { display: inline-block; position: relative; background: var(--orange); color: #fff; font: 700 .8rem var(--head); padding: 12px 16px; border-radius: 999px; margin-bottom: 14px; }
.timeline li:nth-child(2) .t { background: var(--plum); }
.timeline li:nth-child(3) .t { background: var(--teal); }
.timeline li:nth-child(4) .t { background: var(--mustard); color: var(--ink); }
.timeline b { display: block; font-family: var(--head); font-size: 1.1rem; }
.timeline p { margin: 4px 0 0; color: var(--muted); font-size: .93rem; }

/* advice */
.advice { padding: 20px 0 90px; }
.advice-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: start; }
.size-tool { background: var(--mustard); border-radius: 24px; padding: 34px; }
.size-tool .kicker { color: var(--ink); }
.size-tool > p:not(.kicker) { margin: 12px 0 22px; }
.h-label { display: block; font-weight: 600; margin-bottom: 8px; }
input[type=range] { width: 100%; accent-color: var(--ink); height: 28px; }
.size-result { display: flex; gap: 18px; align-items: center; background: var(--paper); border-radius: 16px; padding: 18px; margin-top: 18px; }
.size-result p { margin: 2px 0 0; color: var(--muted); font-size: .93rem; }
.size-badge { flex: none; width: 72px; height: 72px; border-radius: 50%; background: var(--ink); color: var(--mustard); display: grid; place-items: center; font: 800 1.3rem var(--head); }
.note { font-size: .85rem; margin: 14px 0 0; }
.tips h2 { margin: 6px 0 22px; }
.tips article { display: flex; gap: 18px; padding: 18px 0; border-top: 2px solid var(--ink); }
.tips article span { font: 800 1.4rem var(--head); color: var(--orange); min-width: 40px; }
.tips p { margin: 6px 0 0; color: var(--muted); }

/* faq */
.faq { padding: 90px 0; background: var(--paper); border-top: 1px solid var(--line); }
.faq-in { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; }
.faq-in > div > p { color: var(--muted); }
.contact-card { margin-top: 24px; border: 2px solid var(--ink); border-radius: 18px; padding: 20px 22px; background: #fff; box-shadow: 5px 5px 0 var(--orange); }
.contact-card p { margin: 2px 0; }
.contact-card a { color: var(--teal); font-weight: 700; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq-list summary { cursor: pointer; list-style: none; font-weight: 700; padding: 16px 40px 16px 0; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; right: 4px; top: 10px; font: 700 1.4rem var(--head); color: var(--orange); transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin: 0 0 18px; color: var(--muted); }

/* footer */
.footer { background: var(--ink); color: var(--cream); padding: 44px 0; }
.footer-in { display: grid; grid-template-columns: auto 1fr; gap: 16px 40px; align-items: center; }
.footer nav { display: flex; gap: 22px; justify-content: flex-end; flex-wrap: wrap; }
.footer nav a { text-decoration: none; font-weight: 600; font-size: .92rem; }
.footer nav a:hover { color: var(--mustard); }
.pay, .copy { margin: 0; font-size: .85rem; color: #b5aa9a; }
.copy { text-align: right; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: .95rem; transition: transform .3s; z-index: 50; max-width: calc(100% - 32px); text-align: center; }
.toast.show { transform: translate(-50%, 0); }

@media (max-width: 980px) {
  .cat-grid, .set-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .advice-in, .faq-in { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .cart { margin-left: auto; }
  .topbar-in { gap: 4px 16px; font-size: .75rem; }
  .topbar-in span:nth-child(3) { display: none; }
  .hero { padding: 36px 0 50px; }
  .hero-in { grid-template-columns: 1fr; }
  .hero-side { display: none; }
  .search { box-shadow: 4px 4px 0 var(--ink); }
  .search button { padding: 11px 16px; }
  .piano-card { margin-top: 36px; padding: 16px; }
  .piano { height: 120px; }
  .key { font-size: .6rem; }
  .timeline { grid-template-columns: 1fr 1fr; gap: 30px 0; }
  .timeline::before { display: none; }
  .size-tool { padding: 24px; }
  .footer-in { grid-template-columns: 1fr; }
  .footer nav { justify-content: flex-start; }
  .copy { text-align: left; }
}
@media (max-width: 480px) {
  .cat-grid { gap: 10px; }
  .cat { padding: 16px; }
  .cat svg { width: 38px; height: 38px; margin-bottom: 10px; }
  .cat h3 { font-size: .8rem; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
  .set-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
