:root {
    color-scheme: dark;
    --bg: #0d1013; --bg-deep: #0d1013; --bg-mid: #151a1e;
    --panel: #151a1e; --panel-soft: #111619; --panel-strong: #1c2428;
    --line: #2b3339; --text: #f0f3ee; --muted: #9aa7ad;
    --accent: #c4f878; --accent-a: #c4f878; --accent-soft: #87d5df; --accent-b: #ffad91;
    --accent-c: #87d5df; --accent-strong: #c4f878; --lime: #c4f878; --cyan: #87d5df;
    --good: #c4f878; --bad: #ffad91; --warn: #e4cc8e;
    --source-color: #c4f878; --target-color: #87d5df;
    --home-bg: #0d1013; --home-panel: #151a1e; --home-panel-soft: #111619;
    --home-line: #2b3339; --home-text: #f0f3ee; --home-muted: #9aa7ad;
    --home-green: #c4f878; --home-orange: #ffad91; --home-blue: #87d5df;
    --ui-font: 'Space Grotesk', 'Segoe UI', sans-serif;
    --label-font: 'IBM Plex Mono', monospace;
}
* { box-sizing: border-box; }
body.pf-site { display: block; margin: 0; padding: 0; min-height: 100vh; font-family: var(--ui-font); color: var(--text); background: var(--bg); background-image: none; overflow-x: clip; }
body.pf-site::before, body.pf-site::after { display: none; }
.pf-site .page, .pf-site .container, .pf-site .landing { display: block; position: relative; width: min(1060px, calc(100% - 48px)); max-width: 1060px; margin: auto; padding: 0 0 32px; border: 0; border-radius: 0; background: none; box-shadow: none; backdrop-filter: none; }
button, input, select, textarea { font: inherit; }
.pf-site button, .pf-site summary { cursor: pointer; }
.pf-site button:disabled { cursor: default; }
.pf-site :is(button, a, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.pf-site a { color: var(--cyan); }
.pf-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding: 25px 0; position: relative; z-index: 5; }
.pf-brand { display: inline-flex; gap: 12px; align-items: center; text-decoration: none; font-size: .95rem; font-weight: 600; color: var(--text) !important; }
.pf-brand-mark { display: grid; place-items: center; width: 30px; height: 30px; background: var(--lime); color: #18220e; font-size: 1.4rem; letter-spacing: 2px; }
.pf-nav-menu { position: relative; }
.pf-nav-menu > summary { color: var(--muted); padding: 10px 0 10px 12px; font-size: .8rem; list-style: none; }
.pf-nav-menu summary span { margin-left: 12px; color: var(--lime); }
.pf-nav-menu > div { position: absolute; right: 0; top: 100%; display: grid; gap: 4px; min-width: 240px; padding: 12px; background: #1c2428; border: 1px solid #445158; border-radius: 10px; box-shadow: 0 20px 50px #0008; }
.pf-nav-menu a { display: block; padding: 12px !important; min-height: 44px; background: transparent !important; border: 0 !important; color: var(--text) !important; text-transform: none; letter-spacing: 0; font: 400 .85rem var(--ui-font); text-decoration: none; }
.pf-nav-menu a:hover { background: #303c32 !important; }
.pf-nav-menu summary::-webkit-details-marker, .pf-details > summary::-webkit-details-marker { display: none; }
.pf-site .pf-intro { padding: 38px 0 28px; text-align: center; background: none; border: 0; box-shadow: none; display: block; }
.pf-site .eyebrow { display: inline-block; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--lime); font: 500 .68rem var(--label-font); letter-spacing: .1em; text-transform: uppercase; }
.pf-site .pf-intro h1 { max-width: none; margin: 10px 0 8px; font-size: clamp(2.5rem, 6vw, 4.1rem); font-weight: 500; letter-spacing: -.055em; line-height: 1.05; color: var(--text); background: none; -webkit-text-fill-color: var(--text); }
.pf-intro > p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.6; }
.pf-tool-name { display: block; margin-top: 12px; color: var(--muted); font: 500 .6rem var(--label-font); letter-spacing: .06em; text-transform: uppercase; }
.pf-site .pf-quiz, .pf-site .pf-tool-launch, .pf-site .pf-rhythm { border: 1px solid #354038; border-radius: 16px; background: var(--panel); overflow: hidden; }
.pf-session-bar { display: flex; gap: 12px; justify-content: space-between; align-items: center; padding: 16px 25px; border-bottom: 1px solid var(--line); color: var(--muted); font: 500 .65rem var(--label-font); letter-spacing: .06em; text-transform: uppercase; }
.pf-native-progress { display: flex; gap: 10px; }
.pf-native-progress .tag { padding: 0; border: 0; background: none; color: var(--muted); font: inherit; }
.pf-steps { display: flex; gap: 32px; justify-content: center; padding: 24px 0 0; margin: 0; list-style: none; }
.pf-steps li { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .78rem; }
.pf-steps li > span { font-size: 1.1rem; }
.pf-steps [aria-current] { color: var(--lime); }
.pf-sound-stage { display: grid; grid-template-columns: 1fr 160px 1fr; gap: 28px; align-items: center; padding: 25px 50px; }
.pf-play-zone { display: grid; justify-items: center; }
.pf-site .pf-launch { display: inline-flex; flex-direction: column; gap: 9px; align-items: center; justify-content: center; width: 148px; height: 148px; min-height: 148px; flex: 0 0 auto; aspect-ratio: 1; padding: 16px; border: 1px solid #dcffae; border-radius: 50%; background: var(--lime); color: #18220e; box-shadow: 0 0 0 10px #c4f87808, 0 0 50px #c4f8780c; font: 600 .82rem var(--ui-font); letter-spacing: 0; text-transform: none; transition: transform .2s, box-shadow .2s; }
.pf-site .pf-launch::before { content: ''; display: block; width: 25px; height: 30px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.pf-site .pf-launch[data-playing='true']::before, .pf-site .pf-launch[aria-pressed='true']::before { clip-path: none; width: 23px; height: 23px; }
.pf-site .pf-launch > svg { display: none; }
.pf-site .pf-launch small { display: none; }
.pf-site .pf-launch:hover { transform: scale(1.035); box-shadow: 0 0 0 14px #c4f8780d; }
.pf-quiz[data-ready='true'] .pf-launch { width: 112px; height: 112px; min-height: 112px; font-size: .78rem; }
.pf-wave { display: flex; gap: 4px; height: 70px; align-items: center; justify-content: center; }
.pf-wave i { display: block; width: 4px; height: 20%; border-radius: 3px; background: #455358; transform-origin: center; }
.pf-wave i:nth-child(3n) { height: 65%; }
.pf-wave i:nth-child(3n + 1) { height: 40%; }
.pf-wave i:nth-child(5n) { height: 90%; }
.pf-wave i:nth-child(7n) { height: 30%; }
.pf-quiz[data-listening='true'] .pf-wave i { background: var(--lime); animation: pf-wave .6s ease-in-out infinite alternate; }
.pf-wave i:nth-child(2n) { animation-delay: -.3s !important; }
.pf-wave i:nth-child(3n) { animation-delay: -.5s !important; }
@keyframes pf-wave { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
.pf-quiz[data-ready='false'] .pf-answer-area, .pf-quiz[data-ready='false'] .pf-quiz-actions { display: none; }
.pf-answer-area { padding: 0 35px; }
.pf-site .pf-answer-area .prompt-main { margin: 0 0 20px; text-align: center; font-size: clamp(1.15rem, 3vw, 1.65rem); font-weight: 500; line-height: 1.3; }
.pf-site .answers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 10px; margin: 14px 0 0; }
.pf-site .answer-btn { display: grid; align-content: center; justify-items: center; min-height: 90px; gap: 7px; padding: 16px 12px; border: 1px solid #3c484e; border-radius: 9px; background: #1c2428; color: var(--text); box-shadow: none; font: 500 .9rem var(--ui-font); text-align: center; transition: background .15s, border-color .15s; }
.pf-site .answer-btn strong { font-size: 1rem; }
.pf-site .answer-btn small { color: var(--muted); font-size: .7rem; }
.pf-site .answer-btn:hover:not(:disabled) { background: #27332a; border-color: var(--lime); transform: none; }
.pf-site .answer-btn:is(.is-correct, .correct) { color: var(--lime); border-color: var(--lime); background: #27351d; }
.pf-site .answer-btn:is(.is-wrong, .incorrect) { color: var(--bad); border-color: var(--bad); background: #352821; }
.pf-site .answer-btn:disabled:not(.correct):not(.is-correct):not(.incorrect):not(.is-wrong) { opacity: .5; }
.pf-site .answer-btn > span:first-child:not(:last-child) { border: 0; color: var(--muted); }
.pf-quiz-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 20px 20px 0; }
.pf-listen-status { color: var(--muted); font-size: .8rem; text-align: center; margin: 0; padding: 16px 20px 24px; min-height: 54px; }
.pf-site .feedback { margin: 18px 0 0; padding: 18px; border: 1px solid #4d5c3f; border-radius: 9px; background: #c4f87808; box-shadow: none; color: var(--text); }
.pf-site .feedback-title, .pf-site .feedback h3 { color: var(--text); font-size: 1rem; margin: 0 0 8px; }
.pf-site .feedback :is(p, small, .feedback-note) { color: var(--muted); line-height: 1.6; }
.pf-site .stats-grid, .pf-site .stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 0; margin: 22px 0; }
.pf-site .stat, .pf-site .hero-stat { padding: 4px 12px; background: none; border: 0; border-right: 1px solid var(--line); border-radius: 0; box-shadow: none; text-align: center; color: var(--text); }
.pf-site :is(.stat, .hero-stat):last-child { border: 0; }
.pf-site .stat-label, .pf-site .hero-stat .k { color: var(--muted); font: 500 .58rem var(--label-font); letter-spacing: .06em; text-transform: uppercase; }
.pf-site .stat-value, .pf-site .stat > strong, .pf-site .hero-stat .v { display: block; margin-top: 7px; font-size: 1.25rem; font-weight: 500; color: var(--text); }
.pf-details { margin: 0; border: 0; border-top: 1px solid var(--line); background: none; }
.pf-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; min-height: 60px; padding: 16px 0; color: var(--muted); font-size: .83rem; font-weight: 400; border: 0; border-radius: 0; background: none; }
.pf-details > summary::after { content: '+'; color: var(--lime); font-size: 1.1rem; }
.pf-details[open] > summary::after { content: '−'; }
.pf-settings > summary { color: var(--text); }
.pf-settings-body { padding: 0 0 24px; }
.pf-site .settings-body { margin: 0 0 24px; padding-top: 12px; }
.pf-site .settings-copy { display: none; }
.pf-site .controls, .pf-site .control-grid, .pf-site .controls-grid, .pf-site .filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 16px; border: 0; padding: 12px 0; background: none; box-shadow: none; border-radius: 0; }
.pf-site .field, .pf-site .control-group { display: grid; align-content: start; gap: 8px; min-width: 0; }
.pf-site :is(.field, .control-group) > label { color: var(--muted); font: 500 .65rem var(--label-font); letter-spacing: .05em; text-transform: uppercase; }
.pf-site :is(select, textarea, input[type='text'], input[type='number']) { min-height: 44px; min-width: 0; padding: 10px 12px; border: 1px solid #445158; border-radius: 6px; background: #151d21; color: var(--text); box-shadow: none; font-size: .85rem; }
.pf-site textarea { width: 100%; resize: vertical; }
.pf-site input[type='range'] { accent-color: var(--lime); max-width: 100%; min-height: 30px; }
.pf-site :is(.btn, .action-btn, .secondary-btn, .output-action, .generate-btn, .analyze-btn, .optimize-btn, .surprise-btn, .swap-btn, .lane-btn, .preset-btn, .convention-btn, .mode-btn):not(.pf-launch) { min-height: 44px; padding: 10px 16px; border: 1px solid #3c484e; border-radius: 7px; background: #1c2428; color: var(--text); font: 500 .8rem var(--ui-font); box-shadow: none; text-transform: none; letter-spacing: 0; }
.pf-site :is(.btn, .action-btn, .secondary-btn, .output-action, .generate-btn, .analyze-btn, .optimize-btn, .surprise-btn, .swap-btn, .lane-btn, .preset-btn):hover { border-color: var(--cyan); transform: none; }
.pf-site :is(.btn.primary, .preset-btn.active, .convention-btn.active, .mode-btn.active, .type-chip.is-active, .interval-chip.is-active, .note-chip.is-active) { border-color: #789552; background: #27351d; color: var(--lime); }
.pf-site :is(.panel, .section, .filters, .card, .content-card, .guide-card, .reference-section) { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: none; padding: 24px; }
.pf-site :is(.panel, .section, .content-card, .guide-card) > p { color: var(--muted); font-size: .88rem; line-height: 1.65; }
.pf-site :is(.panel, .section, .content-card, .guide-card) > h2 { font-size: 1.25rem; margin: 0 0 12px; letter-spacing: -.025em; font-weight: 500; }
.pf-site .pf-details > :is(.panel, .section, .content-grid, .guide-grid, .control-panel, .filters) { margin: 0 0 24px; border: 0; padding: 16px 0; background: none; }
.pf-site :is(.grid, .section-grid, .content-grid) { gap: 18px; margin-top: 20px; }
.pf-site :is(.chord, .chord-card, .target-card, .option-card, .token.is-chord, .voicing-card, .step-card) { border-color: #3a494b; border-radius: 8px; background: #1c2428; color: var(--text); box-shadow: none; }
.pf-site [data-chord]:hover { border-color: var(--lime); }
.pf-site :is(.type-grid, .interval-grid, .note-grid) { margin-top: 16px; }
.pf-site :is(.type-chip, .interval-chip, .note-chip) { background: #1c2428; border: 1px solid var(--line); color: var(--text); min-height: 44px; border-radius: 7px; }
.pf-site .pf-tool-launch { display: flex; flex-direction: column; align-items: center; padding: 32px; margin-bottom: 22px; }
.pf-tool-visual { width: 100%; display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 90px; margin-bottom: 24px; }
.pf-tool-action { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.pf-site .pf-tool-action .pf-launch { width: 132px; height: 132px; min-height: 132px; }
.pf-action-status { color: var(--muted); font-size: .78rem; text-align: center; margin: 22px 0 0; min-height: 1.5em; }
.pf-chord-preview, .pf-tool-visual #chordOut, .pf-tool-visual #sequenceRow, .pf-tool-visual #progressionSlots { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; width: 100%; margin: 0; }
.pf-site .pf-chord-preview > button, .pf-site .pf-tool-visual #chordOut > [data-chord], .pf-site .pf-tool-visual #sequenceRow > [data-chord] { display: grid; place-items: center; min-width: 90px; min-height: 70px; padding: 16px; border: 1px solid #3a494b; border-radius: 8px; background: #1c2428; color: var(--text); font-size: 1.2rem; font-weight: 500; }
.pf-key-journey { display: flex; gap: 30px; align-items: center; justify-content: center; font-size: clamp(1rem, 3vw, 2rem); }
.pf-key-journey > span:first-child { color: var(--lime); }
.pf-key-journey > span:last-child { color: var(--cyan); }
.pf-scale-preview { display: grid; gap: 12px; text-align: center; }
.pf-scale-preview strong { font-size: 1.5rem; font-weight: 500; }
.pf-scale-preview span { color: var(--cyan); letter-spacing: .2em; font: 500 .8rem var(--label-font); }
.pf-site .builder-slots .builder-slot { min-width: 110px; background: #1c2428; border: 1px solid #3a494b; border-radius: 8px; }
.pf-site .pf-rhythm { display: block; }
.pf-site .pf-rhythm .visual-panel { display: flex; align-items: center; flex-direction: column; padding: 26px 32px; gap: 18px; border: 0; background: none; }
.pf-site .pf-rhythm .pf-rhythm-play { order: 2; width: 112px; height: 112px; min-height: 112px; }
.pf-rhythm .metrics, .pf-rhythm .visual-head { order: 3; width: 100%; margin: 0; }
.pf-rhythm .pf-details { order: 4; width: 100%; }
.pf-rhythm .hero-ratio, .pf-rhythm .pattern-badge { min-height: 0; width: auto; border: 0; background: none; padding: 0; font-size: 1.7rem; color: var(--lime); }
.pf-rhythm .preset-row { justify-content: center; flex-wrap: wrap; margin: 0; }
.pf-rhythm .timeline { width: 100%; margin: 0; }
.pf-rhythm .beat-lane { min-height: 70px; }
.pf-rhythm .dial-wrap { min-height: 280px; width: 100%; margin: 0; }
.pf-rhythm .rhythm-dial { width: 260px; height: 260px; --radius: 112px; }
.pf-rhythm .explanation, .pf-rhythm .pattern-text { display: none; }
.pf-rhythm .linear-pattern { width: 100%; }
.pf-rhythm .lane-actions { margin: 0; }
.pf-rhythm .player-status, .pf-rhythm .audio-status { order: 3; color: var(--muted); font-size: .8rem; margin: 0; text-align: center; }
.pf-site .control-panel { padding: 16px 0; background: none; border: 0; }
.pf-site .circle-stage { max-width: 100%; }
.pf-site .circle-stage .node { box-shadow: none; }
.pf-site .curve-wrap, .pf-site .chart-wrap { overflow: hidden; }
.pf-site .key-selector-container { box-shadow: none; background: none; border: 0; padding: 12px 0; }
.pf-site .key-selector :is(h3, select) { color: var(--text); }
.pf-site .key-selector { background: var(--panel); border: 1px solid var(--line); }
.pf-site :is(.source, .target) { color: var(--text); }
.pf-site .modulation-path { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: none; }
.pf-site .token.is-playing, .pf-site .is-playing, .pf-site .pf-chord-preview button.is-playing { border-color: var(--lime); background: #27351d; color: var(--lime); }
.pf-site footer { display: flex; flex-wrap: wrap; justify-content: space-between !important; gap: 18px; padding: 22px 0 0; border-top: 1px solid var(--line); margin-top: 24px; color: var(--muted); font-size: .7rem; }
.pf-site footer a { text-decoration: none; color: var(--muted); border: 0; background: none; padding: 0; min-height: 0; font: inherit; text-transform: none; }
.pf-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important; }
[hidden] { display: none !important; }
/* The homepage invites a real first answer before asking visitors to choose a tool. */
.pf-site .pf-home-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; padding: 54px 0 42px; }
.pf-home-copy h1 { margin: 14px 0 20px; font-size: clamp(3rem, 6vw, 5.3rem); font-weight: 500; letter-spacing: -.06em; line-height: 1.02; }
.pf-home-copy > p { color: var(--muted); line-height: 1.65; font-size: 1rem; max-width: 38ch; }
.pf-home-copy .hero-actions { margin-top: 24px; }
.pf-site .primary-link, .pf-site .secondary-link { border-radius: 7px; padding: 12px 18px; min-height: 44px; font-size: .85rem; font-weight: 500; }
.pf-site .primary-link { background: var(--lime); color: #18220e; }
.pf-site .secondary-link { color: var(--text); background: #1c2428; border: 1px solid var(--line); }
.pf-site .pf-mini-challenge { width: 100%; }
.pf-mini-challenge .pf-sound-stage { grid-template-columns: 1fr 130px 1fr; gap: 10px; padding: 26px 24px; }
.pf-mini-challenge .pf-launch { width: 126px; height: 126px; min-height: 126px; }
.pf-mini-challenge h2 { text-align: center; font-size: 1.4rem; font-weight: 500; margin: 22px 16px 0; }
.pf-mini-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 24px; }
.pf-mini-options button { display: grid; gap: 8px; justify-items: center; min-height: 85px; border: 1px solid #3c484e; border-radius: 8px; background: #1c2428; color: var(--text); font-size: .95rem; }
.pf-mini-options svg { width: 60px; height: 24px; stroke: var(--cyan); fill: none; stroke-width: 2; }
.pf-mini-options button.correct { background: #27351d; border-color: var(--lime); color: var(--lime); }
.pf-mini-options button.incorrect { background: #352821; border-color: var(--bad); color: var(--bad); }
.pf-mini-feedback { text-align: center; padding: 16px 24px 0; color: var(--lime); font-size: .9rem; line-height: 1.6; }
.pf-mini-feedback button { background: transparent; border: 0; border-bottom: 1px solid var(--lime); color: inherit; padding: 5px 9px; font: inherit; }
.pf-site .practice-grid, .pf-site .tools-grid, .pf-site .resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.pf-site .practice-card, .pf-site .tool-card, .pf-site .resource-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 22px; text-decoration: none; color: var(--text); box-shadow: none; min-height: 165px; transition: border-color .2s; }
.pf-site :is(.practice-card, .tool-card, .resource-card):hover { border-color: #789552; transform: none; background: #1b2520; }
.pf-site :is(.practice-card, .tool-card) h3 { font-size: 1.15rem; line-height: 1.3; margin: 12px 0 18px; font-weight: 500; }
.pf-site :is(.practice-card, .tool-card) > p, .pf-site .resource-card > span:not(.pf-card-visual) { display: none; }
.pf-site .step-number { color: var(--muted); font: 500 .6rem var(--label-font); letter-spacing: .08em; text-transform: uppercase; }
.pf-site .tool-cta { margin-top: auto; padding-top: 12px; color: var(--lime); font-size: .75rem; font-weight: 500; }
.pf-site .section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.pf-site .section-heading h2 { margin: 0; font-size: 1.7rem; font-weight: 500; letter-spacing: -.03em; }
.pf-site .section-heading > p { display: none; }
.pf-site .landing > .section { padding: 30px 0; background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; margin: 0; }
.pf-site .rhythm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pf-card-visual { display: flex !important; align-items: center; gap: 6px; height: 40px; margin: 0 0 14px; color: var(--cyan); font: 500 .8rem var(--label-font); }
.pf-card-visual i { display: block; width: 6px; height: 30%; background: currentColor; border-radius: 2px; }
.pf-card-visual i:nth-child(2n) { height: 80%; }
.pf-card-visual i:nth-child(3n) { height: 50%; }
.pf-card-visual[data-visual='chords'] i { width: 22px; height: 32px; border: 1px solid currentColor; background: transparent; border-radius: 4px; }
.pf-card-visual[data-visual='rhythm'] i { width: 12px; height: 12px; border-radius: 50%; background: none; border: 1px solid currentColor; }
.pf-card-visual[data-visual='rhythm'] i:nth-child(3n + 1) { background: currentColor; }
/* Guides keep the article intact and put relevant tools and a playable example first. */
.pf-site.pf-guide-page .landing { max-width: 1060px; }
.pf-guide-page .pf-intro h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.pf-guide-page .page-content { margin-top: 28px; padding: 28px 0; background: none; border: 0; box-shadow: none; max-width: 78ch; margin-inline: auto; }
.pf-guide-page .page-content :is(p, li) { font-size: .98rem; line-height: 1.8; }
.pf-guide-page .resource-section { margin: 25px 0; background: none; border: 0; padding: 20px 0; border-top: 1px solid var(--line); }
.pf-guide-page .resource-card { min-height: 135px; }
.pf-guide-page .resource-card strong { font-weight: 500; font-size: 1rem; line-height: 1.4; }
.pf-guide-page .resource-section > p { color: var(--muted); font-size: .85rem; }
.pf-demo { display: flex; align-items: center; justify-content: center; gap: 24px; padding: 24px; border: 1px solid #354038; border-radius: 12px; background: var(--panel); flex-wrap: wrap; }
.pf-demo .pf-demo-chords { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pf-demo-chords button { min-width: 65px; min-height: 58px; border: 1px solid #3c484e; border-radius: 8px; background: #1c2428; color: var(--text); font-size: 1rem; }
.pf-site .pf-demo .pf-launch { width: 100px; height: 100px; min-height: 100px; font-size: .7rem; }
.pf-demo .pf-action-status { width: 100%; margin: 0; }
@media (max-width: 760px) {
    .pf-site .practice-grid, .pf-site .tools-grid, .pf-site .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pf-site .pf-home-hero { grid-template-columns: 1fr; gap: 24px; padding: 30px 0; }
    .pf-home-copy { text-align: center; }
    .pf-home-copy h1 { font-size: clamp(2.6rem, 9vw, 4rem); margin: 12px 0; }
    .pf-home-copy > p, .pf-home-copy .hero-actions { display: none; }
}
@media (max-width: 640px) {
    .pf-site .page, .pf-site .container, .pf-site .landing { width: calc(100% - 28px); padding: 0 0 24px; }
    .pf-topbar { padding: 17px 0; }
    .pf-brand { font-size: .8rem; gap: 8px; }
    .pf-nav-menu > summary { font-size: .7rem; }
    .pf-site .pf-intro { padding: 26px 0 22px; }
    .pf-site .pf-intro h1 { font-size: clamp(2.2rem, 10vw, 3rem); }
    .pf-intro > p { font-size: .84rem; }
    .pf-tool-name { font-size: .52rem; margin-top: 10px; }
    .pf-session-bar { padding: 14px; font-size: .55rem; }
    .pf-steps { gap: 24px; padding-top: 20px; }
    .pf-sound-stage { grid-template-columns: 1fr 112px 1fr; padding: 22px 20px; gap: 10px; }
    .pf-site .pf-launch { width: 110px; height: 110px; min-height: 110px; font-size: .72rem; }
    .pf-quiz[data-ready='true'] .pf-launch { width: 90px; height: 90px; min-height: 90px; }
    .pf-wave { gap: 3px; height: 50px; }
    .pf-wave i { width: 3px; }
    .pf-wave i:nth-child(n + 14) { display: none; }
    .pf-answer-area { padding: 0 16px; }
    .pf-site .answers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .pf-site .answer-btn { min-height: 74px; padding: 12px 8px; font-size: .84rem; }
    .pf-site .pf-answer-area .prompt-main { font-size: 1.1rem; margin-bottom: 14px; }
    .pf-site .stats-grid, .pf-site .stat-grid { grid-template-columns: repeat(4, 1fr); }
    .pf-site .stat, .pf-site .hero-stat { padding: 2px 6px; }
    .pf-site .stat-label, .pf-site .hero-stat .k { font-size: .5rem; letter-spacing: .03em; }
    .pf-site .stat-value, .pf-site .hero-stat .v { font-size: 1.1rem; }
    .pf-listen-status { font-size: .72rem; padding: 16px; }
    .pf-site .pf-tool-launch { padding: 24px 16px; }
    .pf-site .pf-tool-action .pf-launch { width: 112px; height: 112px; min-height: 112px; }
    .pf-tool-visual { margin-bottom: 20px; min-height: 70px; }
    .pf-site .pf-chord-preview > button, .pf-site .pf-tool-visual #chordOut > [data-chord], .pf-site .pf-tool-visual #sequenceRow > [data-chord] { min-width: 55px; min-height: 56px; padding: 12px; font-size: 1rem; }
    .pf-key-journey { gap: 16px; flex-wrap: wrap; }
    .pf-site .pf-rhythm .visual-panel { padding: 22px 16px; gap: 16px; }
    .pf-rhythm .beat-lane { min-height: 56px; }
    .pf-rhythm .visual-head, .pf-rhythm .metrics { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .pf-rhythm .metric-label { font-size: .5rem; }
    .pf-rhythm .metric strong { font-size: .75rem; }
    .pf-site .pf-rhythm .pf-rhythm-play { width: 92px; height: 92px; min-height: 92px; }
    .pf-site :is(.grid, .section-grid, .content-grid) { grid-template-columns: 1fr; }
    .pf-site .section, .pf-site .panel, .pf-site .card { padding: 18px; }
    .pf-site .section-heading h2 { font-size: 1.4rem; }
    .pf-site .practice-card, .pf-site .tool-card, .pf-site .resource-card { padding: 16px; min-height: 155px; }
    .pf-site :is(.practice-card, .tool-card) h3 { font-size: .95rem; }
    .pf-site .tool-cta { font-size: .68rem; }
    .pf-site .rhythm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pf-mini-challenge .pf-sound-stage { grid-template-columns: 1fr 112px 1fr; padding: 22px 18px; }
    .pf-site .pf-mini-challenge .pf-launch { width: 112px; height: 112px; min-height: 112px; }
    .pf-mini-challenge h2 { font-size: 1.15rem; }
    .pf-site .pf-home-hero { padding-top: 24px; }
    .pf-site .controls, .pf-site .control-grid, .pf-site .controls-grid, .pf-site .filter-grid { grid-template-columns: 1fr; }
    .pf-site .pf-details > summary { font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.pf-site .pf-home-copy h1 { font-size: clamp(2.7rem, 4.4vw, 4rem); }
.pf-keyboard-hint { text-align: center; margin: 0; padding: 0 16px 18px; color: var(--muted); font: 500 .55rem var(--label-font); }
.pf-tool-visual .pf-chord-preview, .pf-tool-visual #sequenceRow { flex-wrap: nowrap; justify-content: safe center; overflow-x: auto; padding: 4px; }
.pf-tool-visual .pf-chord-preview > button, .pf-tool-visual #sequenceRow > span { flex: 0 0 auto; }
.pf-rhythm-stage { display: grid; width: 100%; grid-template-columns: minmax(0, 1fr) 160px; align-items: center; gap: 32px; }
.pf-site .pf-rhythm-stage .pf-rhythm-play { justify-self: center; }
.pf-site .pf-rhythm .timeline { padding: 8px 0; }
.pf-site .pf-rhythm .lane { margin: 12px 0; }
.pf-site .pf-rhythm .lane-header { margin-bottom: 10px; }
.pf-site .pf-rhythm .lane-actions { gap: 8px; }
.pf-site .pf-rhythm .lane-btn { min-width: 90px; }
.pf-answer-shape { width: 72px; height: 28px; color: var(--cyan); }
.pf-answer-shape path { fill: none; stroke: currentColor; stroke-width: 2; }
.pf-answer-area #promptText { text-align: center; font-size: 1.3rem; margin: 0 0 18px; }
.pf-answer-area .visual-wrap:has(.waiting) { display: none; }
.pf-round-result { margin: 0 24px 24px; padding: 16px; border: 1px solid #526b3d; border-radius: 8px; text-align: center; color: var(--lime); }
.pf-back-link { color: var(--muted) !important; font-size: .8rem; text-decoration: none; }
.pf-progress { display: flex; align-items: center; gap: 12px; }
.pf-progress-dots { display: flex; gap: 5px; }
.pf-progress-dots i { width: 6px; height: 6px; background: #3a4448; border-radius: 50%; }
.pf-progress-dots i.complete { background: var(--lime); }
.pf-progress-dots i.miss { background: var(--bad); }
.pf-native-progress:has(.pf-progress) > :not(.pf-progress) { display: none; }
.pf-site .workflow { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) {
    .pf-site .pf-home-copy h1 { font-size: clamp(2.5rem, 8.5vw, 3.6rem); }
    .pf-site .workflow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .pf-keyboard-hint { display: none; }
    .pf-rhythm-stage { display: flex; flex-direction: column-reverse; gap: 18px; }
    .pf-progress { gap: 8px; }
    .pf-progress-dots { gap: 3px; }
    .pf-progress-dots i { width: 4px; height: 4px; }
    .pf-site .pf-home-copy h1 { margin: 12px 0 0; }
    .pf-tool-visual #sequenceRow > [data-chord] { min-width: 65px; }
}

.pf-site :is(.grid, .section-grid, .content-grid) > * { min-width: 0; }
