/* Aerodex website — shared styles for every page. */

:root {
    --accent: #006bcc;
    --accent-soft: rgba(0, 107, 204, 0.1);
    --bg: #f2f2f7;
    --surface: #ffffff;
    --text: #1c1c1e;
    --text-2: #5f5f66;
    --border: rgba(60, 60, 67, 0.14);
    --icon-tile: #ffffff;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --accent: #4099ff;
        --accent-soft: rgba(64, 153, 255, 0.14);
        --bg: #000000;
        --surface: #1c1c1e;
        --text: #f2f2f7;
        --text-2: #a1a1a8;
        --border: rgba(235, 235, 245, 0.12);
        --icon-tile: #1c1c1e;
        --shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
    }
}

* { box-sizing: border-box; }

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

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

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

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

/* Top bar */

.nav {
    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);
}

.nav .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

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

.brand .app-icon { width: 30px; height: 30px; border-radius: 7px; }

.nav-links { display: flex; gap: 22px; font-size: 15px; }
.nav-links a { color: var(--text-2); }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* App icon tile: the dark icon is transparent, so the tile supplies its background. */

.app-icon {
    display: block;
    background: var(--icon-tile);
    border: 1px solid var(--border);
    overflow: hidden;
}
.app-icon img { display: block; width: 100%; height: 100%; }

/* Hero */

.hero {
    text-align: center;
    padding-top: 72px;
    padding-bottom: 64px;
}

.hero .app-icon {
    width: 128px;
    height: 128px;
    border-radius: 29px;
    margin: 0 auto 28px;
    box-shadow: var(--shadow);
}

.hero h1 {
    margin: 0;
    font-size: clamp(40px, 7vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-weight: 800;
}

.hero .lede {
    max-width: 560px;
    margin: 18px auto 32px;
    font-size: clamp(18px, 2.4vw, 21px);
    color: var(--text-2);
}

.store-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 12px;
    background: var(--text);
    color: var(--bg);
    font-weight: 600;
    font-size: 16px;
}
.store-button:hover { text-decoration: none; opacity: 0.88; }
.store-button svg { width: 20px; height: 20px; fill: currentColor; }
.store-button[aria-disabled="true"] { cursor: default; opacity: 1; }

.store-note { margin-top: 12px; font-size: 14px; color: var(--text-2); }

/* Sections */

section { padding: 56px 0; }

.section-head { max-width: 680px; margin-bottom: 32px; }
.eyebrow {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent);
}
.section-head h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 36px);
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.section-head p { margin: 12px 0 0; color: var(--text-2); }

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

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

.card {
    background: var(--surface);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.card h3 { margin: 14px 0 6px; font-size: 18px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--text-2); font-size: 16px; }

.glyph {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
}
.glyph svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Pro band */

.pro {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.pro .card { background: var(--bg); box-shadow: none; }

.badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    vertical-align: 2px;
}

.fine { margin-top: 24px; font-size: 14px; color: var(--text-2); }

/* Support */

.support .card { max-width: 620px; }
.support .card p + p { margin-top: 10px; }

/* Footer */

footer {
    padding: 32px 0 48px;
    border-top: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-2);
}
footer .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    justify-content: space-between;
}
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--text-2); }
footer a:hover { color: var(--text); }

/* Legal pages */

.legal { max-width: 720px; padding: 48px 16px 72px; }
.legal h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 44px);
    letter-spacing: -0.025em;
    line-height: 1.1;
}
.legal .updated { margin: 10px 0 32px; color: var(--text-2); font-size: 15px; }
.legal .summary {
    background: var(--surface);
    border-radius: 16px;
    padding: 18px 22px;
    box-shadow: var(--shadow);
    margin-bottom: 8px;
}
.legal .summary p { margin: 0; }
.legal h2 { margin: 40px 0 10px; font-size: 22px; letter-spacing: -0.01em; }
.legal h3 { margin: 24px 0 6px; font-size: 17px; }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 22px; }
.legal li + li { margin-top: 6px; }

/* Phones */

@media (max-width: 600px) {
    body { font-size: 16px; }
    .nav-links { gap: 16px; font-size: 14px; }
    .nav-links .wide { display: none; }
    .hero { padding-top: 48px; padding-bottom: 40px; }
    .hero h1 br { display: none; }
    .hero .app-icon { width: 104px; height: 104px; border-radius: 24px; }
    section { padding: 40px 0; }
    .grid, .grid.pairs { grid-template-columns: 1fr; }
    .card { padding: 20px; }
}
