/* HitWeave — Midnight Score design system
   Music studio UI: editorial typography, notation surfaces, waveform accents. */
.hw-page,
.hw-studio,
.hw-nav-wrap,
.hw-footer {
    --hw-bg: #0B0A10;
    --hw-bg-raise: #16131F;
    --hw-muted: #201A2A;
    --hw-paper: #F7F1E6;
    --hw-fg: #F7F1E6;
    --hw-fg-dim: #C9C1D1;
    --hw-fg-faint: #9D95A6;
    --hw-primary: #8B5CF6;
    --hw-secondary: #3DD6C6;
    --hw-accent: #F6C453;
    --hw-danger: #FB7185;
    --hw-border: rgba(247, 241, 230, 0.14);
    --hw-ring: #F6C453;
    --hw-radius: 16px;
    --hw-shadow-md: 0 14px 32px rgba(0, 0, 0, 0.24);
    --hw-shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.32);
    --hw-shadow-glow: 0 0 44px rgba(139, 92, 246, 0.24);
    background: var(--hw-bg);
    color: var(--hw-fg);
    font-family: 'Inter', system-ui, sans-serif;
}

/* The shared shell is intentionally minimal for standalone products. Keep
   the document canvas dark too, so centered editorial pages never reveal the
   browser's default white gutters or a margin-collapsed white strip. */
html,
body,
body.tool-hit-weave,
body.tool-hit-weave #main-content {
    background: var(--hw-bg, #0B0A10);
}

body.tool-hit-weave {
    color: var(--hw-fg, #F7F1E6);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* Form controls do not inherit font-family, which left every chip, mode tab and
   submit button on the browser's default face while the prose around them used
   Inter. */
body.tool-hit-weave button,
body.tool-hit-weave input,
body.tool-hit-weave select,
body.tool-hit-weave textarea {
    font-family: inherit;
}

body.tool-hit-weave #main-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

body.tool-hit-weave .hw-page.hw-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-left: max(28px, calc((100vw - 1160px) / 2 + 28px));
    padding-right: max(28px, calc((100vw - 1160px) / 2 + 28px));
}

body.tool-hit-weave .hw-page.hw-container.hw-how {
    padding-left: max(28px, calc((100vw - 840px) / 2 + 28px));
    padding-right: max(28px, calc((100vw - 840px) / 2 + 28px));
}

body.tool-hit-weave .hw-page.hw-container.hw-studio {
    max-width: 1480px;
    padding-left: max(28px, calc((100vw - 1480px) / 2 + 28px));
    padding-right: max(28px, calc((100vw - 1480px) / 2 + 28px));
}

.hw-page,
.hw-page *,
.hw-nav-wrap,
.hw-nav-wrap *,
.hw-footer,
.hw-footer * {
    box-sizing: border-box;
}

.hw-page {
    min-height: 60vh;
    position: relative;
    overflow: hidden;
}

.hw-page::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.22;
    background: radial-gradient(circle at 76% 12%, rgba(139, 92, 246, 0.18), transparent 30%),
    radial-gradient(circle at 15% 48%, rgba(61, 214, 198, 0.08), transparent 26%),
    repeating-linear-gradient(0deg, transparent 0 55px, rgba(247, 241, 230, 0.025) 56px, transparent 57px);
}

.hw-page > * {
    position: relative;
    z-index: 1;
}

.hw-page a,
.hw-page button {
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

.hw-container {
    max-width: 1160px;
    margin: 0 auto;
}

.hw-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

h1, h2, .hw-brand span {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    letter-spacing: -0.035em;
}

h1 em, h2 em {
    color: var(--hw-accent);
    font-style: italic;
}

/* ---------- navigation ---------- */
.hw-nav-wrap {
    border-bottom: 1px solid var(--hw-border);
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(18px);
    background: rgba(11, 10, 16, 0.86);
}

.hw-nav {
    max-width: 1160px;
    margin: 0 auto;
    min-height: 76px;
    padding: 12px 28px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.hw-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--hw-fg);
    text-decoration: none;
}

.hw-brand img {
    width: 34px;
    height: 34px;
    filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.36));
}

.hw-brand span {
    font-size: 22px;
    letter-spacing: -0.025em;
}

.hw-nav-links {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.hw-nav-links a {
    color: var(--hw-fg-dim);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: color 200ms ease, opacity 200ms ease;
}

.hw-nav-links a:hover {
    color: var(--hw-fg);
}

.hw-nav-links a.is-active {
    color: var(--hw-fg);
    text-decoration: underline;
    text-decoration-color: var(--hw-accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 7px;
}

.hw-nav-cta {
    background: var(--hw-primary);
    color: #fff !important;
    padding: 12px 18px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.22);
}

.hw-nav-cta:hover {
    opacity: 0.9;
}

.hw-nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--hw-border);
    color: var(--hw-fg);
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
    min-height: 44px;
}

.hw-mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 28px 16px;
}

.hw-mobile-nav a {
    color: var(--hw-fg-dim);
    padding: 12px 4px;
    text-decoration: none;
}

.hw-mobile-nav a.is-active {
    color: var(--hw-fg);
    background: rgba(61, 214, 198, 0.08);
    border-radius: 8px;
    padding-left: 10px;
}

/* ---------- buttons, focus and chips ---------- */
.hw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 10px;
    padding: 12px 20px;
    font: 700 14px 'Inter', sans-serif;
    letter-spacing: -0.01em;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
    min-height: 44px;
}

.hw-btn-primary {
    background: var(--hw-accent);
    color: #17120A;
    box-shadow: 0 10px 22px rgba(246, 196, 83, 0.18);
}

.hw-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(246, 196, 83, 0.26);
}

.hw-btn-primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.hw-btn-ghost {
    background: rgba(255, 255, 255, 0.025);
    color: var(--hw-fg);
    border-color: var(--hw-border);
}

.hw-btn-ghost:hover {
    border-color: var(--hw-secondary);
    background: rgba(61, 214, 198, 0.08);
}

.hw-btn-lg {
    padding: 14px 24px;
    font-size: 15px;
}

.hw-btn-quiet {
    background: none;
    border: none;
    color: var(--hw-fg-faint);
    cursor: pointer;
    font: 500 13px 'Inter', sans-serif;
    text-decoration: underline;
    min-height: 44px;
    padding: 8px 4px;
}

.hw-text-link {
    color: var(--hw-secondary);
    text-decoration: none;
    font-size: 14px;
}

.hw-text-link:hover {
    color: var(--hw-accent);
    text-decoration: underline;
}

.hw-btn:focus-visible,
.hw-chip:focus-visible,
.hw-nav-links a:focus-visible,
.hw-mobile-nav a:focus-visible,
.hw-sidebar-nav a:focus-visible,
.hw-sidebar-nav button:focus-visible,
a.hw-btn:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--hw-ring);
    outline-offset: 3px;
}

.hw-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hw-chip {
    border: 1px solid var(--hw-border);
    background: rgba(255, 255, 255, 0.025);
    color: var(--hw-fg-dim);
    border-radius: 999px;
    padding: 8px 14px;
    font: 600 13px 'Inter', sans-serif;
    cursor: pointer;
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
    min-height: 44px;
}

.hw-chip:hover {
    border-color: var(--hw-secondary);
    color: var(--hw-fg);
    transform: translateY(-1px);
}

.hw-chip[aria-pressed='true'] {
    background: color-mix(in srgb, var(--hue, var(--hw-primary)) 25%, var(--hw-bg-raise));
    border-color: var(--hue, var(--hw-primary));
    color: var(--hw-fg);
}

.hw-chip-plain {
    --hue: var(--hw-secondary);
}

/* ---------- hero ---------- */
.hw-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
    gap: 64px;
    align-items: center;
    min-height: 640px;
    padding-top: 76px;
    padding-bottom: 68px;
}

.hw-hero-copy {
    max-width: 590px;
}

.hw-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--hw-secondary);
    font: 700 11px 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.17em;
    margin: 0 0 20px;
}

.hw-eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--hw-accent);
    box-shadow: 0 0 16px rgba(246, 196, 83, 0.8);
}

.hw-hero h1 {
    font-size: clamp(46px, 5.5vw, 74px);
    line-height: 1.02;
    margin: 0 0 24px;
    max-width: 720px;
}

.hw-hero h1::after {
    content: '';
    display: block;
    width: 92px;
    height: 3px;
    margin-top: 22px;
    background: linear-gradient(90deg, var(--hw-accent), transparent);
}

.hw-lede {
    color: var(--hw-fg-dim);
    font-size: 16px;
    line-height: 1.7;
    margin: 0 0 26px;
    max-width: 540px;
}

.hw-lede b {
    color: var(--hw-fg);
}

.hw-hero-form {
    display: flex;
    gap: 10px;
    background: rgba(22, 19, 31, 0.88);
    border: 1px solid var(--hw-border);
    border-radius: 13px;
    padding: 8px;
    box-shadow: var(--hw-shadow-md);
}

.hw-hero-form:focus-within {
    border-color: var(--hw-secondary);
    box-shadow: 0 0 0 4px rgba(61, 214, 198, 0.1);
}

.hw-hero-form input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    color: var(--hw-fg);
    font: 400 14px 'Inter', sans-serif;
    padding: 11px 12px;
}

.hw-hero-form input::placeholder {
    color: var(--hw-fg-faint);
}

.hw-hero-note {
    margin-top: 14px;
    color: var(--hw-fg-faint);
    font-size: 12.5px;
    line-height: 1.5;
}

.hw-hero-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin: 12px 0 0;
    color: var(--hw-fg-faint);
    font-size: 12.5px;
}

.hw-hero-links a {
    color: var(--hw-secondary);
    text-decoration: none;
}

.hw-hero-links a:hover {
    color: var(--hw-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* score sheet + audio takes */
.hw-hero-stage {
    position: relative;
    min-height: 470px;
    padding-top: 8px;
}

.hw-scoreboard {
    position: absolute;
    top: 0;
    left: 10px;
    right: 22px;
    min-height: 266px;
    padding: 20px 22px 18px;
    overflow: hidden;
    color: #2D241D;
    background: linear-gradient(135deg, #F7F1E6 0%, #EBDCC1 100%);
    border: 1px solid rgba(247, 241, 230, 0.7);
    border-radius: 18px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
    transform: rotate(1.2deg);
}

.hw-scoreboard::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    right: -55px;
    top: -70px;
    border: 1px solid rgba(45, 36, 29, 0.16);
    border-radius: 50%;
    box-shadow: 0 0 0 18px rgba(45, 36, 29, 0.04), 0 0 0 36px rgba(45, 36, 29, 0.035);
}

.hw-scoreboard-head, .hw-scoreboard-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hw-scoreboard-head {
    font: 800 10px 'Inter', sans-serif;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hw-score-live {
    color: #9A5719;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hw-score-live::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #D88927;
}

.hw-score-sheet {
    position: relative;
    height: 150px;
    margin: 16px 0 8px;
    border-top: 1px solid rgba(45, 36, 29, 0.16);
    border-bottom: 1px solid rgba(45, 36, 29, 0.16);
    background: repeating-linear-gradient(to bottom, transparent 0 23px, rgba(45, 36, 29, 0.24) 24px, transparent 25px);
}

.hw-score-sheet svg {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.hw-scoreboard-foot {
    font: 700 10px 'Inter', sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(45, 36, 29, 0.62);
}

.hw-score-bpm {
    color: #9A5719;
}

.hw-take-card {
    position: relative;
    z-index: 2;
    background: linear-gradient(140deg, rgba(29, 23, 41, 0.98), rgba(20, 17, 28, 0.98));
    border: 1px solid rgba(247, 241, 230, 0.16);
    border-radius: 15px;
    padding: 18px 20px;
    box-shadow: var(--hw-shadow-lg);
}

.hw-take-a {
    margin: 144px 0 0 42px;
}

.hw-take-b {
    margin: 15px -10px 0 94px;
    opacity: 0.88;
}

.hw-take-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.hw-take-label {
    font: 800 10px 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--hw-fg-faint);
}

.hw-chip-hue {
    width: 46px;
    height: 5px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--hue, var(--hw-primary)), transparent);
}

.hw-take-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: var(--hw-fg-faint);
    font-size: 12px;
}

.hw-stage-caption {
    text-align: right;
    color: var(--hw-fg-faint);
    font-size: 12px;
    margin: 14px 4px 0 0;
}

/* ---------- waveform ---------- */
.hw-wave {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 64px;
}

.hw-wave i {
    flex: 1;
    min-width: 2px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--hw-secondary), var(--hw-primary));
    opacity: 0.9;
    transition: height 240ms ease;
}

.hw-wave-idle i {
    background: rgba(247, 241, 230, 0.16);
}

.hw-wave-live i {
    animation: hw-pulse 1.1s ease-in-out infinite;
}

.hw-wave-live i:nth-child(3n) {
    animation-delay: 0.18s;
}

.hw-wave-live i:nth-child(3n + 1) {
    animation-delay: 0.42s;
}

@keyframes hw-pulse {
    0%, 100% {
        transform: scaleY(0.62);
        opacity: 0.58;
    }
    50% {
        transform: scaleY(1.12);
        opacity: 1;
    }
}

/* ---------- landing sections ---------- */
.hw-steps, .hw-genres, .hw-scenarios, .hw-trust {
    padding-top: 54px;
    padding-bottom: 54px;
}

.hw-capabilities {
    padding-top: 22px;
    padding-bottom: 70px;
}

.hw-section-intro {
    max-width: 720px;
    margin-bottom: 25px;
}

.hw-section-intro .hw-eyebrow {
    margin-bottom: 12px;
}

.hw-section-intro h2 {
    margin: 0 0 12px;
    font-size: clamp(29px, 3.2vw, 40px);
    line-height: 1.08;
}

.hw-section-intro p:not(.hw-eyebrow) {
    margin: 0;
    color: var(--hw-fg-dim);
    font-size: 15px;
    line-height: 1.7;
}

.hw-capability-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.hw-capability-card {
    min-height: 268px;
    display: flex;
    flex-direction: column;
    padding: 23px;
    border: 1px solid var(--hw-border);
    border-radius: var(--hw-radius);
    background: linear-gradient(155deg, rgba(32, 26, 42, 0.92), rgba(22, 19, 31, 0.92));
    color: var(--hw-fg);
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.hw-capability-card:hover {
    border-color: var(--hw-secondary);
    box-shadow: var(--hw-shadow-glow);
    transform: translateY(-3px);
}

.hw-capability-eyebrow {
    color: var(--hw-secondary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hw-capability-card h3 {
    margin: 16px 0 10px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 23px;
    line-height: 1.12;
    letter-spacing: -.025em;
}

.hw-capability-card p {
    margin: 0;
    color: var(--hw-fg-dim);
    font-size: 13.5px;
    line-height: 1.62;
}

.hw-capability-link {
    margin-top: auto;
    padding-top: 20px;
    color: var(--hw-accent);
    font-size: 12.5px;
    font-weight: 700;
}

.hw-steps h2, .hw-genres h2, .hw-trust h2, .hw-scenarios h2 {
    font-size: 31px;
    margin: 0 0 24px;
}

.hw-steps h2::first-letter, .hw-genres h2::first-letter {
    color: var(--hw-accent);
}

.hw-steps ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.hw-steps li {
    min-height: 190px;
    background: linear-gradient(160deg, rgba(32, 26, 42, 0.92), rgba(22, 19, 31, 0.92));
    border: 1px solid var(--hw-border);
    border-radius: var(--hw-radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.hw-steps li::after {
    content: '♪';
    position: absolute;
    right: 18px;
    bottom: -14px;
    color: rgba(246, 196, 83, 0.12);
    font: 100px 'Playfair Display', serif;
}

.hw-steps b {
    color: var(--hw-fg);
    font-size: 16px;
    position: relative;
    z-index: 1;
}

.hw-steps span {
    color: var(--hw-fg-dim);
    font-size: 14px;
    line-height: 1.62;
    position: relative;
    z-index: 1;
}

.hw-genres {
    padding-bottom: 68px;
}

.hw-genre-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.hw-genre-card {
    background: rgba(22, 19, 31, 0.88);
    border: 1px solid var(--hw-border);
    border-radius: 13px;
    padding: 17px;
    text-decoration: none;
    color: var(--hw-fg);
    display: flex;
    flex-direction: column;
    gap: 7px;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.hw-genre-card:hover {
    border-color: var(--hue);
    background: rgba(61, 214, 198, 0.07);
    transform: translateY(-3px);
}

.hw-genre-card .hw-chip-hue {
    width: 28px;
    height: 4px;
}

.hw-genre-card strong {
    font-size: 14px;
}

.hw-genre-card small {
    color: var(--hw-fg-faint);
    font-size: 11.5px;
    line-height: 1.45;
}

.hw-scenario-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.hw-section-intro-inline {
    max-width: none;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 22px;
}

.hw-section-intro-inline .hw-text-link {
    flex: 0 0 auto;
    margin-bottom: 29px;
}

.hw-scenario-link {
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-height: 172px;
    padding: 20px;
    background: rgba(32, 26, 42, 0.7);
    border: 1px solid var(--hw-border);
    border-radius: var(--hw-radius);
    color: var(--hw-fg);
    text-decoration: none;
    transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.hw-scenario-link:hover {
    border-color: var(--hw-secondary);
    box-shadow: var(--hw-shadow-glow);
    transform: translateY(-3px);
}

.hw-scenario-link strong {
    font-size: 16px;
    line-height: 1.35;
}

.hw-scenario-link span {
    color: var(--hw-fg-dim);
    font-size: 13px;
    line-height: 1.55;
}

.hw-scenario-link small {
    margin-top: auto;
    color: var(--hw-accent);
    font-size: 12px;
}

.hw-trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.hw-trust-grid > div {
    background: rgba(32, 26, 42, 0.7);
    border: 1px solid var(--hw-border);
    border-radius: var(--hw-radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.hw-trust-grid b {
    font-size: 15px;
}

.hw-trust-grid span {
    color: var(--hw-fg-dim);
    font-size: 13.5px;
    line-height: 1.62;
}

.hw-guides-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 24px;
    margin-bottom: 30px;
    padding-top: 34px;
    padding-bottom: 34px;
    border-top: 1px solid var(--hw-border);
    border-bottom: 1px solid var(--hw-border);
}

.hw-guides-callout > div {
    max-width: 700px;
}

.hw-guides-callout h2 {
    margin: 0 0 12px;
    font-size: clamp(27px, 3vw, 36px);
    line-height: 1.1;
}

.hw-guides-callout p:not(.hw-eyebrow) {
    margin: 0;
    color: var(--hw-fg-dim);
    font-size: 14px;
    line-height: 1.7;
}

.hw-guides-callout .hw-btn {
    flex: 0 0 auto;
}

.hw-how, .hw-article {
    padding: 60px 28px 88px;
    max-width: 840px;
}

.hw-how h1, .hw-article h1 {
    font-size: 38px;
}

.hw-how section {
    margin-top: 28px;
}

.hw-how h2 {
    font-size: 22px;
    margin: 0 0 9px;
}

.hw-how p, .hw-how li, .hw-article-body {
    color: var(--hw-fg-dim);
    line-height: 1.75;
    font-size: 15px;
}

.hw-how ul {
    padding-left: 20px;
    display: grid;
    gap: 8px;
}

.hw-scenario {
    padding: 60px 28px 88px;
    max-width: 840px;
}

.hw-scenario h1 {
    font-size: 43px;
    max-width: 760px;
}

.hw-scenario-section {
    margin-top: 34px;
}

.hw-scenario-section h2 {
    font-size: 23px;
    margin: 0 0 9px;
}

.hw-scenario-section p {
    color: var(--hw-fg-dim);
    line-height: 1.75;
    font-size: 15px;
}

.hw-how-cta, .hw-article-cta {
    margin-top: 36px;
}

.hw-cta {
    text-align: center;
    padding: 66px 28px 96px;
}

.hw-cta h2 {
    font-size: 34px;
    margin: 0 0 22px;
}

/* ---------- studio ---------- */
.hw-studio-page {
    padding-top: 44px;
    padding-bottom: 84px;
}

.hw-studio {
    max-width: 1480px;
    display: grid;
    grid-template-columns: 190px minmax(0, 1.05fr) minmax(340px, .82fr);
    gap: 16px;
    align-items: start;
}

.hw-workspace-sidebar {
    min-height: 630px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    position: sticky;
    top: 100px;
    padding: 18px 12px;
    border: 1px solid var(--hw-border);
    border-radius: 18px;
    background: rgba(22, 19, 31, 0.68);
}

.hw-sidebar-kicker {
    margin: 0 10px 12px;
    color: var(--hw-fg-faint);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hw-sidebar-nav {
    display: grid;
    gap: 5px;
}

.hw-sidebar-nav a,
.hw-sidebar-nav button {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--hw-fg-dim);
    font: 600 12px/1.35 'Inter', sans-serif;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.hw-sidebar-nav a:hover,
.hw-sidebar-nav button:hover,
.hw-sidebar-nav a.is-active {
    color: var(--hw-fg);
    border-color: rgba(61, 214, 198, .24);
    background: rgba(61, 214, 198, .09);
}

.hw-sidebar-nav a.is-active {
    box-shadow: inset 2px 0 0 var(--hw-secondary);
}

.hw-sidebar-nav button {
    width: 100%;
}

.hw-sidebar-count {
    min-width: 20px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(246, 196, 83, .14);
    color: var(--hw-accent);
    font-size: 10px;
    text-align: center;
}

.hw-sidebar-note {
    display: grid;
    gap: 6px;
    padding: 12px 10px;
    border-top: 1px solid var(--hw-border);
    color: var(--hw-fg-faint);
    font-size: 11px;
    line-height: 1.55;
}

.hw-sidebar-note strong {
    color: var(--hw-fg-dim);
    font-size: 12px;
}

.hw-panel {
    background: linear-gradient(160deg, rgba(32, 26, 42, 0.94), rgba(22, 19, 31, 0.94));
    border: 1px solid var(--hw-border);
    border-radius: 18px;
    padding: 28px;
    box-shadow: var(--hw-shadow-md);
}

.hw-panel h1, .hw-panel h2 {
    font-size: 27px;
    margin: 0 0 7px;
}

.hw-panel-sub {
    color: var(--hw-fg-faint);
    font-size: 13px;
    margin: 0 0 22px;
    line-height: 1.55;
}

.hw-mode-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    background: #0F0D15;
    border: 1px solid var(--hw-border);
    border-radius: 11px;
    padding: 5px;
    margin-bottom: 22px;
}

.hw-mode-btn {
    border: none;
    background: transparent;
    color: var(--hw-fg-faint);
    font: 700 13px 'Inter', sans-serif;
    padding: 11px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 180ms ease, color 180ms ease;
    min-height: 44px;
}

.hw-mode-btn.is-active {
    background: var(--hw-primary);
    color: #fff;
    box-shadow: 0 7px 16px rgba(139, 92, 246, 0.22);
}

.hw-prompt-library {
    margin: -4px 0 22px;
    border: 1px solid rgba(61, 214, 198, 0.25);
    border-radius: 12px;
    background: rgba(61, 214, 198, 0.035);
}

.hw-prompt-library summary {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    padding: 13px 15px;
    color: var(--hw-fg);
    font-size: 13px;
    font-weight: 800;
    list-style-position: inside;
}

.hw-prompt-library summary small {
    color: var(--hw-fg-faint);
    font-size: 11.5px;
    font-weight: 500;
}

.hw-prompt-intro {
    padding: 0 15px 12px;
    color: var(--hw-fg-faint);
    font-size: 12px;
    line-height: 1.6;
}

.hw-prompt-intro p {
    margin: 0 0 10px;
}

.hw-prompt-formula {
    display: grid;
    gap: 3px;
    padding: 10px 11px;
    border: 1px solid var(--hw-border);
    border-radius: 9px;
    background: rgba(16, 14, 22, 0.72);
}

.hw-prompt-formula strong {
    color: var(--hw-secondary);
    font-size: 11px;
}

.hw-prompt-formula span {
    color: var(--hw-fg-dim);
}

.hw-prompt-formula small {
    color: var(--hw-fg-faint);
    font-size: 11px;
}

.hw-prompt-group {
    padding: 0 15px 14px;
}

.hw-prompt-group h3 {
    margin: 10px 0 8px;
    color: var(--hw-fg-dim);
    font-size: 12px;
}

.hw-prompt-grid {
    display: grid;
    gap: 9px;
}

.hw-prompt-card {
    padding: 11px;
    border: 1px solid var(--hw-border);
    border-radius: 10px;
    background: rgba(16, 14, 22, 0.72);
}

.hw-prompt-card-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 8px;
}

.hw-prompt-card-head div {
    display: grid;
    gap: 2px;
}

.hw-prompt-card-head strong {
    color: var(--hw-fg);
    font-size: 12px;
}

.hw-prompt-card-head span {
    color: var(--hw-fg-faint);
    font-size: 11px;
}

.hw-prompt-card-head em {
    flex: 0 0 auto;
    color: var(--hw-secondary);
    font-size: 10px;
    font-style: normal;
}

.hw-prompt-copy {
    margin: 9px 0 0;
    color: var(--hw-fg-dim);
    font-size: 11.5px;
    line-height: 1.55;
}

.hw-prompt-copy b {
    color: var(--hw-accent);
    font-size: 10px;
    letter-spacing: .06em;
}

.hw-prompt-copy-zh {
    color: var(--hw-fg-faint);
}

.hw-prompt-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
}

.hw-prompt-actions .hw-btn {
    padding: 6px 9px;
    font-size: 11px;
}

.hw-prompt-copy-btn {
    border: 0;
    padding: 5px 2px;
    color: var(--hw-fg-faint);
    background: transparent;
    font: 600 11px 'Inter', sans-serif;
    cursor: pointer;
}

.hw-prompt-copy-btn:hover {
    color: var(--hw-accent);
}

.hw-practice-page {
    padding-top: 44px;
    padding-bottom: 84px;
}

.hw-practice {
    max-width: 1080px;
    margin: 0 auto;
}

.hw-practice-back {
    display: inline-block;
    margin-bottom: 22px;
}

.hw-practice-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 20px;
    margin-bottom: 22px;
}

.hw-practice-header h1 {
    margin: 0 0 8px;
    font-size: clamp(30px, 5vw, 48px);
}

.hw-practice-header .hw-take-label {
    margin-top: 10px;
}

.hw-practice-player audio {
    width: 100%;
    margin: 10px 0 17px;
}

.hw-waveform-shell {
    position: relative;
    min-height: 72px;
    margin: 0 0 15px;
    overflow: hidden;
    border: 1px solid var(--hw-border);
    border-radius: 9px;
    background: rgba(16, 14, 22, .72);
}

.hw-waveform-shell canvas {
    display: block;
    width: 100%;
    height: 72px;
    cursor: crosshair;
}

.hw-waveform-shell span {
    position: absolute;
    inset: 28px 0 auto;
    color: var(--hw-fg-faint);
    font-size: 11px;
    text-align: center;
}

.hw-practice-control-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}

.hw-practice-speed {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--hw-fg-faint);
    font-size: 12px;
}

.hw-practice-speed .hw-btn.is-active {
    color: var(--hw-fg);
    border-color: var(--hw-secondary);
    background: rgba(61, 214, 198, 0.12);
}

.hw-practice-loop-grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
    align-items: end;
    margin-top: 16px;
}

.hw-practice-loop-grid label {
    display: grid;
    gap: 6px;
    color: var(--hw-fg-faint);
    font-size: 11px;
}

.hw-practice-loop-grid input {
    width: 100%;
    box-sizing: border-box;
    background: #100E16;
    border: 1px solid var(--hw-border);
    border-radius: 8px;
    color: var(--hw-fg);
    padding: 9px 10px;
}

.hw-practice-loop-actions {
    justify-content: start;
    margin-top: 10px;
}

.hw-practice-progress {
    height: 5px;
    margin-top: 18px;
    overflow: hidden;
    border-radius: 99px;
    background: rgba(255, 255, 255, .08);
}

.hw-practice-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--hw-secondary);
    transition: width 120ms linear;
}

