@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;0,6..72,700;1,6..72,400&family=JetBrains+Mono:wght@400;500;600&family=Cookie&display=swap');

:root {
    --bg: #0c0a08;
    --bg-2: #161210;
    --bg-3: #1f1a16;
    --ink: #f0e7d8;
    --ink-dim: #a89d8a;
    --ink-faint: #6e6557;
    --accent: #d49a4f;
    --accent-soft: #f3c789;
    --accent-light: #ffd896;
    --accent-deep: #8f5f2e;
    --accent-glow: rgba(212, 154, 79, 0.22);
    --line: #221d18;
    --line-2: #1a1612;
    --line-gold: rgba(212, 154, 79, 0.22);
    --display: 'Newsreader', Georgia, serif;
    --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --max: 1180px;
    --radius: 14px;
    --radius-lg: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--mono);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 92% -8%, rgba(212, 154, 79, 0.10), transparent 38%),
        radial-gradient(circle at -8% 100%, rgba(240, 231, 216, 0.025), transparent 50%);
    z-index: 0;
}

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

a { color: var(--ink); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--accent); }

h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.012em; line-height: 1.12; color: var(--ink); }
h1 { font-size: clamp(3rem, 6vw, 5.4rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.6rem); margin-bottom: 0.6em; }
h3 { font-size: 1.18rem; font-weight: 600; }

p { color: var(--ink-dim); }

.lead {
    font-family: var(--display);
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    color: var(--ink);
    line-height: 1.55;
    max-width: 36em;
}

.eyebrow {
    font-family: var(--mono);
    font-size: 0.74rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
}

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 28px;
    position: relative;
    z-index: 1;
}

.icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ── Header ─────────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(12, 10, 8, 0.72);
    border-bottom: 1px solid var(--line);
}
.site-header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    padding-top: 18px;
    padding-bottom: 18px;
}

.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    filter: drop-shadow(0 0 12px rgba(212, 154, 79, 0.28));
    transition: filter .25s ease;
    overflow: visible;
}
.brand:hover .brand-mark { filter: drop-shadow(0 0 16px rgba(212, 154, 79, 0.45)); }

/* Brand mark hover: real turntable physics — the disc spins under
 * the pivot, and the tonearm itself lifts off (-14deg around the
 * pivot ring center 700,102). The static post head circles drawn
 * after the arm path cover the rotation joint so the cap doesn't
 * visibly shift. */
.brand-mark__disc {
    transform-box: view-box;
    transform-origin: 412.5px 412.5px;
    animation: brand-disc-spin 6s linear infinite;
    animation-play-state: paused;
}
.brand:hover .brand-mark__disc { animation-play-state: running; }
@keyframes brand-disc-spin { to { transform: rotate(360deg); } }

.brand-mark__arm {
    transform-box: view-box;
    transform-origin: 700px 102px;
    transition: transform .55s cubic-bezier(.2, .8, .2, 1);
}
.brand:hover .brand-mark__arm { transform: rotate(-14deg); }

@media (prefers-reduced-motion: reduce) {
    .brand-mark__disc { animation: none; }
    .brand-mark__arm { transition: none; }
    .brand:hover .brand-mark__arm { transform: none; }
}
.brand-text { display: flex; flex-direction: column; line-height: 1; gap: 1px; }
.brand-name {
    font-family: var(--display);
    font-size: 1.95rem;
    font-weight: 500;
    letter-spacing: -0.014em;
    color: var(--ink);
    line-height: 1;
}
.brand-tagline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--mono);
    font-size: 0.55rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: #D78B40;
    line-height: 1;
    margin-top: 2px;
}
.brand-tagline__dot {
    color: var(--accent);
    font-size: 1.5em;
    line-height: 0;
    transform: translateY(-1px);
    opacity: 0.85;
}

.site-nav {
    display: flex;
    gap: 28px;
    justify-self: center;
    font-family: var(--mono);
    font-size: 0.86rem;
    letter-spacing: 0.04em;
}
.site-nav a {
    color: var(--ink-dim);
    padding: 6px 0;
    border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--accent); border-bottom-color: rgba(212, 154, 79, 0.4); }
.site-nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

.site-header__cta {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-self: end;
}

/* Buy me a coffee — small header chip */
.bmc-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 14px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid rgba(212, 154, 79, 0.4);
    color: var(--ink-dim);
    font-family: 'Cookie', cursive;
    font-size: 1.05rem;
    transition: border-color .18s ease, color .18s ease, background .18s ease, transform .15s ease, box-shadow .2s ease;
    white-space: nowrap;
}
.bmc-link svg { width: 16px; height: 16px; color: var(--accent); }
.bmc-link:hover {
    border-color: var(--accent);
    color: var(--ink);
    background: rgba(212, 154, 79, 0.06);
    transform: translateY(-1px);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Install split-button */
.install-cta { position: relative; flex: 0 0 auto; }
.install-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 38px;
    padding: 0 16px;
    border-radius: 8px;
    border: 1px solid var(--accent);
    background: linear-gradient(180deg, var(--accent-soft), var(--accent));
    color: #1a120a;
    font-family: var(--mono);
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 0 0 4px rgba(212, 154, 79, 0), 0 8px 20px -10px rgba(212, 154, 79, 0.55);
    transition: box-shadow .25s ease, transform .15s ease, filter .2s ease;
}
.install-cta__btn:hover {
    box-shadow: 0 0 0 6px var(--accent-glow), 0 10px 22px -8px rgba(212, 154, 79, 0.7);
    filter: brightness(1.06);
    transform: translateY(-1px);
}
.install-cta__btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px var(--accent-glow), 0 8px 20px -10px rgba(212, 154, 79, 0.55);
}
.install-cta__chevron {
    width: 14px;
    height: 14px;
    transition: transform .25s ease;
}
.install-cta.is-open .install-cta__chevron { transform: rotate(180deg); }

.install-cta__menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 280px;
    padding: 6px;
    border-radius: 14px;
    background: linear-gradient(180deg, var(--bg-2), var(--bg));
    border: 1px solid var(--line-gold);
    box-shadow: 0 30px 60px -30px #000, 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
    opacity: 0;
    transform: translateY(-6px);
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
    z-index: 40;
}
.install-cta:hover .install-cta__menu,
.install-cta:focus-within .install-cta__menu,
.install-cta.is-open .install-cta__menu {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    transition: opacity .2s ease, transform .2s ease;
}

.install-cta__item {
    display: grid;
    grid-template-columns: 36px 1fr;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    color: var(--ink);
}
.install-cta__item:hover { background: rgba(212, 154, 79, 0.08); color: var(--ink); }
.install-cta__icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(212, 154, 79, 0.08);
    color: var(--accent);
    display: grid;
    place-items: center;
}
.install-cta__icon svg { width: 20px; height: 20px; }
.install-cta__copy { display: flex; flex-direction: column; gap: 2px; }
.install-cta__copy strong { font-family: var(--mono); font-size: 0.84rem; font-weight: 600; color: var(--ink); }
.install-cta__copy small { font-size: 0.7rem; letter-spacing: 0.06em; color: var(--ink-faint); text-transform: uppercase; }

.install-cta--hero .install-cta__btn {
    height: 56px;
    padding: 0 28px;
    font-size: 1rem;
    border-radius: 10px;
}
.install-cta--hero .install-cta__chevron { width: 18px; height: 18px; }
.install-cta--hero .install-cta__menu { left: 0; right: auto; }

