/* ==========================================================================
   Guitar Thing — site styles. Needs tokens.css loaded first.
   Sections: fonts · base · layout · header · footer · buttons & links ·
   home hero · hero facts · content blocks · video · tool cards ·
   tool page + controls · utilities
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL Open Font License — see fonts/) ------ */
@font-face { font-family: "Abril Fatface"; src: url("fonts/abril-fatface-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url("fonts/libre-franklin-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url("fonts/libre-franklin-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("fonts/courier-prime-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("fonts/courier-prime-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Base --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--fs-md)/var(--lh-body) var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; line-height: var(--lh-snug); text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: .005em; }
h2 { font-size: var(--fs-2xl); line-height: 1.08; }
h3 { font-size: var(--fs-xl); font-weight: 700; }
p { margin: 0; }
p, li { text-wrap: pretty; }
a { color: var(--orange-deep); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--orange-deep-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--orange); color: var(--ink); }
.skip-link { position: absolute; left: var(--sp-4); top: -100px; z-index: 50; background: var(--ink); color: var(--cream);
  padding: var(--sp-2) var(--sp-4); border-radius: var(--radius-sm); }
.skip-link:focus { top: var(--sp-4); }

/* ---------- Layout ------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sp-8); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: var(--sp-3); margin-bottom: var(--sp-6); max-width: var(--measure); }
.prose { max-width: var(--measure); display: grid; gap: var(--sp-4); }
.eyebrow { font: 700 var(--fs-xs)/1.3 var(--font-tag); letter-spacing: var(--tracking-tag); text-transform: uppercase; color: var(--tobacco); }
.lede { font-size: var(--fs-lg); line-height: 1.5; }
.fine { font-size: var(--fs-sm); color: var(--muted); }
.stack { display: grid; gap: var(--sp-4); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } .section { padding-block: var(--sp-7); } }

/* ---------- Header ------------------------------------------------------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: var(--sp-3) var(--sp-5); flex-wrap: wrap; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-height: var(--tap); }
.brand:hover { color: var(--ink); }
/* Logo slot: fixed 26×30 box. Drop the real pick logo (<img> or <svg>) inside;
   nothing else in the layout moves. */
.logo-slot { width: 26px; height: 30px; flex: none; display: grid; place-items: center; }
.logo-slot > * { width: 100%; height: 100%; object-fit: contain; }
.wordmark { font: 400 1.55rem/1 var(--font-display); letter-spacing: .01em; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: var(--sp-2) var(--sp-5); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--sp-5); }
.site-nav a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--ink); font-weight: 600; text-decoration: none; }
.site-nav a:hover { color: var(--orange-deep); }
.nav-buy { color: var(--ink) !important; text-decoration: underline !important; text-decoration-color: var(--orange) !important;
  text-decoration-thickness: 2px !important; text-underline-offset: 6px !important; }
.menu-btn { display: none; }
/* Phones: links fold behind a "Menu" button (only when JS is running; without JS they simply wrap) */
@media (max-width: 720px) {
  .js .menu-btn { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 0 14px;
    border: 1.5px solid var(--control-line); border-radius: var(--radius-pill); background: transparent; color: var(--ink);
    font: 600 var(--fs-sm) var(--font-body); cursor: pointer; }
  .js .site-nav ul { display: none; }
  .js .site-nav.open ul { display: flex; flex-direction: column; gap: 0; position: absolute; left: 0; right: 0; top: 100%; z-index: 20;
    background: var(--card); border-block: 1px solid var(--line); padding: var(--sp-2) var(--gutter); box-shadow: var(--shadow-card); }
  .js .site-nav.open ul a { width: 100%; min-height: 52px; border-bottom: 1px solid var(--line); }
  .js .site-nav.open ul li:last-child a { border-bottom: 0; }
  .site-header { position: relative; }
  .site-nav { gap: var(--sp-3); }
}
/* Hero variant: header sits on the sunburst */
.site-header--on-burst { background: transparent; border-bottom: 0; }
.site-header--on-burst .brand, .site-header--on-burst .site-nav a, .site-header--on-burst .nav-buy { color: var(--cream) !important; }
.site-header--on-burst .menu-btn { color: var(--cream) !important; border-color: var(--cream) !important; }
.site-header--on-burst :focus-visible { outline-color: var(--focus-on-dark); }
@media (max-width: 720px) { .site-header--on-burst .site-nav.open ul a { color: var(--ink) !important; } }

