/* =========================================================
   Guitar Hero · studio notebook
   Editorial serif + crisp sans, warm paper, one vermilion accent,
   blue-biro margin notes. Dark mode is "stage" mode.
   ========================================================= */

:root {
  --bg: #F3EEE4;
  --bg-deep: #EAE3D5;
  --surface: #FCFAF5;
  --surface-2: #F6F1E7;
  --ink: #17150F;
  --ink-2: #4B463C;
  --ink-3: #8B8476;
  --line: rgba(23, 21, 15, 0.09);
  --line-2: rgba(23, 21, 15, 0.16);
  --dot: rgba(23, 21, 15, 0.11);

  --accent: #FF4F1F;
  --accent-2: #E8400F;
  --accent-soft: #FFE4D9;
  --on-accent: #FFFFFF;
  --highlight: #FFD84D;
  --biro: #2F4FD6;

  --done: #1D9A62;
  --done-soft: #D6EEDF;
  --missed: #E2483F;
  --missed-soft: #FBDCD8;
  --off: #E4DED2;
  --off-ink: #9B9486;

  /* lesson-block palette, used by the timeline + step accents */
  --c-w: #E6B36A;
  --c-x: #FF4F1F;
  --c-r: #F2A93B;
  --c-f: #4C6FE0;
  --c-s: #1D9A62;
  --c-rec: #E2483F;
  --c-free: #C77DDB;

  --shadow-sm: 0 1px 2px rgba(23, 21, 15, 0.05), 0 1px 1px rgba(23, 21, 15, 0.03);
  --shadow: 0 1px 2px rgba(23, 21, 15, 0.04), 0 8px 24px -10px rgba(23, 21, 15, 0.16), 0 24px 48px -32px rgba(23, 21, 15, 0.18);
  --shadow-lg: 0 2px 4px rgba(23, 21, 15, 0.05), 0 20px 50px -18px rgba(23, 21, 15, 0.28);
  --inner-hi: inset 0 1px 0 rgba(255, 255, 255, 0.7);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Courier Prime", "Courier New", monospace; /* guitar tab only */
  --hand: "Caveat", "Bradley Hand", cursive;

  --r-sm: 10px;
  --r: 18px;
  --r-lg: 26px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-opacity: 0.05;
  color-scheme: light;
}

/* stage mode */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F0E0C; --bg-deep: #0A0908; --surface: #191714; --surface-2: #211F1B;
    --ink: #F3EEE4; --ink-2: #C9C2B3; --ink-3: #8E8778;
    --line: rgba(243, 238, 228, 0.08); --line-2: rgba(243, 238, 228, 0.15); --dot: rgba(243, 238, 228, 0.07);
    --accent: #FF6A3D; --accent-2: #FF7F57; --accent-soft: rgba(255, 106, 61, 0.14); --biro: #93A8FF;
    --done: #3CCB86; --done-soft: rgba(60, 203, 134, 0.16); --missed: #FF6B61; --missed-soft: rgba(255, 107, 97, 0.15);
    --off: #2A2722; --off-ink: #7E7769;
    --c-w: #E9B872; --c-x: #FF6A3D; --c-r: #F5B14A; --c-f: #7D98FF; --c-s: #3CCB86; --c-rec: #FF6B61; --c-free: #D99BEA;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 12px 32px -14px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.8);
    --inner-hi: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    --grain-opacity: 0.07;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F0E0C; --bg-deep: #0A0908; --surface: #191714; --surface-2: #211F1B;
  --ink: #F3EEE4; --ink-2: #C9C2B3; --ink-3: #8E8778;
  --line: rgba(243, 238, 228, 0.08); --line-2: rgba(243, 238, 228, 0.15); --dot: rgba(243, 238, 228, 0.07);
  --accent: #FF6A3D; --accent-2: #FF7F57; --accent-soft: rgba(255, 106, 61, 0.14); --biro: #93A8FF;
  --done: #3CCB86; --done-soft: rgba(60, 203, 134, 0.16); --missed: #FF6B61; --missed-soft: rgba(255, 107, 97, 0.15);
  --off: #2A2722; --off-ink: #7E7769;
  --c-w: #E9B872; --c-x: #FF6A3D; --c-r: #F5B14A; --c-f: #7D98FF; --c-s: #3CCB86; --c-rec: #FF6B61; --c-free: #D99BEA;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 12px 32px -14px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.8);
  --inner-hi: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --grain-opacity: 0.07;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background-color: var(--bg);
  background-image: radial-gradient(var(--dot) 1px, transparent 1.4px);
  background-size: 22px 22px;
  background-attachment: fixed;
  font: 16px/1.6 var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before { /* paper grain */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100;
  background-image: var(--grain); opacity: var(--grain-opacity); mix-blend-mode: multiply;
}
:root[data-theme="dark"] body::before { mix-blend-mode: screen; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body::before { mix-blend-mode: screen; } }
::selection { background: var(--highlight); color: #17150F; }
a { color: inherit; }
img, svg { display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }

h1, h2, h3, p { margin: 0; }
h3 { font: 600 1.05rem/1.3 var(--sans); letter-spacing: -0.01em; }
.display {
  font-family: var(--serif);
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 0;
  letter-spacing: -0.025em;
  line-height: 1.02;
}
h1.display { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
h2.display { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.display.sm { font-size: 1.45rem; letter-spacing: -0.015em; line-height: 1.15; }
.eyebrow {
  display: flex; align-items: center; gap: 8px;
  font: 600 0.7rem/1.4 var(--sans); letter-spacing: 0.11em; text-transform: uppercase; color: var(--ink-3);
}
.eyebrow .i { width: 14px; height: 14px; }
.lead { font-size: 1.12rem; color: var(--ink-2); line-height: 1.55; }
.muted { color: var(--ink-3); }
.small { font-size: 0.875rem; }
.red { color: var(--missed); }
.hand { font: 600 1.35rem/1 var(--hand); color: var(--biro); letter-spacing: 0.01em; }
code { font: 0.86em var(--sans); background: var(--surface-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
q { font-family: var(--serif); font-style: italic; color: var(--ink-2); }
q::before { content: "“"; } q::after { content: "”"; }
.i { width: 18px; height: 18px; flex: none; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s, box-shadow 0.3s;
}
body.scrolled .top { border-bottom-color: var(--line); box-shadow: 0 8px 30px -22px rgba(0, 0, 0, 0.35); }
.top-inner { max-width: 1680px; margin: 0 auto; padding: calc(14px + env(safe-area-inset-top)) max(40px, env(safe-area-inset-right)) 14px max(40px, env(safe-area-inset-left)); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-pick { width: 30px; height: 30px; fill: var(--accent); transform: rotate(-16deg); transition: transform 0.6s var(--spring); filter: drop-shadow(0 3px 6px color-mix(in srgb, var(--accent) 40%, transparent)); }
.brand:hover .brand-pick { transform: rotate(200deg) scale(1.05); }
.brand-name { font: 600 1.32rem/1 var(--serif); font-variation-settings: "opsz" 48, "SOFT" 100, "WONK" 1; letter-spacing: -0.02em; font-style: italic; }
.brand-sub { font: 500 0.68rem var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); padding-left: 10px; border-left: 1px solid var(--line-2); }

nav { position: relative; display: flex; gap: 2px; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--inner-hi); margin-inline: auto; }
nav a {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 7px;
  padding: 7px 15px; border-radius: 999px; text-decoration: none;
  font-weight: 500; font-size: 0.92rem; color: var(--ink-2); transition: color 0.25s;
}
nav a .i { width: 16px; height: 16px; opacity: 0.8; }
nav a:hover { color: var(--ink); }
nav a.on { color: var(--bg); }
.nav-ink { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; border-radius: 999px; background: var(--ink); opacity: 0; transition: transform 0.45s var(--ease), width 0.45s var(--ease), opacity 0.2s; box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.35); }
.top-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.chip, .sync {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px;
  font: 500 0.78rem var(--sans); color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); cursor: pointer;
}
.sync i { width: 7px; height: 7px; border-radius: 50%; background: var(--off-ink); }
.sync[data-status="ok"] i { background: var(--done); box-shadow: 0 0 0 3px color-mix(in srgb, var(--done) 22%, transparent); }
.sync[data-status="syncing"] i { background: var(--highlight); animation: blink 0.9s infinite alternate; }
.sync[data-status="error"] i { background: var(--missed); }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); transition: transform 0.2s var(--ease), background 0.2s, color 0.2s;
}
.icon-btn:hover { color: var(--ink); background: var(--surface-2); transform: translateY(-1px); }
.icon-btn:active { transform: scale(0.94); }

