/* Airy website styles. Shared by all pages: Support, Privacy, More Apps, Airy for Windows and Mixy. */

:root {
    --bg: #fbfbfd;
    --bg-soft: #f5f5f7;
    --card: rgba(255, 255, 255, 0.72);
    --card-solid: #ffffff;
    --text: #1d1d1f;
    --text-2: #5e5e66;
    --text-3: #86868b;
    --border: rgba(29, 29, 31, 0.08);
    --accent: #ff375f;
    --link: #0066cc;
    --shadow: 0 24px 60px -26px rgba(30, 60, 130, 0.32);
    /* One blue, used for light and depth (no rainbow gradients). */
    --hero-light: rgba(80, 130, 230, 0.55);
    --blue-soft: rgba(80, 130, 230, 0.12);
    --band: #f1f4fa;
    --title-1: #4b8cf5;
    --title-2: #1c4fc4;
    --card-shadow: 0 1px 2px rgba(20, 40, 90, 0.05), 0 14px 32px -22px rgba(20, 40, 90, 0.28);
    --radius: 22px;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0d0d0f;
        --bg-soft: #161618;
        --card: rgba(28, 28, 30, 0.72);
        --card-solid: #1c1c1e;
        --text: #f5f5f7;
        --text-2: #b4b3bd;
        --text-3: #8c8b96;
        --border: rgba(255, 255, 255, 0.09);
        --link: #2997ff;
        --shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.8);
        --hero-light: rgba(30, 75, 185, 0.70);
        --blue-soft: rgba(30, 75, 185, 0.20);
        --band: #111318;
        --title-1: #8ab6ff;
        --title-2: #3e78f2;
        --card-shadow: none;
    }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.55;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- Navigation ---------- */

.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    background: color-mix(in srgb, var(--bg) 72%, transparent);
    border-bottom: 1px solid var(--border);
}

.nav .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.05em;
    color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.brand { white-space: nowrap; }
.brand-sub { margin-left: -10px; }

.nav-links { display: flex; gap: 22px; font-size: 0.92em; }
.nav-links a { color: var(--text-2); }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ---------- Hero ---------- */

.hero {
    position: relative;
    text-align: center;
    padding: 80px 0 40px;
    isolation: isolate;
}

/* One soft blue light from the top, fading into the page. */
.hero::before {
    content: "";
    position: absolute;
    inset: -120px 0 auto 0;
    height: 1000px;
    z-index: -1;
    background: radial-gradient(95% 85% at 50% 0%, var(--hero-light), transparent 75%);
}

/* The icon's shadow is a box-shadow on a rounded wrapper, not a CSS filter:
   Safari sometimes painted a filter's square box around the icon. */
.hero-icon {
    width: 128px;
    height: 128px;
    margin: 0 auto 24px;
    /* Rounder than the icon's own corners, so the shadow stays hidden behind it
       (a smaller radius left light slivers at the bottom corners). */
    border-radius: 32%;
    box-shadow: 0 18px 30px -8px rgba(0, 0, 0, 0.28);
}
.hero-icon img { width: 100%; height: 100%; }

.hero h1 {
    font-size: clamp(2.6em, 7vw, 4.4em);
    line-height: 1.05;
    letter-spacing: -0.035em;
    margin: 0 0 14px;
    font-weight: 700;
}

