/* Fallbacks sized like the web fonts, so the page doesn't move when they arrive */
@font-face {
    font-family: 'Inter Fallback';
    src: local('Arial'), local('Helvetica');
    size-adjust: 107.12%;
    ascent-override: 90.44%;
    descent-override: 22.52%;
    line-gap-override: 0%;
}

@font-face {
    font-family: 'Montserrat Fallback';
    src: local('Arial'), local('Helvetica');
    size-adjust: 112.83%;
    ascent-override: 85.79%;
    descent-override: 22.25%;
    line-gap-override: 0%;
}

@font-face {
    font-family: 'JetBrains Mono Fallback';
    src: local('Courier New'), local('Menlo');
    size-adjust: 100%;
    ascent-override: 102%;
    descent-override: 30%;
    line-gap-override: 0%;
}

:root {
    /* Matches the app's Material dark theme, seeded from the logo colour */
    --ink: #111318;
    --night: #1E2128;
    --deep: #18202F;
    --brand: #1B2140;
    --primary: #B2C5FF;
    --on-primary: #102F63;
    --teal: #23B5A4;
    --orange: #FF8A3D;
    --red: #FF5470;
    --paper: #F3F4F8;
    --paper-2: #E8EAF1;
    --text: #E2E2E9;
    --muted: #AEB2BF;
    --ink-text: #171C2B;
    --ink-muted: #5A5F70;
    --line: rgba(196, 198, 208, .14);
    --display: 'Montserrat', 'Montserrat Fallback', 'Inter', system-ui, sans-serif;
    --mono: 'JetBrains Mono', 'JetBrains Mono Fallback', ui-monospace, SFMono-Regular, Menlo, monospace;
    color-scheme: dark;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 4.5rem;
}

