/* ============================================================================
   VIOLIN PRO — "Walnut & Amber" theme (v2, warmer + more crafted)
   Palette: Warm Background #F6F1EA · Rich Walnut #5A3825 · Violin Wood #8A5A34
            Amber Gold #D79A49 · Espresso Text #2E2118
   Edit config.js, not this file.
   ============================================================================ */

:root {
  --bg:        #F6F1EA;
  --walnut:    #5A3825;
  --wood:      #8A5A34;
  --amber:     #D79A49;
  --espresso:  #2E2118;

  --bg-2:      #EFE7DA;
  --panel:     #FFFDF9;
  --panel-2:   #F4EADB;
  --line:      rgba(46, 33, 24, 0.12);
  --line-2:    rgba(46, 33, 24, 0.22);

  --ink:       #2E2118;
  --ink-soft:  #5b4a3c;
  --ink-mute:  #927b66;

  --amber-2:   #c4842f;
  --amber-ink: #2E2118;

  /* Violin Pro's real string colour code (matches the sheet music):
     G = BLUE · D = ORANGE · A = GREEN · E = PURPLE */
  --str-g: #2f6fdb; --str-d: #e08a2e; --str-a: #6cbf3a; --str-e: #8a4fd6;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 22px 50px rgba(90, 56, 37, 0.16);
  --shadow-sm: 0 8px 22px rgba(90, 56, 37, 0.09);
  --maxw: 1140px;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, 'SFMono-Regular', monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
  background-image:
    radial-gradient(1100px 520px at 80% -12%, rgba(215,154,73,0.20), transparent 60%),
    radial-gradient(820px 460px at 2% 4%, rgba(138,90,52,0.10), transparent 55%),
    linear-gradient(180deg, #f8f3ec, #f3ece1);
  background-attachment: fixed;
}
/* faint paper grain */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }
::selection { background: rgba(215,154,73,0.34); }
a { color: var(--amber-2); text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---- typography ---------------------------------------------------------- */
.display {
  font-family: var(--font-display); font-weight: 560; font-optical-sizing: auto;
  letter-spacing: -0.02em; line-height: 1.02; color: var(--espresso);
}
.display em { font-style: italic; font-weight: 500; color: var(--wood); }
.eyebrow {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--amber-2); margin: 0 0 18px;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ''; width: 26px; height: 1.5px; background: var(--amber); display: inline-block; }
.lead { font-size: 20px; line-height: 1.6; color: var(--ink-soft); }
.mono { font-family: var(--font-mono); }
h1, h2, h3 { margin: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.route { animation: fadeUp .55s cubic-bezier(.2,.7,.2,1) both; }
[hidden] { display: none !important; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-10px) rotate(-6deg); } }

/* ---- staff-with-notes signature (reusable divider) ----------------------- */
.staff { display: block; }
.staff line { stroke: var(--line-2); stroke-width: 1.4; }
.staff .stem { stroke: var(--ink-mute); stroke-width: 1.6; }
.staff-divider { display: flex; justify-content: center; padding: 30px 0; }

/* ---- buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  padding: 13px 22px; border-radius: 11px; cursor: pointer; border: 1px solid transparent;
  transition: transform .14s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(160deg, #96602f, var(--walnut)); color: #fff5e9; box-shadow: 0 10px 22px rgba(90,56,37,0.28); }
.btn-primary:hover { box-shadow: 0 14px 28px rgba(90,56,37,0.34); transform: translateY(-2px); color: #fff; }
.btn-ghost { background: rgba(255,253,249,0.6); color: var(--walnut); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--wood); background: #fff; transform: translateY(-2px); }
.btn-lg { padding: 15px 28px; font-size: 16px; }

/* ---- header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(246,241,234,0.82); backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 22px; position: relative; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 11px; background: rgba(255,253,249,0.6); cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--espresso); transition: transform .2s ease, opacity .2s ease; }
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { color: inherit; }
.brand-logo { height: 60px; width: auto; mix-blend-mode: multiply; }
.brand .mark {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--amber), var(--wood)); color: #fff;
  font-family: var(--font-display); font-weight: 640; font-size: 22px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
}
.brand .name { font-family: var(--font-display); font-size: 23px; font-weight: 600; letter-spacing: -0.01em; color: var(--espresso); }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a.navlink { font-family: var(--font-body); font-weight: 600; font-size: 14.5px; color: var(--ink-soft); padding: 9px 13px; border-radius: 9px; position: relative; }
.nav a.navlink:hover { color: var(--espresso); background: rgba(46,33,24,0.06); }
.nav a.navlink.active { color: var(--walnut); }
.nav a.navlink.active::after { content: ''; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--amber); }
.nav .btn { margin-left: 6px; }

/* ---- hero ---------------------------------------------------------------- */
.hero { padding: 78px 0 40px; position: relative; overflow: hidden; }
.hero-clef {
  position: absolute; top: -60px; right: 38%; font-family: var(--font-display);
  font-size: 420px; line-height: 1; color: var(--amber); opacity: 0.09; pointer-events: none;
  user-select: none; font-style: italic;
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; position: relative; }
.hero h1 { font-size: clamp(42px, 6.2vw, 70px); margin: 0 0 22px; }
.hero .lead { max-width: 32em; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; }
.hero-chips li {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em; color: var(--ink-soft);
  background: rgba(255,253,249,0.7); border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px;
}
.hero-chips li b { color: var(--wood); font-weight: 700; }

