:root {
    --songsheet-font-size: 16px;
}

.songsheet {
    font-size: var(--songsheet-font-size, 16px);
}

/* Base touch + scroll behavior */
html,
body {
    overscroll-behavior-y: contain;
}

button,
.btn,
.form-control,
.form-select,
.dropdown-item {
    touch-action: manipulation;
}

/* ── ChordSheetJS output ─────────────────────────────────────── */
.chordsheetjs-output {
    font-family: inherit;
    line-height: 1.5;
}

.chordsheetjs-output .paragraph {
    margin-bottom: 1.25rem;
}

/* Override Bootstrap's .row entirely within this scope */
.chordsheetjs-output .row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-end !important;
    margin: 0 !important;
    white-space: pre;
    line-height: 1;
}

.chordsheetjs-output .column {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-end !important;
    min-width: max-content !important;
    padding: 0 2px 0 0 !important;
    float: none !important;
    width: auto !important;
}

.chordsheetjs-output .chord {
    color: #FF00FF;
    font-weight: 700;  /* ← was 600 */
    font-size: 0.85em;
    min-height: 1.2em;
    display: block !important;
    white-space: pre;
    line-height: 1.4;
}

.chordsheetjs-output .lyrics {
    display: block !important;
    white-space: pre;
    line-height: 1.6;
}

.chordsheetjs-output .comment {
    color: #6c757d;
    font-style: italic;
    margin: 0.25rem 0;
    display: block;
}

.chordsheetjs-output h1 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.chordsheetjs-output h2 {
    font-size: 1rem;
    font-weight: 400;
    color: #6c757d;
    margin-bottom: 0.1rem;
}

.chordsheetjs-output .paragraph.chorus {
    border-left: 3px solid #0d6efd;
    padding-left: 0.75rem;
}

/* Metadata */
.songsheet .meta {
    margin-bottom: 0.7rem;
    color: #6c757d;
    font-size: 0.95em;
}

.songsheet .meta strong {
    color: #212529;
    font-size: 1.08em;
}

.song-meta-line {
    margin-bottom: 0.35rem;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.95em;
}

/* Songsheet state */
.songsheet.present-no-chords .chord {
    display: none !important;
}

.songsheet.two-column {
    column-count: 2;
    column-gap: 3rem;
}

/* Preview */
#preview {
    max-height: 70vh;
    overflow: auto;
    padding-left: 0.85rem;  /* ← add this */
}

/* Presentation mode */
body.present-fullscreen {
    margin: 0;
    height: 100vh;
    overflow: hidden;
    background: #050505;
    color: #fff;
}

body.present-fullscreen header,
body.present-fullscreen main,
body.present-fullscreen footer {
    display: none !important;
}

#presentOverlay {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 36%),
        linear-gradient(180deg, #111 0%, #050505 45%, #000 100%);
}

#presentOverlay .present-topbar {
    position: fixed;
    inset: 0;
    z-index: 1095;
    pointer-events: none;
}

#presentOverlay .present-tools {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 1096;
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

#presentOverlay .present-tool-btn,
#presentOverlay .present-close-btn,
#presentOverlay .present-nav button {
    appearance: none;
    min-width: 46px;
    min-height: 46px;
    padding: 0 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 0.98rem;
    line-height: 1;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}

#presentOverlay .present-tool-btn:hover,
#presentOverlay .present-close-btn:hover,
#presentOverlay .present-nav button:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.24);
    transform: translateY(-1px);
}

#presentOverlay .present-tool-btn.active {
    color: #ffe082;
    background: rgba(255, 213, 79, 0.16);
    border-color: rgba(255, 213, 79, 0.42);
}

#presentOverlay .present-tool-label {
    min-width: 56px;
    text-align: center;
    color: rgba(255, 255, 255, 0.78);
    font: 600 0.88rem/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#presentOverlay .present-close-btn {
    position: fixed;
    top: 14px;
    right: 18px;
    z-index: 1096;
    pointer-events: auto;
    width: 46px;
    padding: 0;
    font-size: 1.5rem;
}

#presentOverlay .present-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: min(1400px, 96vw);
    height: min(94vh, 1020px);
    padding: 7.5vh 6vw 5.5vh;
}

#presentOverlay .present-page-wrap {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 0;
    overflow: hidden;
}

#presentOverlay .present-page {
    width: 100%;
    max-width: 1240px;
    max-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.35rem;
    padding-left: 0.85rem;  /* ← add alongside existing padding-right */
    scrollbar-width: thin;
}