body {
    margin: 0;
    overflow-x: clip;
    font-family: 'Inter', 'Inter Fallback', system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

p,
figure {
    margin: 0;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

/* Top bar */
.ds-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(17, 19, 24, .72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.ds-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    height: 4rem;
}

.ds-nav .ds-brand {
    margin: 0;
}

.ds-nav .ds-brand img {
    width: 2.1rem;
    height: 2.1rem;
}

.ds-nav .ds-brand span {
    font-size: 1.1rem;
}

.ds-nav__links {
    display: none;
    gap: 1.75rem;
    font-size: .92rem;
    color: var(--muted);
}

.ds-nav__links a:hover {
    color: var(--text);
}

@media (min-width: 900px) {
    .ds-nav__links {
        display: flex;
    }
}

.ds-nav__soon {
    padding: .4rem .85rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-family: var(--mono);
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--primary);
}

.ds-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

@media (min-width: 768px) {
    .ds-wrap {
        padding: 0 2rem;
    }
}

.ds-section {
    position: relative;
    padding: 5.5rem 0;
}

@media (min-width: 1024px) {
    .ds-section {
        padding: 7.5rem 0;
    }
}

.ds-night {
    background: var(--night);
}

.ds-deep {
    background: radial-gradient(120% 80% at 80% 0%, #252C40 0%, var(--deep) 45%, var(--ink) 100%);
}

.ds-light {
    background: var(--paper);
    color: var(--ink-text);
}

.ds-light-2 {
    background: var(--paper-2);
    color: var(--ink-text);
}

/* Rehearsal-mark section labels, as printed on a score */
.ds-mark {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.25rem;
    font-family: var(--mono);
    font-size: .78rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}

.ds-mark b {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border: 2px solid currentColor;
    border-radius: 4px;
    font-family: var(--display);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0;
    color: var(--primary);
}

.ds-light .ds-mark,
.ds-light-2 .ds-mark {
    color: var(--ink-muted);
}

.ds-light .ds-mark b,
.ds-light-2 .ds-mark b {
    color: var(--brand);
}

.ds-h1,
.ds-h2,
.ds-h3 {
    font-family: var(--display);
    font-weight: 800;
    letter-spacing: -.025em;
    margin: 0;
}

.ds-h1 {
    font-size: clamp(2.6rem, 6.4vw, 5.2rem);
    line-height: 1.1;
}

.ds-h2 {
    font-size: clamp(2rem, 4.2vw, 3.3rem);
    line-height: 1.12;
}

.ds-h3 {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.25;
}

.ds-grad {
    background: linear-gradient(100deg, #8EA5EA 0%, var(--primary) 55%, #DCE4FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ds-lead {
    margin: 1.25rem 0 0;
    font-size: 1.12rem;
    line-height: 1.65;
    color: var(--muted);
    max-width: 36rem;
}

.ds-light .ds-lead,
.ds-light-2 .ds-lead {
    color: var(--ink-muted);
}

.ds-list {
    list-style: none;
    margin: 1.75rem 0 0;
    padding: 0;
    display: grid;
    gap: .85rem;
}

.ds-list li {
    position: relative;
    padding-left: 1.6rem;
    line-height: 1.55;
}

.ds-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: .7rem;
    height: .45rem;
    border-top: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
}

.ds-light .ds-list li::before,
.ds-light-2 .ds-list li::before {
    border-color: var(--brand);
}

.ds-split {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .ds-split {
        grid-template-columns: 5fr 7fr;
        gap: 4.5rem;
    }

    .ds-split--flip {
        grid-template-columns: 7fr 5fr;
    }

    .ds-split--flip> :first-child {
        order: 2;
    }
}

.ds-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .3rem .7rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-family: var(--mono);
    font-size: .78rem;
    color: var(--muted);
    background: rgba(255, 255, 255, .03);
    white-space: nowrap;
}

.ds-light .ds-chip,
.ds-light-2 .ds-chip {
    border-color: rgba(23, 28, 43, .14);
    color: var(--ink-muted);
    background: rgba(255, 255, 255, .6);
}

/* Device frame + screenshot slot */
.ds-device {
    position: relative;
    padding: 10px;
    border-radius: 30px;
    background: linear-gradient(160deg, #30353F, #0B0C10 40%, #16181D);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, .07),
        0 50px 100px -30px rgba(0, 0, 0, .7),
        0 0 80px -20px rgba(178, 197, 255, .16);
}

.ds-device::after {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(transparent, rgba(255, 255, 255, .12) 20%, rgba(255, 255, 255, .12) 80%, transparent);
    pointer-events: none;
}

.ds-shot {
    border-radius: 21px;
    overflow: hidden;
    background: #1E2128;
}

.ds-shot picture {
    display: block;
}

.ds-shot img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: auto var(--ratio);
}

.ds-shot.is-empty img {
    display: none;
}

.ds-shot__empty {
    aspect-ratio: var(--ratio);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: 1.5rem;
    text-align: center;
    border: 1.5px dashed rgba(196, 198, 208, .28);
    border-radius: 21px;
    background:
        repeating-linear-gradient(180deg, transparent 0 22px, rgba(196, 198, 208, .05) 22px 23px),
        radial-gradient(80% 70% at 50% 40%, rgba(178, 197, 255, .10), transparent 70%),
        #1E2128;
}

.ds-shot.is-empty .ds-shot__empty {
    display: flex;
}

.ds-shot__empty svg {
    width: 2.4rem;
    height: 2.4rem;
    fill: none;
    stroke: var(--muted);
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: .8;
}

.ds-shot__label {
    font-family: var(--display);
    font-weight: 700;
    color: var(--text);
}

.ds-shot__path {
    font-family: var(--mono);
    font-size: .72rem;
    color: var(--muted);
    opacity: .8;
}

/* Hero */
.ds-hero {
    position: relative;
    overflow: hidden;
    padding: 4rem 0 0;
    background:
        radial-gradient(60% 60% at 85% 20%, rgba(178, 197, 255, .16), transparent 70%),
        radial-gradient(50% 50% at 10% 90%, rgba(178, 197, 255, .08), transparent 70%),
        var(--ink);
}

@media (min-width: 1024px) {
    .ds-hero {
        padding-top: 6rem;
    }
}

.ds-hero__grid {
    display: grid;
    gap: 3.5rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .ds-hero__grid {
        grid-template-columns: 5fr 7fr;
        gap: 3rem;
    }
}

.ds-brand {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-bottom: 2rem;
}

.ds-brand img {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 22.5%;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 8px 20px -6px rgba(0, 0, 0, .6);
}

.ds-brand span {
    font-family: var(--display);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -.01em;
}

.ds-brand span b {
    color: var(--primary);
    font-weight: 800;
}

.ds-eyebrow {
    display: inline-block;
    margin-bottom: 1.25rem;
    font-family: var(--mono);
    font-size: .8rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--primary);
}

.ds-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    margin-top: 2.25rem;
}

/* One per row on phones: side by side they fit or wrap depending on whether the web fonts have arrived */
@media (max-width: 520px) {
    .ds-cta {
        flex-direction: column;
        align-items: flex-start;
    }
}

.ds-store {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    padding: .8rem 1.25rem .8rem 1rem;
    border-radius: 14px;
    background: var(--primary);
    color: var(--on-primary);
    font-weight: 600;
    line-height: 1.15;
    box-shadow: 0 10px 30px -10px rgba(178, 197, 255, .3);
}

.ds-store svg {
    width: 1.6rem;
    height: 1.6rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
}

.ds-store small {
    display: block;
    font-family: var(--mono);
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .82;
}

.ds-light .ds-store {
    background: var(--brand);
    color: #FFFFFF;
    box-shadow: 0 10px 30px -10px rgba(27, 33, 64, .45);
}

.ds-tour {
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid var(--line);
    padding-bottom: 2px;
}

.ds-tour:hover {
    border-color: var(--primary);
}

.ds-hero__visual {
    position: relative;
}

.ds-hero__visual::before {
    content: "";
    position: absolute;
    inset: -10% -5%;
    background: radial-gradient(50% 50% at 50% 50%, rgba(178, 197, 255, .20), transparent 70%);
    pointer-events: none;
}

/* 3D fold (fold/fold.js); the static frame shows until the model is ready, or if it can't load */
.ds-fold {
    position: relative;
    aspect-ratio: 1.3;
}