/* ---------- Footer ------------------------------------------------------- */
.site-footer { background: var(--burst-edge); color: var(--cream); padding-block: var(--sp-7) var(--sp-6); margin-top: var(--sp-8); }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: #fff; }
.site-footer :focus-visible { outline-color: var(--focus-on-dark); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: var(--sp-6); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-1); }
.footer-grid li a { display: inline-flex; min-height: var(--tap); align-items: center; }
.footer-tagline { color: #E5D3AE; margin-top: var(--sp-2); }
.footer-note { font-size: var(--fs-sm); color: #D9C39A; }
.footer-base { margin-top: var(--sp-6); padding-top: var(--sp-4); border-top: 1px solid rgba(245, 233, 207, .2);
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); font: 400 var(--fs-xs)/1.5 var(--font-tag); letter-spacing: .06em; color: #D9C39A; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: var(--sp-5); } }

/* ---------- Buttons & links --------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 48px; padding: 0 var(--sp-5); border-radius: var(--radius-pill); border: 0;
  font: 600 var(--fs-md)/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn--primary { background: var(--orange-deep); color: #fff; }
.btn--primary:hover { background: var(--orange-deep-hover); color: #fff; }
.btn--secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--secondary:hover { background: var(--sunken); color: var(--ink); }
.btn--on-dark { background: var(--cream); color: var(--ink); }
.btn--on-dark:hover { background: #fff; color: var(--ink); }
.btn--small { min-height: var(--tap); padding: 0 var(--sp-4); font-size: var(--fs-sm); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.link-arrow { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.link-arrow:hover { color: var(--orange-deep); }
.link-arrow--on-dark { color: var(--cream); }
.link-arrow--on-dark:hover { color: #fff; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-5); }

/* ---------- Home hero (the only sunburst on the site) ------------------- */
.hero-burst {
  position: relative; color: var(--cream);
  background: radial-gradient(ellipse 70% 85% at 74% 58%, var(--burst-center) 0%, var(--burst-amber) 16%, var(--burst-mid) 34%,
              var(--burst-dark) 54%, var(--burst-deep) 72%, var(--burst-edge) 88%);
  box-shadow: var(--binding);
}
.hero-burst :focus-visible { outline-color: var(--focus-on-dark); }
.hero-burst .hero-body { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: var(--sp-6);
  padding-block: var(--sp-6) var(--sp-8); }
.hero-burst h1 { font-size: var(--fs-hero); line-height: .95; color: var(--cream); }
.hero-burst .eyebrow { color: #F1D9A8; }
.hero-burst .lede { color: var(--cream); max-width: 40ch; }
.hero-photo { position: relative; min-height: 300px; display: flex; align-items: center; justify-content: center; }
/* the product photos are cut out at the wrist; fade that edge into the burst */
.hero-photo img { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 38%); mask-image: linear-gradient(90deg, transparent 0, #000 38%); }
@media (max-width: 860px) {
  .hero-burst { background: radial-gradient(ellipse 110% 60% at 55% 82%, var(--burst-center) 0%, var(--burst-amber) 14%, var(--burst-mid) 30%,
                var(--burst-dark) 50%, var(--burst-deep) 68%, var(--burst-edge) 86%); }
  .hero-burst .hero-body { grid-template-columns: 1fr; padding-block: var(--sp-4) var(--sp-7); }
}

/* ---------- Hero facts line (patent + models, under the buttons) ------- */
.hero-facts { font: 700 var(--fs-xs)/1.5 var(--font-tag); letter-spacing: var(--tracking-tag); text-transform: uppercase; color: #F1D9A8; }

/* ---------- Content blocks ---------------------------------------------- */
/* Feature: photo + short copy. Not a card: no border, no shadow. */
.feature { display: grid; gap: var(--sp-3); }
.feature-photo { aspect-ratio: 4 / 3; max-width: 100%; border-radius: var(--radius-md); overflow: hidden; background: var(--sunken);
  display: grid; place-items: center; }
.feature-photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, center); }
/* Per-photo framing: set --focus on the <img> (e.g. style="--focus: right center") to choose which part of the photo stays in the frame */
.feature h3 { font-size: var(--fs-lg); }
.feature p { color: var(--ink); }
.caveat { font-size: var(--fs-sm); font-style: italic; color: var(--muted); }

/* Uses list: small orange pick bullets */
.pick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.pick-list li { position: relative; padding-left: 28px; }
.pick-list li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 13px; height: 15px; background: var(--orange);
  clip-path: path("M6.5 15C3 11.3.5 7.3.5 4.4.5 2 2.5.5 6.5.5s6 1.5 6 3.9c0 2.9-2.5 6.9-6 10.6Z"); }

/* Founder note */
.note { max-width: var(--measure); display: grid; gap: var(--sp-4); }
.note h2 { font-size: clamp(1.7rem, 3.6vw, 2.3rem); }
.note .closing { font-family: var(--font-display); font-size: var(--fs-xl); }

/* Spec block: a large hang tag with label/value rows */
.spec-tag { max-width: 560px; background: var(--card); border-radius: 8px 8px 14px 14px; box-shadow: var(--shadow-card);
  padding: var(--sp-6) var(--sp-5) var(--sp-5); position: relative; }
.spec-tag::before { content: ""; position: absolute; top: 14px; left: 50%; width: 14px; height: 14px; margin-left: -7px;
  border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line), 0 0 0 3px var(--orange); }
.spec-tag dl { margin: var(--sp-3) 0 0; display: grid; grid-template-columns: max-content 1fr; gap: var(--sp-2) var(--sp-5); }
.spec-tag dt { font: 700 var(--fs-xs)/1.6 var(--font-tag); letter-spacing: var(--tracking-tag); text-transform: uppercase; color: var(--tobacco); }
.spec-tag dd { margin: 0; }
@media (max-width: 480px) { .spec-tag dl { grid-template-columns: 1fr; gap: 0; } .spec-tag dd { margin-bottom: var(--sp-3); } }

/* Reviews: built but off. Remove the `hidden` attribute when permission exists. */
.reviews[hidden] { display: none !important; }
.quote { margin: 0; display: grid; gap: var(--sp-2); }
.quote blockquote { margin: 0; font: 400 var(--fs-xl)/1.3 var(--font-display); }
.quote figcaption { font: 400 var(--fs-sm) var(--font-tag); color: var(--tobacco); }

/* Call-to-action band (final CTA) */
.cta-band { background: var(--sunken); border-radius: var(--radius-md); padding: var(--sp-7) var(--sp-6); display: grid; gap: var(--sp-4); justify-items: start; }

/* ---------- Video (click to load) --------------------------------------- */
.video { display: grid; gap: var(--sp-2); }
.video-frame { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: var(--radius-md); overflow: hidden; background: var(--burst-edge); }
.video-frame iframe, .video-frame img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-play { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; cursor: pointer; background: transparent; color: var(--cream);
  display: grid; place-items: center; }
.video-play span { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: var(--radius-pill);
  background: rgba(30, 14, 7, .82); font: 600 var(--fs-md) var(--font-body); box-shadow: 0 0 0 2px var(--cream); }
.video-play:hover span { background: var(--burst-edge); }
.video-play:focus-visible { outline: 3px solid var(--cream); outline-offset: -6px; }
.video h3 { font-size: var(--fs-md); }
.video p { font-size: var(--fs-sm); color: var(--muted); }

/* ---------- Tool cards (/tools/ and home teaser) ------------------------ */
.tool-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: var(--sp-4); }
.tool-card { display: grid; grid-template-rows: auto auto 1fr auto; gap: var(--sp-2); padding: var(--sp-5); background: var(--card);
  border-radius: var(--radius-md); box-shadow: var(--shadow-card); color: var(--ink); text-decoration: none;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.tool-card:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 1px 0 rgba(36,18,10,.06), 0 16px 30px -18px rgba(36,18,10,.55); }