#presentOverlay .present-page.has-two-column {
    overflow: hidden;
    padding-right: 0;
}

#presentOverlay .present-sheet {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

#presentOverlay .present-sheet-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: start;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
}

#presentOverlay .present-sheet-col {
    min-width: 0;
    overflow: hidden;
}

#presentOverlay .present-sheet .meta {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

#presentOverlay .present-sheet .meta strong {
    color: #fff;
    font-size: 1.14em;
    letter-spacing: 0.01em;
}

#presentOverlay .present-sheet .meta .text-muted,
#presentOverlay .present-sheet .meta div:not(:first-child) {
    color: rgba(255, 255, 255, 0.82) !important;
}

#presentOverlay .present-sheet .song-meta-line,
#presentOverlay .present-sheet .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

#presentOverlay .present-sheet .chord {
    color: #ffd54f !important;
    font-weight: 700;
    text-shadow: none;
}

#presentOverlay .present-sheet .lyric {
    color: #fff;
}

#presentOverlay .present-footer {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

#presentOverlay .present-counter {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#presentOverlay .present-nav {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    padding: 0 1rem;
}

#presentOverlay .present-nav button {
    pointer-events: auto;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.05);
}

/* Buttons */
.btn {
    min-height: 32px;
    padding: 0.28rem 0.55rem;
    line-height: 1.15;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.08);
}

.btn.btn-sm {
    min-height: 30px;
    padding: 0.2rem 0.5rem;
    font-size: 0.82rem;
    line-height: 1.1;
}

.btn-group-sm > .btn,
.btn-group-sm .btn {
    min-height: 29px;
    padding: 0.18rem 0.45rem;
    line-height: 1.05;
}

/* song list rows */
/* DESKTOP / LARGER SCREENS = use older attached behavior */
.song-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.song-row-main {
    flex: 1 1 220px;
    min-width: 0;
}

.song-row-actions {
    flex: 0 1 auto;
    margin-left: auto;
    min-width: 0;
    overflow: visible;
}

.song-action-group {
    display: inline-flex;
    align-items: stretch;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0;
    max-width: 100%;
    overflow: visible;
}

.song-action-group > .btn {
    border-radius: 0 !important;
    margin-left: 0 !important;
    position: relative;
    z-index: 1;
}

.song-action-group > .btn:first-child {
    border-top-left-radius: 0.375rem !important;
    border-bottom-left-radius: 0.375rem !important;
}

.song-action-group > .btn:last-child {
    border-top-right-radius: 0.375rem !important;
    border-bottom-right-radius: 0.375rem !important;
}

.song-action-group > .btn:only-child {
    border-radius: 0.375rem !important;
}

/* Prevent doubled borders in joined button groups */
.song-action-group > .btn + .btn {
    margin-left: -1px !important;
    border-left-color: transparent !important;
}

.song-action-group > .btn + .btn:hover,
.song-action-group > .btn + .btn:focus {
    border-left-color: inherit !important;
    z-index: 2;
}

/* Lists */
#songList,
#libSongList,
#allSongList,
#libraryList {
    overflow: auto;
}

#songList .list-group-item,
#libSongList .list-group-item,
#allSongList .list-group-item,
#libraryList .list-group-item {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 36px;
    padding: 0.25rem 0.55rem;
}

#songList .list-group-item strong,
#libSongList .list-group-item strong,
#allSongList .list-group-item strong,
#libraryList .list-group-item strong {
    font-size: 0.94rem;
    line-height: 1.1;
}

#songList .list-group-item .small,
#songList .list-group-item small,
#libSongList .list-group-item .small,
#libSongList .list-group-item small,
#allSongList .list-group-item .small,
#allSongList .list-group-item small,
#libraryList .list-group-item .small,
#libraryList .list-group-item small {
    font-size: 0.72rem;
    line-height: 1.05;
}

#songList .list-group-item .btn,
#libSongList .list-group-item .btn,
#allSongList .list-group-item .btn,
#libraryList .list-group-item .btn {
    min-height: 28px;
    padding: 0.14rem 0.45rem;
}

/* Inputs / file controls */
.input-group.input-group-sm .form-control[type="file"] {
    align-self: center;
    height: auto;
    padding: 0.375rem 0.75rem;
}

.input-group.input-group-sm .btn,
.d-flex .form-control[type="file"] {
    align-self: center;
}

.d-flex .form-control[type="file"] {
    height: auto;
    padding: 0.35rem 0.6rem;
}

