/* ═════ The homepage's first view: simpleStutter's launch ═════
   simpleStutter's own dark window colour, its logo as big as the page allows,
   and one bar of its blocks under it. Nothing moves. Flat: no cards, no
   shadows. The same in light and dark mode, like the plugin's window. */

@font-face {
    font-family: "Unbounded";
    font-style: normal;
    font-weight: 200 900;
    font-display: swap;
    src: url("/fonts/unbounded-latin.woff2") format("woff2");
}

@font-face {
    font-family: "Space Grotesk";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("/fonts/space-grotesk-latin.woff2") format("woff2");
}

.stutter-hero {
    --sh-bg: #131418;
    --sh-panel: #1c1e24;
    --sh-edge: #2f333d;
    --sh-text: #f2efe8;
    --sh-copy: #c3c5cc;
    --sh-muted: #8f929c;
    --sh-ink: #121317;
    --sh-repeat: #ffb340;
    --sh-half: #36c9c6;
    --sh-reverse: #a98bff;
    --sh-stop: #ff6b6b;
    --sh-display: "Unbounded", "Arial Black", sans-serif;
    --sh-body: "Space Grotesk", -apple-system, "Segoe UI", Roboto, sans-serif;

    position: relative;
    overflow: hidden;
    padding: 3rem 0 4.5rem;
    background: var(--sh-bg);
    color: var(--sh-text);
    font-family: var(--sh-body);
}

/* A strip in each block colour along the bottom edge, like the plugin's grid. */
.stutter-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 6px;
    background: linear-gradient(90deg,
            var(--sh-half) 0 25%, var(--sh-repeat) 25% 50%, var(--sh-reverse) 50% 75%, var(--sh-stop) 75%);
}

.sh {
    width: var(--sheet-w);
    margin: 0 auto;
}

.sh ::selection {
    background: var(--sh-repeat);
    color: var(--sh-ink);
}

.sheet .sh a {
    text-decoration: none;
}

.sh a:focus-visible {
    outline: 2px solid var(--sh-text);
    outline-offset: 4px;
}

/* ── New ── */
.sh-eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.9rem;
    color: var(--sh-muted);
    font-size: 0.9375rem;
    font-weight: 500;
}

.sh-new {
    padding: 0.3rem 0.6rem 0.25rem;
    border-radius: 4px;
    background: var(--sh-repeat);
    color: var(--sh-ink);
    font-family: var(--sh-display);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* simpleStutter's Black Friday tag, shown by home.js while the sale runs. */
.sh-sale {
    margin-left: -0.45rem;
    background: var(--sh-stop);
}

.sh-sale[hidden] {
    display: none;
}

/* ── The logo ── */
.sh-logo-link {
    display: block;
    width: min(100%, 900px);
    margin-top: 2rem;
    text-decoration: none;
}

.sh-logo {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.sh-logo {
    --ls-simple: var(--sh-muted);
    --ls-word: var(--sh-text);
}

/* ── One bar of blocks ── */
.sh-bar {
    position: relative;
    margin-top: 2.75rem;
}

.sh-steps {
    display: grid;
    grid-template-columns: repeat(16, minmax(0, 1fr));
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sh-block {
    grid-column: var(--from) / var(--to);
    position: relative;
    height: 5.5rem;
    border-radius: 6px;
    background: var(--sh-block, var(--sh-panel));
}

.sh-block--play {
    background: var(--sh-panel);
    box-shadow: inset 0 0 0 1px var(--sh-edge);
}

/* The play block shows the sound going through untouched: 16 step marks. */
.sh-block--play::before {
    content: "";
    position: absolute;
    inset: 32% 10%;
    background: repeating-linear-gradient(90deg, var(--sh-edge) 0 3px, transparent 3px 25%);
}

.sh-block--repeat { --sh-block: var(--sh-repeat); }
.sh-block--half { --sh-block: var(--sh-half); }
.sh-block--reverse { --sh-block: var(--sh-reverse); }
.sh-block--stop { --sh-block: var(--sh-stop); }

.sh-block svg {
    position: absolute;
    inset: 22% 14%;
    width: 72%;
    height: 56%;
    overflow: visible;
}

.sh-block path {
    fill: none;
    stroke: var(--sh-ink);
    stroke-width: 4px;
    stroke-linecap: butt;
    vector-effect: non-scaling-stroke;
}

.sh-block-name {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 0;
    color: var(--sh-muted);
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
}



/* ── Words ── */
.sh-copy {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 1.5rem 3.5rem;
    align-items: start;
    margin-top: 4.25rem;
}

.sh-title {
    font-family: var(--sh-display);
    font-weight: 800;
    font-size: clamp(2rem, 1.2rem + 2.6vw, 3.25rem);
    line-height: 1.04;
    letter-spacing: -0.02em;
    color: var(--sh-text);
    text-wrap: balance;
}

.sh-lede {
    max-width: 40ch;
    color: var(--sh-copy);
    font-size: 1.125rem;
    line-height: 1.5;
    text-wrap: pretty;
}

.sh-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.5rem;
    margin-top: 1.75rem;
}

.sh .sh-cta {
    display: inline-flex;
    align-items: center;
    min-height: 3.25rem;
    padding: 0 1.5rem;
    border-radius: 6px;
    background: var(--sh-repeat);
    color: var(--sh-ink);
    font-family: var(--sh-display);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 120ms ease-out;
}

.sh .sh-cta:hover {
    background: #ffc66e;
}

.sh .sh-link {
    color: var(--sh-text);
    font-weight: 600;
    text-decoration: none;
}

.sh .sh-link span {
    display: inline-block;
    transition: transform 120ms ease-out;
}

.sh .sh-link:hover span {
    transform: translateX(3px);
}

.sh-note {
    max-width: 44ch;
    margin-top: 1.25rem;
    color: var(--sh-muted);
    font-size: 0.875rem;
    line-height: 1.5;
}

@media (max-width: 760px) {
    .stutter-hero {
        padding: 1.75rem 0 3.25rem;
    }

    .sh-logo-link {
        margin-top: 1.25rem;
    }

    .sh-eyebrow {
        font-size: 0.8125rem;
    }

    .sh-bar {
        margin-top: 2rem;
    }

    .sh-steps {
        gap: 3px;
    }

    .sh-block {
        height: 3.5rem;
        border-radius: 4px;
    }


    .sh-block path {
        stroke-width: 3px;
    }

    .sh-block-name {
        font-size: 0.6875rem;
    }

    /* Two-step blocks are too narrow for their names on a phone: one Repeat, no Reverse,
       and Tape stop lines up with the bar's right edge. */
    .sh-block--repeat + .sh-block--repeat .sh-block-name,
    .sh-block--reverse .sh-block-name {
        display: none;
    }

    .sh-block--stop .sh-block-name {
        left: auto;
        right: 0;
    }

    .sh-eyebrow-more {
        display: none;
    }

    .sh-copy {
        grid-template-columns: 1fr;
        margin-top: 3.25rem;
    }

    .sh-lede {
        font-size: 1.0625rem;
    }
}