.ds-fold canvas {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: grab;
    transition: opacity .6s ease;
}

.ds-fold canvas:active {
    cursor: grabbing;
}

.ds-fold.is-ready canvas {
    opacity: 1;
}

.ds-fold__fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    transition: opacity .4s ease;
}

.ds-fold__fallback .ds-device {
    width: 100%;
}

.ds-fold.is-ready .ds-fold__fallback {
    opacity: 0;
    visibility: hidden;
}

.ds-fold__toggle {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 1.75rem auto 0;
    padding: .55rem 1rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    font: 600 .85rem/1 'Inter', system-ui, sans-serif;
    color: var(--text);
    cursor: pointer;
}

.ds-fold__toggle[hidden] {
    display: none;
}

.ds-fold__toggle:hover {
    border-color: rgba(178, 197, 255, .5);
}

.ds-fold__toggle svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: var(--primary);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ds-formats {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 2.5rem;
}

/* Animated tab staff under the hero */
.ds-tabband {
    position: relative;
    margin-top: 4.5rem;
    height: 132px;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(30, 33, 40, .0), rgba(30, 33, 40, .9));
    overflow: hidden;
}

.ds-tabband svg {
    display: block;
    width: 100%;
    height: 100%;
}

.ds-tabband line {
    stroke: rgba(196, 198, 208, .22);
    stroke-width: 1;
}

.ds-tabband text {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 700;
    fill: var(--muted);
    text-anchor: middle;
    dominant-baseline: central;
    paint-order: stroke;
    stroke: #17191F;
    stroke-width: 6px;
}

.ds-tabband text.is-hot {
    fill: var(--orange);
}

.ds-tabband .ds-cursor {
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 0;
    width: 3px;
    border-radius: 3px;
    background: var(--primary);
    box-shadow: 0 0 18px 4px rgba(178, 197, 255, .55);
    animation: ds-sweep 9s linear infinite;
}

@keyframes ds-sweep {
    from {
        transform: translateX(-10px);
    }

    to {
        transform: translateX(100vw);
    }
}

/* Library */
.ds-songs {
    margin-top: 2rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, .025);
    overflow: hidden;
}

.ds-song {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1rem;
    padding: .9rem 1.1rem;
    border-bottom: 1px solid var(--line);
}

.ds-song__name {
    flex: 1 1 10rem;
    font-weight: 600;
}

.ds-song__name small {
    display: block;
    font-family: var(--mono);
    font-size: .72rem;
    font-weight: 400;
    color: var(--muted);
}

.ds-song__tags {
    display: flex;
    gap: .4rem;
}

.ds-backup {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .85rem 1.1rem;
    font-size: .9rem;
    color: var(--teal);
    background: rgba(35, 181, 164, .08);
}

.ds-backup svg {
    width: 1.1rem;
    height: 1.1rem;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Notation + tab demo */
.ds-score {
    border-radius: 22px;
    background: #FFFFFF;
    box-shadow: 0 30px 60px -30px rgba(23, 28, 43, .35), 0 0 0 1px rgba(23, 28, 43, .06);
    padding: 1.25rem 1.25rem 1rem;
}

.ds-score__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .75rem;
}

.ds-score__track {
    font-family: var(--mono);
    font-size: .78rem;
    color: var(--ink-muted);
}

.ds-score svg {
    display: block;
    width: 100%;
    height: auto;
}

.ds-score .staff line {
    stroke: #2B3040;
    stroke-width: 1;
}

.ds-score .tab line {
    stroke: #8E92A0;
    stroke-width: 1;
}

.ds-score .bar {
    stroke: #2B3040;
    stroke-width: 1.4;
}

.ds-score .head {
    fill: var(--ink-text);
}

.ds-score .stem {
    stroke: var(--ink-text);
    stroke-width: 1.4;
}

.ds-score .fret {
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 700;
    fill: var(--ink-text);
    text-anchor: middle;
    dominant-baseline: central;
    paint-order: stroke;
    stroke: #FFFFFF;
    stroke-width: 7px;
}

.ds-score .clef {
    font-size: 58px;
    fill: var(--ink-text);
}

.ds-score .tsig,
.ds-score .tablabel {
    font-family: var(--display);
    font-weight: 800;
    fill: var(--ink-text);
    text-anchor: middle;
}

.ds-score .tsig {
    font-size: 21px;
}

.ds-score .tablabel {
    font-size: 13px;
}

.ds-score [hidden] {
    display: none;
}

.ds-score .slash .mark line {
    stroke: var(--ink-text);
    stroke-width: 3;
    stroke-linecap: round;
}

.ds-score .playhead {
    fill: var(--brand);
    opacity: .9;
    animation: ds-playhead 6s linear infinite;
}

.ds-score .playhead {
    transform-box: fill-box;
    transform-origin: top;
}

@keyframes ds-playhead {
    from {
        translate: 0 0;
    }

    to {
        translate: 470px 0;
    }
}

.ds-seg {
    display: inline-flex;
    padding: 4px;
    gap: 2px;
    border-radius: 12px;
    background: rgba(23, 28, 43, .07);
}

