/* QuickMute site. Colours are the app's "Violet, lifted" tokens (UI/Theme/Violet.xaml).
   Fonts are Windows' own: nothing is downloaded. */

:root {
    --side: #1C1E30;
    --bg: #24263B;
    --surface: #2E3149;
    --raised: #393D5A;
    --line: #4A4E72;
    --frame: #5B5596;
    --divider: rgba(255, 255, 255, 0.08);
    --text: #F1F1F8;
    --text2: #BFC2DB;
    --text3: #8D91AE;
    --accent: #A698FF;
    --accent-hi: #C0B7FF;
    --accent-soft: rgba(166, 152, 255, 0.18);
    --on-accent: #18142F;
    --good: #5FD39A;

    --font: "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Segoe UI Variable Display", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --mono: "Cascadia Mono", "Cascadia Code", Consolas, ui-monospace, "SF Mono", Menlo, monospace;

    color-scheme: dark;
}

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

html {
    background: var(--side);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* The page snaps from screen to screen; only on screens tall enough for the intro. */
@media (min-width: 900px) and (min-height: 640px) {
    html {
        scroll-snap-type: y mandatory;
    }
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    margin: 0;
    background: var(--side);
    color: var(--text2);
    font: 400 17px/1.6 var(--font);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol {
    margin: 0;
}

ul, ol {
    padding: 0;
    list-style: none;
}

img,
svg {
    display: block;
    max-width: 100%;
}

button {
    font: inherit;
    color: inherit;
}

a {
    color: var(--accent-hi);
    text-underline-offset: 3px;
}

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

strong {
    color: var(--text);
    font-weight: 600;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 6px;
}

[hidden] {
    display: none !important;
}

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

.icon {
    width: 1em;
    height: 1em;
    flex: none;
    fill: currentColor;
}

.wrap {
    width: 100%;
    max-width: 1248px;
    margin: 0 auto;
    padding: 0 24px;
}

.screen {
    min-height: 100vh;
    min-height: 100svh;
    scroll-snap-align: start;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 28px;
    border-radius: 9px;
    background: var(--accent);
    color: var(--on-accent);
    font: 600 16px/1 var(--font);
    text-decoration: none;
    box-shadow: 0 10px 28px -12px rgba(166, 152, 255, 0.8);
    transition: background-color 0.15s;
}

.btn:hover {
    background: var(--accent-hi);
    color: var(--on-accent);
}

.btn .icon {
    font-size: 19px;
}

.version-chip {
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-hi);
    font: 600 11px/1.4 var(--font);
}

/* ───────────── Screen 1 ───────────── */

.intro {
    position: relative;
    display: flex;
    align-items: center;
    padding: 64px 0 112px;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(180deg, var(--side) 0%, #1F2136 65%, var(--bg) 100%);
}

.intro__glow {
    position: absolute;
    inset: -15%;
    z-index: -1;
    background:
        radial-gradient(36% 40% at 26% 42%, rgba(166, 152, 255, 0.28), transparent 70%),
        radial-gradient(34% 42% at 78% 60%, rgba(91, 85, 150, 0.5), transparent 72%),
        radial-gradient(26% 30% at 64% 14%, rgba(192, 183, 255, 0.16), transparent 70%),
        radial-gradient(30% 34% at 8% 94%, rgba(91, 85, 150, 0.32), transparent 70%);
}

@media (prefers-reduced-motion: no-preference) {
    .intro__glow {
        animation: drift 26s ease-in-out infinite alternate;
    }
}

@keyframes drift {
    from { transform: translate3d(-2%, -1.5%, 0) scale(1); }
    to   { transform: translate3d(2.5%, 2%, 0) scale(1.07); }
}

.intro__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 470px);
    gap: 72px;
    align-items: center;
    max-width: 1120px;
}

.intro__icon {
    width: 84px;
    height: 84px;
    margin-bottom: 26px;
    filter: drop-shadow(0 14px 30px rgba(166, 152, 255, 0.35));
}

