:root {
    --cream: #FAF6F0;
    --matcha: #7C9E7E;
    --matcha-light: #A8C5A0;
    --peach: #F2A97E;
    --text-dark: #3D3530;
    --text-soft: #8C7B74;
    --white: #FFFFFF;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--cream);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--text-dark);
    line-height: 1.2;
}

a {
    color: var(--matcha);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ── Layout ─────────────────────────────────── */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

.narrow {
    max-width: 640px;
}

/* ── Header ─────────────────────────────────── */
header {
    padding: 28px 0;
    position: sticky;
    top: 0;
    background-color: var(--cream);
    z-index: 10;
    min-height: 80px;
    box-sizing: border-box;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
}

.logo span {
    color: var(--matcha);
}

nav a {
    margin-left: 24px;
    color: var(--text-soft);
    font-size: 15px;
}

nav a:hover {
    color: var(--matcha);
    text-decoration: none;
}

/* ── Hero ───────────────────────────────────── */
.hero {
    text-align: center;
    padding: 96px 0 16px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 0;
}

.hero h1 .accent {
    color: var(--matcha);
}

.hero-cta {
    text-align: center;
    padding: 8px 0 60px;
}

.hero-cta .tagline {
    font-size: 22px;
    color: var(--text-dark);
    font-family: Georgia, serif;
    max-width: 640px;
    margin: 0 auto 6px;
}

.hero-cta .tagline-sub {
    font-size: 18px;
    color: var(--text-soft);
    max-width: 640px;
    margin: 0 auto 28px;
    font-style: italic;
}

.cta-button {
    display: inline-block;
    background-color: var(--matcha);
    color: var(--white);
    padding: 16px 32px;
    border-radius: 30px;
    font-family: Georgia, serif;
    font-size: 18px;
    font-weight: 600;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.cta-button:hover {
    background-color: #6A8A6C;
    text-decoration: none;
    transform: translateY(-2px);
}

.subnote {
    margin-top: 16px;
    color: var(--text-soft);
    font-size: 14px;
}

/* ── Screenshots ────────────────────────────── */
.screenshots {
    padding: 8px 0 24px;
}

.screenshots-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 12px 24px 24px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: center;
}

.screenshots-scroll::-webkit-scrollbar {
    display: none;
}

.screenshot {
    flex-shrink: 0;
    /* Fluid: scales between 200px and 280px based on viewport so all 6 always fit */
    width: clamp(200px, calc((100vw - 120px) / 6), 280px);
    height: auto;
    border-radius: 28px;
    box-shadow: 0 12px 28px rgba(124, 158, 126, 0.22);
    scroll-snap-align: start;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
    position: relative;
}

.screenshot:hover {
    transform: translateY(-12px) scale(1.3);
    box-shadow: 0 24px 48px rgba(124, 158, 126, 0.4);
    z-index: 5;
}

/* Small viewport — fall back to horizontal scroll with bigger screenshots */
@media (max-width: 1080px) {
    .screenshots-scroll {
        justify-content: flex-start;
    }
    .screenshot {
        width: 240px;
    }
}

@media (max-width: 640px) {
    .screenshot {
        width: 220px;
    }
    .screenshots-scroll {
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* ── Features ───────────────────────────────── */
.features {
    background-color: var(--matcha);
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    padding: 120px 0 80px;
    scroll-margin-top: 80px;
}

.features h2 {
    text-align: center;
    font-size: 48px;
    margin-bottom: 48px;
    color: var(--cream);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.feature-card {
    background-color: var(--cream);
    border: none;
    border-radius: 20px;
    padding: 28px;
    transition: transform 0.2s ease;
    box-shadow: 0 6px 20px rgba(61, 53, 48, 0.08);
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-soft);
    font-size: 15px;
}

/* ── Section: how it works ──────────────────── */
.how {
    padding: 96px 0 48px;
    background-color: var(--cream);
    scroll-margin-top: 0;
    position: relative;
    z-index: 2;
    margin-top: -100px;
    padding-top: 196px;
}

.how h2 {
    text-align: center;
    font-size: 48px;
    margin-bottom: 36px;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 640px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-num {
    background-color: var(--matcha);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: Georgia, serif;
    font-size: 18px;
    font-weight: 600;
}

.step-text h3 {
    font-size: 20px;
    margin-bottom: 6px;
}

.step-text p {
    color: var(--text-soft);
    font-size: 15px;
}

/* ── Footer CTA ─────────────────────────────── */
.footer-cta {
    background-color: var(--matcha);
    padding: 40px 0 32px;
    text-align: center;
}

.footer-cta h2 {
    font-size: 32px;
    margin-bottom: 8px;
    color: var(--cream);
}

.footer-cta .reading-img {
    display: block;
    width: 140px;
    height: auto;
    margin: 12px auto 0;
}

/* ── Footer ─────────────────────────────────── */
footer {
    padding: 24px 0;
    border-top: 1px solid var(--matcha-light);
    text-align: center;
    color: var(--text-soft);
    font-size: 14px;
}

footer a {
    margin: 0 12px;
    color: var(--text-soft);
}

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

/* ── Article pages (privacy, support) ───────── */
.article {
    padding: 60px 0 80px;
}

.article h1 {
    font-size: 40px;
    margin-bottom: 8px;
}

.article .updated {
    color: var(--text-soft);
    font-size: 14px;
    margin-bottom: 32px;
}

.article h2 {
    font-size: 24px;
    margin-top: 36px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

/* ── FAQ accordion ──────────────────────────── */
.faq-item {
    border-bottom: 1px solid var(--matcha-light);
    padding: 18px 0;
}

.faq-item:last-of-type {
    border-bottom: none;
}

.faq-item summary {
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--text-dark);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 4px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 28px;
    color: var(--matcha);
    font-weight: 300;
    transition: transform 0.25s ease;
    line-height: 1;
    margin-left: 16px;
    flex-shrink: 0;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    margin-top: 12px;
    color: var(--text-soft);
}

.article p, .article li {
    color: var(--text-dark);
    margin-bottom: 12px;
    font-size: 16px;
}

.article ul {
    padding-left: 22px;
    margin-bottom: 16px;
}

.article a {
    color: var(--matcha);
    text-decoration: underline;
}

/* ── Mobile ─────────────────────────────────── */
@media (max-width: 640px) {
    .hero {
        padding: 60px 0 40px;
    }
    .hero h1 {
        font-size: 40px;
    }
    .hero p.tagline {
        font-size: 17px;
    }
    .features h2,
    .how h2,
    .footer-cta h2 {
        font-size: 28px;
    }
    nav a {
        margin-left: 16px;
        font-size: 14px;
    }
    .article h1 {
        font-size: 32px;
    }
}
