:root {
    --bg: #fbf6ee;
    --band: #f4ecdf;
    --surface: #fffdf9;
    --text: #29251f;
    --muted: #6e665b;
    --line: #e5dacb;
    --code-bg: #f1e8da;
    --green: #356c47;
    --green-strong: #2a573a;
    --green-soft: #e2ecdd;
    --purple: #7a4775;
    --purple-soft: #f0e3ee;
    --blue: #3c5b8a;
    --blue-soft: #e1e8f2;
    --link: #2f6a43;
    --on-green: #fff;
    --shadow: 0 1px 2px rgb(60 40 20 / 6%), 0 12px 32px -12px rgb(60 40 20 / 22%);
    --radius: 16px;
    --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #191816;
        --band: #201f1c;
        --surface: #252420;
        --text: #ede7dd;
        --muted: #a69e92;
        --line: #36332d;
        --code-bg: #2d2b27;
        --green: #80c191;
        --green-strong: #9ad0a8;
        --green-soft: #243329;
        --purple: #cfa3ca;
        --purple-soft: #352833;
        --blue: #9ab6dd;
        --blue-soft: #252e3b;
        --link: #93cfa3;
        --on-green: #13201a;
        --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 16px 40px -16px rgb(0 0 0 / 60%);
    }
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Cantarell, "Noto Sans", sans-serif;
}

a {
    color: var(--link);
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

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

:focus-visible {
    outline: 3px solid var(--green);
    outline-offset: 2px;
    border-radius: 4px;
}

.wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 16px;
}

.narrow {
    max-width: 760px;
}

.skip {
    position: absolute;
    left: -999px;
}

.skip:focus {
    left: 16px;
    top: 12px;
    z-index: 10;
    background: var(--surface);
    padding: 8px 12px;
}

/* Header */

.top {
    position: sticky;
    top: 0;
    z-index: 5;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.top .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 750;
    font-size: 21px;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.brand img {
    width: 34px;
    height: 34px;
}

nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
}

nav a {
    color: var(--muted);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 16px;
}

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

nav a[aria-current="page"] {
    color: var(--text);
    font-weight: 600;
}

nav a.nav-cta {
    background: var(--green);
    color: var(--on-green);
    font-weight: 600;
    margin-left: 6px;
}

nav a.nav-cta:hover {
    background: var(--green-strong);
    color: var(--on-green);
}

@media (max-width: 560px) {
    .top {
        position: static;
    }

    nav {
        width: 100%;
        margin-left: -10px;
    }

    nav a.nav-cta {
        margin-left: auto;
    }
}

/* Text */

h1,
h2,
h3 {
    line-height: 1.15;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(34px, 6.4vw, 58px);
    font-weight: 800;
    margin: 0 0 20px;
}

h2 {
    font-size: clamp(27px, 4vw, 38px);
    font-weight: 750;
    margin: 0 0 14px;
}

h3 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin: 0 0 6px;
}

p {
    text-wrap: pretty;
}

.eyebrow {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--green);
    margin: 0 0 12px;
}

.lead {
    font-size: clamp(18px, 2.2vw, 21px);
    color: var(--muted);
    max-width: 36em;
    margin: 0 0 30px;
}

.muted {
    color: var(--muted);
}

.small {
    font-size: 15px;
}

code,
pre {
    font-family: var(--mono);
    font-size: 0.88em;
}

code {
    background: var(--code-bg);
    padding: 1px 6px;
    border-radius: 6px;
    overflow-wrap: anywhere;
}

pre {
    background: var(--code-bg);
    border: 1px solid var(--line);
    padding: 14px 16px;
    border-radius: 12px;
    overflow-x: auto;
    line-height: 1.55;
    font-size: 15px;
}

pre code {
    background: none;
    padding: 0;
    font-size: inherit;
    overflow-wrap: normal;
}

/* Sections */

main {
    display: block;
}

.section {
    padding: 88px 0;
}

.section.band {
    background: var(--band);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-head {
    max-width: 640px;
    margin-bottom: 44px;
}

.section-head.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-head p {
    color: var(--muted);
    font-size: 18px;
    margin: 0;
}

@media (max-width: 700px) {
    .section {
        padding: 60px 0;
    }
}

/* Buttons */

.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    font-weight: 650;
    text-decoration: none;
    transition: background 0.15s, transform 0.15s;
}

.button:hover {
    background: var(--band);
}

.button.primary {
    background: var(--green);
    border-color: var(--green);
    color: var(--on-green);
    box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--green) 70%, transparent);
}

.button.primary:hover {
    background: var(--green-strong);
    transform: translateY(-1px);
}

