/* Rafter Up Roofing · Dayos-style skin (12 November 2026). Loads last, over main.css, pages.css, case.css and blog.css.
   Source: website/design-dayos/DESIGN.md (getdesign.md analysis of Dayos), with the brand pink #C95A85 in place of
   their electric yellow. Copy, photos and page structure are untouched: this file only re-points tokens and restyles
   components. To roll back, stop enqueueing this file in functions.php (and restore the fonts line and the header logo).

   What the system is:
   - Light grey canvas #F3F3F3, white cards and panels, black panels and footer. No gradients, grain or glows.
   - Huge uppercase condensed-bold headlines (Archivo at 62% width stands in for Suisse Int'l Condensed),
     Hanken Grotesk for body and UI, IBM Plex Mono for small labels.
   - Sections are slabs: white or black panels with 64px corners on the grey canvas. Cards 32px, controls 13px.
   - The primary button is black on light surfaces and brand pink on black ones. Pink always carries black text.

   Contrast (WCAG): on canvas #F3F3F3: heading #000 18.9:1, body #444 8.8:1, subtle #666 5.2:1, link #A9476E 5.0:1,
   pink focus ring 3.6:1 (non-text). On black: body #B0B0B0 9.7:1, subtle #979797 7.3:1, link #E38FB0 8.9:1,
   pink button #C95A85 with black label 5.3:1 (white on the pink would be 4.0:1, so never white). */

/* ---------- Tokens: light (page default, white panels, light cards nested in dark panels) ---------- */
:root, .ru-section--light, .ru-light, .ru-verify, .ru-pillpanel, .ru-stack__card {
	--page: #F3F3F3;
	--panel: #FFFFFF; --panel-soft: #FFFFFF; --panel-medium: #E9E9E9;
	--tertiary: #FFFFFF; --quaternary: #E5E5E5;
	--ink: #000000;
	--heading: #000000; --body: #444444; --body-subtle: #666666; --gray: #8A8A8A;
	--fg-brand: #A9476E; --fg-brand-strong: #8C3559;
	--brand: #C95A85; --brand-medium: #D3709A; --brand-strong: #A9476E; --brand-soft: #F2CFDD; --brand-softer: #FBEAF1;
	--border: #E5E7EB; --border-medium: #D4D4D8; --border-strong: #A1A1AA;
	--success-soft: #E7F6EC; --success-subtle: #A6DDB8; --fg-success: #15803D;
	--danger-soft: #FDECEC; --danger-subtle: #F5B5B5; --fg-danger: #B42318;
	--warning-soft: #FFF4D6; --warning-subtle: #F0D48A; --fg-warning: #8A5A00;
	--alert-success: #14532D; --alert-warning: #6B4500; --alert-danger: #8F1D14;
	--light: #FFFFFF;
	--chip: #FFFFFF; --chip-fg: #000000;
	--ico-bg: #000000; --ico-fg: #C95A85;
	--btn-bg: #000000; --btn-fg: #FFFFFF; --btn-bg-hover: #C95A85; --btn-fg-hover: #000000;
	--btn2-bg: #FFFFFF; --btn2-fg: #000000; --btn2-bg-hover: #000000; --btn2-fg-hover: #FFFFFF;
	--chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23444444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	--scheme: light;
}
:root {
	--font: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
	--font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--r-sm: 11px; --r-md: 13px; --r-lg: 16px; --r-xl: clamp(20px, 2.6vw, 32px); --r-xxl: clamp(28px, 4.6vw, 64px);
	--radius-md: var(--r-xl);
	--panel-x: clamp(8px, 1.3vw, 20px);
	--header-h: 96px;
	--title-scale: .85; /* 13 Nov 2026, Ana: every title about 15% smaller. 1 = the original Dayos sizes */
	--elevation-2: 0 12px 32px rgba(0, 0, 0, .12);
	--grain: none; --dust: none; --oblique: none;
}
/* White panels: the cards inside drop to the canvas grey so they still read as cards */
.ru-section--light, .ru-light, .ru-verify {
	--panel: #F3F3F3; --panel-soft: #F3F3F3; --panel-medium: #E6E6E6; --chip: #F3F3F3; --btn2-bg: #F3F3F3; --tertiary: #FFFFFF;
}