main { max-width: 1680px; margin: 0 auto; padding: 36px 40px 64px; outline: none; }
.foot { max-width: 1680px; margin: 0 auto; padding: 0 40px calc(48px + env(safe-area-inset-bottom)); font-size: 0.85rem; color: var(--ink-3); }
.foot span { font: 600 1.15rem var(--hand); color: var(--biro); margin-right: 4px; }

/* page enter: children rise in sequence */
.enter > * { animation: rise 0.7s var(--ease) both; }
.enter > *:nth-child(2) { animation-delay: 0.06s; }
.enter > *:nth-child(3) { animation-delay: 0.12s; }
.enter > *:nth-child(4) { animation-delay: 0.18s; }
.enter > *:nth-child(5) { animation-delay: 0.24s; }
.enter > *:nth-child(n+6) { animation-delay: 0.3s; }

/* ---------- primitives ---------- */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px; margin-bottom: 20px; box-shadow: var(--shadow), var(--inner-hi);
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-head h2 { display: flex; align-items: center; gap: 10px; }
.kpi { font: 500 1.6rem/1 var(--serif); letter-spacing: -0.02em; }
.kpi small { font-size: 0.95rem; color: var(--ink-3); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.row.center { justify-content: center; }
.row.between { justify-content: space-between; }
.row.end { align-items: flex-end; }
.grow { flex: 1; }
.stack { display: grid; gap: 16px; }
.chip { cursor: default; padding: 3px 10px; font-size: 0.72rem; background: var(--surface-2); }
.badge { font: 500 0.7rem var(--sans); letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.badge.done { background: var(--done-soft); color: var(--done); border-color: transparent; }
.badge.missed { background: var(--missed-soft); color: var(--missed); border-color: transparent; }
.badge.today { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.badge.excused, .badge.off, .badge.pre { background: var(--off); color: var(--off-ink); border-color: transparent; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  padding: 10px 18px; border-radius: 999px; text-decoration: none; white-space: nowrap;
  font: 600 0.92rem/1.2 var(--sans); letter-spacing: -0.005em;
  color: var(--ink); background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: var(--shadow-sm), var(--inner-hi);
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-1px); border-color: var(--ink-3); box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.3); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn .i { width: 17px; height: 17px; transition: transform 0.25s var(--ease); }
.btn:hover .i:last-child { transform: translateX(2px); }
.btn.primary { color: var(--on-accent); background: var(--accent); border-color: transparent; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 8px 20px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn.primary:hover { background: var(--accent-2); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 14px 28px -10px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--ink-2); }
.btn.ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn.lg { padding: 14px 24px; font-size: 1rem; }
.btn.sm { padding: 6px 12px; font-size: 0.82rem; }
.btn:disabled { opacity: 0.55; cursor: wait; }
.link { display: inline-flex; align-items: center; gap: 5px; background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink-2); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; transition: color 0.2s, text-decoration-color 0.2s; }
.link:hover { color: var(--accent); text-decoration-color: currentColor; }
.link .i { width: 15px; height: 15px; }

.bar { display: block; height: 6px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--highlight)); transform-origin: left; animation: grow 1.1s var(--ease) both 0.2s; }
.bar.lg { height: 10px; margin: 14px 0 8px; }

.seg-w { --c: var(--c-w); } .seg-x { --c: var(--c-x); } .seg-r { --c: var(--c-r); } .seg-f { --c: var(--c-f); }
.seg-s { --c: var(--c-s); } .seg-rec { --c: var(--c-rec); } .seg-free { --c: var(--c-free); }

/* ---------- layout ---------- */
.cols { display: grid; gap: 0 24px; }
.cols > * { min-width: 0; }
.col-side { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; align-content: start; }
.tracker-grid #day-panel { grid-column: 1 / -1; }
.page-head { margin: 6px 0 28px; display: grid; gap: 10px; }
.page-head.row { display: flex; align-items: flex-end; }
.page-head.row > div { display: grid; gap: 10px; }