.ds-seg button {
    appearance: none;
    border: 0;
    margin: 0;
    padding: .45rem .85rem;
    border-radius: 9px;
    background: transparent;
    font: 600 .85rem/1 'Inter', system-ui, sans-serif;
    color: var(--ink-muted);
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.ds-seg button[aria-pressed="true"] {
    background: #FFFFFF;
    color: var(--ink-text);
    box-shadow: 0 1px 3px rgba(23, 28, 43, .15);
}

.ds-seg--dark {
    background: rgba(255, 255, 255, .06);
}

.ds-seg--dark button {
    color: var(--muted);
}

.ds-seg--dark button[aria-pressed="true"] {
    background: var(--primary);
    color: var(--on-primary);
    box-shadow: 0 4px 14px -4px rgba(178, 197, 255, .32);
}

.ds-wide {
    margin-top: 4rem;
}

/* Playback techniques */
.ds-techs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
    gap: .75rem;
    margin-top: 2rem;
}

.ds-tech {
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .025);
}

.ds-tech svg {
    width: 2rem;
    height: 2rem;
    fill: none;
    stroke: var(--orange);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ds-tech span {
    display: block;
    margin-top: .5rem;
    font-size: .92rem;
    font-weight: 600;
}

/* Practice tools */
.ds-console {
    display: grid;
    gap: 1rem;
    margin-top: 3.5rem;
}

@media (min-width: 768px) {
    .ds-console {
        grid-template-columns: repeat(6, 1fr);
    }

    .ds-card--2 {
        grid-column: span 2;
    }

    .ds-card--3 {
        grid-column: span 3;
    }

    .ds-card--4 {
        grid-column: span 4;
    }

    .ds-card--6 {
        grid-column: span 6;
    }
}

.ds-card {
    padding: 1.75rem;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(170deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015));
}

.ds-card__icon {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 1.25rem;
    border-radius: 12px;
    background: linear-gradient(140deg, rgba(178, 197, 255, .16), rgba(178, 197, 255, .11));
    box-shadow: inset 0 0 0 1px rgba(178, 197, 255, .25);
}

.ds-card__icon svg {
    width: 1.4rem;
    height: 1.4rem;
    fill: none;
    stroke: var(--primary);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ds-card p {
    margin: .5rem 0 0;
    font-size: .98rem;
    color: var(--muted);
}

.ds-card .ds-exports {
    margin-top: 1rem;
}

.ds-saved {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.5rem;
    border-radius: 18px;
    border: 1px dashed rgba(35, 181, 164, .5);
    color: var(--text);
    background: rgba(35, 181, 164, .07);
}

.ds-saved svg {
    width: 1.6rem;
    height: 1.6rem;
    flex: none;
    fill: none;
    stroke: var(--teal);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Editing */
.ds-palette {
    display: inline-flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: 2rem;
    padding: .5rem;
    border-radius: 16px;
    background: var(--ink-text);
    box-shadow: 0 20px 40px -20px rgba(23, 28, 43, .6);
}

.ds-palette span {
    display: grid;
    place-items: center;
    min-width: 2.4rem;
    height: 2.4rem;
    padding: 0 .5rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, .07);
    font-family: var(--mono);
    font-size: .95rem;
    font-weight: 700;
    color: var(--text);
}

.ds-palette svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ds-palette span.is-on {
    background: var(--primary);
    color: var(--on-primary);
}

.ds-palette .ds-palette__sep {
    min-width: 1px;
    width: 1px;
    padding: 0;
    margin: .4rem .15rem;
    height: auto;
    background: rgba(255, 255, 255, .15);
}

.ds-palette .ds-palette__saved {
    background: transparent;
    font-family: 'Inter', 'Inter Fallback', system-ui, sans-serif;
    font-size: .78rem;
    font-weight: 600;
    color: var(--teal);
}

.ds-cols {
    display: grid;
    gap: 1.25rem;
    margin-top: 3.5rem;
}

@media (min-width: 768px) {
    .ds-cols {
        grid-template-columns: repeat(3, 1fr);
    }
}

.ds-col {
    padding: 1.5rem;
    border-radius: 20px;
    background: #FFFFFF;
    box-shadow: 0 0 0 1px rgba(23, 28, 43, .06);
}

.ds-col .ds-num {
    display: inline-block;
    margin-bottom: .75rem;
    font-family: var(--mono);
    font-size: .78rem;
    font-weight: 700;
    color: var(--brand);
}

.ds-col p {
    margin: .5rem 0 0;
    color: var(--ink-muted);
    font-size: .95rem;
}

/* Retune demo */
.ds-retune {
    margin-top: 3.5rem;
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(170deg, rgba(178, 197, 255, .05), rgba(255, 255, 255, .015));
}

.ds-retune__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ds-tuning {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-family: var(--mono);
    font-size: .9rem;
}

.ds-tuning svg {
    width: 1.2rem;
    height: 1.2rem;
    fill: none;
    stroke: var(--primary);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ds-tabs {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 900px) {
    .ds-tabs {
        grid-template-columns: 1fr 1fr;
    }
}

.ds-tabpanel {
    padding: 1rem 1rem .75rem;
    border-radius: 16px;
    background: rgba(17, 19, 24, .65);
}

.ds-tabpanel h3 {
    margin: 0 0 .75rem;
    font-family: var(--mono);
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}

.ds-tabgrid {
    display: grid;
    grid-template-columns: 2rem repeat(8, 1fr);
    row-gap: 0;
    font-family: var(--mono);
}

.ds-tabgrid .s {
    font-size: .72rem;
    line-height: 1.5rem;
    color: var(--muted);
}

.ds-tabgrid .c {
    position: relative;
    height: 1.5rem;
    display: grid;
    place-items: center;
}

.ds-tabgrid .c::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: rgba(196, 198, 208, .28);
}

.ds-tabgrid .c b {
    position: relative;
    min-width: 1.5rem;
    padding: 0 .2rem;
    border-radius: 6px;
    background: #15171C;
    font-size: .9rem;
    text-align: center;
    color: var(--orange);
}

.ds-tabgrid .c b.is-changed {
    color: var(--primary);
}

.ds-tabgrid .c b.is-flag {
    background: var(--red);
    color: #FFFFFF;
}

.ds-pitches {
    display: grid;
    grid-template-columns: 2rem repeat(8, 1fr);
    margin-top: .6rem;
    padding-top: .6rem;
    border-top: 1px solid var(--line);
    font-family: var(--mono);
    font-size: .72rem;
    text-align: center;
    color: var(--muted);
}

.ds-pitches span:first-child {
    text-align: left;
}

.ds-retune__note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1.5rem;
    margin-top: 1.25rem;
    font-size: .92rem;
    color: var(--muted);
}