/* Demo badge */
.demo-badge {
    padding: 0.14rem 0.42rem;
    color: #6c757d !important;
    background: #f8f9fa !important;
    border-color: rgba(108, 117, 125, 0.22) !important;
    font-size: 0.62rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.02em;
}

/* User menu */
#userMenuBtn {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
    line-height: 1.1;
}

#userEmailLabel {
    display: inline-flex;
    align-items: center;
    line-height: 1.1;
}

#userMenuBtn.dropdown-toggle::after {
    margin-top: 0;
    align-self: center;
}

/* Dropdown */
.dropdown-menu .dropdown-item {
    padding: 0.32rem 0.75rem;
    font-size: 0.86rem;
    line-height: 1.15;
}

.dropdown-menu .dropdown-divider {
    margin: 0.3rem 0;
}

/* View controls */
.view-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem !important;
}

.view-controls .btn {
    border-width: 1px !important;
    box-shadow: none !important;
}

/* Coarse pointer improvements */
@media (hover: none), (pointer: coarse) {
    .btn,
    .btn.btn-sm,
    .form-control,
    .form-control-sm,
    .form-select,
    .form-select-sm,
    .dropdown-item {
        min-height: 38px;
    }

    #songList .list-group-item .btn,
    #libSongList .list-group-item .btn,
    #allSongList .list-group-item .btn,
    #libraryList .list-group-item .btn {
        min-height: 34px;
        padding: 0.2rem 0.55rem;
    }

    .song-row-main,
    .song-row-actions {
        min-height: 34px;
    }
}

/* <= 991px */
@media (max-width: 991px) {
    .songsheet {
        font-size: 15px;
    }

    .navbar .btn {
        font-size: 0.82rem;
        padding: 0.2rem 0.45rem;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
    main.container-fluid {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    #preview {
        max-height: 56vh;
    }

    #songList,
    #libSongList,
    #allSongList,
    #libraryList {
        max-height: 42vh !important;
    }

    .songsheet {
        font-size: 15px;
    }

    .song-row {
        gap: 0.6rem;
    }

    .song-action-group {
        gap: 0.3rem;
    }

    #libraryToggleFloating {
        right: 10px !important;
        padding: 10px 11px !important;
        border-radius: 10px !important;
    }
}

/* <= 768px */
@media (max-width: 768px) {
    .navbar .btn {
        padding: 0.3rem 0.65rem;
    }
}

