/* Shell styles ported from mockups/site.css. Page stories add their own
   sections (cards, shop, product…) from the same mockup file. */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--white); line-height: 1.55; font-size: 16px; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; } /* components with display:flex/grid must still hide */
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.display { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; line-height: 1.02; }
.blue { color: var(--blue); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gray); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 2px solid transparent; white-space: nowrap; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--light { background: #fff; color: var(--ink); }
.btn--sm { padding: 9px 16px; font-size: 14px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 38px; height: 38px; }
.brand__name { font-family: var(--display); font-size: 24px; letter-spacing: .02em; }
.nav { display: flex; gap: 26px; margin-left: auto; font-weight: 500; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); }
.menu-btn { display: none; margin-left: auto; font-size: 24px; line-height: 1; padding: 8px; background: none; border: 0; color: var(--ink); cursor: pointer; }

/* sections */
.section { padding: 88px 0; }
.section--sky { background: var(--sky); }
.section--ink { background: var(--ink); color: #fff; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.section__head h2 { font-size: 44px; margin: 8px 0 0; }
.section__head p { color: var(--gray); max-width: 520px; margin: 10px 0 0; }
.link-arrow { font-weight: 600; color: var(--blue); white-space: nowrap; }

/* page heads (placeholder home, 404, shop…) */
.page-head { background: var(--sky); padding: 56px 0 40px; }
.page-head h1 { font-size: 56px; margin: 8px 0 10px; }
.page-head p { color: #444; max-width: 620px; margin: 0; font-size: 17px; }
.page-head__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* product cards (mockups/site.css) */
.section--tight { padding: 40px 0 88px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; color: var(--ink); transition: box-shadow .15s; }
.card:hover { box-shadow: 0 12px 28px -14px rgba(17,17,17,.35); }
.card__img { aspect-ratio: 16/9; width: 100%; height: auto; object-fit: cover; background: var(--sky); }
.card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__title { font-weight: 600; font-size: 15px; line-height: 1.35; margin: 0; }
.card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-weight: 700; font-size: 19px; color: var(--blue); }
.price:not([data-tier]) { color: #137A3F; } /* Free */
.price-note { color: var(--gray); font-size: 13px; margin: 0 0 14px; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: #F1F2F4; color: #4B5563; white-space: nowrap; }
.badge--free { background: #E7F8EE; color: #137A3F; }
.empty { color: var(--gray); }

/* shop chips — hidden until shop.js runs (without JS every product shows) */
.chips { display: none; gap: 10px; flex-wrap: wrap; margin: 28px 0 0; }
.js .chips { display: flex; }
.chip { padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--ink); font: inherit; font-weight: 600; font-size: 14px; background: #fff; color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* product page */
.crumbs { font-size: 14px; color: var(--gray); padding-top: 28px; margin: 0; }
.crumbs a:hover { color: var(--blue); }
.product { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; padding: 28px 0 72px; align-items: start; }
.product__cover { border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.product__cover img { width: 100%; height: auto; }
.product h1 { font-size: 30px; line-height: 1.2; margin: 10px 0 14px; font-family: var(--body); font-weight: 700; }
.product .price { font-size: 30px; display: block; margin-bottom: 4px; }
.buy-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 14px 0 24px; display: grid; gap: 12px; }
.buy-box .btn { justify-content: center; font-size: 16px; padding: 15px; cursor: pointer; font-family: inherit; }
.buy-box__note { margin: 0; font-size: 13px; color: var(--gray); text-align: center; }
.included__title { font-size: 16px; margin: 0 0 8px; }
.facts { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 6px; font-size: 14px; color: #444; }
.facts li::before { content: '•'; color: var(--blue); margin-right: 8px; font-weight: 700; }
.desc { color: #333; font-size: 15px; }
.desc h3 { font-size: 17px; margin: 22px 0 8px; }
.desc a { color: var(--blue); text-decoration: underline; }
.notice { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #FFF4E5; border: 1px solid #F5C77E; border-radius: 10px; padding: 10px 14px; margin: 16px 0 0; font-size: 14px; }
.notice__close { background: none; border: 0; font-size: 20px; line-height: 1; cursor: pointer; color: var(--ink); }
.related__title { font-size: 32px; margin: 0; }
.related { margin-bottom: 80px; }

/* homepage (story W4a) — hero and .points from mockups/site.css */
.hero { background: var(--sky); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
/* scales with the screen so "Rhythm & Drumming." stays on one line */
.hero h1 { font-size: clamp(36px, 4.3vw, 60px); margin: 14px 0 18px; }
.hero h1 .blue { display: block; }
.hero__lead { font-size: 19px; color: #333; max-width: 520px; margin: 0 0 24px; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero__note { font-size: 13px; color: var(--gray); margin: 14px 0 0; }
/* three PDF pages fanned out (portrait, A4): the middle one in front */
.page-fan { position: relative; aspect-ratio: 5 / 4; max-width: 560px; justify-self: center; width: 100%; }
.page-fan a { position: absolute; top: 0; width: 46%; transition: transform .15s; }
.page-fan img { width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line); background: #fff; box-shadow: 0 24px 48px -18px rgba(17,17,17,.45); }
.page-fan a:nth-child(1) { left: 0; top: 9%; transform: rotate(-8deg); }
.page-fan a:nth-child(2) { left: 27%; z-index: 2; }
.page-fan a:nth-child(3) { right: 0; top: 9%; transform: rotate(8deg); z-index: 1; }
.page-fan a:nth-child(2):hover { transform: translateY(-6px); }

.points { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.points li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; font-size: 16px; }
.points li::before { content: '✓'; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 13px; display: grid; place-items: center; margin-top: 1px; }

.btn--ghost-light { border-color: #fff; color: #fff; background: transparent; }
.buy-inline { display: inline-flex; margin: 0; }
.buy-inline .btn { cursor: pointer; font-family: inherit; }

.school .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.school .eyebrow { color: #9DB4FF; }
.school h2 { font-size: 52px; margin: 8px 0 10px; }
.school__lead { font-size: 18px; color: #D7DAE0; margin: 0 0 22px; }
.school__price { margin: 0 0 6px; display: flex; align-items: baseline; gap: 10px; }
.school__price .price { font-size: 44px; color: #fff; line-height: 1; }
.school__price span:not(.price) { color: #C9CDD4; font-size: 14px; }
.school .price-note { color: #C9CDD4; }
.school__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.school__cover { justify-self: center; max-width: 420px; }
.school__cover img { width: 100%; height: auto; border-radius: var(--radius); }

.grid--free { grid-template-columns: repeat(5, 1fr); }
.card--free .card__body { gap: 8px; }
.card--free .btn { justify-content: center; margin-top: auto; }
.card__details { font-size: 13px; color: var(--gray); text-align: center; }
.card__details:hover { color: var(--blue); }

.section--tight-top { padding-bottom: 40px; }
.bundles { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.bundle { display: grid; grid-template-columns: 180px 1fr; gap: 22px; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; align-items: center; }
.bundle__cover img { width: 100%; height: auto; border-radius: 10px; }
.bundle h3 { font-size: 19px; line-height: 1.3; margin: 10px 0 6px; }
.bundle p { margin: 0 0 10px; color: #444; font-size: 15px; }
.bundle .price { display: block; font-size: 28px; margin-bottom: 12px; }
.bundle__ctas { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

.browse { padding: 56px 0 64px; }
.browse .section__head { margin-bottom: 24px; }
.type-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.type-tile { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 180px; padding: 28px; border-radius: var(--radius); color: #fff; font-weight: 600; }
.type-tile .display { font-size: 40px; }
.type-tile__icon { width: 56px; height: 56px; margin-bottom: auto; }
.type-tile__icon svg { width: 100%; height: 100%; }
.type-tile--drumming { background: var(--ink); }
.type-tile--rhythm { background: var(--blue); }
.type-tile:hover { filter: brightness(1.1); }

/* /thanks/ and /downloads/ (GNP-999) */
.store .wrap { max-width: 760px; }
.store__status { color: #444; margin: 0 0 16px; }
.store__status--pending { background: #FFF4E5; border: 1px solid #F5C77E; border-radius: 10px; padding: 12px 14px; }
.store__status--error { color: #B42318; }
.store__status--ok { background: #E7F8EE; border: 1px solid #A6E3C0; border-radius: 10px; padding: 12px 14px; color: #137A3F; }
.store-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; }
.store-item__title { font-size: 18px; margin: 0 0 10px; }
.store-item__files { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.store-item__files li { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--line); }
.store-item__files li:first-child { border-top: 0; }
.store-item__files .btn { cursor: pointer; font-family: inherit; }
.store-item__files .store__status { flex-basis: 100%; margin: 0; }
.store-item__name { font-weight: 500; overflow-wrap: anywhere; }
.store-form { display: grid; gap: 12px; max-width: 420px; }
.store-form__title { font-size: 20px; margin: 0; }
.store-form p { margin: 0; }
.store-form label { font-weight: 600; font-size: 14px; }
.store-form input[type=email] { font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; width: 100%; }
.store-form input[type=email]:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.store-form .btn { justify-content: center; cursor: pointer; font-family: inherit; }
.store-form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.store-form__turnstile { min-height: 65px; }
.js .store__nojs { display: none; } /* menu.js sets .js in <head> */

/* footer */
.site-footer { background: var(--ink); color: #C9CDD4; padding: 56px 0 32px; font-size: 14px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 12px; }
.site-footer a { display: block; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .brand__name { color: #fff; }
.site-footer a.brand { display: flex; padding: 0; }
.site-footer .brand img { background: #fff; border-radius: 50%; padding: 2px; }
.quote { font-family: var(--display); color: #fff; font-size: 20px; letter-spacing: .03em; margin-top: 18px; text-transform: uppercase; }
.socials { display: flex; gap: 0 18px; flex-wrap: wrap; }
.legal-row { border-top: 1px solid #2a2a2a; margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* /app/ — the page kept for Google's branding review (W5a) */
.app-page .wrap { max-width: 720px; }
.app-page__logo { width: 160px; height: auto; margin: 0 auto 24px; }
.app-page h1 { font-size: 34px; line-height: 1.2; text-align: center; text-wrap: balance; margin: 0 0 28px; }
.app-page h2 { font-size: 22px; margin: 36px 0 12px; }
.app-page p, .app-page li { font-size: 17px; }
.app-page ul { padding-left: 22px; }
.app-page li + li { margin-top: 6px; }
.app-page p a { color: var(--blue); text-decoration: underline; }
.app-page__links { margin-top: 32px; }
.app-page__links a { white-space: nowrap; }

/* contact (W6) — from mockups/site.css */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.contact__before h2 { font-size: 30px; margin: 0 0 12px; }
.contact__before ul { padding-left: 18px; color: #444; }
.contact__before li + li { margin-top: 6px; }
.contact__before a, .contact__nojs a, .contact-form__note a { color: var(--blue); text-decoration: underline; overflow-wrap: anywhere; }
.contact__email { color: var(--gray); }
.contact__card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: #fff; }
.contact-form { display: grid; gap: 16px; }
.contact-form .field { display: grid; gap: 6px; }
.contact-form label { font-weight: 600; font-size: 14px; }
.contact-form input, .contact-form textarea { font: inherit; padding: 12px 14px; border: 1.5px solid #D1D5DB; border-radius: 10px; background: #fff; width: 100%; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.contact-form [aria-invalid="true"] { border-color: var(--red); }
.contact-form textarea { min-height: 150px; resize: vertical; }
.field__count { margin: 0; font-size: 13px; color: var(--gray); text-align: right; }
.field__error { margin: 0; font-size: 14px; color: #B42318; }
.contact-form .btn { justify-content: center; cursor: pointer; font-family: inherit; }
.contact-form .btn:disabled { opacity: .6; cursor: progress; }
.contact-form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form__turnstile { min-height: 65px; }
.contact-form__note { margin: 0; color: #B42318; }
.contact-form__note:empty { display: none; }
.contact-form small { color: var(--gray); }
.contact-form__sent { margin: 0; background: #E7F8EE; border: 1px solid #A6E3C0; border-radius: 10px; padding: 14px 16px; color: #137A3F; font-weight: 600; }

/* legal pages (W8) — after the app's legal.css: narrow text, rule box, tables that scroll in their own box */
.legal .wrap { max-width: 760px; }
.legal__top { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--gray); margin-bottom: 28px; }
.legal__top a, .legal p a, .legal td a { color: var(--blue); }
.legal p a, .legal td a { text-decoration: underline; overflow-wrap: anywhere; }
.legal h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 48px; line-height: 1.05; margin: 0 0 8px; }
.legal h2 { font-size: 21px; margin: 36px 0 10px; scroll-margin-top: 84px; }
.legal p, .legal li { font-size: 16.5px; }
.legal ul { padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.legal__updated { color: var(--gray); font-size: 14px; margin: 0 0 24px; }
.legal .rule { padding: 12px 16px; border-left: 4px solid var(--blue); background: var(--sky); border-radius: 6px; font-weight: 600; }
.legal__table { overflow-x: auto; margin: 12px 0; border: 1px solid var(--line); border-radius: 8px; }
.legal table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 14.5px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { background: var(--sky); font-weight: 600; }
.legal tr:last-child td { border-bottom: 0; }
.legal__footer { margin-top: 40px; color: var(--gray); font-size: 15px; }

/* phone */
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .site-header .header-cta { display: none; }
  /* With JavaScript the nav folds behind ☰; without it, it simply wraps. */
  .site-header .wrap { flex-wrap: wrap; height: auto; min-height: 60px; gap: 8px 20px; padding-top: 10px; padding-bottom: 10px; }
  .nav { margin-left: 0; flex-wrap: wrap; gap: 6px 18px; }
  .js .menu-btn { display: block; }
  .js .nav { display: none; }
  /* order: 3 puts the open list on its own row under the logo and ☰ */
  .js .site-header.is-open .nav { display: flex; flex-direction: column; order: 3; width: 100%; gap: 0; padding: 0 0 6px; }
  .js .site-header.is-open .nav a { padding: 12px 0; border-top: 1px solid var(--line); font-size: 17px; }
  .section { padding: 60px 0; }
  .section__head { flex-direction: column; align-items: flex-start; }
  .section__head h2 { font-size: 34px; }
  .page-head h1 { font-size: 40px; }
  .app-page h1 { font-size: 27px; }
  .legal h1 { font-size: 36px; }
  .contact { grid-template-columns: 1fr; gap: 28px; }
  .contact__card { padding: 20px 16px; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card__body { padding: 10px 12px 12px; }
  .card__title { font-size: 13px; }
  .card__foot { flex-wrap: wrap; }
  .price { font-size: 17px; }
  .badge { font-size: 10px; padding: 3px 8px; }
  .product { grid-template-columns: 1fr; gap: 20px; padding-top: 16px; }
  .product h1 { font-size: 24px; }
  .product .price { font-size: 26px; }
  .buy-box { padding: 16px; }
  .related__title { font-size: 26px; }
  /* homepage: text and buttons first, then smaller covers */
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; padding-bottom: 48px; }
  .hero h1 { font-size: clamp(34px, 9.8vw, 44px); margin: 10px 0 12px; }
  .hero__lead { font-size: 17px; margin-bottom: 20px; }
  .page-fan { width: 86%; margin: 0 auto 8%; }
  .browse { padding: 32px 0 44px; }
  .school .wrap { grid-template-columns: 1fr; gap: 32px; }
  .school h2 { font-size: 38px; }
  .school__cover { max-width: 320px; }
  .grid--free { grid-template-columns: 1fr 1fr; }
  .bundles, .type-tiles { grid-template-columns: 1fr; gap: 14px; }
  .bundle { grid-template-columns: 110px 1fr; gap: 14px; padding: 14px; }
  .bundle h3 { font-size: 16px; }
  .bundle p { font-size: 14px; }
  .type-tile { min-height: 150px; padding: 20px; }
  .type-tile__icon { width: 44px; height: 44px; }
  .type-tile .display { font-size: 30px; }
}
@media (min-width: 721px) and (max-width: 1000px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .grid--free { grid-template-columns: repeat(3, 1fr); }
  .bundles { grid-template-columns: 1fr; }
}
