/* Redis landing pages (/redis, /redis/cluster-and-sentinel, /valkey) - page-specific
   rules ONLY. Shared primitives (tokens, headings, links, buttons, eyebrows, cards,
   pills, .table/.table-wrap, the .shot-todo placeholder) come from site.css; do not
   re-declare them here. Section, FAQ, status-mark and CTA treatments mirror
   compare.css and databases.css. */

/* ---------- Page head extras ---------- */
.rd-crumbs { font-family: "JetBrains Mono", monospace; font-size: .8rem; color: var(--muted); margin-bottom: 18px; }
.rd-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.rd-crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--muted); }
.rd-crumbs [aria-current="page"] { color: var(--heading); }
.rd-head-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.rd-head-note { font-size: .9rem; color: var(--muted); margin-top: 14px; max-width: 68ch; }

/* Section jump links under the hero. */
.rd-jump { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 10px; padding: 0; margin: 26px 0 0; }
.rd-jump a {
    display: inline-block; font-size: .88rem; font-weight: 500; color: var(--heading);
    background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px;
}
.rd-jump a:hover { border-color: var(--link); text-decoration: none; }

/* ---------- Sections ---------- */
.rd-sec { padding: clamp(48px, 6vw, 72px) 0; border-top: 1px solid var(--line); }
.page-head + .rd-sec { border-top: none; margin-top: 24px; }
.rd-sec h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin: 0 0 12px; }
.rd-sec .rd-intro { color: var(--muted); font-size: 1.06rem; max-width: 68ch; margin: 0 0 28px; }
.rd-sec .rd-intro.rd-after { margin: 22px 0 0; }
.rd-sr {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Feature cards ---------- */
.rd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 22px; }
.rd-grid .card { display: flex; flex-direction: column; }
.rd-grid .card h3 { font-size: 1.2rem; margin: 0 0 10px; }
.rd-grid .card p { color: var(--muted); font-size: .98rem; margin: 0 0 14px; }
.rd-grid .card .rd-more { margin-top: auto; font-weight: 600; font-size: .92rem; }

/* Two columns: text beside a screenshot, stacking on narrow screens. */
.rd-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.rd-split > * { min-width: 0; }
@media (max-width: 860px) { .rd-split { grid-template-columns: minmax(0, 1fr); } }

.rd-points { list-style: none; padding: 0; margin: 0; }
.rd-points li { padding: 12px 0; border-bottom: 1px solid var(--line); line-height: 1.6; color: var(--muted); }
.rd-points li:first-child { padding-top: 0; }
.rd-points li:last-child { border-bottom: none; }
.rd-points li strong { color: var(--heading); }

/* ---------- Screenshot figures ---------- */
.lp-shot { margin: 0; }
.rd-sec .lp-shot + .rd-grid,
.rd-grid + .lp-shot { margin-top: 32px; }
.lp-shot figcaption { font-size: .88rem; color: var(--muted); margin-top: 8px; line-height: 1.5; }

/* ---------- Command samples ---------- */
.rd-code {
    margin: 0 0 14px; padding: 14px 16px; overflow-x: auto;
    font-family: "JetBrains Mono", monospace; font-size: .84rem; line-height: 1.6;
    background: var(--card); border: 1px solid var(--line); border-radius: 10px; color: var(--heading);
}

/* ---------- Tables (compatibility, timings, rules) ---------- */
.rd-table { min-width: 560px; }
.rd-table tbody th {
    font-family: inherit; font-size: .95rem; font-weight: 600;
    text-transform: none; letter-spacing: 0;
    color: var(--heading); vertical-align: top; text-align: left;
    padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.rd-table tbody tr:last-child th { border-bottom: none; }
.rd-table td { vertical-align: top; }
.rd-table .cell-note { display: block; margin-top: 6px; font-size: .88rem; color: var(--muted); line-height: 1.5; }
.rd-table td.rd-num { font-family: "JetBrains Mono", monospace; white-space: nowrap; color: var(--heading); }
.rd-table code { white-space: nowrap; }
.rd-fine { font-size: .9rem; color: var(--muted); max-width: 78ch; margin: 16px 0 0; line-height: 1.6; }

/* Status marks - honest Yes / Partial / No (same palette as compare.css). */
.mark {
    display: inline-block;
    font-family: "JetBrains Mono", monospace; font-size: .74rem; font-weight: 500;
    padding: 4px 11px; border-radius: 999px; white-space: nowrap;
}
.mark.yes { color: var(--green); background: var(--green-soft); }
.mark.partial { color: var(--blue-lift); background: var(--blue-soft); }
.mark.no { color: var(--muted); background: var(--line); }

/* ---------- Honest limits ---------- */
.rd-limits { border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 14px 18px; margin: 28px 0 0; max-width: 78ch; }
.rd-limits h3 { font-size: 1.05rem; margin: 0 0 8px; }
.rd-limits ul { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.6; }
.rd-limits li + li { margin-top: 6px; }

/* ---------- FAQ ---------- */
.rd-faq { display: grid; gap: 18px; max-width: 80ch; }
.rd-faq .card h3 { font-size: 1.15rem; margin: 0 0 8px; }
.rd-faq .card p { color: var(--muted); margin: 0; }

/* ---------- Read-more link columns ---------- */
.rd-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 28px; }
.rd-links h3 { font-size: 1.05rem; margin: 0 0 10px; }
.rd-links ul { list-style: none; padding: 0; margin: 0; }
.rd-links li { padding: 5px 0; }

/* ---------- CTA strip (same treatment as the Compare and Databases CTAs) ---------- */
.rd-cta {
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, var(--blue) 130%);
    color: #cfe0ff; text-align: center; margin-top: 24px;
}
.rd-cta h2 { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 14px; }
.rd-cta p { color: #aebfe2; max-width: 560px; margin: 0 auto 28px; font-size: 1.08rem; }
.rd-cta .eyebrow { background: rgba(243, 118, 137, .18); color: var(--pink-soft); }
.rd-cta .rd-cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.rd-cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