.hw-practice-grid {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 22px;
    margin-top: 22px;
}

.hw-metronome-display {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 22px 0 12px;
}

.hw-metronome-display strong {
    font-size: 52px;
    line-height: 1;
    color: var(--hw-accent);
}

.hw-metronome-display span {
    color: var(--hw-fg-faint);
    font-size: 13px;
}

#hw-metronome-range {
    width: 100%;
    accent-color: var(--hw-secondary);
}

.hw-analysis-status {
    min-height: 42px;
    padding: 11px 12px;
    border: 1px dashed var(--hw-border);
    border-radius: 9px;
    color: var(--hw-fg-faint);
    font-size: 12px;
    line-height: 1.5;
}

.hw-analysis-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 14px;
}

.hw-analysis-stats div {
    display: grid;
    gap: 4px;
    padding: 10px;
    border-radius: 9px;
    background: rgba(61, 214, 198, .06);
}

.hw-analysis-stats span {
    color: var(--hw-fg-faint);
    font-size: 10px;
}

.hw-analysis-stats strong {
    color: var(--hw-fg);
    font-size: 15px;
}

.hw-analysis-confidence {
    margin: 10px 0 0;
    color: var(--hw-fg-faint);
    font-size: 10px;
}

.hw-chord-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 13px;
}

.hw-chord-list button {
    padding: 5px 7px;
    border: 1px solid var(--hw-border);
    border-radius: 6px;
    color: var(--hw-fg-dim);
    background: transparent;
    font: 500 10px 'Inter', sans-serif;
    cursor: pointer;
}

.hw-chord-list button:hover {
    border-color: var(--hw-secondary);
    color: var(--hw-fg);
    background: rgba(61, 214, 198, .08);
}

.hw-practice-correction {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--hw-border);
}

.hw-practice-correction h3 {
    margin: 0 0 10px;
    color: var(--hw-fg-dim);
    font-size: 12px;
}

.hw-practice-correction-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.hw-practice-correction-grid label {
    display: grid;
    gap: 5px;
    color: var(--hw-fg-faint);
    font-size: 10px;
}

.hw-practice-correction-grid input, .hw-practice-correction-grid select {
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    border: 1px solid var(--hw-border);
    border-radius: 7px;
    color: var(--hw-fg);
    background: #100E16;
    font: 500 12px 'Inter', sans-serif;
}

.hw-save-status {
    display: inline-block;
    margin-left: 8px;
    color: var(--hw-secondary);
    font-size: 11px;
}

.hw-practice-note {
    margin: 18px 0 0;
    color: var(--hw-fg-faint);
    font-size: 12px;
    text-align: center;
}

.hw-practice-session-stats {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 10px;
    color: var(--hw-fg-faint);
    font-size: 11px;
}

.hw-practice-session-stats strong {
    color: var(--hw-fg-dim);
}

.hw-field {
    margin-bottom: 18px;
}

.hw-field > label {
    display: block;
    font: 700 13px 'Inter', sans-serif;
    color: var(--hw-fg-dim);
    margin-bottom: 8px;
}

.hw-help {
    color: var(--hw-fg-faint);
    font-weight: 500;
}

.hw-field textarea, .hw-field input[type='text'], .hw-field select {
    width: 100%;
    background: #100E16;
    border: 1px solid var(--hw-border);
    border-radius: 10px;
    color: var(--hw-fg);
    font: 400 14px/1.6 'Inter', sans-serif;
    padding: 13px 14px;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

/* Native select chrome paints its own arrow and bevel over the dark field, so
   the studio's two dropdowns were the only controls still drawn by the OS. */
.hw-field select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23F6C453' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 8px;
    cursor: pointer;
}

.hw-field textarea::placeholder, .hw-field input::placeholder {
    color: #777080;
}

.hw-field textarea:focus, .hw-field input:focus, .hw-field select:focus {
    border-color: var(--hw-secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(61, 214, 198, 0.11);
}

.hw-field-help {
    color: var(--hw-fg-faint);
    font-size: 12.5px;
    margin: 6px 0 10px;
    line-height: 1.55;
}

.hw-field-inline {
    display: flex;
    align-items: end;
    gap: 14px;
    flex-wrap: wrap;
}

.hw-field-inline select {
    flex: 1;
    min-width: 140px;
}

.hw-check {
    display: flex;
    gap: 10px;
    align-items: start;
    color: var(--hw-fg-dim);
    font-size: 13px;
    line-height: 1.55;
    cursor: pointer;
}

.hw-check input {
    margin-top: 3px;
    width: 17px;
    height: 17px;
    accent-color: var(--hw-accent);
}

.hw-rights {
    margin: 4px 0 16px;
    padding: 13px 14px;
    border: 1px dashed rgba(246, 196, 83, 0.34);
    border-radius: 10px;
    background: rgba(246, 196, 83, 0.035);
}

.hw-advanced {
    margin-bottom: 16px;
    border: 1px solid var(--hw-border);
    border-radius: 10px;
    padding: 4px 14px;
}

.hw-advanced summary {
    cursor: pointer;
    color: var(--hw-fg-dim);
    font-weight: 700;
    font-size: 13px;
    padding: 10px 0;
}

.hw-advanced .hw-field:last-child {
    margin-bottom: 12px;
}

.hw-error {
    color: var(--hw-danger);
    font-size: 13px;
    margin: 0 0 12px;
}

.hw-submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.hw-cost {
    color: var(--hw-secondary);
    font-size: 12.5px;
    font-weight: 700;
}

/* studio stage */
.hw-panel-stage {
    position: relative;
    overflow: hidden;
    min-height: 630px;
}

.hw-panel-stage::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 220px;
    opacity: 0.18;
    background: repeating-linear-gradient(to bottom, transparent 0 28px, rgba(247, 241, 230, 0.22) 29px, transparent 30px);
    pointer-events: none;
}

.hw-panel-stage > * {
    position: relative;
    z-index: 1;
}

.hw-stage-empty, .hw-stage-progress {
    display: grid;
    gap: 16px;
    justify-items: center;
    text-align: center;
    padding: 70px 0;
    color: var(--hw-fg-dim);
}

.hw-stage-empty-copy {
    display: grid;
    gap: 5px;
    max-width: 320px;
}

.hw-stage-empty-copy strong {
    color: var(--hw-fg);
    font-size: 16px;
}

.hw-stage-empty-copy p {
    margin: 0;
    line-height: 1.55;
}

.hw-stage-empty-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hw-recent-songs {
    width: 100%;
    max-width: 390px;
    display: grid;
    gap: 7px;
    margin-top: 4px;
    text-align: left;
}

.hw-recent-songs-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px 3px;
    color: var(--hw-fg-faint);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hw-recent-songs-head .hw-text-link {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.hw-recent-song {
    display: grid;
    grid-template-columns: 9px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 9px 10px;
    border: 1px solid var(--hw-border);
    border-radius: 11px;
    background: rgba(255, 255, 255, .025);
    color: var(--hw-fg);
    text-decoration: none;
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.hw-recent-song:hover {
    border-color: rgba(61, 214, 198, .34);
    background: rgba(61, 214, 198, .06);
    transform: translateY(-1px);
}

.hw-recent-song-mark {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hw-secondary);
    box-shadow: 0 0 0 4px rgba(61, 214, 198, .1);
}

.hw-recent-song-info {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.hw-recent-song-info strong,
.hw-recent-song-info small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hw-recent-song-info strong {
    font-size: 12px;
}

.hw-recent-song-info small {
    color: var(--hw-fg-faint);
    font-size: 11px;
}

.hw-recent-song > span:last-child {
    color: var(--hw-secondary);
    font-size: 15px;
}

.hw-stage-empty::before {
    content: '♪';
    color: rgba(246, 196, 83, 0.42);
    font: 72px 'Playfair Display', serif;
    line-height: 0.8;
}

.hw-stage-progress {
    font-size: 15px;
}

.hw-stage-progress .hw-wave {
    width: 100%;
}

.hw-elapsed {
    color: var(--hw-fg-faint);
    font-variant-numeric: tabular-nums;
}

.hw-task-id {
    font-size: 12px;
    color: var(--hw-fg-faint);
    word-break: break-all;
}

.hw-take-card + .hw-take-card {
    margin-top: 14px;
}

.hw-take-audio {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hw-take-audio audio {
    width: 100%;
    height: 40px;
    accent-color: var(--hw-accent);
}

.hw-take-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.hw-refund-note {
    margin-top: 14px;
    color: var(--hw-secondary);
    font-size: 13px;
    text-align: center;
}

.hw-stage-error {
    text-align: center;
    padding: 44px 0;
    color: var(--hw-danger);
    display: grid;
    gap: 14px;
    justify-items: center;
}

/* ---------- HitWeave paper-and-pitch theme ----------
   The marketing shell uses a soft grey-white canvas so the music notation,
   waveform cards and purple/teal controls carry the visual weight. Audio
   result cards stay dark on purpose: they read as the listening surface. */
html body.tool-hit-weave,
html body.tool-hit-weave #main-content {
    background: #edf0f3;
}

body.tool-hit-weave {
    color: #17212b;
}

.hw-page,
.hw-studio,
.hw-nav-wrap,
.hw-footer {
    --hw-bg: #edf0f3;
    --hw-bg-raise: #ffffff;
    --hw-muted: #e5e9ee;
    --hw-paper: #ffffff;
    --hw-fg: #17212b;
    --hw-fg-dim: #52616e;
    --hw-fg-faint: #74818d;
    --hw-primary: #6945e8;
    --hw-secondary: #087f80;
    --hw-accent: #b87713;
    --hw-danger: #bd4058;
    --hw-border: rgba(23, 33, 43, 0.14);
    --hw-ring: #6945e8;
    --hw-shadow-md: 0 14px 30px rgba(29, 42, 54, 0.08);
    --hw-shadow-lg: 0 22px 50px rgba(29, 42, 54, 0.13);
    --hw-shadow-glow: 0 12px 34px rgba(105, 69, 232, 0.15);
    background: var(--hw-bg);
    color: var(--hw-fg);
}

.hw-page::before {
    opacity: 0.56;
    background: radial-gradient(circle at 78% 8%, rgba(105, 69, 232, 0.08), transparent 27%),
    radial-gradient(circle at 14% 42%, rgba(8, 127, 128, 0.055), transparent 24%),
    repeating-linear-gradient(0deg, transparent 0 57px, rgba(23, 33, 43, 0.035) 58px, transparent 59px);
}

.hw-nav-wrap {
    background: rgba(255, 255, 255, 0.9);
    border-bottom-color: rgba(23, 33, 43, 0.12);
    box-shadow: 0 5px 22px rgba(29, 42, 54, 0.04);
}

.hw-brand,
.hw-nav-links a,
.hw-mobile-nav a {
    color: var(--hw-fg);
}

.hw-nav-links a {
    color: var(--hw-fg-dim);
}

.hw-nav-links a:hover,
.hw-nav-links a.is-active {
    color: var(--hw-fg);
}

.hw-nav-cta {
    background: var(--hw-primary);
    box-shadow: 0 10px 24px rgba(105, 69, 232, 0.2);
}

.hw-nav-toggle {
    border-color: var(--hw-border);
    color: var(--hw-fg);
}

.hw-mobile-nav {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--hw-border);
}

.hw-mobile-nav a.is-active,
.hw-mobile-nav a:hover {
    background: rgba(8, 127, 128, 0.08);
    color: var(--hw-fg);
}

.hw-mobile-nav-cta {
    margin-top: 8px;
    border-radius: 10px;
    background: var(--hw-primary);
    color: #fff !important;
    font-weight: 800;
    text-align: center;
}

.hw-btn-primary {
    background: var(--hw-primary);
    color: #fff;
    box-shadow: 0 10px 22px rgba(105, 69, 232, 0.2);
}

.hw-btn-primary:hover {
    box-shadow: 0 14px 28px rgba(105, 69, 232, 0.26);
}

.hw-btn-ghost,
.hw-chip {
    background: rgba(255, 255, 255, 0.8);
    color: var(--hw-fg);
    border-color: var(--hw-border);
}

.hw-text-link,
.hw-eyebrow,
.hw-capability-eyebrow {
    color: var(--hw-secondary);
}

.hw-hero {
    grid-template-columns: minmax(320px, 0.78fr) minmax(520px, 1.22fr);
    gap: 72px;
    min-height: 690px;
}

.hw-hero-copy {
    max-width: 510px;
    padding-left: clamp(0px, 2vw, 26px);
}

.hw-hero-stage {
    min-height: 500px;
    transform: translateX(22px);
}

.hw-hero-stage::before,
.hw-hero-stage::after {
    content: '';
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.hw-hero-stage::before {
    width: 150px;
    height: 150px;
    right: -18px;
    bottom: 8px;
    border: 1px solid rgba(8, 127, 128, 0.18);
    border-radius: 50%;
    box-shadow: 0 0 0 16px rgba(8, 127, 128, 0.035), 0 0 0 32px rgba(8, 127, 128, 0.025);
}

.hw-hero-stage::after {
    left: -44px;
    bottom: 36px;
    width: 180px;
    height: 76px;
    opacity: 0.38;
    background: repeating-linear-gradient(to bottom, transparent 0 17px, rgba(23, 33, 43, 0.19) 18px, transparent 19px);
}

.hw-scoreboard {
    z-index: 1;
}

.hw-take-card {
    z-index: 2;
}

.hw-hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--hw-border);
}

.hw-hero-proof div {
    display: grid;
    gap: 2px;
}

.hw-hero-proof strong {
    color: var(--hw-fg);
    font: 700 13px 'Inter', sans-serif;
    letter-spacing: 0.02em;
}

.hw-hero-proof span {
    color: var(--hw-fg-faint);
    font-size: 11px;
}

.hw-capability-card,
.hw-steps li,
.hw-genre-card,
.hw-scenario-link,
.hw-trust-grid > div,
.hw-guide-card,
.hw-history-card,
.hw-plan,
.hw-panel,
.hw-workspace-sidebar {
    background: rgba(255, 255, 255, 0.88);
    border-color: var(--hw-border);
    box-shadow: 0 10px 28px rgba(29, 42, 54, 0.055);
}

.hw-capability-card:hover,
.hw-scenario-link:hover,
.hw-guide-card:hover,
.hw-genre-card:hover {
    background: #fff;
    border-color: rgba(8, 127, 128, 0.44);
    box-shadow: var(--hw-shadow-glow);
}

.hw-capability-card p,
.hw-steps span,
.hw-scenario-link span,
.hw-trust-grid span,
.hw-section-intro p:not(.hw-eyebrow),
.hw-guides-callout p:not(.hw-eyebrow),
.hw-how p,
.hw-how li,
.hw-article-body,
.hw-scenario-section p,
.hw-pricing-faq dd {
    color: var(--hw-fg-dim);
}

.hw-steps li::after {
    color: rgba(105, 69, 232, 0.1);
}

.hw-prompt-library,
.hw-prompt-card,
.hw-prompt-formula,
.hw-recent-song,
.hw-billing-toggle,
.hw-mode-toggle {
    background: #f7f9fa;
    border-color: var(--hw-border);
}

.hw-prompt-card,
.hw-recent-song {
    box-shadow: none;
}

.hw-field > label,
.hw-check,
.hw-panel h1,
.hw-panel h2,
.hw-prompt-library summary,
.hw-prompt-card-head strong,
.hw-stage-empty-copy strong,
.hw-recent-song,
.hw-pricing h1,
.hw-plan h2,
.hw-scenario h1,
.hw-scenario-section h2 {
    color: var(--hw-fg);
}

.hw-field textarea,
.hw-field input[type='text'],
.hw-field select,
.hw-hero-form {
    background: #fff;
    border-color: var(--hw-border);
    color: var(--hw-fg);
}

.hw-field textarea::placeholder,
.hw-field input::placeholder,
.hw-panel-sub,
.hw-field-help,
.hw-help,
.hw-prompt-library summary small,
.hw-prompt-intro,
.hw-prompt-formula small,
.hw-prompt-copy,
.hw-stage-empty-copy p,
.hw-stage-intro,
.hw-cost,
.hw-kbd-hint,
.hw-billing-note,
.hw-payment-note,
.hw-plan-price span,
.hw-plan li,
.hw-history-card time,
.hw-guide-card p {
    color: var(--hw-fg-dim);
}

.hw-field textarea:focus,
.hw-field input:focus,
.hw-field select:focus,
.hw-hero-form:focus-within {
    border-color: var(--hw-secondary);
    box-shadow: 0 0 0 4px rgba(8, 127, 128, 0.1);
}

.hw-mode-btn {
    color: var(--hw-fg-dim);
}

.hw-mode-btn.is-active {
    background: var(--hw-primary);
}

.hw-panel-stage::before {
    opacity: 0.5;
    background: repeating-linear-gradient(to bottom, transparent 0 28px, rgba(23, 33, 43, 0.09) 29px, transparent 30px);
}

.hw-stage-empty::before {
    color: rgba(184, 119, 19, 0.52);
}

.hw-studio-intent {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin: -6px 0 22px;
}

.hw-studio-intent span {
    min-height: 54px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 9px 10px;
    border: 1px solid var(--hw-border);
    border-radius: 10px;
    background: rgba(8, 127, 128, 0.045);
    color: var(--hw-fg-dim);
    font-size: 11px;
    line-height: 1.3;
}

.hw-studio-intent b {
    color: var(--hw-secondary);
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hw-stage-intro {
    max-width: 390px;
    margin: -2px 0 0;
    font-size: 13px;
    line-height: 1.6;
}

.hw-studio-seo {
    max-width: 1160px;
    padding-top: 82px;
    padding-bottom: 26px;
}

.hw-studio-seo .hw-section-intro {
    max-width: 780px;
}

.hw-studio-seo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 26px;
}

.hw-studio-seo-grid article,
.hw-studio-use-cases {
    padding: 20px;
    border: 1px solid var(--hw-border);
    border-radius: var(--hw-radius);
    background: rgba(255, 255, 255, 0.72);
}

.hw-studio-seo-grid article > span {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(105, 69, 232, 0.1);
    color: var(--hw-primary);
    font-weight: 800;
    font-size: 12px;
}

.hw-studio-seo-grid h3,
.hw-studio-use-cases h3,
.hw-studio-faq h3 {
    margin: 14px 0 8px;
    color: var(--hw-fg);
    font-size: 18px;
}

.hw-studio-seo-grid p,
.hw-studio-use-cases p {
    margin: 0;
    color: var(--hw-fg-dim);
    font-size: 13.5px;
    line-height: 1.65;
}

.hw-studio-use-cases {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    margin-top: 14px;
}

.hw-studio-use-cases > div:first-child {
    max-width: 620px;
}

.hw-studio-use-cases h3 {
    margin-top: 0;
}

.hw-studio-tags,
.hw-scenario-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.hw-studio-tags {
    justify-content: flex-end;
    max-width: 330px;
}

.hw-studio-tags span,
.hw-scenario-tags span {
    padding: 7px 10px;
    border: 1px solid rgba(8, 127, 128, 0.2);
    border-radius: 999px;
    background: rgba(8, 127, 128, 0.06);
    color: var(--hw-secondary);
    font-size: 11px;
    font-weight: 700;
}

.hw-studio-faq {
    margin-top: 36px;
}

.hw-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--hw-fg-faint);
    font-size: 12px;
}

.hw-breadcrumbs a {
    color: var(--hw-secondary);
    text-decoration: none;
}

.hw-breadcrumbs a:hover {
    text-decoration: underline;
}

.hw-scenario-action {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(260px, .92fr);
    gap: 26px;
    align-items: center;
    margin-top: 30px;
    padding: 22px;
    border: 1px solid rgba(105, 69, 232, 0.2);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(239, 237, 250, 0.84));
    box-shadow: var(--hw-shadow-md);
}

