/* ==========================================================================
   FOGGO APPS — App landing pages (Bear-inspired)
   Reference: https://bear.app/ — warm, calm minimalism: white space, light
   large headings, soft gray text, ONE accent, big app screenshots.
   Brand accent stays Foggo forest green.
   ========================================================================== */

*,
*::before,
*::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #f6f5f1;
    --text: #444444;          /* soft body gray, like Bear */
    --heading: #25292b;       /* near-black headings */
    --muted: #8b908d;
    --accent: #1f5132;        /* Foggo forest green */
    --accent-soft: #2c6b45;
    --line: rgba(24, 33, 28, 0.10);
    --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --maxw: 1080px;
}

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

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--display); color: var(--heading); font-weight: 500; line-height: 1.12; letter-spacing: -0.015em; }
a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

/* accent underline on a hero word, like Bear's "love" */
.u { color: var(--heading); box-shadow: inset 0 -0.12em 0 rgba(31, 81, 50, 0.28); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246,245,241,0.86); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; max-width: var(--maxw); margin: 0 auto; }
.wordmark { font-family: var(--display); font-weight: 600; font-size: 1.1rem; color: var(--heading); }
.site-nav { display: flex; gap: 1.5rem; }
.site-nav a { color: var(--text); font-size: 0.95rem; font-weight: 500; }
.site-nav a:hover { color: var(--accent); }
@media (max-width: 560px) { .site-nav { gap: 1.1rem; } .site-nav .hide-sm { display: none; } }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 5rem 1.5rem 2rem; max-width: 820px; margin: 0 auto; }
.hero .platforms { font-size: 0.95rem; color: var(--muted); letter-spacing: 0.01em; margin-bottom: 1.4rem; }
.hero .platforms strong { color: var(--text); font-weight: 600; }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.4rem); font-weight: 500; margin-bottom: 1.1rem; }
.hero .lede { font-size: 1.2rem; color: var(--text); max-width: 540px; margin: 0 auto 2rem; }
.hero .store { display: flex; justify-content: center; }

/* app screenshots */
.hero-shot { width: 260px; max-width: 260px; margin: 3rem auto 0; }
.hero-shot img,
.feature-shot img {
    height: auto;
    object-fit: contain;
    object-position: top center;
}
.hero-shot img {
    width: 100%;
    border-radius: 28px;
    box-shadow: 0 30px 70px rgba(37, 41, 43, 0.18);
    border: 1px solid var(--line);
}

@media (max-width: 640px) {
    .hero { padding-top: 3.2rem; }
    /* Match blog pages: screenshots are compact on mobile without cropping the image. */
    .hero-shot { width: min(40vw, 176px); margin-top: 2.2rem; border-radius: 20px; }
    .hero-shot img { width: 100%; height: auto; object-fit: contain; border-radius: 20px; }
    .feature { padding: 3rem 1.5rem; }
    .feature-shot {
        width: min(40vw, 176px);
        margin: 0 auto;
        border-radius: 20px;
    }
    .feature-shot img { width: 100%; height: auto; object-fit: contain; border-radius: 20px; }
}

/* ---------- App Store badge ---------- */
.appstore-badge {
    display: inline-flex; align-items: center; gap: 0.6rem;
    background: #111; color: #fff; border-radius: 13px; padding: 0.6rem 1.1rem;
    transition: opacity 0.18s ease;
}
.appstore-badge:hover { color: #fff; opacity: 0.86; }
.appstore-badge svg { width: 26px; height: 26px; }
.appstore-badge span { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.appstore-badge small { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.85; }
.appstore-badge b { font-size: 1.05rem; font-weight: 600; }

/* ---------- Feature rows (alternating) ---------- */
.feature { padding: 4.5rem 1.5rem; border-top: 1px solid var(--line); }
.feature-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 820px) {
    .feature-inner { grid-template-columns: 1fr 1fr; gap: 4rem; }
    .feature.reverse .feature-text { order: 2; }
}
.feature-text h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); font-weight: 500; margin-bottom: 0.9rem; }
.feature-text p { font-size: 1.08rem; color: var(--text); margin-bottom: 1rem; }
.feature-text .eyebrow { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; color: var(--accent); margin-bottom: 0.7rem; }
.feature-shot { display: flex; justify-content: center; }
.feature-shot img {
    width: 260px;
    border-radius: 26px;
    box-shadow: 0 22px 55px rgba(37,41,43,0.16);
    border: 1px solid var(--line);
}

@media (max-width: 640px) {
    .feature-shot img {
        width: 100%;
        height: auto;
        object-fit: contain;
        border-radius: 20px;
    }
}
.feature-list { list-style: none; }
.feature-list li { position: relative; padding-left: 1.4rem; margin-bottom: 0.55rem; color: var(--text); }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* centered text-only feature (for sections without a screenshot yet) */
.feature.solo .feature-inner { grid-template-columns: 1fr; max-width: 640px; text-align: center; }
.feature.solo .feature-list { display: inline-block; text-align: left; margin-top: 0.5rem; }

/* ---------- Closing CTA ---------- */
.closing { text-align: center; padding: 5rem 1.5rem; border-top: 1px solid var(--line); }
.closing h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 500; margin-bottom: 1.4rem; }
.closing .store { display: flex; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 2.2rem 1.5rem; }
.footer-row { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.footer-row .wordmark { color: var(--accent); }
.footer-links { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.footer-links a { color: var(--text); font-size: 0.92rem; }
.footer-links a:hover { color: var(--accent); }
.copyright { width: 100%; text-align: center; color: var(--muted); font-size: 0.82rem; margin-top: 1.4rem; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
