/* Rockland Scanner product page.
   Builds on nav.css and mainpage.css; every new class is prefixed rs- to avoid collisions. */

:root {
    /* The app's own palette, used only inside the product mock so it looks like the real thing. */
    --app-rail: #1d2a36;
    --app-canvas: #f3f5f7;
    --app-ink: #1b2430;
    --app-muted: #5b6675;
    --app-line: #dce1e7;
    --app-teal: #0f6e8c;
    --app-fair: #b7791f;
    --app-weak: #d0632a;
    --app-poor: #c53030;
}

main section {
    scroll-margin-top: 5rem; /* keep anchored sections clear of the fixed nav */
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--accent2);
    outline-offset: 3px;
    border-radius: 4px;
}

code {
    font-family: Consolas, 'Cascadia Mono', monospace;
    font-size: 0.9em;
    color: #c7d2fe;
    background: rgba(99, 102, 241, 0.12);
    padding: 0.05rem 0.35rem;
    border-radius: 4px;
}

/* Narrow text sections keep the page's left edge, with a readable measure. */
.rs-narrow > * {
    max-width: 760px;
}

main .section-title {
    line-height: 1.2; /* wrapped headings would otherwise inherit the body's 1.7 */
}

.rs-prose {
    color: #cbd5e1;
    font-size: 1.02rem;
    max-width: 68ch;
    margin-bottom: 1rem;
}

.rs-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.rs-fineprint {
    color: var(--muted);
    font-size: 0.85rem;
    margin-top: 1rem;
}

    .rs-fineprint a {
        color: #a5b4fc;
    }

/* ── HERO ── */
.rs-hero {
    padding: 8.5rem 2rem 5rem;
    position: relative;
    overflow: hidden;
}

    .rs-hero::before {
        content: "";
        position: absolute;
        width: 720px;
        height: 720px;
        right: -180px;
        top: 50%;
        transform: translateY(-50%);
        background: radial-gradient(circle, rgba(6, 182, 212, 0.14) 0%, transparent 65%);
        pointer-events: none;
    }

.rs-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 4rem;
    align-items: center;
    position: relative;
}

.rs-hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rs-lede {
    font-size: 1.12rem;
    color: #cbd5e1;
    max-width: 34rem;
}

/* ── APP MOCK ── */
.rs-app {
    margin: 0;
    perspective: 1600px;
}

.rs-app-window {
    display: grid;
    grid-template-columns: 52px 1fr;
    background: var(--app-canvas);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
    transform: rotateY(-6deg) rotateX(2deg);
    font-family: 'Segoe UI', 'Inter', sans-serif;
    color: var(--app-ink);
    line-height: 1.35;
}

.rs-app-rail {
    background: var(--app-rail);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 0;
}

    .rs-app-rail img {
        border-radius: 6px;
        margin-bottom: 0.4rem;
    }

.rs-rail-item {
    width: 22px;
    height: 4px;
    border-radius: 2px;
    background: #3a4b5c;
}

    .rs-rail-item.is-active {
        background: #5fc3de;
    }

.rs-app-body {
    padding: 1.1rem 1.25rem 1.2rem;
}

.rs-app-title {
    font-weight: 700;
    font-size: 1.15rem;
}

.rs-app-sub {
    color: var(--app-muted);
    font-size: 0.72rem;
    margin-bottom: 0.8rem;
}

.rs-app-verdict {
    display: grid;
    grid-template-columns: 96px auto 1fr;
    gap: 0.9rem;
    align-items: center;
    background: #fff;
    border: 1px solid var(--app-line);
    border-radius: 8px;
    padding: 0.8rem 0.9rem;
}

.rs-dial {
    width: 96px;
    height: 96px;
}

.rs-dial-track,
.rs-dial-arc {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
}

.rs-dial-track {
    stroke: var(--app-line);
}

.rs-dial-arc {
    stroke: var(--app-fair);
    stroke-dasharray: 100;
    stroke-dashoffset: 28; /* 72 out of 100 */
}

.rs-dial-num {
    font: 700 26px 'Segoe UI', 'Inter', sans-serif;
    fill: var(--app-ink);
}

.rs-dial-cap {
    font: 400 8px 'Segoe UI', 'Inter', sans-serif;
    fill: var(--app-muted);
}

/* The page's one moment of motion: the dial sweeps up to its score. */
@media (prefers-reduced-motion: no-preference) {
    .rs-dial-arc {
        animation: rs-sweep 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) 0.35s both;
    }

    @keyframes rs-sweep {
        from {
            stroke-dashoffset: 100;
        }
    }
}

.rs-app-rating strong {
    display: block;
    color: var(--app-fair);
    font-size: 1rem;
}

.rs-app-rating span {
    color: var(--app-muted);
    font-size: 0.7rem;
}