/* =========================================================
   TODAY
   ========================================================= */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 48px; align-items: end; margin-bottom: 28px; }
.hero-head { display: grid; gap: 14px; }
.greet {
  font-family: var(--serif); font-weight: 450; font-size: clamp(2.6rem, 5.6vw, 5.4rem); line-height: 0.98; letter-spacing: -0.035em;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; max-width: 16ch; text-wrap: balance;
}
.greet .w { display: inline-block; animation: word 0.8s var(--ease) both; animation-delay: calc(var(--i) * 55ms + 80ms); }
.greet .w:last-child { color: var(--accent); font-style: italic; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(140px, 1fr)); gap: 12px; }
.stat {
  position: relative; display: grid; align-content: start; gap: 2px; padding: 18px 18px 16px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow), var(--inner-hi); min-height: 132px;
  transition: transform 0.35s var(--ease);
}
.stat:hover { transform: translateY(-3px); }
.stat > b { font: 500 2.6rem/1 var(--serif); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin-top: 6px; }
.stat-icon { color: var(--ink-3); }
.stat-icon.flame { color: var(--accent); }
.stat-icon.flame .i { width: 22px; height: 22px; animation: flicker 2.4s ease-in-out infinite; transform-origin: 50% 90%; }
.stat-label { font-size: 0.84rem; color: var(--ink-2); }
.stat-foot { font: 500 0.68rem var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-top: auto; padding-top: 6px; }
.stat .bar { margin-top: 10px; }
.ring-wrap { position: relative; width: 56px; height: 56px; }
.ring-wrap b { position: absolute; inset: 0; display: grid; place-items: center; font: 500 1.5rem var(--serif); }
.ring { width: 56px; height: 56px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: var(--surface-2); stroke-width: 5; stroke-linecap: round; }
.ring circle.on { stroke: var(--done); animation: segin 0.6s var(--ease) both; animation-delay: var(--d); }

/* the six strings */
.strings-wrap { grid-column: 1 / -1; position: relative; margin: 6px 0 4px; }
.strings {
  position: relative; display: grid; grid-template-columns: 30px 1fr; grid-template-rows: minmax(0, 1fr); align-items: stretch; height: 132px;
  border-radius: var(--r); outline-offset: 4px; cursor: crosshair; touch-action: pan-y;
  background:
    linear-gradient(90deg, transparent 0 calc(30px + 6%), var(--line) calc(30px + 6%) calc(30px + 6% + 2px), transparent 0) ,
    linear-gradient(90deg, transparent 0 calc(30px + 33%), var(--line) calc(30px + 33%) calc(30px + 33% + 2px), transparent 0),
    linear-gradient(90deg, transparent 0 calc(30px + 62%), var(--line) calc(30px + 62%) calc(30px + 62% + 2px), transparent 0);
}
.string-names { display: grid; grid-template-rows: repeat(6, 1fr); padding: calc(132px / 14) 0; line-height: 1; font: 500 0.68rem var(--sans); color: var(--ink-3); align-items: center; }
.strings svg { width: 100%; height: 100%; min-height: 0; overflow: visible; }
.strings > * { min-height: 0; }
.string { fill: none; stroke: var(--ink-3); stroke-width: var(--gauge); vector-effect: non-scaling-stroke; opacity: 0.65; transition: stroke 0.3s, opacity 0.3s; }
.string.hum { stroke: var(--accent); opacity: 1; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 55%, transparent)); }
.strings:hover .string:not(.hum) { opacity: 0.85; }
.strum-hint { position: absolute; right: 64px; top: -22px; transform: rotate(-4deg); transition: opacity 0.6s, transform 0.6s var(--ease); pointer-events: none; }
.strum-hint::after { content: "↙"; font-family: var(--sans); font-size: 1rem; margin-left: 4px; }
.strum-hint.gone { opacity: 0; transform: rotate(-4deg) translateY(-6px); }
.strings-wrap .sound { position: absolute; right: 0; top: -26px; width: 34px; height: 34px; }

/* nudge */
.nudge {
  display: flex; gap: 16px; align-items: flex-start; padding: 18px 22px; margin-bottom: 24px; border-radius: var(--r);
  background: linear-gradient(120deg, var(--accent-soft), color-mix(in srgb, var(--highlight) 22%, var(--surface)));
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); max-width: 920px;
}
.nudge-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--on-accent); flex: none; }
.nudge b { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }
.nudge p { color: var(--ink-2); margin-top: 2px; }