.tool-card .art { height: 64px; margin-bottom: var(--sp-2); }
.tool-card h3 { font: 400 var(--fs-xl)/1.1 var(--font-display); }
.tool-card p { color: var(--ink); }
.tool-card .go { font-weight: 600; color: var(--orange-deep); }

/* ---------- Tool page shell --------------------------------------------- */
.tool-head { display: grid; gap: var(--sp-2); padding-block: var(--sp-5) var(--sp-4); max-width: var(--measure); }
.tool-head h1 { font-size: var(--fs-3xl); line-height: 1.02; }
.tool-head .subtitle { font: 700 var(--fs-xs)/1.3 var(--font-tag); letter-spacing: var(--tracking-tag); text-transform: uppercase; color: var(--tobacco); }
.tool-surface { background: var(--card); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: var(--sp-5); display: grid; gap: var(--sp-5); }
@media (max-width: 480px) { .tool-surface { padding: var(--sp-4); } }
.control-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--sp-4); }
.control-group { display: grid; gap: var(--sp-2); }
.control-label { font: 700 var(--fs-xs)/1.2 var(--font-tag); letter-spacing: var(--tracking-tag); text-transform: uppercase; color: var(--tobacco); }

/* Segmented control — one choice from a few */
.seg { display: inline-flex; flex-wrap: wrap; border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1.5px var(--control-line); padding: 3px; gap: 3px; max-width: 100%; }
.seg button { min-height: var(--tap); min-width: var(--tap); padding: 0 var(--sp-4); border: 0; border-radius: var(--radius-pill);
  background: transparent; color: var(--ink); font: 600 var(--fs-sm) var(--font-body); cursor: pointer; }