.intro h1 {
    color: var(--text);
    font: 600 clamp(44px, 1.6rem + 3.2vw, 64px)/1 var(--font-display);
    letter-spacing: -0.025em;
}

.intro__desc {
    max-width: 470px;
    margin: 20px 0 34px;
    font-size: clamp(18px, 1rem + 0.35vw, 21px);
    line-height: 1.55;
    text-wrap: pretty;
}

.intro__meta {
    display: flex;
    flex-wrap: wrap;
    margin-top: 14px;
    color: var(--text3);
    font-size: 14px;
}

.intro__meta--os {
    margin-top: 2px;
}

/* "Version 1.1.1 · Released 13 Oct 2026 · Changelog": the version and date only appear once version.json loads. */
.intro__meta span:not([hidden])::after {
    content: "·";
    margin: 0 7px;
}

.intro__meta a {
    color: var(--accent-hi);
    text-decoration: none;
}

.intro__meta a:hover {
    color: var(--text);
    text-decoration: underline;
}

.features {
    padding: 6px 26px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    background: rgba(28, 30, 48, 0.55);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.features li {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 16px;
    padding: 15px 0;
}

.features li + li {
    border-top: 1px solid var(--divider);
}

.features .icon {
    margin-top: 2px;
    font-size: 22px;
    color: var(--accent-hi);
}

.features b {
    display: block;
    color: var(--text);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.features span {
    display: block;
    color: var(--text3);
    font-size: 15px;
    line-height: 1.45;
}

.next {
    position: absolute;
    left: 50%;
    bottom: 28px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-left: -22px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--text3);
    text-decoration: none;
    transition: color 0.15s, border-color 0.15s;
}

.next:hover {
    color: var(--text);
    border-color: var(--text3);
}

.next .icon {
    font-size: 20px;
}

@media (prefers-reduced-motion: no-preference) {
    .next {
        animation: nudge 2.4s ease-in-out infinite;
    }

    .next:hover {
        animation-play-state: paused;
    }
}

@keyframes nudge {
    0%, 60%, 100% { transform: translateY(0); }
    30%           { transform: translateY(5px); }
}

@media (max-width: 900px) {
    .intro__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 44px;
        max-width: 560px;
    }

    .intro__glow {
        background:
            radial-gradient(80% 36% at 25% 22%, rgba(166, 152, 255, 0.26), transparent 70%),
            radial-gradient(90% 40% at 85% 72%, rgba(91, 85, 150, 0.45), transparent 72%);
    }
}

/* ───────────── Screen 2 ───────────── */

.more {
    display: flex;
    align-items: center;
    padding: 56px 0;
    background: var(--bg);
}

.more__grid {
    display: grid;
    grid-template-columns: minmax(0, 640px) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
}

.more__text h2 {
    margin: 26px 0 8px;
    color: var(--text);
    font: 600 19px/1.3 var(--font-display);
}

.more__text h2:first-child {
    margin-top: 0;
}

.more__text p + p {
    margin-top: 10px;
}

.more__text p,
.notes li {
    font-size: 16px;
}

.notes {
    display: grid;
    gap: 8px;
}

.notes li {
    position: relative;
    padding-left: 18px;
}

.notes li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.65em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--text3);
}

.code-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 8px 8px 14px;
    border: 1px solid var(--divider);
    border-radius: 9px;
    background: var(--side);
}

.code-row + .code-row {
    margin-top: 8px;
}

.code-row__label {
    flex: none;
    width: 80px;
    color: var(--text3);
    font-size: 13px;
}

.code-row code {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    color: var(--accent-hi);
    font: 13px/1.6 var(--mono);
    white-space: nowrap;
    scrollbar-width: thin;
}

.code-row code.is-muted {
    color: var(--text3);
    font-family: var(--font);
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: none;
    min-height: 30px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface);
    color: var(--text);
    font: 500 13px/1 var(--font);
    cursor: pointer;
}

.copy-btn:hover {
    background: var(--raised);
}

.copy-btn.is-done {
    color: var(--good);
}

.copy-btn .icon {
    font-size: 14px;
}

.demo__hint {
    margin-top: 16px;
    color: var(--text3);
    font-size: 14px;
    text-align: center;
}