.ds-retune__note strong {
    color: var(--text);
}

.ds-flag-key {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

.ds-flag-key i {
    width: .9rem;
    height: .9rem;
    border-radius: 4px;
    background: var(--red);
}

/* Fingering + export */
.ds-duo-cards {
    align-items: start;
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 960px) {
    .ds-duo-cards {
        grid-template-columns: 1fr 1fr;
    }
}

.ds-panel {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    border-radius: 26px;
    background: #FFFFFF;
    box-shadow: 0 0 0 1px rgba(23, 28, 43, .06), 0 30px 60px -40px rgba(23, 28, 43, .4);
}

.ds-panel .ds-h2 {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.ds-panel .ds-lead {
    font-size: 1.02rem;
}

.ds-panel__art {
    margin-top: auto;
    padding-top: 2rem;
}

.ds-finger svg {
    display: block;
    width: 100%;
    height: auto;
}

.ds-pages {
    position: relative;
    display: flex;
    justify-content: center;
    padding: .5rem 0 1rem;
}

.ds-a4 {
    position: relative;
    width: min(15rem, 70%);
    aspect-ratio: 1 / 1.414;
    padding: 1.1rem 1rem;
    border-radius: 6px;
    background: #FFFFFF;
    box-shadow: 0 0 0 1px rgba(23, 28, 43, .1), 0 24px 40px -18px rgba(23, 28, 43, .45);
    color: var(--ink-text);
}

.ds-a4--back {
    position: absolute;
    top: .25rem;
    left: 50%;
    transform: translateX(-38%) rotate(6deg);
    opacity: .7;
}

.ds-a4__title {
    font-family: var(--display);
    font-size: .85rem;
    font-weight: 800;
    text-align: center;
}

.ds-a4__meta {
    display: flex;
    justify-content: space-between;
    margin: .35rem 0 .6rem;
    font-family: var(--mono);
    font-size: .5rem;
    color: var(--ink-muted);
}

.ds-a4__system {
    height: 2.1rem;
    margin-bottom: .55rem;
    background:
        repeating-linear-gradient(180deg, #3C4150 0 1px, transparent 1px 3px) top / 100% 13px no-repeat,
        repeating-linear-gradient(180deg, #A2A6B3 0 1px, transparent 1px 3px) bottom / 100% 17px no-repeat;
}

.ds-a4__page {
    position: absolute;
    bottom: .55rem;
    left: 0;
    right: 0;
    font-family: var(--mono);
    font-size: .5rem;
    text-align: center;
    color: var(--ink-muted);
}

.ds-exports {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1.25rem;
}

/* Made for iPhone Duo */
.ds-modes {
    display: grid;
    gap: 1.25rem;
    margin-top: 3.5rem;
}

@media (min-width: 768px) {
    .ds-modes {
        grid-template-columns: repeat(3, 1fr);
    }
}

.ds-mode {
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, .025);
}

.ds-mode p {
    margin: .35rem 0 0;
    font-size: .92rem;
    color: var(--muted);
}

.ds-mini {
    position: relative;
    display: flex;
    gap: 4px;
    aspect-ratio: 1.25;
    margin-bottom: 1.25rem;
    padding: 6px;
    border-radius: 16px;
    background: #0B0C10;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .08);
}

.ds-mini::after {
    content: "";
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 50%;
    width: 1px;
    background: rgba(255, 255, 255, .18);
}

.ds-mini>div {
    flex: 1;
    border-radius: 10px;
    background:
        repeating-linear-gradient(180deg, transparent 0 7px, rgba(196, 198, 208, .35) 7px 8px) 0 14px / 100% 40px repeat-y,
        #1E2128;
}

.ds-mini .is-panel {
    flex: 0 0 30%;
    background:
        linear-gradient(rgba(178, 197, 255, .35), rgba(178, 197, 255, .35)) 10px 14px / 60% 6px no-repeat,
        linear-gradient(rgba(196, 198, 208, .3), rgba(196, 198, 208, .3)) 10px 30px / 75% 6px no-repeat,
        linear-gradient(rgba(196, 198, 208, .3), rgba(196, 198, 208, .3)) 10px 46px / 50% 6px no-repeat,
        linear-gradient(rgba(196, 198, 208, .3), rgba(196, 198, 208, .3)) 10px 62px / 65% 6px no-repeat,
        #2D3037;
}

.ds-mini .is-other {
    background:
        linear-gradient(rgba(255, 255, 255, .12), rgba(255, 255, 255, .12)) 10px 12px / 45% 10px no-repeat,
        linear-gradient(rgba(255, 255, 255, .07), rgba(255, 255, 255, .07)) 10px 34px / calc(100% - 20px) 30px no-repeat,
        linear-gradient(rgba(255, 255, 255, .07), rgba(255, 255, 255, .07)) 10px 72px / calc(100% - 20px) 30px no-repeat,
        #282B33;
}

.ds-soon {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1.5rem;
    padding: .45rem .9rem;
    border-radius: 999px;
    background: rgba(255, 138, 61, .12);
    border: 1px solid rgba(255, 138, 61, .35);
    font-size: .88rem;
    color: #FFC59E;
}

/* Sound */
.ds-sound {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 900px) {
    .ds-sound {
        grid-template-columns: 1fr 1fr;
    }
}

.ds-eq {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 9rem;
    padding: 1rem;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .025);
}

.ds-eq span {
    flex: 1;
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(0deg, #4A5784, #8EA5EA 50%, var(--primary));
    transform-origin: bottom;
    animation: ds-eq 1.6s ease-in-out infinite alternate;
    animation-delay: calc(var(--d) * -1s);
}

@keyframes ds-eq {
    from {
        transform: scaleY(.18);
    }

    to {
        transform: scaleY(1);
    }
}

.ds-instruments {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1.5rem;
}

/* Final CTA */
.ds-final {
    text-align: center;
}

.ds-final__logo {
    width: min(38rem, 100%);
    margin: 0 auto 3rem;
    padding: 1rem 1.5rem;
    border-radius: 28px;
    background: #FFFFFF;
    box-shadow: 0 0 0 1px rgba(23, 28, 43, .05), 0 30px 60px -35px rgba(23, 28, 43, .35);
}

.ds-final__logo img {
    display: block;
    width: 100%;
    height: auto;
}

.ds-final .ds-lead {
    margin-left: auto;
    margin-right: auto;
}

.ds-final .ds-cta {
    justify-content: center;
}

/* Footer */
.ds-footer {
    padding: 3.5rem 0 2.5rem;
    border-top: 1px solid var(--line);
    background: var(--ink);
    font-size: .92rem;
    color: var(--muted);
}

.ds-footer__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.ds-footer .ds-brand {
    margin-bottom: 0;
}

.ds-footer .ds-brand img {
    width: 2.1rem;
    height: 2.1rem;
}

.ds-footer .ds-brand span {
    font-size: 1.1rem;
    color: var(--text);
}

.ds-footer a:hover {
    color: var(--text);
}

.ds-footer p a {
    color: var(--text);
    font-weight: 600;
}

.ds-footer__contact {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.ds-footer__legal {
    margin-top: 2.5rem;
    font-size: .78rem;
    opacity: .7;
}

@media (prefers-reduced-motion: reduce) {

    .ds-tabband .ds-cursor,
    .ds-score .playhead,
    .ds-eq span {
        animation: none;
    }
}

/* ---- Additions: library search, playback transport, editing, drums, chords, sound changes ---- */


.ds-note {
    margin: 1.5rem 0 0;
    color: var(--muted);
    font-size: .98rem;
}






.ds-saved a {
    color: var(--primary);
}

.ds-cols--4 {
    grid-template-columns: 1fr;
}

.ds-col--wide {
    grid-column: 1 / -1;
}

.ds-col .ds-exports {
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .ds-cols--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .ds-cols--4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .ds-col--span2 {
        grid-column: span 2;
    }
}

.ds-cols--dark .ds-col {
    background: linear-gradient(170deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015));
    box-shadow: 0 0 0 1px var(--line);
}

.ds-cols--dark .ds-col .ds-num {
    color: var(--primary);
}

.ds-cols--dark .ds-col p {
    color: var(--muted);
}

/* Drum roll */
.ds-roll {
    margin-top: 3rem;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(170deg, rgba(178, 197, 255, .05), rgba(255, 255, 255, .015));
}

.ds-roll__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: 1rem;
}

.ds-roll__title {
    font-family: var(--mono);
    font-size: .8rem;
    color: var(--muted);
}

.ds-roll__grid {
    position: relative;
    display: grid;
    gap: 3px;
    overflow: hidden;
}

.ds-roll__row {
    display: grid;
    grid-template-columns: 4.5rem repeat(var(--cols), 1fr);
    gap: 2px;
    align-items: stretch;
}

.ds-roll__label {
    display: flex;
    align-items: center;
    font-family: var(--mono);
    font-size: .72rem;
    color: var(--muted);
}

.ds-roll__cell {
    appearance: none;
    height: 1.9rem;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background: rgba(255, 255, 255, .05);
}

.ds-roll__cell.is-beat {
    background: rgba(255, 255, 255, .09);
}

.ds-roll__cell.is-on {
    background: var(--orange);
}

.ds-roll__vel {
    display: grid;
    grid-template-columns: 4.5rem repeat(var(--cols), 1fr);
    gap: 2px;
    align-items: end;
    height: 3.5rem;
    margin-top: .6rem;
    padding-top: .5rem;
    border-top: 1px solid var(--line);
}

.ds-roll__vel span:not(.ds-roll__label) {
    display: block;
    border-radius: 2px 2px 0 0;
    background: var(--teal);
}

.ds-roll__vel .ds-roll__label {
    align-self: center;
}


/* Bass */
.ds-bass .tab text.tablabel {
    font-size: 12px;
}

/* Chord builder */
.ds-chordbuilder {
    display: grid;
    gap: 1.5rem;
    margin-top: 3rem;
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(170deg, rgba(178, 197, 255, .05), rgba(255, 255, 255, .015));
}

@media (min-width: 900px) {
    .ds-chordbuilder {
        grid-template-columns: 14rem 1fr;
        align-items: center;
    }
}

.ds-chordbuilder__symbol {
    display: grid;
    place-items: center;
    min-height: 7rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, .05);
    font-family: var(--display);
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--text);
}

