/* ============================================================
   Aislewright marketing site — design system (rebrand 2026-09-23; Session C base 2026-09-07)
   Register: modern software, not retail stock. Precise, dark,
   confident, leading with the actual product (Creative Platform §8–11).
   ============================================================ */

:root {
    /* ---------- Brand tokens — Marketing/Brand/README.md is the source. Do not re-derive. ----------
       Aislewright palette 23 September 2026: Ink #1B1B1B, Paper #F4F0E8, Verdigris #2E7D72, Black #111111.
       Values below that are not those four are mixes of them, contrast-checked (accent 6.4:1 on black, accent-light 5.3:1 on paper). */
    --rp-ground: #111111;        /* every dark surface */
    --rp-surface: #1B1B1B;       /* cards, panels, table rows */
    --rp-edge: #3C3B3A;          /* hairlines, dividers */
    --rp-verdigris: #2E7D72;     /* the brand colour itself: marks, rules, fills behind paper text */
    --rp-accent: #69A095;        /* wordmark, pulse, links, primary buttons — NEVER a status */
    --rp-accent-light: #2A6D63;  /* the accent on paper or any light ground (#69A095 fails contrast on white) */
    --rp-paper: #F4F0E8;         /* body copy on dark; ground in light contexts */
    --rp-muted: #92908C;         /* labels, captions, secondary — teal-biased, not neutral grey */

    /* Status colours — a separate system with a separate job. Data only, never chrome. */
    --rp-green: #22C55E;         /* within norms */
    --rp-amber: #F5A524;         /* look at this */
    --rp-red: #F0466E;           /* stop / sign-off */

    /* Everything below is DERIVED from the tokens above — no new literals. */
    --rp-ground-2: color-mix(in srgb, var(--rp-ground) 55%, var(--rp-surface));
    --rp-surface-2: color-mix(in srgb, var(--rp-surface) 55%, var(--rp-edge));
    --rp-line: var(--rp-edge);
    --rp-line-strong: color-mix(in srgb, var(--rp-edge) 60%, var(--rp-muted));
    --rp-accent-dim: color-mix(in srgb, var(--rp-accent) 14%, transparent);
    --rp-accent-hover: color-mix(in srgb, var(--rp-accent) 82%, white);
    --rp-accent-light-hover: color-mix(in srgb, var(--rp-accent-light) 82%, black);
    --rp-green-ink: color-mix(in srgb, var(--rp-green) 65%, black);   /* status TEXT on light grounds */
    --rp-amber-ink: color-mix(in srgb, var(--rp-amber) 65%, black);
    --rp-red-ink: color-mix(in srgb, var(--rp-red) 75%, black);
    --rp-paper-ink: color-mix(in srgb, var(--rp-ground) 70%, var(--rp-muted));   /* secondary text on paper (was #64748b) */
    --rp-paper-line: color-mix(in srgb, var(--rp-paper) 70%, var(--rp-muted));   /* hairlines on paper (was #e2e8f0 / #CBD5E1) */

    /* Type */
    --rp-text: var(--rp-paper);
    --rp-text-2: color-mix(in srgb, var(--rp-paper) 78%, var(--rp-muted));
    --rp-display: "Jost", "Futura", "Century Gothic", ui-sans-serif, sans-serif;
    --rp-font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --rp-mono: ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;

    --rp-radius: 14px;
    --rp-radius-sm: 8px;
    --rp-max: 1140px;
}

html { scroll-behavior: smooth; }

