:root {
    --bg: #ffffff;
    --bg-alt: #f5f5f8;
    --text: #1d1d1f;
    --muted: #6e6e73;
    --border: #e3e3e8;
    --accent: #5b5bd6;
    --accent-dark: #2e2a85;
    --accent-text: #ffffff;
    --card: #ffffff;
    --shadow: 0 24px 60px rgba(30, 27, 90, 0.18);
    --radius: 14px;
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #111114;
        --bg-alt: #19191e;
        --text: #f2f2f5;
        --muted: #a1a1a8;
        --border: #2c2c33;
        --accent: #8585ff;
        --card: #1e1e24;
        --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    }
}

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

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }

/* Header */

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

.header-inner { display: flex; align-items: center; gap: 28px; height: 60px; }

.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
.brand:hover { text-decoration: none; }

.site-nav { display: flex; gap: 22px; margin-left: auto; font-size: 0.94rem; }
.site-nav a { color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--text); text-decoration: none; }

.lang-switch { display: flex; flex-shrink: 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; font-size: 0.8rem; font-weight: 600; }
.lang-switch a { padding: 4px 9px; color: var(--muted); }
.lang-switch a:hover { text-decoration: none; color: var(--text); }
.lang-switch a[aria-current] { background: var(--text); color: var(--bg); }

/* Buttons */

.button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-text);
    font-weight: 600;
}
.button:hover { text-decoration: none; filter: brightness(1.08); }
.button-store { background: var(--text); color: var(--bg); }
.button-store .apple { width: 17px; height: 20px; }
.button-large { padding: 14px 28px; font-size: 1.05rem; }
.button.is-disabled { opacity: 0.75; cursor: default; filter: none; }

/* Hero */

.hero {
    padding: 80px 0 0;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-alt), var(--bg) 70%);
    overflow: hidden;
}
.hero-icon { margin: 0 auto 24px; width: 128px; filter: drop-shadow(0 10px 24px rgba(30, 27, 90, 0.25)); }
.hero .lead { max-width: 720px; margin: 0 auto 32px; }
.lead { font-size: 1.2rem; color: var(--muted); }
.requirements { margin: 16px 0 0; font-size: 0.9rem; color: var(--muted); }
.hero-shot { margin-top: 32px; max-width: 1200px; }
/* The window image carries its own macOS shadow. */
.hero-shot img { margin: 0 auto; }

/* Sections */

.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section h2, .section-lead { text-align: center; }
.section-lead { max-width: 720px; margin: 0 auto 56px; font-size: 1.15rem; color: var(--muted); }

.feature-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.feature p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.feature-icon {
    width: 40px;
    height: 40px;
    padding: 8px;
    margin-bottom: 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-top: 48px; }
.gallery figure { margin: 0; }
.gallery img { border-radius: 10px; box-shadow: var(--shadow); transition: transform 0.2s; }
.gallery a:hover img { transform: translateY(-4px); }
.gallery figcaption { margin-top: 14px; text-align: center; color: var(--muted); font-size: 0.95rem; }

.cta {
    padding: 96px 0;
    text-align: center;
    color: #fff;
    background: linear-gradient(160deg, #5b5bd6, #2e2a85);
}
.cta-inner img { margin: 0 auto 20px; }
.cta p { color: rgba(255, 255, 255, 0.8); font-size: 1.15rem; margin: 0 0 32px; }
.cta .button-store { background: #fff; color: #1d1d1f; }

/* Content pages */

.page-header { padding: 72px 0 8px; }
.page-header .lead { margin: 0; }
.page-header + .section { padding-top: 40px; }

.prose h2 { text-align: left; font-size: 1.35rem; margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 1em; }

.faq { margin-top: 32px; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
    cursor: pointer;
    padding: 18px 32px 18px 0;
    font-weight: 600;
    list-style: none;
    position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; color: var(--muted); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 20px; color: var(--muted); }

.contact { text-align: center; }
.contact .muted { font-size: 0.9rem; }

/* Footer */

.site-footer { border-top: 1px solid var(--border); padding: 32px 0; font-size: 0.88rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.footer-inner p { margin: 0; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-inner nav a { color: var(--muted); }
.legal-note { margin: 16px auto 0; font-size: 0.78rem; }

/* Small screens */

@media (max-width: 900px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    .container { padding: 0 16px; }
    .header-inner { gap: 12px; }
    .brand span { display: none; }
    .site-nav { gap: 14px; font-size: 0.88rem; }
    .site-nav a[href$="#screenshots"] { display: none; }
    .hero { padding-top: 48px; }
    .hero-icon { width: 96px; }
    .section, .cta { padding: 64px 0; }
    .feature-grid, .gallery { grid-template-columns: 1fr; }
    .button-large { padding: 12px 20px; font-size: 0.95rem; }
}
