/* SnapDocs website: one hand-written stylesheet, no framework.
   Flat color system (no gradients), light and dark via prefers-color-scheme. */

:root {
    --accent: #1778fa;          /* app brand blue */
    --accent-pressed: #1263d6;
    --on-accent: #ffffff;

    --bg: #ffffff;
    --bg-raised: #f5f7fa;
    --bg-tint: #eef4fe;         /* accent-tinted band */
    --text: #0c1420;
    --text-secondary: #51606f;
    --hairline: #e3e8ee;
    --shadow: 0 18px 50px rgba(12, 20, 32, 0.14);
}

@media (prefers-color-scheme: dark) {
    :root {
        --accent: #3f8dff;
        --accent-pressed: #67a5ff;
        --on-accent: #ffffff;

        --bg: #0d1117;
        --bg-raised: #161c24;
        --bg-tint: #122033;
        --text: #e8edf3;
        --text-secondary: #94a3b3;
        --hairline: #232c37;
        --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
    }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

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

.container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    line-height: 1.15;
    letter-spacing: -0.015em;
    margin: 0 0 0.5em;
    font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 5.5vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

.muted { color: var(--text-secondary); }

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--hairline);
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 60px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand img { border-radius: 8px; }

.nav-links {
    display: flex;
    gap: 22px;
    margin-left: auto;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.nav-links a:hover,
.nav-links a.is-active { color: var(--text); text-decoration: none; }

.nav-cta {
    padding: 7px 16px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--on-accent);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}
.nav-cta:hover { background: var(--accent-pressed); text-decoration: none; }

@media (max-width: 640px) {
    .nav { gap: 16px; }
    .nav-links { display: none; }
    .nav-cta { margin-left: auto; }
}

/* ---------- Hero ---------- */

.hero {
    padding: 72px 0 40px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero-copy .lead {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 34em;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 28px;
}

.appstore-badge img { height: 52px; width: auto; }

.hero-footnote {
    margin-top: 14px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

@media (max-width: 760px) {
    .hero { padding-top: 48px; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-phone { justify-self: center; }
}

/* ---------- Phone frame ---------- */

.phone {
    width: min(300px, 78vw);
    padding: 12px;
    border-radius: 44px;
    background: var(--bg-raised);
    border: 1px solid var(--hairline);
    box-shadow: var(--shadow);
}

.phone img {
    border-radius: 32px;
}

/* ---------- Privacy band ---------- */

.privacy-band {
    background: var(--bg-tint);
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
    padding: 44px 0;
    margin: 48px 0 0;
}

.privacy-band .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.privacy-band h3 { margin-bottom: 0.25em; }
.privacy-band p { margin: 0; color: var(--text-secondary); font-size: 0.95rem; }

@media (max-width: 760px) {
    .privacy-band .container { grid-template-columns: 1fr; gap: 22px; }
}

/* ---------- Feature rows ---------- */

.features { padding: 72px 0 24px; }

.section-intro {
    max-width: 38em;
    margin-bottom: 56px;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    padding: 40px 0;
}

.feature-row .phone { justify-self: center; width: min(260px, 70vw); }

.feature-row h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
.feature-row p { color: var(--text-secondary); max-width: 30em; }

.feature-row ul {
    margin: 0;
    padding-left: 1.2em;
    color: var(--text-secondary);
}
.feature-row li { margin-bottom: 6px; }

@media (max-width: 760px) {
    .feature-row { grid-template-columns: 1fr; gap: 28px; padding: 28px 0; }
    .feature-row.flip .feature-media { order: -1; }
}

@media (min-width: 761px) {
    .feature-row.flip .feature-media { order: -1; }
}

/* ---------- Pro section ---------- */

.pro { padding: 72px 0; }

.plans {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 40px;
}

.plan {
    border: 1px solid var(--hairline);
    border-radius: 16px;
    padding: 28px;
    background: var(--bg-raised);
}

.plan.highlight {
    border-color: var(--accent);
    background: var(--bg);
}

.plan h3 { display: flex; align-items: baseline; justify-content: space-between; }

.plan .price { font-size: 1rem; font-weight: 600; color: var(--accent); }

.plan ul {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.plan li {
    padding: 7px 0 7px 26px;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.95rem;
    border-top: 1px solid var(--hairline);
}
.plan li:first-child { border-top: 0; }

.plan li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 14px;
    width: 12px;
    height: 7px;
    border-left: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(-45deg);
}

.pro-note { margin-top: 20px; font-size: 0.9rem; color: var(--text-secondary); }

@media (max-width: 700px) {
    .plans { grid-template-columns: 1fr; }
}

/* ---------- Closing call to action ---------- */

.closing {
    text-align: center;
    padding: 72px 0 88px;
    border-top: 1px solid var(--hairline);
}

.closing .appstore-badge { display: inline-block; margin-top: 18px; }

/* ---------- Prose pages (privacy, terms) ---------- */

.page {
    /* top/bottom only; .container owns the side gutters */
    padding-top: 56px;
    padding-bottom: 80px;
}

.prose {
    max-width: 44em;
}

.prose h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }

.prose h2 {
    font-size: 1.25rem;
    margin-top: 2.2em;
}

.prose .updated {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2.5em;
}

.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: 8px; }

.prose .summary-box {
    background: var(--bg-tint);
    border: 1px solid var(--hairline);
    border-radius: 12px;
    padding: 18px 22px;
    margin: 1.5em 0 2em;
}
.prose .summary-box p { margin: 0; }

/* ---------- Support / FAQ ---------- */

.faq { max-width: 44em; }

.faq details {
    border-bottom: 1px solid var(--hairline);
    padding: 4px 0;
}

.faq summary {
    cursor: pointer;
    font-weight: 600;
    padding: 14px 0;
    list-style: none;
    position: relative;
    padding-right: 32px;
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
    content: "+";
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 1.3rem;
}
.faq details[open] summary::after { content: "\2212"; }

.faq .answer {
    padding: 0 0 18px;
    color: var(--text-secondary);
}
.faq .answer p { margin-bottom: 0.6em; }

.contact-card {
    margin-top: 48px;
    border: 1px solid var(--hairline);
    border-radius: 16px;
    background: var(--bg-raised);
    padding: 28px;
    max-width: 44em;
}
.contact-card h2 { margin-top: 0; }

.button {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--on-accent);
    font-weight: 600;
}
.button:hover { background: var(--accent-pressed); text-decoration: none; }

/* ---------- Press ---------- */

.facts {
    width: 100%;
    border-collapse: collapse;
    max-width: 44em;
    margin: 1.5em 0 2em;
}

.facts th, .facts td {
    text-align: left;
    padding: 10px 14px 10px 0;
    border-bottom: 1px solid var(--hairline);
    vertical-align: top;
}

.facts th {
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
    width: 11em;
}

.shots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.shots figure { margin: 0; }

.shots img {
    border-radius: 14px;
    border: 1px solid var(--hairline);
}

.shots figcaption {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 6px;
    text-align: center;
}

/* ---------- Footer ---------- */

.site-footer {
    border-top: 1px solid var(--hairline);
    padding: 40px 0;
    margin-top: 40px;
}

.footer-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}
.footer-brand img { border-radius: 6px; }

.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-links a:hover { color: var(--text); }

.footer-note {
    margin: 0 0 0 auto;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

@media (max-width: 640px) {
    .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
    .footer-note { margin-left: 0; }
}

/* ---------- 404 ---------- */

.notfound {
    text-align: center;
    padding: 110px 20px;
}
