/* =========================================================================
   Salesforce Security & Integration Readiness Review (landing page)
   Page-scoped styles. Reuses the site token system in ../../css/styles.css.
   Only one net-new token is introduced (amber "at risk"), scoped to .rr-page
   and used only on the signature timeline.
   ========================================================================= */

/* ---- Self-hosted fonts (same method as /bio) ---------------------------- */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400 500;
    font-display: swap;
    src: url('jetbrains-mono-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400 500;
    font-display: swap;
    src: url('jetbrains-mono-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Page scope: Inter body + amber "at risk" token --------------------- */
.rr-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

    --rr-risk: #B8621B;
    --rr-risk-soft: rgba(184, 98, 27, 0.10);
}

/* Dark mode: lift the amber for legibility on dark surfaces. Mirrors the two
   mechanisms the site uses (OS preference pre-JS, resolved mode post-JS). */
@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) .rr-page {
        --rr-risk: #E0934A;
        --rr-risk-soft: rgba(224, 147, 74, 0.14);
    }
}
html[data-theme-mode="dark"] .rr-page {
    --rr-risk: #E0934A;
    --rr-risk-soft: rgba(224, 147, 74, 0.14);
}

.rr-mono {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    font-feature-settings: "tnum" 1;
}

/* ---- Shared page helpers ------------------------------------------------ */
.rr-narrow {
    max-width: 760px;
}

.rr-prose {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.75;
    margin: 0 0 20px;
}
.rr-prose:last-child {
    margin-bottom: 0;
}

.rr-section-alt {
    background: var(--bg-section-alt);
}

.rr-btn {
    display: inline-block;
    text-decoration: none;
}

/* ---- Hero --------------------------------------------------------------- */
.rr-hero {
    position: relative;
    padding: 112px 0 72px;
    overflow: hidden;
}

.rr-hero-inner {
    max-width: 880px;
}

.rr-eyebrow {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--accent-primary);
    margin: 0 0 22px;
}

.rr-hero-title {
    font-size: clamp(34px, 5.6vw, 58px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.06;
    color: var(--text-main);
    margin: 0 0 24px;
}

.rr-hero-subhead {
    font-size: clamp(17px, 2.1vw, 21px);
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 62ch;
    margin: 0 0 34px;
}

.rr-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* Subtle, staggered hero fade-in (disabled under reduced motion) */
@keyframes rr-fade-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: none; }
}
.rr-hero-inner > * {
    animation: rr-fade-in 0.6s ease both;
}
.rr-hero-inner > *:nth-child(2) { animation-delay: 0.06s; }
.rr-hero-inner > *:nth-child(3) { animation-delay: 0.12s; }
.rr-hero-inner > *:nth-child(4) { animation-delay: 0.18s; }

/* ---- Signature timeline: horizontal technical spine (desktop) ----------- */
.rr-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    display: flex;
    gap: 8px;
    --rr-ctrl-h: 4.6em;
    --rr-rail-h: 42px;
}

/* The spine. Five equal nodes -> centers sit at 10% and 90%. */
.rr-timeline::before {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    top: calc(var(--rr-ctrl-h) + var(--rr-rail-h) / 2);
    height: 2px;
    transform: translateY(-1px);
    background: var(--card-border);
    border-radius: 2px;
}

.rr-timeline-node {
    position: relative;
    z-index: 1;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.rr-timeline-control {
    min-height: var(--rr-ctrl-h);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 6px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-main);
}

.rr-timeline-rail {
    height: var(--rr-rail-h);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rr-timeline-marker {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 2px solid var(--accent-primary);
    transition: transform 0.2s ease;
}

.rr-timeline-node:hover .rr-timeline-marker {
    transform: scale(1.15);
}

/* Amber is reserved for the controls already enforcing (live risk). */
.rr-timeline-node.is-live .rr-timeline-marker {
    background: var(--rr-risk);
    border-color: var(--rr-risk);
    box-shadow: 0 0 0 4px var(--rr-risk-soft);
}

.rr-timeline-date {
    margin-top: 16px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-main);
}
.rr-timeline-node.is-live .rr-timeline-date {
    color: var(--rr-risk);
}

.rr-timeline-sub {
    margin-top: 5px;
    font-size: 11px;
    line-height: 1.35;
    letter-spacing: 0.01em;
    color: var(--text-soft);
}