.button.big {
    padding: 15px 26px;
    font-size: 18px;
}

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

/* Hero */

.hero {
    padding: 72px 0 40px;
    overflow: hidden;
}

.hero .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 48px;
    align-items: center;
}

.hero-note {
    margin-top: 18px;
    font-size: 15px;
    color: var(--muted);
}

.hero-shot {
    position: relative;
}

.hero-shot .window {
    position: relative;
    z-index: 1;
}

.hero-shot {
    padding-bottom: 12%;
}

.hero-shot .window.float {
    position: absolute;
    z-index: 2;
    width: 44%;
    left: -8%;
    bottom: 0;
}

@media (max-width: 880px) {
    .hero .wrap {
        grid-template-columns: 1fr;
    }

    .hero-shot .window.float {
        left: auto;
        right: -4%;
    }
}

/* Screenshots in a window frame */

.window {
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.window img,
.window picture {
    display: block;
    width: 100%;
}

/* How it works */

.flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 40px;
    counter-reset: flow;
}

.flow > div {
    counter-increment: flow;
}

.flow h3::before {
    content: counter(flow);
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin-right: 10px;
    border-radius: 50%;
    background: var(--green);
    color: var(--on-green);
    font-size: 15px;
    vertical-align: 2px;
}

.flow p {
    color: var(--muted);
    margin: 0;
}

.diagram {
    display: block;
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
}

/* The diagram's parts */

.d-box { fill: var(--surface); stroke: var(--line); stroke-width: 2; }
.d-screen { fill: var(--bg); stroke: var(--line); stroke-width: 1.5; }
.d-text { fill: var(--text); font: 600 17px system-ui, sans-serif; }
.d-sub { fill: var(--muted); font: 14px system-ui, sans-serif; }
.d-line { fill: var(--muted); opacity: 0.45; }
.d-lockbody { fill: var(--green); }
.d-lockbow { fill: none; stroke: var(--green); stroke-width: 3; }
.d-wire { stroke: var(--green); stroke-width: 2.5; fill: none; stroke-dasharray: 2 7; stroke-linecap: round; }
.d-arrowhead { fill: var(--green); }
.d-chip { fill: var(--green-soft); }
.d-chiptext { fill: var(--green); font: 600 13px ui-monospace, monospace; }
.d-led { fill: var(--green); }

@media (max-width: 760px) {
    .flow {
        grid-template-columns: 1fr;
        margin-top: 0;
    }

    /* Its labels get too small to read. The steps say the same. */
    .diagram {
        display: none;
    }
}

/* App rows */

.app-row {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 56px;
    align-items: center;
    padding: 40px 0;
}

.app-row + .app-row {
    border-top: 1px solid var(--line);
}

.app-row.flip .app-text {
    order: 2;
}

.app-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.app-title img {
    width: 52px;
    height: 52px;
}

.app-title h3 {
    font-size: 28px;
    margin: 0;
}

.app-title .tag {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0;
}

.ticks {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ticks li {
    position: relative;
    padding: 5px 0 5px 32px;
}

.ticks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: var(--accent-soft, var(--green-soft));
}

.ticks li::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 12px;
    width: 5px;
    height: 10px;
    border: solid var(--accent, var(--green));
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.accent-pass {
    --accent: var(--purple);
    --accent-soft: var(--purple-soft);
}

.accent-notes {
    --accent: var(--blue);
    --accent-soft: var(--blue-soft);
}

.accent-hub {
    --accent: var(--green);
    --accent-soft: var(--green-soft);
}

.app-row .app-title .tag {
    color: var(--accent);
}

@media (max-width: 860px) {
    .app-row {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .app-row.flip .app-text {
        order: 0;
    }
}

/* Feature grid */

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.feature {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
}

.feature .icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--green-soft);
    color: var(--green);
    margin-bottom: 14px;
}

.feature .icon svg {
    width: 24px;
    height: 24px;
}

.feature p {
    color: var(--muted);
    margin: 0;
}

/* Call to action */

.cta {
    text-align: center;
    padding: 80px 0;
}

.cta-box {
    background: var(--green);
    color: var(--on-green);
    border-radius: 28px;
    padding: 56px 24px;
    position: relative;
    overflow: hidden;
}

.cta-box h2 {
    color: inherit;
}

.cta-box p {
    margin: 0 auto 28px;
    max-width: 32em;
    opacity: 0.9;
    font-size: 18px;
}

.cta-box .button {
    background: var(--bg);
    border-color: var(--bg);
    color: var(--text);
}

.cta-box .button:hover {
    background: var(--surface);
}

.cta-box .button.ghost {
    background: transparent;
    border-color: color-mix(in srgb, var(--on-green) 45%, transparent);
    color: var(--on-green);
}