/* Phone + small tablet */
@media (max-width: 767px) {
    body {
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    header.sticky-top {
        position: sticky;
        top: 0;
        z-index: 1030;
    }

    main.container-fluid {
        margin-top: 0.75rem !important;
        margin-bottom: 0.75rem !important;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    .card {
        border-radius: 0.85rem;
    }

    .card-body {
        padding: 0.85rem;
    }

    .songsheet {
        font-size: 15px;
        line-height: 1.12;
    }

    .songsheet.two-column {
        column-count: 1;
    }

    .navbar .btn,
    #userMenuBtn {
        min-height: 36px;
    }

    #authControls {
        width: 100%;
        margin-top: 0.5rem;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .view-controls {
        flex-wrap: wrap;
    }

    .view-controls .btn {
        min-height: 34px;
    }

    .input-group.input-group-sm {
        flex-wrap: nowrap;
    }

    .input-group.input-group-sm .form-control,
    .input-group.input-group-sm .btn {
        min-height: 38px;
    }

    #preview {
        max-height: 52vh;
        min-height: 180px;
        padding: 0.65rem !important;
        border-radius: 0.5rem;
    }

    #songList,
    #libSongList,
    #allSongList,
    #libraryList {
        max-height: 40vh !important;
        overflow: auto !important;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    #songList .list-group-item,
    #libSongList .list-group-item,
    #allSongList .list-group-item,
    #libraryList .list-group-item {
        display: block;
        align-items: flex-start;
        min-height: 44px;
        padding: 0.6rem 0.7rem;
    }

    /* MOBILE = buttons below title/key */
    .song-row {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.45rem;
    }

    .song-row-main {
        flex: none;
        width: 100%;
        min-width: 0;
        margin: 0;
    }

    .song-row-main > .d-flex {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.35rem;
        min-width: 0;
    }

    .song-row-main strong {
        display: block;
        min-width: 0;
        max-width: 100%;
        line-height: 1.2;
        white-space: normal;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .song-row-actions {
        flex: none;
        width: 100%;
        margin: 0;
        min-width: 0;
    }

    .song-action-group {
        display: flex;
        width: 100%;
        justify-content: flex-start;
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 0.35rem;
        overflow: visible;
    }

    .song-action-group > .btn {
        flex: 0 0 auto;
        min-width: 72px;
        white-space: nowrap;
        margin-left: 0 !important;
        border-radius: 0.375rem !important;
    }

    .song-action-group > .btn + .btn {
        margin-left: 0 !important;
    }

    #songList .list-group-item .btn,
    #libSongList .list-group-item .btn,
    #allSongList .list-group-item .btn,
    #libraryList .list-group-item .btn {
        min-height: 34px;
        padding: 0.2rem 0.5rem;
    }

    #activeLibraryTitle,
    .card h5,
    .card h6,
    .card .h6 {
        line-height: 1.2;
    }

    .d-flex.gap-2,
    .mb-2.d-flex.align-items-center.gap-2 {
        flex-wrap: wrap;
    }

    .mb-2.d-flex.align-items-center.gap-2 > * {
        min-width: 0;
    }

    .mb-2.d-flex.align-items-center.gap-2 .input-group {
        flex: 1 1 100%;
    }

    #libraryToggleFloating {
        top: auto !important;
        right: 12px !important;
        bottom: 14px !important;
        transform: none !important;
        min-width: 42px;
        min-height: 42px;
        padding: 10px 12px !important;
        border-radius: 999px !important;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
    }

    #presentOverlay .present-topbar {
        inset: 0;
    }

    #presentOverlay .present-tools {
        left: 10px;
        bottom: 10px;
        gap: 0.3rem;
        max-width: calc(100vw - 84px);
        padding: 0.3rem;
        border-radius: 18px;
        flex-wrap: wrap;
    }

    #presentOverlay .present-close-btn {
        top: 10px;
        right: 10px;
    }

    #presentOverlay .present-tool-btn,
    #presentOverlay .present-close-btn,
    #presentOverlay .present-nav button {
        min-width: 42px;
        min-height: 42px;
        padding: 0 0.8rem;
    }

    #presentOverlay .present-stage {
        width: 100vw;
        height: 100vh;
        padding: 11vh 5vw 7vh;
    }

    #presentOverlay .present-nav {
        padding: 0 0.35rem;
    }

    #presentOverlay .present-sheet {
        font-size: clamp(22px, 5.8vw, 38px);
    }

    #presentOverlay .present-sheet-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    footer {
        padding-bottom: calc(0.9rem + env(safe-area-inset-bottom, 0)) !important;
    }
}

/* Mid-size phones */
@media (min-width: 480px) and (max-width: 767px) {
    #preview {
        max-height: 56vh;
    }

    #songList,
    #libSongList,
    #allSongList,
    #libraryList {
        max-height: 42vh !important;
    }
}

/* Landscape phones */
@media (max-width: 932px) and (orientation: landscape) {
    #preview {
        max-height: 44vh;
    }

    #songList,
    #libSongList,
    #allSongList,
    #libraryList {
        max-height: 34vh !important;
    }

    #libraryToggleFloating {
        bottom: 10px !important;
    }

    #presentOverlay .present-stage {
        padding: 14vh 4vw 8vh;
    }
}

/* Library search / add-song controls */
#quickFilterBtn {
    border-top-right-radius: 0.375rem !important;
    border-bottom-right-radius: 0.375rem !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

#addSongBtn {
    border-radius: 0.375rem !important;
    margin-left: 0.5rem !important;
}

#quickFilterBtn,
#addSongBtn {
    position: relative;
    z-index: 1;
}

