/* MoonGlide. Quiet, typographic, light and dark. Accent from the app icon. */
:root {
    --bg: #fbfbfd;
    --bg-alt: #f2f2f5;
    --text: #1d1d1f;
    --text-2: #6e6e73;
    --text-3: #737378;
    --line: rgba(0, 0, 0, 0.08);
    --line-strong: rgba(0, 0, 0, 0.14);
    --accent: #5b45e8;
    --btn-bg: #1d1d1f;
    --btn-bg-hover: #3a3a3d;
    --btn-text: #ffffff;
    --shot-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 30px 60px -30px rgba(20, 20, 40, 0.32), 0 2px 6px rgba(20, 20, 40, 0.05);
    --menu-shadow: 0 16px 40px -16px rgba(20, 20, 40, 0.24), 0 2px 6px rgba(20, 20, 40, 0.06);
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, "Segoe UI", sans-serif;
    --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, "Segoe UI", sans-serif;
    --max: 1080px;
    --gutter: 24px;
    --nav-h: 52px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #000000;
        --bg-alt: #0e0e11;
        --text: #f5f5f7;
        --text-2: #a1a1a6;
        --text-3: #86868b;
        --line: rgba(255, 255, 255, 0.1);
        --line-strong: rgba(255, 255, 255, 0.18);
        --accent: #9a8cff;
        --btn-bg: #f5f5f7;
        --btn-bg-hover: #d2d2d7;
        --btn-text: #000000;
        --shot-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 30px 60px -30px rgba(0, 0, 0, 0.8);
        --menu-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.7);
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --bg: #000000;
    --bg-alt: #0e0e11;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #86868b;
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.18);
    --accent: #9a8cff;
    --btn-bg: #f5f5f7;
    --btn-bg-hover: #d2d2d7;
    --btn-text: #000000;
    --shot-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 30px 60px -30px rgba(0, 0, 0, 0.8);
    --menu-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.5;
    letter-spacing: -0.011em;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    -webkit-tap-highlight-color: transparent;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
}

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

/* Links */
a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease, opacity 0.2s ease;
}

a:hover { text-decoration-color: currentColor; }
a:active { opacity: 0.7; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
a:not(.button):focus-visible { border-radius: 3px; }

.skip {
    position: absolute;
    left: 16px;
    top: -100px;
    z-index: 20;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--btn-bg);
    color: var(--btn-text);
    font-size: 15px;
}

.skip:focus { top: 10px; }

.wrap {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

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

.nav .wrap {
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    color: var(--text);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.01em;
    text-decoration: none;
}

.brand img { width: 24px; height: 24px; border-radius: 6px; }

.nav-links { display: flex; align-items: center; gap: 28px; }

.nav-links a:not(.button) {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--text-2);
    font-size: 13px;
    text-decoration: none;
}

.nav-links a:not(.button):hover,
.nav-links a[aria-current="page"] { color: var(--text); }

/* Language picker (needs JS, so it stays hidden without it) */
.lang { position: relative; display: none; }
.js .lang { display: flex; }

.lang-button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 44px;
    padding: 0 4px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--text-2);
    font: inherit;
    cursor: pointer;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.lang-button .chev { width: 12px; height: 12px; transition: transform 0.2s var(--ease); }
.lang-button[aria-expanded="true"] .chev { transform: rotate(180deg); }
.flag { display: block; width: 21px; height: 14px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px var(--line-strong); flex-shrink: 0; }
.lang-name { display: inline-flex; align-items: center; gap: 10px; }
.lang-button:hover,
.lang-button[aria-expanded="true"] { color: var(--text); }
.lang-button:active { opacity: 0.7; }

.lang-menu {
    position: absolute;
    top: calc(100% + 2px);
    right: -8px;
    z-index: 11;
    min-width: 184px;
    padding: 6px;
    list-style: none;
    background: var(--bg);
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    box-shadow: var(--menu-shadow);
    animation: menu-in 0.2s var(--ease);
}

.lang-menu[hidden] { display: none; }

.nav-links .lang-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 40px;
    padding: 0 10px;
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    transition: background-color 0.15s ease, opacity 0.2s ease;
}

.nav-links .lang-menu a:hover { background: var(--bg-alt); }
.nav-links .lang-menu a:active { opacity: 0.7; }
.nav-links .lang-menu a:focus-visible { outline-offset: -2px; border-radius: 8px; }
.lang-menu a > svg { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; }