/* ---------- Tokens: dark (black panels, strips and the footer) ---------- */
.ru-dark, .ru-topbar, .ru-ticker, .ru-wall, .ru-videos, .ru-cta, .ru-soon, .ru-footer, .ru-post-foot, .ru-cs-detail__label {
	--page: #000000;
	--panel: #141416; --panel-soft: #141416; --panel-medium: #1F1F22;
	--tertiary: #1F1F22; --quaternary: #2A2A2C;
	--heading: #FFFFFF; --body: #B0B0B0; --body-subtle: #979797; --gray: #808080;
	--fg-brand: #E38FB0; --fg-brand-strong: #EFB5CC;
	--brand-soft: #3A1626; --brand-softer: #24111A;
	--border: #2A2A2C; --border-medium: #3A3A3D; --border-strong: #5A5A5F;
	--success-soft: #0C2818; --success-subtle: #14532D; --fg-success: #4ADE80;
	--danger-soft: #2A1015; --danger-subtle: #4C1D24; --fg-danger: #FB7185;
	--warning-soft: #2A1E05; --warning-subtle: #4A3410; --fg-warning: #FBBF24;
	--alert-success: #86EFAC; --alert-warning: #FBBF24; --alert-danger: #FDA4AF;
	--chip: #FFFFFF; --chip-fg: #000000;
	--ico-bg: #C95A85; --ico-fg: #000000;
	--btn-bg: #C95A85; --btn-fg: #000000; --btn-bg-hover: #FFFFFF; --btn-fg-hover: #000000;
	--btn2-bg: #FFFFFF; --btn2-fg: #000000; --btn2-bg-hover: #C95A85; --btn2-fg-hover: #000000;
	--chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B0B0B0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	--scheme: dark;
	color: var(--body);
}

/* ---------- Base ---------- */
html { color-scheme: light; }
@media (min-width: 1024px) { html { font-size: 106.25%; } } /* body copy 17px, leads 21px: the Dayos body tier is large */
body { background: var(--page); color: var(--body); font-family: var(--font); font-weight: 450; }
h1, h2, h3, h4, h5, h6 { color: var(--heading); }
.ru-content::before, .ru-footer::before, .ru-footer::after, .ru-soon::before, .ru-soon::after { display: none; }
.ru-select { color-scheme: var(--scheme); }

/* ---------- Type: the condensed display tier (uppercase, tight) ----------
   Every title size below is multiplied by --title-scale (set in :root). Stats, fact values and the ticker are not titles
   and keep their own sizes, as do the Hanken Grotesk card titles. */
.ru-display, .ru-h2, .ru-acc__q, .ru-stat, .ru-facts__value, .ru-vcard__stat, .ru-pillpanel__title, .ru-stack__title,
.ru-close--wide .ru-punch, .ru-ticker__item, .ru-post-title, .ru-post-foot__h, .ru-post-body h2, .ru-prose h2, .ru-roll__title {
	font-family: var(--font-display); font-stretch: 62%; font-weight: 700; text-transform: uppercase; letter-spacing: -.01em;
}
.ru-display { margin-bottom: 32px; max-width: none; color: var(--heading); font-size: calc(var(--title-scale) * clamp(3rem, 1.1rem + 5.4vw, 6.25rem)); line-height: .95; text-wrap: balance; }
.ru-hero--split .ru-display { font-size: calc(var(--title-scale) * clamp(3rem, 1.1rem + 5.4vw, 6.25rem)); }
.ru-hero--page .ru-display { font-size: calc(var(--title-scale) * clamp(2.5rem, 1.1rem + 3.9vw, 4.75rem)); line-height: .97; margin-bottom: 28px; }
.ru-hero--page .ru-display--long { font-size: calc(var(--title-scale) * clamp(2rem, 1.1rem + 2.5vw, 3.375rem)); line-height: 1; }
.ru-h2, .ru-display--soon { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--heading); }
.ru-h2 { font-size: calc(var(--title-scale) * clamp(2.125rem, 1.25rem + 3vw, 3.75rem)); line-height: 1; }
.ru-prose h2 { font-size: calc(var(--title-scale) * 1.5625rem); }
.ru-shead { max-width: 920px; }
.ru-eyebrow { margin-bottom: 16px; color: var(--body-subtle); font: 500 .8125rem/1.4 var(--font-mono); letter-spacing: .08em; }
.ru-eyebrow--onbrand { color: var(--body); }
.ru-lead { font-size: 1.25rem; line-height: 1.4; }
.ru-p, .ru-card__text, .ru-tiles__text, .ru-vcard__text { line-height: 1.5; }
.ru-punch { font-weight: 600; letter-spacing: -.01em; }
.ru-close--wide .ru-punch { font-size: calc(var(--title-scale) * clamp(1.875rem, 1.1rem + 2.6vw, 3.25rem)); line-height: 1; }
.ru-badge { padding: 5px 10px; border-radius: 9999px; }
.ru-badge--neutral { background: var(--panel-medium); }
mark { border: 0; border-radius: 6px; }

/* ---------- Buttons: black on light, pink on black; 13px corners, sentence case ---------- */
.ru-btn { border-radius: var(--r-md); overflow: visible; font-family: var(--font); font-weight: 500; letter-spacing: 0; text-transform: none; transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .1s ease; }
.ru-btn::after { display: none; }
.ru-btn--base { padding: 17px 26px; font-size: 1.125rem; }
.ru-btn--small { padding: 12px 18px; font-size: 1rem; }
.ru-btn--brand, .ru-btn--dark { background: var(--btn-bg); color: var(--btn-fg); }
.ru-btn--brand:hover, .ru-btn--dark:hover { background: var(--btn-bg-hover); color: var(--btn-fg-hover); }
.ru-btn--outline, .ru-btn--outline.ru-btn--small { border: 1px solid var(--border-medium); background: var(--btn2-bg); color: var(--btn2-fg); }
.ru-btn--outline { padding: 16px 25px; }
.ru-btn--outline.ru-btn--small { padding: 11px 17px; }
.ru-btn--outline:hover, .ru-section--light .ru-btn--outline:hover { border-color: var(--btn2-bg-hover); background: var(--btn2-bg-hover); color: var(--btn2-fg-hover); }
.ru-link { font-weight: 500; }
.ru-link--onbrand, .ru-link--onbrand:hover { color: var(--heading); }