.hero-visual { position: relative; }
.hero-visual::before {
  content: ''; position: absolute; inset: -8% -10% -12% 8%; border-radius: 46% 54% 55% 45% / 55% 45% 55% 45%;
  background: radial-gradient(circle at 40% 35%, rgba(215,154,73,0.55), rgba(138,90,52,0.35));
  filter: blur(6px); z-index: 0;
}
.hero-frame {
  position: relative; z-index: 1; aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden;
  border: 6px solid var(--panel); box-shadow: var(--shadow);
  background: linear-gradient(160deg, #e7d3ba, #d8bd9c); rotate: 1.5deg;
}
.hero-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.hero-ph { position: absolute; inset: 0; z-index: 0; display: grid; place-content: center; color: var(--ink-mute); }
.hero-ph .glyph { font-size: 60px; }

/* ---- stats strip --------------------------------------------------------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,253,249,0.5); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px 20px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat .n { font-family: var(--font-display); font-size: 34px; font-weight: 620; color: var(--wood); line-height: 1; }
.stat .l { font-size: 13px; color: var(--ink-mute); margin-top: 7px; letter-spacing: .02em; }

/* ---- sections ------------------------------------------------------------ */
section.block { padding: 50px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { font-family: var(--font-display); font-size: 33px; font-weight: 600; color: var(--espresso); }
.muted { color: var(--ink-mute); }
.link-arrow { font-weight: 700; font-size: 15px; color: var(--amber-2); }
.link-arrow:hover { color: var(--walnut); }

/* ---- panels & cards ------------------------------------------------------ */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.song-card {
  display: flex; flex-direction: column; text-align: left; position: relative;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.song-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; z-index: 2; background: var(--stripe, var(--amber)); }
.song-card.lv-Beginner     { --stripe: var(--wood); }
.song-card.lv-Intermediate { --stripe: var(--amber); }
.song-card.lv-Advanced     { --stripe: var(--walnut); }
.song-card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow); color: inherit; }
.song-card .cover {
  aspect-ratio: 4/3; position: relative; display: grid; place-items: center;
  background: #fff; color: var(--wood); border-bottom: 1px solid var(--line);
}
.song-card .cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; background: #fff; }
.song-card .cover::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 -40px 40px -30px rgba(46,33,24,0.10); pointer-events: none; }
.song-card .cover .glyph { font-size: 34px; opacity: .5; }
.song-card .body { padding: 16px 19px 20px; }
.song-card .title { font-family: var(--font-display); font-size: 21px; font-weight: 600; color: var(--espresso); margin: 10px 0 3px; }
.song-card .artist { font-size: 14px; color: var(--ink-mute); }

/* level badges */
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 999px; border: 1px solid;
}
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.Beginner     { color: var(--wood);    background: rgba(138,90,52,0.10);  border-color: rgba(138,90,52,0.30); }
.badge.Intermediate { color: var(--amber-2); background: rgba(215,154,73,0.16);  border-color: rgba(215,154,73,0.40); }
.badge.Advanced     { color: var(--walnut);  background: rgba(90,56,37,0.10);    border-color: rgba(90,56,37,0.30); }