@media (max-width: 1140px) {
    .more__grid {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        gap: 48px;
    }

    .demo,
    .more__text {
        width: 100%;
        max-width: 640px;
    }
}

/* ───────────── The Settings window (HANDOFF.md §2, §6.1) ─────────────
   Every size is in app pixels × --u, so the window is exact at 640 px wide and scales down evenly.
   The page area is a 451 × 529 screenshot. */

.demo__scale {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    container-type: inline-size;
}

.qm {
    --u: calc(100cqw / 640);
    --edge: #35374A;
    display: grid;
    grid-template-columns: calc(186 * var(--u) + 1px) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--frame);
    border-radius: calc(10 * var(--u));
    background: var(--bg);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    font-family: var(--font);
    text-align: left;
}

.qm__title {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: calc(8 * var(--u));
    height: calc(32 * var(--u) + 1px);
    padding-left: calc(13 * var(--u));
    border-bottom: 1px solid var(--edge);
    background: var(--side);
    color: var(--text2);
    font-size: calc(12 * var(--u));
    line-height: 1;
}

.qm__mark {
    font-size: calc(14 * var(--u));
    color: var(--accent);
}

.qm__caption {
    display: grid;
    place-items: center;
    width: calc(44 * var(--u));
    height: 100%;
    color: var(--text2);
    font-size: calc(18 * var(--u));
}

.qm__name {
    flex: 1;
}

.qm__side {
    display: flex;
    flex-direction: column;
    gap: calc(2 * var(--u));
    padding: calc(12 * var(--u)) calc(8 * var(--u)) calc(11 * var(--u));
    border-right: 1px solid var(--edge);
    background: var(--side);
}

.qm__nav {
    position: relative;
    display: flex;
    align-items: center;
    gap: calc(10 * var(--u));
    height: calc(33 * var(--u));
    padding: 0 calc(10 * var(--u));
    border: 0;
    border-radius: calc(7 * var(--u));
    background: transparent;
    color: var(--text2);
    font-size: calc(13 * var(--u));
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}

.qm__nav .icon {
    font-size: calc(16 * var(--u));
    color: var(--text3);
}

.qm__nav .qm__on {
    display: none;
}

.qm__nav:hover {
    background: var(--surface);
}

.qm__nav[aria-selected="true"] {
    background: var(--accent-soft);
    color: var(--text);
    font-weight: 600;
}

.qm__nav[aria-selected="true"] .icon {
    color: var(--accent-hi);
}

.qm__nav[aria-selected="true"] .qm__off {
    display: none;
}

.qm__nav[aria-selected="true"] .qm__on {
    display: block;
}

/* The active page's bar on the sidebar's left edge. */
.qm__nav[aria-selected="true"]::before {
    content: "";
    position: absolute;
    left: calc(-8 * var(--u));
    top: calc(8 * var(--u));
    bottom: calc(8 * var(--u));
    width: calc(3 * var(--u));
    border-radius: 0 calc(2 * var(--u)) calc(2 * var(--u)) 0;
    background: var(--accent);
}

.qm__nav:focus-visible,
.qm__card:focus-visible {
    outline-offset: -2px;
}

.qm__card {
    display: grid;
    justify-items: start;
    gap: calc(6 * var(--u));
    margin-top: auto;
    padding: calc(10 * var(--u)) calc(11 * var(--u));
    border: 0;
    border-radius: calc(8 * var(--u));
    background: var(--surface);
    text-align: left;
    cursor: pointer;
}

.qm__card:hover {
    background: var(--raised);
}

.qm__card-label {
    color: var(--accent-hi);
    font-size: calc(10.5 * var(--u));
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: calc(14 * var(--u));
    text-transform: uppercase;
}

.qm__card-keys {
    display: flex;
    align-items: center;
    gap: calc(5 * var(--u));
}

