/* The home page, dark: one player, many looks. The app's Mac windows as they are, shadow and all, on a cool dark a
   step under the app's own #15161a so the windows stand off it, each lighting the page behind it in the colour of
   its look (the colorways, By note's colours, the lock pill's violet). Nothing else glows. The hero fans three
   windows out once on load; the screenshots run in a strip that scrolls sideways and open large in a dialog;
   the features and the specifications follow as plain ruled lists. Loaded after style.css, which still sets the
   fonts, the top bar and the footer the other pages share. */

:root {
    --wide: min(1120px, 100vw - 48px);    /* the hero's, the headings' and the lists' width; the top bar's edges */
    --page: #0d0e11;                      /* cool, a step under the app's #15161a */
    --lifted: #17181d;                    /* the features' band, a step over the app's grey */
    --deep: #08090c;                      /* the specifications' band, under the page */
    --text: #f2f2f5;
    --muted: #a3a4b0;                     /* body text and captions, 8:1 on the page */
    --figure-ink: #8e8f9c;                /* the features' figures, quieter than the titles under them, 6:1 */
    --hair: rgba(255, 255, 255, 0.09);    /* the lists' rules */
    --hair-strong: rgba(255, 255, 255, 0.16);
    /* Where the windows sit in the 1200 × 1528 screenshots (the window 976 × 1304 at 112, 76): the transparent
       margins the macOS shadow falls in, as fractions of the image's width and height */
    --side: 0.0933;
    color-scheme: dark;
}

/* The canvas behind a rubber-band overscroll in the page's dark at the top, the footer's past the middle */
html { background: var(--page); scroll-padding-top: calc(var(--bar-height) + 1.5rem); }
html.past-middle { background: var(--night); }

/* A violet wash in the top left corner, behind the bar and the claim, the claim's own colour */
body {
    background:
        radial-gradient(ellipse 60% 50% at 0% 0%, rgba(124, 92, 255, 0.14), transparent 70%) no-repeat,
        var(--page);
    color: var(--text);
}
a { color: var(--brand); }
h1, h2, h3 { color: var(--text); }

/* The top bar stays at the top, the page's dark a little see-through with the page blurred under it */
.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: color-mix(in srgb, var(--page) 72%, transparent);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    backdrop-filter: blur(16px) saturate(1.3);
    border-bottom: 1px solid var(--hair);
}
@media (prefers-reduced-transparency: reduce) { .topbar { background: var(--page); } }
.topbar nav a { color: var(--muted); }
.topbar nav a:hover, .topbar nav a[aria-current] { color: var(--text); }
.wordmark { text-shadow: none; }    /* the grey bar's shadow doesn't show on the dark */

