/* ═══════════════════════════════════════════════════════════════════════
 * RentReel SITE SYSTEM · v1 · 2026-11-15 (site-polish brief)
 * Loaded LAST in every page's <head>, so these tokens and fixes win over
 * the older per-page inline <style> blocks without rewriting each page.
 *
 *  Spacing (4px base) .. 4 8 12 16 24 32 48 64 96   (--rr-s1 … --rr-s9)
 *  Type scale .......... 13 15 17 20 24 32 44 56     (--rr-t-xs … --rr-t-4xl)
 *  Family .............. Outfit (all text). JetBrains Mono for figures only.
 *  Color roles ......... ink #14201b · muted #5c6b64 · cream #f9f6f0 ·
 *                        surface #fff · line #e7ddcd · emerald #0d8f6b
 *                        (primary/action) · emerald-deep #0a6f53 (hover,
 *                        text-on-light) · mint #e7f5ef (tint) · red #b3261e
 *                        (errors only). Gold/amber = the ONE "Example"
 *                        label on mock data and nothing else.
 *  Radii ............... 8 (inputs/chips) · 12 (buttons) · 16 (cards) · 24 (bands)
 *  Shadows ............. sm 0 8px 26px rgba(20,45,32,.08) · lg 0 20px 60px rgba(20,45,32,.12)
 *  Buttons ............. min-height 44px; primary = solid emerald, secondary =
 *                        white + emerald border; hover darkens; focus ring below.
 * ═══════════════════════════════════════════════════════════════════════ */
:root{
  --rr-s1:4px;--rr-s2:8px;--rr-s3:12px;--rr-s4:16px;--rr-s5:24px;--rr-s6:32px;--rr-s7:48px;--rr-s8:64px;--rr-s9:96px;
  --rr-t-xs:13px;--rr-t-sm:15px;--rr-t-md:17px;--rr-t-lg:20px;--rr-t-xl:24px;--rr-t-2xl:32px;--rr-t-3xl:44px;--rr-t-4xl:56px;
  --rr-ink:#14201b;--rr-muted:#5c6b64;--rr-cream:#f9f6f0;--rr-surface:#fff;--rr-line:#e7ddcd;
  --rr-emerald:#0d8f6b;--rr-emerald-deep:#0a6f53;--rr-mint:#e7f5ef;--rr-red:#b3261e;
  --rr-r-sm:8px;--rr-r-md:12px;--rr-r-lg:16px;--rr-r-xl:24px;
  --rr-shadow-sm:0 8px 26px rgba(20,45,32,.08);--rr-shadow-lg:0 20px 60px rgba(20,45,32,.12);
  --rr-header-h:72px;
}

/* ── 1 · Sticky header: never clips a heading, never ghosts one ──────────
   The header was 85–90% translucent with a blur, so headings scrolling under
   it read as clipped and smeared. Now near-opaque, and every anchor target
   lands below it instead of under it. */
html{scroll-padding-top:calc(var(--rr-header-h) + var(--rr-s4))}
.rrnav,body>nav,body>header{background:rgba(249,246,240,.98)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}

/* Scroll-reveal fades removed site-wide (brief item 1: "if the reveal can't be
   made reliable, remove it"). Content is visible at full opacity on first
   paint; nothing depends on an IntersectionObserver to become readable. */
.reveal,.reveal.in{opacity:1!important;transform:none!important;transition:none!important}
html.m-boot *{visibility:visible!important}

/* ── 6 · One name: the flex gap on the footer lockup rendered "Rent Reel" ─ */
.rr-word{display:inline;white-space:nowrap}
.rr-word i{font-style:normal}

/* ── 4 · Icon system: one stroke set, one size rule ───────────────────── */
.rr-ic{width:1.15em;height:1.15em;flex:none;display:inline-block;vertical-align:-.2em;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.rr-ic-tile{width:44px;height:44px;border-radius:var(--rr-r-md);background:var(--rr-mint);border:1px solid #cfe9de;color:var(--rr-emerald);display:inline-flex;align-items:center;justify-content:center}
.rr-ic-tile .rr-ic{width:22px;height:22px;vertical-align:0}

/* ── 5 · Partner lockup row ───────────────────────────────────────────── */
.rr-partners{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:var(--rr-s4) var(--rr-s7);padding:var(--rr-s5) 0;border-top:1px solid var(--rr-line);border-bottom:1px solid var(--rr-line)}
.rr-partners .lbl{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--rr-muted);width:100%;text-align:center}
.rr-partner{display:flex;flex-direction:column;align-items:center;gap:6px;text-decoration:none;color:var(--rr-ink);min-height:44px;justify-content:center}
.rr-partner img{height:26px;width:auto;display:block;filter:grayscale(1) contrast(1.1);opacity:.85;transition:filter .15s,opacity .15s}
.rr-partner:hover img,.rr-partner:focus-visible img{filter:none;opacity:1}
.rr-partner .wm{font-size:22px;font-weight:800;letter-spacing:-.03em;line-height:26px;color:#3a463f}
.rr-partner small{font-size:12px;color:var(--rr-muted);font-weight:600}

/* ── 10 · Hover + visible focus on every interactive element ──────────── */
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--rr-emerald)!important;outline-offset:2px!important;border-radius:4px}
button:disabled,.btn[aria-disabled="true"],input:disabled{opacity:.55;cursor:not-allowed!important;transform:none!important}
a.btn,button.btn,.btn-p,.btn-c-p,.btn-c-s{min-height:44px}
input[aria-invalid="true"],select[aria-invalid="true"]{border-color:var(--rr-red)!important;box-shadow:0 0 0 3px rgba(179,38,30,.12)!important}
.rr-field-err{display:block;color:var(--rr-red);font-size:var(--rr-t-xs);font-weight:600;margin-top:var(--rr-s1)}