body.rp {
    margin: 0;
    background: var(--rp-ground);
    color: var(--rp-text);
    font-family: var(--rp-font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.rp main { flex: 1; }

.rp a { color: var(--rp-accent); text-decoration: none; }
.rp a:hover { color: var(--rp-accent-hover); }

.rp h1, .rp h2, .rp h3, .rp h4 {
    font-family: var(--rp-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--rp-text);
    margin: 0;
}

.rp p { margin: 0 0 1rem; }
.rp strong { color: var(--rp-text); font-weight: 600; }
.rp em { font-style: italic; color: var(--rp-text); }

.rp-wrap { max-width: var(--rp-max); margin: 0 auto; padding: 0 1.5rem; }
.rp-wrap--narrow { max-width: 780px; }
.rp-wrap--reading { max-width: 700px; }

/* ---------- Nav ---------- */
.rp-nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(10, 14, 21, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--rp-line);
}

.rp-nav__inner {
    max-width: var(--rp-max); margin: 0 auto; padding: 0 1.5rem;
    height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}

.rp-logo { display: flex; align-items: center; gap: 10px; color: var(--rp-text); }
.rp-logo:hover { color: var(--rp-text); }
.rp-logo svg { height: 30px; width: auto; flex: none; }
.rp-logo__word { font-family: var(--rp-display); font-size: 17px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1; }
.rp-logo__word span { color: var(--rp-accent); }

.rp-nav__links { display: flex; align-items: center; gap: 1.6rem; }
.rp-nav__links > a { color: var(--rp-text-2); font-size: 14.5px; font-weight: 500; }
.rp-nav__links > a:hover { color: var(--rp-text); }
.rp-nav__links > a.is-active { color: var(--rp-text); }

.rp-nav__group { position: relative; }
.rp-nav__group > button {
    background: none; border: 0; color: var(--rp-text-2); font: inherit; font-size: 14.5px; font-weight: 500;
    cursor: pointer; padding: 0; display: inline-flex; align-items: center; gap: 5px;
}
.rp-nav__group > button:hover, .rp-nav__group.is-open > button { color: var(--rp-text); }
.rp-nav__group > button svg { width: 12px; height: 12px; opacity: 0.7; }
.rp-nav__menu {
    position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%);
    min-width: 300px; background: var(--rp-surface); border: 1px solid var(--rp-line-strong);
    border-radius: 12px; padding: 8px; display: none; box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.rp-nav__group.is-open .rp-nav__menu { display: block; }
.rp-nav__menu a {
    display: block; padding: 10px 12px; border-radius: 8px; color: var(--rp-text);
}
.rp-nav__menu a:hover { background: var(--rp-surface-2); color: var(--rp-text); }
.rp-nav__menu a b { display: block; font-size: 14px; font-weight: 600; }
.rp-nav__menu a span { display: block; font-size: 12.5px; color: var(--rp-muted); margin-top: 1px; }

.rp-burger {
    display: none; background: none; border: 1px solid var(--rp-line-strong); border-radius: 8px;
    width: 40px; height: 40px; align-items: center; justify-content: center; cursor: pointer; color: var(--rp-text);
}
.rp-burger svg { width: 20px; height: 20px; }

.rp-mobile {
    display: none; flex-direction: column; gap: 0.25rem;
    border-top: 1px solid var(--rp-line); padding: 1rem 1.5rem 1.25rem; background: var(--rp-ground);
}
.rp-mobile.is-open { display: flex; }
.rp-mobile a { color: var(--rp-text); padding: 10px 0; font-size: 16px; border-bottom: 1px solid var(--rp-line); }
.rp-mobile a:last-child { border-bottom: 0; }
.rp-mobile .rp-mobile__group { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rp-muted); padding: 1rem 0 0.25rem; }

@media (max-width: 860px) {
    .rp-nav__links { display: none; }
    .rp-burger { display: inline-flex; }
}

/* ---------- Buttons ---------- */
.rp-btn {
    display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
    padding: 12px 20px; border-radius: 10px; font-size: 15px; font-weight: 600;
    border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .15s;
    line-height: 1.2;
}
.rp-btn--primary { background: var(--rp-accent); color: var(--rp-ground); border-color: var(--rp-accent); }
.rp-btn--primary:hover { background: var(--rp-accent-hover); border-color: var(--rp-accent-hover); color: var(--rp-ground); transform: translateY(-1px); }
.rp-btn--ghost { background: transparent; color: var(--rp-text); border-color: var(--rp-line-strong); }
.rp-btn--ghost:hover { background: rgba(255,255,255,0.05); color: var(--rp-text); border-color: rgba(255,255,255,0.28); }
.rp-btn--sm { padding: 9px 14px; font-size: 14px; border-radius: 8px; }
.rp-btn--block { width: 100%; justify-content: center; }
.rp-btn svg { width: 16px; height: 16px; }

/* ---------- Sections ---------- */
.rp-section { padding: 6rem 0; border-top: 1px solid var(--rp-line); }
.rp-section--tight { padding: 4rem 0; }
.rp-section--flush { border-top: 0; }
.rp-section--raised { background: var(--rp-ground-2); }

.rp-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rp-accent);
    margin-bottom: 1.25rem;
}
.rp-eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--rp-accent); opacity: 0.7; }

.rp .rp-h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
.rp .rp-h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; margin-bottom: 1.25rem; }
.rp .rp-h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 0.5rem; }
.rp-lede { font-size: 19px; line-height: 1.55; color: var(--rp-text-2); max-width: 620px; }
.rp-body { font-size: 17px; line-height: 1.65; color: var(--rp-text-2); }
.rp-body p + p { margin-top: 0.25rem; }
.rp-small { font-size: 13.5px; color: var(--rp-muted); }
.rp-num { color: var(--rp-accent); font-variant-numeric: tabular-nums; }