/* ---- "three markings" tools ---------------------------------------------- */
.tools { padding: 36px 38px; position: relative; overflow: hidden; }
.tool { padding: 22px 22px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.tool .k { font-family: var(--font-mono); font-size: 22px; color: var(--amber-2); letter-spacing: 0.06em; margin-bottom: 12px; }
.tool .k .n1 { color: var(--str-g); } .tool .k .n2 { color: var(--str-d); } .tool .k .n3 { color: var(--str-a); } .tool .k .n4 { color: var(--str-e); }
.tool h3 { font-family: var(--font-body); font-size: 16px; font-weight: 700; margin-bottom: 5px; color: var(--espresso); }
.tool p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }
.dots { display: flex; gap: 6px; margin-bottom: 12px; }
.dots span { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12); }

/* ---- start-here steps ---------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { padding: 28px 26px; position: relative; overflow: hidden; }
.step .no { font-family: var(--font-mono); font-size: 44px; font-weight: 700; color: rgba(138,90,52,0.14); line-height: 1; position: absolute; top: 14px; right: 18px; }
.step h3 { font-family: var(--font-display); font-size: 21px; font-weight: 600; color: var(--espresso); margin: 6px 0 7px; }
.step p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

/* ---- prose --------------------------------------------------------------- */
.prose { max-width: 760px; }
.prose p { color: var(--ink-soft); margin: 0 0 20px; font-size: 18px; }
.prose h2 { font-family: var(--font-display); font-size: 27px; font-weight: 600; color: var(--espresso); margin: 34px 0 12px; }
.prose ul { margin: 0 0 20px; padding-left: 22px; color: var(--ink-soft); }
.prose li { margin: 6px 0; }
.prose strong { color: var(--espresso); }
.callout { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: 12px; padding: 18px 22px; color: var(--ink-soft); }
.figure { border-radius: var(--radius-lg); overflow: hidden; border: 6px solid var(--panel); box-shadow: var(--shadow); aspect-ratio: 16/10; margin-bottom: 34px;
  background: linear-gradient(160deg, #e7d3ba, #d8bd9c); color: var(--ink-mute); position: relative; }
.figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.figure .mono { position: absolute; inset: 0; display: grid; place-items: center; }

/* ---- guide rows ---------------------------------------------------------- */
.guide-row { display: grid; grid-template-columns: 130px 1fr; gap: 28px; align-items: center; padding: 28px 32px; }
.guide-row .big-note { font-family: var(--font-mono); font-size: 34px; color: var(--amber-2); }
.guide-row h3 { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--espresso); margin-bottom: 6px; }
.guide-row p { color: var(--ink-soft); margin: 0; font-size: 15.5px; }
.finger-pips { display: flex; gap: 8px; }
.finger-pips span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-weight: 700; background: var(--espresso); color: var(--bg); }
.string-card { border: 1px solid var(--line); border-radius: 12px; padding: 18px 16px; text-align: center; background: var(--bg-2); transition: transform .15s ease; }
.string-card:hover { transform: translateY(-3px); }
.string-card .swatch { display: block; width: 42px; height: 42px; border-radius: 50%; margin: 0 auto 10px; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12), 0 6px 14px rgba(0,0,0,0.10); }
.string-card .nm { font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--espresso); }
.string-card .ds { font-size: 12.5px; color: var(--ink-mute); }