/* The section headings in the claim's Inter Tight, large and tight */
main h2 {
    margin: 0;
    font-family: "Inter Tight", -apple-system, BlinkMacSystemFont, "Open Sans", system-ui, sans-serif;
    font-size: clamp(2rem, 3.6vw, 2.75rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

/* Hero: the words on the left, the fan of windows on the right, stacked on a phone */
header.hero {
    width: var(--wide);
    max-width: none;
    margin: 0 auto;
    padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
    display: grid;
    grid-template-columns: minmax(0, 31rem) minmax(0, 1fr);
    align-items: center;
    column-gap: 3rem;
    color: var(--text);
    text-align: left;
}
.hero .claim {
    margin: 0 0 1.5rem;
    font-family: "Inter Tight", -apple-system, BlinkMacSystemFont, "Open Sans", system-ui, sans-serif;
    font-size: clamp(2.6rem, 5.2vw, 4.2rem);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -0.03em;
    text-wrap: balance;
    color: #c9b8ff;
}
/* The claim lit from lavender at its top left to the pink of the windows' glow at its bottom right, blended in
   OKLCH so the hue turns without greying, the sRGB line before it for browsers without that */
@supports (background-clip: text) or (-webkit-background-clip: text) {
    .hero .claim {
        width: fit-content;
        background: linear-gradient(135deg, #c3b3ff, #ff93c9);
        background: linear-gradient(135deg in oklch, oklch(0.80 0.11 295), oklch(0.78 0.16 350));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
}
.hero .intro > p { max-width: 30rem; margin: 0; font-size: 1.2rem; line-height: 1.55; color: var(--muted); }
.hero a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 0.22em; }
.hero a:hover { text-decoration-color: var(--text); }
.hero .try-cta { display: block; margin-top: 2rem; }
.hero .try-online { display: block; font-size: 1.15rem; font-weight: 600; }
.hero .try-note { display: block; margin-top: 0.6rem; font-size: 0.9rem; color: var(--muted); }

/* The fan: the Strobe in front, a window either side behind it, a little smaller and dimmer. Each image is the
   whole screenshot with its shadow, placed by its own box. */
.fan { position: relative; aspect-ratio: 1 / 0.76; isolation: isolate; }
.fan .look { position: absolute; display: block; height: auto; max-width: none; }
.fan .front { z-index: 2; left: 21%; top: 0; width: 58%; }
.fan .side { z-index: 1; top: 10%; width: 48%; filter: brightness(0.8); }
.fan .left { left: 0; }
.fan .right { right: 0; }
/* The light of the three looks on the page behind them: the Circle's pink on the left, the strobe's coral in the
   middle, the guitar's mint on the right, and the lock pill's violet pooling under them */
.fan::before {
    content: "";
    position: absolute;
    inset: -14% -12% -12%;
    z-index: -1;
    background:
        radial-gradient(ellipse 26% 34% at 24% 50%, rgba(231, 111, 200, 0.32), transparent 72%),
        radial-gradient(ellipse 26% 34% at 76% 50%, rgba(181, 242, 219, 0.2), transparent 72%),
        radial-gradient(ellipse 30% 38% at 50% 44%, rgba(255, 103, 103, 0.34), transparent 72%),
        radial-gradient(ellipse 52% 16% at 50% 88%, rgba(162, 119, 255, 0.24), transparent 78%);
    pointer-events: none;
}
/* The one moment of motion on the page: the words rise, the front window comes up, the two behind slide out
   from under it, and the light comes up with them */
@keyframes front-in { from { opacity: 0; translate: 0 24px; } }
@keyframes left-out { from { opacity: 0; translate: 32% 4%; } }
@keyframes right-out { from { opacity: 0; translate: -32% 4%; } }
@keyframes light-up { from { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
    .hero .intro { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
    .fan .front { animation: front-in 0.9s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both; }
    .fan .left { animation: left-out 1.1s 0.35s cubic-bezier(0.22, 1, 0.36, 1) both; }
    .fan .right { animation: right-out 1.1s 0.35s cubic-bezier(0.22, 1, 0.36, 1) both; }
    .fan::before { animation: light-up 1.6s 0.2s ease-out both; }
}
@media (max-width: 760px) {
    header.hero { grid-template-columns: minmax(0, 1fr); row-gap: 2.5rem; padding-top: 2.5rem; text-align: center; }
    .hero .claim { margin-inline: auto; }
    .hero .intro > p { margin-inline: auto; }
    /* The front window larger, the two behind reaching past the page's edges */
    .fan .front { left: 17%; width: 66%; }
    .fan .side { top: 12%; width: 52%; }
    .fan .left { left: -14%; }
    .fan .right { right: -14%; }
}

/* The page under the hero: the screenshots, the features and the specifications, each on the hero's edges */
main { width: var(--wide); max-width: none; padding: 0; }
header.hero + main { padding-top: 0; }

/* Bands: the page steps between darks section by section, the hero and the screenshots on the page's own, the
   features on a lifted grey washed with the claim's violet from the top right and the app's cyan from the bottom
   left, the specifications on a deep one with a violet wash from above, each under a hairline. The colour runs
   the viewport's width behind the column; the page clips what passes its edges (html in style.css). */
.screens { padding-bottom: clamp(4rem, 8vw, 6rem); }
.band { position: relative; isolation: isolate; padding-block: clamp(4rem, 8vw, 6.5rem); }
.band::before {
    content: "";
    position: absolute;
    inset: 0 calc(50% - 50vw);
    z-index: -1;
    border-top: 1px solid var(--hair);
    pointer-events: none;
}
.band.lifted::before {
    background:
        radial-gradient(70% 90% at 100% 0%, rgba(124, 92, 255, 0.1), transparent 60%),
        radial-gradient(60% 80% at 0% 100%, rgba(130, 226, 255, 0.05), transparent 60%),
        var(--lifted);
}
.band.deep::before {
    background:
        radial-gradient(80% 60% at 50% 0%, rgba(124, 92, 255, 0.08), transparent 65%),
        var(--deep);
}

/* Screenshots: the heading with the strip's two step buttons on its right, then the windows in a row that runs
   past the page's right edge to the window's and scrolls sideways, each window's left edge on the heading's at
   rest. The strip is the whole viewport wide, pulled out of the column and padded back in; the padding is the
   heading's edge less the screenshot's transparent margin, so the window, not the image, lines up. */
.screens .head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.round {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid var(--hair-strong);
    border-radius: 50%;
    background: transparent;
    color: var(--text);
    cursor: pointer;
}
.round svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }
.round.back svg { transform: scaleX(-1); }
.round:hover:not(:disabled) { background: rgba(255, 255, 255, 0.08); }
.round:disabled { opacity: 0.3; cursor: default; }
.round:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.screens .steps { display: flex; gap: 0.5rem; }

.strip {
    --shot: clamp(240px, 24vw, 320px);    /* a screenshot's width with its margins, the window 81% of it */
    --edge: max(0px, 50vw - var(--wide) / 2 - var(--side) * var(--shot));
    display: flex;
    width: 100vw;
    margin: 0.5rem 0 0 calc(50% - 50vw);
    padding: 1.5rem var(--edge) 0.5rem;
    list-style: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--edge);
    scrollbar-width: none;
    isolation: isolate;    /* the glows sit under every window, not over the one before */
}
.strip::-webkit-scrollbar { display: none; }
.strip > li { flex: 0 0 var(--shot); margin: 0; scroll-snap-align: start; }
.strip figure { margin: 0; text-align: left; }
.strip a { position: relative; display: block; cursor: zoom-in; }
.strip img { display: block; width: 100%; height: auto; }
/* Each window's look lighting the page round it, and a pool of it under the window */
.strip a::before {
    content: "";
    position: absolute;
    inset: -6% -18% -2%;
    z-index: -1;
    background:
        radial-gradient(ellipse 44% 40% at 50% 46%, color-mix(in srgb, var(--glow) 30%, transparent), color-mix(in srgb, var(--glow) 9%, transparent) 55%, transparent 75%),
        radial-gradient(ellipse 46% 12% at 50% 88%, color-mix(in srgb, var(--glow) 26%, transparent), transparent 80%);
    pointer-events: none;
}
/* Focus rings the window, not the image with its margins */
.strip a:focus { outline: none; }
.strip a:focus-visible::after {
    content: "";
    position: absolute;
    inset: 5% 9.33% 9.7%;
    border-radius: 4% / 3%;
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}
/* The caption under the window, pulled up over the shadow's margin and as wide as the window */
.strip figcaption { margin: -9% calc(var(--side) * 100%) 0; font-size: 0.9rem; line-height: 1.45; color: var(--muted); }
.strip figcaption b, .viewer figcaption b { display: block; margin-bottom: 0.15rem; color: var(--text); font-weight: 600; }
@media (max-width: 600px) { .strip { --shot: 76vw; } }

/* The viewer: one screenshot as large as the screen allows, up to its own 2× size, lit like the strip's, with its
   caption, a step either way and a close button */
.viewer { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--text); }
.viewer[open] { display: grid; place-items: center; }
.viewer::backdrop { background: rgba(8, 9, 11, 0.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.viewer figure { position: relative; margin: 0; isolation: isolate; }
.viewer figure::before {
    content: "";
    position: absolute;
    inset: -4% -24% 6%;
    z-index: -1;
    background: radial-gradient(ellipse 46% 44% at 50% 46%, color-mix(in srgb, var(--glow, #82e2ff) 26%, transparent), transparent 75%);
}
.viewer img { display: block; width: auto; height: min(100svh - 8rem, 764px); max-width: 92vw; object-fit: contain; }
.viewer figcaption { max-width: 28rem; margin: -2.5rem auto 0; font-size: 0.95rem; line-height: 1.45; text-align: center; color: var(--muted); }
.viewer .round { position: fixed; background: rgba(13, 14, 17, 0.6); }
.viewer .close { top: 1rem; right: 1rem; }
.viewer .back, .viewer .next { top: 50%; translate: 0 -50%; }
.viewer .back { left: 1rem; }
.viewer .next { right: 1rem; }
@media (prefers-reduced-motion: no-preference) {
    .viewer[open], .viewer[open]::backdrop { animation: light-up 0.2s ease-out; }
}

/* Features: a ruled list in three columns, each item opening with a figure from its own content, the title
   and a sentence or two under it */
.feature-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 2.5rem; margin-top: 1.75rem; }
.feature-list section { display: flex; flex-direction: column; padding: 1.5rem 0 1.75rem; border-top: 1px solid var(--hair); }
.feature-list .num {
    font-variant-numeric: tabular-nums;
    font-size: 1.9rem;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--figure-ink);
}
.feature-list .num small { font-size: 0.5em; letter-spacing: 0; opacity: 0.8; }
/* The strings smaller and spaced, on the same line height as the other figures, so the titles beside it line up */
.feature-list .num.strings { font-size: 1.35rem; line-height: calc(1.9rem * 1.15); letter-spacing: 0.1em; }
.feature-list .tick { width: 1em; height: 1em; margin: 0 0.1em 0 -0.05em; vertical-align: -0.12em; fill: currentColor; }
.feature-list h3 { margin: 0.85rem 0 0.45rem; font-size: 1.05rem; font-weight: 600; line-height: 1.3; }
.feature-list p { margin: 0; font-size: 0.95rem; color: var(--muted); }
.feature-list p + p { margin-top: 0.6rem; }
.feature-list p.footnote { font-size: 0.8rem; }
@media (max-width: 1000px) { .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .feature-list { grid-template-columns: minmax(0, 1fr); } }

/* Specifications: the datasheet, a line length's width, the names in the text's colour and the values muted */
.specs { max-width: 50rem; margin-top: 1.75rem; }
.specs tr { border-top-color: var(--hair); }
.specs tr:last-child { border-bottom-color: var(--hair); }
.specs th, .specs td { padding: 0.75rem 0; }
.specs th { width: 12rem; color: var(--text); font-size: 0.9rem; font-weight: 600; text-transform: none; letter-spacing: 0; }
.specs td { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 600px) { .specs th { width: 8rem; } }

/* The footer a step up again from the deep band, in the app's own grey, under a hairline */
footer { background: var(--night); border-top: 1px solid var(--hair); }
.topbar ~ footer { border-top-color: var(--hair); }
