:root {
    color-scheme: light;
    --ink: #1c1917;
    --muted: #57534e;
    --line: #e7e5e4;
    --paper: #fafaf9;
    --section: #ffffff;
    --card: #ffffff;
    --primary: #f59e0b;
    --primary-dark: #c2410c;
    --accent: #ff9e00;
    --warning: #92400e;
}

html.dark {
    color-scheme: dark;
    --ink: #fff7ed;
    --muted: #d6d3d1;
    --line: #3f3f46;
    --paper: #0c0a09;
    --section: #18181b;
    --card: #1c1917;
    --primary: #fbbf24;
    --primary-dark: #fdba74;
    --accent: #ffb12b;
    --warning: #fcd34d;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 16px/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    transition: background-color .25s ease, color .25s ease;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    background: rgb(255 255 255 / .86);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

html.dark .site-header {
    background: rgb(12 10 9 / .88);
}

.nav,
.wrap {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}

.nav {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
}

.brand {
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.04em;
    white-space: nowrap;
}

.brand span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: .875rem;
    font-weight: 650;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus,
.footer-links a:hover,
.footer-links a:focus {
    color: var(--accent);
}

.language {
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: 7px;
}

.theme-switch {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.theme-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.theme-switch-track {
    position: relative;
    display: block;
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: #d6d3d1;
}

html.dark .theme-switch-track {
    background: #57534e;
}

.theme-switch-track::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border: 1px solid #a8a29e;
    border-radius: 50%;
    background: #fff;
    transition: transform .25s ease;
}

.theme-switch input:checked + .theme-switch-track {
    background: var(--accent);
}

.theme-switch input:checked + .theme-switch-track::after {
    transform: translateX(20px);
}

.mobile-controls {
    display: none;
    align-items: center;
    gap: 16px;
}

.menu-button {
    border: 0;
    padding: 4px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
}

main {
    padding-top: 68px;
}

.hero {
    padding: 110px 0 92px;
    background: radial-gradient(circle at 78% 18%, #fed7aa 0, transparent 34%), linear-gradient(135deg, #fff, #fff7ed);
}

html.dark .hero {
    background: radial-gradient(circle at 78% 18%, #7c2d12 0, transparent 34%), linear-gradient(135deg, #29211d, #0c0a09);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 64px;
}

.eyebrow,
.section-kicker {
    color: var(--primary-dark);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    padding: 6px 11px;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    background: var(--card);
}

html.dark .eyebrow {
    border-color: #7c2d12;
}

h1,
h2,
h3 {
    line-height: 1.08;
    letter-spacing: -.045em;
}

h1 {
    max-width: 690px;
    margin: 0;
    font-size: clamp(3rem, 7vw, 6rem);
}

h2 {
    margin: 0 0 14px;
    font-size: clamp(2.2rem, 5vw, 4rem);
}

h3 {
    margin: 0 0 10px;
    font-size: 1.28rem;
}

.lede {
    max-width: 650px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: clamp(1.18rem, 2vw, 1.45rem);
}

.hero-audience {
    max-width: 620px;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 1rem;
}

.actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.button,
.app-store-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 14px;
    font-weight: 750;
    text-decoration: none;
    transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}

.button:hover,
.button:focus,
.app-store-button:hover,
.app-store-button:focus {
    transform: translateY(-1px);
}

.button.primary {
    background: var(--primary-dark);
    color: #fff;
}

.button.secondary {
    border: 1px solid var(--line);
    background: var(--card);
}

.app-store-button {
    gap: 12px;
    min-height: 56px;
    padding: 14px 22px;
    border: 1px solid rgb(0 0 0 / .8);
    border-radius: 16px;
    background: linear-gradient(to bottom, #333 0%, #000 100%);
    color: #fff;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .3), 0 7px 15px rgb(0 0 0 / .2);
}

.app-store-button svg {
    flex: 0 0 auto;
    width: 27px;
    height: 27px;
    fill: currentColor;
}

.app-store-button-copy {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.app-store-button-kicker {
    font-size: .625rem;
    font-weight: 500;
    letter-spacing: .08em;
    line-height: 1;
    opacity: .8;
    text-transform: uppercase;
}

.app-store-button-label {
    font-size: 1.1rem;
    line-height: 1.15;
}

.hero-art {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 420px;
}

.hero-art::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgb(245 158 11 / .22);
    filter: blur(70px);
}

.hero-image {
    position: relative;
    width: min(100%, 410px);
    margin: 0;
    border: 9px solid var(--card);
    border-radius: 38px;
    box-shadow: 0 28px 60px rgb(120 53 15 / .2);
    transform: rotate(-4deg);
}

.hero-image img {
    display: block;
    width: 100%;
    border-radius: 27px;
}

.section {
    padding: 88px 0;
}

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

.section-heading {
    max-width: 760px;
    margin-bottom: 38px;
}

.section-heading .section-kicker,
.split .section-kicker,
.privacy-link-card .section-kicker {
    margin: 0 0 10px;
}

.section-heading p:not(.section-kicker),
.section-lede,
.card p,
.faq dd,
.plain-list,
.changelog-entry li {
    color: var(--muted);
}

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

.three-up {
    grid-template-columns: repeat(3, 1fr);
}

.card {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--card);
    box-shadow: 0 12px 30px rgb(120 53 15 / .06);
}

.screens-heading {
    max-width: 700px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.screens {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 8px 4px 20px;
    scrollbar-width: thin;
    scroll-snap-type: x mandatory;
}

.screen-card {
    flex: 0 0 min(24vw, 245px);
    min-width: 190px;
    margin: 0;
    overflow: hidden;
    border: 6px solid var(--card);
    border-radius: 28px;
    background: var(--card);
    box-shadow: 0 18px 42px rgb(120 53 15 / .16);
    scroll-snap-align: center;
}

.screen-card img {
    display: block;
    width: 100%;
    height: auto;
}

.screen-card figcaption {
    padding: 10px 8px 12px;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 700;
    text-align: center;
}

.card .icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    margin-bottom: 19px;
    border-radius: 13px;
    background: #ffedd5;
    color: var(--primary-dark);
    font-size: 1.25rem;
}

html.dark .card .icon {
    background: #431407;
}

.step-card {
    position: relative;
    padding-top: 30px;
}

.step-number {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    margin-bottom: 20px;
    border-radius: 13px;
    background: var(--primary-dark);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
}

.split {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 50px;
    align-items: center;
}

.plain-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.plain-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.plain-list li::before {
    content: "✓";
    color: var(--primary-dark);
    font-weight: 900;
}

.callout {
    padding: 26px 28px;
    border-left: 4px solid var(--primary);
    border-radius: 0 18px 18px 0;
    background: var(--card);
    box-shadow: 0 12px 30px rgb(120 53 15 / .06);
}

.callout.warning {
    border-left-color: var(--warning);
}

.privacy-link-section {
    padding-top: 64px;
    padding-bottom: 64px;
}

.privacy-link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 34px;
    border: 1px solid #fed7aa;
    border-radius: 24px;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
}

html.dark .privacy-link-card {
    border-color: #7c2d12;
    background: linear-gradient(135deg, #29211d, #431407);
}

.privacy-link-card h2 {
    margin-bottom: 10px;
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.privacy-link-card p:not(.section-kicker) {
    max-width: 610px;
    margin: 0;
    color: var(--muted);
}

.faq {
    display: grid;
    gap: 12px;
}

.faq details {
    padding: 19px 21px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--card);
}

.faq summary {
    cursor: pointer;
    font-weight: 750;
}

.faq dd {
    margin: 12px 0 0;
}

.changelog {
    background: var(--paper);
}

.changelog-list {
    display: grid;
    gap: 44px;
    max-width: 820px;
    margin: 0 auto;
}

.changelog-entry {
    position: relative;
    padding-left: 28px;
    border-left: 2px solid var(--line);
}

.changelog-entry::before {
    content: "";
    position: absolute;
    top: 0;
    left: -9px;
    width: 14px;
    height: 14px;
    border: 2px solid var(--paper);
    border-radius: 50%;
    background: #a8a29e;
    box-shadow: 0 0 0 1px var(--line);
}

.changelog-entry.current::before {
    background: var(--primary);
}

.changelog-entry ul {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.changelog-entry li {
    position: relative;
    padding-left: 24px;
}

.changelog-entry li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-dark);
    font-weight: 900;
}

.footer {
    padding: 32px 0;
    border-top: 1px solid var(--line);
    background: var(--section);
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: var(--muted);
    font-size: .9rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links a {
    text-decoration: none;
}

.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 49;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    background: rgb(255 255 255 / .97);
    backdrop-filter: blur(20px);
}

html.dark .mobile-menu {
    background: rgb(12 10 9 / .97);
}

.mobile-menu.is-open {
    display: flex;
}

.mobile-menu button {
    position: absolute;
    top: 24px;
    right: 24px;
    border: 0;
    padding: 8px;
    background: transparent;
    color: var(--muted);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.mobile-menu a {
    color: var(--ink);
    font-size: 1.35rem;
    font-weight: 750;
    text-decoration: none;
}

.mobile-menu a:hover,
.mobile-menu a:focus {
    color: var(--accent);
}

.mobile-menu .mobile-language {
    color: var(--primary-dark);
}

.mobile-theme {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
    color: var(--muted);
    font-weight: 650;
}

@media (max-width: 1050px) {
    .nav-links {
        gap: 14px;
    }
}

@media (max-width: 900px) {
    .hero-grid,
    .split {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .grid,
    .three-up {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        padding-top: 70px;
    }

    .nav-links {
        display: none;
    }

    .mobile-controls {
        display: flex;
    }

    .hero-art {
        min-height: 320px;
    }
}

@media (max-width: 560px) {
    .nav,
    .wrap {
        width: min(100% - 28px, 1120px);
    }

    .grid,
    .three-up {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 64px 0;
    }

    .hero {
        padding-top: 58px;
    }

    h1 {
        font-size: clamp(2.8rem, 16vw, 4.2rem);
    }

    .hero-image {
        width: 86%;
    }

    .screen-card {
        flex-basis: 205px;
    }

    .privacy-link-card {
        align-items: flex-start;
        flex-direction: column;
        padding: 25px;
    }

    .footer-row {
        align-items: flex-start;
        flex-direction: column;
    }
}