/* ── Hero ───────────────────────────────────────────────────────── */
.hero { padding: 80px 0 96px; }
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 64px;
    align-items: center;
}
.hero-text { min-width: 0; }
.hero-h1 {
    margin-bottom: 26px;
    max-width: 12ch;
    font-weight: 500;
}
.hero-h1__accent {
    color: var(--accent);
    font-style: italic;
    background: linear-gradient(180deg, var(--accent-light) 5%, var(--accent) 60%, var(--accent-deep));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 38px rgba(212, 154, 79, 0.32);
}
.hero-pill {
    display: inline-block;
    vertical-align: middle;
    margin-right: 12px;
    padding: 5px 12px 4px;
    border-radius: 999px;
    background: rgba(212, 154, 79, 0.10);
    color: var(--accent);
    border: 1px solid rgba(212, 154, 79, 0.38);
    font-family: var(--mono);
    font-size: 0.74rem;
    font-weight: 500;
    font-style: normal;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.hero .lead { margin-bottom: 36px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.hero-privacy {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    color: var(--ink-faint);
}
.hero-privacy svg { width: 16px; height: 16px; color: var(--accent); flex: 0 0 auto; }

.hero-popup {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-popup::before {
    content: '';
    position: absolute;
    inset: -90px -70px;
    z-index: 0;
    background:
        radial-gradient(closest-side at 50% 50%, rgba(212, 154, 79, 0.45), rgba(212, 154, 79, 0.10) 55%, transparent 80%);
    filter: blur(45px);
    pointer-events: none;
    animation: popup-halo-breathe 6s ease-in-out infinite;
}
.hero-popup > .popup-mock { position: relative; z-index: 1; }
@keyframes popup-halo-breathe {
    0%, 100% { opacity: 0.85; transform: scale(1); }
    50%      { opacity: 1;    transform: scale(1.04); }
}

@media (max-width: 1000px) {
    .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; justify-items: stretch; }
    .hero-popup { transform: scale(0.92); transform-origin: top center; justify-self: center; min-width: 0; }
}
@media (max-width: 720px) {
    .hero { padding: 56px 0 72px; }
    .hero-popup { transform: scale(0.82); transform-origin: top center; margin: -24px auto -48px; }
    .site-nav { display: none; }
    .site-header__inner { grid-template-columns: 1fr auto; gap: 12px; }
    .bmc-link span { display: none; }
}
@media (max-width: 480px) {
    .brand-tagline { display: none; }
    .brand-mark { width: 40px; height: 40px; }
    .brand-name { font-size: 1.6rem; }
    .hero-popup { transform: scale(0.78); margin: -28px auto -56px; }
    .bmc-link { display: none; }
    .site-header__cta .install-cta__btn { padding: 0 12px; font-size: 0.78rem; gap: 6px; }
    .site-header__cta .install-cta__chevron { width: 12px; height: 12px; }
    .install-cta--hero .install-cta__btn { height: 50px; padding: 0 22px; font-size: 0.94rem; }
}

/* ── Sections ──────────────────────────────────────────────────── */
section { padding: 88px 0; position: relative; z-index: 1; }
section + section { border-top: 1px solid var(--line); }
section .section-head { max-width: 38em; margin-bottom: 56px; }
section .section-head p { margin-top: 14px; }

/* ── Feature strip — gold-bordered pill flush against the hero ─── */
.feature-strip {
    padding: 0 0 56px;
    border-top: 0;
}
.hero--split + .feature-strip { margin-top: -32px; }
.strip {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-radius: 22px;
    border: 1px solid rgba(212, 154, 79, 0.34);
    background:
        radial-gradient(120% 200% at 50% -50%, rgba(212, 154, 79, 0.10), transparent 50%),
        linear-gradient(180deg, rgba(28, 23, 19, 0.65), rgba(12, 10, 8, 0.40));
    box-shadow:
        0 24px 60px -38px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(240, 231, 216, 0.05),
        0 0 80px -16px rgba(212, 154, 79, 0.10);
    position: relative;
    overflow: hidden;
}
.strip-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 28px 30px;
    position: relative;
}
.strip-item + .strip-item { border-left: 1px solid rgba(212, 154, 79, 0.14); }
.strip-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    filter: drop-shadow(0 0 14px rgba(212, 154, 79, 0.4));
}
.strip-icon svg { width: 32px; height: 32px; stroke-width: 1.8; }
.strip-text { min-width: 0; }
.strip-text strong {
    display: block;
    color: var(--ink);
    font-family: var(--display);
    font-size: 1.18rem;
    font-weight: 500;
    letter-spacing: -0.005em;
    line-height: 1.2;
    margin-bottom: 6px;
}
.strip-text span {
    display: block;
    color: var(--ink-dim);
    font-family: var(--display);
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 880px) {
    .strip { grid-template-columns: 1fr; }
    .strip-item + .strip-item {
        border-left: 0;
        border-top: 1px solid rgba(212, 154, 79, 0.14);
    }
    .feature-strip { padding: 16px 0 40px; }
    .strip-item { padding: 22px 24px; }
}

/* Tile + tile-icon — used on inner pages (Chrome, Mac); kept for that scope */
.tile {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent);
    transition: border-color .25s ease, transform .2s ease;
}
.tile:hover { border-color: rgba(212, 154, 79, 0.32); transform: translateY(-2px); }
.tile-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    border-radius: 11px;
    background: rgba(212, 154, 79, 0.1);
    color: var(--accent);
    align-items: center;
    justify-content: center;
}
.tile-icon svg { width: 22px; height: 22px; }
.tile h3 { color: var(--ink); margin-bottom: 10px; }
.tile p { font-size: 0.92rem; }

/* ── How it works — wide browser-toolbar illustration ───────────── */
.how--with-corner .container { position: relative; }
/* Only push section-head down when flow content (steps) actually
   needs clearance from the absolutely positioned corner illustration. */
.how--with-corner:has(.steps) .section-head { margin-bottom: 110px; }
.how--with-corner:has(.dev-stations) .section-head { margin-bottom: 110px; }
.how--with-corner.how--with-cta .section-head { margin-bottom: 132px; }
.how--with-mac-corner .section-head { margin-bottom: 76px; }