.rp-split {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; align-items: center;
}
.rp-split--rev > :first-child { order: 2; }
.rp-split--rev > :last-child { order: 1; }
.rp-split--even { grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) {
    .rp-split, .rp-split--even { grid-template-columns: 1fr; gap: 2.25rem; }
    .rp-split--rev > :first-child { order: 1; }
    .rp-split--rev > :last-child { order: 2; }
}

/* ---------- Screenshot frames ---------- */
.rp-shot {
    position: relative; border-radius: var(--rp-radius); overflow: hidden;
    border: 1px solid var(--rp-line-strong); background: var(--rp-ground);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0,0,0,0.4);
}
.rp-shot img { display: block; width: 100%; height: auto; }
.rp-shot--tall { max-height: 560px; }
.rp-shot--tall img { object-fit: cover; object-position: top; max-height: 560px; }
.rp-shot--crop-bottom img { max-height: 460px; object-fit: cover; object-position: top; }
/* ---------- Crops (Website Corrections §3.2: crop to the element that carries the message) ----------
   --w/--h = source pixel size, --x/--y = crop origin, --cw/--ch = crop size. Pure CSS, the JPG is untouched. */
.rp-crop { position: relative; overflow: hidden; aspect-ratio: var(--cw) / var(--ch); }
.rp-crop img {
    position: absolute; top: 0; left: 0; max-width: none; height: auto;
    width: calc(100% * var(--w) / var(--cw));
    transform: translate(calc(-100% * var(--x) / var(--w)), calc(-100% * var(--y) / var(--h)));
}
.rp-shot__cap { display: grid; gap: 0.3rem; font-size: 13px; color: var(--rp-text-2); padding: 0.85rem 0.25rem 0; font-family: var(--rp-font); line-height: 1.45; }
.rp-shot__cap b { color: var(--rp-text); font-weight: 600; }
.rp-shot__cap .rp-prov { font-family: var(--rp-mono); font-size: 12px; color: var(--rp-muted); }

/* ---------- Demo panel (offline is the DEFAULT — Website Brief v5 §6) ---------- */
.rp-demo {
    border: 1px solid var(--rp-line-strong); border-radius: var(--rp-radius);
    background: linear-gradient(180deg, var(--rp-surface) 0%, var(--rp-ground-2) 100%);
    overflow: hidden;
}
.rp-demo__head {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    padding: 14px 20px; border-bottom: 1px solid var(--rp-line);
    font-family: var(--rp-mono); font-size: 12.5px; color: var(--rp-muted);
}
.rp-demo__head b { color: var(--rp-text-2); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 11.5px; }
.rp-status { display: inline-flex; align-items: center; gap: 8px; }
.rp-status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rp-muted); box-shadow: 0 0 0 3px rgba(120,137,154,0.18); }
.rp-demo.is-live .rp-status__dot { background: var(--rp-green); box-shadow: 0 0 0 3px rgba(34,197,94,0.2); }
.rp-demo__state { padding: 2rem 20px 1.75rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; }
.rp .rp-demo__state h3 { font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -0.025em; margin-bottom: 0.75rem; }
.rp-demo__state p { color: var(--rp-text-2); max-width: 680px; margin: 0 0 0.5rem; }
.rp-demo__state p:last-child { margin-bottom: 0; }
.rp-demo__cta { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; }
.rp-demo__cta .rp-small { max-width: 200px; }
@media (max-width: 760px) { .rp-demo__state { grid-template-columns: 1fr; } }

/* The live slot: space is reserved so a late success never shifts the layout */
.rp-demo__live { display: none; padding: 0 20px 1.5rem; }
.rp-demo.is-live .rp-demo__live { display: block; }
.rp-demo.is-live .rp-demo__offline-copy p { display: none; }
.rp-demo__live-row {
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: start;
    border: 1px solid rgba(34,197,94,0.25); background: rgba(34,197,94,0.05); border-radius: 10px; padding: 14px 16px;
}
.rp-demo__live-row .band { font-family: var(--rp-mono); font-size: 12px; color: var(--rp-green); padding-top: 3px; }
.rp-demo__live-row .sentence { font-size: 15.5px; color: var(--rp-text); }
.rp-demo__live-row .meta { font-family: var(--rp-mono); font-size: 12px; color: var(--rp-muted); margin-top: 6px; }
.rp-demo__shot { padding: 0 20px 20px; }

/* ---------- Cards and grids ---------- */
.rp-grid { display: grid; gap: 1.25rem; }
.rp-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rp-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rp-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .rp-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rp-grid--3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 620px) { .rp-grid--2, .rp-grid--3, .rp-grid--4 { grid-template-columns: 1fr; } }