.rs-bars {
    list-style: none;
    display: grid;
    gap: 0.28rem;
}

    .rs-bars li {
        display: grid;
        grid-template-columns: 66px 1fr;
        align-items: center;
        gap: 0.4rem;
        font-size: 0.62rem;
        font-weight: 600;
    }

    .rs-bars i {
        height: 4px;
        border-radius: 2px;
        background: linear-gradient(to right, var(--app-teal) var(--v), var(--app-line) var(--v));
    }

        .rs-bars i.is-weak {
            background: linear-gradient(to right, var(--app-weak) var(--v), var(--app-line) var(--v));
        }

.rs-app-findings {
    list-style: none;
    margin-top: 0.7rem;
    background: #fff;
    border: 1px solid var(--app-line);
    border-radius: 8px;
}

    .rs-app-findings li {
        display: flex;
        gap: 0.6rem;
        align-items: center;
        padding: 0.45rem 0.8rem;
        font-size: 0.72rem;
        border-top: 1px solid var(--app-line);
    }

        .rs-app-findings li:first-child {
            border-top: none;
        }

    .rs-app-findings b {
        color: #fff;
        font-size: 0.6rem;
        padding: 0.05rem 0.5rem;
        border-radius: 999px;
        min-width: 3.9rem;
        text-align: center;
    }

.sev-high {
    background: var(--app-poor);
}

.sev-med {
    background: var(--app-weak);
}

/* ── SECTIONS ── */
.rs-why,
.rs-checks,
.rs-protect,
.rs-report,
.rs-faq {
    background: #0d1526;
}

/* Steps: a real sequence, so numbered */
.rs-steps {
    list-style: none;
    counter-reset: rs-step;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
    margin-top: 2.5rem;
}

    .rs-steps li {
        counter-increment: rs-step;
        position: relative;
        padding-top: 3.25rem;
    }

        .rs-steps li::before {
            content: counter(rs-step);
            position: absolute;
            top: 0;
            left: 0;
            width: 2.25rem;
            height: 2.25rem;
            border-radius: 50%;
            display: grid;
            place-items: center;
            font-weight: 800;
            color: #fff;
            background: var(--gradient);
        }

        .rs-steps li:not(:last-child)::after {
            content: "";
            position: absolute;
            top: 1.1rem;
            left: 3rem;
            right: -1.5rem;
            height: 1px;
            background: var(--border);
        }

    .rs-steps h3 {
        font-size: 1.1rem;
        color: #f1f5f9;
        margin-bottom: 0.4rem;
    }

    .rs-steps p {
        color: var(--muted);
        font-size: 0.95rem;
    }

/* Six areas as a reference list */
.rs-areas {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 3.5rem;
}

    .rs-areas div {
        display: grid;
        grid-template-columns: 8.5rem 1fr;
        gap: 1rem;
        padding: 1.1rem 0;
        border-top: 1px solid var(--border);
    }

    .rs-areas dt {
        font-weight: 700;
        color: #f1f5f9;
    }

    .rs-areas dd {
        color: var(--muted);
        font-size: 0.95rem;
    }

/* Sources */
.rs-source-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

    .rs-source-grid article {
        background: var(--card-bg);
        border: 1px solid var(--border);
        border-top: 3px solid var(--accent2);
        border-radius: 10px;
        padding: 1.5rem;
    }

    .rs-source-grid h3 {
        color: #f1f5f9;
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .rs-source-grid p {
        color: var(--muted);
        font-size: 0.93rem;
    }

/* Protection ladder */
.rs-protect-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 3.5rem;
    align-items: center;
}