.how-corner {
    position: absolute;
    top: -28px;
    right: 0;
    width: min(720px, 65%);
    height: 240px;
    pointer-events: none;
}
.how--with-cta .how-corner { height: 320px; }
.how--corner-narrow .how-corner { width: min(540px, 52%); }
.how-corner__edge {
    position: absolute;
    top: 78px;
    right: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom,
        rgba(212, 154, 79, 0.22),
        rgba(212, 154, 79, 0.06) 55%,
        transparent 100%);
}
.how-corner__chrome {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    padding: 0 22px 0 24px;
    background: linear-gradient(180deg, #1a1612 0%, #14100c 100%);
    border-radius: 0 16px 0 0;
    border-top: 1px solid rgba(212, 154, 79, 0.22);
    border-right: 1px solid rgba(212, 154, 79, 0.22);
    border-bottom: 1px solid rgba(212, 154, 79, 0.10);
    -webkit-mask-image: linear-gradient(to left, #000 55%, transparent 100%);
    mask-image: linear-gradient(to left, #000 55%, transparent 100%);
}
.how-corner__urlbar {
    flex: 1;
    min-width: 0;
    height: 36px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(212, 154, 79, 0.10);
    overflow: hidden;
}
.how-corner__urlbar-lock {
    width: 13px;
    height: 13px;
    color: var(--ink-faint);
    flex-shrink: 0;
}
.how-corner__urlbar-text {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--ink-faint);
    white-space: nowrap;
    letter-spacing: 0.01em;
}
.how-corner__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.how-corner__icon svg {
    width: 22px;
    height: 22px;
    color: var(--ink-faint);
    display: block;
}
.how-corner__icon--ext {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    filter: drop-shadow(0 0 10px rgba(255, 200, 130, 0.55))
            drop-shadow(0 0 22px rgba(212, 154, 79, 0.35));
}
.how-corner__icon--ext img { width: 100%; height: 100%; display: block; }

.how-corner__pointer {
    position: absolute;
    top: 86px;
    right: 30px;
    width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.how-corner__arrow {
    display: block;
    width: 96px;
    height: 70px;
    background-color: var(--accent);
    -webkit-mask: url('/assets/arrow.svg') no-repeat center / contain;
    mask: url('/assets/arrow.svg') no-repeat center / contain;
    filter: drop-shadow(0 0 10px rgba(212, 154, 79, 0.30));
    transform: rotate(-2deg);
}
.how-corner__label {
    font-family: 'Cookie', cursive;
    font-size: 1.7rem;
    line-height: 1;
    color: var(--accent-soft);
    white-space: nowrap;
    text-shadow: 0 0 14px rgba(212, 154, 79, 0.18);
}
.how-corner__cta {
    position: absolute;
    top: 248px;
    right: 12px;
    pointer-events: auto;
    display: flex;
    justify-content: center;
    width: 240px;
}
.how-corner__cta .install-cta__btn {
    font-size: 1.05rem;
    padding: 18px 28px;
    letter-spacing: 0.04em;
}

@media (max-width: 1060px) {
    .how-corner { width: min(560px, 60%); height: 240px; }
    .how-corner__chrome { height: 70px; }
    .how-corner__icon--ext { width: 32px; height: 32px; }
    .how-corner__urlbar { height: 32px; padding: 0 14px; }
    .how-corner__urlbar-text { font-size: 0.72rem; }
    .how-corner__pointer { top: 78px; width: 180px; }
    .how-corner__arrow { width: 84px; height: 62px; }
    .how-corner__label { font-size: 1.55rem; }
}
@media (max-width: 880px) {
    .how--with-corner:has(.steps) .section-head,
    .how--with-corner:has(.dev-stations) .section-head,
    .how--with-corner.how--with-cta .section-head,
    .how--with-mac-corner .section-head { margin-bottom: 56px; }
    .how-corner,
    .mac-corner { display: none; }
}

/* ── macOS menu-bar corner (mac app page tease) ───────────────────── */
.mac-corner {
    position: absolute;
    top: -28px;
    right: 0;
    width: min(720px, 65%);
    height: 200px;
    pointer-events: none;
}
.mac-corner__menubar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    padding: 0 18px;
    background: linear-gradient(180deg, rgba(28, 24, 20, 0.92) 0%, rgba(20, 17, 14, 0.92) 100%);
    border-radius: 0 8px 0 0;
    border-top: 1px solid rgba(212, 154, 79, 0.22);
    border-right: 1px solid rgba(212, 154, 79, 0.22);
    border-bottom: 1px solid rgba(212, 154, 79, 0.10);
    -webkit-mask-image: linear-gradient(to left, #000 65%, transparent 100%);
    mask-image: linear-gradient(to left, #000 65%, transparent 100%);
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--ink-faint);
    letter-spacing: 0.02em;
}
.mac-corner__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.mac-corner__icon svg {
    width: 16px;
    height: 16px;
    color: var(--ink-faint);
    display: block;
}
.mac-corner__icon--ext {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    filter: drop-shadow(0 0 8px rgba(255, 200, 130, 0.55))
            drop-shadow(0 0 18px rgba(212, 154, 79, 0.35));
}
.mac-corner__colon {
    display: inline-block;
    margin: 0 0.05em;
    animation: mac-colon-blink 1.05s ease-in-out infinite;
}
@keyframes mac-colon-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.32; }
}
.mac-corner__icon--ext img { width: 100%; height: 100%; display: block; }
.mac-corner__date,
.mac-corner__time {
    color: var(--ink-faint);
    white-space: nowrap;
}
.mac-corner__pointer {
    position: absolute;
    top: 44px;
    right: 256px;
    width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.mac-corner__arrow {
    display: block;
    width: 96px;
    height: 70px;
    background-color: var(--accent);
    -webkit-mask: url('/assets/arrow.svg') no-repeat center / contain;
    mask: url('/assets/arrow.svg') no-repeat center / contain;
    filter: drop-shadow(0 0 10px rgba(212, 154, 79, 0.30));
    transform: rotate(-2deg);
}
.mac-corner__label {
    font-family: 'Cookie', cursive;
    font-size: 1.7rem;
    line-height: 1;
    color: var(--accent-soft);
    white-space: nowrap;
    text-shadow: 0 0 14px rgba(212, 154, 79, 0.18);
}
@media (max-width: 1060px) {
    .mac-corner { width: min(560px, 60%); height: 180px; }
    .mac-corner__menubar { height: 28px; gap: 12px; }
    .mac-corner__icon svg { width: 14px; height: 14px; }
    .mac-corner__icon--ext { width: 20px; height: 20px; }
    .mac-corner__menubar { font-size: 0.68rem; }
    .mac-corner__pointer { top: 38px; right: 200px; width: 180px; }
    .mac-corner__arrow { width: 84px; height: 62px; }
    .mac-corner__label { font-size: 1.55rem; }
}

/* ── Generic grid utility (3-up feature tiles, etc.) ──────────────── */
.grid { display: grid; gap: 22px; }
.grid--features { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* ── How it works — cursor spotlight steps ─────────────────────── */
.steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}
.step {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 36px 30px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent);
    transition: border-color .3s ease, transform .25s ease;
}
.step::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(380px circle at var(--mx, -200px) var(--my, -200px), rgba(212, 154, 79, 0.18), transparent 55%);
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
    z-index: -1;
}
.step::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: radial-gradient(280px circle at var(--mx, -200px) var(--my, -200px), rgba(212, 154, 79, 0.55), transparent 60%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
}
.step:hover { transform: translateY(-2px); border-color: rgba(212, 154, 79, 0.18); }
.step:hover::before, .step:hover::after { opacity: 1; }

.step-num {
    display: inline-block;
    font-family: var(--display);
    font-style: italic;
    font-size: 2.8rem;
    font-weight: 500;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 22px;
    letter-spacing: -0.01em;
    text-shadow: 0 0 30px rgba(212, 154, 79, 0.3);
}
.step h3 { color: var(--ink); margin-bottom: 10px; font-size: 1.4rem; font-family: var(--display); font-weight: 500; }
.step p { font-size: 0.95rem; line-height: 1.55; }

/* ── Section with illustration on the right ─────────────────────── */
.how--with-illustration .container { position: relative; }
.how-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 64px;
    align-items: center;
}
.how-text { min-width: 0; }
.how-illustration {
    position: relative;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 880px) {
    .how-grid { grid-template-columns: 1fr; gap: 40px; }
    .how-illustration { height: 220px; }
}

/* "Why" section header — H2 on left, small element (heart counter)
 * on the right, top-aligned with the H2. Below this row, full-width
 * content (steps, etc.) reclaims the page. */
.why-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 56px;
    align-items: start;
    margin-bottom: 56px;
}
.why-header__counter {
    position: relative;
    padding-top: 6px;
}
@media (max-width: 880px) {
    .why-header { grid-template-columns: 1fr; gap: 32px; }
    .why-header__counter { padding-top: 0; }
}

/* Concentric-waves play button illustration */
.wave-play-illo {
    position: relative;
    width: 280px;
    height: 280px;
    display: grid;
    place-items: center;
}

