/* ============================================================
   About WebWatch: narrative page in the "field guide" language
   established by the Learn page. Loads on top of global.css +
   index.css (container, badge, card-glass) + sites.css (pills).
   ============================================================ */

.ww-about { width: min(var(--content-max, 1080px), 100%); margin: 0 auto; }

/* ── Hero (sits on the page background, no banner card) ── */
.ww-about-hero {
    text-align: center;
    padding: clamp(20px, 5vw, 52px) 0 26px;
}

.ww-about-hero h1 {
    margin: 18px auto 0;
    max-width: 860px;
    font-size: clamp(2.1rem, 6vw, 3.3rem);
    letter-spacing: -0.02em;
    line-height: 1.06;
    color: var(--text);
}

.ww-about .grad {
    background: var(--brand-gradient, linear-gradient(120deg, #4f46e5, #06b6d4));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ww-about-lede {
    margin: 16px auto 0;
    max-width: 640px;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.16rem);
    line-height: 1.6;
}

/* ── Quick-nav pills ── */
.ww-about-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 24px;
}

.ww-about-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 999px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.35s var(--ease),
                border-color 0.35s var(--ease),
                transform 0.35s var(--ease),
                box-shadow 0.35s var(--ease);
}

.ww-about-pill .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.5;
}

.ww-about-pill:hover {
    color: var(--brand);
    border-color: var(--brand);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.16);
}

.ww-about-pill:hover .dot { opacity: 1; }

.ww-about-pill:focus-visible {
    outline: 2px solid rgba(6, 182, 212, 0.6);
    outline-offset: 3px;
}

/* ── Section shell ── */
.ww-about-section {
    margin-top: clamp(40px, 7vw, 76px);
    scroll-margin-top: 130px;
}

.ww-about-head {
    max-width: 720px;
    margin-bottom: 20px;
}

.ww-about-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand);
}

.ww-about-eyebrow .ico {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.18);
    color: var(--brand);
}

.ww-about-eyebrow .ico i { font-size: 14px; }

.ww-about-head h2 {
    margin: 14px 0 0;
    font-size: clamp(1.5rem, 3.4vw, 2.05rem);
    color: var(--text);
    line-height: 1.16;
    letter-spacing: -0.02em;
}

.ww-about-lead {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* ── Prose panels ── */
.ww-about-prose {
    padding: clamp(22px, 3vw, 30px);
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ww-about-prose p {
    color: var(--muted);
    line-height: 1.75;
    font-size: 1.02rem;
    margin: 0;
    max-width: 68ch;
}

.ww-about-prose p a {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.3s var(--ease);
}

.ww-about-prose p a:hover { color: var(--brand-2); }

/* ── Feature cards (mcard language from the Learn guide) ── */
.ww-about-features {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.ww-about-card {
    padding: 20px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform 0.4s var(--ease),
                box-shadow 0.4s var(--ease),
                border-color 0.35s var(--ease);
}

.ww-about-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(79, 70, 229, 0.4);
}

.ww-about-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.ww-about-card-ico {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--brand);
    font-size: 19px;
    transition: transform 0.4s var(--ease);
}

.ww-about-card:hover .ww-about-card-ico { transform: scale(1.06); }

.ww-about-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
    margin: 0;
}

.ww-about-card p {
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.6;
    margin: 0;
}

.ww-about-card a {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.3s var(--ease);
}

.ww-about-card a:hover { color: var(--brand-2); }

/* ── Pricing CTA (drenched gradient, Learn cta-final language) ── */
.ww-about-cta {
    position: relative;
    overflow: hidden;
    padding: clamp(26px, 4vw, 40px);
    border-radius: 24px;
    background: linear-gradient(140deg, #4f46e5, #4338ca);
    box-shadow: 0 24px 60px rgba(79, 70, 229, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}

.ww-about-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(500px 300px at 12% 0%, rgba(6, 182, 212, 0.5), transparent 60%),
        radial-gradient(500px 300px at 92% 100%, rgba(244, 114, 182, 0.4), transparent 60%);
    opacity: 0.5;
    pointer-events: none;
}

.ww-about-cta-text {
    position: relative;
    flex: 1;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ww-about-cta-text p {
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.65;
    font-size: 1rem;
    margin: 0;
}

.ww-about-cta-btn {
    position: relative;
    flex-shrink: 0;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 12px;
    background: #fff;
    color: var(--brand-2);
    font-weight: 700;
    font-size: 0.98rem;
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.18);
    transition: transform 0.4s var(--ease), filter 0.3s ease;
}

.ww-about-cta-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
}

.ww-about-cta-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 3px;
}

/* ── Dark mode ── */
@media (prefers-color-scheme: dark) {
    .ww-about-eyebrow {
        color: #a5b4fc;
    }

    .ww-about-eyebrow .ico {
        background: rgba(165, 180, 252, 0.12);
        border-color: rgba(165, 180, 252, 0.24);
        color: #a5b4fc;
    }

    .ww-about-card-ico {
        background: rgba(99, 102, 241, 0.16);
        color: #a5b4fc;
    }
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .ww-about-toc { gap: 6px; }

    .ww-about-cta {
        flex-direction: column;
        align-items: stretch;
        border-radius: 20px;
    }

    .ww-about-cta-btn {
        justify-content: center;
        width: 100%;
    }
}