.rs-ladder {
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

    .rs-ladder li {
        display: grid;
        gap: 0.2rem;
        padding: 1rem 1.25rem;
        border: 1px solid var(--border);
        border-left-width: 4px;
        border-radius: 8px;
        background: var(--card-bg);
    }

    .rs-ladder strong {
        font-size: 1rem;
    }

    .rs-ladder span {
        color: var(--muted);
        font-size: 0.9rem;
    }

    .rs-ladder .is-strong {
        border-left-color: #4ade80;
    }

        .rs-ladder .is-strong strong {
            color: #86efac;
        }

    .rs-ladder .is-partial {
        border-left-color: #fbbf24;
        margin-left: 1.25rem;
    }

        .rs-ladder .is-partial strong {
            color: #fcd34d;
        }

    .rs-ladder .is-doc {
        border-left-color: #fb923c;
        margin-left: 2.5rem;
    }

        .rs-ladder .is-doc strong {
            color: #fdba74;
        }

/* Privacy promises */
.rs-promises {
    list-style: none;
    margin-top: 1.5rem;
}

    .rs-promises li {
        position: relative;
        padding: 0.9rem 0 0.9rem 2.25rem;
        border-top: 1px solid var(--border);
        color: #cbd5e1;
    }

        .rs-promises li::before {
            content: "";
            position: absolute;
            left: 0.2rem;
            top: 1.25rem;
            width: 0.9rem;
            height: 0.45rem;
            border-left: 2px solid var(--accent2);
            border-bottom: 2px solid var(--accent2);
            transform: rotate(-45deg);
        }

    .rs-promises strong {
        color: #f1f5f9;
    }

/* Pricing */
.rs-price-card {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    padding: 1.75rem 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
}

    .rs-price-card h3 {
        color: #f1f5f9;
        margin-bottom: 0.35rem;
    }

    .rs-price-card > div {
        flex: 1 1 18rem;
    }

    .rs-price-card p {
        color: var(--muted);
    }

/* Pricing plan */
.rs-plan {
    margin-top: 1.5rem;
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.rs-plan-head h3 {
    color: #f1f5f9;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.rs-plan-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.rs-plan-amount {
    font-size: 2.6rem;
    font-weight: 800;
    color: #f1f5f9;
    line-height: 1;
}

.rs-plan-term {
    color: var(--muted);
    font-weight: 600;
}

.rs-plan-note {
    color: #cbd5e1;
}

.rs-plan-list {
    list-style: none;
    margin: 1.5rem 0;
    padding: 1.25rem 0 0;
    border-top: 1px solid var(--border);
    display: grid;
    gap: 0.6rem;
}

    .rs-plan-list li {
        position: relative;
        padding-left: 1.6rem;
        color: #cbd5e1;
    }

        .rs-plan-list li::before {
            content: "";
            position: absolute;
            left: 0.2rem;
            top: 0.45rem;
            width: 0.7rem;
            height: 0.38rem;
            border-left: 2px solid var(--accent2);
            border-bottom: 2px solid var(--accent2);
            transform: rotate(-45deg);
        }

.rs-plan-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Pre-launch switch: body.rs-prelaunch shows "Notify me" and hides download and buy buttons. */
body.rs-prelaunch .when-live,
body:not(.rs-prelaunch) .when-prelaunch {
    display: none !important;
}

/* Thank-you dialog after checkout */
.rs-order {
    max-width: 34rem;
    width: calc(100% - 2rem);
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #111827;
    color: #cbd5e1;
}

    .rs-order::backdrop {
        background: rgba(2, 6, 23, 0.7);
    }

    .rs-order h2 {
        color: #f1f5f9;
        margin-bottom: 1rem;
    }

    .rs-order p {
        margin-bottom: 1rem;
        line-height: 1.6;
    }

    .rs-order a {
        color: #a5b4fc;
    }

.rs-order-key {
    display: block;
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    word-break: break-all;
    user-select: all;
}

.rs-dots::after {
    content: "...";
}

/* Legal links in the footer */
.rs-legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

    .rs-legal-links a {
        color: var(--muted);
        text-decoration: none;
    }

        .rs-legal-links a:hover {
            color: #f1f5f9;
            text-decoration: underline;
        }

/* Requirements and FAQ */
.rs-faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 4rem;
    align-items: start;
}

.rs-reqs div {
    display: grid;
    grid-template-columns: 7rem 1fr;
    gap: 1rem;
    padding: 0.8rem 0;
    border-top: 1px solid var(--border);
    font-size: 0.93rem;
}

.rs-reqs dt {
    font-weight: 700;
    color: #f1f5f9;
}

.rs-reqs dd {
    color: var(--muted);
}

.rs-faq details {
    border-top: 1px solid var(--border);
}

.rs-faq summary {
    cursor: pointer;
    list-style: none;
    padding: 1rem 2rem 1rem 0;
    position: relative;
    font-weight: 600;
    color: #f1f5f9;
}

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

    .rs-faq summary::after {
        content: "+";
        position: absolute;
        right: 0.25rem;
        top: 0.85rem;
        font-size: 1.25rem;
        color: var(--accent2);
    }

.rs-faq details[open] summary::after {
    content: "\2212";
}

.rs-faq details p {
    color: var(--muted);
    padding-bottom: 1rem;
    font-size: 0.95rem;
}

/* Closing CTA */
.rs-cta {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(6, 182, 212, 0.08));
    border-top: 1px solid var(--border);
}

.rs-cta-inner {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

    .rs-cta-inner img {
        border-radius: 16px;
        margin-bottom: 1rem;
    }

    .rs-cta-inner .rs-prose {
        margin-left: auto;
        margin-right: auto;
    }

    .rs-cta-inner .rs-actions {
        justify-content: center;
    }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
    .rs-hero-grid,
    .rs-protect-grid,
    .rs-faq-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .rs-app-window {
        transform: none;
    }

    .rs-areas {
        grid-template-columns: 1fr;
    }

    .rs-steps,
    .rs-source-grid {
        grid-template-columns: 1fr;
    }

        .rs-steps li:not(:last-child)::after {
            display: none;
        }
}

@media (max-width: 560px) {
    .rs-hero {
        padding-top: 7rem;
    }

    .rs-app-verdict {
        grid-template-columns: 84px 1fr;
    }

    .rs-bars {
        grid-column: 1 / -1;
    }

    .rs-areas div,
    .rs-reqs div {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .rs-ladder .is-partial,
    .rs-ladder .is-doc {
        margin-left: 0;
    }
}