.gradient-text {
    /* The heading's second line: one blue, lighter at the top. */
    background: linear-gradient(180deg, var(--title-1), var(--title-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
/* In the Upgrade plan's title it is the accent color. */
.plan h3 .gradient-text { background: none; color: var(--accent); }

.hero .lead {
    font-size: clamp(1.1em, 2.4vw, 1.35em);
    color: var(--text-2);
    max-width: 640px;
    margin: 0 auto 30px;
}

.cta-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.98em;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.btn:hover { text-decoration: none; }

.btn-primary {
    background: var(--text);
    color: var(--bg);
    border-color: transparent;
}

.btn-blue {
    background: #0071e3;
    color: #fff;
    border-color: transparent;
}
.btn-blue:hover { background: #0077ed; }

.btn svg { width: 18px; height: 18px; }

.hero-shot {
    margin: 48px auto 0;
    max-width: 400px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

/* ---------- Sections ---------- */

section { padding: 72px 0; }

.section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 44px;
}

.eyebrow {
    display: inline-block;
    font-size: 1.05em;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 8px;
}

h2 {
    font-size: clamp(1.8em, 4vw, 2.6em);
    line-height: 1.12;
    letter-spacing: -0.025em;
    margin: 0 0 14px;
}

.section-head p { color: var(--text-2); font-size: 1.1em; margin: 0; }

/* ---------- Feature cards ---------- */

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

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--card-shadow);
}

.card h3 { margin: 14px 0 6px; font-size: 1.12em; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--text-2); font-size: 0.97em; }

.icon-badge {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background-color: var(--accent);
    /* A little light from the top, like an app icon. */
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0));
    box-shadow: 0 4px 10px -5px rgba(0, 0, 0, 0.35);
    color: #fff;
}
.icon-badge svg { width: 22px; height: 22px; }
/* Each card in one of Apple's system colors, flat. */
.icon-badge.red    { background-color: #ff3b30; }
.icon-badge.blue   { background-color: #007aff; }
.icon-badge.orange { background-color: #ff9500; }
.icon-badge.purple { background-color: #af52de; }
.icon-badge.green  { background-color: #34c759; }
.icon-badge.pink   { background-color: #ff2d55; }

/* Features and Free / Upgrade sit on a light blue-grey band, for rhythm down the page. */
#features, #upgrade { background: var(--band); }

/* ---------- Showcase rows ---------- */

.showcase {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 72px;
}
.showcase:last-child { margin-bottom: 0; }
.showcase.flip { grid-template-columns: 1fr 1.35fr; }
.showcase.flip .shot { order: 2; }

.shot {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

/* Screenshots that carry their own window shadow on a clear background. */
.hero-shot.bare, .shot.bare {
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}
.hero-shot.bare img, .shot.bare img { display: block; width: 100%; height: auto; }

.showcase h3 {
    font-size: clamp(1.5em, 3vw, 2em);
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 12px;
}
.showcase p { color: var(--text-2); font-size: 1.06em; margin: 0 0 12px; }

.tag {
    display: inline-block;
    font-size: 0.95em;
    font-weight: 600;
    color: var(--text-3);
    margin-bottom: 8px;
}

/* ---------- Formats ---------- */

.chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 820px;
    margin: 0 auto;
}

.chip {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--card);
    font-weight: 600;
    font-size: 0.92em;
}
.chip.lossless { border-color: color-mix(in srgb, var(--text) 30%, transparent); }

.note {
    text-align: center;
    color: var(--text-3);
    font-size: 0.92em;
    max-width: 640px;
    margin: 22px auto 0;
}

/* ---------- Free / Upgrade ---------- */

.plans {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 18px;
    align-items: start;
}

.plan h3 { font-size: 1.4em; margin: 0 0 4px; }
.plan .plan-sub { color: var(--text-3); margin: 0 0 18px; font-size: 0.95em; }

.plan ul { list-style: none; padding: 0; margin: 0; }
.plan li {
    position: relative;
    padding: 7px 0 7px 28px;
    color: var(--text-2);
    border-top: 1px solid var(--border);
    font-size: 0.97em;
}
.plan li:first-child { border-top: none; }
.plan li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 13px;
    width: 14px;
    height: 8px;
    border-left: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(-45deg);
}
.plan li strong { color: var(--text); font-weight: 600; }

.plan.upgrade {
    position: relative;
    border: 1.5px solid var(--accent);
    background: var(--card-solid);
}

/* ---------- Support ---------- */

.support-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.support-grid .card h3 { margin-top: 0; }
.support-grid .card p + p { margin-top: 10px; }

kbd {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1px 7px;
    font-size: 0.85em;
    font-family: inherit;
}

.contact {
    margin-top: 18px;
    text-align: center;
    padding: 40px 26px;
    background: radial-gradient(80% 110% at 50% 0%, var(--blue-soft), transparent 72%), var(--card);
}
.contact h3 { font-size: 1.5em; margin: 0 0 8px; }
.contact p { margin: 0 auto 20px; max-width: 520px; }

/* ---------- Document pages (Privacy) ---------- */

.doc { max-width: 760px; margin: 0 auto; padding: 64px 20px 24px; }
.doc h1 { font-size: clamp(2.2em, 6vw, 3.2em); letter-spacing: -0.03em; margin: 0 0 6px; line-height: 1.1; }
.doc .date { color: var(--text-3); margin: 0 0 32px; }
.doc .card { padding: 32px; }
.doc .card > p:first-child { margin-top: 0; font-size: 1.1em; color: var(--text); }
.doc ul { list-style: none; padding: 0; margin: 20px 0 0; }
.doc li {
    position: relative;
    padding: 14px 0 14px 34px;
    border-top: 1px solid var(--border);
    color: var(--text-2);
}
.doc li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 21px;
    width: 14px;
    height: 8px;
    border-left: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(-45deg);
}

/* ---------- Footer ---------- */

footer {
    margin-top: 40px;
    border-top: 1px solid var(--border);
    color: var(--text-3);
    font-size: 0.88em;
}
footer .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 26px;
    padding-bottom: 40px;
    flex-wrap: wrap;
}
footer nav { display: flex; gap: 20px; }
footer a { color: var(--text-2); }

/* ---------- Small screens ---------- */

@media (max-width: 860px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
    .showcase, .showcase.flip { grid-template-columns: 1fr; gap: 24px; }
    .showcase.flip .shot { order: 0; }
    .plans { grid-template-columns: 1fr; }

    /* One column: tag and title first, then the screenshot, then the text,
       so you know what a picture shows before you see it. */
    .showcase, .showcase.flip { display: flex; flex-direction: column; align-items: stretch; gap: 0; margin-bottom: 56px; }
    .showcase > div:not(.shot) { display: contents; }
    .showcase .tag { order: 1; align-self: flex-start; margin-bottom: 10px; }
    .showcase h3 { order: 2; margin-bottom: 18px; }
    .showcase .shot, .showcase.flip .shot { order: 3; margin-bottom: 20px; }
    .showcase p { order: 4; }
    /* These screenshots already end in a soft shadow, so less space below. */
    .showcase .shot.bare { margin-bottom: 6px; }
    .showcase h3 { margin-bottom: 12px; }
}

@media (max-width: 600px) {
    .grid, .support-grid { grid-template-columns: 1fr; }
    .nav-links { gap: 16px; }
    .nav-links .hide-sm { display: none; }
    .brand-sub, .brand-long { display: none; }
    .hero { padding-top: 56px; }
    .hero-icon { width: 104px; height: 104px; }
    section { padding: 56px 0; }
    .hero-shot, .shot { border-radius: 14px; }
    /* Feature cards: icon beside the title, so they take less scrolling. */
    .grid > .card { display: grid; grid-template-columns: 42px 1fr; column-gap: 16px; padding: 20px; }
    .grid > .card .icon-badge { grid-row: span 2; }
    .grid > .card h3 { margin: 0 0 4px; align-self: center; }
}

/* Small line above the big hero heading: names the app for people and search engines. */
.hero-kicker {
    display: block;
    font-size: max(15px, 0.26em);
    font-weight: 600;
    letter-spacing: 0;
    color: var(--text-2);
    margin-bottom: 14px;
}


/* ---------- Hero: text and player side by side on wide screens ---------- */

@media (min-width: 900px) {
    .hero { text-align: left; padding: 56px 0 32px; }
    .hero-grid {
        display: grid;
        grid-template-columns: 1fr 380px;
        gap: 64px;
        /* Text starts at the top, level with the player's top edge. */
        align-items: start;
    }
    /* The icon's top edge lines up with the top of the screenshot. */
    .hero-text { padding-top: 0; }
    .hero-icon { margin: 0 0 24px; }
    .hero .lead { margin-left: 0; margin-right: 0; }
    .cta-row { justify-content: flex-start; }
    .hero-shot { margin: 0; max-width: none; }
    /* The screenshot's soft shadow sits above the window; lift it so the window's top edge meets the icon's. */
    .hero-shot.bare { margin-top: -5.4%; }
}

/* A short line under the download buttons. */
.cta-note { margin: 14px 0 0; color: var(--text-3); font-size: 0.92em; }
.plans-cta { margin-top: 36px; display: flex; flex-direction: column; align-items: center; text-align: center; }

/* Official store badges (Apple, Microsoft), unchanged; each page picks a file per Light/Dark. */
.store-badge { display: inline-flex; align-self: center; border-radius: 10px; }
.store-badge img { display: block; height: 50px; width: auto; }
.store-badge:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- FAQ ---------- */

.faq {
    margin-top: 18px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 26px;
    box-shadow: var(--card-shadow);
}
.faq-title { font-size: 1.12em; margin: 16px 0 6px; }
.faq details { border-top: 1px solid var(--border); }
.faq details:first-of-type { border-top: none; }
.faq summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 32px 16px 0;
    font-weight: 600;
    position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "";
    position: absolute;
    right: 6px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--text-3);
    border-bottom: 2px solid var(--text-3);
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: 0 0 16px; color: var(--text-2); }