/* FINAL mobile row-height fix */
@media (max-width: 767px) {
    #songList .list-group-item,
    #libSongList .list-group-item,
    #allSongList .list-group-item,
    #libraryList .list-group-item {
        display: block !important;
        height: auto !important;
        min-height: unset !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 0.7rem !important;
    }

    #songList .list-group-item .song-row,
    #libSongList .list-group-item .song-row,
    #allSongList .list-group-item .song-row,
    #libraryList .list-group-item .song-row {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
    }

    #songList .list-group-item .song-row-main,
    #libSongList .list-group-item .song-row-main,
    #allSongList .list-group-item .song-row-main,
    #libraryList .list-group-item .song-row-main {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 0 0.45rem 0 !important;
        overflow: visible !important;
    }

    #songList .list-group-item .song-row-actions,
    #libSongList .list-group-item .song-row-actions,
    #allSongList .list-group-item .song-row-actions,
    #libraryList .list-group-item .song-row-actions {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
    }

    #songList .list-group-item strong,
    #libSongList .list-group-item strong,
    #allSongList .list-group-item strong,
    #libraryList .list-group-item strong {
        display: block !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
        line-height: 1.2 !important;
    }

    #songList .list-group-item .small,
    #songList .list-group-item small,
    #libSongList .list-group-item .small,
    #libSongList .list-group-item small,
    #allSongList .list-group-item .small,
    #allSongList .list-group-item small,
    #libraryList .list-group-item .small,
    #libraryList .list-group-item small {
        display: inline-block;
        white-space: normal !important;
        line-height: 1.15 !important;
    }

    #songList .list-group-item .song-action-group,
    #libSongList .list-group-item .song-action-group,
    #allSongList .list-group-item .song-action-group,
    #libraryList .list-group-item .song-action-group {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 0.35rem !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
    }

    #songList .list-group-item .song-action-group > .btn,
    #libSongList .list-group-item .song-action-group > .btn,
    #allSongList .list-group-item .song-action-group > .btn,
    #libraryList .list-group-item .song-action-group > .btn,
    #songList .list-group-item .song-row-actions .btn,
    #libSongList .list-group-item .song-row-actions .btn,
    #allSongList .list-group-item .song-row-actions .btn,
    #libraryList .list-group-item .song-row-actions .btn {
        margin: 0 !important;
        min-width: 72px !important;
        white-space: nowrap !important;
        border-radius: 0.375rem !important;
    }

    #songList .list-group-item .song-action-group > .btn + .btn,
    #libSongList .list-group-item .song-action-group > .btn + .btn,
    #allSongList .list-group-item .song-action-group > .btn + .btn,
    #libraryList .list-group-item .song-action-group > .btn + .btn {
        margin-left: 0 !important;
    }
}

.force-rounded {
  border-radius: 0.375rem !important;
}

/* ── Home page ──────────────────────────────────────────────────── */

.hero-section { padding: 4.5rem 0 3.5rem; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0d6efd;
  background: rgba(13,110,253,0.07);
  border: 1px solid rgba(13,110,253,0.15);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  margin-bottom: 1.1rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #0d1b2a;
  margin-bottom: 1rem;
}
.hero-title span { color: #0d6efd; }

.hero-sub {
  font-size: 1.05rem;
  color: #6c757d;
  max-width: 48ch;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.hero-actions .btn-lg {
  padding: 0.7rem 1.6rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
}

.hero-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: #495057;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
}

.notice-small { font-size: 0.72rem; color: #adb5bd; }

/* Chord preview card */
.chord-card {
  background: #0d1b2a;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(13,27,42,0.18);
}
.chord-card-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
}
.chord-dot { width: 10px; height: 10px; border-radius: 50%; }
.chord-card-filename {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  font-family: 'Roboto Mono', monospace;
  margin-left: 0.5rem;
}
.chord-card-body {
  padding: 1.25rem 1.35rem 1.5rem;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.82rem;
  line-height: 1.9;
  color: #c9d1d9;
}
.chord-token   { color: #79c0ff; font-weight: 600; }
.chord-directive { color: #d2a8ff; font-style: italic; }
.chord-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.chord-tag {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  font-family: 'Roboto Mono', monospace;
  letter-spacing: 0.05em;
}
.chord-copy-btn {
  font-size: 0.75rem;
  border-color: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
}
.chord-copy-btn:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

/* Feature strip */
.feature-strip {
  padding: 2.75rem 0 3rem;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 0.75rem;
  height: 100%;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}
.feature-item:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  border-color: #d0d7de;
}
.feature-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0d6efd;
}
.feature-title { font-size: 0.92rem; font-weight: 700; color: #0d1b2a; margin: 0; }
.feature-desc  { font-size: 0.82rem; color: #6c757d; margin: 0; line-height: 1.5; }

/* How it works */
.quickstart-section { padding: 3rem 0 3.5rem; }
.quickstart-heading {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0d1b2a;
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem;
}
.lead-sub { font-size: 0.9rem; color: #6c757d; margin-bottom: 1.75rem; }

.step-row { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.1rem; }
.step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0d6efd;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.step-text strong { font-size: 0.9rem; color: #0d1b2a; display: block; }
.step-text span   { font-size: 0.82rem; color: #6c757d; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, #0d1b2a 0%, #1a3a5c 100%);
  border-radius: 1rem;
  padding: 2.75rem 2.5rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cta-banner h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}
.cta-banner p  { font-size: 0.9rem; color: rgba(255,255,255,0.65); margin: 0; max-width: 44ch; }
.cta-banner .btn-light {
  font-weight: 700;
  padding: 0.65rem 1.5rem;
  border-radius: 0.5rem;
  white-space: nowrap;
}