/* ── 7 · Accent discipline: final CTA band is flat emerald, not a gradient ─ */
.final{background:var(--rr-emerald)!important}
.final:before{display:none!important}

/* ── 1/4 · Mobile: nothing may be wider than the viewport ─────────────── */
html,body{overflow-x:clip}
img,svg,video,iframe{max-width:100%}
table{max-width:100%}
@media(max-width:640px){
  table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}
  pre,code{white-space:pre-wrap;word-break:break-word}
}

/* ── Respect reduced motion everywhere ───────────────────────────────── */
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* Emoji retired as iconography (brief item 4) — the replacement SVGs */
.rr-ic-lg{width:28px;height:28px;color:var(--rr-emerald);vertical-align:0}
.emoji .rr-ic{color:var(--rr-emerald)}
/* Partner lockup sits full-width inside the homepage trust strip */
.strip .rr-partners{flex-basis:100%;border:0;padding:0 0 var(--rr-s3)}

/* ── 15 · One palette. The older page templates used a blue-slate ink
   (#1a1d2e / #5a6178 / #7a8199) through these variables; map them onto the
   system's green-black ink and muted so every page reads as one site. ── */
:root{--text:#14201b;--t2:#5c6b64}

/* ── Sticky header: solid, never translucent ──────────────────────────────
   Reported 2026-11-16 from Jordan's iPhone: page text bled through the logo
   bar on scroll. The three header variants all used rgba(249,246,240,.85)
   with backdrop-filter. Where backdrop-filter is unsupported or disabled
   (older iOS Safari, reduced-transparency settings, some in-app browsers)
   the blur silently does nothing and the 15% transparency is all that is
   left — so the content behind simply shows through.
   A sticky header has to be opaque. Fixed here because site-system.css is
   linked on every page; the three selectors cover all of them. */
header[style*="position:sticky"], header.rrnav, .rrx-nav, .rrnav,
header:has(> .wrap > .brand), body > header {
  background: #f9f6f0 !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* ── Tables that stack instead of crushing at phone width ─────────────────
   `display:block; overflow-x:auto` alone does not save a table on a phone:
   with no min-width it still shrinks to the container, so the columns crush
   and words stack one per line. Measured on /bookkeeping at 390px: the
   "When" column was 49px wide.
   .rr-stack turns each row into a labelled card below 640px, so the content
   reads top to bottom with no horizontal scrolling. Each cell carries a
   data-label, which becomes its heading. */
@media (max-width: 640px) {
  table.rr-stack { display: block; overflow: visible; width: 100%; }
  table.rr-stack thead, table.rr-stack tr:first-child:has(th) { display: none; }
  table.rr-stack tbody, table.rr-stack tr, table.rr-stack td { display: block; width: auto; }
  table.rr-stack tr {
    border: 1px solid var(--rr-line, #e6ded0);
    border-radius: var(--rr-r-md, 12px);
    padding: var(--rr-s3, 12px) var(--rr-s4, 16px);
    margin: 0 0 var(--rr-s3, 12px);
    background: #fff;
  }
  table.rr-stack td { border: 0; padding: 6px 0; }
  table.rr-stack td + td { border-top: 1px solid var(--rr-line, #e6ded0); }
  table.rr-stack td::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--rr-muted, #5c6b64);
    margin-bottom: 2px;
  }
  table.rr-stack td:empty { display: none; }
}

/* ── Comparison tables at phone width (full-site quality pass, 2026-11-16) ─
   /vs-stessa and /vs-baselane put words ("Automatic bank feeds", "iOS +
   Android", "Standard SaaS") inside .check, which the pages size at 18px/800
   for a tick mark. At 390px the competitor column is ~90px wide, so those
   words overran the cell and the table's overflow:hidden cut them off;
   the price badge was clipped the same way. Measured: table 340px wide,
   content 362px (/vs-stessa) and 372px (/vs-baselane). */
@media (max-width: 720px) {
  .compare-table td:not(:first-child) .check { font-size: 14px; line-height: 1.3; overflow-wrap: break-word; }
  .compare-table .badge { white-space: normal; max-width: 100%; overflow-wrap: anywhere; }
  .compare-table td:not(:first-child), .compare-table th:not(:first-child) { padding-left: 6px; padding-right: 6px; }
  .compare-table th, .compare-table .partial { letter-spacing: 0; overflow-wrap: anywhere; }
  .compare-table .partial { font-size: 10px; }
}

/* ── .sched-table: scroll instead of crushing at phone width ──────────────
   The blog's table rule already said `display:block; overflow-x:auto` below
   640px, but set no min-width — so the table shrank to the column instead of
   scrolling, and the columns crushed. Measured at 390px across the site:
   8 tables on 7 posts, columns down to 59px.
   The pages that read correctly all wrap the table in .tbl-scroll, which
   gives it room. This gives every .sched-table the same room without needing
   a wrapper, so the fix reaches the ones nobody wrapped.
   Tables narrower than this by nature are unaffected: min-width only applies
   when the content wants more room than the viewport has. */
@media (max-width: 640px) {
  .sched-table { min-width: 480px; }
  /* A table that stacks into cards must not keep the scroll width (Daily QA Nov 17: cards were 480px in a 327px box). */
  table.rr-stack.sched-table { min-width: 0; }
  .tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