/* ---------- Screenshots open full size ---------- */

.zoomable img { cursor: zoom-in; }
.zoomable img:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.lightbox {
    border: none;
    padding: 0;
    background: transparent;
    max-width: 96vw;
    max-height: 94vh;
    cursor: zoom-out;
}
.lightbox::backdrop {
    background: rgba(10, 8, 20, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.lightbox img {
    max-width: 96vw;
    max-height: 94vh;
    width: auto;
    height: auto;
    border-radius: 14px;
}

/* ---------- Gentle fade-in while scrolling ---------- */

.js-reveal .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.js-reveal .reveal.in { opacity: 1; transform: none; }

/* ---------- More Apps page: one wide card per app ---------- */

.apps-page { padding: 48px 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.apps-page h1 { font-size: clamp(2.2em, 6vw, 3.2em); letter-spacing: -0.03em; margin: 0 0 10px; line-height: 1.1; }

.apps-list { display: flex; flex-direction: column; gap: 18px; max-width: 1000px; margin: 0 auto; }

.app-card {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    padding: 0;
    overflow: hidden;
    color: var(--text);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
a.app-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); }
.app-shot-wrap { background: var(--bg-soft); }
.app-shot { width: 100%; height: 100%; object-fit: cover; }
.app-body { padding: 36px 36px 32px; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.app-title { display: flex; align-items: center; gap: 14px; }
.app-title img { width: 56px; height: 56px; }
.app-title h3 { margin: 0; font-size: 1.5em; letter-spacing: -0.02em; }
.app-platform { color: var(--text-3); font-size: 0.92em; }
.app-body p { margin: 0; color: var(--text-2); font-size: 1.04em; }
.app-points { list-style: none; margin: 0; padding: 0; color: var(--text-2); font-size: 0.95em; }
.app-points li { position: relative; padding: 3px 0 3px 24px; }
.app-points li::before {
    content: ""; position: absolute; left: 2px; top: 10px; width: 11px; height: 6px;
    border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.app-foot { margin-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.app-foot .store-badge img { height: 40px; }
.app-more { color: var(--link); font-weight: 600; }

/* "More apps": a quiet dashed strip, not an empty box. */
.app-next {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    border: 1px dashed color-mix(in srgb, var(--text) 18%, transparent);
    border-radius: var(--radius);
    color: var(--text-3);
}
.app-next strong { display: block; color: var(--text-2); font-weight: 600; }
.app-next span { font-size: 0.92em; }
.app-next-mark {
    flex: none;
    width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center;
    border: 1px dashed color-mix(in srgb, var(--text) 30%, transparent);
    font-size: 1.4em; line-height: 1;
}

code {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1px 6px;
    font-size: 0.88em;
}

@media (max-width: 760px) {
    .app-card { grid-template-columns: 1fr; }
    .app-shot { height: auto; }
    .app-body { padding: 24px; }
}

/* ---------- Hero with a wide (landscape) window: text centered above it ---------- */

.hero-wide .hero-shot { max-width: 1100px; margin: 36px auto 0; }
@media (min-width: 900px) {
    .hero.hero-wide { text-align: center; padding: 72px 0 32px; }
    .hero-wide .hero-grid { display: block; }
    .hero-wide .hero-icon { margin: 0 auto 24px; }
    .hero-wide .lead { margin-left: auto; margin-right: auto; }
    .hero-wide .cta-row { justify-content: center; }
    .hero-wide .hero-shot { margin: 36px auto 0; max-width: 1100px; }
    .hero-wide .hero-shot.bare { margin-top: 28px; }
}

/* ---------- Home: Mac apps like Launchpad, Windows apps like the Start menu ---------- */
.launch-page { position: relative; isolation: isolate; padding: 64px 0 56px; }
.launch-page::before {
    content: ""; position: absolute; inset: -120px 0 auto 0; height: 900px; z-index: -1;
    background: radial-gradient(95% 85% at 50% 0%, var(--hero-light), transparent 75%);
}
.launch-page h1 { font-size: clamp(2.2em, 6vw, 3.2em); letter-spacing: -0.03em; margin: 0 0 10px; line-height: 1.1; }

.launchpad {
    --lp-bg: rgba(255, 255, 255, 0.86);
    --lp-border: rgba(0, 0, 0, 0.06);
    --lp-name: #3a3a3c;
    max-width: 680px; margin: 40px auto 0; padding: 30px 24px 22px;
    border-radius: 44px; border: 1px solid var(--lp-border); background: var(--lp-bg);
    backdrop-filter: blur(40px) saturate(1.6); -webkit-backdrop-filter: blur(40px) saturate(1.6);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05), 0 40px 80px -36px rgba(20, 30, 60, 0.38);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .launchpad {
        --lp-bg: rgba(38, 38, 42, 0.82);
        --lp-border: rgba(255, 255, 255, 0.08);
        --lp-name: #e5e5ea;
    }
}
.launch-label { font-size: 0.95em; font-weight: 600; color: var(--text-3); margin: 0 0 6px 14px; letter-spacing: 0; }
.launch-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 0; }
.launch-app {
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    padding: 14px 4px 12px; border-radius: 22px; color: var(--lp-name); text-align: center;
}
.launch-app:hover { text-decoration: none; }
.launch-app img {
    width: 120px; height: 120px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.16));
    transition: transform 0.15s ease, filter 0.15s ease;
}
.launch-app:hover img { filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.22)); }
.launch-app:active img { transform: scale(0.94); filter: brightness(0.85) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.16)); }
.launch-app span { font-size: 1.12em; font-weight: 400; line-height: 1.25; }
.launch-soon { display: block; font-size: 0.72em; color: var(--text-3); margin-top: 2px; }
@media (max-width: 600px) {
    .launchpad { padding: 22px 10px 14px; border-radius: 34px; }
    .launch-grid { grid-template-columns: repeat(3, 1fr); }
    .launch-app img { width: 80px; height: 80px; }
    .launch-app span { font-size: 0.95em; }
}

