:root {
    --bg: #1a1b19;
    --bg-alt: #202220;
    --surface: #262825;
    --border: #363934;
    --text: #ececea;
    --muted: #a3a59f;
    --accent: #f5b400;
    --accent-text: #1a1b19;
    --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

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

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

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

/* Header */
.site-header {
    padding-block: 20px;
    border-bottom: 1px solid var(--border);
}
.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.brand {
    color: var(--text);
    font-weight: 700;
    letter-spacing: 0.02em;
}
.brand:hover { text-decoration: none; color: var(--accent); }
.site-nav { display: flex; gap: 24px; font-size: 0.95rem; }
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--text); text-decoration: none; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-text);
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.15s, filter 0.15s;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--muted); filter: none; }

/* Official store badges, must stay unmodified. The Google Play PNG carries
   transparent padding, so it gets a larger box and negative margins to line up. */
.appstore-badge, .play-badge { display: inline-block; line-height: 0; }
.appstore-badge img { height: 52px; width: auto; }
.play-badge img { height: 78px; width: auto; margin: -13px -10px; }
.hero-actions { align-items: center; gap: 16px; }
.store-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

/* Hero */
.hero { padding-block: 72px 48px; }
.hero .wrap {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}
.site-nav .nav-home {
    color: var(--text);
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
}
.site-nav .nav-home:hover { border-color: var(--accent); color: var(--accent); }

.app-title { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.app-title p { margin: 0; }
.app-name { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.01em; }
.app-tagline { color: var(--muted); font-size: 0.95rem; }
.hero-copy p.lead { font-size: 1.25rem; color: var(--muted); max-width: 32ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-shot { max-width: 340px; margin: 0 auto; }

.app-icon {
    width: 96px;
    height: 96px;
    border-radius: 22%;
    box-shadow: 0 10px 40px rgba(245, 180, 0, 0.25);
}

/* Feature rows */
.feature {
    padding-block: 64px;
    border-top: 1px solid var(--border);
}
.feature:nth-of-type(even) { background: var(--bg-alt); }
.feature .wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.feature.flip .feature-copy { order: 2; }
.feature-copy p { color: var(--muted); font-size: 1.1rem; max-width: 40ch; }
.feature-shot { max-width: 280px; margin: 0 auto; }
.feature-shot.wide { max-width: 100%; }

/* Checklist */
.checklist {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px 32px;
}
.checklist li {
    padding-left: 28px;
    position: relative;
    color: var(--text);
}
.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
}

/* CTA band */
.cta {
    padding-block: 72px;
    text-align: center;
    border-top: 1px solid var(--border);
}
.cta p { color: var(--muted); max-width: 44ch; margin-inline: auto; }
.cta .btn { margin-top: 20px; }

/* App cards on the homepage */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-block: 48px 72px;
}
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    color: var(--text);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: border-color 0.15s, transform 0.15s;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.card .app-icon { width: 72px; height: 72px; box-shadow: none; }
.card p { color: var(--muted); margin: 0; flex: 1; }
.card .more { color: var(--accent); font-weight: 600; }
.card.placeholder .app-icon {
    background: var(--border);
    display: grid;
    place-items: center;
    color: var(--muted);
    font-weight: 700;
    font-size: 1.4rem;
}

/* Prose pages */
.prose { max-width: 720px; padding-block: 56px 80px; }
.prose h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.prose h2 { font-size: 1.35rem; margin-top: 2em; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); }
.prose ul { padding-left: 1.2em; }

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding-block: 32px;
    font-size: 0.9rem;
    color: var(--muted);
}
.site-footer .wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 24px;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

@media (max-width: 760px) {
    .hero { padding-block: 48px 32px; }
    .hero .wrap,
    .feature .wrap { grid-template-columns: 1fr; gap: 32px; }
    .feature.flip .feature-copy { order: 0; }
    .hero-shot, .feature-shot { max-width: 260px; }
    .feature { padding-block: 48px; }
    .site-nav { gap: 16px; }
}
