:root {
    --bg: #ffffff;
    --bg-tint: #faf8ff;
    --text: #1d1d1f;
    --muted: #6e6e73;
    --hairline: #ededf2;
    --brand-1: #b24bff;
    --brand-2: #8a2bf0;
    --brand: #9b30f5;
    --max: 1040px;
    --radius: 22px;
}

* { box-sizing: border-box; }
html, body { overflow-x: hidden; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ── Nav ───────────────────────────────────────────── */
.nav {
    position: sticky; top: 0; z-index: 20;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--hairline);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; letter-spacing: -0.02em; color: var(--text); }
.brand img { width: 28px; height: 28px; border-radius: 8px; display: block; }
.nav-links a { color: var(--muted); font-size: 15px; margin-left: 26px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.lang { color: var(--brand-2); font-weight: 600; }

/* ── Hero ──────────────────────────────────────────── */
.hero { position: relative; text-align: center; padding: 96px 24px 24px; }
.hero .appicon {
    width: 88px; height: 88px; border-radius: 20px; display: block; margin: 0 auto 28px;
    box-shadow: 0 8px 24px rgba(138, 43, 240, 0.16);
}
.hero h1 {
    position: relative; margin: 0 auto 16px; max-width: 760px; font-weight: 700;
    font-size: clamp(33px, 6.4vw, 66px); line-height: 1.04; letter-spacing: -0.035em;
}
.hero h1 .grad { color: var(--brand-2); }
.hero p.lead {
    margin: 0 auto; max-width: 540px;
    font-size: clamp(18px, 2.4vw, 21px); color: var(--muted); line-height: 1.45;
}
.eyebrow {
    display: inline-block; margin-bottom: 20px; color: var(--brand-2);
    font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}

/* ── Hero device ───────────────────────────────────── */
.hero-media { display: flex; justify-content: center; margin: 48px auto 0; }
.hero-media img {
    height: 600px; max-width: 86vw; width: auto; display: block;
    filter: drop-shadow(0 34px 64px rgba(30, 16, 60, 0.22));
}
@media (max-width: 640px) { .hero-media img { height: auto; width: 74vw; } }

/* ── Alternating feature sections ──────────────────── */
.feature {
    display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
    max-width: 1000px; margin: 0 auto; padding: 96px 24px;
}
.feature + .feature { border-top: 1px solid var(--hairline); }
.feature-media { display: flex; justify-content: center; }
.feature-media img {
    height: 560px; max-width: 100%; width: auto; display: block;
    filter: drop-shadow(0 26px 50px rgba(30, 16, 60, 0.18));
}
.feature-media.pair { align-items: flex-start; }
.feature-media.pair img { height: 500px; }
.feature-media.pair img:first-child { z-index: 2; margin-right: -56px; }
.feature-media.pair img:last-child { z-index: 1; margin-top: 60px; }
.feature-text .eyebrow { margin-bottom: 14px; }
.feature-text h2 {
    font-size: clamp(28px, 3.8vw, 42px); font-weight: 700; letter-spacing: -0.03em;
    line-height: 1.1; margin: 0 0 16px;
}
.feature-text p { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.55; max-width: 34ch; }
.feature-text .ast { color: var(--brand-2); font-weight: 600; }
.feature-text .footnote { margin: 14px 0 0; font-size: 13px; color: var(--muted); line-height: 1.45; max-width: 34ch; }
.feature.reverse .feature-media { order: -1; }

/* Apple Watch trio */
.feature-media.watch { align-items: center; }
.feature-media.watch img { height: 360px; }
.feature-media.watch img:nth-child(1) { z-index: 3; margin-right: -64px; }
.feature-media.watch img:nth-child(2) { z-index: 2; transform: translateY(-26px); }
.feature-media.watch img:nth-child(3) { z-index: 1; margin-left: -64px; }

@media (max-width: 760px) {
    .feature { grid-template-columns: 1fr; gap: 28px; padding: 64px 24px; text-align: center; }
    .feature-media, .feature.reverse .feature-media { order: -1; }
    .feature-media img { height: 480px; }
    .feature-media.pair img { height: 340px; }
    .feature-media.watch img { height: 240px; }
    .feature-media.watch img:nth-child(1) { margin-right: -44px; }
    .feature-media.watch img:nth-child(3) { margin-left: -44px; }
    .feature-media.pair img:first-child { margin-right: -36px; }
    .feature-media.pair img:last-child { margin-top: 40px; }
    .feature-text p { max-width: none; margin: 0 auto; }
    .feature-text .footnote { max-width: none; margin: 14px auto 0; }
}

/* ── Platforms strip ───────────────────────────────── */
.platforms { text-align: center; padding: 16px 24px 8px; }
.platforms .cap { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 18px; }
.platforms .row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 30px; }
.platforms .chip { display: inline-flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.platforms .chip .dot { width: 10px; height: 10px; border-radius: 50%; }

/* ── Everything (collapsible full list) ────────────── */
.everything { padding: 96px 24px; border-top: 1px solid var(--hairline); background: var(--bg-tint); }
.everything .wrap { max-width: 760px; }
.everything h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; letter-spacing: -0.03em; margin: 0 0 6px; }
.everything .lead2 { color: var(--muted); font-size: 16px; margin: 0 0 30px; }
.everything details { border-top: 1px solid #e7ddf5; }
.everything details:last-of-type { border-bottom: 1px solid #e7ddf5; }
.everything summary {
    list-style: none; cursor: pointer; padding: 18px 2px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: var(--text);
}
.everything summary::-webkit-details-marker { display: none; }
.everything summary .plus { color: var(--brand-2); font-size: 26px; font-weight: 300; line-height: 1; transition: transform .2s ease; }
.everything details[open] summary .plus { transform: rotate(45deg); }
.everything details ul { list-style: none; margin: 0; padding: 0 2px 22px; }
.everything details li { font-size: 15px; color: #5a5a62; line-height: 1.5; padding: 6px 0 6px 18px; position: relative; }
.everything details li::before { content: "·"; position: absolute; left: 4px; color: var(--brand-2); font-weight: 700; }

/* ── Legal pages ───────────────────────────────────── */
.legal { max-width: 720px; padding: 56px 24px 88px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); font-weight: 700; letter-spacing: -0.03em; margin: 0 0 8px; }
.legal .updated { color: var(--muted); font-size: 15px; margin-bottom: 36px; }
.legal h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin: 40px 0 10px; }
.legal h3 { font-size: 17px; font-weight: 600; margin: 24px 0 6px; }
.legal p, .legal li { color: #3a3a3e; font-size: 16.5px; line-height: 1.62; }
.legal ul { padding-left: 22px; }
.legal li { margin: 7px 0; }
.legal code { background: var(--bg-tint); border: 1px solid #efe6ff; border-radius: 6px; padding: 1px 6px; font-size: 14px; color: var(--brand-2); }
.legal .callout {
    background: var(--bg-tint); border: 1px solid #efe6ff; border-left: 3px solid var(--brand);
    border-radius: 12px; padding: 16px 20px; margin: 24px 0; color: #3a3a3e; font-size: 16px;
}
.legal table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15.5px; }
.legal th, .legal td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.legal th { color: var(--muted); font-weight: 600; }

/* ── Footer ────────────────────────────────────────── */
footer { border-top: 1px solid var(--hairline); padding: 40px 24px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
footer .brand img { width: 22px; height: 22px; border-radius: 7px; }
footer .copy { color: var(--muted); font-size: 14px; }
.foot-links a { color: var(--muted); font-size: 14px; margin-left: 22px; }
.foot-links a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 520px) { .foot-links a { margin: 0 18px 0 0; } }