/* Activity icons orbiting the play button (focus-music page) */
.wave-play-illo .activity-icon {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(20, 17, 15, 0.85);
    border: 1px solid rgba(212, 154, 79, 0.35);
    color: var(--accent);
    display: grid;
    place-items: center;
    z-index: 3;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.7), 0 0 16px -4px rgba(212, 154, 79, 0.18);
    animation: activity-bob 5s ease-in-out infinite;
}
.wave-play-illo .activity-icon svg { width: 22px; height: 22px; }
.wave-play-illo .activity-icon--code  { top: 8%;     left: 8%; animation-delay: 0s; }
.wave-play-illo .activity-icon--write { top: 8%;     right: 8%; animation-delay: 1.2s; }
.wave-play-illo .activity-icon--read  { bottom: 8%;  left: 8%; animation-delay: 2.4s; }
.wave-play-illo .activity-icon--study { bottom: 8%;  right: 8%; animation-delay: 3.6s; }
@keyframes activity-bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
    .wave-play-illo .activity-icon { animation: none; }
}
@media (max-width: 880px) {
    .wave-play-illo { width: 240px; height: 240px; }
    .wave-play-illo .activity-icon { width: 36px; height: 36px; border-radius: 10px; }
    .wave-play-illo .activity-icon svg { width: 18px; height: 18px; }
}
.wave-play-illo__btn {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: radial-gradient(circle at 36% 28%, var(--accent-light) 0%, var(--accent-soft) 30%, var(--accent) 75%, var(--accent-deep) 100%);
    color: #1a120a;
    display: grid;
    place-items: center;
    box-shadow:
        inset 0 0 0 1.5px rgba(255, 235, 180, 0.55),
        inset 0 1px 0 rgba(255,255,255,0.4),
        inset 0 -2px 0 rgba(0,0,0,0.18),
        0 12px 28px -6px rgba(0,0,0,0.55),
        0 0 60px rgba(212, 154, 79, 0.3);
    z-index: 1;
}
.wave-play-illo__btn svg { width: 40px; height: 40px; margin-left: 4px; }
.wave-play-illo__wave {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 96px;
    height: 96px;
    margin: -48px 0 0 -48px;
    border-radius: 50%;
    border: 1.5px solid rgba(212, 154, 79, 0.55);
    animation: wave-emanate 3s cubic-bezier(.2, .6, .3, 1) infinite;
}
.wave-play-illo__wave:nth-child(2) { animation-delay: 1s; }
.wave-play-illo__wave:nth-child(3) { animation-delay: 2s; }
@keyframes wave-emanate {
    0%   { transform: scale(0.7);  opacity: 0; border-width: 2px; }
    25%  { opacity: 0.9; }
    100% { transform: scale(2.6);  opacity: 0; border-width: 0.5px; }
}
@media (prefers-reduced-motion: reduce) {
    .wave-play-illo__wave { animation: none; opacity: 0.4; }
    .wave-play-illo__wave:nth-child(2) { transform: scale(1.4); }
    .wave-play-illo__wave:nth-child(3) { transform: scale(2); }
}

/* Code illustration — terminal-style window for coding pages */
.code-illo {
    width: 320px;
    max-width: 100%;
    border-radius: 14px;
    background:
        radial-gradient(circle at 12% 0%, rgba(212, 154, 79, 0.06), transparent 60%),
        linear-gradient(180deg, rgba(28, 23, 19, 0.92), rgba(12, 10, 8, 0.88));
    border: 1px solid rgba(212, 154, 79, 0.30);
    box-shadow:
        0 30px 60px -30px rgba(0, 0, 0, 0.85),
        0 0 70px -16px rgba(212, 154, 79, 0.18),
        inset 0 1px 0 rgba(240, 231, 216, 0.05);
    overflow: hidden;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 12px;
    line-height: 1.75;
    user-select: none;
    -webkit-user-select: none;
    transform: rotate(-1.5deg);
}
.code-illo__head {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(212, 154, 79, 0.16);
    background: rgba(20, 17, 15, 0.55);
}
.code-illo__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(212, 154, 79, 0.30);
    flex: 0 0 auto;
}
.code-illo__dot:nth-child(2) { background: rgba(212, 154, 79, 0.50); }
.code-illo__dot:nth-child(3) { background: var(--accent); }
.code-illo__title {
    margin-left: 12px;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-faint);
}
.code-illo__body { padding: 16px 18px 18px; }
.code-illo__line {
    display: flex;
    align-items: baseline;
    gap: 14px;
    min-height: 1.75em;
    white-space: nowrap;
}
.code-illo__num {
    color: var(--ink-faint);
    opacity: 0.45;
    text-align: right;
    min-width: 14px;
    flex: 0 0 auto;
}
.code-illo__code     { color: var(--ink); }
.code-illo__comment  { color: var(--ink-faint); font-style: italic; }
.code-illo__keyword  { color: var(--accent); }
.code-illo__fn       { color: var(--accent-soft); }
.code-illo__string   { color: #f3c789; }
.code-illo__cursor {
    display: inline-block;
    width: 7px;
    height: 0.95em;
    background: var(--accent);
    margin-left: 2px;
    vertical-align: -0.1em;
    animation: code-cursor 1.05s steps(2, end) infinite;
}
@keyframes code-cursor { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .code-illo__cursor { animation: none; } }

/* Heart counter — entire card is clickable (button) */
.heart-counter {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
    padding: 22px 26px;
    border: 1px solid rgba(212, 154, 79, 0.32);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 100% 0%, rgba(212, 154, 79, 0.10), transparent 60%),
        linear-gradient(180deg, rgba(28, 23, 19, 0.55), rgba(12, 10, 8, 0.30));
    box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(240, 231, 216, 0.04);
    color: var(--ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color .25s ease, transform .18s ease, box-shadow .25s ease;
}
.heart-counter:hover {
    border-color: rgba(212, 154, 79, 0.55);
    transform: translateY(-2px);
    box-shadow:
        0 22px 50px -28px rgba(0, 0, 0, 0.75),
        inset 0 1px 0 rgba(240, 231, 216, 0.05),
        0 0 40px -10px rgba(212, 154, 79, 0.22);
}
.heart-counter:active { transform: translateY(0); }
.heart-counter:focus-visible {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.heart-btn {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    color: rgba(212, 154, 79, 0.55);
    display: grid;
    place-items: center;
    pointer-events: none;
    transition: transform .18s ease, color .2s ease, filter .2s ease;
}
.heart-btn svg { width: 36px; height: 36px; }
.heart-counter:hover .heart-btn {
    color: var(--accent);
    transform: scale(1.06);
    filter: drop-shadow(0 0 10px rgba(212, 154, 79, 0.5));
}
.heart-counter.is-liked .heart-btn,
.heart-btn.is-liked {
    color: var(--accent);
    filter: drop-shadow(0 0 12px rgba(212, 154, 79, 0.6));
}
.heart-counter.is-liked .heart-btn svg path,
.heart-btn.is-liked svg path {
    fill: currentColor;
    stroke: currentColor;
}
.heart-counter.is-popping .heart-btn,
.heart-btn.is-popping { animation: heart-pop .36s cubic-bezier(.3, 1.7, .4, 1); }
@keyframes heart-pop {
    0%   { transform: scale(1); }
    35%  { transform: scale(1.35); }
    100% { transform: scale(1); }
}

.heart-count { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.heart-count__num {
    font-family: var(--display);
    font-size: 2rem;
    font-weight: 500;
    color: var(--ink);
    line-height: 1;
    letter-spacing: -0.012em;
    transition: color .25s ease;
}
.heart-counter.is-liked .heart-count__num { color: var(--accent); }
.heart-count__label {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

/* Heart counter wrap — counter card + Cookie-script note below */
.heart-counter-block {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
}
.heart-note {
    margin: 0;
    text-align: center;
    font-family: 'Cookie', cursive;
    font-size: 1.65rem;
    line-height: 1.2;
    color: var(--accent-soft);
    letter-spacing: 0.005em;
    text-shadow: 0 0 18px rgba(212, 154, 79, 0.18);
}

/* Subtle vinyl-disc background element on the "Why" section */
.section-vinyl-bg {
    position: absolute;
    pointer-events: none;
    opacity: 0.12;
    z-index: 0;
    filter: blur(0.5px);
}
.section-vinyl-bg svg { width: 100%; height: 100%; }
.how-illustration { z-index: 1; }
.how-illustration > * { position: relative; z-index: 2; }

/* ── Vibes section — cards drive the live popup ────────────────── */
.vibes { padding: 96px 0; }
.vibe-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
@media (max-width: 880px) {
    .vibe-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .vibe-grid { grid-template-columns: 1fr; }
}
.vibe-card {
    appearance: none;
    -webkit-appearance: none;
    text-align: left;
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent);
    color: var(--ink);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font: inherit;
    position: relative;
    overflow: hidden;
    transition: border-color .3s ease, transform .25s ease, box-shadow .3s ease;
}
.vibe-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(220px circle at 50% 0%, rgba(212, 154, 79, 0.18), transparent 60%);
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
}
.vibe-card:hover {
    border-color: rgba(212, 154, 79, 0.45);
    transform: translateY(-3px);
    box-shadow: 0 18px 40px -25px rgba(212, 154, 79, 0.55);
}
.vibe-card:hover::before { opacity: 1; }
.vibe-card:active { transform: translateY(-1px); }
.vibe-card:focus-visible {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}
.vibe-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(212, 154, 79, 0.08);
    color: var(--accent);
    display: grid;
    place-items: center;
}
.vibe-card__icon svg { width: 22px; height: 22px; }
.vibe-card__name {
    font-family: var(--display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--ink);
    line-height: 1;
}
.vibe-card__sample {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--ink-faint);
    letter-spacing: 0.02em;
}
.vibe-card__more {
    margin-top: 6px;
    align-self: flex-start;
    font-family: var(--mono);
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(212, 154, 79, 0.35);
    padding-bottom: 1px;
    transition: color .2s ease, border-color .2s ease, transform .2s ease;
    position: relative;
    z-index: 2;
}
.vibe-card__more:hover {
    color: var(--accent-soft);
    border-color: var(--accent-soft);
    transform: translateX(2px);
}

