/* ==========================================================================
   Remote Books Inc. — homepage redesign (Developer Guide FINAL, 28 Oct 2026)
   Classes are prefixed "rb-" so they never clash with app.css.
   Colours follow the main site palette; no black backgrounds.
   ========================================================================== */
:root {
    --rb-red: #e63232;
    --rb-red-d: #d42a2a;
    --rb-pink: #fdeeee;
    --rb-pink-line: #f0d5d5;
    --rb-ink: #1a1a1a;
    --rb-mute: #5f5f5f;
    --rb-line: #e8e8e8;
    --rb-alt: #f7f7f7;
    --rb-r: 14px;
}

:focus-visible { outline: 2px solid var(--rb-red); outline-offset: 2px; }
.rb-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: var(--rb-ink); padding: 8px 14px; border-radius: 8px; }
.rb-skip:focus { left: 12px; }

.rb-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.rb-narrow { max-width: 820px; }
.rb-center { text-align: center; }
.rb-center .rb-lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.rb-btn { display: inline-block; padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 15px; line-height: 1.3; border: 2px solid var(--rb-red); text-decoration: none; cursor: pointer; font-family: inherit; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.rb-btn-p { background: var(--rb-red); color: #fff; }
.rb-btn-p:hover { background: var(--rb-red-d); border-color: var(--rb-red-d); }
.rb-btn-o { background: #fff; color: var(--rb-red); }
.rb-btn-o:hover { background: var(--rb-pink); }
.rb-btn-white { background: #fff; color: var(--rb-red); border-color: #fff; }
.rb-btn-white:hover { background: var(--rb-pink); border-color: var(--rb-pink); }
.rb-btn-block { display: block; width: 100%; text-align: center; }

/* ---------- 4.1 Top bar ---------- */
.rb-top { background: #14161f; color: #a9adb8; font-size: 13px; border-bottom: 1px solid #14161f; } /* dark, to match the footer (approved by Sara) */
.rb-top .rb-wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
.rb-top a { color: #fff; font-weight: 600; text-decoration: none; }
.rb-top a:hover { color: var(--rb-red); }

/* ---------- 4.2 Header ---------- */
.rb-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--rb-line); }
.rb-nav { display: flex; align-items: center; gap: 28px; height: 72px; position: relative; }
.rb-logo { font-weight: 800; font-size: 21px; color: var(--rb-ink); text-decoration: none; letter-spacing: -.01em; }
.rb-logo b { color: var(--rb-red); }
.rb-links { display: flex; align-items: center; gap: 22px; margin-left: auto; font-size: 15px; }
.rb-links a { color: var(--rb-mute); text-decoration: none; }
.rb-links a:hover, .rb-links a.active { color: var(--rb-red); }
.rb-links .rb-links-cta { display: none; }
.rb-menu-toggle { position: absolute; opacity: 0; pointer-events: none; }
.rb-menu-btn { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; margin-left: auto; cursor: pointer; border-radius: 8px; }
.rb-menu-btn span { display: block; height: 2px; background: var(--rb-ink); border-radius: 2px; margin: 0 9px; transition: transform .2s ease, opacity .2s ease; }
.rb-menu-toggle:focus-visible + .rb-menu-btn { outline: 2px solid var(--rb-red); outline-offset: 2px; }

/* ---------- 4.3 Hero + quote form ---------- */
.rb-hero { background: linear-gradient(135deg, #fff 0%, var(--rb-pink) 100%); padding: 84px 0 72px; }
.rb-hero-page { padding: 64px 0; }
.rb-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.rb-hero h1 { font-size: 52px; line-height: 1.08; margin: 0 0 18px; letter-spacing: -.02em; color: var(--rb-ink); font-weight: 800; }
.rb-hero h1 em { color: var(--rb-red); font-style: normal; }
.rb-eyebrow { color: var(--rb-red); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.rb-lead { font-size: 19px; line-height: 1.6; color: var(--rb-mute); max-width: 600px; margin: 0; }
.rb-cta { display: flex; gap: 12px; margin: 28px 0 18px; flex-wrap: wrap; }
.rb-ticks { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--rb-mute); }
.rb-ticks span::before { content: "✓ "; color: var(--rb-red); font-weight: 700; }

.rb-card { background: #fff; border: 1px solid var(--rb-line); border-radius: var(--rb-r); padding: 26px; box-shadow: 0 8px 30px rgba(20, 23, 31, .06); }
.rb-card h3 { font-size: 18px; margin: 0 0 6px; color: var(--rb-ink); }
.rb-card p { margin: 0; color: var(--rb-mute); font-size: 15px; line-height: 1.6; }
.rb-quote { scroll-margin-top: 96px; }
.rb-quote-title { font-size: 21px; margin: 0 0 6px; color: var(--rb-ink); }
.rb-quote-sub { margin: 0 0 4px !important; font-size: 14px !important; }
.rb-quote label, .rb-label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 4px; color: var(--rb-ink); }
.rb-quote select, .rb-quote input:not(.rb-hp), .rb-input { width: 100%; padding: 10px 12px; border: 1px solid #d9d9d9; border-radius: 8px; font: inherit; font-size: 15px; background: #fff; color: var(--rb-ink); }
.rb-quote select:focus, .rb-quote input:focus, .rb-input:focus { outline: none; border-color: var(--rb-red); box-shadow: 0 0 0 3px rgba(230, 50, 50, .14); }
.rb-quote .rb-btn-block { margin-top: 16px; }
.rb-quote-note { font-size: 12.5px !important; margin: 8px 0 0 !important; }
.rb-alert { background: #e6f4ec; color: #1f7a4d; border-radius: 8px; padding: 10px 12px; font-size: 14px; margin: 12px 0 0; }
.rb-field-error { color: #b42318; font-size: 13px; margin-top: 4px; }
.rb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- 4.4 Trust strip ---------- */
.rb-trust { border-bottom: 1px solid var(--rb-line); padding: 22px 0; }
.rb-trust .rb-wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-weight: 700; font-size: 13px; letter-spacing: .06em; color: var(--rb-mute); }

/* ---------- Sections ---------- */
.rb-section { padding: 80px 0; }
.rb-section h2 { font-size: 36px; line-height: 1.15; margin: 0 0 12px; letter-spacing: -.01em; color: var(--rb-ink); font-weight: 800; }
.rb-alt { background: var(--rb-alt); }
.rb-grid { display: grid; gap: 20px; margin-top: 40px; }
.rb-g4 { grid-template-columns: repeat(4, 1fr); }
.rb-g3 { grid-template-columns: repeat(3, 1fr); }
.rb-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

/* ---------- 4.5 Stats ---------- */
.rb-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 36px; }
.rb-stat b { display: block; font-size: 34px; color: var(--rb-red); font-weight: 800; line-height: 1.2; }
.rb-stat span { font-size: 13.5px; color: var(--rb-mute); }

/* ---------- 4.6 Services ---------- */
.rb-svc { display: block; text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
a.rb-svc:hover { transform: translateY(-3px); border-color: var(--rb-pink-line); box-shadow: 0 14px 32px rgba(230, 50, 50, .10); }
.rb-ic { width: 44px; height: 44px; border-radius: 10px; background: var(--rb-pink); color: var(--rb-red); display: grid; place-items: center; font-weight: 800; font-size: 14px; margin-bottom: 12px; }

/* ---------- 4.7 Steps ---------- */
.rb-steps { text-align: left; }
.rb-n { font-size: 14px; font-weight: 800; color: #fff; background: var(--rb-red); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 10px; }

/* ---------- 4.8 Pricing ---------- */
.rb-prices { text-align: left; }
.rb-amt { font-size: 28px; font-weight: 800; color: var(--rb-ink); margin: 6px 0 10px; }
.rb-price-hl { border: 2px solid var(--rb-red); }

/* ---------- 4.9 AI assistant (no dark background) ---------- */
.rb-ai { background: var(--rb-pink); }
.rb-chat { background: #fff; border: 1px solid var(--rb-pink-line); border-radius: var(--rb-r); padding: 20px; box-shadow: 0 8px 30px rgba(20, 23, 31, .06); }
.rb-msg { padding: 10px 14px; border-radius: 12px; margin: 8px 0; font-size: 14px; max-width: 85%; line-height: 1.5; }
.rb-bot { background: var(--rb-alt); color: var(--rb-ink); }
.rb-me { background: var(--rb-red); color: #fff; margin-left: auto; }

/* ---------- 4.11 Reviews ---------- */
.rb-review { margin: 0; display: flex; flex-direction: column; }
.rb-stars { color: #e8a400; letter-spacing: 1px; }
.rb-stars small { color: var(--rb-mute); font-size: 12px; letter-spacing: 0; }
.rb-review blockquote { margin: 12px 0 16px; font-size: 15px; line-height: 1.6; color: var(--rb-ink); }
.rb-review figcaption { margin-top: auto; }
.rb-who { display: block; font-weight: 700; font-size: 14px; color: var(--rb-ink); }
.rb-loc { display: block; color: var(--rb-mute); font-size: 13px; }

/* ---------- 4.12 Security ---------- */
.rb-split .rb-card .rb-btn { margin-top: 16px; }

/* ---------- 4.13 FAQ ---------- */
.rb-faq { margin-top: 28px; }
.rb-faq details { border-bottom: 1px solid var(--rb-line); padding: 16px 0; }
.rb-faq summary { font-weight: 600; cursor: pointer; color: var(--rb-ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.rb-faq summary::-webkit-details-marker { display: none; }
.rb-faq summary::after { content: "+"; color: var(--rb-red); font-weight: 700; }
.rb-faq details[open] summary::after { content: "–"; }
.rb-faq p { margin: 10px 0 0; color: var(--rb-mute); line-height: 1.65; }

/* ---------- 4.14 Newsletter ---------- */
.rb-input { margin: 8px 0 12px; }

/* ---------- 4.15 Closing band ---------- */
.rb-band { background: var(--rb-red); color: #fff; padding: 56px 0; }
.rb-band .rb-wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.rb-band h2 { color: #fff; font-size: 32px; margin: 0 0 6px; font-weight: 800; }
.rb-band p { margin: 0; opacity: .92; font-size: 16px; }

/* ---------- 4.16 Footer (pink, no dark background) ---------- */
.rb-footer { background: #14161f; color: #a9adb8; padding: 56px 0 24px; font-size: 14px; border-top: 1px solid var(--rb-red); } /* dark footer: the one approved exception to the no-black rule */
.rb-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.rb-footer .rb-logo { display: inline-block; margin-bottom: 14px; color: #fff; }
.rb-footer .rb-logo b { color: var(--rb-red); }
.rb-footer p { margin: 0; line-height: 1.6; max-width: 420px; }
.rb-footer h4 { color: #fff; margin: 0 0 14px; font-size: 15px; font-weight: 700; }
.rb-footer a { display: block; margin: 8px 0; color: #a9adb8; text-decoration: none; transition: color .2s ease; }
.rb-footer a:hover { color: #fff; }
.rb-footer-bottom { margin-top: 36px !important; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 20px; max-width: none !important; }
.rb-footer-bottom a { display: inline; }

/* ---------- 5.2 Services page rows ---------- */
.rb-svc-list { display: grid; gap: 20px; }
.rb-svc-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 20px; align-items: start; scroll-margin-top: 96px; }
.rb-svc-row .rb-ic { margin: 0; }
.rb-svc-title { font-size: 20px !important; margin: 0 0 4px !important; }
.rb-svc-short { margin: 0 0 8px !important; font-weight: 600; color: var(--rb-ink) !important; }
.rb-svc-price { margin: 10px 0 0 !important; font-size: 14px !important; font-weight: 600; color: var(--rb-red) !important; }
.rb-svc-row:target { border-color: var(--rb-red); box-shadow: 0 0 0 3px rgba(230, 50, 50, .14); }

/* ---------- 4.17 Mobile sticky buttons ---------- */
.rb-sticky-cta { display: none; }

@media (max-width: 1080px) {
    .rb-links { gap: 16px; font-size: 14px; }
}
@media (max-width: 900px) {
    .rb-hero h1 { font-size: 38px; }
    .rb-section h2 { font-size: 28px; }
    .rb-hero-grid, .rb-split { grid-template-columns: 1fr; }
    .rb-g4, .rb-g3 { grid-template-columns: 1fr 1fr; }
    .rb-stats { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
    .rb-section { padding: 56px 0; }
    .rb-footer-grid { grid-template-columns: 1fr 1fr; }
    .rb-nav-cta { display: none; }
    .rb-menu-btn { display: flex; }
    .rb-links { display: none; position: absolute; top: 72px; left: -24px; right: -24px; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--rb-line); padding: 8px 24px 18px; box-shadow: 0 12px 24px rgba(0, 0, 0, .06); }
    .rb-links a { padding: 12px 0; border-top: 1px solid var(--rb-line); font-size: 16px; }
    .rb-links .rb-links-cta { display: block; text-align: center; margin-top: 12px; border-top: 0; color: #fff; }
    .rb-menu-toggle:checked ~ .rb-links { display: flex; }
    .rb-menu-toggle:checked + .rb-menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .rb-menu-toggle:checked + .rb-menu-btn span:nth-child(2) { opacity: 0; }
    .rb-menu-toggle:checked + .rb-menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .rb-svc-row { grid-template-columns: 48px 1fr; }
    .rb-svc-row > .rb-btn { grid-column: 2; justify-self: start; }
    .rb-sticky-cta { display: flex; position: fixed; bottom: 0; left: 0; right: 0; gap: 8px; padding: 10px; background: #fff; border-top: 1px solid var(--rb-line); z-index: 60; }
    .rb-sticky-cta a { flex: 1; text-align: center; }
    body { padding-bottom: 68px; }
}
@media (max-width: 560px) {
    .rb-g4, .rb-g3 { grid-template-columns: 1fr; }
    .rb-top { display: none; }
    .rb-hero { padding: 56px 0; }
    .rb-hero h1 { font-size: 34px; }
    .rb-lead { font-size: 17px; }
    .rb-footer-grid { grid-template-columns: 1fr; }
    .rb-stat b { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
    .rb-svc, a.rb-svc:hover { transition: none; transform: none; }
}

/* ---------- About: Who we are ---------- */
.rb-who { background: linear-gradient(180deg, #fff 0%, var(--rb-pink) 100%); }
.rb-who-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.rb-who-media { position: relative; z-index: 0; }
.rb-who-media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; box-shadow: 0 18px 40px rgba(230, 50, 50, .12); }
.rb-who-media::before { content: ""; position: absolute; inset: -14px 14px 14px -14px; border: 2px solid var(--rb-pink-line); border-radius: 22px; z-index: -1; }
.rb-who-badge { position: absolute; right: -22px; bottom: -22px; max-width: 220px; background: var(--rb-red); color: #fff; border-radius: 16px; padding: 16px 18px; box-shadow: 0 12px 28px rgba(230, 50, 50, .28); }
.rb-who-badge strong { display: block; font-size: 34px; line-height: 1; font-weight: 800; }
.rb-who-badge span { display: block; font-size: 13px; line-height: 1.4; margin-top: 6px; opacity: .95; }
.rb-who-tag { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--rb-pink-line); color: var(--rb-red); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; padding: 7px 14px; border-radius: 999px; }
.rb-who-tag-ic svg { width: 16px; height: 16px; display: block; }
.rb-who .rb-who-title { font-size: 36px; line-height: 1.2; font-weight: 800; color: var(--rb-ink); margin: 18px 0 26px; }
.rb-who-title span { color: var(--rb-red); }
.rb-who-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rb-who-list li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--rb-pink-line); border-radius: 12px; padding: 14px 16px; color: var(--rb-ink); transition: border-color .2s ease, transform .2s ease; }
.rb-who-list li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.rb-who-list li:hover { border-color: var(--rb-red); transform: translateY(-2px); }
.rb-who-check { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--rb-pink); color: var(--rb-red); display: grid; place-items: center; }
.rb-who-check svg { width: 16px; height: 16px; }
@media (max-width: 900px) {
    .rb-who-grid { grid-template-columns: 1fr; gap: 48px; }
    .rb-who .rb-who-title { font-size: 28px; }
    .rb-who-badge { right: 12px; bottom: -18px; }
}
@media (max-width: 560px) {
    .rb-who-list { grid-template-columns: 1fr; }
    .rb-who-media::before { display: none; }
}

/* ---------- About: Mission and values ---------- */
.rb-mission { position: relative; overflow: hidden; display: flex; gap: 28px; align-items: center; background: linear-gradient(135deg, var(--rb-red) 0%, var(--rb-red-d) 100%); color: #fff; border-radius: 22px; padding: 36px 40px; box-shadow: 0 18px 40px rgba(230, 50, 50, .22); }
.rb-mission::after { content: "\201C"; position: absolute; right: 28px; top: -36px; font-size: 220px; line-height: 1; font-weight: 800; color: rgba(255, 255, 255, .12); pointer-events: none; }
.rb-mission-ic { flex: none; width: 64px; height: 64px; border-radius: 50%; background: #fff; color: var(--rb-red); display: grid; place-items: center; }
.rb-mission-ic svg { width: 32px; height: 32px; }
.rb-mission-label { font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; opacity: .9; margin-bottom: 8px; }
.rb-mission p { position: relative; z-index: 1; margin: 0; max-width: 860px; color: #fff; }
.rb-values-head { text-align: center; margin: 72px 0 32px; }
.rb-values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.rb-value { background: #fff; border: 1px solid var(--rb-line); border-top: 4px solid var(--rb-pink-line); border-radius: 16px; padding: 24px 22px 26px; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.rb-value:hover { border-top-color: var(--rb-red); transform: translateY(-4px); box-shadow: 0 14px 30px rgba(230, 50, 50, .10); }
.rb-value-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.rb-value-ic { width: 48px; height: 48px; border-radius: 14px; background: var(--rb-pink); color: var(--rb-red); display: grid; place-items: center; }
.rb-value-ic svg { width: 24px; height: 24px; }
.rb-value-num { font-size: 32px; font-weight: 800; color: var(--rb-pink-line); line-height: 1; }
.rb-section .rb-value h3 { font-size: 19px; margin: 0 0 6px; color: var(--rb-ink); font-weight: 800; }
.rb-value p { margin: 0; color: var(--rb-mute); font-size: 15px; line-height: 1.55; }
@media (max-width: 1080px) { .rb-values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) {
    .rb-mission { flex-direction: column; align-items: flex-start; padding: 32px 24px; gap: 18px; }
    .rb-mission-ic { width: 60px; height: 60px; }
    .rb-values-head { margin-top: 56px; }
}
@media (max-width: 560px) { .rb-values { grid-template-columns: 1fr; } }

/* ---------- One paragraph style site-wide ----------
   Every passage of body text uses the same font, size and line height. */
:root { --rb-text: 16px; --rb-text-lh: 1.65; }
.rb-lead, .rb-card p, .rb-svc-short, .rb-svc-long, .rb-value p, .rb-who-list li, .rb-mission p,
.rb-band p, .rb-review blockquote, .rb-faq p, .page-header .section-subtitle, .cta-banner .cta-text {
    font-family: inherit;
    font-size: var(--rb-text) !important;
    line-height: var(--rb-text-lh) !important;
}
.rb-lead, .rb-card p, .rb-svc-long, .rb-value p, .rb-who-list li, .rb-mission p, .rb-band p, .rb-faq p, .page-header .section-subtitle, .cta-banner .cta-text { font-weight: 400; }

/* ---------- Insight images ----------
   The img tags carry width/height for page speed; height:auto lets the CSS shape win. */
.article-card-img { height: auto; aspect-ratio: 16 / 9; }
.insights-banner-img { height: auto; }

/* ---------- Submit RFP: the HubSpot form in one centred card ---------- */
.contact-form-card.rfp-card { max-width: 760px; margin: 48px auto 0; background: #fff; border: 1px solid var(--rb-line); border-radius: 16px; padding: 32px; box-shadow: 0 12px 30px rgba(230, 50, 50, .06); }
@media (max-width: 560px) { .contact-form-card.rfp-card { padding: 22px 18px; } }

/* ---------- Quick quote (HubSpot form): homepage card and the /get-a-quote page ---------- */
.rb-quote .hs-form-frame { margin-top: 12px; min-height: 120px; }
.rfp-card .hs-form-frame { min-height: 200px; }
.rb-svc-price a { color: var(--rb-red); text-decoration: none; border-bottom: 1px solid currentColor; }
.rb-svc-price a:hover { color: var(--rb-red-d); border-bottom-width: 2px; }
.rb-quote-page .rb-quote { max-width: 560px; margin: 0 auto; }
.rb-section .rb-quote-page .rb-quote-title { font-size: 21px; line-height: 1.3; margin: 0 0 6px; letter-spacing: 0; }