.seg button:hover { background: var(--sunken); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }

/* Switch — on/off setting */
.switch { display: inline-flex; align-items: center; gap: var(--sp-3); min-height: var(--tap); padding: 0; border: 0; background: none;
  color: var(--ink); font: 600 var(--fs-sm) var(--font-body); cursor: pointer; }
.switch .track { width: 46px; height: 28px; border-radius: 14px; background: var(--sunken); box-shadow: inset 0 0 0 1.5px var(--control-line);
  position: relative; flex: none; transition: background-color var(--dur) var(--ease); }
.switch .track::after { content: ""; position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--control-line); transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.switch[aria-checked="true"] .track { background: var(--orange-deep); box-shadow: none; }
.switch[aria-checked="true"] .track::after { transform: translateX(18px); background: #fff; }

/* Select */
.select { position: relative; display: inline-grid; }
.select select { appearance: none; -webkit-appearance: none; min-height: var(--tap); min-width: 10rem; max-width: 100%;
  padding: 0 44px 0 var(--sp-4); border: 1.5px solid var(--control-line); border-radius: var(--radius-sm);
  background: var(--card); color: var(--ink); font: 500 var(--fs-md) var(--font-body); cursor: pointer; }
.select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); pointer-events: none; }
.select select:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Text input */
.input { min-height: var(--tap); padding: 0 var(--sp-4); border: 1.5px solid var(--control-line); border-radius: var(--radius-sm);
  background: var(--card); color: var(--ink); font: 400 var(--fs-md) var(--font-body); max-width: 100%; }
.input::placeholder { color: var(--muted); }

/* Stepper — tempo etc. */
.stepper { display: inline-flex; align-items: stretch; border: 1.5px solid var(--control-line); border-radius: var(--radius-pill); overflow: hidden; }
.stepper button { width: var(--tap); min-height: var(--tap); border: 0; background: transparent; color: var(--ink); font: 600 1.35rem/1 var(--font-body); cursor: pointer; }
.stepper button:hover { background: var(--sunken); }
.stepper output { min-width: 4.5ch; display: grid; place-items: center; font: 700 var(--fs-lg)/1 var(--font-tag); font-variant-numeric: tabular-nums;
  border-inline: 1.5px solid var(--control-line); padding-inline: var(--sp-2); }

/* Range slider — volume etc. */
.range { -webkit-appearance: none; appearance: none; width: 100%; max-width: 260px; height: var(--tap); background: transparent; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--orange-deep) var(--val, 50%), var(--sunken) var(--val, 50%)); box-shadow: inset 0 0 0 1px var(--control-line); }
.range::-moz-range-track { height: 6px; border-radius: 3px; background: var(--sunken); box-shadow: inset 0 0 0 1px var(--control-line); }
.range::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--orange-deep); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: var(--card); box-shadow: 0 0 0 2px var(--ink), 0 2px 4px rgba(0,0,0,.25); }
.range::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--card); box-shadow: 0 0 0 2px var(--ink); }

/* Checkbox grid — Dice Thing settings, practice day grid */
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: var(--sp-1) var(--sp-3); }
.check { display: flex; align-items: center; gap: var(--sp-3); min-height: var(--tap); cursor: pointer; font-size: var(--fs-sm); }
.check input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; flex: none; border-radius: 5px;
  border: 1.5px solid var(--control-line); background: var(--card); display: grid; place-items: center; cursor: pointer; }
.check input::after { content: ""; width: 6px; height: 11px; border: solid var(--card); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); opacity: 0; }
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::after { opacity: 1; }
.check input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Arrow pad — Scale of Chords note moves (touch-friendly replacement for arrow keys) */
.arrow-pad { display: grid; grid-template-columns: repeat(3, var(--tap)); grid-template-rows: repeat(2, var(--tap)); gap: 6px; }
.arrow-pad button { border: 1.5px solid var(--control-line); border-radius: var(--radius-sm); background: var(--card); color: var(--ink);
  font: 700 1.1rem/1 var(--font-body); cursor: pointer; }