.ds-chordbuilder__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1rem;
    padding: .4rem 0;
}

.ds-chordbuilder__row > span {
    flex: 0 0 6rem;
    font-size: .8rem;
    font-family: var(--mono);
    color: var(--muted);
}

.ds-chordbuilder__row > div {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.ds-chordbuilder button {
    appearance: none;
    min-width: 2.4rem;
    padding: .45rem .7rem;
    border: 0;
    border-radius: 9px;
    background: rgba(255, 255, 255, .07);
    color: var(--text);
    font: 600 .85rem/1 'Inter', system-ui, sans-serif;
    cursor: pointer;
}

.ds-chordbuilder button[aria-pressed="true"] {
    background: var(--primary);
    color: var(--on-primary);
}

/* Sound changes */
.ds-timeline {
    margin-top: 2.5rem;
    padding: 1rem;
    border-radius: 20px;
    background: #FFFFFF;
    box-shadow: 0 0 0 1px rgba(23, 28, 43, .06);
}

.ds-timeline__row {
    display: grid;
    gap: .5rem;
    padding: .75rem 0;
}

.ds-timeline__row + .ds-timeline__row {
    border-top: 1px solid rgba(23, 28, 43, .08);
}

@media (min-width: 768px) {
    .ds-timeline__row {
        grid-template-columns: 9rem 1fr;
        align-items: center;
    }
}

.ds-timeline__name {
    font-family: var(--mono);
    font-size: .8rem;
    color: var(--ink-muted);
}

.ds-timeline__bars {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 3px;
}

.ds-timeline__bars > span {
    position: relative;
    min-height: 3rem;
    padding: .3rem .4rem;
    border-radius: 6px;
    background: rgba(23, 28, 43, .05);
}

.ds-timeline__bars i {
    display: block;
    font-style: normal;
    font-size: .9rem;
    line-height: 1;
    color: var(--brand);
}

.ds-timeline__bars small {
    display: block;
    margin-top: .2rem;
    font-size: .68rem;
    font-weight: 600;
    color: var(--ink-text);
}

.ds-timeline + .ds-instruments {
    margin-top: 1.25rem;
}

.ds-chordpos {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
}

@media (min-width: 640px) {
    .ds-chordpos {
        grid-template-columns: repeat(4, 1fr);
    }
}

.ds-chordpos figure {
    margin: 0;
    padding: .75rem .5rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, .05);
    text-align: center;
}