/* plan card */
.plan { padding: 34px 36px; }
.plan-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.plan-head .eyebrow { margin-bottom: 10px; }
.plan-time { display: grid; justify-items: center; padding: 10px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); line-height: 1; }
.plan-time b { font: 500 2rem var(--serif); letter-spacing: -0.03em; }
.plan-time span { font: 500 0.66rem var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }
.timeline { display: flex; gap: 4px; height: 10px; margin: 26px 0 8px; }
.timeline .seg { flex: var(--m) 1 0; border-radius: 99px; background: var(--c); transform-origin: left; animation: grow 0.9s var(--ease) both; }
.timeline .seg:nth-child(2) { animation-delay: 0.05s; } .timeline .seg:nth-child(3) { animation-delay: 0.1s; } .timeline .seg:nth-child(4) { animation-delay: 0.15s; }
.timeline .seg:nth-child(5) { animation-delay: 0.2s; } .timeline .seg:nth-child(6) { animation-delay: 0.25s; } .timeline .seg:nth-child(7) { animation-delay: 0.3s; }
.setlist { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; }
.setlist li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding: 13px 0; border-top: 1px solid var(--line); }
.setlist li:last-child { border-bottom: 1px solid var(--line); }
.setlist .n { font: 500 0.95rem var(--serif); font-style: italic; color: var(--ink-3); position: relative; padding-left: 14px; }
.setlist .n::before { content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; margin-top: -4px; border-radius: 50%; background: var(--c); }
.setlist b { font-weight: 600; }
.setlist p { color: var(--ink-2); font-size: 0.95rem; margin-top: 2px; max-width: 72ch; }
.setlist .m { font: 500 0.95rem var(--serif); color: var(--ink-3); }
.recap { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 28px; }
.recap-item { padding: 18px 20px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.recap-item.wide { grid-column: 1 / -1; }
.recap-item p { color: var(--ink-2); font-size: 0.95rem; }
.recap-item q { font-size: 1.02rem; }
.plan-foot { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.plan-foot .hand { transform: rotate(-3deg); }
.state { display: grid; gap: 14px; justify-items: start; }
.state-mark { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.state-mark .i { width: 26px; height: 26px; }
.state-mark.done { background: var(--done); color: #fff; animation: pop 0.6s var(--spring) both 0.2s; }
.state .lead { max-width: 60ch; }

/* this week */
.strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 14px; }
.dpill {
  position: relative; display: grid; justify-items: center; gap: 2px; padding: 10px 0 8px; border-radius: 14px; text-decoration: none;
  background: var(--surface-2); border: 1px solid var(--line); transition: transform 0.25s var(--ease);
}
.dpill:hover { transform: translateY(-2px); }
.dl { font: 500 0.62rem var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.dn { font: 500 1.1rem/1.1 var(--serif); }
.dm { height: 16px; display: grid; place-items: center; }
.dm .i { width: 14px; height: 14px; stroke-width: 2.4; }
.dm em { font: normal 600 0.7rem var(--sans); }
.dpill.done { background: var(--done); border-color: transparent; color: #fff; }
.dpill.done .dl { color: rgba(255, 255, 255, 0.75); }
.dpill.missed { background: var(--missed-soft); border-color: transparent; color: var(--missed); }
.dpill.off { background: var(--off); border-color: transparent; color: var(--off-ink); }
.dpill.excused { background: repeating-linear-gradient(-45deg, var(--off) 0 5px, transparent 5px 9px); border-color: var(--line); color: var(--off-ink); }
.dpill.now { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.dpill.pre { opacity: 0.45; }

.goal-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.goal-mini li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.goal-mini li:first-child { border-top: 0; padding-top: 0; }
.goal-mini .dot { width: 14px; height: 14px; margin-top: 4px; border-radius: 50%; border: 1.5px solid var(--ink-3); }
.goal-mini p { font-size: 0.95rem; margin-bottom: 6px; }

/* =========================================================
   LESSON
   ========================================================= */
.lesson { max-width: 1320px; margin: 0 auto; }
.lesson-head { display: grid; gap: 10px; margin-bottom: 28px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; width: fit-content; font-size: 0.85rem; color: var(--ink-3); text-decoration: none; margin-bottom: 8px; }
.back-link:hover { color: var(--ink); }
.back-link .i { width: 15px; height: 15px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; padding: 0; margin: 16px 0 0; counter-reset: s; }
.steps li { position: relative; padding-top: 12px; font: 500 0.68rem var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); counter-increment: s; }
.steps li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 99px; background: var(--line-2); transition: background 0.4s; }
.steps li.done::before { background: var(--ink); }
.steps li.now { color: var(--ink); }
.steps li.now::before { background: var(--accent); box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 55%, transparent); }
.steps li span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.choose-intro { display: grid; gap: 8px; margin-bottom: 22px; }
.guitars { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.guitar-card {
  display: grid; justify-items: start; gap: 4px; padding: 26px 28px 28px; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow), var(--inner-hi);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s;
}
.guitar-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: var(--shadow-lg); }
.guitar-card b { font: 500 1.9rem var(--serif); letter-spacing: -0.02em; margin-top: 10px; }
.guitar-card span { color: var(--ink-3); font-size: 0.92rem; }
.g-art { width: 100%; height: auto; max-height: 150px; margin-bottom: 4px; transition: transform 0.6s var(--ease); }
.guitar-card:hover .g-art { transform: rotate(-4deg) scale(1.04); }
.g-art .ga-shadow { fill: rgba(0, 0, 0, 0.12); filter: blur(3px); }
.g-art .ga-frets line { stroke: #CFC6B4; stroke-width: 0.7; }
.g-art .ga-inlay circle { fill: #EFE7D6; }
.g-art .ga-tuners circle { fill: #D8D2C6; stroke: #8E877A; stroke-width: 0.5; }
.g-art .ga-pickup { fill: #ECE2C9; stroke: #C9BC9C; stroke-width: 0.5; }
.g-art .ga-poles circle { fill: #9B9384; }
.g-art .ga-metal { fill: #D9D3C8; stroke: #8E877A; stroke-width: 0.5; }
.g-art .ga-knob { fill: #E9C46A; stroke: #8A6A1F; stroke-width: 0.6; }
.g-art .ga-strings line { stroke: #EEE8DC; opacity: 0.95; }
.builds { margin-top: 22px; color: var(--ink-2); max-width: 70ch; }
.builds .hand { margin-right: 6px; }

.lesson-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.block { padding: 36px 40px; overflow: hidden; }
.block::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c); }
.block .eyebrow { margin-bottom: 14px; }
.step-n { display: inline-grid; place-items: center; min-width: 30px; height: 22px; border-radius: 6px; background: var(--c); color: #fff; letter-spacing: 0.04em; }
.block-title { margin-bottom: 20px; }
.block-text { font-size: 1.24rem; line-height: 1.6; max-width: 62ch; color: var(--ink); }
.tab-card { margin: 26px 0 0; padding: 18px 20px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); }
.tab-card figcaption { margin-bottom: 10px; }
.tab { margin: 0; font: 700 1rem/1.45 var(--mono); overflow-x: auto; color: var(--ink); }
.tone { margin-top: 24px; padding: 16px 18px 16px 20px; border-left: 2px solid var(--biro); background: color-mix(in srgb, var(--biro) 6%, transparent); border-radius: 0 var(--r-sm) var(--r-sm) 0; max-width: 70ch; }
.tone p { margin-top: 6px; color: var(--ink-2); }

.tools { display: grid; gap: 16px; position: sticky; top: 96px; }
.tool { padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow), var(--inner-hi); display: grid; gap: 14px; justify-items: center; }
.tool > .eyebrow { justify-self: start; }
.timer-face { position: relative; width: 168px; height: 168px; }
.timer-face svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.timer-face .track { fill: none; stroke: var(--surface-2); stroke-width: 7; }
.timer-face .prog { fill: none; stroke: var(--accent); stroke-width: 7; stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.timer .clock { position: absolute; inset: 0; display: grid; place-items: center; font: 500 2.9rem var(--serif); letter-spacing: -0.03em; font-variant-numeric: lining-nums tabular-nums; }
.timer.running .clock { color: var(--accent); }
.timer.ding .timer-face { animation: pop 0.6s var(--spring) 2; }
.timer.ding .prog { stroke: var(--done); }
.metro .bpm { display: flex; align-items: center; gap: 14px; }
.metro output { font: 500 3rem/1 var(--serif); letter-spacing: -0.03em; min-width: 3ch; text-align: center; font-variant-numeric: tabular-nums; cursor: text; border-radius: 12px; padding: 2px 6px; transition: background 0.2s; user-select: none; }
.metro output:hover { background: var(--surface-2); }
.bpm-input { width: 3.2ch; font: inherit; color: var(--ink); text-align: center; background: var(--surface); border: 0; border-bottom: 2px solid var(--accent); outline: none; padding: 0; -moz-appearance: textfield; }
.bpm-input::-webkit-outer-spin-button, .bpm-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bpm-label { font: 500 0.66rem var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-top: -10px; }
.beats { display: flex; gap: 10px; }
.beats i { width: 12px; height: 12px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-2); transition: transform 0.08s, background 0.08s; }
.beats i.on { background: var(--ink); transform: scale(1.35); }
.beats i:first-child.on { background: var(--accent); box-shadow: 0 0 12px var(--accent); }

.lesson-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }

/* recorder */
.recorder { display: flex; align-items: center; gap: 20px; margin: 28px 0 18px; padding: 18px 22px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); }
.rec-btn { position: relative; flex: none; width: 76px; height: 76px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow), 0 0 0 1px var(--line-2); transition: transform 0.25s var(--ease); }
.rec-btn:hover { transform: scale(1.05); }
.rec-btn span { width: 30px; height: 30px; border-radius: 50%; background: var(--missed); transition: border-radius 0.3s var(--ease), transform 0.3s var(--ease); box-shadow: 0 0 0 6px var(--missed-soft); }
.rec-btn.live span { border-radius: 7px; transform: scale(0.82); }
.rec-btn.live::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--missed); animation: ping 1.4s var(--ease) infinite; }
.live-wave { flex: 1; display: flex; align-items: center; gap: 3px; height: 56px; }
.live-wave i { flex: 1; height: calc(6% + var(--h, 0.06) * 94%); min-height: 3px; border-radius: 99px; background: var(--missed); opacity: 0.85; transition: height 0.08s; }
.rec-time { font: 500 1.6rem var(--serif); min-width: 4ch; text-align: right; font-variant-numeric: tabular-nums; }
.take { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 10px; }
.take audio { height: 40px; max-width: 100%; }
.warn { padding: 12px 16px; border-radius: var(--r-sm); background: var(--missed-soft); color: var(--missed); margin-top: 14px; }

/* journal */
.journal { padding: 36px 40px; }
.journal-intro { display: grid; gap: 8px; margin-bottom: 28px; }
.journal-grid { display: grid; gap: 0 48px; }
fieldset { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
legend { padding: 0; margin-bottom: 12px; }
.mood-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.mood { position: relative; display: grid; justify-items: center; gap: 6px; padding: 14px 4px 10px; border-radius: var(--r); cursor: pointer; color: var(--ink-3); border: 1px solid var(--line); background: var(--surface-2); font-size: 0.8rem; transition: all 0.3s var(--ease); }
.mood:hover { color: var(--ink); transform: translateY(-2px); }
.mood input, .seg-ctl input, .goal-list input { position: absolute; opacity: 0; pointer-events: none; }
.mood:has(input:checked) { color: var(--accent); background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 40%, transparent); transform: translateY(-2px); }
.mood:has(input:checked) .face { animation: pop 0.5s var(--spring); }
.mood:has(input:focus-visible), .seg-ctl label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.rate { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 0; flex-wrap: wrap; }
.rate > span { font-weight: 500; }
.seg-ctl { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.seg-ctl label, .seg-ctl button { cursor: pointer; }
.seg-ctl b, .seg-ctl button { display: grid; place-items: center; min-width: 38px; height: 32px; padding: 0 12px; border-radius: 999px; font: 500 0.85rem var(--sans); color: var(--ink-3); background: none; border: 0; transition: background 0.25s, color 0.25s; }
.seg-ctl label:has(input:checked) b, .seg-ctl button.on { background: var(--ink); color: var(--bg); box-shadow: var(--shadow-sm); }
.seg-ctl button { font-family: var(--sans); font-weight: 600; }
.scale { display: flex; justify-content: flex-end; gap: 120px; margin-top: 2px; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field input, .field textarea {
  font: 1rem/1.5 var(--sans); color: var(--ink); width: 100%; padding: 12px 14px; resize: vertical;
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 14px; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px var(--accent-soft); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }

/* =========================================================
   TRACKER
   ========================================================= */
.cal-card { padding: 30px 32px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.cal-head h2 span { color: var(--ink-3); font-style: italic; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.dow { font: 500 0.66rem var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); padding: 0 4px 6px; }
.day {
  position: relative; aspect-ratio: 1 / 0.92; display: grid; place-items: start; padding: 10px 12px; cursor: pointer;
  border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
  font: 500 1rem var(--serif); color: var(--ink);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  animation: rise 0.5s var(--ease) both; animation-delay: calc(var(--n) * 10ms);
}
.day:hover { transform: translateY(-3px); box-shadow: var(--shadow); z-index: 1; }
.day .glyph { position: absolute; right: 10px; bottom: 10px; }
.day .glyph .i { width: 18px; height: 18px; stroke-width: 2.4; }
.day .mark { position: absolute; right: 10px; bottom: 8px; font: 600 0.75rem var(--sans); color: var(--off-ink); }
.day .recdot { position: absolute; left: 12px; bottom: 12px; width: 7px; height: 7px; border-radius: 50%; background: var(--highlight); box-shadow: 0 0 0 2px color-mix(in srgb, var(--highlight) 35%, transparent); }
.day.done { background: var(--done); color: #fff; border-color: transparent; }
.day.missed { background: var(--missed-soft); color: var(--missed); border-color: transparent; }
.day.off { background: var(--off); color: var(--off-ink); border-color: transparent; }
.day.excused { background: repeating-linear-gradient(-45deg, var(--off) 0 6px, transparent 6px 11px); color: var(--off-ink); }
.day.today { border: 1.5px solid var(--accent); background: var(--accent-soft); }
.day.pre { opacity: 0.35; }
.day.out { opacity: 0.35; }
.day.now::after { content: "today"; position: absolute; right: 10px; top: 10px; font: 500 0.6rem var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.day.done.now::after { color: rgba(255, 255, 255, 0.85); }
.day.sel { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; font-size: 0.82rem; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend small { color: var(--ink-3); }
.legend i { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line-2); }
.legend i.done { background: var(--done); border-color: transparent; }
.legend i.missed { background: var(--missed-soft); border-color: var(--missed); }
.legend i.off { background: var(--off); border-color: transparent; }
.legend i.excused { background: repeating-linear-gradient(-45deg, var(--off) 0 3px, transparent 3px 5px); }
.legend i.planned { background: var(--surface); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.panel-head h3 { font: 500 1.35rem var(--serif); letter-spacing: -0.015em; }
.panel .eyebrow { margin: 16px 0 8px; }
.panel > p { color: var(--ink-2); }
.panel .btn.primary { margin-bottom: 4px; }
.day-sess { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.day-sess div { display: grid; }
.day-sess b { color: var(--ink); }
.day-card .link { margin-top: 12px; }
.statgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
.statgrid div { display: grid; gap: 2px; }
.statgrid b { font: 500 2.4rem/1 var(--serif); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.statgrid small { font-size: 0.8rem; color: var(--ink-3); }
.tallies { list-style: none; padding: 0; margin: 0 0 12px; }
.tallies li { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.tallies .wk { font: 500 0.72rem var(--sans); color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; }
.tallies b { font: 500 0.9rem var(--sans); }
.tallies b.ok { color: var(--done); }
.tallies b.short { color: var(--missed); }
.tally { position: relative; display: inline-flex; gap: 4px; margin-right: 10px; height: 20px; vertical-align: middle; }
.tally i { width: 2px; height: 20px; background: var(--ink); border-radius: 2px; }
.tally i:nth-child(2) { transform: rotate(2deg); } .tally i:nth-child(3) { transform: rotate(-2deg); }
.tally.five::after { content: ""; position: absolute; left: -4px; right: -4px; top: 9px; height: 2px; background: var(--accent); border-radius: 2px; transform: rotate(-24deg); }

/* =========================================================
   GOALS
   ========================================================= */
.road { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 10px 0 36px; padding-top: 6px; }
.road::before { content: ""; position: absolute; left: 10%; right: 10%; top: 24px; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 8px, transparent 8px 14px); }
.stop { position: relative; display: grid; justify-items: center; gap: 4px; text-align: center; animation: rise 0.6s var(--ease) both; animation-delay: calc(var(--i) * 80ms); }
.node { position: relative; z-index: 1; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--line-2); margin-bottom: 8px; color: var(--ink-3); }
.stop.past .node { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.stop.past .node .i { width: 18px; height: 18px; stroke-width: 2.4; }
.stop.here .node { width: 48px; height: 48px; margin-top: -5px; border: 0; background: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft), 0 10px 24px -8px var(--accent); }
.stop.here .node .pick { width: 22px; height: 22px; fill: #fff; transform: rotate(-16deg); }
.stop b { font: 500 1.05rem var(--serif); letter-spacing: -0.01em; }
.stop small { font: 500 0.66rem var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.stop:not(.past):not(.here) b { color: var(--ink-3); }
.stop .you { position: absolute; top: -26px; left: calc(50% + 24px); transform: rotate(-6deg); white-space: nowrap; }
.goals-top { display: grid; gap: 0 24px; align-items: start; }
.level-card { background: var(--ink); color: var(--bg); border-color: transparent; padding: 34px 36px; overflow: hidden; }
.level-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%); opacity: 0.6; }
.level-card .eyebrow { color: color-mix(in srgb, var(--bg) 60%, transparent); }
.level-card h2 { font-size: clamp(2.4rem, 4.5vw, 3.6rem); margin: 10px 0 14px; position: relative; }
.level-card p { color: color-mix(in srgb, var(--bg) 82%, transparent); position: relative; max-width: 60ch; }
.level-card .muted { color: color-mix(in srgb, var(--bg) 55%, transparent); }
.level-card .bar { background: rgba(255, 255, 255, 0.1); border-color: transparent; position: relative; }
.weak { display: grid; gap: 10px; align-content: start; background: color-mix(in srgb, var(--biro) 7%, var(--surface)); border-color: color-mix(in srgb, var(--biro) 22%, transparent); }
.weak .hand { font-size: 1.45rem; }
.weak p { color: var(--ink-2); }
.focus-wrap { margin-bottom: 8px; }
.focus { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.focus-card { display: grid; gap: 14px; align-content: space-between; margin: 0; transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.focus-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.big-n { font: 500 2.6rem/1 var(--serif); color: var(--accent); letter-spacing: -0.04em; font-style: italic; }
.focus-card p { font: 500 1.15rem/1.35 var(--serif); letter-spacing: -0.01em; }
.tiers { display: grid; gap: 0 20px; align-items: start; margin-top: 20px; }
.tier.future { opacity: 0.6; }
.goal-list { list-style: none; margin: 0; padding: 0; }
.goal-list li { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.goal-list label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.goal-list .box { flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px; border: 1.5px solid var(--line-2); background: var(--surface); color: transparent; transition: all 0.3s var(--spring); }
.goal-list .box .i { width: 14px; height: 14px; stroke-width: 3; }
.goal-list input:checked + .box { background: var(--done); border-color: var(--done); color: #fff; transform: scale(1.05); }
.goal-list input:focus-visible + .box { outline: 2px solid var(--accent); outline-offset: 2px; }
.goal-list input:disabled + .box { cursor: default; }
.goal-list li.done .gt { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line-2); }

/* =========================================================
   TAPES
   ========================================================= */
.tapes { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.tape-card { margin: 0; display: grid; gap: 16px; align-content: start; transition: transform 0.4s var(--ease), box-shadow 0.4s; animation: rise 0.6s var(--ease) both; animation-delay: calc(var(--i) * 50ms); }
.tape-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tape-card header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.tape-card header .eyebrow { margin-bottom: 6px; }
.tape-card h3.display { margin-bottom: 4px; }
.mood-badge { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--surface-2); color: var(--ink-2); }
.mood-badge.m3, .mood-badge.m4 { background: var(--done-soft); color: var(--done); }
.mood-badge.m0 { background: var(--missed-soft); color: var(--missed); }
.wave-btn {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: var(--r); cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--line); transition: border-color 0.2s, background 0.2s;
}
.wave-btn:hover { border-color: var(--line-2); }
.pb { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--bg); transition: transform 0.25s var(--spring); }
.wave-btn:hover .pb { transform: scale(1.08); }
.wave-btn.playing .pb { background: var(--accent); color: #fff; }
.pb .i { width: 16px; height: 16px; }
.wave { flex: 1; display: flex; align-items: center; gap: 2px; height: 38px; }
.wave i { flex: 1; height: calc(var(--h) * 100%); min-height: 3px; border-radius: 99px; background: var(--ink-3); opacity: 0.5; transition: background 0.15s, opacity 0.15s; }
.wave i.lit { background: var(--accent); opacity: 1; }
.dur { font: 500 0.78rem var(--sans); color: var(--ink-3); }
.compare { justify-self: start; }
.no-rec { display: flex; gap: 8px; align-items: center; padding: 14px; border-radius: var(--r); border: 1px dashed var(--line-2); }
.player:empty { display: none; }
.tape-card blockquote { margin: 0; font: italic 400 1.05rem/1.5 var(--serif); color: var(--ink-2); padding-left: 14px; border-left: 2px solid var(--line-2); }
.notes { display: grid; gap: 6px; font-size: 0.9rem; color: var(--ink-2); }
.notes:empty { display: none; }
.tag { display: inline-block; font: 600 0.62rem var(--sans); letter-spacing: 0.1em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; margin-right: 6px; vertical-align: 1px; }
.tag.hard { background: var(--missed-soft); color: var(--missed); }
.tag.win { background: var(--done-soft); color: var(--done); }
.empty { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 48px; color: var(--ink-3); grid-column: 1 / -1; }
.empty .i { width: 40px; height: 40px; }

/* ---------- plectrum or fingers ---------- */
.tool-tag { display: inline-block; margin-left: 10px; padding: 1px 8px; border-radius: 999px; font: 600 0.66rem/1.6 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; vertical-align: 2px; background: var(--surface-2); color: var(--ink-3); border: 1px solid var(--line); }
.tool-tag.t-pick { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.tool-tag.t-fingers { background: color-mix(in srgb, var(--biro) 12%, transparent); color: var(--biro); border-color: transparent; }
.hand-bar { display: flex; align-items: stretch; gap: 0; margin: 0 0 22px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); max-width: 760px; }
.hb-tool { display: flex; align-items: center; gap: 9px; padding: 12px 16px; background: var(--accent); color: #fff; flex: none; }
.hb-tool b { font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.hb-tool .i { width: 20px; height: 20px; }
.hb-pick { width: 18px; height: 18px; fill: #fff; transform: rotate(-16deg); }
.hand-bar.t-fingers .hb-tool { background: var(--biro); }
.hand-bar.t-none .hb-tool, .hand-bar.t-either .hb-tool { background: var(--ink); color: var(--bg); }
.hand-bar.t-either .hb-pick { fill: var(--bg); }
.hb-how { padding: 11px 16px; color: var(--ink-2); font-size: 0.92rem; line-height: 1.45; align-self: center; }
.hb-how b { color: var(--ink); }
.prep { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; margin-top: 24px; padding: 16px 20px; border-radius: var(--r); border: 1px dashed var(--line-2); }
.prep p { display: flex; align-items: center; gap: 8px; }
.inline-pick { width: 16px; height: 16px; fill: var(--accent); flex: none; transform: rotate(-16deg); }
.level-link { margin-left: auto; }
.seg-ctl.wide { display: flex; width: 100%; }
.seg-ctl.wide label { flex: 1; }
.seg-ctl.wide b { width: 100%; font-family: var(--sans); font-weight: 600; }
.levelq { margin-bottom: 24px; }
.level-nudge { background: linear-gradient(120deg, color-mix(in srgb, var(--biro) 10%, var(--surface)), var(--surface)); border-color: color-mix(in srgb, var(--biro) 25%, transparent); }
.level-nudge .nudge-icon { background: var(--biro); }
.level-nudge .btn { margin-top: 10px; }
.weeks { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.week-pick { margin: 0; display: grid; gap: 10px; align-content: start; animation: rise 0.6s var(--ease) both; animation-delay: calc(var(--i) * 30ms); }
.week-pick .card-head { margin-bottom: 0; }
.week-pick ul { margin: 0; padding: 0 0 0 18px; color: var(--ink-2); font-size: 0.9rem; display: grid; gap: 2px; }
.week-pick.current { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow); }
.tuner-chip .i { width: 16px; height: 16px; }

/* ---------- tuner ---------- */
.tuner-dialog { padding: 0; border: 0; border-radius: 28px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); width: min(520px, calc(100vw - 32px)); }
.tuner-dialog::backdrop { background: rgba(15, 14, 12, 0.45); backdrop-filter: blur(6px); }
.tuner-dialog[open] { animation: rise 0.45s var(--ease); }
.tuner { padding: 22px 26px 26px; display: grid; gap: 14px; }
.tuner-head { display: flex; justify-content: space-between; align-items: center; }
.tuner-face { position: relative; display: grid; justify-items: center; }
.gauge { width: 100%; max-width: 340px; }
.gauge .arc { fill: none; stroke: var(--surface-2); stroke-width: 14; stroke-linecap: round; }
.gauge .zone { fill: none; stroke: var(--done); stroke-width: 14; stroke-linecap: round; opacity: 0.35; transition: opacity 0.3s; }
.tuner-face.good .gauge .zone { opacity: 1; }
.gauge .tick { stroke: var(--ink-3); stroke-width: 1.2; }
.gauge .tick.big { stroke: var(--ink-2); stroke-width: 2; }
.gauge .lbl { font: 600 10px var(--sans); fill: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase; }
.gauge .needle { transform-origin: 150px 150px; transition: transform 0.14s var(--ease); }
.gauge .needle line { stroke: var(--ink-3); stroke-width: 3; stroke-linecap: round; }
.gauge .needle circle { fill: var(--ink); }
.tuner-face.live .needle line { stroke: var(--accent); }
.tuner-face.good .needle line { stroke: var(--done); }
.readout { display: grid; justify-items: center; margin-top: 4px; min-height: 118px; }
.readout .note { font: 500 4.4rem/1 var(--serif); letter-spacing: -0.03em; transition: color 0.2s; }
.tuner-face.good .note { color: var(--done); }
.readout .cents { font-weight: 600; font-size: 0.9rem; color: var(--ink-2); }
.readout .hz { font-size: 0.75rem; color: var(--ink-3); font-variant-numeric: tabular-nums; min-height: 1em; }
.tuner-strings { display: grid; grid-template-columns: 1.3fr repeat(6, 1fr); gap: 6px; margin-top: 6px; }
.tuner-strings button { height: 46px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface-2); cursor: pointer; font: 500 1.25rem var(--serif); transition: all 0.2s var(--ease); }
.tuner-strings button[data-s="auto"] { font: 600 0.8rem var(--sans); letter-spacing: 0.04em; }
.tuner-strings button:hover { transform: translateY(-2px); border-color: var(--ink-3); }
.tuner-strings button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tuner-msg { text-align: center; }

/* =========================================================
   SETTINGS
   ========================================================= */
.steps-list { margin: 16px 0 24px; padding: 0; list-style: none; counter-reset: st; display: grid; gap: 10px; }
.steps-list li { counter-increment: st; display: grid; grid-template-columns: 28px 1fr; gap: 10px; color: var(--ink-2); }
.steps-list li::before { content: counter(st, decimal-leading-zero); font: 500 0.78rem var(--sans); color: var(--accent); padding-top: 2px; }
.sync-msg { color: var(--ink-3); }
.sync-msg[data-status="error"] { color: var(--missed); }
.sync-msg[data-status="ok"] { color: var(--done); }
.settings-grid .card p { margin-top: 8px; }
.settings-grid h3 { margin-bottom: 4px; }

/* =========================================================
   confetti + keyframes
   ========================================================= */
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 150; }
.confetti span { position: absolute; top: -40px; width: 22px; animation: fall 2.6s cubic-bezier(0.3, 0.6, 0.5, 1) forwards; }
.confetti .pick { width: 22px; height: 22px; fill: currentColor; transform: scale(var(--s)); }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes word { from { opacity: 0; transform: translateY(0.4em) rotate(2deg); filter: blur(6px); } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes segin { from { stroke-dasharray: 0 200; } }
@keyframes pop { 0% { transform: scale(0.6); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes ping { from { transform: scale(0.9); opacity: 0.9; } to { transform: scale(1.35); opacity: 0; } }
@keyframes blink { to { opacity: 0.35; } }
@keyframes flicker { 0%, 100% { transform: scale(1) rotate(0); } 30% { transform: scale(1.06, 0.96) rotate(-3deg); } 60% { transform: scale(0.97, 1.05) rotate(2deg); } }
@keyframes fall { to { transform: translate(var(--drift), 110vh) rotate(var(--spin)); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =========================================================
   responsive
   ========================================================= */
@media (min-width: 1100px) {
  .cols { grid-template-columns: minmax(0, 1.75fr) minmax(360px, 1fr); align-items: start; }
  .col-side { grid-template-columns: 1fr; }
  .journal-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .goals-top { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .tiers { grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); }
  .settings-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
}
@media (min-width: 1600px) {
  body { font-size: 17px; }
  .greet { font-size: 5.8rem; }
  .lesson-body { grid-template-columns: minmax(0, 1fr) 360px; }
  .block-text { font-size: 1.35rem; }
}
@media (max-width: 1099px) {
  .hero { grid-template-columns: 1fr; }
  .lesson-body { grid-template-columns: 1fr; }
  .tools { position: static; grid-template-columns: 1fr 1fr; }
  .brand-sub { display: none; }
  .tuner-chip span { display: none; }
}
@media (max-width: 860px) {
  .top-inner { flex-wrap: wrap; gap: 12px 16px; padding: calc(12px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left)); }
  nav { order: 3; width: 100%; margin: 0; justify-content: space-between; }
  nav a { padding: 7px 10px; font-size: 0.82rem; gap: 5px; flex: 1; justify-content: center; }
  .top-tools { margin-left: auto; }
  main { padding: 24px 16px 48px; }
  .foot { padding: 0 16px 40px; }
  .col-side { grid-template-columns: 1fr; }
  .recap, .guitars, .focus { grid-template-columns: 1fr; }
  .road { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .stop small { display: none; }
  .stop b { font-size: 0.82rem; }
  .stop .you { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 15.5px; }
  nav a .i { display: none; }
  .card, .plan, .block, .journal, .cal-card, .level-card { padding: 22px 18px; border-radius: 22px; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .stat { padding: 14px 12px; min-height: 0; }
  .stat > b { font-size: 2rem; }
  .stat-foot { display: none; }
  .ring-wrap, .ring { width: 46px; height: 46px; }
  .strings { height: 110px; grid-template-columns: 22px 1fr; }
  .string-names { padding: calc(110px / 14) 0; }
  .plan-time { display: none; }
  .setlist li { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; }
  .tools { grid-template-columns: 1fr; }
  .steps { gap: 4px; }
  .steps li span { display: none; }
  .block-text { font-size: 1.1rem; }
  .mood-row { gap: 4px; }
  .mood span { font-size: 0.68rem; }
  .rate { display: grid; }
  .scale { gap: 0; justify-content: space-between; }
  .cal { gap: 4px; }
  .day { padding: 6px; border-radius: 10px; font-size: 0.85rem; aspect-ratio: 1; }
  .day .glyph { right: 5px; bottom: 4px; }
  .day .glyph .i { width: 13px; height: 13px; }
  .day.now::after { display: none; }
  .day .recdot { left: 6px; bottom: 6px; width: 5px; height: 5px; }
  .dow { font-size: 0.56rem; letter-spacing: 0.04em; padding: 0 0 4px; }
  .lesson-nav .btn.lg { padding: 12px 18px; }
  .tapes { grid-template-columns: 1fr; }
  .page-head.row { display: grid; }
  .hand-bar { display: grid; }
  .level-link { margin-left: 0; }
  .tuner-strings { grid-template-columns: repeat(7, 1fr); }
}