.startmenu {
    --start-bg: rgba(243, 243, 243, 0.86);
    --start-border: rgba(0, 0, 0, 0.08);
    --start-hover: rgba(0, 0, 0, 0.045);
    max-width: 680px; margin: 40px auto 0; padding: 22px 26px 26px;
    border-radius: 8px; border: 1px solid var(--start-border);
    background: var(--start-bg);
    backdrop-filter: blur(30px) saturate(1.4); -webkit-backdrop-filter: blur(30px) saturate(1.4);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06), 0 22px 44px -18px rgba(0, 0, 0, 0.28);
    font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .startmenu {
        --start-bg: rgba(36, 36, 38, 0.88);
        --start-border: rgba(255, 255, 255, 0.08);
        --start-hover: rgba(255, 255, 255, 0.06);
    }
}
.start-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 14px 6px; }
.start-head h2 { font-size: 0.95em; font-weight: 600; margin: 0; letter-spacing: 0; color: var(--text); }
.start-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 4px; }
.start-app {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 12px 4px 10px; border-radius: 4px; color: var(--text); text-align: center;
}
.start-app:hover { text-decoration: none; background: var(--start-hover); }
.start-app img { width: 40px; height: 40px; }
.start-app span { font-size: 0.78em; line-height: 1.25; }