.qm__key {
    margin-bottom: calc(2 * var(--u));
    padding: calc(4 * var(--u)) calc(7 * var(--u)) calc(5 * var(--u));
    border-radius: calc(5 * var(--u));
    background: var(--raised);
    color: var(--text);
    font-size: calc(12 * var(--u));
    font-weight: 600;
    line-height: calc(12 * var(--u));
    box-shadow: inset 0 0 0 1px var(--line), 0 calc(2 * var(--u)) 0 var(--accent);
}

.qm__plus {
    color: var(--text3);
    font-size: calc(11 * var(--u));
}

.qm__card-status {
    display: flex;
    align-items: center;
    gap: calc(7 * var(--u));
    color: var(--text3);
    font-size: calc(11 * var(--u));
    line-height: calc(15 * var(--u));
}

.qm__card-status::before {
    content: "";
    width: calc(6 * var(--u));
    height: calc(6 * var(--u));
    border-radius: 50%;
    background: var(--good);
}

.qm__panel {
    position: relative;
}

.qm__panel img {
    width: 100%;
    height: auto;
}

.qm__panel[data-quieter="off"] .qm__shot-on,
.qm__panel[data-quieter="on"] .qm__shot-off {
    display: none;
}

/* Click spots over the screenshot, placed as a share of the 564 × 661 page image. */
.qm__spot {
    position: absolute;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
}

.qm__spot--chip {
    --glow: 242, 182, 78;
    left: 27.48%;
    top: 33.74%;
    width: 17.38%;
    height: 4.99%;
}

.qm__panel[data-quieter="on"] .qm__spot--chip {
    width: 23.23%;
}

.qm__spot--switch {
    --glow: 166, 152, 255;
    left: 86.88%;
    top: 44.18%;
    width: 7.98%;
    height: 3.78%;
}

.qm__spot:hover {
    box-shadow: 0 0 0 2px rgba(var(--glow), 0.6);
}

.qm__spot:focus-visible {
    outline-offset: 2px;
    border-radius: 999px;
}

/* Everything clickable in the window glows until it has been tried: the pages until one is opened,
   the Quieter step until it's switched. The Quieter chip glows orange, like the app's own breathing chip. */
.qm__nav,
.qm__card {
    --glow: 166, 152, 255;
}

@media (prefers-reduced-motion: no-preference) {
    .qm:not(.is-explored) .qm__nav[aria-selected="false"],
    .qm:not(.is-explored) .qm__card,
    .qm:not(.is-tried) .qm__spot {
        animation: qm-pulse 2.4s ease-in-out infinite;
    }

    .qm__nav:nth-child(2) { animation-delay: 0.15s; }
    .qm__nav:nth-child(3) { animation-delay: 0.3s; }
    .qm__nav:nth-child(4) { animation-delay: 0.45s; }
    .qm__spot--switch { animation-delay: 0.6s; }
}

@media (prefers-reduced-motion: reduce) {
    .qm:not(.is-explored) .qm__nav[aria-selected="false"],
    .qm:not(.is-explored) .qm__card,
    .qm:not(.is-tried) .qm__spot {
        box-shadow: 0 0 0 1px rgba(var(--glow), 0.5);
    }
}

@keyframes qm-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(var(--glow), 0); }
    50%      { box-shadow: 0 0 0 1px rgba(var(--glow), 0.6), 0 0 14px 2px rgba(var(--glow), 0.4); }
}

/* ───────────── Changelog ───────────── */

.changes {
    display: flex;
    flex-direction: column;
    padding-top: 72px;
    border-top: 1px solid var(--divider);
    scroll-snap-align: start;
}

.changes__title {
    margin-bottom: 44px;
    color: var(--text);
    font: 600 clamp(28px, 1.2rem + 1.4vw, 36px)/1.2 var(--font-display);
    letter-spacing: -0.02em;
    text-align: center;
}

.releases {
    max-width: 880px;
    margin: 0 auto;
}

.changes__empty {
    color: var(--text3);
    text-align: center;
}

.release {
    position: relative;
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 28px;
    padding-bottom: 40px;
}

.release::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 14px;
    bottom: 0;
    width: 1px;
    background: var(--divider);
}

.release:last-child::before {
    display: none;
}