/* Vertical left-spine timeline (mobile) */
@media (max-width: 760px) {
    .rr-timeline {
        flex-direction: column;
        gap: 0;
    }
    .rr-timeline::before {
        left: 7px;
        right: auto;
        top: 10px;
        bottom: 10px;
        width: 2px;
        height: auto;
        transform: none;
    }
    .rr-timeline-node {
        display: grid;
        grid-template-columns: 18px 1fr;
        grid-template-areas:
            "rail control"
            "rail date"
            "rail sub";
        column-gap: 18px;
        text-align: left;
        padding: 6px 0 18px;
    }
    .rr-timeline-node:last-child {
        padding-bottom: 0;
    }
    .rr-timeline-control {
        grid-area: control;
        min-height: 0;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 0;
        font-size: 15.5px;
    }
    .rr-timeline-rail {
        grid-area: rail;
        height: auto;
        justify-content: flex-start;
        padding-top: 1px;
    }
    .rr-timeline-date {
        grid-area: date;
        margin-top: 6px;
    }
    .rr-timeline-sub {
        grid-area: sub;
        margin-top: 2px;
    }
}

/* ---- "What it is not" (quiet) ------------------------------------------- */
.rr-not {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}
.rr-not-item {
    padding: 16px 20px;
    border: 1px solid var(--card-border);
    border-left: 3px solid var(--text-soft);
    border-radius: 10px;
    background: var(--card-bg-soft);
    color: var(--text-muted);
    font-size: 15.5px;
    line-height: 1.6;
}

/* ---- Pricing ------------------------------------------------------------ */
.rr-pricing {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.rr-tier {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 30px 26px;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    background: var(--card-bg-soft);
    box-shadow: var(--shadow-card);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.rr-tier:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-primary);
}
.rr-tier.is-recommended {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-medium);
}

.rr-tier-badge {
    position: absolute;
    top: -11px;
    left: 26px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
}

.rr-tier-code {
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--text-soft);
    margin-bottom: 12px;
}

.rr-tier-name {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--text-main);
    margin: 0 0 14px;
}

.rr-tier-scope {
    flex: 1;
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 22px;
}

.rr-tier-meta {
    border-top: 1px solid var(--card-border);
    padding-top: 18px;
    margin-bottom: 22px;
}
.rr-tier-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}
.rr-tier-key {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-soft);
}
.rr-tier-val {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}
.rr-tier-fee {
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-main);
}

.rr-tier-cta {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.rr-terms {
    margin-top: 26px;
    font-size: 12px;
    letter-spacing: 0.02em;
    color: var(--text-soft);
    text-align: center;
}

/* ---- Process ------------------------------------------------------------ */
.rr-process {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 22px;
    max-width: 760px;
}
.rr-step {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 20px;
    align-items: start;
}
.rr-step-num {
    font-size: 22px;
    font-weight: 500;
    line-height: 1;
    color: var(--accent-primary);
    padding-top: 2px;
}
.rr-step-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 6px;
}
.rr-step-text {
    font-size: 15.5px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ---- Credibility -------------------------------------------------------- */
.rr-creds {
    list-style: none;
    margin: 26px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.rr-creds li {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--card-border);
    background: var(--chip-bg);
    color: var(--text-muted);
    font-size: 12px;
    letter-spacing: 0.04em;
}

/* ---- FAQ ---------------------------------------------------------------- */
.rr-faq {
    border-top: 1px solid var(--card-border);
}
.rr-faq-item {
    padding: 22px 0;
    border-bottom: 1px solid var(--card-border);
}
.rr-faq-q {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 8px;
}
.rr-faq-a {
    font-size: 15.5px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ---- Final CTA band ----------------------------------------------------- */
.rr-cta-band {
    padding: 92px 0;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
}
.rr-cta-inner {
    text-align: center;
}
.rr-cta-title {
    max-width: 24ch;
    margin: 0 auto 28px;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
    color: #ffffff;
}
/* White button on the colored band (higher specificity than .btn-primary) */
.rr-cta-btn.btn-primary {
    background: #ffffff;
    color: var(--accent-hover);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.rr-cta-btn.btn-primary:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

/* ---- Accessibility: visible focus -------------------------------------- */
.rr-page a:focus-visible,
.rr-page button:focus-visible,
.rr-page input:focus-visible,
.rr-page select:focus-visible,
.rr-page textarea:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 980px) {
    .rr-pricing {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 760px) {
    .rr-hero {
        padding: 84px 0 52px;
    }
    .rr-page .section {
        padding: 68px 0;
    }
}

@media (max-width: 480px) {
    .rr-page .container {
        padding: 0 20px;
    }
    .rr-step {
        grid-template-columns: 44px 1fr;
        gap: 14px;
    }
}

/* ---- Reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .rr-page *,
    .rr-page *::before,
    .rr-page *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .rr-hero-inner > * {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
