/* =============================================================
   About V2 -- redesigned marketing About page.
   Matches the homepage / rv2 design system. Selectors use the
   shared .rv2-* prefix (and a .rv2 wrapper) so they line up with
   the other V2 pages and never collide with the legacy about.css
   (.about-*) classes, which stay loaded but are dormant here.
   Tokens come from brand-tokens.css. Dark mode via body.dark-mode.

   This is a static content page: banded sections like the homepage.
   ============================================================= */

.rv2 {
    --rv2-blue: var(--brand-primary, #00B4FF);
    --rv2-blue-deep: var(--brand-secondary, #0174B1);
    --rv2-tint: var(--brand-bg, #F6FBFF);
    --rv2-charcoal: var(--brand-charcoal, #222222);
    --rv2-orange: var(--brand-cta, #FFAA00);
    --rv2-gray: var(--brand-divider, #E0E0E0);
    --rv2-ink-60: #5A6472;
    --rv2-card: #FFFFFF;
    --rv2-pill-bg: #E6F4FF;
    --rv2-pill-latest-bg: #FFE9C4;
    --rv2-pill-latest-ink: #8A5300;

    font-family: 'Inter', system-ui, sans-serif;
    color: var(--rv2-charcoal);
    -webkit-font-smoothing: antialiased;
    width: 100%;
}
.rv2 *, .rv2 *::before, .rv2 *::after { box-sizing: border-box; }

/* Banded sections (alternating white / tint, like the homepage) */
.rv2-band { width: 100%; }
.rv2-band.tint { background: var(--rv2-tint); }
.rv2-inner { max-width: 1100px; margin: 0 auto; padding: 80px 24px; }

.rv2-section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.rv2-section-title { font-weight: 700; font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -0.03em; margin: 14px 0 10px; color: var(--rv2-charcoal); }
.rv2-section-sub { font-size: 16px; line-height: 1.55; color: var(--rv2-ink-60); margin: 0; }

/* Shared eyebrow pill (used on every section) */
.rv2-eyebrow {
    display: inline-block;
    padding: 6px 14px;
    background: var(--rv2-pill-bg);
    color: var(--rv2-blue-deep);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 999px;
    margin: 0;
}

/* HERO ---------------------------------------------------------- */
.rv2-about-hero { background: #FFFFFF; }
.rv2-hero-inner {
    max-width: 1100px; margin: 0 auto; padding: 120px 24px 72px;
    display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center;
}
.rv2-hero .rv2-eyebrow { margin-bottom: 18px; }
.rv2-hero h1 { font-weight: 700; font-size: clamp(34px, 5vw, 52px); line-height: 1.05; letter-spacing: -0.035em; margin: 0 0 20px; color: var(--rv2-charcoal); }
.rv2-hero h1 .rv2-accent { color: var(--rv2-blue); }
.rv2-hero p { font-size: 17px; line-height: 1.6; color: var(--rv2-ink-60); margin: 0 0 16px; }
.rv2-hero p .rv2-em { font-weight: 600; color: var(--rv2-charcoal); }

.rv2-hero-stats { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--rv2-gray); }
.rv2-stat-num { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--rv2-charcoal); }
.rv2-stat-label { font-size: 13px; color: var(--rv2-ink-60); }

.rv2-hero-media { position: relative; }
.rv2-hero-image {
    width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
    border-radius: 20px; border: 1px solid var(--rv2-gray);
    box-shadow: 0 30px 60px -20px rgba(2, 32, 71, 0.28);
    background: linear-gradient(135deg, var(--rv2-blue), var(--rv2-blue-deep));
}

/* VALUES -------------------------------------------------------- */
.rv2-values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rv2-value-card { background: var(--rv2-card); border: 1px solid var(--rv2-gray); border-radius: 16px; padding: 28px; }
.rv2-value-ico {
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px;
    background: var(--rv2-pill-bg);
    color: var(--rv2-blue-deep);
    border-radius: 14px;
    margin-bottom: 18px;
}
.rv2-value-ico svg { width: 28px; height: 28px; display: block; }
.rv2-value-title { font-weight: 700; font-size: 18px; margin: 0 0 8px; color: var(--rv2-charcoal); }
.rv2-value-title::before { content: ""; display: block; width: 28px; height: 3px; background: var(--rv2-orange); border-radius: 2px; margin-bottom: 12px; }
.rv2-value-text { font-size: 15px; line-height: 1.55; color: var(--rv2-ink-60); margin: 0; }

/* TIMELINE (zigzag) -------------------------------------------- */
.rv2-timeline {
    position: relative;
    max-width: 980px;
    margin: 0 auto;
    padding: 16px 0;
}
.rv2-timeline::before {
    content: "";
    position: absolute;
    left: 50%; top: 0; bottom: 0;
    width: 2px;
    background: var(--rv2-gray);
    transform: translateX(-1px);
}
.rv2-tl-item {
    position: relative;
    width: 50%;
    padding: 0 40px 36px 0;
    box-sizing: border-box;
}
.rv2-tl-item:nth-child(even) {
    margin-left: 50%;
    padding: 0 0 36px 40px;
}
.rv2-tl-item::before {
    content: "";
    position: absolute;
    top: 22px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--rv2-card);
    border: 3px solid var(--rv2-blue);
    z-index: 1;
}
.rv2-tl-item:nth-child(odd)::before { right: -8px; }
.rv2-tl-item:nth-child(even)::before { left: -8px; }
.rv2-tl-card {
    background: var(--rv2-card);
    border: 1px solid var(--rv2-gray);
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 6px 20px rgba(2, 32, 71, 0.06);
}
.rv2-tl-item:nth-child(odd) .rv2-tl-card { text-align: right; }
.rv2-tl-date { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--rv2-blue-deep); margin: 0 0 6px; }
.rv2-tl-title { font-size: 18px; font-weight: 700; margin: 0 0 6px; color: var(--rv2-charcoal); }
.rv2-tl-text { font-size: 14px; line-height: 1.55; color: var(--rv2-ink-60); margin: 0; }
.rv2-tl-pill {
    display: inline-block;
    margin-top: 12px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 999px;
}
.rv2-tl-pill.latest { background: var(--rv2-pill-latest-bg); color: var(--rv2-pill-latest-ink); }
.rv2-tl-pill.day-one { background: var(--rv2-pill-bg); color: var(--rv2-blue-deep); }

/* AUTHORS CTA --------------------------------------------------- */
.rv2-cta-card { text-align: center; }
.rv2-btn {
    appearance: none; border: 0; cursor: pointer; text-decoration: none;
    font-family: inherit; font-size: 16px; font-weight: 700;
    border-radius: 12px; padding: 14px 26px;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    transition: transform 80ms ease, box-shadow 120ms ease;
}
.rv2-btn svg { width: 18px; height: 18px; }
.rv2-btn-primary { background: var(--rv2-blue); color: #FFFFFF; box-shadow: 0 8px 20px rgba(0, 180, 255, 0.28); }
.rv2-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(0, 180, 255, 0.34); }

/* CONTACT / SOCIAL ---------------------------------------------- */
.rv2-social { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.rv2-social-link {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 22px; border-radius: 999px;
    background: var(--rv2-card); border: 1px solid var(--rv2-gray);
    color: var(--rv2-charcoal); font-size: 15px; font-weight: 600;
    text-decoration: none;
    transition: transform 80ms ease, box-shadow 120ms ease;
}
.rv2-social-link svg { width: 18px; height: 18px; }
.rv2-social-link:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(2, 32, 71, 0.08); }

/* RESPONSIVE ---------------------------------------------------- */
@media (max-width: 880px) {
    .rv2-hero-inner { grid-template-columns: 1fr; gap: 36px; padding: 88px 24px 56px; }
    .rv2-hero-media { order: -1; max-width: 360px; }
    .rv2-values-grid { grid-template-columns: 1fr; }
    .rv2-inner { padding: 60px 24px; }

    /* Stack the zigzag into a single left-aligned rail */
    .rv2-timeline::before { left: 8px; transform: none; }
    .rv2-tl-item,
    .rv2-tl-item:nth-child(even) {
        width: 100%; margin-left: 0;
        padding: 0 0 28px 32px;
    }
    .rv2-tl-item:nth-child(odd)::before,
    .rv2-tl-item:nth-child(even)::before { left: 0; right: auto; }
    .rv2-tl-item:nth-child(odd) .rv2-tl-card { text-align: left; }
}
@media (max-width: 560px) {
    .rv2-hero-stats { gap: 20px; }
}

/* DARK MODE ----------------------------------------------------- */
body.dark-mode .rv2 {
    --rv2-tint: #15181D;
    --rv2-charcoal: #E8EAED;
    --rv2-ink-60: #9AA6B2;
    --rv2-gray: #2C313A;
    --rv2-card: #1C2026;
    --rv2-blue: var(--brand-primary-light, #4DB8FF);
    --rv2-blue-deep: var(--brand-primary-light, #7FC2F0);
    --rv2-pill-bg: #14283A;
    --rv2-pill-latest-bg: #3A2B14;
    --rv2-pill-latest-ink: #F0C067;
}
body.dark-mode .rv2-about-hero { background: #121212; }
body.dark-mode .rv2-hero h1,
body.dark-mode .rv2-section-title,
body.dark-mode .rv2-stat-num,
body.dark-mode .rv2-value-title,
body.dark-mode .rv2-tl-title { color: #F5F5F5; }
body.dark-mode .rv2-tl-card,
body.dark-mode .rv2-cta-card { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35); }

/* Restore brand text colors that the global `body.dark-mode p` rule in
   UnQbdWeb2/wwwroot/app.css overrides via higher specificity. Keep the
   rv2 ink palette on body-text paragraphs instead of the generic dark
   text color. */
body.dark-mode .rv2 .rv2-hero p,
body.dark-mode .rv2 .rv2-section-sub,
body.dark-mode .rv2 .rv2-value-text,
body.dark-mode .rv2 .rv2-tl-text { color: var(--rv2-ink-60); }

/* Browse All Authors CTA: in dark mode, --rv2-blue resolves to the
   lighter #4DB8FF, which gives the default white button label only
   ~2.5:1 contrast (fails WCAG AA). Swap the background to the deeper
   brand blue so white-on-blue reaches AA. Scoped to .rv2-cta-card
   (unique to About) so this override doesn't leak to .rv2-btn-primary
   on sibling V2 pages once their stylesheets persist after navigation. */
body.dark-mode .rv2 .rv2-cta-card .rv2-btn-primary {
    background: var(--brand-secondary, #0174B1);
    box-shadow: 0 8px 20px rgba(1, 116, 177, 0.4);
}
body.dark-mode .rv2 .rv2-cta-card .rv2-btn-primary:hover {
    box-shadow: 0 12px 26px rgba(1, 116, 177, 0.5);
}
