:root {
    color-scheme: light;
    --ink: #13241f;
    --muted: #4c5f58;
    --canvas: #fbfdf9;
    --line: #dbe5dd;
    --accent: #174e3d;
    --accent-hover: #0b372a;
    --tint: #eef5ec;
    font-family: "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); line-height: 1.55; }
a { color: var(--accent); }
button { font: inherit; }
:where(a, button):focus-visible { outline: 3px solid #31775f; outline-offset: 4px; }
.page { max-width: 76rem; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3.5rem); }
.site-header { border-bottom: 1px solid var(--line); }
.header-content, .footer-content {
    min-height: 4.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.wordmark { display: flex; align-items: center; gap: .65rem; font-weight: 750; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: .5rem; background: var(--accent); color: #fff; }
.brand-detail { font-weight: 500; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(.75rem, 2vw, 1.75rem); }
nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
nav a:hover, .secondary-link:hover { text-decoration: underline; }
.account-link { border: 1px solid var(--line); padding: .37rem .8rem; border-radius: .4rem; }
.hero {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: clamp(2rem, 5.3vw, 5rem);
    padding-block: clamp(3.5rem, 9vw, 7.5rem);
}
h1, h2, h3 { margin: 0; line-height: 1.1; }
h1 { max-width: 11ch; font-size: clamp(3rem, 6.1vw, 5.6rem); letter-spacing: -.066em; font-weight: 735; }
h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); letter-spacing: -.047em; }
h3 { font-size: 1.22rem; }
p { margin: .8rem 0 0; color: var(--muted); }
.hero-copy > p:first-of-type { font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 35ch; margin-top: 1.3rem; }
.hero-actions { display: flex; gap: 1rem 1.3rem; align-items: center; flex-wrap: wrap; margin-top: 1.7rem; }
.primary-button {
    display: inline-flex;
    padding: .72rem 1.18rem;
    border-radius: .4rem;
    background: var(--accent);
    color: white;
    font-weight: 650;
    text-decoration: none;
}
.primary-button:hover { background: var(--accent-hover); }
.secondary-link { font-weight: 650; text-underline-offset: .22em; }
.requirements { font-size: .93rem; }

.preview { margin: 0; min-width: 0; }
.preview-stage {
    display: grid;
    padding: clamp(.85rem, 3vw, 2rem);
    border-radius: 1.25rem;
    background: radial-gradient(ellipse at 24% 120%, #5a9e78 0, transparent 70%), #153f35;
    min-height: 21rem;
    align-items: center;
}
.mock-app {
    overflow: hidden;
    border: 1px solid #3a4e49;
    border-radius: .65rem;
    background: #111c1b;
    color: #e7f1ec;
    box-shadow: 0 14px 34px #001b1380;
    font-size: .82rem;
}
.mock-chrome { padding: .55rem .75rem; border-bottom: 1px solid #3a4e49; font-weight: 650; }
.mock-mark { color: #8fe0ad; margin-right: .45rem; }
.mock-workspace { display: grid; grid-template-columns: minmax(6.25rem, .85fr) minmax(0, 2fr); }
.mock-sidebar { display: grid; align-content: start; gap: .5rem; padding: .7rem; border-right: 1px solid #3a4e49; color: #c9d8d1; }
.mock-sidebar strong { margin-block: .15rem; font-size: .73rem; color: #f0f9f4; }
.mock-device, .mock-active { padding: .25rem .3rem; border-radius: .25rem; }
.mock-device.selected { background: #244739; color: #d4f8e4; }
.mock-active i { display: inline-block; margin-right: .25rem; width: .4rem; height: .4rem; border-radius: 50%; background: #82e0a6; }
.mock-session { padding: .6rem; min-width: 0; }
.mock-caption { font-size: .73rem; font-weight: 650; }
.mock-screen {
    margin-top: .45rem;
    min-height: 13.7rem;
    padding: 2.2rem .75rem 1rem;
    border-radius: .38rem;
    color: white;
    background: radial-gradient(ellipse at 88% 75%, #1d7863 0, transparent 65%), linear-gradient(145deg, #112656, #17305a 45%, #14534f);
    display: grid;
    align-content: space-between;
    gap: 1.4rem;
}
.mock-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem .4rem; text-align: center; }
.mock-grid span { display: grid; place-items: center; margin: 0 auto .25rem; border-radius: .45rem; width: 2rem; height: 2rem; font-size: 1.25rem; color: #12273c; background: var(--tile); }
.mock-grid div:nth-child(1) { --tile: #4ba8f7; }
.mock-grid div:nth-child(2) { --tile: #ffafc1; }
.mock-grid div:nth-child(3) { --tile: #77dbc0; }
.mock-grid div:nth-child(4) { --tile: #d6c1ff; }
.mock-taskbar { display: flex; justify-content: center; gap: .4rem; width: fit-content; margin-inline: auto; padding: .4rem .65rem; border-radius: .36rem; background: #102039c9; }
.mock-taskbar b { background: #d1ede5; width: .45rem; height: .45rem; border-radius: .13rem; }
.preview-stage[data-layout="separate"] .mock-workspace, .preview-stage[data-layout="full"] .mock-workspace { display: block; }
.preview-stage[data-layout="separate"] .mock-sidebar, .preview-stage[data-layout="full"] .mock-sidebar { display: none; }
.preview-stage[data-layout="full"] .mock-chrome, .preview-stage[data-layout="full"] .mock-caption { display: none; }
.preview-stage[data-layout="full"] .mock-session { padding: 0; }
.preview-stage[data-layout="full"] .mock-screen { margin: 0; min-height: 17rem; }
figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .45rem .8rem; align-items: center; margin-top: .8rem; color: var(--muted); font-size: .92rem; }
.preview-options { display: flex; flex-wrap: wrap; gap: .35rem; }
.preview-options button { background: transparent; border: 1px solid var(--line); border-radius: .33rem; cursor: pointer; padding: .22rem .55rem; color: var(--ink); }
.preview-options [aria-pressed="true"] { background: var(--tint); color: var(--accent); border-color: #88a89b; }

.how-band { background: var(--tint); border-block: 1px solid var(--line); }
.how-content, .downloads { padding-block: clamp(3rem, 7vw, 5.5rem); }
.steps { list-style-position: inside; padding: 0; margin: 1.6rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.45rem; }
.steps li { border-top: 1px solid #b4c9bc; padding-top: .8rem; }
.steps li::marker { font-weight: 700; color: var(--accent); }
.steps h3 { display: inline; margin-left: .18rem; }
.downloads { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1.5rem 3rem; }
.release-list { background: #fff; border: 1px solid var(--line); padding: 1rem; border-radius: .45rem; margin: 0 0 1rem; }
.release-list p:first-child { margin-top: 0; }
.release-list section + section { margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.release-list ul { margin: .45rem 0 0; padding-left: 1.3rem; overflow-wrap: anywhere; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); }
.footer-content { justify-content: start; gap: 1rem 1.5rem; }
.footer-content span { margin-right: auto; }

@media (max-width: 52rem) {
    .hero, .downloads { grid-template-columns: minmax(0, 1fr); }
    h1 { max-width: 14ch; }
}
@media (max-width: 37rem) {
    .header-content { padding-block: .8rem; }
    .steps { grid-template-columns: minmax(0, 1fr); }
    .mock-sidebar { padding-inline: .4rem; }
    .preview-stage { min-height: 18rem; }
}