.rp-card {
    display: block; background: var(--rp-surface); border: 1px solid var(--rp-line); border-radius: var(--rp-radius);
    padding: 1.6rem; color: var(--rp-text); transition: border-color .15s, transform .15s, background .15s;
}
a.rp-card:hover { border-color: rgba(105,160,149,0.45); transform: translateY(-2px); color: var(--rp-text); background: var(--rp-surface-2); }
.rp-card__kicker { font-family: var(--rp-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rp-accent); margin-bottom: 0.85rem; }
.rp .rp-card h3 { font-size: 19px; margin-bottom: 0.5rem; }
.rp-card p { color: var(--rp-text-2); font-size: 15px; line-height: 1.55; margin: 0; }
.rp-card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 1rem; font-size: 14px; font-weight: 600; }

.rp-claim { border-left: 2px solid var(--rp-accent); padding: 0.25rem 0 0.25rem 1.25rem; }
.rp .rp-claim h3 { font-size: 21px; margin-bottom: 0.4rem; }
.rp-claim .rp-quote { font-size: 16.5px; color: var(--rp-text); margin-bottom: 0.6rem; }
.rp-claim p { color: var(--rp-text-2); font-size: 15px; margin: 0; }

.rp-quote { font-size: 18px; line-height: 1.5; color: var(--rp-text); }
.rp-quote--big { font-size: clamp(22px, 2.8vw, 30px); letter-spacing: -0.02em; line-height: 1.3; font-weight: 500; }

.rp-reason {
    font-family: var(--rp-mono); font-size: 14.5px; line-height: 1.7; color: var(--rp-text);
    background: var(--rp-surface); border: 1px solid var(--rp-line-strong); border-radius: 10px; padding: 1.1rem 1.25rem;
}
.rp-reason .k { color: var(--rp-accent); }
.rp-reason .m { color: var(--rp-muted); }
.rp-reason .amber { color: var(--rp-amber); }

/* Stat rows (quantities and time only — never money on the demo estate) */
.rp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rp-line); border: 1px solid var(--rp-line); border-radius: var(--rp-radius); overflow: hidden; }
.rp-stat { background: var(--rp-surface); padding: 1.5rem; }
.rp-stat b { display: block; font-size: 34px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.rp-stat span { display: block; margin-top: 0.5rem; font-size: 13.5px; color: var(--rp-muted); line-height: 1.4; }
.rp-stat--accent b { color: var(--rp-accent); }
@media (max-width: 700px) { .rp-stats { grid-template-columns: 1fr; } }

/* Comparison table */
.rp-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.rp-table th, .rp-table td { text-align: left; padding: 0.9rem 1rem; border-bottom: 1px solid var(--rp-line); vertical-align: top; }
.rp-table th { font-family: var(--rp-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rp-muted); font-weight: 600; }
.rp-table td:first-child { color: var(--rp-muted); }
.rp-table td { color: var(--rp-text); }
.rp-table tr.is-us td { color: var(--rp-text); background: rgba(105,160,149,0.05); }
.rp-table tr.is-us td:first-child { color: var(--rp-accent); font-weight: 600; }
.rp-table-wrap { overflow-x: auto; border: 1px solid var(--rp-line); border-radius: var(--rp-radius); background: var(--rp-surface); }

/* Footer CTA */
.rp-cta {
    padding: 6rem 0; border-top: 1px solid var(--rp-line); text-align: center;
    background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(105,160,149,0.10) 0%, rgba(10,14,21,0) 70%);
}
.rp .rp-cta h2 { font-size: clamp(30px, 4.4vw, 48px); letter-spacing: -0.035em; margin-bottom: 1rem; }
.rp-cta p { color: var(--rp-text-2); font-size: 18px; max-width: 540px; margin: 0 auto 2rem; }

/* The ladder (Engagement §4.9) */
.rp-ladder { list-style: none; padding: 0; margin: 0 auto 2rem; max-width: 640px; display: grid; gap: 0.6rem; text-align: left; }
.rp-ladder li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 1rem; padding: 0.8rem 1rem; border: 1px solid var(--rp-line); border-radius: 10px; background: var(--rp-surface); font-size: 14.5px; line-height: 1.5; color: var(--rp-text-2); }
.rp-ladder li b { color: var(--rp-text); font-weight: 600; font-family: var(--rp-mono); font-size: 12.5px; padding-top: 2px; }
@media (max-width: 560px) { .rp-ladder li { grid-template-columns: 1fr; gap: 0.25rem; } }