/* ── Closing — merged "Two ways" + "Make your browser" ─────────── */
.closing { padding: 96px 0 112px; text-align: center; }
.closing .section-head { margin-left: auto; margin-right: auto; text-align: center; }
.cards--closing {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    text-align: left;
}
.card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    color: var(--ink);
    transition: border-color .25s ease, transform .2s ease, box-shadow .25s ease;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent);
}
.card:hover {
    border-color: rgba(212, 154, 79, 0.45);
    transform: translateY(-3px);
    color: var(--ink);
    box-shadow: 0 18px 40px -25px rgba(212, 154, 79, 0.45);
}
.card .kicker {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
}
.card h3 { font-family: var(--display); font-size: 1.55rem; font-weight: 500; color: var(--ink); }
.card p { font-size: 0.94rem; }
.card-cta { margin-top: 8px; font-family: var(--mono); font-size: 0.85rem; color: var(--accent); letter-spacing: 0.04em; }
.card.coming-soon .kicker { color: var(--ink-faint); }
.card.coming-soon h3 { color: var(--ink-dim); }

/* Closing — platform cards with logo + amber install CTA */
.card--platform {
    position: relative;
    padding-top: 84px;
    padding-bottom: 80px;
    overflow: hidden;
}
.card__platform-icon {
    position: absolute;
    top: 28px;
    left: 28px;
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: rgba(212, 154, 79, 0.1);
    border: 1px solid rgba(212, 154, 79, 0.22);
    color: var(--accent);
    display: grid;
    place-items: center;
}
.card__platform-icon svg { width: 24px; height: 24px; }
.card--platform.coming-soon .card__platform-icon {
    color: var(--ink-dim);
    background: rgba(168, 157, 138, 0.05);
    border-color: var(--line);
}

.card-cta--install {
    position: absolute;
    bottom: 28px;
    left: 28px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 42px;
    padding: 0 18px;
    border-radius: 10px;
    background: linear-gradient(180deg, var(--accent-soft), var(--accent));
    color: #1a120a;
    font-family: var(--mono);
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin: 0;
    box-shadow: 0 8px 22px -10px rgba(212, 154, 79, 0.55);
    transition: filter .2s ease, box-shadow .25s ease, transform .15s ease;
}
.card-cta--install svg { width: 16px; height: 16px; color: #1a120a; }
.card-cta__arrow { margin-left: 2px; transition: transform .2s ease; }
.card--platform:hover .card-cta--install {
    filter: brightness(1.06);
    box-shadow: 0 0 0 5px var(--accent-glow), 0 10px 24px -8px rgba(212, 154, 79, 0.7);
}
.card--platform:hover .card-cta__arrow { transform: translateX(3px); }

.card--platform.coming-soon .card-cta--install {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--ink-dim);
    box-shadow: none;
}
.card--platform.coming-soon .card-cta--install svg { color: var(--ink-dim); }
.card--platform.coming-soon:hover .card-cta--install {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(212, 154, 79, 0.04);
    filter: none;
    box-shadow: 0 0 0 4px var(--accent-glow);
}
.card--platform.coming-soon:hover .card-cta--install svg { color: var(--accent); }

/* ── Coming-soon notice (used on Mac page) ─────────────────────── */
.notice {
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    padding: 24px;
    background: rgba(212, 154, 79, 0.04);
    margin-top: 32px;
}
.notice strong { color: var(--accent); }