.arrow-pad button:hover { background: var(--sunken); }
.arrow-pad .up { grid-column: 2; grid-row: 1; } .arrow-pad .left { grid-column: 1; grid-row: 2; }
.arrow-pad .down { grid-column: 2; grid-row: 2; } .arrow-pad .right { grid-column: 3; grid-row: 2; }

/* Fretboard container (the tools draw the SVG; this frames it) */
.fretboard { background: var(--fb-board); border-radius: var(--radius-sm); padding: var(--sp-2); overflow-x: auto; }
.fretboard svg { width: 100%; height: auto; }
.fret-numbers { font: 400 var(--fs-xs) var(--font-tag); color: var(--tobacco); }

/* Sound hint — audio starts only after a tap */
.hint { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-sm);
  background: var(--sunken); color: var(--ink); font-size: var(--fs-sm); }
.hint::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); flex: none; box-shadow: 0 0 0 4px rgba(242, 100, 34, .25); }

/* Help — "How it works", collapsed by default */
.help { border-top: 1px solid var(--line); }
.help summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; cursor: pointer; font-weight: 700; list-style: none; }
.help summary::-webkit-details-marker { display: none; }
.help summary::after { content: "+"; font: 400 1.5rem/1 var(--font-body); color: var(--tobacco); }
.help[open] summary::after { content: "–"; }
.help .prose { padding-bottom: var(--sp-5); }

/* Popup — Diminished Family starter tip etc. High contrast on purpose (June owner feedback) */
.popup { background: var(--ink); color: var(--cream); border-radius: var(--radius-md); padding: var(--sp-4) var(--sp-5); box-shadow: var(--shadow-tag);
  display: grid; gap: var(--sp-3); max-width: 340px; }
.popup .btn { justify-self: start; }

/* ---------- Utilities ---------------------------------------------------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tabular { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Stage 05 additions (page layout only). Appended to the stage 03 site.css at
   build time; the stage 03 file itself is unchanged. Values come from tokens.css.
   ========================================================================== */

/* Hero photo: the new cutout (Etsy photo 1) floats free and has the
   "Guitar Thing" lettering on its left end, so the stage 03 wrist fade is
   removed (stage 04 inventory note). A soft shadow seats it on the burst. */
.hero-photo img { -webkit-mask-image: none; mask-image: none; width: 100%; max-width: 540px; height: auto;
  filter: drop-shadow(0 18px 28px rgba(30, 14, 7, .45)); }
@media (max-width: 860px) { .hero-photo { min-height: 0; } .hero-photo img { max-width: 440px; } }

/* Four features: 4 across on wide screens, 2 on tablets, 1 on phones */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-6) var(--sp-5); }
@media (max-width: 999px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .features { grid-template-columns: 1fr; } }
.feature-photo picture { display: contents; }

/* Uses list + fidget note side by side */
.uses { align-items: start; }
.fidget { background: var(--sunken); border-radius: var(--radius-md); padding: var(--sp-6) var(--sp-5); }
.fidget h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); }

/* Video posters: <picture> sits under the play button */
.video-frame picture { display: contents; }
.more-link { margin-top: var(--sp-5); }

/* Details: pick-storage photo beside the spec tag */
.details { align-items: center; }
.details-photo { max-width: 380px; border-radius: var(--radius-md); overflow: hidden; justify-self: center; }
.details-photo img { width: 100%; height: auto; }
.spec-title { text-align: center; }
@media (max-width: 860px) { .details-photo { max-width: 320px; } }

/* Page heads on /tools/, /privacy/, 404 */
.page-head { padding-block: var(--sp-7) var(--sp-6); }
.page-head h1 { font-size: var(--fs-3xl); }
.tools-strip { margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); }
.prose a { font-weight: 600; }

/* Footer wordmark is cream on the dark footer (was an inline style in the sample sheet) */
.site-footer .wordmark { color: var(--cream); }

/* Feature text starts right under each photo (grid rows don't stretch) */
.feature { align-content: start; }
/* Details photo needs an explicit width inside the centred grid cell */
.details-photo { width: 100%; }
.details-photo picture { display: block; }

/* Phones: keep wordmark, Menu and Buy on Etsy on one row at 390px
   (below ~370px they still wrap cleanly onto a second row) */
@media (max-width: 420px) {
  .site-header .wrap { column-gap: 10px; }
  .wordmark { font-size: 1.3rem; }
  .brand { gap: 8px; }
  .site-nav { column-gap: 8px; }
  .js .menu-btn { padding: 0 12px; }
}
