/* SharpList — shared stylesheet for every page and, later, every locale. */

:root {
    --accent: #007AFF;
    --bg: #ffffff;
    --bg2: #f5f5f7;
    --card: #f7f7f9;
    --text: #1c1c1e;
    --muted: #6c6c70;
    --border: #e5e5ea;
    --shadow: rgba(0, 0, 0, 0.15);
    --maxw: 1040px;
    --prose: 720px;
}
@media (prefers-color-scheme: dark) {
    :root {
        --accent: #0a84ff;
        --bg: #000000;
        --bg2: #111111;
        --card: #1c1c1e;
        --text: #f2f2f7;
        --muted: #98989d;
        --border: #2c2c2e;
        --shadow: rgba(0, 0, 0, 0.5);
    }
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    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; }

/* ---------- NAV ---------- */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 40px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 100;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
}
.nav-brand:hover { text-decoration: none; }
.nav-brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-cta {
    background: var(--accent);
    color: #fff;
    padding: 8px 20px;
    border-radius: 980px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    transition: opacity 0.15s;
}
.nav-cta:hover { opacity: 0.85; text-decoration: none; }

/* ---------- BUTTONS ---------- */
.btn-primary, .btn-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 980px;
    font-size: 1rem;
    font-weight: 600;
    transition: opacity 0.15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-white { background: #fff; color: var(--accent); }
.btn-primary:hover, .btn-white:hover { opacity: 0.88; text-decoration: none; }
.btn-primary svg, .btn-white svg { width: 20px; height: 20px; }
.btn-primary svg { fill: #fff; }
.btn-white svg { fill: var(--accent); }

/* ---------- HERO ---------- */
.hero {
    text-align: center;
    padding: 76px 20px 56px;
    max-width: 780px;
    margin: 0 auto;
}
.hero img.app-icon {
    width: 120px;
    height: 120px;
    border-radius: 27px;
    box-shadow: 0 8px 24px var(--shadow);
    margin-bottom: 28px;
}
.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 20px;
}
.hero h1 span { color: var(--accent); }
.hero .lede {
    font-size: 1.2rem;
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto 32px;
}
.trust {
    margin-top: 18px;
    font-size: 0.9rem;
    color: var(--muted);
}
.qr-block {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin-top: 28px;
}
.qr-block img { width: 88px; height: 88px; border-radius: 10px; border: 1px solid var(--border); }
.qr-block span {
    font-size: 0.85rem;
    color: var(--muted);
    text-align: left;
    max-width: 120px;
    line-height: 1.4;
}

/* ---------- ALTERNATING FEATURE SECTIONS ---------- */
.feature-row {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 64px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.feature-row + .feature-row { border-top: 1px solid var(--border); }
.feature-row.reverse .feature-text { order: 2; }
.feature-row.single { grid-template-columns: 1fr; max-width: var(--prose); }
.feature-text h2 {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 16px;
}
.feature-text p { color: var(--muted); margin-bottom: 14px; }
.feature-text p:last-child { margin-bottom: 0; }
.feature-text strong { color: var(--text); font-weight: 600; }
.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}
.feature-media { display: flex; justify-content: center; gap: 16px; }
.feature-media img {
    width: 100%;
    max-width: 260px;
    border-radius: 20px;
    box-shadow: 0 12px 36px var(--shadow);
}

/* ---------- SCREENSHOT STRIP ---------- */
.screenshots { background: var(--bg2); padding: 60px 0; }
.screenshots h2 {
    text-align: center;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 20px 36px;
}
.screenshots-inner {
    display: flex;
    gap: 20px;
    padding: 0 20px 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    justify-content: flex-start;
}
@media (min-width: 1180px) {
    .screenshots-inner { justify-content: center; flex-wrap: wrap; overflow-x: visible; }
}
.screenshots-inner img {
    width: 180px;
    flex: 0 0 auto;
    scroll-snap-align: center;
    border-radius: 18px;
    box-shadow: 0 12px 36px var(--shadow);
    transition: transform 0.2s;
}
.screenshots-inner img:hover { transform: translateY(-6px); }

/* ---------- FEATURE GRID ---------- */
.features { padding: 72px 20px; max-width: 940px; margin: 0 auto; }
.section-title {
    text-align: center;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 44px;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.feature-card { background: var(--bg2); border-radius: 18px; padding: 28px; }
.feature-icon { font-size: 2rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- FAQ / details ---------- */
.faq { max-width: var(--prose); margin: 0 auto; padding: 0 20px 72px; }
details {
    background: var(--card);
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 10px;
}
details summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    position: relative;
    padding-right: 24px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.3rem;
    color: var(--muted);
}
details[open] summary::after { content: "\2212"; }
details > *:not(summary) { margin-top: 12px; }
details p { color: var(--muted); }
.faq-more { text-align: center; margin-top: 24px; color: var(--muted); font-size: 0.95rem; }

/* ---------- CTA BANNER ---------- */
.cta-banner { background: var(--accent); color: #fff; text-align: center; padding: 64px 20px; }
.cta-banner h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}
.cta-banner p { font-size: 1.05rem; opacity: 0.9; margin: 0 auto 28px; max-width: 520px; }

/* ---------- FOOTER ---------- */
footer {
    text-align: center;
    padding: 32px 20px;
    color: var(--muted);
    font-size: 0.875rem;
    border-top: 1px solid var(--border);
}
footer a { color: var(--muted); margin: 0 10px; }

/* ---------- PROSE PAGES (support, privacy, terms, 404) ---------- */
.container { max-width: var(--prose); margin: 0 auto; padding: 40px 20px 60px; }
.page-header { text-align: center; margin-bottom: 40px; padding-bottom: 30px; border-bottom: 1px solid var(--border); }
.page-header img.logo {
    width: 96px; height: 96px; border-radius: 22px;
    margin-bottom: 16px; box-shadow: 0 6px 18px var(--shadow);
}
.page-header h1 { font-size: 2.4rem; margin: 0 0 8px; font-weight: 700; letter-spacing: -0.02em; }
.page-header p { color: var(--muted); margin: 0; font-size: 1.05rem; }
.site-header {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 40px; padding-bottom: 24px;
    border-bottom: 1px solid var(--border); color: inherit;
}
.site-header:hover { text-decoration: none; }
.site-header img { width: 40px; height: 40px; border-radius: 10px; }
.site-header span { font-weight: 700; font-size: 1.1rem; }
.prose h1 { font-size: 2rem; margin-bottom: 8px; }
.prose h2 { font-size: 1.4rem; margin: 40px 0 16px; font-weight: 600; letter-spacing: -0.01em; }
.prose h3 { font-size: 1.05rem; margin: 16px 0 6px; font-weight: 600; }
.prose p, .prose ul { margin-bottom: 16px; }
.prose ul { padding-left: 24px; }
.prose li { margin-bottom: 6px; }
.updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 32px; }
.contact-card { background: var(--card); padding: 24px; border-radius: 14px; margin: 16px 0; }
.contact-card p:last-child { margin-bottom: 0; }
.legal-links {
    text-align: center; margin-top: 50px; padding-top: 30px;
    border-top: 1px solid var(--border); color: var(--muted); font-size: 0.9rem;
}
.legal-links a { margin: 0 10px; }
.page-footer {
    margin-top: 48px; border-top: 1px solid var(--border);
    padding-top: 24px; color: var(--muted); font-size: 0.85rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
    .feature-row { grid-template-columns: 1fr; gap: 32px; padding: 48px 20px; }
    .feature-row.reverse .feature-text { order: 0; }
    .feature-media img { max-width: 220px; }
}
@media (max-width: 600px) {
    nav { padding: 14px 20px; }
    .hero { padding: 52px 20px 44px; }
    .qr-block { display: none; }
    .screenshots-inner img { width: 150px; }
}

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