/* ── Dev-station cards (used on /music-for-coding/) ────────────── */
.dev-stations {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
}
.dev-stations > li { list-style: none; }
.dev-station {
    width: 100%;
    height: 100%;
    min-height: 118px;
    display: grid;
    grid-template-columns: 48px 1fr 32px;
    align-items: center;
    gap: 14px;
    padding: 18px 18px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent);
    color: var(--ink);
    cursor: pointer;
    text-align: left;
    font: inherit;
    transition: border-color .25s ease, transform .2s ease, box-shadow .25s ease;
}
.dev-station:hover {
    border-color: rgba(212, 154, 79, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -25px rgba(212, 154, 79, 0.45);
}
.dev-station:focus-visible {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}
.dev-station__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(212, 154, 79, 0.10);
    border: 1px solid rgba(212, 154, 79, 0.22);
    color: var(--accent);
    display: grid;
    place-items: center;
}
.dev-station__icon svg { width: 24px; height: 24px; }
.dev-station__body { display: flex; flex-direction: column; min-width: 0; gap: 3px; }
.dev-station__source {
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
}
.dev-station__name {
    font-family: var(--display);
    font-size: 1.18rem;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.15;
    letter-spacing: -0.005em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dev-station__tags {
    font-family: var(--mono);
    font-size: 0.74rem;
    color: var(--ink-faint);
    letter-spacing: 0.02em;
}
.dev-station__play {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    color: var(--ink-dim);
    transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.dev-station__play svg { width: 12px; height: 12px; }
.dev-station:hover .dev-station__play {
    background: var(--accent);
    border-color: var(--accent);
    color: #1a120a;
    box-shadow: 0 0 14px rgba(212, 154, 79, 0.45);
}

/* ── Stations list (used on Chrome page) ───────────────────────── */
.stations { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 24px; max-width: 720px; }
.stations li {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 0.92rem;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.stations li span { color: var(--ink-dim); font-size: 0.82rem; }

/* ── FAQ (used on Chrome page) ─────────────────────────────────── */
.faq { display: grid; gap: 18px; max-width: 760px; }
.faq details {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 22px;
}
.faq summary {
    cursor: pointer;
    font-family: var(--display);
    font-size: 1.1rem;
    color: var(--ink);
    list-style: none;
}
.faq summary::after { content: '+'; float: right; color: var(--accent); font-family: var(--mono); }
.faq details[open] summary::after { content: '−'; }
.faq details[open] { background: rgba(255, 255, 255, 0.015); }
.faq p { margin-top: 10px; }

/* ── Standard buttons (used on inner pages) ────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 10px;
    font-family: var(--mono);
    font-size: 0.92rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary {
    background: var(--accent);
    color: #1a0f02;
    box-shadow: 0 0 0 0 var(--accent-glow), 0 6px 24px -8px rgba(212, 154, 79, 0.5);
}
.btn-primary:hover { color: #1a0f02; box-shadow: 0 0 0 8px var(--accent-glow), 0 10px 28px -8px rgba(212, 154, 79, 0.6); transform: translateY(-1px); border-color: transparent; }
.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost.disabled { color: var(--ink-dim); cursor: default; }
.btn-ghost.disabled:hover { border-color: var(--line); color: var(--ink-dim); }

/* ── Legal page (privacy, terms) — readable typography ─────────── */
.legal { padding: 80px 0 96px; }
.legal .container { max-width: 720px; }
.legal h1 {
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    line-height: 1.15;
    margin-bottom: 18px;
}
.legal h2 {
    margin-top: 56px;
    margin-bottom: 14px;
    font-size: 1.5rem;
}
.legal h2:first-of-type { margin-top: 48px; }
.legal h2::before {
    content: '';
    display: block;
    width: 36px;
    height: 1.5px;
    background: var(--accent);
    margin-bottom: 16px;
    opacity: 0.65;
}
.legal .lead {
    font-family: var(--display);
    font-size: 1.18rem;
    color: var(--ink);
    line-height: 1.55;
    margin-bottom: 8px;
}
.legal p {
    color: var(--ink);
    margin-bottom: 14px;
    font-family: var(--display);
    font-size: 1.02rem;
    line-height: 1.65;
}
.legal ul {
    list-style: none;
    margin: 6px 0 18px;
    padding-left: 0;
}
.legal li {
    color: var(--ink-dim);
    font-family: var(--display);
    font-size: 1rem;
    line-height: 1.55;
    padding-left: 22px;
    position: relative;
    margin-bottom: 6px;
}
.legal li::before {
    content: '·';
    position: absolute;
    left: 6px;
    top: -2px;
    color: var(--accent);
    font-size: 1.4em;
    line-height: 1;
}
.legal a {
    color: var(--accent);
    border-bottom: 1px solid rgba(212, 154, 79, 0.4);
    padding-bottom: 1px;
    transition: color .2s ease, border-color .2s ease;
}
.legal a:hover { color: var(--accent-soft); border-bottom-color: var(--accent-soft); }
.legal .legal-meta {
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 22px;
}

/* ── Footer ────────────────────────────────────────────────────── */
.site-footer {
    padding: 64px 0 28px;
    border-top: 1px solid var(--line);
    color: var(--ink-faint);
    font-size: 0.85rem;
    background: linear-gradient(180deg, transparent, rgba(20, 17, 15, 0.35));
}
.site-footer a { color: var(--ink-dim); transition: color .18s ease; }
.site-footer a:hover { color: var(--accent); }

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 36px;
}
.footer-brand .brand--footer {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    margin-bottom: 14px;
}
.footer-brand .brand--footer:hover { color: var(--ink); }
.footer-brand .brand-mark {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    filter: drop-shadow(0 0 10px rgba(212, 154, 79, 0.22));
}
.footer-brand .brand-name { font-size: 1.9rem; line-height: 1; }
.footer-brand .brand-tagline { font-size: 0.55rem; gap: 5px; }
.footer-brand .brand-mark { width: 44px; height: 44px; }
.footer-tagline {
    color: var(--ink-faint);
    font-family: var(--display);
    font-size: 0.95rem;
    line-height: 1.55;
    max-width: 28em;
    margin: 0;
}

.footer-col h4 {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 14px;
    font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; line-height: 1.4; }
.footer-col li:has(a[href*="buymeacoffee"]) { margin-top: 14px; }
.footer-col li a { font-size: 0.92rem; display: inline-flex; align-items: flex-start; gap: 8px; }
.footer-col li a svg { width: 14px; height: 14px; flex: 0 0 auto; margin-top: 4px; color: var(--accent); opacity: 0.9; transition: opacity .18s ease; }
.footer-col li a:hover svg { opacity: 1; }

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 0.78rem;
    color: var(--ink-faint);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 880px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .site-footer { padding: 48px 0 24px; }
}

@media (max-width: 720px) {
    section { padding: 64px 0; }
    .features { padding: 56px 0; }
    .closing { padding: 72px 0 88px; }
}

/* ────────────────────────────────────────────────────────────────
   Popup mock — interactive replica of the extension popup.
   Styles ported from Tonearm-0.3.4/popup.css and scoped with .pm-*
   prefix so they cannot leak into the rest of the page.
   The mock is LIVE: clicking play streams real SomaFM audio,
   station rows / prev / next / volume / filter pills all work.
   ──────────────────────────────────────────────────────────────── */
.popup-mock {
    width: 380px;
    height: 600px;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--mono);
    font-size: 13px;
    border: 1px solid rgba(212, 154, 79, 0.42);
    box-shadow:
        0 50px 90px -30px rgba(0, 0, 0, 0.85),
        0 20px 40px -20px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(212, 154, 79, 0.18),
        0 0 90px rgba(212, 154, 79, 0.18),
        inset 0 1px 0 rgba(240, 231, 216, 0.05);
    padding: 16px 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    user-select: none;
    -webkit-user-select: none;
    flex: 0 0 auto;
}
.popup-mock::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 88% 4%, rgba(212, 154, 79, 0.18), transparent 44%),
        radial-gradient(circle at 0% 100%, rgba(240, 231, 216, 0.04), transparent 60%),
        repeating-linear-gradient(115deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 5px);
    z-index: 0;
}
.popup-mock > * { position: relative; z-index: 1; }

.pm-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 auto;
    padding: 4px 4px 0;
}
.pm-logo {
    display: block;
    width: 170px;
    max-height: 44px;
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 0 14px rgba(212, 154, 79, 0.14));
}
.pm-gear {
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(20, 17, 15, 0.58);
    color: var(--ink-dim);
    display: grid;
    place-items: center;
    padding: 0;
    cursor: pointer;
    flex: 0 0 auto;
    transition: color .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .12s ease;
}
.pm-gear svg { width: 20px; height: 20px; }
.pm-gear:hover {
    color: var(--accent);
    border-color: rgba(212, 154, 79, 0.58);
    background: rgba(212, 154, 79, 0.06);
    box-shadow: 0 0 0 4px var(--accent-glow);
}
.pm-gear:active { transform: scale(0.97); }

/* Settings panel — covers the lower portion of the popup, leaves the
 * header visible. Mirrors the extension's settings-panel layout. */
