/* SpoolVault marketing site — homepage + guides */

:root {
    --bg: #131220;
    --bg-raised: #1c1b2e;
    --card: #211f36;
    --border: rgba(255, 255, 255, 0.09);
    --text: #e9e8f2;
    --muted: #a7a5bf;
    --blue: #4f7df9;
    --purple: #a855f7;
    --green: #46c06a;
    --red: #e05252;
    --accent-grad: linear-gradient(120deg, #4f7df9, #a855f7);
    --radius: 14px;
    --content: 1080px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--blue);
}

.wrap {
    max-width: var(--content);
    margin: 0 auto;
    padding: 0 20px;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(19, 18, 32, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 60px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1.1em;
    margin-right: auto;
}

.brand img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.92em;
    font-weight: 500;
    padding: 7px 11px;
    border-radius: 8px;
}

.site-nav a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.site-nav a.nav-cta {
    color: #fff;
    background: var(--blue);
    margin-left: 6px;
}

.site-nav a.nav-cta:hover {
    background: #3d6cf0;
}

/* Hamburger toggle — hidden on desktop, revealed under 720px */
.nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: transparent;
    cursor: pointer;
}

.nav-burger span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 0 auto;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 720px) {
    .nav-burger {
        display: flex;
    }

    .site-header .wrap {
        position: relative;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 10px;
        background: rgba(19, 18, 32, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
    }

    .site-header.nav-open .site-nav {
        display: flex;
    }

    .site-nav a {
        padding: 12px 14px;
        font-size: 1em;
        border-radius: 9px;
    }

    .site-nav a.nav-cta {
        margin: 6px 0 2px;
        text-align: center;
    }

    /* burger morphs to an X when the menu is open */
    .site-header.nav-open .nav-burger span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .site-header.nav-open .nav-burger span:nth-child(2) {
        opacity: 0;
    }

    .site-header.nav-open .nav-burger span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

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

.hero {
    padding: 72px 0 40px;
    background:
        radial-gradient(ellipse 900px 500px at 20% -10%, rgba(79, 125, 249, 0.22), transparent),
        radial-gradient(ellipse 700px 450px at 95% 10%, rgba(168, 85, 247, 0.16), transparent);
}

.hero .wrap {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2rem, 4.4vw, 3.1rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.hero h1 .grad {
    background: var(--accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero .lede {
    color: var(--muted);
    font-size: 1.13em;
    margin-bottom: 28px;
    max-width: 34em;
}

/* Device frame — wraps a raw app screenshot in a simple flat bezel */
.device {
    background: #0c0d11;
    border-radius: 30px;
    padding: 7px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.device img {
    display: block;
    width: 100%;
    border-radius: 24px;
}

.hero-phone .device {
    max-width: 320px;
    margin: 0 auto;
}

@media (max-width: 820px) {
    .hero .wrap {
        grid-template-columns: 1fr;
    }
    .hero {
        padding-top: 48px;
        text-align: center;
    }
    .hero .lede {
        margin-left: auto;
        margin-right: auto;
    }
    .hero .store-cta {
        justify-content: center;
    }
}

.store-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.store-cta img.badge {
    height: 54px;
    width: auto;
}

.store-note {
    color: var(--muted);
    font-size: 0.85em;
    line-height: 1.45;
}

/* ---------- Sections ---------- */

section.band {
    padding: 64px 0;
}

section.band.alt {
    background: var(--bg-raised);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.band h2 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    letter-spacing: -0.015em;
    margin-bottom: 10px;
}

.band .sub {
    color: var(--muted);
    margin-bottom: 36px;
    max-width: 42em;
}

/* Brand strip */

.brand-strip {
    padding: 26px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.brand-strip p {
    color: var(--muted);
    font-size: 0.92em;
}

.brand-strip strong {
    color: var(--text);
    font-weight: 600;
}

/* Steps */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.step {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 24px;
}

.step .num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent-grad);
    color: #fff;
    font-weight: 700;
    margin-bottom: 14px;
}

.step h3 {
    font-size: 1.08em;
    margin-bottom: 8px;
}

.step p {
    color: var(--muted);
    font-size: 0.95em;
}

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

/* Feature grid */

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.feature .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-bottom: 12px;
}

.dot.blue { background: var(--blue); }
.dot.purple { background: var(--purple); }
.dot.green { background: var(--green); }
.dot.red { background: var(--red); }

.feature h3 {
    font-size: 1.03em;
    margin-bottom: 8px;
}

.feature p {
    color: var(--muted);
    font-size: 0.93em;
}

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

/* Screenshot gallery */

.shots {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(68vw, 250px);
    gap: 18px;
    /* Horizontal-only scroller. overflow-x:auto alone makes the browser
       compute overflow-y as auto too, which lets the carousel swallow
       vertical page scroll — pin overflow-y:hidden and contain overscroll
       so a vertical swipe/wheel keeps scrolling the page. */
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior: contain;
    touch-action: pan-x;
    padding: 18px 2px 24px;
    scroll-snap-type: x mandatory;
}

.shots figure {
    scroll-snap-align: start;
}

.shots .device {
    border-radius: 26px;
    padding: 6px;
}

.shots figcaption {
    color: var(--muted);
    font-size: 0.85em;
    margin-top: 10px;
    line-height: 1.4;
}

/* Guide cards */

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}

a.guide-card {
    display: block;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.2s, transform 0.2s;
}

a.guide-card:hover {
    border-color: var(--blue);
    transform: translateY(-2px);
}

a.guide-card h3 {
    font-size: 1.02em;
    margin-bottom: 8px;
}

a.guide-card p {
    color: var(--muted);
    font-size: 0.9em;
}

a.guide-card .more {
    display: inline-block;
    margin-top: 12px;
    color: var(--blue);
    font-size: 0.88em;
    font-weight: 600;
}

/* FAQ */

.faq details {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq summary {
    cursor: pointer;
    font-weight: 600;
    padding: 18px 22px;
    list-style: none;
    position: relative;
    padding-right: 46px;
}

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

.faq summary::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 1.3em;
    font-weight: 400;
}

.faq details[open] summary::after {
    content: "\2013";
}

.faq details p {
    padding: 0 22px 18px;
    color: var(--muted);
}

/* Final CTA */

.final-cta {
    text-align: center;
    padding: 80px 0;
    background:
        radial-gradient(ellipse 700px 380px at 50% 120%, rgba(79, 125, 249, 0.25), transparent);
}

.final-cta h2 {
    font-size: clamp(1.6rem, 3.4vw, 2.3rem);
    margin-bottom: 12px;
}

.final-cta p {
    color: var(--muted);
    margin-bottom: 28px;
}

.final-cta .store-cta {
    justify-content: center;
}

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

.site-footer {
    border-top: 1px solid var(--border);
    padding: 36px 0;
    color: var(--muted);
    font-size: 0.88em;
}

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

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
}

.site-footer a {
    color: var(--muted);
    text-decoration: none;
}

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

.site-footer .social {
    display: flex;
    align-items: center;
    gap: 16px;
}

.site-footer .social a {
    display: inline-flex;
    color: var(--muted);
    transition: color 0.15s ease;
}

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

.site-footer .social svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.site-footer .wrap p {
    flex-basis: 100%;
    margin: 0;
}

/* ---------- Guide article pages ---------- */

.article-hero {
    padding: 56px 0 8px;
    background:
        radial-gradient(ellipse 800px 380px at 15% -20%, rgba(79, 125, 249, 0.18), transparent);
}

.crumbs {
    font-size: 0.85em;
    color: var(--muted);
    margin-bottom: 18px;
}

.crumbs a {
    color: var(--muted);
    text-decoration: none;
}

.crumbs a:hover {
    color: var(--text);
}

article.guide {
    padding: 8px 0 56px;
}

article.guide .wrap {
    max-width: 760px;
}

.article-hero .wrap {
    max-width: 760px;
}

.article-hero h1 {
    font-size: clamp(1.7rem, 3.6vw, 2.5rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.verified {
    font-size: 0.82em;
    color: var(--muted);
    margin: -4px 0 0;
}

article.guide h2 {
    font-size: 1.45em;
    margin: 40px 0 14px;
    letter-spacing: -0.01em;
}

article.guide h3 {
    font-size: 1.13em;
    margin: 28px 0 10px;
}

article.guide p,
article.guide li {
    color: #cfcede;
}

article.guide p {
    margin-bottom: 16px;
}

article.guide ul,
article.guide ol {
    margin: 0 0 16px 26px;
}

article.guide li {
    margin-bottom: 8px;
}

article.guide .shot {
    margin: 28px auto;
    max-width: 320px;
}

article.guide .shot .device {
    border-radius: 26px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

article.guide .shot figcaption {
    color: var(--muted);
    font-size: 0.85em;
    text-align: center;
    margin-top: 10px;
}

article.guide table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 24px;
    font-size: 0.95em;
}

article.guide th,
article.guide td {
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
}

article.guide th {
    color: var(--text);
    font-weight: 600;
    background: var(--bg-raised);
}

article.guide td {
    color: #cfcede;
}

.table-scroll {
    overflow-x: auto;
}

article.guide .callout {
    background: var(--card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--blue);
    border-radius: 10px;
    padding: 16px 20px;
    margin: 24px 0;
    color: #cfcede;
    font-size: 0.95em;
}

article.guide .cta-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 26px;
    text-align: center;
    margin-top: 44px;
}

article.guide .cta-box h2 {
    margin: 0 0 8px;
}

article.guide .cta-box p {
    color: var(--muted);
    margin-bottom: 20px;
}

article.guide .cta-box .store-cta {
    justify-content: center;
}

.fineprint {
    color: var(--muted);
    font-size: 0.82em;
    margin-top: 24px;
}

/* ---------- Legal & support pages ---------- */

article.guide h4 {
    font-size: 1em;
    margin: 22px 0 8px;
}

article.guide .last-updated {
    color: var(--muted);
    font-style: italic;
    margin-bottom: 28px;
}

article.guide .contact-info {
    background: var(--card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--blue);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 18px;
}

article.guide .contact-info p {
    margin-bottom: 8px;
}

article.guide hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 40px 0;
}