.ds-chordpos figcaption {
    margin-bottom: .25rem;
    font-family: var(--mono);
    font-size: .75rem;
    color: var(--muted);
}

.ds-chordpos svg {
    display: block;
    width: 100%;
    max-width: 8rem;
    height: auto;
    margin: 0 auto;
}

.ds-duo-cards {
    align-items: start;
}

.ds-panel__art {
    margin-top: 0;
}

/* Made for your device */
.ds-center {
    max-width: 44rem;
    margin: 0 auto;
    text-align: center;
}

.ds-devices {
    display: grid;
    gap: 1.25rem;
    margin-top: 3.5rem;
}

@media (min-width: 900px) {
    .ds-devices {
        grid-template-columns: 1.25fr 1fr;
    }
}

.ds-devcard {
    position: relative;
    padding: 1.75rem;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: linear-gradient(170deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
}

.ds-devcard .ds-device {
    margin-bottom: 1.5rem;
}

.ds-devcard__tag {
    display: inline-block;
    margin-bottom: 1rem;
    padding: .25rem .65rem;
    border-radius: 999px;
    background: rgba(35, 181, 164, .15);
    color: var(--teal);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ds-devcard__tag--next {
    background: rgba(255, 138, 61, .15);
    color: var(--orange);
}

.ds-ticks {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: .6rem;
}

.ds-ticks li {
    position: relative;
    padding-left: 1.6rem;
    color: var(--muted);
    font-size: .98rem;
}

.ds-ticks li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .35em;
    width: .9rem;
    height: .5rem;
    border-left: 2px solid var(--teal);
    border-bottom: 2px solid var(--teal);
    transform: rotate(-45deg) scale(.8);
}

.ds-everywhere {
    display: grid;
    gap: 1.5rem;
    align-items: center;
    margin-top: 1.25rem;
    padding: 2rem;
    border: 1px dashed rgba(255, 138, 61, .45);
    border-radius: 28px;
    background: rgba(255, 138, 61, .05);
}

.ds-everywhere p {
    margin: .5rem 0 0;
    max-width: 40rem;
    color: var(--muted);
}

.ds-everywhere__pts {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

@media (min-width: 900px) {
    .ds-everywhere {
        grid-template-columns: 1fr auto;
    }
}

/* iPhone: a portrait screen beside its text, under the two landscape cards. */
.ds-devcard--phone {
    display: grid;
    gap: 1.5rem;
    align-items: center;
    margin-top: 1.25rem;
}

.ds-devcard--phone .ds-device {
    width: min(16rem, 100%);
    margin: 0 auto;
}

@media (min-width: 900px) {
    .ds-devcard--phone {
        grid-template-columns: 16rem 1fr;
        column-gap: 3rem;
    }

    .ds-devcard--phone .ds-device {
        margin: 0;
    }
}

.ds-device--phone {
    border-radius: 40px;
}

.ds-device--phone .ds-shot,
.ds-device--phone .ds-shot__empty {
    border-radius: 31px;
}

/* No hinge on an iPhone. */
.ds-device--phone::after {
    display: none;
}

/* Smart fingering and export: full-width horizontal panels */
.ds-duo-cards {
    grid-template-columns: 1fr;
}

@media (min-width: 900px) {
    .ds-duo-cards .ds-panel {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 3rem;
        align-content: center;
        align-items: center;
        padding: 3rem;
    }

    .ds-duo-cards .ds-panel > * {
        grid-column: 1;
    }

    .ds-duo-cards .ds-panel .ds-panel__art {
        grid-column: 2;
        grid-row: 1 / span 3;
        padding-top: 0;
    }

    .ds-duo-cards .ds-panel--flip > * {
        grid-column: 2;
    }

    .ds-duo-cards .ds-panel--flip .ds-panel__art {
        grid-column: 1;
    }
}

/* A second button beside the App Store's, outlined so the store stays first. */
.ds-store--ghost,
.ds-light .ds-store--ghost {
    background: transparent;
    color: var(--brand);
    box-shadow: inset 0 0 0 1.5px var(--brand);
}

.ds-store--ghost:hover {
    background: rgba(27, 33, 64, .06);
}

/* Legal and support pages */
.ds-legal {
    min-height: 70vh;
    padding-top: 4rem;
}

.ds-legal__wrap {
    max-width: 46rem;
}

.ds-legal h1 {
    margin-bottom: .5rem;
}

.ds-legal h2.ds-h3,
.ds-legal h3 {
    margin: 2.25rem 0 .5rem;
    font-size: 1.15rem;
}

.ds-legal p,
.ds-legal li {
    color: var(--ink-muted);
    font-size: 1.02rem;
    line-height: 1.7;
    text-align: justify;
}

.ds-legal ul {
    padding-left: 1.25rem;
}

.ds-legal a {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ds-legal__meta {
    font-family: var(--mono);
    font-size: .85rem;
}

.ds-legal__lead {
    margin-top: 1.5rem;
    font-size: 1.1rem;
}

.ds-legal__lead strong {
    color: var(--ink-text);
}

.ds-legal .ds-legal__sub {
    margin-top: 3rem;
    font-size: 1.6rem;
}

.ds-todo {
    padding: 0 .3em;
    border-radius: 4px;
    background: #FFE9A8;
    color: #5A4300;
}

.ds-nav__links a[aria-current="page"] {
    color: var(--text);
}

/* Videos page */
.ds-video {
    margin-top: 1rem;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    overflow: hidden;
    background: #0B0C10;
    box-shadow: 0 30px 60px -35px rgba(23, 28, 43, .45);
}

.ds-video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.ds-legal .ds-video__note {
    margin-top: 1rem;
}