@keyframes menu-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: none; }
}

/* Buttons */
.button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 22px;
    border-radius: 980px;
    background: var(--btn-bg);
    color: var(--btn-text);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.01em;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.15s var(--ease), opacity 0.2s ease;
}

.button:hover { background: var(--btn-bg-hover); }
.button:active { transform: scale(0.97); opacity: 1; }

.button-small { height: 32px; padding: 0 15px; font-size: 13px; }

/* Larger tap area than the pill itself. */
.button-small::after { content: ""; position: absolute; inset: -6px -4px; }

.text-link { font-size: 17px; }

.text-link::after {
    content: "\203A";
    display: inline-block;
    margin-left: 0.3em;
    transition: transform 0.25s var(--ease);
}

.text-link:hover::after { transform: translateX(3px); }

/* Type */
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text);
}

.eyebrow {
    display: block;
    font-family: var(--font);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-2);
    margin-bottom: 14px;
}

.display {
    display: block;
    font-size: clamp(40px, 7.4vw, 80px);
    line-height: 1.04;
    letter-spacing: -0.035em;
}

.headline {
    font-size: clamp(32px, 4.6vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.lede {
    font-size: clamp(19px, 2vw, 22px);
    line-height: 1.45;
    color: var(--text-2);
    letter-spacing: -0.015em;
    text-wrap: pretty;
}

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

.note { margin-top: 18px; font-size: 14px; color: var(--text-3); }

/* Hero */
.hero {
    text-align: center;
    padding: 88px 0 0;
}

.hero-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    border-radius: 17px;
}

.hero .lede {
    max-width: 600px;
    margin: 24px auto 36px;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px 32px;
    flex-wrap: wrap;
}

.hero-shot {
    margin: 72px auto 0;
    display: flex;
    justify-content: center;
    gap: 32px;
}

.hero-shot .shot { flex: 0 1 300px; min-width: 0; }

/* Screenshots */
.shot {
    width: 300px;
    border-radius: 44px;
    box-shadow: var(--shot-shadow);
    background: var(--bg-alt);
}

.doc-shot {
    width: 240px;
    margin: 20px 0 4px;
    border-radius: 34px;
    box-shadow: var(--shot-shadow);
    background: var(--bg-alt);
}

/* Sections */
.section { padding: 136px 0; }

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

.feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 64px 112px;
    align-items: center;
}

.feature.flip { grid-template-columns: 300px minmax(0, 1fr); }
.feature.flip .feature-media { order: -1; }

.feature-media { display: flex; justify-content: center; }

.feature-text { max-width: 520px; }

.feature .lede { margin-top: 20px; }

.points {
    margin-top: 40px;
    display: grid;
    gap: 20px;
}

.points > div { padding-top: 20px; border-top: 1px solid var(--line); }
.points dt { font-weight: 600; letter-spacing: -0.015em; }
.points dd { color: var(--text-2); margin-top: 2px; }

/* Detail grid */
.details {
    margin-top: 56px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 48px;
    row-gap: 44px;
}

.details > div { border-top: 1px solid var(--line); padding-top: 20px; }
.details h3 { font-size: 17px; letter-spacing: -0.015em; }
.details p { margin-top: 6px; color: var(--text-2); font-size: 15px; line-height: 1.55; }

/* Privacy */
.center { text-align: center; }
.center .lede { max-width: 600px; margin: 20px auto 0; }

.facts {
    margin: 72px auto 0;
    max-width: 920px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px;
}

.facts h3 { font-size: 21px; letter-spacing: -0.02em; line-height: 1.2; }
.facts p { margin-top: 10px; color: var(--text-2); font-size: 15px; line-height: 1.55; }

.section-link { margin-top: 56px; }

/* Closing */
.closing { padding: 136px 0 152px; text-align: center; }
.closing .lede { max-width: 540px; margin: 20px auto 36px; }

/* Beta steps */
.steps {
    list-style: none;
    max-width: 560px;
    margin: 8px auto 0;
    text-align: left;
    border-top: 1px solid var(--line);
}

.steps li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.step-num {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
}

.step-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.step-text strong { font-weight: 600; color: var(--text); }
.step-text span { font-size: 15px; color: var(--text-2); }
.steps .button { flex-shrink: 0; }
.closing .steps + .note { margin-top: 28px; }

.button-secondary {
    background: transparent;
    color: var(--text);
    box-shadow: inset 0 0 0 1px var(--line-strong);
}