/* ---- FAQ ----------------------------------------------------------------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 2px; font-family: var(--font-display); font-size: 19px; font-weight: 560; color: var(--espresso); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--amber-2); font-family: var(--font-mono); }
.faq details[open] summary::after { content: '–'; }
.faq p { color: var(--ink-soft); margin: 0 2px 16px; font-size: 15.5px; }

/* ---- embedded PDF (handbook) --------------------------------------------- */
.pdf-embed { background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); margin-bottom: 20px; }
.pdf-embed object, .pdf-embed iframe { width: 100%; height: 70vh; min-height: 480px; border: 0; border-radius: 8px; background: #efe7da; display: block; }

/* ---- library toolbar ----------------------------------------------------- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 28px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { font-family: var(--font-mono); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; padding: 9px 16px; border-radius: 999px; cursor: pointer; background: transparent; color: var(--ink-soft); border: 1px solid var(--line-2); transition: all .15s ease; }
.tab:hover { color: var(--espresso); border-color: var(--wood); }
.tab.active { background: linear-gradient(160deg, #96602f, var(--walnut)); color: #fff; border-color: var(--walnut); }
.search { position: relative; }
.search input { font-family: var(--font-body); font-size: 15px; color: var(--espresso); padding: 11px 16px 11px 40px; border: 1px solid var(--line-2); border-radius: 11px; background: var(--panel); width: 260px; }
.search .icn { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-mute); }
input:focus, textarea:focus { outline: 2px solid var(--amber); outline-offset: 1px; border-color: transparent; }

.empty { text-align: center; padding: 70px 20px; color: var(--ink-mute); }
.empty .t { font-family: var(--font-display); font-size: 24px; color: var(--espresso); margin-bottom: 8px; }

/* ---- song detail --------------------------------------------------------- */
.song-detail { max-width: 920px; }
.backlink { font-weight: 700; font-size: 14.5px; color: var(--amber-2); display: inline-block; margin-bottom: 24px; }
.song-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.song-meta { display: flex; gap: 22px; flex-wrap: wrap; margin: 20px 0 6px; font-family: var(--font-mono); font-size: 13px; color: var(--ink-mute); }
.song-meta b { color: var(--ink-soft); font-weight: 400; }
.pdf-shell { margin-top: 24px; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
.pdf-shell object { width: 100%; height: 80vh; min-height: 540px; border-radius: 8px; background: #efe7da; }
.pdf-fallback { text-align: center; padding: 64px 22px; color: var(--ink-mute); }
.pdf-fallback .glyph { font-size: 42px; margin-bottom: 14px; }
.next-piece { margin-top: 26px; display: flex; justify-content: flex-end; }

/* ---- form ---------------------------------------------------------------- */
.form-wrap { max-width: 620px; }
form.req { display: flex; flex-direction: column; gap: 18px; padding: 32px 34px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field span { font-size: 13.5px; font-weight: 700; color: var(--ink-soft); font-family: var(--font-mono); letter-spacing: .04em; }
.field input, .field textarea { font-family: var(--font-body); font-size: 15px; color: var(--espresso); padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-2); width: 100%; }
.field textarea { resize: vertical; }
.thanks { text-align: center; padding: 34px; }
.thanks .glyph { font-size: 38px; margin-bottom: 10px; }
.thanks .t { font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--espresso); margin-bottom: 6px; }

/* ---- tuner --------------------------------------------------------------- */
.tuner-shell { background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
.tuner-frame { width: 100%; height: 74vh; min-height: 520px; border: 0; border-radius: 8px; background: #fff; display: block; }

/* ---- footer -------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); margin-top: 44px; }
.site-footer .wrap { padding: 44px 28px 30px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: start; }
.site-footer p { color: var(--ink-mute); font-size: 14px; }
.socials { margin-top: 16px; }
.social { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-soft); font-weight: 600; font-size: 14.5px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; transition: all .15s ease; }
.social:hover { color: var(--amber-2); border-color: var(--wood); transform: translateY(-1px); }
.foot-links { display: flex; gap: 26px; flex-wrap: wrap; justify-content: flex-end; }
.foot-links a { color: var(--ink-soft); font-weight: 600; font-size: 14.5px; }
.foot-links a:hover { color: var(--amber-2); }
.foot-bottom { border-top: 1px solid var(--line); }
.foot-bottom .wrap { padding: 18px 28px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.foot-bottom p { font-size: 13px; color: var(--ink-mute); margin: 0; }
.foot-legal { display: flex; gap: 12px; align-items: center; }
.foot-legal a { color: var(--ink-soft); font-weight: 600; }
.foot-legal a:hover { color: var(--amber-2); }

/* ---- responsive ---------------------------------------------------------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 400px; }
  .hero-clef { font-size: 300px; right: -20px; top: -40px; }
  .stats .wrap { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .foot-links { justify-content: flex-start; }
}
/* mobile nav → hamburger menu */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-header .wrap { height: 72px; }
  .brand-logo { height: 48px; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(46,33,24,0.14);
    padding: 12px 20px 18px; display: none;
  }
  .site-header.nav-open .nav { display: flex; animation: fadeUp .25s ease both; }
  .nav a.navlink { padding: 13px 12px; font-size: 16px; border-radius: 10px; }
  .nav a.navlink.active::after { display: none; }
  .nav a.navlink.active { background: rgba(215,154,73,0.14); }
  .nav .btn { margin: 8px 0 0; justify-content: center; padding: 14px; font-size: 16px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .guide-row { grid-template-columns: 1fr; gap: 16px; }
  .search input { width: 100%; }
  .stat .n { font-size: 28px; }
  section.block { padding: 38px 0; }
  .tools { padding: 26px 22px; }
  .panel.guide-row, .panel.tools { border-radius: 16px; }
  .toolbar { align-items: stretch; }
  .search, .search input { width: 100%; }
}

/* ---- accessibility ------------------------------------------------------- */
:focus-visible { outline: 2px solid var(--amber-2); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