.cta-box .button.ghost:hover {
    background: color-mix(in srgb, var(--on-green) 12%, transparent);
}

.cta-box .actions {
    justify-content: center;
}

/* Footer */

footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 15px;
}

footer .wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 28px;
    padding-bottom: 36px;
}

footer .brand {
    font-size: 17px;
}

footer .brand img {
    width: 26px;
    height: 26px;
}

footer nav a {
    font-size: 15px;
}

/* Content pages */

.page-head {
    padding: 64px 0 40px;
    background: var(--band);
    border-bottom: 1px solid var(--line);
}

.page-head h1 {
    font-size: clamp(32px, 5vw, 46px);
    margin-bottom: 12px;
}

.page-head .lead {
    margin: 0;
}

.prose {
    padding-top: 48px;
    padding-bottom: 80px;
}

.prose h2 {
    font-size: 27px;
    margin: 52px 0 12px;
}

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

.prose li {
    margin-bottom: 6px;
}

/* Steps */

.steps {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step;
}

.steps > li {
    counter-increment: step;
    position: relative;
    padding: 0 0 40px 60px;
}

.steps > li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--green);
    color: var(--on-green);
    font-weight: 750;
    display: grid;
    place-items: center;
}

.steps > li::after {
    content: "";
    position: absolute;
    left: 18px;
    top: 46px;
    bottom: 8px;
    width: 2px;
    background: var(--line);
}

.steps > li:last-child::after {
    display: none;
}

.steps h3 {
    font-size: 22px;
    padding-top: 5px;
    margin-bottom: 10px;
}

.steps p {
    margin: 0 0 12px;
}

.os {
    display: grid;
    gap: 12px;
    margin: 14px 0;
}

.os > div {
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 16px;
}

.os h4 {
    margin: 0 0 4px;
    font-size: 16px;
}

.os p {
    margin: 0 0 8px;
}

.os p:last-child,
.os pre:last-child {
    margin-bottom: 0;
}

.os pre {
    margin: 8px 0;
}

/* Download */

.platforms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 18px;
}

.platform {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
}

.platform.featured {
    border-color: color-mix(in srgb, var(--green) 45%, var(--line));
}

.platform .os-icon {
    width: 40px;
    height: 40px;
    color: var(--muted);
    margin-bottom: 12px;
}

.platform h3 {
    margin-bottom: 4px;
}

.platform > p {
    color: var(--muted);
    font-size: 15px;
    margin: 0 0 16px;
}

.platform .grow {
    flex: 1;
}

.platform .button {
    align-self: flex-start;
}

.platform pre {
    white-space: pre-wrap;
    word-break: break-all;
    margin: 0 0 12px;
}

.file {
    margin-top: 10px;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--muted);
    word-break: break-all;
}

.hint {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 14px;
    color: var(--muted);
}

.hint p {
    margin: 0;
}

.version {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 5px 12px;
    border-radius: 99px;
    margin-bottom: 18px;
}

.version .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
}

.table-scroll {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}

table {
    border-collapse: collapse;
    width: 100%;
    font-size: 15px;
}

th,
td {
    text-align: left;
    padding: 11px 16px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

tr:last-child td {
    border-bottom: 0;
}

th {
    font-weight: 650;
    white-space: nowrap;
    background: var(--band);
}

td.hash {
    font-family: var(--mono);
    font-size: 13px;
    word-break: break-all;
    min-width: 16em;
}

.note {
    border: 1px solid var(--line);
    border-left: 4px solid var(--green);
    background: var(--surface);
    padding: 16px 20px;
    border-radius: 0 12px 12px 0;
}

.note p {
    margin: 0;
}

.threat td:first-child {
    font-weight: 600;
    width: 38%;
}

.covered {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 99px;
    margin-right: 6px;
    background: var(--green-soft);
    color: var(--green);
}

.covered.no {
    background: var(--purple-soft);
    color: var(--purple);
}

.keys {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.keys > div {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px 18px;
}

.keys > div:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.keys h3 {
    font-size: 17px;
    margin-bottom: 4px;
}

.keys p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.steps.from-3 {
    counter-reset: step 2;
}

/* More apps to come */

.coming {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding: 24px 28px;
    border: 2px dashed var(--line);
    border-radius: var(--radius);
}

.coming-icon {
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--green-soft);
    color: var(--green);
}

.coming-icon svg {
    width: 26px;
    height: 26px;
}

.coming p {
    margin: 0;
    color: var(--muted);
}

@media (max-width: 560px) {
    .coming {
        flex-direction: column;
        align-items: flex-start;
    }
}