/* ---------- Header: black trust strip, then a floating white pill ---------- */
.ru-topbar { background: #000; border-bottom: 0; }
.ru-topbar__item { font-size: .8125rem; }
.ru-header { top: 10px; margin: 10px var(--panel-x) 0; padding: 0; border: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.ru-header__in { min-height: 76px; padding-inline: 28px 14px; border-radius: 9999px; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 0 0 1px var(--border); }
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .ru-header { background: none; } .ru-header__in { background: #fff; } }
.ru-logo { padding: 12px 0; }
.ru-logo img { height: 46px; }
.ru-nav__list { gap: 28px; }
.ru-nav__link { color: var(--heading); font-weight: 500; }
.ru-nav__link:hover { color: var(--fg-brand); }
.ru-nav__link[aria-current="page"], .ru-nav__item--parent.has-current > .ru-nav__link { font-weight: 600; }
.ru-nav__toggle { color: var(--heading); }
.ru-nav__sub { padding: 10px 0; border-radius: 20px; background: #fff; box-shadow: 0 12px 32px rgba(0, 0, 0, .12); }
.ru-header__phone:hover, .ru-header__call:hover { color: var(--fg-brand); }
.ru-header__call, .ru-burger { border-radius: 9999px; }
.ru-burger { margin-right: 0; background: var(--page); }

/* ---------- Hero: grey canvas, giant headline left, media in a 64px panel right ---------- */
.ru-hero { background: var(--page); background-image: none; color: var(--body); padding-top: 0; }
.ru-hero :focus-visible, .ru-hero .ru-btn:focus-visible { outline-color: var(--brand); }
.ru-hero__split { gap: 0 24px; min-height: clamp(540px, 74vh, 800px); padding: 20px var(--panel-x) 0; }
.ru-hero__copy-col { padding: 56px 40px 56px max(calc(var(--gutter) - var(--panel-x)), calc(100% - var(--wrap) / 2 + var(--gutter) + 12px)); }
.ru-hero--split .ru-hero__copy { max-width: 700px; }
.ru-hero__lead { color: var(--heading); font-size: 1.375rem; line-height: 1.3; font-weight: 500; }
.ru-hero__strap, .ru-hero__support, .ru-hero .ru-or { color: var(--body); }
.ru-trust--onbrand, .ru-trust--onbrand .ru-i { color: var(--body-subtle); }
.ru-trust--onbrand .ru-i { color: var(--fg-brand); }
.ru-hero__media-col { overflow: hidden; border-radius: var(--r-xxl); background: #000; }
.ru-hero__bg { background-color: #000; }
.ru-hero__photo { background: var(--panel-medium); }
.ru-hero__media img { border: 0; border-radius: var(--r-xl); }
.ru-hero__pause { right: 28px; bottom: 28px; border: 0; border-radius: 9999px; background: #fff; color: #000; }
.ru-hero__pause:hover { background: var(--brand); }
.ru-hero__pause:focus-visible { outline-color: #fff; }
.ru-hero--compact .ru-hero__split { min-height: clamp(400px, 52vh, 560px); }

/* Guarantee band: a black strip of big white condensed type, pink ticks */
.ru-ticker { margin: 20px var(--panel-x) 0; border-radius: var(--r-xl); background: #000; color: #fff; }
.ru-ticker__track { gap: 64px; padding: 26px 28px; }
.ru-ticker__item { gap: 14px; color: #fff; font-size: clamp(1.375rem, 1rem + 1.2vw, 2rem); line-height: 1; letter-spacing: 0; }
.ru-ticker__item .ru-i { background: var(--brand); color: #000; }
.ru-ticker__pause { border-color: rgba(255, 255, 255, .4); color: #fff; }
.ru-ticker__pause:hover { background: rgba(255, 255, 255, .12); }
.ru-strip { padding-top: 48px; }

/* ---------- Sections as slabs: white and black panels with 64px corners ---------- */
.ru-section--light, .ru-verify, .ru-wall, .ru-videos, .ru-cta { margin-inline: max(var(--panel-x), (100% - var(--wrap)) / 2); border-radius: var(--r-xxl); } /* --wrap wide: 80% of the window on desktop (14 Nov) */
.ru-soon { margin-inline: var(--panel-x); border-radius: var(--r-xxl); }
.ru-section--light, .ru-verify { background: #fff; color: var(--body); }
.ru-wall, .ru-videos, .ru-cta, .ru-soon { background: #000; }
:is(.ru-section--light, .ru-verify, .ru-wall, .ru-videos, .ru-cta) + :is(.ru-section--light, .ru-verify, .ru-wall, .ru-videos, .ru-cta) { margin-top: var(--panel-x); }
.ru-proof + .ru-wall, .ru-strip + .ru-wall { margin-top: 72px; }
.ru-content > :is(.ru-section--light, .ru-verify, .ru-wall, .ru-videos, .ru-cta):last-child { margin-bottom: var(--panel-x); }
.ru-soon { margin-top: 20px; margin-bottom: var(--panel-x); padding-top: 96px; }

/* ---------- Cards and composite grids: flat white, 32px corners, hairline ---------- */
.ru-card, .ru-composite { border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--panel); }
.ru-card::before, .ru-card::after, .ru-composite::before { display: none; }
.ru-card { padding: 32px; }
.ru-card--media { padding: 0; }
.ru-card__body { padding: 28px 32px 32px; }
.ru-card__title, .ru-tiles__title, .ru-step__title, .ru-vcard__title { font-weight: 600; letter-spacing: -.01em; }
.ru-card__link:hover { color: var(--fg-brand); }
.ru-card--form { padding: 40px; }
.ru-card--cta { border-color: var(--border); background: var(--panel); }
.ru-frame, .ru-bacc__media, .ru-bento__cell, .ru-roll__tile, .ru-steps__stack, .ru-step__fig, .ru-stack__media, .ru-vis__photo, .ru-vis__house, .ru-post-hero img, .ru-post-shot img { border-radius: var(--r-xl); }
.ru-frame { background: var(--panel); }
.ru-frame__caption { padding: 14px 24px 18px; }
.ru-facts__cell, .ru-tiles__cell { padding: 32px; }
.ru-facts__value { font-size: 2.75rem; line-height: 1; letter-spacing: 0; }
.ru-stat { font-size: 3.5rem; letter-spacing: 0; }
.ru-vcard__stat { font-size: 3.75rem; }
.ru-principle__icon, .ru-tiles__ico { border-radius: var(--r-md); background: var(--ico-bg); color: var(--ico-fg); }
.ru-tiles__cell--icon .ru-tiles__ico { border-radius: var(--r-lg); }
.ru-vcard { border-radius: var(--r-xl); box-shadow: none; padding: 32px; }
.ru-vcard__ico { border-radius: 9999px; background: var(--ico-bg); color: var(--ico-fg); }
.ru-proof__logos { border-radius: var(--r-xl); }
.ru-cta__emergency, .ru-vis__note, .ru-alert, .ru-flag { border-radius: var(--r-md); }
.ru-flag { border-radius: 0 var(--r-md) var(--r-md) 0; }
.ru-alert--success { color: var(--alert-success); }
.ru-alert--warning { color: var(--alert-warning); }
.ru-alert--danger { color: var(--alert-danger); }

/* ---------- Reviews and before/after ---------- */
.ru-review__stars { color: var(--brand); }
.ru-ba__stage { border-radius: 0; }
.ru-ba__handle { background: #fff; }
.ru-ba__handle .ru-i { border-color: #fff; background: #fff; color: #000; }
.ru-ba__tag { padding: 6px 12px; border-radius: 9999px; background: #000; color: #fff; }
.ru-bento__label { border-radius: 9999px; background: #000; color: #fff; padding: 6px 12px; }

/* ---------- Accordion rows: the Dayos list. Condensed uppercase label, round arrow button, hairlines ---------- */
.ru-acc, .ru-acc--stack, .ru-bacc__list.ru-acc { display: block; max-width: none; overflow: visible; border: 0; border-radius: 0; background: none; }
.ru-acc__item, .ru-acc--stack .ru-acc__item, .ru-bacc__list .ru-acc__item { border: 0; border-top: 1px solid var(--border-medium); border-radius: 0; background: none; overflow: visible; }
.ru-acc__item:last-child, .ru-acc--stack .ru-acc__item:last-child { border-bottom: 1px solid var(--border-medium); }
.ru-bacc__list .ru-acc__item:first-child { border-top: 1px solid var(--border-medium); }
.ru-acc__trigger, .ru-acc--stack .ru-acc__trigger, .ru-bacc__list .ru-acc__trigger { gap: 24px; padding: 24px 0; color: var(--heading); }
.ru-acc__trigger:hover, .ru-acc__item[open] > .ru-acc__trigger { background: none; color: var(--heading); }
.ru-acc__q, .ru-acc--stack .ru-acc__q, .ru-bacc__list .ru-acc__q, .ru-bacc__list .ru-acc__item[open] .ru-acc__q { font-size: calc(var(--title-scale) * clamp(1.375rem, 1.05rem + 1.1vw, 2rem)); font-weight: 700; line-height: 1.05; text-wrap: balance; }
.ru-acc__trigger .ru-i--circle-help { display: none; }
.ru-acc__trigger .ru-i--chevron-down { flex: 0 0 auto; width: 48px; height: 48px; padding: 14px; border-radius: 9999px; background: var(--chip); color: var(--chip-fg); transition: transform .15s ease, background-color .15s ease; }
.ru-acc__trigger:hover .ru-i--chevron-down, .ru-acc__item[open] > .ru-acc__trigger .ru-i--chevron-down { background: var(--brand); color: #000; }
.ru-acc__panel, .ru-bacc__list .ru-acc__panel { padding: 0 72px 28px 0; border-top: 0; font-size: 1.0625rem; line-height: 1.5; }

/* ---------- Forms ---------- */
.ru-input { border-radius: var(--r-md); padding: 15px 16px; background: var(--tertiary); }
.ru-input:hover { border-color: var(--heading); }
.ru-field__label { font-weight: 500; }

/* ---------- Tables, tabs, pills, visualiser ---------- */
.ru-tablewrap { border-radius: var(--r-xl); }
.ru-table th, .ru-table td { padding: 18px 28px; }
.ru-pill { font: 500 1rem/1.2 var(--font); letter-spacing: 0; text-transform: none; background: var(--panel); border-color: var(--border-medium); }
.ru-pill[aria-selected="true"] { border-color: var(--brand); background: var(--brand); color: #000; font-weight: 600; }
.ru-pillpanel { border-radius: var(--r-xl); background: #fff; }
.ru-pillpanel__title { font-size: calc(var(--title-scale) * clamp(2rem, 1.3rem + 2.4vw, 3.25rem)); line-height: 1; }
.ru-videos__pause, .ru-roll__btn { background: var(--chip); color: var(--chip-fg); border-color: transparent; }
.ru-videos__pause { font: 500 1rem/1.2 var(--font); letter-spacing: 0; text-transform: none; }
.ru-videos__pause:hover, .ru-roll__btn:hover { border-color: transparent; background: var(--brand); color: #000; }
.ru-roll__title { font-size: calc(var(--title-scale) * clamp(1.625rem, 1.1rem + 1.6vw, 2.5rem)); line-height: 1; letter-spacing: 0; max-width: 18ch; }
/* 13 Nov, Ana: "too much breathing room", then "tighten every section the same way". Where two plain sections meet
   (neither is a white or black panel), the first drops its bottom padding, so the second's top padding is the whole
   gap: 112px (80px on phones) instead of two paddings stacked. A plain last section does the same above the footer,
   whose own top margin is then the gap. Panels keep their padding and their spacing. */
.ru-section:not(.ru-section--light, .ru-verify, .ru-wall, .ru-videos, .ru-cta, .ru-soon):has(+ .ru-section:not(.ru-section--light, .ru-verify, .ru-wall, .ru-videos, .ru-cta, .ru-soon)),
.ru-content > .ru-section:not(.ru-section--light, .ru-verify, .ru-wall, .ru-videos, .ru-cta, .ru-soon):last-child { padding-bottom: 0; }
.ru-vis__panel { border-radius: var(--r-xl); padding: 28px; }
.ru-swatch i { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.ru-opt { border-radius: var(--r-lg); border-width: 1px; }
.ru-opt__icon { border-radius: 8px; }
.ru-pagination .page-numbers { border-radius: var(--r-md); background: var(--panel); }
.ru-pagination .page-numbers.current { background: #000; border-color: #000; color: #fff; }

/* ---------- Stacked reveal cards: white and grey slabs instead of pink tints ---------- */
.ru-stack__card { border-radius: var(--r-xl); background: #fff; box-shadow: 0 0 0 1px var(--border-medium); color: var(--body); }
.ru-stack__card:first-child { box-shadow: 0 0 0 1px var(--border-medium); }
.ru-stack__card--1, .ru-stack__card--3, .ru-stack__card--5 { background: #fff; }
.ru-stack__card--2, .ru-stack__card--4, .ru-stack__card--6 { background: #E9E9E9; }
.ru-stack__head { border-radius: var(--r-xl); }
.ru-stack__head:focus-visible { outline-color: var(--brand); }
.ru-stack__title { font-size: calc(var(--title-scale) * clamp(1.75rem, 1.15rem + 2.3vw, 3rem)); line-height: 1; color: #000; }
.ru-stack__text { color: var(--heading); }

/* ---------- Footer: always black, pink column links, mono small print ---------- */
.ru-footer { margin-top: var(--section-y); border-top: 0; border-radius: var(--r-xxl) var(--r-xxl) 0 0; background: #000; }
.ru-content > :is(.ru-wall, .ru-videos, .ru-cta):last-child + .ru-footer, main:has(.ru-content > .ru-cta:last-child) + .ru-footer { margin-top: 0; }
.ru-footer__link, .ru-footer__clink { color: var(--fg-brand); }
.ru-footer__link:hover, a.ru-footer__clink:hover { color: #fff; }
span.ru-footer__clink, .ru-footer__clink:not(a) { color: var(--body); }
.ru-footer__soc { border: 0; background: #fff; color: #000; }
.ru-footer__soc:hover { background: var(--brand); color: #000; }
.ru-footer__mark { border-radius: var(--r-md); }
.ru-footer__warranty, .ru-footer__copy { font-family: var(--font-mono); font-size: .75rem; letter-spacing: 0; }

/* ---------- Case studies ---------- */
.ru-cs-detail__label { border-left: 0; border-radius: var(--r-xl); background: #000; box-shadow: none; }
.ru-cs-detail__photo { border-radius: var(--r-xl); }

/* ---------- Blog ---------- */
.ru-post-title { font-size: calc(var(--title-scale) * clamp(2.5rem, 1.3rem + 4.2vw, 5rem)); line-height: .97; letter-spacing: -.01em; }
.ru-post-body h2 { font-size: calc(var(--title-scale) * clamp(1.875rem, 1.3rem + 2vw, 2.875rem)); line-height: 1; }
.ru-post-body .ru-post-ask { border-radius: var(--r-xl); background: #fff; }
.ru-post-body > .ru-post-cta { border-radius: var(--r-xl); background: #fff; }
.ru-post-foot { border-radius: var(--r-xxl); background: #000; }
.ru-post-foot__h { font-size: calc(var(--title-scale) * clamp(2rem, 1.3rem + 2.6vw, 3.5rem)); line-height: 1; }
.ru-post-marker { color: #000; }

/* ---------- Icons as line drawings (12 Nov, Ana: the pink solids on black discs looked wrong in this system) ----------
   The library in assets/icons is mostly solid glyphs. Here every shape is drawn as its outline only (no fill, one even
   stroke that keeps its weight at any size), so the whole set reads as one line-icon family. No disc behind them:
   black line on light surfaces, white on black panels. */
.ru-tiles__ico, .ru-principle__icon, .ru-vcard__ico, .ru-tiles__cell--icon .ru-tiles__ico { place-items: center start; width: auto; height: auto; flex-basis: auto; border-radius: 0; background: none; color: var(--heading); }
.ru-tiles__ico svg, .ru-principle__icon svg, .ru-vcard__ico svg, .ru-tiles__cell--icon .ru-tiles__ico svg { width: 48px; height: 48px; overflow: visible; }
.ru-principle__icon .ru-i { width: 40px; height: 40px; stroke-width: 1.5; }
:is(.ru-tiles__ico, .ru-principle__icon) svg:not(.ru-i) * { fill: none !important; stroke: currentColor !important; stroke-width: 1.75px !important; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ru-tiles__cell--icon .ru-tiles__ico svg { width: 40px; height: 40px; }

/* ---------- Red flag note (12 Nov, Ana: the tinted box with a side stripe read as generic). A hairline, a black label
   pill with a pink flag, then the warning as plain large text. White on black 21:1, pink flag on black 5.3:1. ---------- */
.ru-flag { display: block; max-width: 52ch; margin: 32px 0 0; padding: 24px 0 0; border: 0; border-top: 1px solid var(--border-medium); border-radius: 0; background: none; color: var(--heading); font-size: 1.125rem; font-weight: 500; line-height: 1.4; }
.ru-flag__label { display: flex; align-items: center; gap: 8px; width: max-content; margin: 0 0 14px; padding: 7px 14px 7px 12px; border-radius: 9999px; background: #000; color: #fff; font: 500 .75rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.ru-flag .ru-flag__label { color: #fff; font-weight: 500; }
.ru-flag .ru-flag__label .ru-i { margin: 0; color: var(--brand); }
.ru-flag__text { display: block; }

/* ---------- Process steps: slower, softer changes (12 Nov, Ana). Photos cross-fade over .9s, the dot and the title ease
   over .5s; pages.js waits a beat before switching so quick mouse passes and fast scrolls do not flick through. ---------- */
.ru-steps__shot { transition: opacity .9s cubic-bezier(.4, 0, .2, 1); }
.ru-steps--own .ru-step::before { transition: background-color .5s ease, box-shadow .5s ease, transform .5s ease; }
.ru-steps--own .ru-step__title, .ru-steps--own .ru-step__text { transition: color .5s ease, opacity .5s ease; }
.ru-steps--own.is-live .ru-step.is-on::before { transform: scale(1.15); }
@media (prefers-reduced-motion: reduce) { .ru-steps__shot, .ru-steps--own .ru-step::before, .ru-steps--own .ru-step__title, .ru-steps--own .ru-step__text { transition: none; } }

/* ---------- "Photo coming soon" avatar (homepage welcome, until Spencer's portrait arrives) ---------- */
.ru-avatar-soon { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; aspect-ratio: 4 / 3; background: var(--panel-medium); color: var(--body-subtle); }
.ru-avatar-soon svg { width: clamp(96px, 14vw, 168px); height: auto; }
.ru-avatar-soon__label { margin: 0; color: var(--body); font: 500 .8125rem/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }

/* ---------- Spencer's name and licence under the intro copy (the separate logo band is gone, 12 Nov) ---------- */
.ru-intro__proof { margin-top: 36px; }
.ru-intro:has(.ru-intro__proof) { padding-bottom: var(--section-y); }
.ru-intro + .ru-wall { margin-top: 0; }

/* ---------- Whole images, corner to corner (12 Nov, Ana). The section graphics carry labels and insets right to their
   edges and come in mixed shapes (4:3, 3:4, 9:16), so nothing here crops them any more: the picture is shown complete at
   its own shape, and where a fixed window is needed the spare space is plain grey. ---------- */
.ru-pillpanel { align-items: center; }
.ru-pillpanel__media { min-height: 0; padding: 16px 16px 16px 0; }
.ru-pillpanel__media img, .ru-stack__media img { position: static; display: block; width: auto; max-width: 100%; height: auto; max-height: 640px; margin-inline: auto; aspect-ratio: auto; object-fit: contain; border-radius: 20px; }
.ru-stack__media { overflow: visible; border-radius: 0; }
.ru-stack__media img { max-height: 520px; }
.ru-bacc__fig img, .ru-steps__shot, .ru-step__fig img { object-fit: contain; }
/* 13 Nov, Ana: plain photos of mixed shapes (the warning-signs lists) fill the window instead, so a tall photo is not a
   thin strip on grey. Opt in per section with 'fit' => 'cover'; graphics with labels stay whole as above. */
.ru-bacc--cover .ru-bacc__fig img { object-fit: cover; }
.ru-bacc__media, .ru-steps__stack, .ru-step__fig { background: var(--panel-medium); }
.ru-step__fig img { aspect-ratio: auto; max-height: 70vh; }
@media (min-width: 900px) { .ru-bacc:not(.ru-bacc--portrait) .ru-bacc__media { aspect-ratio: 4 / 3; } }
@media (max-width: 899px) {
	.ru-pillpanel__media { aspect-ratio: auto; padding: 12px 12px 0; }
	.ru-bacc__media { aspect-ratio: 4 / 3; }
}

/* ---------- Process tabs (13 Nov, Ana): the pill tabs as a sequence ('connected' => true in tabs.php). A pink line with a
   dot joins each pill to the next, solid up to the open step and faded after it; the next pill pulses to invite the
   click; every photo shows whole at its own shape, as large as fits a fixed-height frame, so the panel never jumps.
   The row scrolls sideways when the pills don't fit (the padding leaves room for the pulse ring). ---------- */
.ru-pills--steps { flex-wrap: nowrap; gap: 0; align-items: center; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; margin: -12px -12px 16px; padding: 12px; }
.ru-pills--steps::-webkit-scrollbar { display: none; }
.ru-pills--steps li { display: flex; align-items: center; flex: 0 0 auto; }
.ru-pills--steps li + li { flex: 1 0 auto; }
.ru-pills--steps li + li::before { content: ""; flex: 1 0 28px; height: 10px; margin-inline: 8px; opacity: .3; transition: opacity .3s ease;
	background: radial-gradient(circle, var(--brand) 0 3.5px, transparent 4px) center / 10px 10px no-repeat, linear-gradient(var(--brand), var(--brand)) center / 100% 2px no-repeat; }
.ru-pills--steps li.is-reached::before { opacity: 1; }
.ru-pills--steps .ru-pill { scroll-margin-top: calc(var(--header-h) + 24px); }
.ru-pills--steps .ru-pill.is-done { border-color: var(--brand); }
.ru-pills--steps .ru-pill.is-next { border-color: var(--brand); animation: ru-next 1.6s ease-in-out infinite; }
@keyframes ru-next {
	0% { box-shadow: 0 0 0 0 rgba(201, 90, 133, .6); background-color: var(--panel); }
	45% { background-color: #F6DDE7; }
	70% { box-shadow: 0 0 0 10px rgba(201, 90, 133, 0); }
	100% { box-shadow: 0 0 0 0 rgba(201, 90, 133, 0); background-color: var(--panel); }
}
@media (prefers-reduced-motion: reduce) { .ru-pills--steps .ru-pill.is-next { animation: none; background-color: #F6DDE7; } }
.ru-pillpanel__step { margin: 0 0 14px; color: var(--body-subtle); font: 500 .8125rem/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.ru-pillpanel__next { margin: 32px 0 0; }
@media (min-width: 900px) {
	.ru-pilltabs--steps .ru-pillpanel__media { display: flex; align-items: center; justify-content: center; height: clamp(440px, 64vh, 620px); }
	.ru-pilltabs--steps .ru-pillpanel__media img { width: auto; height: auto; max-width: 100%; max-height: 100%; margin: 0; }
}
/* Sized for the 80% column (14 Nov): all seven pills fit on one row from about 1366px wide; narrower screens scroll it */
.ru-pills--steps .ru-pill { padding-inline: 14px; font-size: .9375rem; }
.ru-pills--steps li + li::before { flex-basis: 14px; margin-inline: 5px; }
@media (max-width: 1439px) { .ru-pills--steps .ru-pill { padding-inline: 12px; font-size: .875rem; } }
@media (max-width: 1299px) { .ru-pills--steps .ru-pill { padding-inline: 10px; } .ru-pills--steps li + li::before { margin-inline: 3px; } }
@media (max-width: 899px) { .ru-pilltabs--steps .ru-pillpanel__media img { max-height: 64vh; } }
@media (max-width: 767px) { .ru-pills--steps { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); } }

/* ---------- Checklist gate: email field + download button on one row, note under it ---------- */
.ru-gate { max-width: 640px; }
.ru-gate--center { margin-inline: auto; text-align: left; }
.ru-gate__row { display: flex; align-items: flex-end; gap: 12px; }
.ru-gate__row .ru-field { position: relative; flex: 1 1 auto; min-width: 0; }
.ru-gate__row .ru-btn { flex: 0 0 auto; padding-block: 16px; }
.ru-gate__row .ru-field__error { position: absolute; top: 100%; margin-top: 6px; }
.ru-gate__row:has(.is-invalid) { margin-bottom: 30px; }
.ru-gate__note { margin: 14px 0 0; font-size: .875rem; line-height: 1.5; color: var(--body-subtle); }
.ru-gate .ru-alert { margin-bottom: 16px; }
@media (max-width: 639px) { .ru-gate__row { flex-direction: column; align-items: stretch; } .ru-gate__row .ru-btn { width: 100%; } .ru-gate__row .ru-field__error { position: static; } .ru-gate__row:has(.is-invalid) { margin-bottom: 0; } }

/* ---------- Wider page (12 Nov, Ana): thinner side margins so photos run wide rather than tall ---------- */
:root { --wrap: 1760px; }
@media (min-width: 640px) { :root { --gutter: clamp(24px, 3.4vw, 56px); } }
/* 14 Nov, Ana: "make the sections width a bit less, say 80%". Inside the page content every section is 80% of the window
   on desktop: the white and black panels are --wrap wide and plain sections' content lines up with the text inside them.
   It eases back to the full width by 900px, so tablets and phones keep their gutters. The hero banner, header, footer
   and the Coming Soon page keep the full width (1760px cap). To change the width, change the 80vw. */
.ru-content { --wrap: min(1760px, max(80vw, 32.6vw + 606px)); }
.ru-content > .ru-hero { --wrap: 1760px; }
.ru-roll__track { padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))); } /* first photo on the column (100%, not 100vw, so the scrollbar doesn't shift it) */
@media (min-width: 900px) {
	/* Benefit list photo: a wide 3:2 window that follows the reader down the list, instead of stretching to the list's height */
	.ru-bacc:not(.ru-bacc--portrait) .ru-bacc__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: start; }
	.ru-bacc--text_first:not(.ru-bacc--portrait) .ru-bacc__grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
	.ru-bacc:not(.ru-bacc--portrait) .ru-bacc__media { position: sticky; top: calc(var(--header-h) + 24px); min-height: 0; aspect-ratio: 3 / 2; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1279px) {
	.ru-header__in { padding-inline: 22px 12px; }
	.ru-nav { top: calc(100% + 8px); padding: 12px 24px 24px; border: 0; border-radius: 28px; background: #fff; box-shadow: 0 0 0 1px var(--border), 0 12px 32px rgba(0, 0, 0, .12); max-height: calc(100vh - var(--header-h) - 24px); }
	.ru-nav__sub { background: none; box-shadow: none; }
	.ru-nav__list > li:last-child { border-bottom: 0; }
}
@media (max-width: 1023px) {
	.ru-header__in { min-height: 68px; }
	.ru-logo img { height: 40px; }
}
@media (max-width: 899px) {
	.ru-hero__split { padding-top: 12px; min-height: 0; }
	.ru-hero__copy-col { padding: 40px calc(var(--gutter) - var(--panel-x)) 40px; }
	.ru-hero__media-col { aspect-ratio: 4 / 3; }
	.ru-hero__photo { min-height: 0; }
	.ru-cs-detail__photo { border-radius: var(--r-xl); }
	.ru-cs-detail__label { margin-top: 12px; }
	.ru-acc__panel, .ru-bacc__list .ru-acc__panel { padding-right: 0; }
}
@media (max-width: 639px) {
	:root { --header-h: 84px; }
	.ru-header__in { min-height: 60px; padding-inline: 18px 8px; }
	.ru-logo img { height: 34px; }
	.ru-card, .ru-vcard, .ru-facts__cell, .ru-tiles__cell { padding: 24px; }
	.ru-card--media { padding: 0; }
	.ru-card__body { padding: 22px 24px 24px; }
	.ru-card--form { padding: 24px 20px; }
	.ru-acc__trigger, .ru-acc--stack .ru-acc__trigger, .ru-bacc__list .ru-acc__trigger { gap: 16px; padding: 20px 0; }
	.ru-acc__trigger .ru-i--chevron-down { width: 44px; height: 44px; padding: 12px; }
	.ru-ticker__track { gap: 44px; padding: 20px; }
	.ru-btn--base { padding: 16px 22px; }
}
@media (prefers-reduced-motion: reduce) {
	.ru-btn--brand:hover, .ru-btn--dark:hover { background: var(--btn-bg-hover); }
	.ru-btn--outline:hover { background: var(--btn2-bg-hover); }
}