.hw-scenario-action-label {
    margin: 0 0 7px;
    color: var(--hw-primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.hw-scenario-action h2 {
    margin: 0 0 7px;
    color: var(--hw-fg);
    font-size: 22px;
    line-height: 1.15;
}

.hw-scenario-action p:not(.hw-scenario-action-label) {
    margin: 0;
    color: var(--hw-fg-dim);
    font-size: 13.5px;
    line-height: 1.6;
}

.hw-scenario-tags {
    margin-top: 13px;
}

.hw-scenario-action-cta {
    display: grid;
    justify-items: start;
    gap: 13px;
    padding-left: 24px;
    border-left: 1px solid var(--hw-border);
}

.hw-scenario-action-cta .hw-btn {
    width: 100%;
}

.hw-footer {
    position: relative;
    overflow: hidden;
    background: #f8fafb;
    border-top-color: rgba(23, 33, 43, 0.12);
}

.hw-footer-staff {
    position: absolute;
    top: 36px;
    right: 5%;
    width: 230px;
    height: 112px;
    opacity: 0.28;
    pointer-events: none;
}

.hw-footer-staff span {
    display: block;
    height: 1px;
    margin: 15px 0;
    background: rgba(8, 127, 128, 0.35);
}

.hw-footer-staff svg {
    position: absolute;
    right: 26px;
    top: -20px;
    width: 42px;
    height: 72px;
    fill: none;
    stroke: var(--hw-primary);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hw-footer-inner {
    position: relative;
    z-index: 1;
    max-width: 1160px;
    padding-top: 58px;
    padding-bottom: 38px;
}

.hw-footer-brand {
    max-width: 355px;
}

.hw-footer-brand strong {
    display: block;
    margin-bottom: 6px;
    color: var(--hw-fg);
    font: 600 20px 'Playfair Display', Georgia, serif;
}

.hw-footer-brand p {
    color: var(--hw-fg-dim);
}

.hw-footer-brand small {
    display: block;
    margin-top: 12px;
    color: var(--hw-secondary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
}

.hw-footer-columns {
    display: flex;
    gap: clamp(28px, 4vw, 64px);
}

.hw-footer-links {
    min-width: 128px;
    gap: 10px;
}

.hw-footer-links strong {
    margin-bottom: 3px;
    color: var(--hw-fg);
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hw-footer-links a {
    color: var(--hw-fg-dim);
    transition: color 180ms ease, transform 180ms ease;
}

.hw-footer-links a:hover {
    color: var(--hw-primary);
    transform: translateX(2px);
}

.hw-footer-cta {
    display: grid;
    align-content: start;
    justify-items: start;
    gap: 11px;
    min-width: 170px;
}

.hw-footer-cta-label {
    color: var(--hw-fg);
    font: 600 15px 'Playfair Display', Georgia, serif;
    line-height: 1.35;
}

.hw-footer-bottom {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    max-width: 1160px;
    margin: 0 auto;
    padding: 14px 28px 28px;
    border-top: 1px solid var(--hw-border);
}

.hw-footer-note {
    margin: 0;
    padding: 0;
    color: var(--hw-fg-faint);
}

@media (max-width: 1024px) {
    .hw-hero {
        grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
        gap: 34px;
    }

    .hw-hero-stage {
        transform: translateX(8px);
    }
}

@media (max-width: 768px) {
    .hw-hero {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .hw-hero-copy {
        padding-left: 0;
    }

    .hw-hero-stage {
        transform: none;
    }

    .hw-hero-proof {
        gap: 12px 18px;
    }

    .hw-studio-intent,
    .hw-studio-seo-grid {
        grid-template-columns: 1fr;
    }

    .hw-studio-use-cases,
    .hw-scenario-action,
    .hw-footer-bottom {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hw-studio-tags {
        justify-content: flex-start;
        max-width: none;
    }

    .hw-scenario-action-cta {
        padding-left: 0;
        padding-top: 18px;
        border-left: 0;
        border-top: 1px solid var(--hw-border);
    }

    .hw-footer-staff {
        right: -42px;
        opacity: 0.18;
    }

    .hw-footer-columns,
    .hw-footer-cta {
        width: 100%;
    }

    .hw-footer-columns {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 18px;
    }

    .hw-footer-cta {
        margin-top: 8px;
    }
}

/* ---------- pricing ---------- */
.hw-pricing {
    padding: 60px 28px 96px;
    max-width: 1240px;
    margin: 0 auto;
}

.hw-eyebrow {
    margin: 0 0 10px;
    color: var(--hw-secondary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hw-pricing h1 {
    max-width: 820px;
    font-size: clamp(36px, 4.2vw, 54px);
    line-height: 1.06;
    letter-spacing: -.03em;
}

.hw-plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 34px 0 52px;
}

.hw-plan {
    background: rgba(32, 26, 42, 0.84);
    border: 1px solid var(--hw-border);
    border-radius: 17px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.hw-plan:hover {
    border-color: var(--hw-secondary);
    transform: translateY(-3px);
    box-shadow: var(--hw-shadow-lg);
}

.hw-plan-featured {
    border-color: rgba(246, 196, 83, 0.68);
    box-shadow: 0 0 32px rgba(246, 196, 83, 0.12);
}

.hw-plan h2 {
    font-size: 22px;
    margin: 0;
}

.hw-plan-price {
    font: 600 36px 'Playfair Display', serif;
    margin: 0;
    color: var(--hw-paper);
}

.hw-plan-price span {
    font: 500 13px 'Inter', sans-serif;
    color: var(--hw-fg-faint);
}

.hw-plan-value {
    margin: -8px 0 0;
    color: var(--hw-accent);
    font-size: 12px;
    font-weight: 700;
}

.hw-plan ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 9px;
}

.hw-plan li {
    color: var(--hw-fg-dim);
    font-size: 13px;
    padding-left: 20px;
    position: relative;
}

.hw-plan li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--hw-accent);
    font-size: 13px;
    font-weight: 800;
}

.hw-plan .hw-btn {
    margin-top: auto;
}

.hw-billing-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    width: max-content;
    margin: 26px auto 0;
    padding: 4px;
    border: 1px solid var(--hw-border);
    border-radius: 999px;
    background: rgba(32, 26, 42, 0.76);
}

.hw-billing-tab {
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--hw-fg-dim);
    cursor: pointer;
    font: 700 12px 'Inter', sans-serif;
    padding: 10px 15px;
    transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.hw-billing-tab:hover, .hw-billing-tab:focus-visible {
    color: var(--hw-paper);
}

.hw-billing-tab:focus-visible {
    outline: 2px solid var(--hw-secondary);
    outline-offset: 2px;
}

.hw-billing-tab.is-active {
    background: var(--hw-accent);
    color: #17121C;
    box-shadow: 0 4px 16px rgba(246, 196, 83, 0.2);
}

.hw-billing-tab span {
    color: inherit;
    font-size: 10px;
    margin-left: 4px;
    opacity: .78;
}

.hw-billing-note {
    color: var(--hw-fg-faint);
    font-size: 12.5px;
    line-height: 1.55;
    margin: 10px auto 0;
    max-width: 700px;
    text-align: center;
}

.hw-plans-single {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 780px;
}

.hw-plan-coming-soon {
    border-style: dashed;
}

.hw-pricing-faq dt {
    font-weight: 700;
    margin-top: 18px;
}

.hw-pricing-faq dd {
    color: var(--hw-fg-dim);
    margin: 6px 0 0;
    line-height: 1.65;
    font-size: 14px;
}

.hw-payment-note {
    max-width: 760px;
    margin: 14px auto 0;
    color: var(--hw-fg-faint);
    font-size: 12.5px;
    line-height: 1.6;
    text-align: center;
}

/* ---------- history / guides / footer ---------- */
.hw-history {
    padding: 52px 28px 92px;
}

.hw-history-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
    padding: 13px 15px;
    border: 1px solid rgba(246, 196, 83, 0.24);
    border-radius: 12px;
    background: rgba(246, 196, 83, 0.05);
}

.hw-history-toolbar p {
    margin: 0;
    color: var(--hw-fg-dim);
    font-size: 13px;
    line-height: 1.5;
}

.hw-history-toolbar .hw-btn {
    flex: 0 0 auto;
    padding: 8px 14px;
    font-size: 12px;
}

.hw-history-list {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.hw-history-card {
    background: rgba(22, 19, 31, 0.9);
    border: 1px solid var(--hw-border);
    border-radius: var(--hw-radius);
    padding: 20px;
}

.hw-history-card header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.hw-history-card h2 {
    font-size: 19px;
    margin: 0;
}

.hw-history-card time {
    color: var(--hw-fg-faint);
    font-size: 12px;
    margin-left: auto;
}

.hw-status {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 99px;
    padding: 5px 10px;
}

.hw-status-completed {
    color: var(--hw-secondary);
    background: rgba(61, 214, 198, 0.12);
}

.hw-status-queued, .hw-status-processing {
    color: var(--hw-accent);
    background: rgba(246, 196, 83, 0.12);
}

.hw-status-failed {
    color: var(--hw-danger);
    background: rgba(251, 113, 133, 0.12);
}

.hw-history-takes {
    display: grid;
    gap: 10px;
}

.hw-take-row {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 12px;
    align-items: center;
}

.hw-take-row audio {
    width: 100%;
    height: 38px;
}

.hw-error-text {
    color: var(--hw-danger);
    font-size: 14px;
}

.hw-delete {
    margin-top: 10px;
}

.hw-empty {
    text-align: center;
    padding: 64px 0;
    display: grid;
    gap: 16px;
    justify-items: center;
    color: var(--hw-fg-dim);
}

.hw-guide-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 24px;
}

.hw-guide-card {
    background: rgba(22, 19, 31, 0.9);
    border: 1px solid var(--hw-border);
    border-radius: var(--hw-radius);
    padding: 20px;
    text-decoration: none;
    color: var(--hw-fg);
    transition: border-color 180ms ease, transform 180ms ease;
}

.hw-guide-card:hover {
    border-color: var(--hw-secondary);
    transform: translateY(-2px);
}

.hw-guide-card h2 {
    font-size: 19px;
    margin: 0 0 8px;
}

.hw-guide-card p {
    color: var(--hw-fg-dim);
    font-size: 14px;
    margin: 0;
    line-height: 1.55;
}

.hw-article time {
    color: var(--hw-fg-faint);
    font-size: 13px;
}

.hw-footer {
    border-top: 1px solid var(--hw-border);
    margin-top: 0;
    background: #09080D;
}

.hw-footer-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 44px 28px 24px;
    display: flex;
    gap: 40px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.hw-footer-brand {
    max-width: 440px;
    display: flex;
    gap: 12px;
    align-items: start;
}

.hw-footer-brand img {
    width: 30px;
    height: 30px;
}

.hw-footer-brand p {
    color: var(--hw-fg-faint);
    font-size: 13px;
    line-height: 1.65;
    margin: 0;
}

.hw-footer-links {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.hw-footer-links a {
    color: var(--hw-fg-dim);
    text-decoration: none;
    font-size: 13px;
}

.hw-footer-links a:hover {
    color: var(--hw-accent);
}

.hw-footer-note {
    max-width: 1160px;
    margin: 0 auto;
    padding: 14px 28px 30px;
    color: #766F80;
    font-size: 11.5px;
}

audio {
    border-radius: 8px;
    background: var(--hw-muted);
}

/* ---------- responsive ---------- */
@media (max-width: 1280px) and (min-width: 1025px) {
    .hw-studio {
        grid-template-columns: 180px minmax(0, 1fr);
    }

    .hw-panel-stage {
        grid-column: 2;
    }
}

@media (max-width: 1024px) {
    .hw-hero {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 58px;
    }

    .hw-hero-copy {
        max-width: 700px;
    }

    .hw-hero-stage {
        max-width: 700px;
        width: 100%;
        margin: 0 auto;
    }

    .hw-studio {
        grid-template-columns: 1fr;
    }

    .hw-workspace-sidebar {
        min-height: 0;
        position: static;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 18px;
        padding: 12px 14px;
    }

    .hw-sidebar-kicker {
        margin: 0 0 7px;
    }

    .hw-sidebar-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }

    .hw-sidebar-nav a,
    .hw-sidebar-nav button {
        width: auto;
        padding: 8px 10px;
    }

    .hw-sidebar-note {
        display: none;
    }

    .hw-panel-stage {
        min-height: auto;
    }

    .hw-genre-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hw-capability-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hw-scenario-links {
        grid-template-columns: 1fr;
    }

    .hw-plans {
        grid-template-columns: 1fr;
        max-width: 520px;
    }
}

@media (max-width: 768px) {
    .hw-container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .hw-nav {
        padding-left: 18px;
        padding-right: 18px;
        min-height: 68px;
    }

    .hw-nav-links {
        display: none;
    }

    .hw-nav-toggle {
        display: block;
        margin-left: auto;
    }

    .hw-mobile-nav {
        padding-left: 18px;
        padding-right: 18px;
    }

    .hw-hero {
        min-height: auto;
        padding-top: 46px;
        padding-bottom: 48px;
    }

    .hw-hero h1 {
        font-size: clamp(42px, 12vw, 64px);
    }

    .hw-hero-form {
        flex-direction: column;
    }

    .hw-hero-form input {
        min-height: 44px;
    }

    .hw-hero-links {
        gap: 7px;
    }

    .hw-hero-stage {
        min-height: 405px;
        transform: none;
    }

    .hw-scoreboard {
        left: 0;
        right: 8px;
        min-height: 230px;
    }

    .hw-score-sheet {
        height: 120px;
    }

    .hw-take-a {
        margin-top: 126px;
        margin-left: 14px;
    }

    .hw-take-b {
        margin-left: 42px;
        margin-right: 0;
    }

    .hw-steps ol {
        grid-template-columns: 1fr;
    }

    .hw-capability-grid {
        grid-template-columns: 1fr;
    }

    .hw-capability-card {
        min-height: 0;
    }

    .hw-section-intro-inline {
        align-items: start;
        flex-direction: column;
        gap: 8px;
    }

    .hw-section-intro-inline .hw-text-link {
        margin-bottom: 8px;
    }

    .hw-trust-grid {
        grid-template-columns: 1fr;
    }

    .hw-guides-callout {
        align-items: start;
        flex-direction: column;
        gap: 20px;
    }

    .hw-guides-callout .hw-btn {
        width: 100%;
    }

    .hw-genre-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hw-take-row {
        grid-template-columns: 1fr;
    }

    .hw-submit-row {
        flex-direction: column-reverse;
        align-items: stretch;
        text-align: center;
    }

    .hw-prompt-library summary {
        align-items: start;
        flex-direction: column;
        gap: 3px;
    }

    .hw-practice-header {
        flex-direction: column;
    }

    .hw-practice-grid {
        grid-template-columns: 1fr;
    }

    .hw-practice-loop-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hw-practice-loop-grid .hw-btn {
        grid-column: 1 / -1;
    }

    .hw-practice-correction-grid {
        grid-template-columns: 1fr;
    }

    .hw-scenario h1 {
        font-size: 34px;
    }

    .hw-pricing h1 {
        font-size: 35px;
    }

    .hw-billing-toggle {
        display: flex;
        width: 100%;
        border-radius: 14px;
    }

    .hw-billing-tab {
        flex: 1;
        padding-left: 8px;
        padding-right: 8px;
    }

    .hw-history-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .hw-panel {
        padding: 22px 18px;
    }

    .hw-workspace-sidebar {
        display: block;
        padding: 12px;
    }

    .hw-sidebar-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hw-sidebar-nav a,
    .hw-sidebar-nav button {
        width: 100%;
        font-size: 11.5px;
    }

    .hw-stage-empty {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .hw-recent-songs {
        max-width: none;
    }

    .hw-footer-inner {
        padding-left: 18px;
        padding-right: 18px;
    }

    .hw-footer-note {
        padding-left: 18px;
        padding-right: 18px;
    }

    body.tool-hit-weave .hw-page.hw-container,
    body.tool-hit-weave .hw-page.hw-container.hw-how {
        padding-left: 18px;
        padding-right: 18px;
    }

    body.tool-hit-weave .hw-page.hw-container.hw-studio {
        padding-left: 18px;
        padding-right: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hw-wave-live i {
        animation: none;
    }

    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- async notice / keyboard dialogs ---------- */
.hw-notice-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 20px;
}

.hw-notice-modal[hidden] {
    display: none;
}

.hw-notice-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 4, 8, 0.72);
    backdrop-filter: blur(6px);
}

.hw-notice-dialog {
    position: relative;
    width: min(440px, 100%);
    background: #1A1624;
    border: 1px solid var(--hw-border);
    border-radius: 16px;
    box-shadow: var(--hw-shadow-lg);
    padding: 28px;
    text-align: center;
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--hw-fg);
}

.hw-notice-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    font-size: 23px;
    margin: 0 0 10px;
}

.hw-notice-body {
    color: var(--hw-fg-dim);
    font-size: 14px;
    line-height: 1.65;
    margin: 0 0 20px;
}

.hw-notice-dialog .hw-btn {
    min-width: 140px;
    margin: 3px;
}

.hw-shortcuts-dialog {
    text-align: left;
}

.hw-shortcuts-list {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 16px;
    margin: 0 0 20px;
}

.hw-shortcuts-list dt {
    display: flex;
    gap: 4px;
    align-items: center;
}

.hw-shortcuts-list dd {
    margin: 0;
    color: var(--hw-fg-dim);
    font-size: 14px;
}

kbd {
    background: #0F0D15;
    border: 1px solid var(--hw-border);
    border-bottom-width: 2px;
    border-radius: 5px;
    padding: 2px 7px;
    font: 700 11px 'Inter', sans-serif;
    color: var(--hw-paper);
}

.hw-kbd-hint {
    margin: 10px 2px 0;
    color: var(--hw-fg-faint);
    font-size: 11.5px;
}

.hw-kbd-hint kbd {
    font-size: 10px;
    padding: 1px 5px;
}

/* Final theme cascade: these selectors intentionally come after the shared
   pricing, footer and responsive rules above. */
.hw-pricing .hw-plan,
.hw-footer,
.hw-footer-inner,
.hw-footer-links a,
.hw-footer-note {
    color: var(--hw-fg);
}

.hw-pricing .hw-plan {
    background: rgba(255, 255, 255, 0.88);
    border-color: var(--hw-border);
    box-shadow: 0 10px 28px rgba(29, 42, 54, 0.055);
}

.hw-pricing .hw-plan:hover {
    background: #fff;
    border-color: rgba(8, 127, 128, 0.44);
    box-shadow: var(--hw-shadow-glow);
}

.hw-plan-price {
    color: var(--hw-fg);
}

.hw-billing-toggle {
    background: rgba(255, 255, 255, 0.86);
}

.hw-billing-tab {
    color: var(--hw-fg-dim);
}

.hw-billing-tab:hover,
.hw-billing-tab:focus-visible {
    color: var(--hw-fg);
}

.hw-notice-dialog {
    background: #fff;
    color: var(--hw-fg);
}

kbd {
    background: #eef1f4;
    color: var(--hw-fg);
}

.hw-footer {
    background: #f8fafb;
    border-top-color: rgba(23, 33, 43, 0.12);
}

.hw-footer-inner {
    position: relative;
    z-index: 1;
    padding-top: 58px;
    padding-bottom: 38px;
}

.hw-footer-brand strong,
.hw-footer-links strong,
.hw-footer-cta-label {
    color: var(--hw-fg);
}

.hw-footer-brand p,
.hw-footer-links a,
.hw-footer-note {
    color: var(--hw-fg-dim);
}

.hw-footer-links a:hover {
    color: var(--hw-primary);
}

@media (max-width: 768px) {
    .hw-hero {
        grid-template-columns: 1fr;
    }

    .hw-studio-intent,
    .hw-studio-seo-grid {
        grid-template-columns: 1fr;
    }

    .hw-studio-use-cases,
    .hw-scenario-action,
    .hw-footer-bottom {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hw-footer-inner {
        padding-top: 42px;
    }
}

/* ---------- HitWeave interaction polish ----------
   Keep the paper canvas calm, then let the studio controls carry the color.
   Theme tokens are applied at the document level so every page switches
   together without a flash or per-page dark-mode fork. */
.hw-theme-toggle {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 10px;
    border: 1px solid var(--hw-border);
    border-radius: 999px;
    background: transparent;
    color: var(--hw-fg-dim);
    font: 600 11px/1 'Inter', sans-serif;
    cursor: pointer;
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.hw-theme-toggle:hover {
    color: var(--hw-fg);
    border-color: var(--hw-secondary);
    background: rgba(8, 127, 128, 0.08);
}

.hw-theme-icon {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hw-theme-icon-moon {
    display: none;
}

html[data-hw-theme='dark'] .hw-theme-icon-sun {
    display: none;
}

html[data-hw-theme='dark'] .hw-theme-icon-moon {
    display: block;
}

.hw-hero-copy {
    transform: translateX(-18px);
}

.hw-hero-stage {
    transform: translate(30px, 14px);
}

.hw-quick-create {
    display: grid;
    gap: 11px;
    width: min(100%, 570px);
    margin-top: 8px;
    padding: 14px;
    border-radius: 16px;
}

.hw-quick-create-head {
    display: grid;
    gap: 4px;
    padding: 2px 2px 1px;
}

.hw-quick-create-kicker,
.hw-field-kicker {
    color: var(--hw-secondary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hw-quick-create-head strong {
    color: var(--hw-fg);
    font: 600 18px/1.15 'Playfair Display', Georgia, serif;
}

.hw-quick-create textarea {
    width: 100%;
    resize: vertical;
    min-height: 68px;
    padding: 11px 12px;
    border: 1px solid var(--hw-border);
    border-radius: 11px;
    background: rgba(255, 255, 255, .72);
    color: var(--hw-fg);
    font: 400 13px/1.55 'Inter', sans-serif;
}

.hw-quick-create textarea::placeholder {
    color: var(--hw-fg-faint);
}

.hw-quick-create textarea:focus {
    outline: none;
    border-color: var(--hw-secondary);
    box-shadow: 0 0 0 4px rgba(8, 127, 128, .1);
}

.hw-quick-create-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.hw-quick-create-controls label {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.hw-quick-create-controls label > span {
    color: var(--hw-fg-faint);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hw-quick-create-controls select {
    width: 100%;
    min-height: 40px;
    padding: 8px 28px 8px 10px;
    border: 1px solid var(--hw-border);
    border-radius: 9px;
    appearance: none;
    -webkit-appearance: none;
    background-color: rgba(255, 255, 255, .7);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23087f80' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px 7px;
    color: var(--hw-fg);
    font: 600 12px 'Inter', sans-serif;
    cursor: pointer;
}

.hw-quick-create-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hw-quick-create-footer .hw-check {
    max-width: 290px;
    font-size: 11px;
}

.hw-quick-create-footer .hw-btn {
    flex: 0 0 auto;
    padding: 10px 15px;
    font-size: 12px;
}

.hw-quick-create-status {
    margin: 0;
    padding: 8px 10px;
    border-radius: 9px;
    background: rgba(8, 127, 128, .07);
    color: var(--hw-secondary);
    font-size: 12px;
    line-height: 1.45;
}

.hw-quick-create-status.is-error {
    background: rgba(189, 64, 88, .08);
    color: var(--hw-danger);
}

.hw-quick-create-status a {
    color: inherit;
    font-weight: 800;
    text-decoration: underline;
}

.hw-quick-create-results {
    display: grid;
    gap: 8px;
    padding-top: 4px;
}

.hw-quick-create-results > strong {
    color: var(--hw-fg);
    font-size: 12px;
}

.hw-quick-result {
    display: grid;
    grid-template-columns: 45px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
    border: 1px solid var(--hw-border);
    border-radius: 9px;
    background: rgba(22, 19, 31, .92);
    color: #fff;
    font-size: 11px;
}

.hw-quick-result audio {
    width: 100%;
    height: 30px;
}

.hw-quick-result .hw-text-link {
    white-space: nowrap;
    font-size: 11px;
}

.hw-creative-controls {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 16px;
    padding: 13px 14px 2px;
    border: 1px solid var(--hw-border);
    border-radius: 12px;
    background: rgba(8, 127, 128, .035);
}

.hw-creative-controls .hw-field {
    margin-bottom: 12px;
}

.hw-chip-row {
    gap: 6px;
}

.hw-chip {
    min-height: 36px;
    padding: 7px 11px;
    font-size: 12px;
}

.hw-compact-settings {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr) auto;
    gap: 12px;
    align-items: end;
}

.hw-compact-settings .hw-field {
    margin-bottom: 16px;
}

.hw-compact-settings .hw-field select {
    min-height: 44px;
    padding-top: 9px;
    padding-bottom: 9px;
}

.hw-instrumental-check {
    min-height: 44px;
    align-items: center;
    padding-bottom: 16px;
    white-space: nowrap;
}

.hw-idea-composer {
    padding: 14px;
    border: 1px solid var(--hw-border);
    border-radius: 13px;
    background: rgba(8, 127, 128, .035);
}

.hw-idea-composer-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 10px;
}

.hw-idea-composer-head label {
    margin-top: 5px;
    margin-bottom: 0;
}

.hw-idea-count {
    color: var(--hw-fg-faint);
    font-size: 11px;
    white-space: nowrap;
}

.hw-idea-intro {
    margin: 7px 0 10px;
    color: var(--hw-fg-dim);
    font-size: 12px;
    line-height: 1.5;
}

.hw-idea-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.hw-idea-examples button {
    min-height: 32px;
    padding: 6px 9px;
    border: 1px solid var(--hw-border);
    border-radius: 999px;
    background: var(--hw-bg-raise);
    color: var(--hw-fg-dim);
    font: 600 11px 'Inter', sans-serif;
    cursor: pointer;
    transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.hw-idea-examples button:hover {
    border-color: var(--hw-secondary);
    background: rgba(8, 127, 128, .08);
    color: var(--hw-fg);
}

.hw-scenario-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.hw-scenario-grid .hw-scenario-link {
    min-height: 174px;
}

/* Dark mode keeps the paper-and-pitch structure, but restores the cinematic
   listening surfaces and contrast tokens from the studio palette. */
html[data-hw-theme='dark'] body.tool-hit-weave,
html[data-hw-theme='dark'] body.tool-hit-weave #main-content {
    background: #0b0a10;
    color: #f7f1e6;
}

html[data-hw-theme='dark'] .hw-page,
html[data-hw-theme='dark'] .hw-studio,
html[data-hw-theme='dark'] .hw-nav-wrap,
html[data-hw-theme='dark'] .hw-footer {
    --hw-bg: #0b0a10;
    --hw-bg-raise: #16131f;
    --hw-muted: #201a2a;
    --hw-paper: #f7f1e6;
    --hw-fg: #f7f1e6;
    --hw-fg-dim: #c9c1d1;
    --hw-fg-faint: #9d95a6;
    --hw-primary: #8b5cf6;
    --hw-secondary: #3dd6c6;
    --hw-accent: #f6c453;
    --hw-danger: #fb7185;
    --hw-border: rgba(247, 241, 230, .14);
    --hw-ring: #f6c453;
    --hw-shadow-md: 0 14px 32px rgba(0, 0, 0, .24);
    --hw-shadow-lg: 0 24px 60px rgba(0, 0, 0, .32);
    background: var(--hw-bg);
    color: var(--hw-fg);
}

html[data-hw-theme='dark'] .hw-nav-wrap {
    background: rgba(11, 10, 16, .9);
    border-bottom-color: var(--hw-border);
    box-shadow: none;
}

html[data-hw-theme='dark'] .hw-mobile-nav {
    background: rgba(11, 10, 16, .97);
    border-bottom-color: var(--hw-border);
}

html[data-hw-theme='dark'] .hw-capability-card,
html[data-hw-theme='dark'] .hw-steps li,
html[data-hw-theme='dark'] .hw-genre-card,
html[data-hw-theme='dark'] .hw-scenario-link,
html[data-hw-theme='dark'] .hw-trust-grid > div,
html[data-hw-theme='dark'] .hw-guide-card,
html[data-hw-theme='dark'] .hw-history-card,
html[data-hw-theme='dark'] .hw-plan,
html[data-hw-theme='dark'] .hw-panel,
html[data-hw-theme='dark'] .hw-workspace-sidebar,
html[data-hw-theme='dark'] .hw-studio-seo-grid article,
html[data-hw-theme='dark'] .hw-studio-use-cases {
    background: rgba(22, 19, 31, .92);
    border-color: var(--hw-border);
    box-shadow: var(--hw-shadow-md);
}

html[data-hw-theme='dark'] .hw-field textarea,
html[data-hw-theme='dark'] .hw-field input[type='text'],
html[data-hw-theme='dark'] .hw-field select,
html[data-hw-theme='dark'] .hw-hero-form,
html[data-hw-theme='dark'] .hw-quick-create textarea,
html[data-hw-theme='dark'] .hw-quick-create-controls select {
    background-color: #100e16;
    color: var(--hw-fg);
    border-color: var(--hw-border);
}

html[data-hw-theme='dark'] .hw-btn-ghost,
html[data-hw-theme='dark'] .hw-chip {
    background: #201a2a;
    color: var(--hw-fg-dim);
    border-color: var(--hw-border);
}

html[data-hw-theme='dark'] .hw-btn-ghost:hover,
html[data-hw-theme='dark'] .hw-chip:hover {
    background: rgba(61, 214, 198, .1);
    color: var(--hw-fg);
    border-color: var(--hw-secondary);
}

html[data-hw-theme='dark'] .hw-chip[aria-pressed='true'] {
    background: color-mix(in srgb, var(--hue, var(--hw-primary)) 30%, #16131f);
    color: var(--hw-fg);
    border-color: var(--hue, var(--hw-primary));
}

html[data-hw-theme='dark'] .hw-prompt-library,
html[data-hw-theme='dark'] .hw-prompt-card,
html[data-hw-theme='dark'] .hw-prompt-formula,
html[data-hw-theme='dark'] .hw-recent-song,
html[data-hw-theme='dark'] .hw-billing-toggle,
html[data-hw-theme='dark'] .hw-mode-toggle {
    background: #100e16;
    border-color: var(--hw-border);
}

html[data-hw-theme='dark'] .hw-idea-composer,
html[data-hw-theme='dark'] .hw-creative-controls {
    background: rgba(61, 214, 198, .035);
}

html[data-hw-theme='dark'] .hw-scenario-action {
    background: linear-gradient(135deg, rgba(22, 19, 31, .98), rgba(32, 26, 42, .9));
    border-color: rgba(139, 92, 246, .32);
    box-shadow: var(--hw-shadow-md);
}

html[data-hw-theme='dark'] .hw-scenario-action h2,
html[data-hw-theme='dark'] .hw-scenario-action p:not(.hw-scenario-action-label) {
    color: var(--hw-fg);
}

html[data-hw-theme='dark'] .hw-scenario-action p:not(.hw-scenario-action-label) {
    color: var(--hw-fg-dim);
}

html[data-hw-theme='dark'] .hw-idea-examples button {
    background: var(--hw-bg-raise);
    color: var(--hw-fg-dim);
}

html[data-hw-theme='dark'] .hw-footer {
    background: #09080d;
    border-top-color: var(--hw-border);
}

html[data-hw-theme='dark'] .hw-notice-dialog {
    background: #16131f;
    color: var(--hw-fg);
}

html[data-hw-theme='dark'] kbd {
    background: #100e16;
    color: var(--hw-paper);
}

@media (max-width: 1024px) {
    .hw-hero-copy {
        transform: none;
    }

    .hw-hero-stage {
        transform: translate(8px, 8px);
    }

    .hw-scenario-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .hw-nav-links .hw-theme-toggle {
        display: none;
    }

    .hw-mobile-nav .hw-theme-toggle {
        width: 100%;
        justify-content: flex-start;
        border-radius: 10px;
        padding-left: 10px;
    }

    .hw-hero-copy,
    .hw-hero-stage {
        transform: none;
    }

    .hw-quick-create {
        width: 100%;
    }

    .hw-quick-create-controls,
    .hw-creative-controls,
    .hw-compact-settings,
    .hw-scenario-grid {
        grid-template-columns: 1fr;
    }

    .hw-quick-create-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .hw-quick-create-footer .hw-check {
        max-width: none;
    }

    .hw-quick-create-footer .hw-btn {
        width: 100%;
    }

    .hw-instrumental-check {
        padding-bottom: 0;
        margin-bottom: 16px;
    }

    .hw-quick-result {
        grid-template-columns: 1fr;
    }

    .hw-quick-result .hw-text-link {
        justify-self: start;
    }
}

/* ---------- landing first-screen repair ----------
   Keep the editorial asymmetry, but reserve the first viewport for the actual
   creation action. The previous narrow copy column pushed Quick start below
   the fold while the artwork occupied most of the visible height. */
@media (min-width: 1025px) {
    /* Landing sections share the same 1160px rail. Long-form copy remains
       readable through an inner measure instead of shrinking the whole page. */
    .hw-page > .hw-how.hw-container {
        width: 100%;
        max-width: 1160px;
    }

    .hw-page > .hw-how.hw-container:not(.hw-pricing-faq) > * {
        max-width: 840px;
    }

    .hw-hero {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 38px;
        align-items: start;
        min-height: 0;
        padding-top: 36px;
        padding-bottom: 46px;
    }

    .hw-hero-copy {
        max-width: 600px;
        padding-left: 18px;
        transform: translateX(-10px);
    }

    .hw-hero h1 {
        max-width: 600px;
        font-size: clamp(48px, 3.9vw, 60px);
        line-height: .99;
        margin-bottom: 13px;
    }

    .hw-hero h1::after {
        margin-top: 13px;
    }

    .hw-lede {
        max-width: 520px;
        margin-bottom: 13px;
        font-size: 14px;
        line-height: 1.55;
    }

    .hw-quick-create {
        width: 100%;
        margin-top: 0;
        padding: 16px;
    }

    .hw-hero-note {
        margin-top: 10px;
    }

    .hw-hero-links {
        margin-top: 9px;
    }

    .hw-hero-proof {
        margin-top: 16px;
        padding-top: 14px;
    }

    .hw-hero-stage {
        min-height: 454px;
        transform: translate(18px, 36px);
    }

    .hw-genre-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .hw-scoreboard {
        left: 0;
        right: 0;
    }

    .hw-take-b {
        margin-left: 74px;
    }
}

/* ---------- landing FAQ cards ---------- */
.hw-pricing-faq {
    padding-top: 82px;
    padding-bottom: 88px;
}

.hw-pricing-faq .hw-section-intro-inline {
    align-items: end;
    gap: 24px;
    margin-bottom: 26px;
}

.hw-pricing-faq .hw-section-intro h2 {
    margin-bottom: 10px;
}

.hw-pricing-faq .hw-section-intro p:not(.hw-eyebrow) {
    max-width: 650px;
    margin: 0;
    color: var(--hw-fg-dim);
    line-height: 1.65;
}

.hw-faq-count {
    flex: 0 0 auto;
    padding: 9px 12px;
    border: 1px solid var(--hw-border);
    border-radius: 999px;
    color: var(--hw-secondary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hw-faq-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.hw-faq-item {
    align-self: start;
    margin: 0;
    padding: 0 18px;
    border: 1px solid var(--hw-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 8px 24px rgba(29, 42, 54, .045);
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.hw-faq-item:hover,
.hw-faq-item[open] {
    border-color: rgba(8, 127, 128, .42);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 12px 30px rgba(29, 42, 54, .08);
}

.hw-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 68px;
    cursor: pointer;
    list-style: none;
    color: var(--hw-fg);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
}

.hw-faq-item summary::-webkit-details-marker {
    display: none;
}

.hw-faq-question {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

.hw-faq-number {
    flex: 0 0 auto;
    padding-top: 1px;
    color: var(--hw-accent);
    font: 800 10px/1.4 'Inter', sans-serif;
    letter-spacing: .12em;
}

.hw-faq-icon {
    position: relative;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border: 1px solid var(--hw-border);
    border-radius: 50%;
}

.hw-faq-icon::before,
.hw-faq-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 1.5px;
    background: var(--hw-secondary);
    transform: translate(-50%, -50%);
    transition: transform 180ms ease;
}

.hw-faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.hw-faq-item[open] .hw-faq-icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.hw-faq-item p {
    margin: 0 0 18px 22px;
    padding-top: 14px;
    border-top: 1px solid var(--hw-border);
    color: var(--hw-fg-dim);
    font-size: 14px;
    line-height: 1.7;
}

html[data-hw-theme='dark'] .hw-faq-item {
    background: rgba(22, 19, 31, .82);
    border-color: var(--hw-border);
    box-shadow: none;
}

html[data-hw-theme='dark'] .hw-faq-item:hover,
html[data-hw-theme='dark'] .hw-faq-item[open] {
    background: rgba(32, 26, 42, .94);
    border-color: rgba(61, 214, 198, .42);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}

/* The guide cards have a later dark base rule for the midnight theme. Keep a
   final light-theme counterpart so the title never lands on a dark surface
   with the paper-theme foreground. */
html[data-hw-theme='light'] .hw-guide-card,
html:not([data-hw-theme]) .hw-guide-card {
    background: rgba(255, 255, 255, .88);
    color: var(--hw-fg);
    border-color: var(--hw-border);
    box-shadow: 0 10px 28px rgba(29, 42, 54, .055);
}

html[data-hw-theme='light'] .hw-guide-card:hover,
html:not([data-hw-theme]) .hw-guide-card:hover {
    background: #fff;
    border-color: rgba(8, 127, 128, .44);
    box-shadow: var(--hw-shadow-glow);
}

@media (max-width: 768px) {
    .hw-pricing-faq {
        padding-top: 58px;
        padding-bottom: 64px;
    }

    .hw-pricing-faq .hw-section-intro-inline {
        display: grid;
        align-items: start;
        gap: 14px;
    }

    .hw-faq-list {
        grid-template-columns: 1fr;
    }

    .hw-faq-item {
        padding: 0 14px;
    }

    .hw-faq-item summary {
        min-height: 62px;
        font-size: 14px;
    }

    .hw-faq-item p {
        margin-left: 21px;
    }
}

/* ---------- unified music editorial pages ----------
   Long-form pages now use the same rail as the landing page. The prose stays
   at a comfortable reading measure, while notation lines and waveform marks
   give every information page the same music-studio identity. */
.hw-page.hw-how,
.hw-page.hw-article,
.hw-page.hw-scenario,
.hw-page.hw-library-page {
    width: 100%;
    max-width: 1160px;
    padding: 72px 28px 96px;
}

.hw-page.hw-how::after,
.hw-page.hw-article::after,
.hw-page.hw-scenario::after,
.hw-page.hw-library-page::after {
    content: '♫';
    position: absolute;
    top: 54px;
    right: 34px;
    z-index: 0;
    color: var(--hw-secondary);
    font: 600 112px/1 'Playfair Display', Georgia, serif;
    opacity: .08;
    transform: rotate(-8deg);
    pointer-events: none;
}

.hw-page.hw-how > h1,
.hw-page.hw-how > .hw-lede,
.hw-page.hw-how > section,
.hw-page.hw-article > h1,
.hw-page.hw-article > time,
.hw-page.hw-article > .hw-article-body,
.hw-page.hw-scenario > .hw-breadcrumbs,
.hw-page.hw-scenario > .hw-eyebrow,
.hw-page.hw-scenario > h1,
.hw-page.hw-scenario > .hw-lede,
.hw-page.hw-scenario > section,
.hw-page.hw-library-page > h1,
.hw-page.hw-library-page > .hw-guide-grid {
    max-width: 840px;
}

.hw-page.hw-how > h1,
.hw-page.hw-article > h1,
.hw-page.hw-scenario > h1,
.hw-page.hw-library-page > h1 {
    position: relative;
    padding-left: 30px;
    font-size: clamp(34px, 4vw, 48px);
}

.hw-page.hw-how > h1::before,
.hw-page.hw-article > h1::before,
.hw-page.hw-scenario > h1::before,
.hw-page.hw-library-page > h1::before {
    content: '';
    position: absolute;
    left: 0;
    top: .18em;
    width: 4px;
    height: 1.9em;
    border-radius: 4px;
    background: linear-gradient(var(--hw-accent), var(--hw-secondary));
}

.hw-page.hw-how > .hw-lede,
.hw-page.hw-scenario > .hw-lede,
.hw-page.hw-article > time {
    display: block;
    margin-top: 14px;
}

.hw-page.hw-how > section:not(.hw-pricing-faq),
.hw-page.hw-scenario > .hw-scenario-section:not(.hw-pricing-faq) {
    position: relative;
    margin-top: 22px;
    padding: 27px 30px 28px 48px;
    border: 1px solid var(--hw-border);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .74), rgba(255, 255, 255, .38));
    box-shadow: 0 12px 30px rgba(29, 42, 54, .045);
}

.hw-page.hw-how > section:not(.hw-pricing-faq)::before,
.hw-page.hw-scenario > .hw-scenario-section:not(.hw-pricing-faq)::before {
    content: '♪';
    position: absolute;
    left: 18px;
    top: 27px;
    color: var(--hw-accent);
    font: 700 19px/1 'Playfair Display', Georgia, serif;
}

.hw-page.hw-how > section:not(.hw-pricing-faq) h2,
.hw-page.hw-scenario > .hw-scenario-section:not(.hw-pricing-faq) h2 {
    color: var(--hw-fg);
    font-size: 24px;
    line-height: 1.2;
}

.hw-page.hw-how > section:not(.hw-pricing-faq) p:last-child,
.hw-page.hw-how > section:not(.hw-pricing-faq) ul:last-child,
.hw-page.hw-scenario > .hw-scenario-section:not(.hw-pricing-faq) p:last-child {
    margin-bottom: 0;
}

.hw-page > .hw-how:not(.hw-pricing-faq) {
    position: relative;
    overflow: hidden;
    margin-top: 28px;
    padding-top: 72px;
    padding-bottom: 78px;
    border-top: 1px solid var(--hw-border);
    border-bottom: 1px solid var(--hw-border);
    background: linear-gradient(90deg, rgba(255, 255, 255, .68), rgba(255, 255, 255, .25)),
    repeating-linear-gradient(to bottom, transparent 0 25px, rgba(23, 33, 43, .10) 26px, transparent 27px);
}

.hw-page > .hw-how:not(.hw-pricing-faq)::before {
    content: '';
    position: absolute;
    top: 92px;
    right: 52px;
    width: 218px;
    height: 104px;
    opacity: .28;
    background: repeating-linear-gradient(to right, transparent 0 7px, var(--hw-secondary) 8px 11px, transparent 12px 18px);
    clip-path: polygon(0 46%, 4% 46%, 4% 58%, 8% 58%, 8% 24%, 12% 24%, 12% 72%, 16% 72%, 16% 10%, 20% 10%, 20% 84%, 24% 84%, 24% 38%, 28% 38%, 28% 67%, 32% 67%, 32% 18%, 36% 18%, 36% 78%, 40% 78%, 40% 32%, 44% 32%, 44% 60%, 48% 60%, 48% 8%, 52% 8%, 52% 86%, 56% 86%, 56% 28%, 60% 28%, 60% 64%, 64% 64%, 64% 14%, 68% 14%, 68% 78%, 72% 78%, 72% 36%, 76% 36%, 76% 57%, 80% 57%, 80% 18%, 84% 18%, 84% 73%, 88% 73%, 88% 30%, 92% 30%, 92% 61%, 96% 61%, 96% 45%, 100% 45%, 100% 100%, 0 100%);
    pointer-events: none;
}

.hw-page > .hw-how:not(.hw-pricing-faq)::after {
    content: '♫';
    position: absolute;
    top: 72px;
    right: 278px;
    color: var(--hw-accent);
    font: 600 48px/1 'Playfair Display', Georgia, serif;
    opacity: .22;
    pointer-events: none;
}

.hw-page > .hw-how:not(.hw-pricing-faq) h2,
.hw-page > .hw-how:not(.hw-pricing-faq) p {
    position: relative;
    z-index: 1;
}

.hw-page.hw-article > .hw-article-body {
    margin-top: 28px;
    padding: 32px 38px;
    border: 1px solid var(--hw-border);
    border-radius: 22px;
    background: rgba(255, 255, 255, .7);
    box-shadow: 0 14px 34px rgba(29, 42, 54, .055);
}

.hw-page.hw-article .hw-article-body h2,
.hw-page.hw-article .hw-article-body h3 {
    position: relative;
    color: var(--hw-fg);
}

.hw-page.hw-article .hw-article-body h2 {
    padding-left: 28px;
    margin-top: 34px;
}

.hw-page.hw-article .hw-article-body h2::before {
    content: '♫';
    position: absolute;
    left: 0;
    top: .05em;
    color: var(--hw-accent);
    font: 600 20px/1 'Playfair Display', Georgia, serif;
}

.hw-page.hw-article .hw-article-body blockquote {
    margin: 24px 0;
    padding: 16px 20px;
    border-left: 3px solid var(--hw-secondary);
    border-radius: 0 12px 12px 0;
    background: rgba(8, 127, 128, .06);
}

.hw-page.hw-scenario > .hw-scenario-action {
    max-width: 100%;
}

.hw-page.hw-scenario > .hw-scenario-section.hw-pricing-faq {
    margin-top: 42px;
    padding: 30px;
    border: 1px solid var(--hw-border);
    border-radius: 22px;
    background: rgba(255, 255, 255, .62);
}

.hw-page.hw-scenario > .hw-scenario-section.hw-pricing-faq dt,
.hw-page.hw-how > .hw-pricing-faq dt {
    position: relative;
    padding: 15px 18px 6px 42px;
    border-top: 1px solid var(--hw-border);
    color: var(--hw-fg);
}

.hw-page.hw-scenario > .hw-scenario-section.hw-pricing-faq dt::before,
.hw-page.hw-how > .hw-pricing-faq dt::before {
    content: '01';
    position: absolute;
    left: 18px;
    top: 16px;
    color: var(--hw-accent);
    font: 800 11px/1 'Inter', sans-serif;
    letter-spacing: .08em;
}

.hw-page.hw-scenario > .hw-scenario-section.hw-pricing-faq dd,
.hw-page.hw-how > .hw-pricing-faq dd {
    margin: 0;
    padding: 0 18px 17px 42px;
}

html[data-hw-theme='dark'] .hw-page.hw-how > section:not(.hw-pricing-faq),
html[data-hw-theme='dark'] .hw-page.hw-scenario > .hw-scenario-section:not(.hw-pricing-faq),
html[data-hw-theme='dark'] .hw-page > .hw-how:not(.hw-pricing-faq),
html[data-hw-theme='dark'] .hw-page.hw-article > .hw-article-body,
html[data-hw-theme='dark'] .hw-page.hw-scenario > .hw-scenario-section.hw-pricing-faq {
    background: linear-gradient(135deg, rgba(22, 19, 31, .9), rgba(16, 14, 22, .72));
    border-color: var(--hw-border);
    box-shadow: 0 16px 38px rgba(0, 0, 0, .18);
}

html[data-hw-theme='dark'] .hw-page > .hw-how:not(.hw-pricing-faq) {
    background: linear-gradient(90deg, rgba(22, 19, 31, .84), rgba(22, 19, 31, .4)),
    repeating-linear-gradient(to bottom, transparent 0 25px, rgba(247, 241, 230, .08) 26px, transparent 27px);
}

@media (max-width: 768px) {
    .hw-page.hw-how,
    .hw-page.hw-article,
    .hw-page.hw-scenario,
    .hw-page.hw-library-page {
        padding: 48px 18px 68px;
    }

    .hw-page.hw-how::after,
    .hw-page.hw-article::after,
    .hw-page.hw-scenario::after,
    .hw-page.hw-library-page::after {
        top: 32px;
        right: 18px;
        font-size: 72px;
    }

    .hw-page.hw-how > section:not(.hw-pricing-faq),
    .hw-page.hw-scenario > .hw-scenario-section:not(.hw-pricing-faq) {
        padding: 24px 18px 24px 42px;
    }

    .hw-page > .hw-how:not(.hw-pricing-faq) {
        padding-top: 54px;
        padding-bottom: 60px;
    }

    .hw-page > .hw-how:not(.hw-pricing-faq)::before {
        right: -24px;
        opacity: .16;
        transform: scale(.78);
        transform-origin: right top;
    }

    .hw-page.hw-article > .hw-article-body {
        padding: 24px 18px;
    }

    .hw-page.hw-scenario > .hw-scenario-section.hw-pricing-faq {
        padding: 22px 16px;
    }
}

/* ---------- shared editorial rail + music knowledge sidebar ----------
   Public guides and intent pages use one readable main column plus a compact
   creative sidebar. The sidebar adds useful context and a clear next action;
   it is deliberately content-led instead of being decorative filler. */
.hw-editorial-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(248px, 280px);
    gap: 32px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.hw-editorial-main {
    min-width: 0;
    max-width: 840px;
}

.hw-page.hw-how .hw-editorial-main > h1,
.hw-page.hw-article .hw-editorial-main > h1,
.hw-page.hw-scenario .hw-editorial-main > h1,
.hw-page.hw-library-page .hw-editorial-main > h1 {
    position: relative;
    padding-left: 30px;
    font-size: clamp(34px, 4vw, 48px);
}

.hw-page.hw-how .hw-editorial-main > h1::before,
.hw-page.hw-article .hw-editorial-main > h1::before,
.hw-page.hw-scenario .hw-editorial-main > h1::before,
.hw-page.hw-library-page .hw-editorial-main > h1::before {
    content: '';
    position: absolute;
    left: 0;
    top: .18em;
    width: 4px;
    height: 1.9em;
    border-radius: 4px;
    background: linear-gradient(var(--hw-accent), var(--hw-secondary));
}

.hw-page.hw-how .hw-editorial-main > .hw-lede,
.hw-page.hw-scenario .hw-editorial-main > .hw-lede,
.hw-page.hw-article .hw-editorial-main > time {
    display: block;
    margin-top: 14px;
}

.hw-page.hw-how .hw-editorial-main > section:not(.hw-pricing-faq),
.hw-page.hw-scenario .hw-editorial-main > .hw-scenario-section:not(.hw-pricing-faq) {
    position: relative;
    margin-top: 22px;
    padding: 27px 30px 28px 48px;
    border: 1px solid var(--hw-border);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .74), rgba(255, 255, 255, .38));
    box-shadow: 0 12px 30px rgba(29, 42, 54, .045);
}

.hw-page.hw-how .hw-editorial-main > section:not(.hw-pricing-faq)::before,
.hw-page.hw-scenario .hw-editorial-main > .hw-scenario-section:not(.hw-pricing-faq)::before {
    content: '♪';
    position: absolute;
    left: 18px;
    top: 27px;
    color: var(--hw-accent);
    font: 700 19px/1 'Playfair Display', Georgia, serif;
}

.hw-page.hw-how .hw-editorial-main > section:not(.hw-pricing-faq) h2,
.hw-page.hw-scenario .hw-editorial-main > .hw-scenario-section:not(.hw-pricing-faq) h2 {
    color: var(--hw-fg);
    font-size: 24px;
    line-height: 1.2;
}

.hw-page.hw-how .hw-editorial-main > section:not(.hw-pricing-faq) p:last-child,
.hw-page.hw-how .hw-editorial-main > section:not(.hw-pricing-faq) ul:last-child,
.hw-page.hw-scenario .hw-editorial-main > .hw-scenario-section:not(.hw-pricing-faq) p:last-child {
    margin-bottom: 0;
}

.hw-page.hw-scenario .hw-editorial-main > .hw-scenario-action {
    max-width: none;
}

.hw-page.hw-scenario .hw-editorial-main > .hw-scenario-section.hw-pricing-faq,
.hw-page.hw-how .hw-editorial-main > .hw-pricing-faq {
    margin-top: 42px;
    padding: 30px;
    border: 1px solid var(--hw-border);
    border-radius: 22px;
    background: rgba(255, 255, 255, .62);
}

.hw-page.hw-scenario .hw-editorial-main > .hw-scenario-section.hw-pricing-faq dl,
.hw-page.hw-how .hw-editorial-main > .hw-pricing-faq dl,
.hw-page.hw-pricing .hw-pricing-faq dl {
    counter-reset: hw-faq;
}

.hw-page.hw-scenario .hw-editorial-main > .hw-scenario-section.hw-pricing-faq dt,
.hw-page.hw-how .hw-editorial-main > .hw-pricing-faq dt,
.hw-page.hw-pricing .hw-pricing-faq dt {
    position: relative;
    padding: 15px 18px 6px 42px;
    border-top: 1px solid var(--hw-border);
    color: var(--hw-fg);
    counter-increment: hw-faq;
}

.hw-page.hw-scenario .hw-editorial-main > .hw-scenario-section.hw-pricing-faq dt::before,
.hw-page.hw-how .hw-editorial-main > .hw-pricing-faq dt::before,
.hw-page.hw-pricing .hw-pricing-faq dt::before {
    content: counter(hw-faq, decimal-leading-zero);
    position: absolute;
    left: 18px;
    top: 16px;
    color: var(--hw-accent);
    font: 800 11px/1 'Inter', sans-serif;
    letter-spacing: .08em;
}

.hw-page.hw-scenario .hw-editorial-main > .hw-scenario-section.hw-pricing-faq dd,
.hw-page.hw-how .hw-editorial-main > .hw-pricing-faq dd,
.hw-page.hw-pricing .hw-pricing-faq dd {
    margin: 0;
    padding: 0 18px 17px 42px;
}

.hw-page.hw-article .hw-editorial-main > .hw-article-body {
    margin-top: 28px;
    padding: 32px 38px;
    border: 1px solid var(--hw-border);
    border-radius: 22px;
    background: rgba(255, 255, 255, .7);
    box-shadow: 0 14px 34px rgba(29, 42, 54, .055);
}

.hw-page.hw-article .hw-editorial-main .hw-article-body h2,
.hw-page.hw-article .hw-editorial-main .hw-article-body h3 {
    position: relative;
    color: var(--hw-fg);
}

.hw-page.hw-article .hw-editorial-main .hw-article-body h2 {
    padding-left: 28px;
    margin-top: 34px;
}

.hw-page.hw-article .hw-editorial-main .hw-article-body h2::before {
    content: '♫';
    position: absolute;
    left: 0;
    top: .05em;
    color: var(--hw-accent);
    font: 600 20px/1 'Playfair Display', Georgia, serif;
}

.hw-page.hw-article .hw-editorial-main .hw-article-body blockquote {
    margin: 24px 0;
    padding: 16px 20px;
    border-left: 3px solid var(--hw-secondary);
    border-radius: 0 12px 12px 0;
    background: rgba(8, 127, 128, .06);
}

.hw-music-aside {
    position: sticky;
    top: 104px;
    overflow: hidden;
    padding: 14px;
    border: 1px solid var(--hw-border);
    border-radius: 24px;
    background: linear-gradient(155deg, rgba(255, 255, 255, .9), rgba(248, 250, 252, .68));
    box-shadow: 0 18px 40px rgba(29, 42, 54, .08);
}

.hw-music-aside-art {
    position: relative;
    min-height: 168px;
    overflow: hidden;
    padding: 18px;
    border-radius: 17px;
    background: radial-gradient(circle at 78% 22%, rgba(246, 196, 83, .3), transparent 28%),
    linear-gradient(145deg, #1b1730, #262142 62%, #154a50);
}

.hw-music-aside-note {
    position: absolute;
    right: 20px;
    top: 12px;
    width: 42px;
    height: 64px;
    fill: rgba(247, 241, 230, .72);
}

.hw-music-aside-staff {
    position: absolute;
    inset: 42px 0 auto;
    height: 48px;
    opacity: .38;
    background: repeating-linear-gradient(to bottom, transparent 0 8px, rgba(247, 241, 230, .7) 9px 10px, transparent 11px 17px);
}

.hw-music-aside-wave {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 38px;
    display: flex;
    align-items: center;
    gap: 4px;
    height: 38px;
}

.hw-music-aside-wave i {
    flex: 1 1 0;
    min-width: 3px;
    border-radius: 999px;
    background: linear-gradient(to top, #7c5cf0, #52d8c6);
    opacity: .9;
}

.hw-music-aside-wave i:nth-child(1), .hw-music-aside-wave i:nth-child(8), .hw-music-aside-wave i:nth-child(15) {
    height: 18%;
}

.hw-music-aside-wave i:nth-child(2), .hw-music-aside-wave i:nth-child(6), .hw-music-aside-wave i:nth-child(11), .hw-music-aside-wave i:nth-child(16) {
    height: 52%;
}

.hw-music-aside-wave i:nth-child(3), .hw-music-aside-wave i:nth-child(9), .hw-music-aside-wave i:nth-child(13) {
    height: 82%;
}

.hw-music-aside-wave i:nth-child(4), .hw-music-aside-wave i:nth-child(12) {
    height: 38%;
}

.hw-music-aside-wave i:nth-child(5), .hw-music-aside-wave i:nth-child(7), .hw-music-aside-wave i:nth-child(10), .hw-music-aside-wave i:nth-child(14) {
    height: 64%;
}

.hw-music-aside-time {
    position: absolute;
    left: 18px;
    bottom: 16px;
    color: rgba(247, 241, 230, .72);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hw-music-aside-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 18px 0 9px;
    color: var(--hw-secondary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hw-music-aside-label > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hw-accent);
    box-shadow: 0 0 0 4px rgba(184, 119, 19, .12);
}

.hw-music-aside h2 {
    margin: 0;
    color: var(--hw-fg);
    font-size: 25px;
    line-height: 1.08;
}

.hw-music-aside-copy {
    margin: 12px 0 0;
    color: var(--hw-fg-dim);
    font-size: 13px;
    line-height: 1.62;
}

.hw-music-aside-facts {
    display: grid;
    gap: 8px;
    margin: 18px 0 0;
    padding-top: 15px;
    border-top: 1px solid var(--hw-border);
}

.hw-music-aside-facts > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.hw-music-aside-facts dt {
    color: var(--hw-fg-faint);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hw-music-aside-facts dd {
    margin: 0;
    color: var(--hw-fg);
    font-size: 12px;
    font-weight: 700;
    text-align: right;
}

.hw-music-aside-tip {
    margin-top: 18px;
    padding: 13px 14px;
    border-radius: 14px;
    background: rgba(8, 127, 128, .07);
}

.hw-music-aside-tip > span {
    color: var(--hw-accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.hw-music-aside-tip p {
    margin: 7px 0 0;
    color: var(--hw-fg-dim);
    font-size: 12px;
    line-height: 1.55;
}

.hw-music-aside-cta {
    display: flex;
    width: 100%;
    min-height: 44px;
    margin-top: 14px;
    justify-content: center;
}

html[data-hw-theme='dark'] .hw-music-aside {
    background: linear-gradient(155deg, rgba(28, 24, 39, .96), rgba(17, 15, 25, .9));
    box-shadow: 0 18px 40px rgba(0, 0, 0, .2);
}

html[data-hw-theme='dark'] .hw-music-aside-tip {
    background: rgba(61, 214, 198, .09);
}

html[data-hw-theme='dark'] .hw-page.hw-how .hw-editorial-main > section:not(.hw-pricing-faq),
html[data-hw-theme='dark'] .hw-page.hw-scenario .hw-editorial-main > .hw-scenario-section:not(.hw-pricing-faq),
html[data-hw-theme='dark'] .hw-page.hw-how .hw-editorial-main > .hw-pricing-faq,
html[data-hw-theme='dark'] .hw-page.hw-scenario .hw-editorial-main > .hw-scenario-section.hw-pricing-faq,
html[data-hw-theme='dark'] .hw-page.hw-article .hw-editorial-main > .hw-article-body {
    background: linear-gradient(145deg, rgba(27, 23, 39, .96), rgba(17, 15, 25, .9));
    border-color: rgba(247, 241, 230, .16);
    box-shadow: 0 16px 38px rgba(0, 0, 0, .2);
}

html[data-hw-theme='dark'] .hw-page.hw-article .hw-editorial-main .hw-article-body blockquote {
    background: rgba(61, 214, 198, .09);
}

@media (max-width: 900px) {
    .hw-editorial-layout {
        grid-template-columns: minmax(0, 1fr) 248px;
        gap: 22px;
    }
}

@media (max-width: 768px) {
    .hw-editorial-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hw-editorial-main {
        max-width: none;
    }

    .hw-music-aside {
        position: static;
        max-width: none;
    }

    .hw-page.hw-how .hw-editorial-main > section:not(.hw-pricing-faq),
    .hw-page.hw-scenario .hw-editorial-main > .hw-scenario-section:not(.hw-pricing-faq) {
        padding: 24px 18px 24px 42px;
    }

    .hw-page.hw-scenario .hw-editorial-main > .hw-scenario-section.hw-pricing-faq,
    .hw-page.hw-how .hw-editorial-main > .hw-pricing-faq {
        padding: 22px 16px;
    }

    .hw-page.hw-article .hw-editorial-main > .hw-article-body {
        padding: 24px 18px;
    }
}

/* The public rail is intentionally wider than a reading column. The landing
   page and music aside need room to breathe, while the editorial main column
   remains constrained by its own readable measure. The studio keeps its
   separate 1480px workspace rail above. */
@media (min-width: 769px) {
    body.tool-hit-weave .hw-page.hw-container {
        padding-left: max(28px, calc((100vw - 1280px) / 2 + 28px));
        padding-right: max(28px, calc((100vw - 1280px) / 2 + 28px));
    }

    body.tool-hit-weave .hw-page.hw-container.hw-how {
        padding-left: max(28px, calc((100vw - 1280px) / 2 + 28px));
        padding-right: max(28px, calc((100vw - 1280px) / 2 + 28px));
    }

    .hw-container,
    .hw-nav,
    .hw-footer-inner,
    .hw-footer-bottom,
    .hw-page.hw-how,
    .hw-page.hw-article,
    .hw-page.hw-scenario,
    .hw-page.hw-library-page,
    .hw-page > .hw-how.hw-container {
        max-width: 1280px;
    }

    .hw-editorial-layout {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 300px);
        gap: 36px;
    }
}

/* ---------- Studio desk + virtual piano ---------- */
.hw-studio-page {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-top: 56px;
    background: radial-gradient(circle at 80% 15%, rgba(105, 69, 232, .08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, .34), transparent 42%);
}

.hw-studio-page::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 120px 0 auto;
    height: 290px;
    opacity: .42;
    pointer-events: none;
    background: repeating-linear-gradient(to bottom, transparent 0 41px, rgba(8, 127, 128, .08) 42px 43px, transparent 44px 83px);
    mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.hw-studio {
    position: relative;
    z-index: 1;
    width: min(1480px, calc(100vw - 56px));
    max-width: 1480px;
    grid-template-columns: 190px minmax(0, 1.12fr) minmax(390px, .88fr);
    gap: 22px;
}

.hw-workspace-sidebar {
    min-height: 660px;
    padding: 18px 12px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .83);
    box-shadow: 0 18px 42px rgba(29, 42, 54, .08);
    backdrop-filter: blur(14px);
}

.hw-sidebar-nav {
    gap: 7px;
}

.hw-sidebar-nav a,
.hw-sidebar-nav button {
    min-height: 48px;
    padding: 11px 12px;
    border-radius: 12px;
    color: var(--hw-fg-dim);
    font-size: 12px;
}

.hw-sidebar-nav a.is-active {
    color: var(--hw-fg);
    border-color: rgba(8, 127, 128, .24);
    background: linear-gradient(100deg, rgba(8, 127, 128, .12), rgba(105, 69, 232, .06));
    box-shadow: inset 3px 0 0 var(--hw-secondary), 0 8px 20px rgba(8, 127, 128, .08);
}

.hw-sidebar-note {
    margin: 0 3px;
    padding: 16px 10px 5px;
}

.hw-panel {
    border-radius: 22px;
    border-color: rgba(23, 33, 43, .13);
    background: rgba(255, 255, 255, .89);
    box-shadow: 0 22px 56px rgba(29, 42, 54, .1);
    backdrop-filter: blur(14px);
}

.hw-panel-create {
    padding: 32px;
}

.hw-studio-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.hw-studio-heading-row .hw-eyebrow {
    margin: 0;
}

.hw-studio-live-note {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--hw-fg-faint);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.hw-studio-live-note span {
    color: var(--hw-accent);
    font-size: 9px;
}

.hw-panel h1,
.hw-panel h2 {
    letter-spacing: -.025em;
}

.hw-panel h1 {
    font-size: clamp(30px, 2.3vw, 42px);
    line-height: 1.04;
}

.hw-panel-sub {
    max-width: 600px;
    margin-bottom: 25px;
    font-size: 14px;
}

.hw-studio-intent {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin: 0 0 19px;
}

.hw-studio-intent span {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 8px;
    min-height: 61px;
    padding: 10px 12px;
    border: 1px solid rgba(8, 127, 128, .16);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(8, 127, 128, .07), rgba(105, 69, 232, .045));
    color: var(--hw-fg-dim);
    font-size: 11px;
    line-height: 1.25;
}

.hw-studio-intent i {
    grid-row: span 2;
    color: var(--hw-accent);
    font: 800 10px/1 'Inter', sans-serif;
    letter-spacing: .08em;
}

.hw-studio-intent b {
    color: var(--hw-secondary);
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.hw-studio-intent small {
    color: var(--hw-fg-dim);
    font-size: 11px;
}

.hw-mode-toggle {
    margin-bottom: 20px;
    border-radius: 14px;
    background: #f3f5f7;
}

.hw-mode-btn {
    min-height: 48px;
}

.hw-prompt-library {
    margin-bottom: 19px;
    border-color: rgba(105, 69, 232, .2);
    background: rgba(105, 69, 232, .035);
}

.hw-idea-composer {
    padding: 17px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(8, 127, 128, .06), rgba(105, 69, 232, .035));
}

.hw-idea-composer textarea {
    min-height: 104px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .9);
}

.hw-creative-controls {
    padding: 16px 17px 2px;
    border-radius: 16px;
    background: rgba(8, 127, 128, .035);
}

.hw-compact-settings {
    gap: 14px;
}

.hw-submit-row {
    margin-top: 5px;
    padding-top: 17px;
    border-top: 1px solid var(--hw-border);
}

.hw-submit-row .hw-btn {
    min-width: 208px;
}

/* Compact field guidance: keep the form scan-friendly while retaining hover,
   keyboard focus, and tap access to the full explanation. */
.hw-field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 44px;
}

.hw-field-label-row > label {
    margin-bottom: 0;
}

.hw-info-tip {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
}

.hw-info-tip-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 8px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--hw-fg-faint);
    cursor: help;
}

.hw-info-tip-trigger svg {
    width: 18px;
    height: 18px;
}

.hw-info-tip-trigger:hover,
.hw-info-tip-trigger:focus-visible,
.hw-info-tip.is-open .hw-info-tip-trigger {
    color: var(--hw-secondary);
    background: rgba(8, 127, 128, .08);
    outline: none;
}

.hw-info-tip-popover {
    position: absolute;
    z-index: 20;
    top: calc(100% - 2px);
    right: 0;
    width: min(300px, calc(100vw - 48px));
    padding: 11px 13px;
    border: 1px solid var(--hw-border);
    border-radius: 10px;
    background: var(--hw-bg-raise);
    box-shadow: 0 12px 30px rgba(28, 31, 44, .16);
    color: var(--hw-fg-dim);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.hw-info-tip:hover .hw-info-tip-popover,
.hw-info-tip:focus-within .hw-info-tip-popover,
.hw-info-tip.is-open .hw-info-tip-popover {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateY(0);
}

html[data-hw-theme='dark'] .hw-info-tip-trigger:hover,
html[data-hw-theme='dark'] .hw-info-tip-trigger:focus-visible,
html[data-hw-theme='dark'] .hw-info-tip.is-open .hw-info-tip-trigger {
    background: rgba(61, 214, 198, .1);
}

@media (prefers-reduced-motion: reduce) {
    .hw-info-tip-popover {
        transition: none;
    }
}

.hw-panel-stage {
    min-height: 660px;
    padding: 30px;
    background: radial-gradient(circle at 50% 66%, rgba(105, 69, 232, .08), transparent 38%),
    rgba(255, 255, 255, .89);
}

.hw-stage-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--hw-secondary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hw-stage-label span {
    color: var(--hw-accent);
    font-size: 18px;
    line-height: 1;
}

.hw-panel-stage h2 {
    font-size: clamp(27px, 2vw, 36px);
    line-height: 1.05;
}

.hw-stage-intro {
    max-width: 440px;
    margin-bottom: 22px;
    font-size: 13px;
}

.hw-stage-empty {
    min-height: 490px;
    padding: 20px 0 28px;
    align-content: center;
}

.hw-stage-empty::before {
    display: none;
}

.hw-stage-record-card {
    width: min(100%, 410px);
    padding: 14px 16px 11px;
    border: 1px solid rgba(23, 33, 43, .14);
    border-radius: 16px;
    background: linear-gradient(145deg, #19152a, #24203a);
    box-shadow: 0 16px 34px rgba(23, 33, 43, .16);
    text-align: left;
}

.hw-stage-record-card > span,
.hw-stage-record-card > small {
    color: rgba(247, 241, 230, .6);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.hw-stage-record-card > small {
    display: block;
    margin-top: 8px;
    color: rgba(247, 241, 230, .48);
    letter-spacing: .05em;
}

.hw-stage-record-wave {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 45px;
    margin-top: 11px;
}

.hw-stage-record-wave i {
    flex: 1;
    height: var(--wave-height);
    min-width: 3px;
    border-radius: 999px;
    background: linear-gradient(to top, #7452e8, #4fd4c5);
}

.hw-stage-empty-copy {
    max-width: 390px;
}

.hw-stage-empty-copy strong {
    font-size: 18px;
}

.hw-stage-empty-copy p {
    font-size: 13px;
}

html[data-hw-theme='dark'] .hw-studio-page {
    background: radial-gradient(circle at 80% 15%, rgba(139, 92, 246, .12), transparent 28%),
    linear-gradient(180deg, rgba(22, 19, 31, .3), transparent 42%);
}

html[data-hw-theme='dark'] .hw-workspace-sidebar,
html[data-hw-theme='dark'] .hw-panel {
    border-color: rgba(247, 241, 230, .14);
    background: rgba(22, 19, 31, .9);
    box-shadow: 0 22px 56px rgba(0, 0, 0, .25);
}

html[data-hw-theme='dark'] .hw-studio-intent,
html[data-hw-theme='dark'] .hw-mode-toggle,
html[data-hw-theme='dark'] .hw-idea-composer,
html[data-hw-theme='dark'] .hw-creative-controls {
    background-color: rgba(16, 14, 22, .72);
}

html[data-hw-theme='dark'] .hw-studio-intent span,
html[data-hw-theme='dark'] .hw-panel-stage {
    background: linear-gradient(145deg, rgba(61, 214, 198, .07), rgba(139, 92, 246, .06));
}

html[data-hw-theme='dark'] .hw-idea-composer textarea {
    background: #100e16;
}

@media (min-width: 1181px) {
    .hw-studio .hw-panel-create,
    .hw-studio .hw-panel-stage {
        min-width: 0;
    }

    .hw-studio .hw-panel-stage {
        grid-column: auto;
    }
}

@media (max-width: 1180px) and (min-width: 769px) {
    .hw-studio {
        grid-template-columns: 184px minmax(0, 1fr);
    }

    .hw-panel-stage {
        grid-column: 2;
        min-height: 540px;
    }
}

@media (max-width: 768px) {
    .hw-studio-page {
        padding-top: 30px;
    }

    .hw-studio {
        width: auto;
        grid-template-columns: 1fr;
    }

    .hw-panel-create,
    .hw-panel-stage {
        padding: 22px 18px;
    }

    .hw-studio-heading-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .hw-studio-intent {
        grid-template-columns: 1fr;
    }

    .hw-panel-stage {
        grid-column: auto;
        min-height: 0;
    }

    .hw-stage-empty {
        min-height: 360px;
    }

    .hw-submit-row {
        align-items: stretch;
        flex-direction: column;
    }

    .hw-submit-row .hw-btn {
        width: 100%;
    }
}

/* Piano page: a focused tool surface with an intentionally scrollable
   keyboard region on small screens, so the document itself never overflows. */
.hw-piano-page {
    padding-top: 48px;
    padding-bottom: 92px;
}

.hw-piano-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
    gap: 40px;
    align-items: center;
    margin: 20px 0 30px;
}

.hw-piano-hero h1 {
    max-width: 720px;
    margin: 0 0 18px;
    color: var(--hw-fg);
    font: 500 clamp(42px, 5.2vw, 76px)/.98 'Playfair Display', Georgia, serif;
    letter-spacing: -.045em;
}

.hw-piano-hero .hw-lede {
    max-width: 680px;
    margin: 0;
}

.hw-piano-hero-art {
    position: relative;
    min-height: 248px;
    overflow: hidden;
    border: 1px solid rgba(23, 33, 43, .14);
    border-radius: 24px;
    background: radial-gradient(circle at 75% 20%, rgba(246, 196, 83, .32), transparent 23%),
    linear-gradient(145deg, #201942, #242b4a 56%, #0f6a6a);
    box-shadow: 0 22px 48px rgba(29, 42, 54, .16);
}

.hw-piano-art-note {
    position: absolute;
    z-index: 1;
    color: rgba(247, 241, 230, .8);
    font: 78px/.8 'Playfair Display', Georgia, serif;
}

.hw-piano-art-note-a {
    top: 20px;
    right: 40px;
    transform: rotate(10deg);
}

.hw-piano-art-note-b {
    top: 74px;
    right: 118px;
    font-size: 52px;
    transform: rotate(-10deg);
}

.hw-piano-art-staff {
    position: absolute;
    inset: 74px 0 auto;
    height: 74px;
    opacity: .33;
    background: repeating-linear-gradient(to bottom, transparent 0 12px, rgba(247, 241, 230, .75) 13px 14px, transparent 15px 25px);
}

.hw-piano-art-wave {
    position: absolute;
    right: 28px;
    bottom: 40px;
    left: 28px;
    display: flex;
    align-items: center;
    gap: 5px;
    height: 58px;
}

.hw-piano-art-wave i {
    flex: 1;
    height: var(--wave-height);
    border-radius: 99px;
    background: linear-gradient(to top, #8062f2, #5ce0cc);
}

.hw-piano-art-label {
    position: absolute;
    bottom: 18px;
    left: 28px;
    color: rgba(247, 241, 230, .68);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hw-piano-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 22px;
    align-items: start;
}

.hw-piano-card,
.hw-piano-tip-card,
.hw-piano-notes {
    border: 1px solid var(--hw-border);
    border-radius: 22px;
    background: rgba(255, 255, 255, .9);
    box-shadow: var(--hw-shadow-md);
}

.hw-piano-card {
    min-width: 0;
    padding: 26px;
}

.hw-piano-card-head,
.hw-piano-toolbar,
.hw-piano-active-note,
.hw-piano-help-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.hw-section-label {
    margin: 0 0 7px;
    color: var(--hw-secondary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.hw-piano-card h2,
.hw-piano-tip-card h2,
.hw-piano-notes h2 {
    margin: 0;
    color: var(--hw-fg);
    font: 500 30px/1.08 'Playfair Display', Georgia, serif;
    letter-spacing: -.025em;
}

.hw-piano-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    border: 1px solid rgba(8, 127, 128, .2);
    border-radius: 999px;
    color: var(--hw-secondary);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.hw-piano-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hw-secondary);
    box-shadow: 0 0 0 4px rgba(8, 127, 128, .1);
}

.hw-piano-toolbar {
    flex-wrap: wrap;
    margin-top: 23px;
    padding: 12px;
    border: 1px solid var(--hw-border);
    border-radius: 15px;
    background: rgba(8, 127, 128, .035);
}

.hw-piano-toolbar-group,
.hw-piano-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hw-piano-control {
    min-width: 44px;
    min-height: 44px;
    padding: 6px 12px;
    font-size: 20px;
}

.hw-piano-octave {
    min-width: 86px;
    color: var(--hw-fg-dim);
    font-size: 11px;
    font-weight: 800;
    text-align: center;
}

.hw-piano-select {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--hw-fg-dim);
    font-size: 11px;
    font-weight: 800;
}

.hw-piano-select select {
    min-height: 42px;
    padding: 8px 30px 8px 10px;
    border: 1px solid var(--hw-border);
    border-radius: 10px;
    background: var(--hw-bg-raise);
    color: var(--hw-fg);
    font: 600 12px 'Inter', sans-serif;
}

.hw-piano-actions .hw-btn {
    min-height: 42px;
    padding: 9px 12px;
}

.hw-piano-actions .hw-btn.is-recording {
    border-color: var(--hw-danger);
    color: var(--hw-danger);
    background: rgba(189, 64, 88, .08);
}

.hw-text-button {
    min-height: 42px;
    padding: 8px 4px;
    border: 0;
    background: transparent;
    color: var(--hw-secondary);
    font: 700 12px 'Inter', sans-serif;
    cursor: pointer;
}

.hw-text-button:disabled,
.hw-piano-actions .hw-btn:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.hw-piano-active-note {
    justify-content: flex-start;
    min-height: 82px;
    margin: 18px 0 12px;
    padding: 13px 16px;
    border-radius: 15px;
    background: linear-gradient(100deg, rgba(105, 69, 232, .08), rgba(8, 127, 128, .06));
}

.hw-piano-active-note-name {
    color: var(--hw-fg);
    font: 500 30px/1 'Playfair Display', Georgia, serif;
}

.hw-piano-active-note > span:nth-child(2) {
    color: var(--hw-fg-faint);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.hw-piano-recording-indicator {
    margin-left: auto;
    color: var(--hw-danger);
    font-size: 11px;
    font-weight: 800;
}

.hw-piano-scroll {
    overflow-x: auto;
    padding: 4px 2px 12px;
    border-radius: 16px;
    scrollbar-color: var(--hw-secondary) transparent;
    overscroll-behavior-x: contain;
}

.hw-piano-keyboard {
    position: relative;
    min-width: 760px;
    height: 280px;
    padding: 0 1px;
}

.hw-piano-whites {
    display: grid;
    grid-template-columns: repeat(15, minmax(0, 1fr));
    height: 100%;
}

.hw-piano-key {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 3px 15px;
    cursor: pointer;
    touch-action: none;
    user-select: none;
    transition: transform 100ms ease, background 100ms ease, box-shadow 100ms ease;
}

.hw-piano-white {
    z-index: 1;
    min-width: 0;
    border: 1px solid rgba(23, 33, 43, .22);
    border-radius: 0 0 11px 11px;
    background: linear-gradient(180deg, #fff, #e8edf0);
    color: var(--hw-fg-dim);
    box-shadow: inset 0 -5px 0 rgba(23, 33, 43, .05), 0 5px 0 rgba(23, 33, 43, .08);
}

.hw-piano-black {
    position: absolute;
    z-index: 3;
    top: 0;
    left: calc(var(--black-left) - 2.6%);
    width: 5.2%;
    height: 175px;
    border: 1px solid #08070c;
    border-radius: 0 0 9px 9px;
    background: linear-gradient(180deg, #353044, #0d0b12 78%);
    color: rgba(247, 241, 230, .75);
    box-shadow: 0 7px 9px rgba(0, 0, 0, .24), inset 0 -4px 0 rgba(255, 255, 255, .08);
}

/* The shared public shell gives every button a stacking context. Black keys
   are the one intentional exception: they must sit above the white key row. */
.hw-piano-page .hw-piano-black {
    position: absolute;
    z-index: 3;
}

.hw-piano-key-note {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .02em;
    pointer-events: none;
}

.hw-piano-key kbd {
    position: absolute;
    top: 12px;
    left: 50%;
    min-width: 20px;
    padding: 3px 4px;
    transform: translateX(-50%);
    border: 1px solid currentColor;
    border-radius: 5px;
    background: transparent;
    color: inherit;
    font-size: 9px;
    pointer-events: none;
}

.hw-piano-black .hw-piano-key-note {
    display: none;
}

.hw-piano-key.is-playing {
    transform: translateY(4px);
}

.hw-piano-white.is-playing {
    background: linear-gradient(180deg, #e9fffb, #b7e5dd);
    box-shadow: inset 0 -5px 0 rgba(8, 127, 128, .2), 0 2px 0 rgba(8, 127, 128, .2);
}

.hw-piano-black.is-playing {
    background: linear-gradient(180deg, #8264f0, #35216f 78%);
}

.hw-piano-help-row {
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 13px;
    color: var(--hw-fg-faint);
    font-size: 11px;
}

.hw-piano-help-row span + span::before {
    content: '·';
    margin: 0 9px;
    color: var(--hw-accent);
}

.hw-piano-help-row kbd {
    margin: 0 2px;
    padding: 2px 5px;
    border: 1px solid var(--hw-border);
    border-radius: 5px;
    background: var(--hw-bg-raise);
    color: var(--hw-fg-dim);
    font-size: 9px;
}

.hw-piano-side {
    display: grid;
    gap: 18px;
}

.hw-piano-tip-card {
    padding: 24px;
}

.hw-piano-tip-card p:not(.hw-section-label) {
    margin: 14px 0 0;
    color: var(--hw-fg-dim);
    font-size: 13px;
    line-height: 1.7;
}

.hw-piano-scale {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-top: 18px;
}

.hw-piano-scale span {
    padding: 9px 4px;
    border: 1px solid rgba(8, 127, 128, .17);
    border-radius: 8px;
    color: var(--hw-secondary);
    font-size: 11px;
    font-weight: 800;
    text-align: center;
}

.hw-piano-tip-card-dark {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #201942, #18152a);
}

.hw-piano-tip-card-dark h2,
.hw-piano-tip-card-dark p:not(.hw-section-label) {
    color: #f7f1e6;
}

.hw-piano-tip-card-dark .hw-section-label {
    color: #5ce0cc;
}

.hw-piano-tip-card-dark .hw-btn {
    width: 100%;
    margin-top: 20px;
}

.hw-piano-tip-icon {
    position: absolute;
    top: 4px;
    right: 22px;
    color: rgba(246, 196, 83, .68);
    font: 74px/1 'Playfair Display', Georgia, serif;
    transform: rotate(12deg);
}

.hw-piano-notes {
    margin-top: 22px;
    padding: 28px;
}

.hw-piano-note-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.hw-piano-note-grid article {
    padding: 18px;
    border: 1px solid var(--hw-border);
    border-radius: 15px;
    background: rgba(8, 127, 128, .035);
}

.hw-piano-note-grid article > span {
    color: var(--hw-accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
}

.hw-piano-note-grid h3 {
    margin: 12px 0 7px;
    color: var(--hw-fg);
    font-size: 15px;
}

.hw-piano-note-grid p {
    margin: 0;
    color: var(--hw-fg-dim);
    font-size: 12px;
    line-height: 1.65;
}

html[data-hw-theme='dark'] .hw-piano-card,
html[data-hw-theme='dark'] .hw-piano-tip-card,
html[data-hw-theme='dark'] .hw-piano-notes {
    border-color: var(--hw-border);
    background: rgba(22, 19, 31, .92);
}

html[data-hw-theme='dark'] .hw-piano-toolbar,
html[data-hw-theme='dark'] .hw-piano-note-grid article {
    background: rgba(61, 214, 198, .045);
}

html[data-hw-theme='dark'] .hw-piano-select select,
html[data-hw-theme='dark'] .hw-piano-help-row kbd {
    background: #100e16;
    color: var(--hw-fg);
}

@media (max-width: 980px) {
    .hw-piano-hero {
        grid-template-columns: 1fr;
    }

    .hw-piano-hero-art {
        min-height: 190px;
    }

    .hw-piano-layout {
        grid-template-columns: 1fr;
    }

    .hw-piano-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .hw-piano-page {
        padding-top: 28px;
    }

    .hw-piano-hero h1 {
        font-size: 45px;
    }

    .hw-piano-card,
    .hw-piano-tip-card,
    .hw-piano-notes {
        padding: 19px;
        border-radius: 17px;
    }

    .hw-piano-card-head,
    .hw-piano-active-note {
        align-items: flex-start;
        flex-direction: column;
    }

    .hw-piano-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .hw-piano-toolbar-group,
    .hw-piano-select,
    .hw-piano-actions {
        justify-content: space-between;
    }

    .hw-piano-select select {
        flex: 1;
    }

    .hw-piano-actions .hw-btn {
        flex: 1;
    }

    .hw-piano-recording-indicator {
        margin-left: 0;
    }

    .hw-piano-note-grid,
    .hw-piano-side {
        grid-template-columns: 1fr;
    }
}

/* ---------- Studio workspace + piano learning surface ---------- */
body.tool-hit-weave .hw-page.hw-container.hw-studio {
    width: 100%;
    max-width: none;
    padding-left: clamp(16px, 3vw, 48px);
    padding-right: clamp(16px, 3vw, 48px);
}

.hw-studio {
    width: 100%;
    max-width: none;
    grid-template-columns: minmax(184px, .2fr) minmax(0, 1.12fr) minmax(360px, .88fr);
    gap: clamp(16px, 1.8vw, 26px);
}

.hw-panel-create,
.hw-panel-stage {
    min-width: 0;
}

.hw-creative-controls-disclosure {
    margin: 0 0 16px;
    border: 1px solid var(--hw-border);
    border-radius: 16px;
    background: rgba(8, 127, 128, .025);
    overflow: hidden;
}

.hw-creative-controls-disclosure > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 64px;
    padding: 12px 16px;
    color: var(--hw-fg);
    cursor: pointer;
    list-style: none;
}

.hw-creative-controls-disclosure > summary::-webkit-details-marker {
    display: none;
}

.hw-creative-controls-disclosure > summary::after {
    content: '+';
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border: 1px solid var(--hw-border);
    border-radius: 50%;
    color: var(--hw-secondary);
    font-size: 21px;
    line-height: 25px;
    text-align: center;
}

.hw-creative-controls-disclosure[open] > summary {
    border-bottom: 1px solid var(--hw-border);
    background: rgba(8, 127, 128, .045);
}

.hw-creative-controls-disclosure[open] > summary::after {
    content: '−';
}

.hw-creative-controls-disclosure > summary > span {
    display: grid;
    gap: 4px;
}

.hw-creative-controls-disclosure > summary b {
    font-size: 13px;
}

.hw-creative-controls-disclosure > summary small,
.hw-creative-controls-disclosure > summary em {
    color: var(--hw-fg-faint);
    font-size: 11px;
    font-style: normal;
}

.hw-creative-controls-disclosure > summary em {
    margin-left: auto;
}

.hw-creative-controls-disclosure .hw-creative-controls {
    border: 0;
    border-radius: 0;
    background: transparent;
}

html[data-hw-theme='dark'] .hw-creative-controls-disclosure {
    background: rgba(61, 214, 198, .03);
}

html[data-hw-theme='dark'] .hw-creative-controls-disclosure[open] > summary {
    background: rgba(61, 214, 198, .06);
}

.hw-piano-fullscreen {
    white-space: nowrap;
}

.hw-piano-score-panel {
    margin-top: 20px;
    padding: 18px;
    border: 1px solid rgba(105, 69, 232, .2);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(105, 69, 232, .06), rgba(8, 127, 128, .045)),
    var(--hw-bg-raise);
}

.hw-piano-score-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
}

.hw-piano-score-head h3 {
    margin: 0;
    color: var(--hw-fg);
    font: 500 21px/1.15 'Playfair Display', Georgia, serif;
}

.hw-piano-local-badge {
    flex: 0 0 auto;
    padding: 6px 9px;
    border: 1px solid rgba(8, 127, 128, .22);
    border-radius: 999px;
    color: var(--hw-secondary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hw-piano-score-copy {
    max-width: 700px;
    margin: 9px 0 14px;
    color: var(--hw-fg-dim);
    font-size: 12px;
    line-height: 1.6;
}

.hw-piano-score-upload {
    position: relative;
    min-height: 146px;
    border: 1px dashed rgba(105, 69, 232, .38);
    border-radius: 14px;
    background: rgba(255, 255, 255, .62);
}

.hw-piano-score-upload.is-dragover {
    border-color: var(--hw-secondary);
    background: rgba(8, 127, 128, .09);
}

.hw-piano-score-placeholder {
    display: grid;
    place-items: center;
    gap: 6px;
    min-height: 146px;
    padding: 18px;
    text-align: center;
}

.hw-piano-upload-icon {
    color: var(--hw-accent);
    font-size: 26px;
    line-height: 1;
}

.hw-piano-score-placeholder strong {
    color: var(--hw-fg);
    font-size: 13px;
}

.hw-piano-score-placeholder small,
.hw-piano-score-status,
.hw-piano-score-actions,
.hw-piano-pdf-preview small {
    color: var(--hw-fg-faint);
    font-size: 11px;
}

.hw-piano-score-placeholder .hw-btn {
    min-height: 38px;
    margin-top: 4px;
}

.hw-piano-file-input-proxy {
    display: none;
}

.hw-piano-score-preview {
    display: grid;
    place-items: center;
    min-height: 172px;
    padding: 14px;
}

.hw-piano-score-preview img {
    display: block;
    max-width: 100%;
    max-height: 260px;
    border: 1px solid var(--hw-border);
    border-radius: 9px;
    object-fit: contain;
    background: #fff;
}

.hw-piano-pdf-preview {
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 120px;
    width: min(100%, 320px);
    padding: 20px;
    border-radius: 12px;
    background: linear-gradient(145deg, #201942, #17131f);
    text-align: center;
}

.hw-piano-pdf-preview > span {
    padding: 6px 8px;
    border-radius: 6px;
    background: rgba(246, 196, 83, .15);
    color: var(--hw-accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
}

.hw-piano-pdf-preview strong {
    max-width: 100%;
    overflow: hidden;
    color: #f7f1e6;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hw-piano-score-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    border-top: 1px solid var(--hw-border);
}

.hw-piano-score-actions span {
    overflow: hidden;
    color: var(--hw-fg-dim);
    font-size: 11px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hw-piano-practice-list {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.hw-piano-practice-list li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 9px;
    align-items: baseline;
    color: var(--hw-fg-dim);
    font-size: 12px;
    line-height: 1.45;
}

.hw-piano-practice-list li span {
    color: var(--hw-accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
}

.hw-piano-learning,
.hw-piano-faq {
    display: grid;
    grid-template-columns: minmax(240px, .72fr) minmax(0, 1.28fr);
    gap: 30px;
    margin-top: 22px;
    padding: 30px;
    border: 1px solid var(--hw-border);
    border-radius: 22px;
    background: rgba(255, 255, 255, .82);
    box-shadow: var(--hw-shadow-md);
}

.hw-piano-learning-intro h2,
.hw-piano-faq h2 {
    margin: 0;
    color: var(--hw-fg);
    font: 500 clamp(28px, 3vw, 42px)/1.03 'Playfair Display', Georgia, serif;
    letter-spacing: -.03em;
}

.hw-piano-learning-intro > p:last-child,
.hw-piano-faq > div:first-child > p:last-child {
    margin: 14px 0 0;
    color: var(--hw-fg-dim);
    font-size: 13px;
    line-height: 1.7;
}

.hw-piano-learning-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
}

.hw-piano-learning-grid article {
    padding: 17px;
    border: 1px solid var(--hw-border);
    border-radius: 15px;
    background: linear-gradient(145deg, rgba(8, 127, 128, .05), rgba(105, 69, 232, .04));
}

.hw-piano-learning-icon {
    display: inline-grid;
    place-items: center;
    min-width: 38px;
    min-height: 30px;
    padding: 5px 7px;
    border-radius: 8px;
    background: rgba(246, 196, 83, .17);
    color: var(--hw-accent);
    font: 700 13px/1 'Inter', sans-serif;
}

.hw-piano-learning-grid h3 {
    margin: 14px 0 7px;
    color: var(--hw-fg);
    font-size: 15px;
}

.hw-piano-learning-grid p {
    margin: 0;
    color: var(--hw-fg-dim);
    font-size: 12px;
    line-height: 1.6;
}

.hw-piano-faq-list {
    display: grid;
    gap: 8px;
}

.hw-piano-faq-list details {
    border: 1px solid var(--hw-border);
    border-radius: 12px;
    background: rgba(8, 127, 128, .025);
}

.hw-piano-faq-list summary {
    padding: 14px 16px;
    color: var(--hw-fg);
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
}

.hw-piano-faq-list details p {
    margin: 0;
    padding: 0 16px 15px;
    color: var(--hw-fg-dim);
    font-size: 12px;
    line-height: 1.65;
}

html[data-hw-theme='dark'] .hw-piano-score-panel,
html[data-hw-theme='dark'] .hw-piano-learning,
html[data-hw-theme='dark'] .hw-piano-faq {
    background: rgba(22, 19, 31, .92);
    border-color: var(--hw-border);
}

html[data-hw-theme='dark'] .hw-piano-score-upload,
html[data-hw-theme='dark'] .hw-piano-faq-list details {
    background: rgba(61, 214, 198, .035);
}

@media (max-width: 1100px) {
    .hw-studio {
        grid-template-columns: minmax(176px, .24fr) minmax(0, 1fr);
    }

    .hw-studio .hw-panel-stage {
        grid-column: 2;
    }

    .hw-piano-learning,
    .hw-piano-faq {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    body.tool-hit-weave .hw-page.hw-container.hw-studio {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hw-studio {
        grid-template-columns: 1fr;
    }

    .hw-studio .hw-panel-stage {
        grid-column: auto;
    }

    .hw-creative-controls-disclosure > summary {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .hw-creative-controls-disclosure > summary em {
        width: 100%;
        margin-left: 0;
    }

    .hw-piano-fullscreen {
        flex: 1 1 100%;
    }

    .hw-piano-score-head,
    .hw-piano-score-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .hw-piano-score-actions .hw-text-button {
        padding-left: 0;
    }

    .hw-piano-learning,
    .hw-piano-faq {
        padding: 21px 18px;
    }

    .hw-piano-learning-grid {
        grid-template-columns: 1fr;
    }

}

/* ---------- focused first screen + instrument-only piano fullscreen ---------- */
.hw-studio {
    align-items: start;
}

.hw-studio .hw-workspace-sidebar,
.hw-studio .hw-panel-create,
.hw-studio .hw-panel-stage {
    align-self: start;
}

.hw-studio .hw-workspace-sidebar {
    position: sticky;
    top: 22px;
}

.hw-studio .hw-panel-create {
    padding-top: 26px;
    padding-bottom: 24px;
}

.hw-studio .hw-panel-sub {
    margin-bottom: 14px;
}

.hw-studio .hw-mode-toggle {
    margin-bottom: 12px;
}

.hw-studio .hw-idea-composer {
    padding: 14px;
}

.hw-studio .hw-idea-intro {
    margin-top: 5px;
    margin-bottom: 8px;
}

.hw-studio .hw-idea-composer textarea {
    min-height: 88px;
}

.hw-studio .hw-panel-stage {
    min-height: 0;
}

.hw-studio .hw-stage-empty {
    min-height: 330px;
}

.hw-studio .hw-studio-intent {
    margin-top: 22px;
    margin-bottom: 0;
}

.hw-studio .hw-prompt-library {
    margin-top: 12px;
    margin-bottom: 0;
}

.hw-piano-instrument {
    min-width: 0;
    padding: 1px;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .74), rgba(8, 127, 128, .04));
}

.hw-piano-instrument .hw-piano-toolbar {
    margin-top: 16px;
}

.hw-piano-tempo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 42px;
    color: var(--hw-fg-dim);
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.hw-piano-tempo input {
    width: 72px;
    accent-color: var(--hw-primary);
}

.hw-piano-tempo output {
    min-width: 23px;
    color: var(--hw-secondary);
    font-variant-numeric: tabular-nums;
}

.hw-piano-actions .hw-btn.is-active {
    border-color: var(--hw-secondary);
    background: rgba(8, 127, 128, .11);
    color: var(--hw-secondary);
}

.hw-piano-key {
    transition: transform 130ms cubic-bezier(.2, .8, .2, 1), background 130ms ease, box-shadow 130ms ease;
}

.hw-piano-white {
    border-color: rgba(23, 33, 43, .28);
    background: linear-gradient(90deg, rgba(23, 33, 43, .08), transparent 12%, transparent 88%, rgba(23, 33, 43, .08)),
    linear-gradient(180deg, #fff, #e9eef0 68%, #d4dadd);
    box-shadow: inset 0 -8px 0 rgba(23, 33, 43, .07), inset 3px 0 0 rgba(255, 255, 255, .75), 0 7px 0 rgba(23, 33, 43, .12);
}

.hw-piano-black {
    height: 62%;
    border-color: #05040a;
    background: linear-gradient(90deg, rgba(255, 255, 255, .12), transparent 18%, transparent 78%, rgba(0, 0, 0, .32)),
    linear-gradient(180deg, #4a435e 0%, #211c2d 22%, #09080e 84%);
    box-shadow: 0 10px 14px rgba(0, 0, 0, .31), inset 0 -7px 0 rgba(0, 0, 0, .38), inset 1px 0 0 rgba(255, 255, 255, .13);
}

.hw-piano-key.is-playing {
    transform: translateY(5px);
}

.hw-piano-white.is-playing {
    background: linear-gradient(180deg, #f1fffc, #b9ebe2 72%, #8dd1c7);
    box-shadow: inset 0 -8px 0 rgba(8, 127, 128, .22), 0 2px 0 rgba(8, 127, 128, .3);
}

.hw-piano-black.is-playing {
    background: linear-gradient(180deg, #a287ff, #4b2c98 72%, #26144c);
    box-shadow: 0 4px 8px rgba(0, 0, 0, .28), inset 0 -7px 0 rgba(0, 0, 0, .35);
}

.hw-piano-score-sequence {
    width: min(100%, 720px);
    max-height: 76px;
    overflow: auto;
    margin: 0 auto;
    padding: 10px 12px;
    border: 1px solid rgba(8, 127, 128, .16);
    border-radius: 10px;
    background: rgba(8, 127, 128, .05);
    color: var(--hw-secondary);
    font-size: 11px;
    line-height: 1.7;
    text-align: center;
}

.hw-piano-score-playback {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hw-piano-score-playback .hw-btn {
    min-height: 36px;
}

html[data-hw-theme='dark'] .hw-piano-instrument {
    background: linear-gradient(145deg, rgba(247, 241, 230, .08), rgba(61, 214, 198, .04));
}

html[data-hw-theme='dark'] .hw-piano-white {
    border-color: rgba(247, 241, 230, .22);
    background: linear-gradient(90deg, rgba(0, 0, 0, .14), transparent 12%, transparent 88%, rgba(0, 0, 0, .18)),
    linear-gradient(180deg, #f8f5ef, #d3d9da 68%, #b1bbbd);
}

.hw-piano-instrument.is-fullscreen,
.hw-piano-instrument:fullscreen {
    position: fixed;
    z-index: 120;
    inset: 0;
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    max-width: none;
    margin: 0;
    padding: max(14px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    overflow: auto;
    border-radius: 0;
    background: radial-gradient(circle at 75% 12%, rgba(139, 92, 246, .18), transparent 32%),
    linear-gradient(180deg, #f4f6f7, #e5eaec);
}

.hw-piano-instrument.is-fullscreen .hw-piano-toolbar,
.hw-piano-instrument:fullscreen .hw-piano-toolbar {
    flex: 0 0 auto;
    margin-top: 0;
}

.hw-piano-instrument.is-fullscreen .hw-piano-active-note,
.hw-piano-instrument:fullscreen .hw-piano-active-note {
    flex: 0 0 auto;
}

.hw-piano-instrument.is-fullscreen .hw-piano-scroll,
.hw-piano-instrument:fullscreen .hw-piano-scroll {
    flex: 1 1 auto;
    display: flex;
    align-items: stretch;
    min-height: 0;
    padding-bottom: 8px;
}

.hw-piano-instrument.is-fullscreen .hw-piano-keyboard,
.hw-piano-instrument:fullscreen .hw-piano-keyboard {
    width: 100%;
    min-width: 920px;
    height: clamp(360px, 62vh, 680px);
    margin: auto 0;
}

.hw-piano-instrument.is-fullscreen .hw-piano-black,
.hw-piano-instrument:fullscreen .hw-piano-black {
    height: 63%;
}

.hw-piano-instrument.is-fullscreen .hw-piano-help-row,
.hw-piano-instrument:fullscreen .hw-piano-help-row {
    flex: 0 0 auto;
    padding-bottom: 2px;
}

html[data-hw-theme='dark'] .hw-piano-instrument.is-fullscreen,
html[data-hw-theme='dark'] .hw-piano-instrument:fullscreen {
    background: radial-gradient(circle at 75% 12%, rgba(139, 92, 246, .22), transparent 32%),
    linear-gradient(180deg, #111019, #0b0a10);
}

@media (max-width: 1180px) and (min-width: 761px) {
    .hw-studio .hw-workspace-sidebar {
        position: static;
    }
}

@media (max-width: 760px) {
    .hw-studio .hw-workspace-sidebar {
        position: static;
    }

    .hw-piano-toolbar {
        align-items: stretch;
    }

    .hw-piano-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .hw-piano-tempo {
        margin-right: auto;
    }

    .hw-piano-instrument.is-fullscreen .hw-piano-keyboard,
    .hw-piano-instrument:fullscreen .hw-piano-keyboard {
        min-width: 900px;
        height: 58vh;
    }

    .hw-piano-score-playback {
        width: 100%;
    }
}

/* The score is part of the instrument now: keep the uploaded reference close
   to the keys instead of making the player scroll back to a separate lesson
   section. The compact empty state expands only when a local file is present. */
.hw-piano-instrument .hw-piano-score-panel {
    margin-top: 12px;
    padding: 12px;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(105, 69, 232, .055), rgba(8, 127, 128, .035)), rgba(255, 255, 255, .42);
}

.hw-piano-instrument .hw-piano-score-head {
    align-items: center;
}

.hw-piano-instrument .hw-piano-score-head h3 {
    font-size: 17px;
}

.hw-piano-instrument .hw-piano-score-upload {
    min-height: 0;
    margin-top: 8px;
}

.hw-piano-instrument .hw-piano-score-placeholder {
    grid-template-columns: auto minmax(0, 1fr) auto;
    place-items: center start;
    min-height: 76px;
    padding: 10px 12px;
    text-align: left;
}

.hw-piano-instrument .hw-piano-score-placeholder .hw-piano-upload-icon {
    grid-row: span 2;
    margin-right: 4px;
}

.hw-piano-instrument .hw-piano-score-placeholder small {
    grid-column: 2;
}

.hw-piano-instrument .hw-piano-score-placeholder .hw-btn {
    grid-column: 3;
    grid-row: 1 / span 2;
    margin: 0 0 0 12px;
}

.hw-piano-instrument .hw-piano-score-preview {
    min-height: 0;
    max-height: 178px;
    padding: 8px;
    overflow: auto;
}

.hw-piano-instrument .hw-piano-score-preview img {
    max-height: 158px;
    width: auto;
}

.hw-piano-instrument .hw-piano-pdf-preview {
    min-height: 82px;
    padding: 12px;
}

.hw-piano-instrument .hw-piano-score-actions {
    padding: 7px 9px 2px;
}

.hw-piano-instrument .hw-piano-score-status {
    margin: 7px 2px 0;
}

.hw-piano-instrument.is-fullscreen .hw-piano-score-panel,
.hw-piano-instrument:fullscreen .hw-piano-score-panel {
    flex: 0 0 auto;
    margin-top: 9px;
    padding: 9px 11px;
}

.hw-piano-instrument.is-fullscreen .hw-piano-score-head h3,
.hw-piano-instrument:fullscreen .hw-piano-score-head h3 {
    font-size: 15px;
}

.hw-piano-instrument.is-fullscreen .hw-piano-score-placeholder,
.hw-piano-instrument:fullscreen .hw-piano-score-placeholder {
    min-height: 54px;
}

.hw-piano-instrument.is-fullscreen .hw-piano-score-preview,
.hw-piano-instrument:fullscreen .hw-piano-score-preview {
    max-height: 124px;
}

.hw-piano-instrument.is-fullscreen .hw-piano-score-preview img,
.hw-piano-instrument:fullscreen .hw-piano-score-preview img {
    max-height: 106px;
}

.hw-piano-instrument.is-fullscreen .hw-piano-score-status,
.hw-piano-instrument:fullscreen .hw-piano-score-status {
    display: none;
}

html[data-hw-theme='dark'] .hw-piano-instrument .hw-piano-score-panel {
    background: linear-gradient(135deg, rgba(139, 92, 246, .11), rgba(61, 214, 198, .06)), rgba(16, 14, 22, .72);
}

@media (max-width: 600px) {
    .hw-piano-instrument .hw-piano-score-placeholder {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .hw-piano-instrument .hw-piano-score-placeholder .hw-btn {
        grid-column: 2;
        grid-row: 3;
        margin: 8px 0 0;
    }
}

/* ---------- Studio creative desk ---------- */
.hw-creative-desk {
    margin: 24px 0 20px;
    padding: 16px;
    border: 1px solid rgba(8, 127, 128, .15);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(8, 127, 128, .045), rgba(105, 69, 232, .035));
}

.hw-creative-desk-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 13px;
}

.hw-creative-desk-head .hw-eyebrow {
    margin: 0 0 5px;
}

.hw-creative-desk-head h2 {
    margin: 0;
    color: var(--hw-fg);
    font: 500 22px/1.12 'Playfair Display', Georgia, serif;
}

.hw-creative-desk-note {
    color: var(--hw-fg-faint);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.hw-creative-desk-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.hw-creative-desk-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 82px;
    padding: 11px;
    border: 1px solid var(--hw-border);
    border-radius: 13px;
    background: rgba(255, 255, 255, .72);
    color: var(--hw-fg);
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.hw-creative-desk-card:hover {
    transform: translateY(-2px);
    border-color: rgba(8, 127, 128, .35);
    box-shadow: 0 10px 24px rgba(29, 42, 54, .08);
}

.hw-creative-desk-card > span:nth-child(2) {
    display: grid;
    gap: 4px;
}

.hw-creative-desk-card strong {
    font-size: 12px;
}

.hw-creative-desk-card small {
    color: var(--hw-fg-dim);
    font-size: 11px;
    line-height: 1.45;
}

.hw-creative-desk-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(8, 127, 128, .18);
    border-radius: 10px;
    background: rgba(8, 127, 128, .07);
    color: var(--hw-secondary);
}

.hw-creative-desk-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.hw-creative-desk-arrow {
    color: var(--hw-secondary);
    font-size: 17px;
}

html[data-hw-theme='dark'] .hw-creative-desk {
    background: linear-gradient(145deg, rgba(61, 214, 198, .06), rgba(139, 92, 246, .07));
}

html[data-hw-theme='dark'] .hw-creative-desk-card {
    background: rgba(16, 14, 22, .72);
}

/* ---------- Private collection ---------- */
.hw-history-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0 4px;
}

.hw-history-tabs a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 13px;
    border: 1px solid var(--hw-border);
    border-radius: 999px;
    color: var(--hw-fg-dim);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.hw-history-tabs a:hover,
.hw-history-tabs a.is-active {
    border-color: rgba(8, 127, 128, .34);
    background: rgba(8, 127, 128, .08);
    color: var(--hw-secondary);
}

.hw-favorite-button {
    min-height: 38px;
    color: var(--hw-secondary);
    white-space: nowrap;
}

.hw-favorite-button.is-saved {
    border-color: rgba(184, 119, 19, .38);
    color: #9a5719;
}

.hw-history-status {
    min-height: 18px;
    margin: 8px 0 0;
    color: var(--hw-danger);
    font-size: 11px;
}

.hw-take-row {
    grid-template-columns: 64px minmax(180px, 1fr) repeat(3, auto);
}

@media (max-width: 780px) {
    .hw-creative-desk-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .hw-creative-desk-grid {
        grid-template-columns: 1fr;
    }

    .hw-take-row {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .hw-take-row .hw-take-label {
        margin-bottom: 2px;
    }

    .hw-take-row .hw-favorite-button,
    .hw-take-row .hw-text-link {
        justify-self: start;
    }
}

/* ---------- Music games ---------- */
.hw-games-page {
    padding-top: 58px;
    padding-bottom: 92px;
}

.hw-games-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr);
    gap: 38px;
    align-items: center;
    min-height: 330px;
    padding: 38px 42px;
    border: 1px solid var(--hw-border);
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(239, 244, 246, .82));
    box-shadow: var(--hw-shadow-md);
}

.hw-games-hero h1 {
    max-width: 650px;
    margin: 0 0 16px;
    color: var(--hw-fg);
    font: 500 clamp(38px, 5vw, 68px)/.98 'Playfair Display', Georgia, serif;
    letter-spacing: -.045em;
}

.hw-games-hero .hw-lede {
    max-width: 610px;
    margin-bottom: 22px;
    color: var(--hw-fg-dim);
    font-size: 16px;
    line-height: 1.7;
}

.hw-games-hero-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.hw-games-hero-art {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(145deg, #1c1630, #0c0b12);
    box-shadow: 0 20px 50px rgba(29, 22, 48, .22);
}

.hw-games-hero-art svg {
    position: absolute;
    inset: 30px 0 auto;
    width: 100%;
    height: 160px;
    fill: none;
    stroke: #f6c453;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.hw-games-staff {
    position: absolute;
    inset: 48px 18px auto;
    display: grid;
    gap: 19px;
}

.hw-games-staff i {
    display: block;
    border-top: 1px solid rgba(247, 241, 230, .17);
}

.hw-games-pulse {
    position: absolute;
    right: 28px;
    bottom: 26px;
    width: 86px;
    height: 5px;
    border-radius: 99px;
    background: linear-gradient(90deg, #7c3aed, #3dd6c6);
    box-shadow: 0 0 24px rgba(61, 214, 198, .4);
}

.hw-games-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.hw-game-card,
.hw-games-guide,
.hw-games-faq {
    border: 1px solid var(--hw-border);
    border-radius: 22px;
    background: rgba(255, 255, 255, .9);
    box-shadow: var(--hw-shadow-md);
}

.hw-game-card {
    padding: 24px;
}

.hw-game-card-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.hw-game-card h2,
.hw-games-guide h2,
.hw-games-faq h2 {
    margin: 0;
    color: var(--hw-fg);
    font: 500 29px/1.08 'Playfair Display', Georgia, serif;
}

.hw-game-card > p,
.hw-games-guide p,
.hw-games-faq p {
    color: var(--hw-fg-dim);
    font-size: 14px;
    line-height: 1.65;
}

.hw-game-score {
    color: var(--hw-secondary);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.hw-game-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-top: 17px;
}

.hw-game-toolbar label {
    color: var(--hw-fg-faint);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.hw-game-toolbar select {
    min-height: 42px;
    padding: 8px 30px 8px 11px;
    border: 1px solid var(--hw-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, .8);
    color: var(--hw-fg);
    font: inherit;
}

.hw-game-toolbar .hw-btn {
    margin-left: auto;
}

.hw-game-status {
    min-height: 23px;
    margin-top: 17px;
    color: var(--hw-secondary);
    font-size: 12px;
    font-weight: 700;
}

.hw-game-status.is-error {
    color: var(--hw-danger);
}

.hw-note-pads {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.hw-note-pad {
    display: grid;
    gap: 5px;
    min-height: 78px;
    padding: 10px 5px;
    border: 1px solid rgba(91, 141, 239, .27);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(91, 141, 239, .12), rgba(255, 255, 255, .85));
    color: var(--hw-fg);
    cursor: pointer;
    transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.hw-note-pad:hover,
.hw-note-pad:focus-visible {
    border-color: var(--hw-secondary);
    transform: translateY(-2px);
}

.hw-note-pad:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.hw-note-pad.is-correct {
    border-color: #27ae8e;
    background: rgba(39, 174, 142, .18);
}

.hw-note-pad.is-wrong {
    border-color: var(--hw-danger);
    background: rgba(251, 113, 133, .15);
}

.hw-note-pad strong {
    font-size: 12px;
}

.hw-note-pad small {
    color: var(--hw-fg-faint);
    font-size: 10px;
}

.hw-game-help {
    margin: 14px 0 0;
    color: var(--hw-fg-faint);
    font-size: 11px;
}

.hw-game-help kbd,
.hw-piano-help-row kbd {
    padding: 2px 5px;
    border: 1px solid var(--hw-border);
    border-radius: 5px;
    background: rgba(255, 255, 255, .62);
    font-size: 10px;
}

.hw-rhythm-meter {
    height: 8px;
    margin-top: 19px;
    overflow: hidden;
    border-radius: 99px;
    background: rgba(8, 127, 128, .1);
}

.hw-rhythm-meter span {
    display: block;
    width: 100%;
    height: 100%;
    transform: scaleX(0);
    transform-origin: left;
    border-radius: inherit;
    background: linear-gradient(90deg, #7c3aed, #3dd6c6);
}

.hw-rhythm-tap {
    position: relative;
    display: grid;
    place-items: center;
    gap: 4px;
    width: min(100%, 280px);
    min-height: 130px;
    margin: 12px auto 0;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, .34);
    border-radius: 18px;
    background: linear-gradient(145deg, #211945, #171327);
    color: #f7f1e6;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(105, 69, 232, .18);
    transition: transform 120ms ease, box-shadow 120ms ease;
}

.hw-rhythm-tap:hover:not(:disabled),
.hw-rhythm-tap:focus-visible {
    box-shadow: 0 18px 36px rgba(105, 69, 232, .28);
    transform: translateY(-2px);
}

.hw-rhythm-tap:disabled {
    cursor: not-allowed;
    opacity: .48;
}

.hw-rhythm-tap.is-hit {
    transform: scale(.97);
}

.hw-rhythm-tap-ring {
    position: absolute;
    width: 88px;
    height: 88px;
    border: 1px solid rgba(61, 214, 198, .46);
    border-radius: 50%;
    box-shadow: 0 0 0 15px rgba(61, 214, 198, .04), 0 0 0 30px rgba(139, 92, 246, .04);
}

.hw-rhythm-tap strong,
.hw-rhythm-tap small {
    position: relative;
    z-index: 1;
}

.hw-rhythm-tap strong {
    font-size: 15px;
}

.hw-rhythm-tap small {
    color: rgba(247, 241, 230, .62);
    font-size: 11px;
}

.hw-games-guide {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
    gap: 32px;
    margin-top: 22px;
    padding: 28px;
}

.hw-games-guide h2 {
    margin-bottom: 12px;
}

.hw-games-guide-list {
    display: grid;
    gap: 10px;
    align-content: center;
}

.hw-games-guide-list div {
    display: grid;
    grid-template-columns: 30px auto minmax(0, 1fr);
    gap: 9px;
    align-items: baseline;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--hw-border);
}

.hw-games-guide-list span {
    color: var(--hw-accent);
    font-size: 10px;
    font-weight: 800;
}

.hw-games-guide-list strong {
    color: var(--hw-fg);
    font-size: 13px;
}

.hw-games-guide-list small {
    color: var(--hw-fg-dim);
    font-size: 11px;
}

.hw-games-faq {
    margin-top: 22px;
    padding: 28px;
}

.hw-games-faq h2 {
    margin-bottom: 14px;
}

.hw-games-faq details {
    padding: 13px 0;
    border-top: 1px solid var(--hw-border);
}

.hw-games-faq summary {
    color: var(--hw-fg);
    cursor: pointer;
    font-weight: 800;
}

.hw-games-faq p {
    margin: 9px 0 0;
}

html[data-hw-theme='dark'] .hw-games-hero,
html[data-hw-theme='dark'] .hw-game-card,
html[data-hw-theme='dark'] .hw-games-guide,
html[data-hw-theme='dark'] .hw-games-faq {
    background: rgba(22, 19, 31, .92);
    box-shadow: var(--hw-shadow-md);
}

html[data-hw-theme='dark'] .hw-game-toolbar select,
html[data-hw-theme='dark'] .hw-note-pad,
html[data-hw-theme='dark'] .hw-game-help kbd {
    background: rgba(16, 14, 22, .82);
    color: var(--hw-fg);
}

@media (max-width: 820px) {
    .hw-games-hero,
    .hw-games-grid,
    .hw-games-guide {
        grid-template-columns: 1fr;
    }

    .hw-games-hero {
        padding: 28px 22px;
    }

    .hw-games-hero-art {
        min-height: 180px;
    }
}

@media (max-width: 520px) {
    .hw-games-page {
        padding-top: 30px;
    }

    .hw-games-hero h1 {
        font-size: 43px;
    }

    .hw-game-card,
    .hw-games-guide,
    .hw-games-faq {
        padding: 20px;
    }

    .hw-note-pads {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hw-game-toolbar .hw-btn {
        width: 100%;
        margin-left: 0;
    }

    .hw-games-guide-list div {
        grid-template-columns: 28px 1fr;
    }

    .hw-games-guide-list small {
        grid-column: 2;
    }
}

html[data-hw-theme='dark'] .hw-games-hero-art {
    box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
}

/* ---------- Shared musical atmosphere for editorial pages ---------- */
.hw-page:not(.hw-studio-page):not(.hw-piano-page):not(.hw-games-page)::after {
    content: '♫';
    position: absolute;
    z-index: 0;
    top: clamp(42px, 8vw, 112px);
    right: clamp(24px, 8vw, 150px);
    color: rgba(184, 119, 19, .16);
    font: 500 clamp(72px, 9vw, 132px)/1 'Playfair Display', Georgia, serif;
    letter-spacing: -.22em;
    pointer-events: none;
    transform: rotate(-9deg);
    text-shadow: 18px 10px 0 rgba(8, 127, 128, .07);
}

.hw-page:not(.hw-studio-page):not(.hw-piano-page):not(.hw-games-page)::before {
    opacity: .3;
    background: radial-gradient(circle at 78% 17%, rgba(105, 69, 232, .1), transparent 22%),
    linear-gradient(90deg, transparent 66%, rgba(8, 127, 128, .055) 66.1%, transparent 66.2%),
    repeating-linear-gradient(0deg, transparent 0 55px, rgba(23, 33, 43, .055) 56px, transparent 57px);
}

.hw-page.hw-article::after,
.hw-page.hw-how::after,
.hw-page.hw-scenario::after {
    content: '♪';
    right: clamp(28px, 9vw, 170px);
    color: rgba(8, 127, 128, .13);
    transform: rotate(8deg);
}

.hw-page.hw-history::after {
    content: '♩';
    color: rgba(105, 69, 232, .13);
}

html[data-hw-theme='dark'] .hw-page:not(.hw-studio-page):not(.hw-piano-page):not(.hw-games-page)::after {
    color: rgba(246, 196, 83, .14);
    text-shadow: 18px 10px 0 rgba(61, 214, 198, .06);
}

@media (max-width: 680px) {
    .hw-page:not(.hw-studio-page):not(.hw-piano-page):not(.hw-games-page)::after {
        top: 32px;
        right: 18px;
        font-size: 78px;
        opacity: .7;
    }
}

/* ---------- pricing close: next-step CTA + payment readiness ---------- */
.hw-payment-status {
    max-width: 820px;
    margin: 12px auto 0;
    padding: 12px 16px;
    border: 1px solid rgba(8, 127, 128, .2);
    border-radius: 14px;
    background: rgba(8, 127, 128, .06);
    color: var(--hw-fg-dim);
    font-size: 13px;
    line-height: 1.65;
    text-align: center;
}

.hw-payment-status a {
    color: var(--hw-secondary);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hw-payment-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
    max-width: 980px;
    margin: 12px auto 0;
    color: var(--hw-fg-faint);
    font-size: 12px;
    line-height: 1.5;
}

.hw-payment-trust span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hw-payment-trust b {
    color: var(--hw-secondary);
    font-size: 14px;
}

@media (max-width: 680px) {
    .hw-payment-trust {
        display: grid;
        justify-content: stretch;
        gap: 8px;
        text-align: left;
    }
}

.hw-pricing-cta {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(300px, .94fr);
    gap: 28px;
    max-width: 1120px;
    margin: 76px auto 0;
    padding: 34px;
    overflow: hidden;
    border: 1px solid rgba(8, 127, 128, .2);
    border-radius: 28px;
    background: radial-gradient(circle at 85% 10%, rgba(105, 69, 232, .12), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(239, 247, 247, .96));
    box-shadow: 0 24px 58px rgba(29, 42, 54, .1);
    text-align: left;
}

.hw-pricing-cta::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: auto -80px -120px auto;
    width: 340px;
    height: 260px;
    border-radius: 50%;
    background: repeating-linear-gradient(0deg, transparent 0 28px, rgba(8, 127, 128, .08) 29px, transparent 30px);
    transform: rotate(-10deg);
    pointer-events: none;
}

.hw-pricing-cta-copy {
    align-self: center;
    max-width: 570px;
}

.hw-pricing-cta-copy h2 {
    max-width: 560px;
    margin: 0 0 14px;
    color: var(--hw-fg);
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.06;
    letter-spacing: -.035em;
}

.hw-pricing-cta-copy > p:not(.hw-eyebrow) {
    max-width: 500px;
    margin: 0;
    color: var(--hw-fg-dim);
    font-size: 15px;
    line-height: 1.7;
}

.hw-pricing-cta-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
}

.hw-pricing-cta-actions .hw-text-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.hw-pricing-cta-art {
    position: relative;
    min-height: 232px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 22px;
    background: radial-gradient(circle at 22% 14%, rgba(61, 214, 198, .18), transparent 30%),
    linear-gradient(145deg, #251d38, #11111d);
    box-shadow: 0 18px 34px rgba(18, 15, 31, .2);
}

.hw-pricing-cta-art::before,
.hw-pricing-cta-art::after {
    content: '';
    position: absolute;
    pointer-events: none;
}

.hw-pricing-cta-art::before {
    inset: 0;
    opacity: .28;
    background: repeating-linear-gradient(0deg, transparent 0 34px, rgba(255, 255, 255, .13) 35px, transparent 36px);
}

.hw-pricing-cta-art::after {
    top: 20px;
    right: 24px;
    width: 72px;
    height: 3px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--hw-secondary), var(--hw-accent));
    box-shadow: 0 0 18px rgba(61, 214, 198, .42);
}

.hw-pricing-cta-note {
    position: absolute;
    top: 20px;
    left: 24px;
    color: rgba(246, 196, 83, .78);
    font: 500 54px/1 'Playfair Display', Georgia, serif;
    transform: rotate(-8deg);
}

.hw-pricing-cta-wave {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 7px;
    height: 92px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    background: rgba(12, 11, 20, .5);
}

.hw-pricing-cta-wave i {
    flex: 1 1 0;
    height: var(--wave-height);
    min-height: 10px;
    border-radius: 99px;
    background: linear-gradient(180deg, #5bd6cb, #7655e8);
    box-shadow: 0 0 14px rgba(91, 214, 203, .13);
}

.hw-pricing-cta-art-label {
    position: relative;
    z-index: 1;
    margin-top: 14px;
    color: rgba(255, 255, 255, .68);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.hw-pricing-cta-paths {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding-top: 4px;
}

.hw-pricing-cta-paths a {
    min-height: 84px;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 12px;
    align-content: center;
    padding: 16px 18px;
    border: 1px solid rgba(8, 127, 128, .16);
    border-radius: 16px;
    background: rgba(255, 255, 255, .58);
    color: var(--hw-fg);
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.hw-pricing-cta-paths a:hover {
    transform: translateY(-2px);
    border-color: rgba(8, 127, 128, .45);
    background: rgba(255, 255, 255, .88);
}

.hw-pricing-cta-paths span {
    grid-row: span 2;
    color: var(--hw-accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
}

/* The shared legal shell is intentionally product-agnostic. Keep its paper
   card aligned with HitWeave's light/dark theme when it is rendered here. */
body.tool-hit-weave .legal-page__intro {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(8, 127, 128, .18);
    background: radial-gradient(circle at 84% 10%, rgba(105, 69, 232, .14), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(239, 247, 247, .98));
    color: #17212b;
}

body.tool-hit-weave .legal-page__intro::after {
    content: '♫';
    position: absolute;
    right: 30px;
    bottom: -18px;
    color: rgba(184, 119, 19, .18);
    font: 500 100px/1 'Playfair Display', Georgia, serif;
    transform: rotate(-8deg);
    pointer-events: none;
}

body.tool-hit-weave .legal-page__intro h1,
body.tool-hit-weave .legal-page__intro p,
body.tool-hit-weave .legal-page__eyebrow {
    position: relative;
    z-index: 1;
    color: #17212b;
}

body.tool-hit-weave .legal-page__content {
    border-color: rgba(8, 127, 128, .16);
    background: rgba(255, 255, 255, .9);
}

html[data-hw-theme='dark'] body.tool-hit-weave .legal-page__intro {
    border-color: rgba(61, 214, 198, .2);
    background: radial-gradient(circle at 84% 10%, rgba(105, 69, 232, .22), transparent 28%),
    linear-gradient(135deg, rgba(31, 26, 44, .98), rgba(20, 18, 28, .98));
}

html[data-hw-theme='dark'] body.tool-hit-weave .legal-page__intro h1,
html[data-hw-theme='dark'] body.tool-hit-weave .legal-page__intro p,
html[data-hw-theme='dark'] body.tool-hit-weave .legal-page__eyebrow {
    color: #f7f1e6;
}

html[data-hw-theme='dark'] body.tool-hit-weave .legal-page__content {
    border-color: rgba(61, 214, 198, .18);
    background: rgba(22, 19, 31, .94);
    color: #c9c1d1;
}

html[data-hw-theme='dark'] body.tool-hit-weave .legal-page__content h2,
html[data-hw-theme='dark'] body.tool-hit-weave .legal-page__content h3 {
    color: #f7f1e6;
    border-color: rgba(247, 241, 230, .14);
}

.hw-pricing-cta-paths strong {
    font-size: 15px;
}

.hw-pricing-cta-paths small {
    margin-top: 4px;
    color: var(--hw-fg-faint);
    font-size: 12px;
    line-height: 1.45;
}

html[data-hw-theme='dark'] .hw-payment-status {
    border-color: rgba(61, 214, 198, .22);
    background: rgba(61, 214, 198, .07);
}

html[data-hw-theme='dark'] .hw-pricing-cta {
    border-color: rgba(61, 214, 198, .22);
    background: radial-gradient(circle at 85% 10%, rgba(105, 69, 232, .2), transparent 30%),
    linear-gradient(145deg, rgba(31, 26, 44, .98), rgba(20, 18, 28, .98));
    box-shadow: 0 24px 58px rgba(0, 0, 0, .26);
}

html[data-hw-theme='dark'] .hw-pricing-cta-paths a {
    border-color: rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .045);
}

html[data-hw-theme='dark'] .hw-pricing-cta-paths a:hover {
    border-color: rgba(61, 214, 198, .4);
    background: rgba(61, 214, 198, .08);
}

@media (max-width: 820px) {
    .hw-pricing-cta {
        grid-template-columns: 1fr;
        margin-top: 52px;
        padding: 26px;
    }

    .hw-pricing-cta-art {
        min-height: 200px;
    }
}

@media (max-width: 560px) {
    .hw-pricing-cta {
        padding: 20px;
        border-radius: 22px;
    }

    .hw-pricing-cta-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hw-pricing-cta-actions .hw-btn,
    .hw-pricing-cta-actions .hw-text-link {
        width: 100%;
        justify-content: center;
    }

    .hw-pricing-cta-paths {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hw-pricing-cta-paths a {
        transition: none;
    }
}

/* ---------- shared editorial CTA ---------- */
.hw-page-cta {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(220px, .85fr);
    gap: 28px;
    width: 100%;
    max-width: 1120px;
    margin: 72px auto 0;
    padding: 32px;
    overflow: hidden;
    border: 1px solid rgba(8, 127, 128, .2);
    border-radius: 26px;
    background: radial-gradient(circle at 82% 18%, rgba(105, 69, 232, .14), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(238, 247, 247, .96));
    box-shadow: 0 20px 44px rgba(29, 42, 54, .08);
}

.hw-page-cta::before {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: repeating-linear-gradient(90deg, transparent 0 44px, rgba(8, 127, 128, .14) 45px, transparent 46px);
    pointer-events: none;
}

.hw-page-cta-copy,
.hw-page-cta-art {
    position: relative;
    z-index: 1;
}

.hw-page-cta-copy {
    align-self: center;
}

.hw-page-cta .hw-eyebrow {
    margin: 0 0 10px;
}

.hw-page-cta h2 {
    max-width: 620px;
    margin: 0;
    color: var(--hw-fg);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(28px, 3.1vw, 42px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.hw-page-cta-copy > p:not(.hw-eyebrow) {
    max-width: 650px;
    margin: 14px 0 0;
    color: var(--hw-fg-dim);
    font-size: 16px;
    line-height: 1.65;
}

.hw-page-cta-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 22px;
}

.hw-page-cta-actions .hw-btn {
    min-height: 48px;
}

.hw-page-cta-actions .hw-text-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.hw-page-cta-art {
    display: flex;
    min-height: 184px;
    align-items: stretch;
    justify-content: flex-end;
    padding: 24px;
    overflow: hidden;
    border: 1px solid rgba(8, 127, 128, .14);
    border-radius: 20px;
    background: radial-gradient(circle at 76% 16%, rgba(246, 196, 83, .22), transparent 28%),
    linear-gradient(145deg, rgba(247, 241, 230, .9), rgba(229, 241, 242, .76));
}

.hw-page-cta-art::before,
.hw-page-cta-art::after {
    content: '';
    position: absolute;
    left: -12%;
    right: -12%;
    height: 1px;
    background: rgba(23, 33, 43, .13);
    transform: rotate(-4deg);
}

.hw-page-cta-art::before {
    top: 38%;
}

.hw-page-cta-art::after {
    top: 54%;
}

.hw-page-cta-note {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 44px;
    height: 60px;
    fill: rgba(184, 119, 19, .66);
    transform: rotate(-7deg);
}

.hw-page-cta-wave {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    height: 72px;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 14px;
    background: rgba(22, 19, 31, .92);
    box-shadow: 0 12px 24px rgba(29, 42, 54, .16);
}

.hw-page-cta-wave i {
    flex: 1 1 0;
    height: var(--hw-cta-wave-height, 38%);
    min-height: 8px;
    border-radius: 99px;
    background: linear-gradient(180deg, #5bd6cb, #7655e8);
}

.hw-page-cta-wave i:nth-child(1) {
    --hw-cta-wave-height: 30%;
}

.hw-page-cta-wave i:nth-child(2) {
    --hw-cta-wave-height: 52%;
}

.hw-page-cta-wave i:nth-child(3) {
    --hw-cta-wave-height: 38%;
}

.hw-page-cta-wave i:nth-child(4) {
    --hw-cta-wave-height: 76%;
}

.hw-page-cta-wave i:nth-child(5) {
    --hw-cta-wave-height: 46%;
}

.hw-page-cta-wave i:nth-child(6) {
    --hw-cta-wave-height: 88%;
}

.hw-page-cta-wave i:nth-child(7) {
    --hw-cta-wave-height: 56%;
}

.hw-page-cta-wave i:nth-child(8) {
    --hw-cta-wave-height: 34%;
}

.hw-page-cta-wave i:nth-child(9) {
    --hw-cta-wave-height: 68%;
}

.hw-page-cta-wave i:nth-child(10) {
    --hw-cta-wave-height: 44%;
}

.hw-page-cta-wave i:nth-child(11) {
    --hw-cta-wave-height: 80%;
}

.hw-page-cta-wave i:nth-child(12) {
    --hw-cta-wave-height: 58%;
}

.hw-page-cta-wave i:nth-child(13) {
    --hw-cta-wave-height: 36%;
}

.hw-page-cta-wave i:nth-child(14) {
    --hw-cta-wave-height: 64%;
}

.hw-page-cta-art-label {
    position: absolute;
    right: 24px;
    bottom: 12px;
    color: rgba(23, 33, 43, .64);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

html[data-hw-theme='dark'] .hw-page-cta {
    border-color: rgba(61, 214, 198, .24);
    background: radial-gradient(circle at 82% 18%, rgba(105, 69, 232, .2), transparent 34%),
    linear-gradient(145deg, rgba(31, 26, 44, .98), rgba(20, 18, 28, .98));
    box-shadow: 0 22px 52px rgba(0, 0, 0, .24);
}

html[data-hw-theme='dark'] .hw-page-cta-art {
    border-color: rgba(61, 214, 198, .2);
    background: radial-gradient(circle at 76% 16%, rgba(246, 196, 83, .16), transparent 28%),
    linear-gradient(145deg, rgba(42, 35, 57, .96), rgba(25, 22, 35, .96));
}

html[data-hw-theme='dark'] .hw-page-cta-art::before,
html[data-hw-theme='dark'] .hw-page-cta-art::after {
    background: rgba(247, 241, 230, .14);
}

/* ---------- Genre studio landing polish ----------
   /studio/{genre} is both a working generator and a search landing page. Keep
   the controls wide and practical, then give the educational section the same
   score-sheet and waveform language as the homepage and piano tool. */
.hw-studio-genre-page {
    --hw-genre-color: var(--hw-genre-hue, var(--hw-secondary));
}

.hw-studio-genre-page::after {
    content: '♪';
    position: absolute;
    z-index: 0;
    top: 280px;
    right: clamp(28px, 7vw, 140px);
    color: color-mix(in srgb, var(--hw-genre-color) 23%, transparent);
    font: 700 clamp(72px, 9vw, 150px)/1 'Playfair Display', Georgia, serif;
    transform: rotate(12deg);
    pointer-events: none;
}

.hw-studio-genre-page .hw-studio {
    align-items: start;
}

.hw-studio-genre-page .hw-workspace-sidebar {
    align-self: start;
}

@media (min-width: 1181px) {
    .hw-studio-genre-page .hw-workspace-sidebar {
        position: sticky;
        top: 96px;
    }
}

.hw-studio-genre-page .hw-panel-create,
.hw-studio-genre-page .hw-panel-stage {
    border-top: 3px solid color-mix(in srgb, var(--hw-genre-color) 48%, var(--hw-border));
}

.hw-studio-genre-page .hw-studio-seo {
    width: min(1480px, calc(100vw - 56px));
    max-width: 1480px;
    padding-top: 74px;
    padding-bottom: 72px;
}

.hw-studio-seo-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
    gap: 28px;
    align-items: center;
    padding: 32px 34px;
    border: 1px solid color-mix(in srgb, var(--hw-genre-color) 23%, var(--hw-border));
    border-radius: 26px;
    background: radial-gradient(circle at 82% 12%, color-mix(in srgb, var(--hw-genre-color) 12%, transparent), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(239, 244, 246, .78));
    box-shadow: var(--hw-shadow-md);
}

.hw-studio-seo-hero .hw-section-intro {
    max-width: 760px;
    margin: 0;
}

.hw-studio-seo-hero .hw-section-intro h2 {
    max-width: 740px;
    margin-bottom: 16px;
    font-size: clamp(30px, 3.2vw, 50px);
}

.hw-studio-seo-hero .hw-section-intro p:not(.hw-eyebrow) {
    max-width: 700px;
    font-size: 15px;
}

.hw-studio-seo-art {
    position: relative;
    min-height: 216px;
    overflow: hidden;
    padding: 22px 22px 18px;
    border: 1px solid color-mix(in srgb, var(--hw-genre-color) 18%, var(--hw-border));
    border-radius: 20px;
    background: radial-gradient(circle at 78% 16%, rgba(246, 196, 83, .32), transparent 27%),
    linear-gradient(145deg, #f8f1e4, #edf4f3 66%, #dbe9e8);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .46);
}

.hw-studio-seo-art::before {
    content: '';
    position: absolute;
    inset: 54px 0 42px;
    background: repeating-linear-gradient(to bottom, transparent 0 22px, rgba(23, 33, 43, .16) 23px 24px, transparent 25px 45px);
    transform: rotate(-2deg);
}

.hw-studio-seo-art-note {
    position: absolute;
    z-index: 1;
    top: 13px;
    right: 28px;
    color: rgba(184, 119, 19, .7);
    font: 700 66px/.9 'Playfair Display', Georgia, serif;
    transform: rotate(9deg);
}

.hw-studio-seo-art-sheet {
    position: relative;
    z-index: 1;
    height: 90px;
}

.hw-studio-seo-art-sheet i {
    position: absolute;
    top: calc(var(--index, 0) * 14px + 18px);
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(23, 33, 43, .16);
}

.hw-studio-seo-art-sheet i:nth-child(1) {
    --index: 0;
}

.hw-studio-seo-art-sheet i:nth-child(2) {
    --index: 1;
}

.hw-studio-seo-art-sheet i:nth-child(3) {
    --index: 2;
}

.hw-studio-seo-art-sheet i:nth-child(4) {
    --index: 3;
}

.hw-studio-seo-art-sheet i:nth-child(5) {
    --index: 4;
}

.hw-studio-seo-art-sheet b {
    position: absolute;
    z-index: 2;
    bottom: 13px;
    width: 13px;
    height: 10px;
    border-radius: 50%;
    background: #2a2335;
    transform: rotate(-15deg);
}

.hw-studio-seo-art-sheet b::before {
    content: '';
    position: absolute;
    right: 1px;
    bottom: 6px;
    width: 2px;
    height: 44px;
    background: #2a2335;
}

.hw-studio-seo-art-sheet b:nth-of-type(1) {
    left: 11%;
    bottom: 12px;
}

.hw-studio-seo-art-sheet b:nth-of-type(2) {
    left: 28%;
    bottom: 29px;
}

.hw-studio-seo-art-sheet b:nth-of-type(3) {
    left: 45%;
    bottom: 5px;
}

.hw-studio-seo-art-sheet b:nth-of-type(4) {
    left: 63%;
    bottom: 23px;
}

.hw-studio-seo-art-sheet b:nth-of-type(5) {
    left: 79%;
    bottom: 13px;
}

.hw-studio-seo-art-sheet b:nth-of-type(6) {
    left: 91%;
    bottom: 34px;
}

.hw-studio-seo-art-wave {
    position: absolute;
    z-index: 3;
    right: 17px;
    bottom: 31px;
    left: 17px;
    display: flex;
    align-items: center;
    gap: 4px;
    height: 50px;
    padding: 0 13px;
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(28, 22, 42, .96), rgba(25, 21, 38, .94));
    box-shadow: 0 13px 24px rgba(29, 42, 54, .18);
}

.hw-studio-seo-art-wave i {
    flex: 1;
    min-width: 3px;
    height: var(--wave-height);
    border-radius: 999px;
    background: linear-gradient(to top, var(--hw-primary), var(--hw-secondary));
}

.hw-studio-seo-art > small {
    position: absolute;
    z-index: 3;
    right: 20px;
    bottom: 10px;
    color: rgba(23, 33, 43, .62);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.hw-studio-genre-page .hw-studio-seo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.hw-studio-genre-page .hw-studio-seo-grid article {
    position: relative;
    min-height: 190px;
    padding: 23px;
    border-color: var(--hw-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, .84);
    box-shadow: 0 10px 28px rgba(29, 42, 54, .05);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.hw-studio-genre-page .hw-studio-seo-grid article:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--hw-genre-color) 40%, var(--hw-border));
    box-shadow: 0 16px 34px rgba(29, 42, 54, .09);
}

.hw-studio-genre-page .hw-studio-seo-grid article > span {
    background: color-mix(in srgb, var(--hw-genre-color) 16%, var(--hw-bg-raise));
    color: var(--hw-genre-color);
}

.hw-studio-genre-page .hw-studio-seo-grid h3 {
    margin-top: 17px;
    font-size: 18px;
}

.hw-studio-genre-page .hw-studio-use-cases {
    margin-top: 14px;
    padding: 23px;
    border-color: color-mix(in srgb, var(--hw-genre-color) 18%, var(--hw-border));
    background: linear-gradient(135deg, rgba(255, 255, 255, .86), color-mix(in srgb, var(--hw-genre-color) 5%, var(--hw-bg-raise)));
}

.hw-studio-genre-page .hw-studio-tags span {
    border-color: color-mix(in srgb, var(--hw-genre-color) 28%, var(--hw-border));
    background: color-mix(in srgb, var(--hw-genre-color) 7%, var(--hw-bg-raise));
    color: var(--hw-genre-color);
}

.hw-studio-genre-page .hw-studio-faq {
    margin-top: 28px;
    padding: 30px;
    border: 1px solid var(--hw-border);
    border-radius: 22px;
    background: rgba(255, 255, 255, .62);
    box-shadow: var(--hw-shadow-md);
}

.hw-studio-genre-page .hw-studio-faq .hw-section-intro-inline {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 25px;
}

.hw-studio-genre-page .hw-studio-faq .hw-section-intro-inline .hw-eyebrow {
    margin-bottom: 12px;
}

.hw-studio-genre-page .hw-studio-faq h2 {
    margin: 0 0 10px;
    color: var(--hw-fg);
    font: 500 clamp(28px, 3vw, 42px)/1.03 'Playfair Display', Georgia, serif;
    letter-spacing: -.035em;
}

.hw-studio-genre-page .hw-studio-faq .hw-section-intro-inline p:not(.hw-eyebrow) {
    max-width: 650px;
    margin: 0;
    color: var(--hw-fg-dim);
    line-height: 1.65;
}

.hw-studio-genre-page .hw-studio-faq .hw-faq-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hw-studio-genre-page .hw-studio-faq .hw-faq-item {
    background: rgba(255, 255, 255, .78);
}

html[data-hw-theme='dark'] .hw-studio-seo-hero,
html[data-hw-theme='dark'] .hw-studio-genre-page .hw-studio-use-cases,
html[data-hw-theme='dark'] .hw-studio-genre-page .hw-studio-faq {
    background: rgba(22, 19, 31, .92);
    border-color: var(--hw-border);
}

html[data-hw-theme='dark'] .hw-studio-seo-art {
    background: radial-gradient(circle at 78% 16%, rgba(246, 196, 83, .2), transparent 27%),
    linear-gradient(145deg, #242036, #1e293b 66%, #123b3d);
}

html[data-hw-theme='dark'] .hw-studio-seo-art::before {
    background: repeating-linear-gradient(to bottom, transparent 0 22px, rgba(247, 241, 230, .16) 23px 24px, transparent 25px 45px);
}

html[data-hw-theme='dark'] .hw-studio-seo-art-sheet b,
html[data-hw-theme='dark'] .hw-studio-seo-art-sheet b::before {
    background: #f7f1e6;
}

html[data-hw-theme='dark'] .hw-studio-seo-art > small {
    color: rgba(247, 241, 230, .65);
}

html[data-hw-theme='dark'] .hw-studio-genre-page .hw-studio-seo-grid article,
html[data-hw-theme='dark'] .hw-studio-genre-page .hw-studio-faq .hw-faq-item {
    background: rgba(22, 19, 31, .88);
    border-color: var(--hw-border);
    box-shadow: none;
}

@media (max-width: 1100px) {
    .hw-studio-seo-hero {
        grid-template-columns: 1fr;
    }

    .hw-studio-seo-art {
        min-height: 190px;
    }
}

@media (max-width: 760px) {
    .hw-studio-genre-page::after {
        top: 420px;
        right: -5px;
        font-size: 84px;
    }

    .hw-studio-genre-page .hw-studio-seo {
        width: auto;
        padding-top: 48px;
        padding-bottom: 54px;
    }

    .hw-studio-seo-hero {
        gap: 20px;
        padding: 23px 18px;
        border-radius: 20px;
    }

    .hw-studio-seo-hero .hw-section-intro h2 {
        font-size: 32px;
    }

    .hw-studio-seo-art {
        min-height: 174px;
        padding: 18px;
    }

    .hw-studio-genre-page .hw-studio-seo-grid,
    .hw-studio-genre-page .hw-studio-faq .hw-faq-list {
        grid-template-columns: 1fr;
    }

    .hw-studio-genre-page .hw-studio-use-cases,
    .hw-studio-genre-page .hw-studio-faq .hw-section-intro-inline {
        align-items: start;
        flex-direction: column;
    }

    .hw-studio-genre-page .hw-studio-tags {
        justify-content: flex-start;
        max-width: none;
    }

    .hw-studio-genre-page .hw-studio-faq {
        padding: 22px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hw-studio-genre-page .hw-studio-seo-grid article {
        transition: none;
    }
}

html[data-hw-theme='dark'] .hw-page-cta-art-label {
    color: rgba(247, 241, 230, .64);
}

@media (max-width: 820px) {
    .hw-page-cta {
        grid-template-columns: 1fr;
        margin-top: 54px;
        padding: 26px;
    }

    .hw-page-cta-art {
        min-height: 156px;
    }
}

@media (max-width: 560px) {
    .hw-page-cta {
        margin-top: 44px;
        padding: 22px;
        border-radius: 22px;
    }

    .hw-page-cta-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hw-page-cta-actions .hw-btn,
    .hw-page-cta-actions .hw-text-link {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hw-page-cta-actions .hw-btn,
    .hw-page-cta-actions .hw-text-link {
        transition: none;
    }
}

/* ---------- launch guard: narrow screens and touch targets ---------- */
body.tool-hit-weave {
    overflow-x: hidden;
}

@media (max-width: 760px) {
    body.tool-hit-weave .hw-page.hw-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    body.tool-hit-weave input,
    body.tool-hit-weave select,
    body.tool-hit-weave textarea {
        font-size: 16px;
    }

    .hw-hero h1 {
        font-size: clamp(40px, 13vw, 58px);
    }

    .hw-quick-create {
        padding: 14px;
    }

    .hw-quick-create-footer {
        gap: 10px;
    }

    .hw-quick-create-footer .hw-check {
        line-height: 1.45;
    }

    .hw-studio .hw-panel-create {
        padding: 20px 14px 18px;
    }

    .hw-studio .hw-panel-stage {
        padding: 18px 14px;
    }

    .hw-submit-row {
        position: sticky;
        bottom: 0;
        z-index: 15;
        margin: 16px -14px -18px;
        padding: 12px 14px max(12px, env(safe-area-inset-bottom));
        border-top: 1px solid var(--hw-border);
        background: rgba(255, 255, 255, .94);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
    }

    .hw-submit-row .hw-btn {
        min-height: 48px;
    }

    .hw-piano-card {
        padding: 16px;
    }

    .hw-piano-toolbar {
        align-items: stretch;
        gap: 9px;
    }

    .hw-piano-toolbar-group,
    .hw-piano-actions {
        flex-wrap: wrap;
    }

    .hw-piano-actions .hw-btn,
    .hw-piano-actions .hw-text-button {
        min-height: 44px;
    }

    .hw-piano-score-panel {
        padding: 14px;
    }

    .hw-piano-score-preview img {
        max-height: 220px;
    }
}

@media (max-width: 480px) {
    .hw-nav {
        min-height: 62px;
    }

    .hw-hero {
        padding-top: 32px;
    }

    .hw-hero-stage {
        min-height: 340px;
        transform: none;
    }

    .hw-scoreboard {
        min-height: 200px;
    }

    .hw-take-a {
        margin-top: 106px;
    }

    .hw-take-b {
        margin-top: 10px;
    }

    .hw-piano-hero h1 {
        font-size: 40px;
    }

    .hw-piano-card-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .hw-piano-status {
        white-space: normal;
        text-align: right;
    }

    .hw-piano-select {
        width: 100%;
        justify-content: space-between;
    }

    .hw-piano-select select {
        min-width: 0;
        flex: 1;
    }

    .hw-piano-actions .hw-btn {
        flex: 1 1 calc(50% - 6px);
    }

    .hw-piano-tempo {
        width: 100%;
        justify-content: space-between;
    }

    .hw-piano-tempo input {
        max-width: 180px;
        flex: 1;
    }

    .hw-piano-help-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .hw-piano-help-row span + span::before {
        content: none;
        margin: 0;
    }
}

html[data-hw-theme='dark'] .hw-submit-row {
    background: rgba(22, 19, 31, .95);
}