/* Footer */
.rp-footer { border-top: 1px solid var(--rp-line); padding: 3.5rem 0 2.5rem; background: var(--rp-ground); color: var(--rp-muted); font-size: 14px; }
.rp-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.rp-footer h4 { font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rp-text-2); margin-bottom: 0.9rem; font-family: var(--rp-mono); font-weight: 600; }
.rp-footer a { color: var(--rp-text-2); display: block; padding: 4px 0; }
.rp-footer a:hover { color: var(--rp-text); }
.rp-footer__brand p { max-width: 320px; margin-top: 0.75rem; line-height: 1.55; }
.rp-footer__base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--rp-line); font-size: 13px; }
.rp-footer__base a { display: inline; padding: 0; }
@media (max-width: 820px) { .rp-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .rp-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Hero ---------- */
.rp-hero { padding: 5.5rem 0 3.5rem; position: relative; overflow: hidden; }
.rp-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 60% 50% at 20% 0%, rgba(105,160,149,0.10) 0%, rgba(10,14,21,0) 60%),
        radial-gradient(ellipse 40% 40% at 90% 20%, rgba(105,160,149,0.08) 0%, rgba(10,14,21,0) 60%);
}
.rp-hero > * { position: relative; }
.rp-hero__copy { max-width: 760px; }
.rp-hero .rp-h1 { margin-bottom: 1.25rem; }
.rp-hero .rp-lede { max-width: 640px; margin-bottom: 2rem; }
.rp-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.rp-hero__source { margin-top: 1.25rem; font-size: 12.5px; color: var(--rp-muted); font-family: var(--rp-mono); }

/* ---------- Forms (contact) ---------- */
.rp-form label { display: block; font-family: var(--rp-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rp-text-2); margin-bottom: 7px; }
.rp-form input[type="text"], .rp-form input[type="email"], .rp-form input[type="tel"], .rp-form textarea {
    width: 100%; box-sizing: border-box; background: var(--rp-ground); color: var(--rp-text);
    border: 1px solid var(--rp-line-strong); border-radius: 10px; padding: 12px 14px; font: inherit; font-size: 15px; outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.rp-form input:focus, .rp-form textarea:focus { border-color: var(--rp-accent); box-shadow: 0 0 0 3px var(--rp-accent-dim); }
.rp-form textarea { resize: vertical; min-height: 120px; }
.rp-form .rp-field { margin-bottom: 1.15rem; }
.rp-form .rp-error { display: block; color: var(--rp-red); font-size: 13px; margin-top: 6px; }
.rp-form .rp-summary { background: rgba(240,70,110,0.08); border: 1px solid rgba(240,70,110,0.3); border-radius: 10px; padding: 0.85rem 1rem; color: var(--rp-red); font-size: 14px; margin-bottom: 1.15rem; }
.rp-form .rp-summary:empty, .rp-form .rp-summary ul:empty { display: none; }
.rp-form .rp-summary ul { margin: 0; padding-left: 1.1rem; }
.rp-panel { background: var(--rp-surface); border: 1px solid var(--rp-line-strong); border-radius: var(--rp-radius); padding: 2.25rem; }
@media (max-width: 560px) { .rp-panel { padding: 1.5rem; } }

/* ---------- The doors (Creative Platform §3: roles are the navigation) ---------- */
.rp-doors { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.75rem; }
.rp-door {
    display: flex; flex-direction: column; gap: 0.5rem; justify-content: space-between;
    padding: 1.1rem 1.15rem; border-radius: 12px; border: 1px solid var(--rp-line-strong); background: var(--rp-surface);
    color: var(--rp-text); transition: border-color .15s, transform .15s, background .15s;
}
.rp-door:hover { border-color: var(--rp-accent); background: var(--rp-surface-2); transform: translateY(-2px); color: var(--rp-text); }
.rp-door__say { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.rp-door__role { font-family: var(--rp-mono); font-size: 12px; color: var(--rp-muted); }
.rp-door:hover .rp-door__role { color: var(--rp-accent); }
.rp-door--sponsor { border-style: dashed; }
.rp-doors--compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .rp-doors, .rp-doors--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .rp-doors, .rp-doors--compact { grid-template-columns: 1fr; } }

/* ---------- The diagnostic (Engagement Part 2: eight questions, tick boxes, a sentence not a score) ---------- */
.rp-diag__list { list-style: none; padding: 0; margin: 1.5rem 0 0; counter-reset: q; display: grid; gap: 0.5rem; }
.rp-diag__list li { counter-increment: q; }
.rp-diag__list label {
    display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 0.85rem; align-items: start; cursor: pointer;
    padding: 0.9rem 1rem; border: 1px solid var(--rp-line); border-radius: 10px; background: var(--rp-surface); color: var(--rp-text); font-size: 16px; line-height: 1.45;
}
.rp-diag__list label::before { content: counter(q); font-family: var(--rp-mono); font-size: 12px; color: var(--rp-muted); padding-top: 3px; min-width: 1.2em; }
.rp-diag__list label:hover { border-color: var(--rp-line-strong); }
.rp-diag__list label:has(input:checked) { border-color: var(--rp-accent); background: var(--rp-surface-2); }
.rp-diag__list input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--rp-accent); }
.rp-diag__foot { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.25rem; }
.rp-diag__result { margin-top: 2rem; padding: 1.5rem 1.5rem 0.5rem; border-left: 2px solid var(--rp-accent); }

