/* Brewcast: colors follow the app's day palette (light) and night palette (dark). */
:root {
    --bg: #eef0ea;
    --card: #ffffff;
    --ink: #171a16;
    --ink-2: #646a62;
    --line: #e1e4dd;
    --chip: #e6e9e2;
    --roast: #8c4a1e;
    --crema: #d99b5c;
    --sleep: #3f4db5;
    --shadow: 0 18px 40px -24px rgba(58, 42, 26, 0.35);
    --focus-ring: var(--roast);
    --device-shadow: 0 50px 90px -40px rgba(58, 42, 26, 0.55);
    --maxw: 1080px;
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0e1222;
        --card: #171c30;
        --ink: #e3e7f5;
        --ink-2: #8c93ae;
        --line: #262c45;
        --chip: #1f2540;
        --roast: #e3a56c;
        --crema: #a86e3c;
        --sleep: #8e99ff;
        --shadow: none;
        --device-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.8);
    }
}

body {
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.55;
}

/* --- Top bar --- */
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
}

.brand img {
    border-radius: 22%;
}

.pill-link {
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--card);
    border: 1px solid var(--line);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
}

.pill-link:hover {
    color: var(--roast);
}

/* --- Hero --- */
.hero {
    padding-block: clamp(24px, 6vw, 72px) clamp(40px, 7vw, 88px);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: clamp(32px, 6vw, 72px);
}

.hero-icon {
    width: 104px;
    height: 104px;
    border-radius: 22.5%;
    box-shadow: var(--shadow);
    margin-bottom: 28px;
}

.eyebrow {
    color: var(--roast);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1 {
    margin-top: 18px;
    font-size: clamp(2.4rem, 6vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-weight: 800;
}

h1 em {
    font-style: normal;
    color: var(--roast);
}

.lead {
    margin-top: 20px;
    max-width: 34em;
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    color: var(--ink-2);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
}

.btn-store {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding: 11px 24px 11px 18px;
    border-radius: 16px;
    background: var(--ink);
    color: var(--bg);
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: transform 0.25s;
}

.btn-store:hover {
    transform: translateY(-2px);
}

.btn-store svg {
    width: 24px;
    height: 24px;
}

.btn-store span {
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.1;
}

.btn-store small {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0.8;
}

.btn-soft {
    display: inline-flex;
    align-items: center;
    padding: 14px 22px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--card);
    font-weight: 600;
    text-decoration: none;
}

.btn-soft:hover {
    color: var(--roast);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
    list-style: none;
}

.hero-meta li {
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--card);
    border: 1px solid var(--line);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-2);
}

.hero-device {
    display: flex;
    justify-content: center;
    --device-w: 300px;
}

/* app-page.css fills only a direct img child; here it sits in a <picture> for the dark-mode shot. */
.device-screen picture,
.device-screen picture img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Sections --- */
.section {
    padding-block: clamp(40px, 6vw, 80px);
    scroll-margin-top: 24px;
}

.section-head {
    margin-bottom: clamp(24px, 4vw, 40px);
}

.section-head h2,
.pro-copy h2 {
    margin-top: 10px;
    font-size: clamp(1.9rem, 4.2vw, 3rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

/* --- Features --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

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

.feature-icon {
    font-size: 1.6rem;
}

.feature h3 {
    margin-top: 12px;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

.feature p {
    margin-top: 6px;
    color: var(--ink-2);
}

/* --- Screens --- */
.section-head-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
}

.section-head-row .section-head {
    margin-bottom: 8px;
}

.shots-nav {
    margin-bottom: 12px;
}

.shots-nav button {
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink);
}

.shots-nav button:not(:disabled):hover {
    color: var(--roast);
}

.shots {
    --shot-w: 232px;
    --shot-radius: 36px;
}

.shot .device {
    --device-w: 100%;
    --device-shadow: 0 30px 50px -30px rgba(0, 0, 0, 0.5);
}

.shot figcaption {
    color: var(--ink-2);
}

.shot figcaption b {
    display: block;
    color: var(--ink);
}

/* --- Pro + final call to action --- */
.pro-card {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: clamp(24px, 5vw, 56px);
    padding: clamp(28px, 5vw, 48px);
    border-radius: 28px;
    background: var(--card);
    box-shadow: var(--shadow);
}

.pro-copy p:last-child {
    margin-top: 14px;
    color: var(--ink-2);
}

.pro-list {
    display: grid;
    gap: 10px;
    list-style: none;
}

.pro-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.pro-list li::before {
    content: "";
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--crema);
    box-shadow: 0 0 0 4px var(--chip);
}

.cta-band {
    display: flex;
    align-items: center;
    gap: 20px 28px;
    margin-top: 16px;
    padding: clamp(24px, 4vw, 36px);
    border-radius: 28px;
    background: var(--chip);
}

.cta-band img {
    flex: none;
    border-radius: 22.5%;
}

.cta-band div {
    flex: 1;
}

.cta-band h2 {
    font-size: clamp(1.3rem, 2.4vw, 1.6rem);
    letter-spacing: -0.02em;
}

.cta-band p {
    margin-top: 4px;
    color: var(--ink-2);
    font-size: 0.95rem;
}

/* --- Footer --- */
.site-footer {
    border-top: 1px solid var(--line);
    padding-block: 28px 40px;
    font-size: 0.9rem;
    color: var(--ink-2);
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.site-footer a {
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--roast);
}

.footer-note {
    flex-basis: 100%;
    font-size: 0.8rem;
}

/* --- Narrow screens --- */
@media (max-width: 820px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-icon {
        margin-inline: auto;
    }

    .lead {
        margin-inline: auto;
    }

    .hero-cta,
    .hero-meta {
        justify-content: center;
    }

    .hero-device {
        --device-w: 260px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .pro-card {
        grid-template-columns: 1fr;
    }

    .cta-band {
        flex-direction: column;
        text-align: center;
    }

    .section-head-row .shots-nav {
        display: none;
    }
}

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