/* ---------- Conventional Mouse: the menu bar menu, drawn ---------- */
.hero-menu {
    --mb-bg: rgba(246, 246, 248, 0.82);
    --mb-line: rgba(0, 0, 0, 0.1);
    --mb-text: #1d1d1f;
    --mb-dim: rgba(29, 29, 31, 0.55);
    width: min(420px, 100%); margin: 40px auto 0; text-align: left;
    font: 15px/1.2 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
    color: var(--mb-text);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .hero-menu {
        --mb-bg: rgba(44, 44, 48, 0.82);
        --mb-line: rgba(255, 255, 255, 0.12);
        --mb-text: #f5f5f7;
        --mb-dim: rgba(245, 245, 247, 0.6);
    }
}
.mb-bar {
    display: flex; justify-content: flex-end; align-items: center; gap: 14px;
    height: 34px; padding: 0 12px; border-radius: 10px 10px 0 0;
    background: var(--mb-bg); border: 1px solid var(--mb-line); border-bottom: 0;
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
}
.mb-item { display: inline-flex; align-items: center; height: 22px; padding: 0 6px; border-radius: 5px; }
.mb-item svg { width: 17px; height: 17px; }
.mb-on { background: color-mix(in srgb, var(--mb-text) 14%, transparent); }
.mb-dim { color: var(--mb-dim); font-weight: 500; }
.mb-menu {
    margin: 4px 0 0 auto; width: min(290px, 100%); padding: 5px;
    border-radius: 11px; border: 1px solid var(--mb-line); background: var(--mb-bg);
    backdrop-filter: blur(24px) saturate(1.5); -webkit-backdrop-filter: blur(24px) saturate(1.5);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 18px 40px -12px rgba(0, 0, 0, 0.35);
}
.mb-row { display: flex; align-items: center; justify-content: space-between; height: 28px; padding: 0 11px; border-radius: 6px; }
.mb-switch i {
    position: relative; width: 32px; height: 18px; border-radius: 9px; flex: none; margin-left: 20px;
    background: color-mix(in srgb, var(--mb-text) 16%, transparent);
}
.mb-switch i::after {
    content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%;
    background: #fff; box-shadow: 0 0.5px 1px rgba(0, 0, 0, 0.25);
}
.mb-switch i.on { background: #0a84ff; }
.mb-switch i.on::after { left: 16px; }
.mb-key { color: var(--mb-dim); }
.mb-sep { height: 1px; margin: 5px 11px; background: var(--mb-line); }

.card h3 .tag { display: block; margin-top: 4px; font-size: 0.72em; }
.plan .plan-note { color: var(--text-3); font-size: 0.9em; margin: 14px 0 0; }
.plan .plan-btn { margin-top: 18px; }
.support-grid ol { margin: 0; padding-left: 1.2em; }
.support-grid ol li { margin: 0 0 6px; }

/* ---------- Brightly ---------- */
.hero-wide .hero-shot.shot-wide { max-width: 960px; }
.hero-icon.hero-icon-plain { box-shadow: none; border-radius: 0; }
.hero-icon-plain img { filter: drop-shadow(0 10px 18px rgba(0, 90, 180, 0.25)); }

/* ---------- Grepy: its window, drawn ---------- */
.grep-mock {
    --gm-win: #ffffff; --gm-card: #f6f6f6; --gm-field: #ffffff; --gm-border: rgba(0, 0, 0, 0.1);
    --gm-text: #1d1d1f; --gm-dim: rgba(29, 29, 31, 0.5); --gm-accent: #0a84ff; --gm-btn: rgba(0, 0, 0, 0.06);
    width: min(760px, 100%); margin: 40px auto 0; text-align: left; overflow: hidden;
    border-radius: 16px; border: 1px solid var(--gm-border); background: var(--gm-win); color: var(--gm-text);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06), 0 30px 70px -28px rgba(10, 20, 50, 0.4);
    font: 13px/1.3 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .grep-mock {
        --gm-win: #1e1e1e; --gm-card: #2b2b2b; --gm-field: #1e1e1e; --gm-border: rgba(255, 255, 255, 0.1);
        --gm-text: #f5f5f7; --gm-dim: rgba(245, 245, 247, 0.55); --gm-btn: rgba(255, 255, 255, 0.1);
    }
}
.gm-top { height: 30px; display: flex; align-items: center; padding: 0 14px; }
.gm-lights { display: flex; gap: 8px; }
.gm-lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.gm-lights i:nth-child(2) { background: #febc2e; }
.gm-lights i:nth-child(3) { background: #28c840; }
.gm-card { margin: 0 10px; padding: 10px 12px; border-radius: 12px; background: var(--gm-card); display: grid; gap: 8px; }
.gm-row { display: flex; align-items: center; gap: 8px; }
.gm-label { width: 70px; flex: none; color: var(--gm-dim); }
.gm-field { flex: 1; min-width: 0; height: 26px; line-height: 26px; padding: 0 9px; border-radius: 7px; background: var(--gm-field); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-mono, .gm-results, .gm-path { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.gm-btn, .gm-seg { flex: none; height: 24px; line-height: 24px; padding: 0 10px; border-radius: 12px; background: var(--gm-btn); }
.gm-seg { display: inline-flex; padding: 0 2px; gap: 2px; align-items: center; }
.gm-seg span { padding: 0 8px; line-height: 20px; border-radius: 10px; }
.gm-seg .on { background: var(--gm-accent); color: #fff; }
.gm-results { margin: 10px 10px 0; border-radius: 12px; overflow: hidden; background: var(--gm-win); font-size: 12px; border: 1px solid var(--gm-border); }
.gm-head {
    display: flex; align-items: center; gap: 8px; height: 26px; padding: 0 10px; font-weight: 600;
    background: color-mix(in srgb, var(--gm-accent) 10%, var(--gm-card));
}
.gm-chev { color: var(--gm-dim); font-size: 11px; }
.gm-path { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gm-badge { font-size: 10px; font-weight: 500; color: var(--gm-accent); padding: 1px 7px; border-radius: 7px; background: color-mix(in srgb, var(--gm-accent) 18%, transparent); }
.gm-line { display: flex; gap: 10px; height: 22px; line-height: 22px; padding-right: 10px; color: var(--gm-dim); white-space: nowrap; overflow: hidden; }
.gm-line.hit { color: var(--gm-text); background: color-mix(in srgb, var(--gm-text) 5%, transparent); }
.gm-n { width: 52px; flex: none; text-align: right; color: var(--gm-dim); }
.gm-sep { opacity: 0.6; }
.gm-line mark { background: #ffd60a; color: #000; border-radius: 2px; padding: 0 1px; }
.gm-status { display: flex; justify-content: space-between; padding: 8px 20px 10px; font-size: 12px; }
.gm-dim { color: var(--gm-dim); }
@media (max-width: 600px) {
    .grep-mock { font-size: 12px; }
    .gm-btn:nth-last-child(-n+2):not(.gm-seg) { display: none; }
    .gm-label { width: 62px; white-space: nowrap; }
}