/* ---------- Figure + calculator (dataviz: thin marks, recessive grid, one axis, status colours carry data) ---------- */
.rp-fig { margin: 0; background: var(--rp-surface); border: 1px solid var(--rp-line); border-radius: var(--rp-radius); padding: 1.1rem 1.1rem 0.9rem; }
.rp-fig__title { font-size: 14px; font-weight: 600; color: var(--rp-text); margin-bottom: 0.5rem; }
.rp-fig__sub { font-family: var(--rp-mono); font-weight: 400; font-size: 12px; color: var(--rp-muted); margin-left: 0.5rem; }
.rp-fig__plot { position: relative; }
.rp-fig__plot svg { display: block; width: 100%; height: auto; overflow: visible; }
.rp-fig__plot .grid { stroke: var(--rp-line); stroke-width: 1; }
.rp-fig__plot .axis { fill: var(--rp-muted); font-family: var(--rp-mono); font-size: 11px; }
.rp-fig__plot .line { fill: none; stroke: var(--rp-text-2); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.rp-fig__plot .mark { stroke: var(--rp-surface); stroke-width: 2; }
.rp-fig__plot .mark--amber { fill: var(--rp-amber); }
.rp-fig__plot .mark--green { fill: var(--rp-green); }
.rp-fig__plot .lbl { fill: var(--rp-text); font-family: var(--rp-mono); font-size: 11.5px; }
.rp-fig__plot .xhair { stroke: var(--rp-line-strong); stroke-width: 1; stroke-dasharray: 3 3; }
.rp-fig__tip { position: absolute; pointer-events: none; background: var(--rp-ground); border: 1px solid var(--rp-line-strong); border-radius: 8px; padding: 6px 9px; font-family: var(--rp-mono); font-size: 12px; color: var(--rp-text); white-space: nowrap; transform: translate(-50%, -110%); }
.rp-fig__foot { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; align-items: center; margin-top: 0.6rem; font-size: 12.5px; color: var(--rp-muted); }
.rp-fig__key { display: inline-flex; align-items: center; gap: 6px; }
.rp-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.rp-dot--amber { background: var(--rp-amber); } .rp-dot--green { background: var(--rp-green); }
.rp-linkbtn { background: none; border: 0; padding: 0; color: var(--rp-accent); font: inherit; font-size: 12.5px; cursor: pointer; margin-left: auto; }
.rp-table--sm { font-size: 13.5px; margin-top: 0.75rem; }
.rp-table--sm th, .rp-table--sm td { padding: 0.5rem 0.75rem; }

.rp-calc { background: var(--rp-surface); border: 1px solid var(--rp-line-strong); border-radius: var(--rp-radius); padding: 2rem; }
.rp-calc__head .rp-body { margin-top: 0.5rem; }
.rp-calc__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.rp-calc__grid--sliders { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rp-calc__grid .rp-field { margin-bottom: 0; }
.rp-calc__grid input[type="number"] { width: 100%; box-sizing: border-box; background: var(--rp-ground); color: var(--rp-text); border: 1px solid var(--rp-line-strong); border-radius: 10px; padding: 11px 12px; font: inherit; font-size: 15px; font-variant-numeric: tabular-nums; }
.rp-calc__grid input[type="range"] { width: 100%; accent-color: var(--rp-accent); margin-top: 0.4rem; }
.rp-calc__grid output { font-family: var(--rp-mono); color: var(--rp-accent); text-transform: none; letter-spacing: 0; margin-left: 0.5rem; }
.rp-calc__out { margin-top: 1.5rem; }
.rp-calc__out em { font-style: normal; color: var(--rp-muted); }
.rp-stat b { font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .rp-calc__grid, .rp-calc__grid--sliders { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rp-calc { padding: 1.25rem; } }
@media (max-width: 520px) { .rp-calc__grid, .rp-calc__grid--sliders { grid-template-columns: 1fr; } }

/* ---------- Currency toggle (Website Corrections §2: ZAR default, inline ZAR · USD, no geolocation) ---------- */
.rp-cur { display: inline-flex; align-items: center; gap: 2px; font-family: var(--rp-mono); font-size: 12.5px; color: var(--rp-muted); vertical-align: middle; margin-left: 0.4rem; }
.rp-cur button { background: none; border: 0; padding: 0 2px; font: inherit; color: var(--rp-muted); cursor: pointer; border-bottom: 1px solid transparent; }
.rp-cur button[aria-pressed="true"] { color: var(--rp-accent); border-bottom-color: var(--rp-accent); }
.rp-cur button:hover { color: var(--rp-text); }

/* ---------- Utilities ---------- */
.rp-mt-1 { margin-top: 1rem; } .rp-mt-2 { margin-top: 2rem; } .rp-mt-3 { margin-top: 3rem; } .rp-mt-4 { margin-top: 4rem; }
.rp-mb-1 { margin-bottom: 1rem; } .rp-mb-2 { margin-bottom: 2rem; } .rp-mb-3 { margin-bottom: 3rem; }
.rp-center { text-align: center; }
.rp-center .rp-lede { margin-left: auto; margin-right: auto; }
.rp-list { list-style: none; padding: 0; margin: 0; }
.rp-list li { position: relative; padding-left: 1.4rem; margin-bottom: 0.7rem; color: var(--rp-text-2); }
.rp-list li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 7px; height: 7px; border-radius: 50%; background: var(--rp-accent); opacity: 0.8; }
.rp-list li strong { color: var(--rp-text); }
.rp-hr { border: 0; border-top: 1px solid var(--rp-line); margin: 2.5rem 0; }
.rp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .rp *, .rp *::before, .rp *::after { transition: none !important; animation: none !important; }
}

/* ---------- Pain cards on the pillar pages (Website Corrections §6): no quotation marks, no hardcoded hex ---------- */
.rp-pain { border-radius: 16px; overflow: hidden; border: 1px solid var(--rp-paper-line); background: #fff; }
.rp-pain__pain { background: color-mix(in srgb, var(--rp-red) 7%, #fff); padding: 1.5rem; border-bottom: 1px solid color-mix(in srgb, var(--rp-red) 22%, #fff); }
.rp-pain__fix { background: #fff; padding: 1.5rem; }
.rp-pain__k { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.5rem; }
.rp-pain__pain .rp-pain__k { color: var(--rp-red-ink); }
.rp-pain__fix .rp-pain__k { color: var(--rp-green-ink); }
.rp-pain__pain p { font-size: 15px; color: var(--rp-red-ink); line-height: 1.6; margin: 0; }
.rp-pain__fix p { font-size: 14px; color: var(--rp-paper-ink); line-height: 1.6; margin: 0; }

/* ============================================================
   LEGACY — classes still used by the four pillar pages, Privacy and Error,
   which are not in Session C scope. Remove when those pages are rebuilt.
   ============================================================ */
.features-section {
    padding: 6rem 2rem;
    background: var(--rp-paper);
}

    .features-section .section-eyebrow {
        font-size: 12px;
        font-weight: 700;
        color: var(--rp-accent-light);
        text-transform: uppercase;
        letter-spacing: 0.12em;
        margin-bottom: 1rem;
    }

    .features-section h2 {
        font-size: 40px !important;
        font-weight: 800 !important;
        color: var(--rp-ground) !important;
        letter-spacing: -1px;
        margin-bottom: 1rem;
    }

    .features-section .section-sub {
        font-size: 16px;
        color: var(--rp-paper-ink);
        max-width: 500px;
        margin: 0 auto 3.5rem;
        line-height: 1.7;
    }

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
    height: 100%;
}

    .feature-card:hover {
        box-shadow: 0 20px 40px rgba(10,14,21,0.08);
        transform: translateY(-4px);
        border-color: #cbd5e1;
    }

.feature-icon-wrap {
    width: 56px;
    height: 56px;
    background: rgba(42,109,99,0.10);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.feature-icon-wrap svg {
    width: 28px;
    height: 28px;
    stroke: var(--rp-accent-light);
    fill: none;
}

.feature-card h3 {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--rp-ground) !important;
    margin-bottom: 0.6rem;
}

.feature-card p {
    font-size: 14px;
    color: var(--rp-paper-ink);
    line-height: 1.7;
    margin: 0;
}

/* ── AI STRIP ────────────────────────────────────────── */
.ai-strip {
    background: var(--rp-surface);
    padding: 5rem 2rem;
    text-align: center;
}

    .ai-strip h2 {
        font-size: 32px;
        font-weight: 800;
        color: white;
        letter-spacing: -0.5px;
        margin-bottom: 0.75rem;
    }

    .ai-strip p {
        color: rgba(255,255,255,0.55);
        font-size: 15px;
        margin-bottom: 2rem;
    }

.ai-tag {
    display: inline-block;
    background: rgba(105,160,149,0.3);
    color: var(--rp-accent);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(105,160,149,0.4);
    margin: 4px;
}

/* ── CTA ─────────────────────────────────────────────── */
.cta-section {
    padding: 7rem 2rem;
    background: white;
    text-align: center;
}

    .cta-section h2 {
        font-size: 42px !important;
        font-weight: 800 !important;
        color: var(--rp-ground) !important;
        letter-spacing: -1px;
        margin-bottom: 1rem;
    }

    .cta-section p {
        font-size: 16px;
        color: var(--rp-paper-ink);
        margin-bottom: 2.5rem;
    }

.cta-btn {
    background: var(--rp-accent-light);
    color: white;
    font-size: 16px;
    font-weight: 700;
    padding: 16px 40px;
    border-radius: 12px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.cta-btn:hover {
    background: var(--rp-accent-light-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(42,109,99,0.25);
}

/* ── MOBILE RESPONSIVENESS ───────────────────────────── */
@media (max-width: 768px) {

    /* Stack all two-column hero grids */
    section > div[style*="grid-template-columns:1fr 1fr"],
    section > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* Stack stats strips on mobile */
    section > div[style*="grid-template-columns:repeat(4,1fr)"],
    section > div[style*="grid-template-columns: repeat(4,1fr)"] {
        grid-template-columns: 1fr 1fr !important;
    }

    /* Reduce hero heading sizes */
    h1[style*="font-size:52px"],
    h1[style*="font-size: 52px"] {
        font-size: 36px !important;
        letter-spacing: -1px !important;
    }

    h1[style*="font-size:48px"],
    h1[style*="font-size: 48px"] {
        font-size: 32px !important;
        letter-spacing: -1px !important;
    }

    h2[style*="font-size:38px"],
    h2[style*="font-size: 38px"] {
        font-size: 28px !important;
        letter-spacing: -0.5px !important;
    }

    /* Reduce hero section padding */
    section[style*="padding:6rem"] {
        padding: 3rem 1.25rem !important;
    }

    section[style*="padding:5rem"] {
        padding: 3rem 1.25rem !important;
    }

    /* Fix phone mockup centering */
    #mob-menu {
        display: none;
    }

    /* Stack proof items */
    .hero-proof {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    /* Full width buttons on mobile */
    .hero-actions {
        flex-direction: column !important;
    }

        .hero-actions a,
        .hero-actions button {
            width: 100% !important;
            text-align: center !important;
        }

    /* Fix metrics strip on mobile */
    .metrics-section > div {
        grid-template-columns: 1fr !important;
    }

    .metric-item {
        border-right: none !important;
        border-bottom: 1px solid rgba(255,255,255,0.15) !important;
    }

    /* Fix feature cards grid */
    .features-grid {
        grid-template-columns: 1fr !important;
    }

    /* Fix pain point cards */
    div[style*="grid-template-columns:repeat(auto-fit, minmax(300px"] {
        grid-template-columns: 1fr !important;
    }

    /* Fix about page timeline */
    div[style*="padding-left:3rem"] {
        padding-left: 2rem !important;
    }

    /* Fix contact form two-column grid */
    div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Prevent horizontal overflow */
    body, section, div {
        max-width: 100vw;
        overflow-x: hidden;
    }

    /* Fix globe container height on mobile */
    #globe-container {
        height: 280px !important;
    }

    /* Fix share section buttons */
    div[style*="display:flex; gap:12px; justify-content:center"] {
        flex-direction: column !important;
        align-items: center !important;
    }
}

/* standalone eyebrow used outside .features-section on the pillar pages */
.section-eyebrow { font-size: 12px; font-weight: 600; color: var(--rp-accent-light); text-transform: uppercase; letter-spacing: 0.1em; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes slide-in { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }

/* Specificity fix: `.rp a` colours links cyan, which beat the button colours. Buttons win. */
.rp a.rp-btn--primary, .rp a.rp-btn--primary:hover { color: var(--rp-ground); }
.rp a.rp-btn--ghost, .rp a.rp-btn--ghost:hover { color: var(--rp-text); }
.rp a.rp-card, .rp a.rp-card:hover { color: var(--rp-text); }
.rp .rp-nav__menu a, .rp .rp-footer a, .rp .rp-mobile a:not(.rp-btn) { color: var(--rp-text-2); }
.rp .rp-nav__menu a { color: var(--rp-text); }
.rp .rp-nav__links > a:not(.rp-btn) { color: var(--rp-text-2); }
.rp .rp-nav__links > a:not(.rp-btn):hover, .rp .rp-footer a:hover, .rp .rp-mobile a:not(.rp-btn):hover { color: var(--rp-text); }
.rp .rp-footer a.rp-logo { display: flex; padding: 0; }