.pm-settings-panel {
    position: absolute;
    inset: 74px 16px 12px;
    z-index: 10;
    border: 1px solid var(--line-gold);
    border-radius: 20px;
    background:
        radial-gradient(circle at 12% 0%, rgba(212,154,79,0.10), transparent 48%),
        linear-gradient(180deg, rgba(22,18,16,0.98), rgba(12,10,8,0.98));
    box-shadow: 0 24px 48px -28px #000, inset 0 1px 0 rgba(240,231,216,0.08);
    padding: 18px;
    overflow-y: auto;
    animation: pm-settings-in 240ms cubic-bezier(.2, .8, .2, 1);
}
.pm-settings-panel[hidden] { display: none; }
@keyframes pm-settings-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.pm-settings-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}
.pm-settings-kicker {
    margin: 0 0 7px;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent);
}
.pm-settings-title {
    margin: 0;
    font-family: var(--display);
    font-size: 28px;
    font-weight: 500;
    line-height: 1;
    color: var(--ink);
}
.pm-settings-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: rgba(20, 17, 15, 0.58);
    color: var(--ink-dim);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: color .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.pm-settings-close:hover {
    color: var(--accent);
    border-color: rgba(212, 154, 79, 0.58);
    background: rgba(212, 154, 79, 0.06);
    box-shadow: 0 0 0 4px var(--accent-glow);
}
.pm-settings-card {
    border: 1px solid var(--line-2);
    border-radius: 16px;
    padding: 14px;
    background: rgba(20, 17, 15, 0.62);
    margin-bottom: 10px;
}
.pm-settings-card h3 {
    margin: 0 0 7px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-soft);
    font-weight: 500;
}
.pm-settings-card p,
.pm-settings-footnote {
    margin: 0;
    color: var(--ink-dim);
    font-size: 12px;
    line-height: 1.5;
}
.pm-settings-footnote {
    padding: 8px 2px 2px;
    font-family: var(--display);
    font-style: italic;
    color: var(--accent);
}
.pm-settings-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 14px auto 4px;
    padding: 12px 14px 14px;
    border-radius: 16px;
    border: 1px solid var(--line-2);
    background: #ffffff;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 200ms ease;
}
.pm-settings-qr:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px -14px rgba(212, 154, 79, 0.55), 0 0 0 1px rgba(212, 154, 79, 0.35);
}
.pm-settings-qr-image { display: block; width: 132px; height: 132px; object-fit: contain; }
.pm-settings-qr-label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #1a120a;
}
.pm-settings-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 12px 2px 4px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--ink-dim);
    text-align: center;
}
.pm-settings-meta-link {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(212, 154, 79, 0.35);
    padding-bottom: 1px;
    transition: color .16s ease, border-color .16s ease;
}
.pm-settings-meta-link:hover { color: var(--accent-soft); border-bottom-color: var(--accent-soft); }
.pm-settings-meta-sep { color: var(--line-gold); }

.pm-player-card {
    position: relative;
    flex: 0 0 auto;
    border: 1px solid var(--line-gold);
    border-radius: 20px;
    background:
        radial-gradient(circle at 24% 12%, rgba(212, 154, 79, 0.06), transparent 55%),
        linear-gradient(180deg, rgba(36, 30, 25, 0.92), rgba(20, 17, 15, 0.78));
    box-shadow:
        inset 0 1px 0 rgba(240, 231, 216, 0.10),
        inset 0 -1px 0 rgba(0, 0, 0, 0.45),
        0 22px 38px -28px #000;
    overflow: hidden;
    padding: 18px;
    transition: border-color .3s ease;
}
.popup-mock.has-error .pm-player-card { border-color: rgba(216, 109, 91, 0.42); }

.pm-vinyl {
    position: absolute;
    right: -82px;
    top: -34px;
    width: 220px;
    height: 220px;
    pointer-events: none;
    z-index: 0;
}
.pm-vinyl__disc {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 26%, rgba(255,255,255,0.18), transparent 36%),
        radial-gradient(circle at 50% 50%, #221915 0, #0e0c0b 58%, #040303 100%);
    box-shadow:
        0 22px 40px -22px rgba(0,0,0,0.98),
        inset 0 0 0 1px rgba(255,255,255,0.05),
        inset 0 0 26px rgba(0,0,0,0.55);
    overflow: hidden;
    /* Decorative: vinyl always spins so the demo reads as alive on
     * first paint. Audio play/pause does not affect the spin. */
    animation: pm-spin 9s linear infinite;
}
@keyframes pm-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .pm-vinyl__disc { animation: none; }
}
.pm-vinyl__disc::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.10), transparent 34%, rgba(255,255,255,0.06) 70%, transparent);
    mix-blend-mode: screen;
}
.pm-grooves {
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background: repeating-radial-gradient(circle at 50% 50%, rgba(240,231,216,0.06) 0 0.8px, transparent 0.8px 7px);
}
.pm-label {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 86px;
    height: 86px;
    margin: -43px 0 0 -43px;
    border-radius: 50%;
    background: radial-gradient(circle at 34% 28%, var(--accent-soft), var(--accent) 56%, var(--accent-deep));
    box-shadow: 0 0 0 1px rgba(0,0,0,0.42) inset, 0 0 26px rgba(212, 154, 79, 0.30);
}
.pm-label::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
    border-radius: 50%;
    background: #160f0a;
}
.pm-text {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.pm-text__path {
    font-family: var(--mono);
    font-size: 2.6px;
    font-weight: 500;
    letter-spacing: 0;
    fill: rgba(22, 15, 10, 0.78);
}

.pm-now {
    position: relative;
    z-index: 1;
    padding-right: 130px;
    min-height: 96px;
}
.pm-kicker {
    margin: 0 0 10px;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
}
.pm-station {
    margin: 0;
    font-family: var(--display);
    font-weight: 500;
    font-size: 32px;
    line-height: 1;
    letter-spacing: 0.005em;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pm-subtitle {
    margin: 8px 0 0;
    font-family: var(--display);
    font-style: italic;
    font-size: 14px;
    color: var(--accent);
    transition: color .2s ease;
}
.popup-mock.has-error .pm-subtitle {
    color: #d86d5b;
    font-style: normal;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-family: var(--mono);
    font-size: 10px;
}

.pm-transport {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin: 18px 0 4px;
}
.pm-ghost {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: rgba(20, 17, 15, 0.55);
    color: var(--ink-dim);
    display: grid;
    place-items: center;
    cursor: pointer;
    padding: 0;
    transition: color .15s ease, border-color .15s ease, background .15s ease, transform .12s ease;
}
.pm-ghost:hover { color: var(--accent); border-color: rgba(212, 154, 79, 0.55); background: rgba(212, 154, 79, 0.06); }
.pm-ghost:active { transform: scale(0.96); }
.pm-ghost svg { width: 26px; height: 26px; }

.pm-fav {
    height: 36px;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    padding: 0 4px 0 0;
    cursor: pointer;
    filter: drop-shadow(0 0 6px rgba(212,154,79,0.45));
    transition: transform .12s ease, filter .15s ease;
}
.pm-fav:hover { filter: drop-shadow(0 0 10px rgba(212,154,79,0.65)); }
.pm-fav:active { transform: scale(0.96); }
.pm-fav__icon { width: 24px; height: 24px; transition: transform .2s ease; flex-shrink: 0; }
.pm-fav.is-liked .pm-fav__icon path { fill: currentColor; }
.pm-fav.is-popping .pm-fav__icon { animation: pm-fav-pop 360ms ease-out; }
@keyframes pm-fav-pop {
    0% { transform: scale(1); }
    35% { transform: scale(1.32); }
    100% { transform: scale(1); }
}
.pm-fav__count {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--ink-dim);
    white-space: nowrap;
    pointer-events: none;
    letter-spacing: 0.02em;
    line-height: 1;
}

.pm-play {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: none;
    background: radial-gradient(circle at 36% 28%, var(--accent-light) 0%, var(--accent-soft) 30%, var(--accent) 75%, var(--accent-deep) 100%);
    color: #1a120a;
    display: grid;
    place-items: center;
    padding: 0;
    cursor: pointer;
    box-shadow:
        inset 0 0 0 1.5px rgba(255, 235, 180, 0.55),
        inset 0 1px 0 rgba(255,255,255,0.4),
        inset 0 -2px 0 rgba(0,0,0,0.18),
        0 8px 18px -4px rgba(0,0,0,0.55);
    transition: transform .15s ease, filter .2s ease;
}
.pm-play:hover { transform: translateY(-1px); filter: brightness(1.05); }
.pm-play:hover .pm-halo { inset: -24px; filter: blur(11px); }
.pm-play:active { transform: scale(0.97); }
.pm-halo {
    position: absolute;
    inset: -18px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(243, 199, 137, 0.55) 0%, rgba(212,154,79,0.28) 45%, rgba(212,154,79,0) 75%);
    filter: blur(8px);
    z-index: -1;
    pointer-events: none;
    transition: inset .25s ease, filter .25s ease;
}
.popup-mock.is-loading .pm-halo { animation: pm-pulse 1.05s ease-in-out infinite; }
@keyframes pm-pulse { 0%,100% { opacity: 0.5; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
.pm-play__icon { width: 32px; height: 32px; }
.pm-play__icon--play { margin-left: 3px; }
.pm-play__icon--stop { display: none; }
.popup-mock.is-playing .pm-play__icon--play { display: none; }
.popup-mock.is-playing .pm-play__icon--stop { display: block; }

.pm-volume {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    color: var(--ink-dim);
    font-family: var(--mono);
    font-size: 12px;
}
.pm-vol-icon { width: 18px; height: 18px; color: var(--ink-dim); }
.pm-vol-track {
    position: relative;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(240, 231, 216, 0.10);
    cursor: pointer;
    overflow: visible;
}
.pm-vol-fill {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 72%;
    border-radius: 999px;
    background: var(--accent);
}
.pm-vol-thumb {
    position: absolute;
    left: 72%;
    top: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, var(--accent-light), var(--accent) 60%, var(--accent-deep));
    box-shadow: 0 0 0 1px rgba(0,0,0,0.4), 0 0 10px rgba(212,154,79,0.5);
}
.pm-vol-value {
    min-width: 38px;
    text-align: right;
    color: var(--ink);
    letter-spacing: 0.02em;
}

.pm-filters {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 10px 2px;
    margin: -4px -2px;
    overflow-x: auto;
    scrollbar-width: none;
}
.pm-filters::-webkit-scrollbar { display: none; }
.pm-pill {
    flex: 0 0 auto;
    height: 28px;
    padding: 0 13px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink-dim);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease, background .15s ease, box-shadow .15s ease;
}
.pm-pill:hover { color: var(--ink); border-color: rgba(212, 154, 79, 0.45); }
.pm-pill--active {
    background: linear-gradient(180deg, var(--accent-soft), var(--accent));
    border-color: var(--accent);
    color: #1a120a;
    font-weight: 500;
    box-shadow: 0 0 0 4px var(--accent-glow), 0 0 14px rgba(212, 154, 79, 0.35);
}