.release__meta {
    position: relative;
    padding-left: 30px;
}

.release__meta::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 11px;
    height: 11px;
    border: 2px solid var(--line);
    border-radius: 50%;
    background: var(--side);
}

.release.is-latest .release__meta::before {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.release h3 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font: 600 20px/1.3 var(--font-display);
}

.release time {
    display: block;
    margin-top: 2px;
    color: var(--text3);
    font-size: 14px;
}

.release__notes {
    display: grid;
    gap: 8px;
}

.release__notes li {
    position: relative;
    padding-left: 20px;
    font-size: 16px;
}

.release__notes li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.66em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.older {
    max-width: 880px;
    margin: 0 auto;
}

.older summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface);
    color: var(--text);
    font: 500 15px/1.2 var(--font);
    list-style: none;
    cursor: pointer;
}

.older summary::-webkit-details-marker {
    display: none;
}

.older summary:hover {
    background: var(--raised);
}

/* The arrow is drawn in CSS: the summary is built by site.js, and script-made SVG icons don't render reliably. */
.older summary::after {
    content: "";
    width: 7px;
    height: 7px;
    margin: 0 2px 4px 4px;
    border-right: 1.5px solid var(--text3);
    border-bottom: 1.5px solid var(--text3);
    transform: rotate(45deg);
    transition: transform 0.2s, margin 0.2s;
}

.older[open] summary::after {
    margin: 4px 2px 0 4px;
    transform: rotate(-135deg);
}

.footer {
    max-width: 928px;
    margin-top: 40px;
    padding-top: 24px;
    padding-bottom: 36px;
    border-top: 1px solid var(--divider);
    color: var(--text3);
    font-size: 15px;
}

.footer__small {
    margin-top: 6px;
    font-size: 14px;
}

.footer a {
    color: var(--text2);
}

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

@media (max-width: 640px) {
    .release {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .release__notes {
        padding-left: 30px;
    }
}

@media (max-width: 520px) {
    .wrap {
        padding: 0 16px;
    }

    .features {
        padding: 4px 18px;
    }

    .code-row {
        flex-wrap: wrap;
    }

    .code-row__label {
        width: 100%;
    }
}

/* ───────────── Download page ───────────── */

.dl-page main {
    display: grid;
    place-items: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: 40px 16px 56px;
}

.dl-card {
    width: 100%;
    max-width: 560px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg);
}

.dl-card__top {
    padding: 36px 32px 28px;
    text-align: center;
}

.dl-card__top img {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
}

.dl-card h1 {
    color: var(--text);
    font: 600 24px/1.25 var(--font-display);
}

.dl-card__sub {
    margin-top: 6px;
    color: var(--text3);
    font-size: 15px;
}

.dl-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    color: var(--text2);
    font-size: 15px;
}

.dl-status.is-done {
    color: var(--good);
}

.dl-status .icon {
    font-size: 18px;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--raised);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.dl-card .btn {
    width: 100%;
    justify-content: center;
}

.dl-steps,
.dl-verify {
    padding: 24px 32px 28px;
    border-top: 1px solid var(--divider);
}

.dl-verify {
    background: var(--side);
}

.dl-steps h2,
.dl-verify h2 {
    margin-bottom: 14px;
    color: var(--text);
    font: 600 16px/1.3 var(--font);
}

.dl-steps ol {
    display: grid;
    gap: 12px;
    counter-reset: dl;
}

.dl-steps li {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 12px;
    font-size: 15.5px;
    counter-increment: dl;
}

.dl-steps li::before {
    content: counter(dl);
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: var(--surface);
    color: var(--text2);
    font: 600 13px/1 var(--font);
}

.dl-steps li small {
    display: block;
    margin-top: 3px;
    color: var(--text3);
    font-size: 14px;
}

.dl-back {
    margin-top: 20px;
    text-align: center;
}

.dl-back a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text2);
    font-size: 15px;
    text-decoration: none;
}

.dl-back a:hover {
    color: var(--text);
}

@media (max-width: 520px) {
    .dl-card__top,
    .dl-steps,
    .dl-verify {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
}
