:root {
    --bg: #FAFAF8;
    --ink: #1C2321;
    --ink-soft: #565C59;

    /* Brand colors — three separate hex values, set independently. */
    --brand: #2864c4;
    /* main fill: buttons, dot, badge, feature circle */
    --brand-border: #0844A4;
    /* used for the nav border, badge border, hover states */
    --brand-gradient: #f0f8ff;
    /* used for the hero background wash */

    --line: #E4E1D9;
    --card-bg: #FFFFFF;
    --max-width: 720px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    font-family: inherit;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.5em 0;
    color: var(--ink);
}

a {
    color: var(--brand-border);
}

a:hover {
    color: var(--brand);
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--brand-border);
    outline-offset: 3px;
}

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

/* ---------- Nav ---------- */
nav {
    position: sticky;
    top: 0;
    background: rgba(250, 250, 248, 0.92);
    backdrop-filter: blur(6px);
    z-index: 10;
}

nav .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
}

.nav-brand img {
    height: 28px;
    width: 28px;
    object-fit: contain;
    border-radius: 6px;
}

.nav-brand span {
    font-weight: 700;
    font-size: 1.1rem;
}

.nav-links {
    display: flex;
    gap: 24px;
    font-size: 0.95rem;
}

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

.nav-links a:hover {
    color: var(--brand-border);
}

/* ---------- Hero ---------- */
header.hero {
    padding: 88px 0 64px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, var(--brand-gradient) 0%, var(--bg) 100%);
}

header.hero h1 {
    font-size: clamp(2.1rem, 5vw, 2.9rem);
    max-width: 16ch;
}

header.hero p.sub {
    color: var(--ink-soft);
    font-size: 1.15rem;
    max-width: 46ch;
    margin: 0 0 32px 0;
}

.store-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--ink);
    color: #fff;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.15s ease;
}

.store-btn:hover {
    background: var(--brand-border);
    color: #fff;
}

.store-btn .store-btn-sub {
    display: block;
    font-size: 0.7rem;
    color: #d8d8d8;
    font-weight: 400;
}

/* Primary CTA — filled with the brand color so it's the first thing that reads as "on brand" */
.store-btn.primary {
    background: var(--brand);
}

.store-btn.primary:hover {
    background: var(--brand-border);
}

.store-btn.primary .store-btn-sub {
    color: rgba(255, 255, 255, 0.8);
}

.age-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--brand);
    background: var(--brand-gradient);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--brand-border);
    font-weight: 500;
}

.age-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-border);
}

/* ---------- Sections ---------- */
section {
    padding: 56px 0;
    border-bottom: 1px solid var(--line);
}

section h2 {
    font-size: 1.5rem;
    margin-bottom: 28px;
}

.feature-row {
    display: flex;
    gap: 32px;
    padding: 22px 0;
    border-top: 1px solid var(--line);
}

.feature-row:first-of-type {
    border-top: none;
}

.feature-row .f-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    flex: 0 0 28px;
}

.feature-row h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.feature-row p {
    color: var(--ink-soft);
    margin: 0;
    max-width: 56ch;
}

.support-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

.support-item {
    flex: 1 1 200px;
}

.support-item h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.support-item p,
.support-item a {
    color: var(--ink-soft);
    font-size: 0.95rem;
}

footer {
    padding: 40px 0 60px;
    border-bottom: none;
}

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

footer p {
    color: var(--ink-soft);
    font-size: 0.85rem;
    margin: 0;
}

footer .footer-links {
    display: flex;
    gap: 18px;
    font-size: 0.85rem;
}

footer a {
    color: var(--ink-soft);
    text-decoration: none;
}

footer a:hover {
    color: var(--brand-border);
}

@media (max-width: 560px) {
    .feature-row {
        flex-direction: column;
        gap: 6px;
    }

    header.hero {
        padding: 64px 0 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}