.pm-stations {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1 1 auto;
    min-height: 0;
    border-top: 1px solid var(--line-2);
    overflow-y: auto;
    scrollbar-width: thin;
}
.pm-stations::-webkit-scrollbar { width: 6px; }
.pm-stations::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

.pm-row {
    width: 100%;
    height: 56px;
    display: grid;
    grid-template-columns: 36px 1fr 30px;
    align-items: center;
    gap: 14px;
    padding: 0 6px 0 8px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line-2);
    color: var(--ink-dim);
    text-align: left;
    font: inherit;
    cursor: pointer;
    position: relative;
    transition: background .15s ease, color .15s ease;
}
.pm-row:last-child { border-bottom: 0; }
.pm-row::before {
    content: '';
    position: absolute;
    left: 0; top: 8px; bottom: 8px;
    width: 2px;
    border-radius: 2px;
    background: transparent;
    transition: background .2s ease;
}
.pm-row:hover { background: rgba(212, 154, 79, 0.04); color: var(--ink); }
.pm-row--active {
    background: linear-gradient(90deg, rgba(212,154,79,0.10), rgba(212,154,79,0.02) 80%);
    color: var(--ink);
}
.pm-row--active::before { background: var(--accent); }
.pm-row-icon { width: 28px; height: 28px; color: var(--accent); opacity: 0.85; }
.pm-row--active .pm-row-icon { opacity: 1; }
.pm-row-name {
    font-family: var(--display);
    font-size: 18px;
    font-weight: 400;
    color: inherit;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pm-row-state {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    color: var(--ink-dim);
}
.pm-row-state svg { width: 16px; height: 16px; }
.pm-row-icon-check { display: none; }
.pm-row--active .pm-row-state {
    background: var(--accent);
    border-color: var(--accent);
    color: #1a120a;
    box-shadow: 0 0 12px rgba(212,154,79,0.45);
}
.popup-mock.is-playing .pm-row--active .pm-row-icon-play { display: none; }
.popup-mock.is-playing .pm-row--active .pm-row-icon-check { display: block; }

/* CSS-only filter on the popup mock */
.popup-mock[data-filter] .pm-row { display: none; }
.popup-mock[data-filter="all"] .pm-row { display: grid; }
.popup-mock[data-filter="focus"] .pm-row[data-category="focus"] { display: grid; }
.popup-mock[data-filter="ambient"] .pm-row[data-category="ambient"] { display: grid; }
.popup-mock[data-filter="coding"] .pm-row[data-category="coding"] { display: grid; }
.popup-mock[data-filter="indie"] .pm-row[data-category="indie"] { display: grid; }
.popup-mock[data-filter="lo-fi"] .pm-row[data-category="lo-fi"] { display: grid; }

/* ── Ambient page: thesis block with pull-quote ────────────────── */
.ambient-thesis {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
    max-width: 1040px;
    margin-top: -32px;
}
.ambient-thesis__body p {
    font-family: var(--mono);
    font-size: 0.94rem;
    line-height: 1.7;
    color: var(--ink-dim);
}
.ambient-thesis__body p + p { margin-top: 18px; }

.ambient-thesis__pullquote {
    position: relative;
    margin: 0;
    padding: 18px 0 0 36px;
}
.ambient-thesis__mark {
    position: absolute;
    top: -10px;
    left: -2px;
    font-family: var(--display);
    font-style: italic;
    font-size: 5rem;
    line-height: 0.6;
    color: var(--accent);
    opacity: 0.55;
    text-shadow: 0 0 28px rgba(212, 154, 79, 0.25);
    pointer-events: none;
}
.ambient-thesis__pullquote blockquote {
    margin: 0;
    font-family: var(--display);
    font-style: italic;
    font-weight: 400;
    font-size: 2.35rem;
    line-height: 1.2;
    letter-spacing: -0.014em;
    color: var(--ink);
}
.ambient-thesis__pullquote figcaption {
    margin-top: 16px;
    font-family: var(--mono);
    font-size: 0.78rem;
    line-height: 1.55;
    color: var(--ink-faint);
}

@media (max-width: 880px) {
    .ambient-thesis {
        grid-template-columns: 1fr;
        gap: 36px;
        margin-top: 0;
    }
    .ambient-thesis__pullquote { padding: 20px 0 0 28px; }
    .ambient-thesis__mark { font-size: 4rem; top: -8px; left: -2px; }
    .ambient-thesis__pullquote blockquote { font-size: 1.7rem; }
}

/* ── Ambient page: tighten the curated-stations section header ───── */
.how.how--curated .section-head { margin-bottom: 36px; }
.how--curated .dev-station {
    grid-template-columns: 48px 1fr;
    cursor: default;
}
.how--curated .dev-station:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--line);
}