.button-secondary:hover { background: var(--bg-alt); }

@media (max-width: 560px) {
    .steps li { flex-wrap: wrap; }
    .steps .button { width: 100%; margin-left: 44px; width: calc(100% - 44px); }
}

/* Documents: support and privacy */
.doc { max-width: 720px; padding: 88px 0 120px; }
.doc .lede { margin-top: 16px; }

.doc h2 {
    font-size: 24px;
    letter-spacing: -0.02em;
    margin: 64px 0 8px;
}

.doc h3 { font-size: 17px; margin: 30px 0 6px; }

.doc p,
.doc li { color: var(--text-2); }

.doc p + p { margin-top: 14px; }

.doc ul,
.doc ol { margin-top: 12px; padding-left: 20px; display: grid; gap: 8px; }

.doc li::marker { color: var(--text-3); }

.doc strong { color: var(--text); font-weight: 600; }

.contact {
    margin-top: 44px;
    padding: 28px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.contact p { margin: 0; }
.contact p + p { margin-top: 2px; }
.contact .email { color: var(--text); font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.contact .email:hover { color: var(--accent); }

.contact-hint { margin-top: 16px; font-size: 15px; }

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 40px 20px 0;
    font-weight: 600;
    color: var(--text);
    position: relative;
    border-radius: 4px;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
    content: "";
    position: absolute;
    right: 6px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid var(--text-3);
    border-bottom: 1.5px solid var(--text-3);
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.3s var(--ease), border-color 0.2s ease;
}

.faq summary:hover::after { border-color: var(--text); }
.faq summary:active { opacity: 0.7; }
.faq summary:focus-visible { outline-offset: -2px; }

.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }

.faq details > div { padding: 0 0 24px; color: var(--text-2); }
.faq details > div p + p { margin-top: 10px; }
.faq details > div ol { margin-top: 0; }

.faq details[open] > div { animation: faq-in 0.35s var(--ease); }

@keyframes faq-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: none; }
}

.updated { margin-top: 56px; font-size: 13px; color: var(--text-3); }

/* Footer */
.footer {
    margin-top: auto;
    border-top: 1px solid var(--line);
    padding: 24px 0 40px;
    font-size: 13px;
    color: var(--text-3);
}

.footer .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 24px;
}

.footer nav { display: flex; gap: 4px 22px; flex-wrap: wrap; }

.footer a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    color: var(--text-2);
}

.footer a:hover { color: var(--text); text-decoration-color: transparent; }

/* Scroll reveal (enabled by JS, so content shows without it) */
.js .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    *,
    *::before,
    *::after { transition-duration: 0.01ms !important; animation: none !important; }
    .button:active { transform: none; }
    .text-link:hover::after { transform: none; }
}

/* Responsive */
@media (max-width: 900px) {
    .section { padding: 104px 0; }
    .feature,
    .feature.flip { grid-template-columns: minmax(0, 1fr); gap: 56px; }
    .feature.flip .feature-media { order: 0; }
    .feature-text { max-width: 600px; }
    .details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .facts { grid-template-columns: minmax(0, 1fr); max-width: 440px; gap: 36px; margin-top: 56px; }
}

@media (max-width: 640px) {
    :root { --gutter: 20px; }
    body { font-size: 16px; }
    .nav-links { gap: 20px; }
    .nav-links a.optional { display: none; }
    .hero { padding-top: 56px; }
    .eyebrow { font-size: 15px; margin-bottom: 12px; }
    .hero-shot { margin-top: 56px; }
    .hero-shot > * + * { display: none; }
    .shot { width: min(300px, 78vw); border-radius: 40px; }
    .hero-shot .shot { flex-basis: min(300px, 78vw); }
    .section { padding: 88px 0; }
    .points { margin-top: 32px; }
    .details { grid-template-columns: minmax(0, 1fr); row-gap: 28px; margin-top: 44px; }
    .closing { padding: 88px 0 104px; }
    .doc { padding: 56px 0 88px; }
    .doc h2 { margin-top: 52px; }
    .contact .email { font-size: 19px; }
}

@media (max-width: 380px) {
    .nav .wrap { gap: 12px; }
    .nav-links { gap: 10px; }
    .lang-button { padding: 0 2px; }
    .button-small { padding: 0 12px; }
}

@media (max-width: 360px) {
    :root { --gutter: 16px; }
}
