/* ==========================================================================
   Redesign foundation (AB#16536): home page first (AB#16623)

   The marketing site in the Clover app's own visual language: the tokens,
   type, buttons, chips, tabs and tables of ../clover-website (via the
   @clover/figma-tokens values mirrored in clover-design-system).

   Every page loads it (base.html.j2), except the two held-back pages,
   pricing and solution-templates, which keep the old design-system.css +
   site-layout.css until they are redesigned (AB#16647).

   Two parts:
     Site chrome  the base the pages stand on: the nav, mobile menu, footer,
                  FAQ list, security facts, demo form messages, booking
                  dialog, skip link and progress pills, with the tokens and
                  resets they need. It came from design-system.css and
                  site-layout.css with its values unchanged, and stays first:
                  the redesign below restyles most of it.
     Redesign     everything after it, scoped to body.rd.
   ========================================================================== */


/* ==========================================================================
   Site chrome
   ========================================================================== */

/* ── Wordmark face: "Clover" in the nav and footer (--font-logo) ── */
@font-face {
  font-family: 'ES Rebond Grotesque';
  src: url('/static/clover-ds/fonts/ESRebondGrotesque-Semibold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ── Chrome tokens: the custom properties the rules below read ── */
:root {
  /* --- Brand --- */
  --accent: #000d14;

  /* --- Base --- */
  --color-base-black: #000;
  --color-base-white: #fff;

  /* --- Neutral Scale --- */
  --color-neutral-100: #f7f7f7;
  --color-neutral-200: #f2f2f2;
  --color-neutral-300: #ededed;
  --color-neutral-400: #e6e6e6;
  --color-neutral-600: #d9d9d9;

  /* --- Semantic --- */
  --color-text-primary: var(--color-base-black);
  --color-text-muted-60: rgba(0, 0, 0, 0.6);
  --color-bg-primary: var(--color-base-white);
  --color-bg-muted: var(--color-neutral-100);
  --color-border: var(--color-neutral-300);
  --color-border-strong: var(--color-neutral-400);
  --color-focus: #4d65ff;
  --color-error: #ea384c;
  --color-success-bg: #e2ffe7;

  /* --- Typography --- */
  --font-display: 'Instrument Serif', Georgia, serif;    /* hero h1, section h2/h3 — marketing display only */
  --font-heading: 'Inter', system-ui, -apple-system, sans-serif;  /* component h3/h4 — card titles, FAQ Qs */
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'Roboto Mono', ui-monospace, monospace;
  --font-logo:    'ES Rebond Grotesque', 'Rebond Grotesque', 'Inter', sans-serif;

  /* Font sizes */
  --text-xs: 0.755rem;     /* ~12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */

  /* Line heights */
  --leading-body: 1.5;

  /* Font weights */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;

  /* --- Spacing --- */
  --space-4: 0.75rem;   /* 12px */

  /* --- Layout --- */
  --container-max: 1200px;
  --padding-global: 1.5rem;

  /* --- Borders --- */
  --radius-md: 0.75rem;   /* 12px — default */
  --radius-button: 12px;
  --radius-default: 12px;

  /* --- Transitions --- */
  --transition-fast: all 0.2s ease;
  /* Spring-physics curves — simulates mass + inertia for premium feel */
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);

  /* --- Nav --- */
  --nav-height: 4.75rem;  /* 76px */
}
@media screen and (max-width: 767px) {
  :root {
    --padding-global: 1.25rem;
  }
}

/* ── Base: reset, body, links, focus ring, headings ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-body);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: var(--color-base-black);
  text-decoration: none;
}
/* Focus visible */
*[tabindex]:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 0.125rem solid var(--color-focus);
  outline-offset: 0.125rem;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text-primary);
}

/* ── Containers (the footer's) ── */
.padding-global {
  padding-left: var(--padding-global);
  padding-right: var(--padding-global);
}
.container-large {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
}

/* ── .button: the nav's Book a demo ── */
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 12px 20px;
  border: none;
  border-radius: var(--radius-button);
  /* Primary button uses the Clover logo gradient (green → blue) sparingly
     as the brand-forward CTA treatment. Reserved for primary actions only. */
  background-image: linear-gradient(135deg, #17e67d 0%, #0096db 100%);
  background-color: #1ea2e2; /* fallback for non-gradient contexts */
  color: var(--color-base-white);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  /* Press physics: a haptic press-down (.button:active) */
  transition: filter 0.15s ease, box-shadow 0.5s var(--ease-spring), transform 0.3s var(--ease-spring);
  position: relative;
  z-index: 2;
  box-shadow: 0 2px 12px rgba(0,150,219,0.22), 0 1px 2px rgba(0,0,0,0.12), inset 0 0 1px rgba(0,0,0,0.28);
}
.button:hover {
  filter: brightness(1.05) saturate(1.05);
  box-shadow: 0 4px 18px rgba(0,150,219,0.30), 0 1px 2px rgba(0,0,0,0.12), inset 0 0 1px rgba(0,0,0,0.28);
}
@media screen and (max-width: 479px) {
  .button { width: 100%; }
}
.button:active {
  transform: scale(0.97);
}
/* Button arrow kinetic tension */
.button svg {
  transition: transform 0.5s var(--ease-spring);
}
.button:hover svg {
  transform: translateX(3px);
}
@media (prefers-reduced-motion: reduce) {
  .button:active {
    transform: none;
  }
}

/* ── Nav bar and the Solutions dropdown ── */
.nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-neutral-200);
  height: var(--nav-height);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--padding-global);
  position: relative; /* positioning context for the centered Solutions mega-menu */
}
.nav-logo {
  font-family: var(--font-logo);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--accent);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo svg,
.nav-logo img {
  width: 34px;
  height: 27px;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 1.75rem 1rem;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
  text-decoration: none;
  transition: var(--transition-fast);
}
.nav-links a:hover {
  opacity: 0.6;
}
.nav-links a.is-active {
  color: #0d7eaf; /* Clover blue (darker) — active page indicator, WCAG AA on white */
  opacity: 1;
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-dropdown {
  /* static so the wide (880px) mega-menu anchors to .nav-inner (the centered
     container) rather than the trigger — keeps it from clipping off-screen */
  position: static;
}
.nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-dropdown-chevron {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.nav-dropdown:hover .nav-dropdown-chevron {
  transform: rotate(180deg);
}
/* Reset global .nav-links a overrides inside the dropdown */
.nav-dropdown-menu .nav-dropdown-ind {
  display: block;
  padding: 8px 0;
  font-size: 13.5px;
}
.nav-dropdown-menu a:hover {
  opacity: 1;
}
/* Solutions dropdown — 2×2 category grid + industry rail (spec 24) */
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  width: 880px;
  max-width: calc(100vw - 32px);
  background-color: var(--color-base-white);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-default);
  box-shadow:
    0 1px 2px rgba(0,0,0,0.04),
    0 14px 36px rgba(10,35,55,0.12),
    0 30px 70px rgba(10,35,55,0.07);
  /* No overflow:hidden here — it would clip the ::before hover bridge above the
     menu. The tinted minor/foot areas round their own outer corners instead. */
  grid-template-columns: 1fr 244px;
  grid-template-areas:
    "major minor"
    "foot  foot";
  z-index: 200;
}
/* Without the footer (Solution Templates held back, AB#16636) the menu is one
   row, and the tinted minor column rounds the bottom-right corner too. */
.nav-dropdown-menu:not(:has(.nav-dropdown-foot)) { grid-template-areas: "major minor"; }
.nav-dropdown-menu:not(:has(.nav-dropdown-foot)) .nav-dropdown-minor { border-bottom-right-radius: var(--radius-default); }
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}
.nav-dropdown:hover .nav-dropdown-menu {
  display: grid;
}
/* Major column — categories, dominant */
.nav-dropdown-major {
  grid-area: major;
  padding: 28px 32px 26px;
}
.nav-dropdown-major-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -0.012em;
  color: var(--accent);
  font-variation-settings: "opsz" 96;
  margin: 0 0 5px;
}
.nav-dropdown-brand {
  font-family: var(--font-logo);
  letter-spacing: -0.015em;
}
.nav-dropdown-major-sub {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.55);
  margin: 0;
  line-height: 1.45;
  max-width: 320px;
}
/* Categories grid — major column (3-level IA: category → its processes) */
.nav-dropdown-cats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 28px;
  margin-top: 18px;
}
.nav-dropdown-cat-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-dropdown-menu .nav-dropdown-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0; /* override global .nav-links a padding (specificity) */
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  text-decoration: none;
  margin-bottom: 5px;
}
.nav-dropdown-cat-arr {
  color: rgba(0, 0, 0, 0.3);
  align-self: center;
  opacity: 0;
  transform: translateX(-3px);
  transition: opacity 0.15s ease, transform 0.15s ease, color 0.15s ease;
  fill: none;
}
.nav-dropdown-cat:hover { color: #0d7eaf; }
.nav-dropdown-cat:hover .nav-dropdown-cat-arr {
  opacity: 1;
  transform: translateX(0);
  color: #0d7eaf;
}
.nav-dropdown-menu .nav-dropdown-cat-proc {
  display: block;
  font-size: 12.5px;
  color: rgba(0, 0, 0, 0.6);
  text-decoration: none;
  padding: 3px 0;
  transition: color 0.15s ease;
}
.nav-dropdown-menu .nav-dropdown-cat-proc:hover { color: #0d7eaf; }
/* Minor column — By Industry, secondary (bordered, tinted rail) */
.nav-dropdown-minor {
  grid-area: minor;
  border-left: 1px solid var(--color-neutral-200);
  background: #fafbfc;
  padding: 28px 26px;
  border-top-right-radius: var(--radius-default); /* clip to panel corner (no overflow:hidden) */
}
.nav-dropdown-minor-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(0, 0, 0, 0.45);
  margin: 0 0 12px;
}
.nav-dropdown-ind {
  display: block;
  padding: 8px 0;
  font-size: 13.5px;
  color: var(--color-text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--color-neutral-200);
  transition: color 0.15s ease;
}
.nav-dropdown-ind:last-of-type {
  border-bottom: none;
}
.nav-dropdown-ind:hover {
  color: #0d7eaf;
}
/* Serif italic footnote tying the two columns together */
.nav-dropdown-ind-foot {
  margin: 16px 0 0;
  padding-top: 13px;
  border-top: 1px solid var(--color-neutral-200);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.45);
  line-height: 1.5;
}
.nav-dropdown-foot {
  grid-area: foot;
  margin: 0;
  padding: 15px 32px;
  border-top: 1px solid var(--color-neutral-200);
  background: #fafbfc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  /* clip to panel bottom corners (no overflow:hidden) */
  border-bottom-left-radius: var(--radius-default);
  border-bottom-right-radius: var(--radius-default);
}
.nav-dropdown-foot-text {
  font-size: 12.5px;
  color: rgba(0, 0, 0, 0.55);
  line-height: 1.4;
}
.nav-dropdown-foot-text strong {
  display: block;
  color: var(--color-text-primary);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 1px;
}
.nav-dropdown-menu .nav-dropdown-foot-cta {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 6px;
  white-space: nowrap;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border: 1.5px solid transparent;
  background-image:
    linear-gradient(var(--color-base-white), var(--color-base-white)),
    linear-gradient(135deg, #17e67d 0%, #0096db 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}
.nav-dropdown-foot-cta svg {
  width: 14px; height: 14px;
  stroke: currentColor; stroke-width: 2; fill: none;
  transition: transform 0.4s var(--ease-spring);
}
.nav-dropdown-foot-cta:hover svg { transform: translateX(3px); }
@media screen and (max-width: 991px) {
  .nav-links { display: none; }
  /* Book a demo stays in the bar, beside the menu button */
  .nav-cta { margin-left: auto; }
}

/* ── Mobile menu (under 992px: the hamburger and its panel) ── */
.nav-mobile-group {
  border-bottom: 1px solid var(--color-neutral-100);
}
.nav-mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
  text-align: left;
}
.nav-mobile-toggle svg {
  transition: transform 0.2s ease;
}
.nav-mobile-group.is-open .nav-mobile-toggle svg {
  transform: rotate(180deg);
}
.nav-mobile-submenu {
  display: none;
  flex-direction: column;
  padding-bottom: 12px;
}
.nav-mobile-group.is-open .nav-mobile-submenu {
  display: flex;
}
.nav-mobile-submenu a {
  padding: 8px 0 8px 16px;
  font-size: var(--text-sm);
  border-bottom: none;
}
/* The page you're on, in the dropdown and the mobile menu */
.nav-dropdown-menu a[aria-current="page"],
.nav-mobile a[aria-current="page"] { color: #0d7eaf; font-weight: 600; }
.nav-mobile-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-muted-60);
  font-family: var(--font-mono);
  padding: 4px 0 2px 16px;
}
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-hamburger svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-base-black);
  stroke-width: 2;
}
.nav-hamburger .hamburger-close {
  display: none;
}
.nav-hamburger.is-open .hamburger-open {
  display: none;
}
.nav-hamburger.is-open .hamburger-close {
  display: block;
}
.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 16px var(--padding-global) 24px;
  border-bottom: 1px solid var(--color-neutral-200);
  background-color: var(--color-base-white);
}
/* Capped at the screen under the sticky bar and scrolled on its own: the
   open Solutions list is taller than a phone, and the sticky bar would
   otherwise keep its end out of reach. */
.nav-mobile.is-open {
  display: flex;
  max-height: calc(100vh - var(--nav-height));
  max-height: calc(100dvh - var(--nav-height));
  overflow-y: auto;
  overscroll-behavior: contain;
}
/* The page behind the open menu dims; a tap on it closes the menu */
.nav-backdrop { display: none; }
@media screen and (max-width: 991px) {
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 99; /* just under the nav (100) */
    background: rgba(17, 24, 31, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0s linear 0.25s;
  }
  html.nav-menu-open .nav-backdrop { opacity: 1; visibility: visible; transition: opacity 0.25s ease; }
  html.nav-menu-open .nav-wrapper { background-color: #fff; } /* the 92% white bar would take the tint */
}
@media (prefers-reduced-motion: reduce) {
  .nav-backdrop { transition: none !important; }
}
.nav-mobile a {
  display: block;
  padding: 12px 0;
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--color-neutral-100);
}
.nav-mobile a:last-child {
  border-bottom: none;
}
@media screen and (max-width: 991px) {
  .nav-hamburger { display: block; margin-left: 12px; margin-right: -8px; } /* the icon sits a gutter (20px) from Book a demo */
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--color-neutral-200);
  padding-top: 64px;
  padding-bottom: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand p {
  font-size: var(--text-sm);
  color: var(--color-text-muted-60);
  margin-top: 12px;
  line-height: var(--leading-body);
  max-width: 280px;
}
/* LinkedIn, under the tagline */
.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-top: 16px;
  border: 1px solid var(--color-neutral-200);
  border-radius: 10px;
  color: var(--color-text-muted-60);
  transition: var(--transition-fast);
}
.footer-social:hover { color: var(--color-text-primary); }
.footer-col-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  font-size: var(--text-sm);
  color: var(--color-text-muted-60);
  text-decoration: none;
  transition: var(--transition-fast);
}
.footer-col a:hover {
  color: var(--color-text-primary);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--color-neutral-200);
  font-size: var(--text-xs);
  color: var(--color-text-muted-60);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-legal a { color: inherit; text-decoration: none; }
.footer-legal a:hover { color: var(--color-text-primary); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 767px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media screen and (max-width: 991px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media screen and (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ── FAQ list (faq_section in partials/rd/_ui.html.j2; toggled in base.html.j2) ── */
.faq-list {
  display: flex;
  flex-direction: column;
  max-width: 720px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--color-neutral-200);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  text-align: left;
  color: var(--color-text-primary);
}
.faq-question svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-neutral-600);
  stroke-width: 2;
  fill: none;
  transition: transform 0.3s var(--ease-spring);
  flex-shrink: 0;
}
.faq-item.is-open .faq-question svg {
  transform: rotate(45deg);
}
/* Animated collapse: grid 0fr -> 1fr smoothly resolves to the answer's
   natural height. The inner element clips via overflow during the transition. */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted-60);
  line-height: var(--leading-body);
  transition: grid-template-rows 0.32s var(--ease-spring), opacity 0.25s ease;
}
.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
  opacity: 1;
}
/* Inner wrapper is the overflow-clipped grid child. Padding lives one level
   deeper (on the <p>) so it gets clipped too — letting the row collapse fully
   to 0 (an element can't clip its own padding, hence the nesting). */
.faq-answer-inner {
  overflow: hidden;
  min-height: 0;
}
.faq-answer-inner > p {
  margin: 0;
  padding-bottom: 20px;
}
@media (prefers-reduced-motion: reduce) {
  .faq-answer,
  .faq-question svg { transition: none; }
}

/* ── Security facts (partials/cta-security-badges.html.j2) ── */
.cta-security {
  position: relative;
  z-index: 1;
  margin-top: 36px;
  padding-top: 28px;
}
.cta-security-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 26px;
  margin: 0;
  padding: 0;
}
.cta-security-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.4;
}
.cta-security-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
/* Light variant — sits above contact form on white background */
.cta-security--light {
  border-top: 1px solid var(--color-neutral-300);
  padding-bottom: 28px;
  border-bottom: 1px solid var(--color-neutral-300);
  margin-top: 0;
  margin-bottom: 36px;
}
.cta-security--light .cta-security-badge {
  color: var(--color-text-primary);
}
.cta-security--light .cta-security-dot {
  background-color: #17a262;
}
.cta-security--light .cta-security-badge.is-progress .cta-security-dot {
  background-color: #c47a16;
}
.cta-security--light .cta-security-badge.is-muted {
  color: var(--color-text-muted-60);
}
@media screen and (max-width: 567px) {
  .cta-security-list { gap: 10px 18px; }
  .cta-security-badge { font-size: 10px; }
}

/* ── Demo form: consent line, messages, thank-you panel and booking dialog
   (js/form-submit.js) ── */
.form-message-success {
  padding: 20px;
  background-color: var(--color-success-bg);
  border-radius: var(--radius-md);
}
.form-message-error {
  padding: 12px;
  background-color: #ffdede;
  color: var(--color-error);
  border-radius: var(--radius-md);
  margin-top: var(--space-4);
}
/* Consent line under the demo/contact submit buttons (AB#16643) */
.form-consent { margin-top: 10px; font-size: 12px; line-height: 1.5; text-align: center; color: var(--color-text-muted-60); }
.form-consent a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
/* Phones: body copy stays at 14px or more, the consent line included */
@media (max-width: 767px) {
  .form-consent { font-size: 14px; }
}
/* Demo form thank-you panel with the booking-page button (site/js/form-submit.js) */
.form-thanks {
  /* The CTA sections are dark; the panel is a light card, so set the text colour. */
  color: var(--color-text-primary);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.form-booking {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-booking-button {
  /* Looks come from the form's own submit-button classes; this keeps it full width. */
  width: 100%;
  justify-content: center;
  text-align: center;
}
.form-booking-hint {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted-60);
}
/* "Book a demo" modal: the booking page in an iframe over the page */
html:has(.booking-dialog[open]) {
  overflow: hidden;
}
.booking-dialog {
  /* The site's reset zeroes every margin, which drops the browser's own
     margin: auto that centres a modal <dialog>; put it back. */
  margin: auto;
  width: min(960px, calc(100vw - 32px));
  height: min(860px, calc(100dvh - 32px));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}
.booking-dialog[open] {
  display: flex;
  flex-direction: column;
}
.booking-dialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
}
.booking-dialog-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 12px 10px 20px;
  border-bottom: 1px solid var(--color-border);
}
.booking-dialog-title {
  flex: 1;
  font-weight: var(--weight-medium);
}
.booking-dialog-newtab {
  font-size: var(--text-sm);
  color: var(--color-text-muted-60);
}
.booking-dialog-close {
  /* "Done": the booking page can't close the modal itself, so make leaving obvious. */
  padding: 8px 18px;
  border: 1px solid var(--color-border-strong);
  border-radius: 999px;
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  cursor: pointer;
}
.booking-dialog-close:hover,
.booking-dialog-close:focus-visible {
  background-color: var(--color-bg-muted);
}
.booking-dialog-frame {
  flex: 1;
  width: 100%;
  border: 0;
}
@media (max-width: 600px) {
  /* Full screen on a phone. */
  .booking-dialog {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
  }
}

/* ── Skip link ── */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: var(--color-base-white);
  padding: 8px 16px;
  z-index: 200;
  border-radius: 0 0 4px 0;
}
.skip-link:focus { top: 0; }

/* ── Progress pills (.pcc-*), driven by js/carousel-pills.js ──
   Inactive: a small dot. Active: expands to a pill whose fill scales
   left→right to show progress toward the next advance (timer or scroll
   position). The redesign below gives it the app's colours. */
.pcc-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.pcc-dot {
  position: relative;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--color-neutral-300);
  overflow: hidden;
  cursor: default;
  -webkit-appearance: none;
  appearance: none;
  transition: width 0.45s var(--ease-spring), background-color 0.3s ease;
}
button.pcc-dot { cursor: pointer; }
.pcc-dot:hover:not(.is-active) { background: var(--color-neutral-400); }
.pcc-dot.is-active {
  width: 34px;
  background: var(--color-neutral-200); /* pale track behind the fill */
  cursor: default;
}
.pcc-dot-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #17e67d; /* Clover brand green (logo gradient start) */
  transform: scaleX(0);
  transform-origin: left center;
  /* transition is set inline by the driver: a timer duration, or 'none' for
     scroll-scrubbed progress. */
}
@media (prefers-reduced-motion: reduce) {
  .pcc-dot,
  .pcc-dot-fill { transition: none !important; }
}


/* ==========================================================================
   Redesign
   ========================================================================== */

/* ── Brand display face ──
   Rebond-Grotesque.otf is the Book weight (usWeightClass 400); the app asks
   it for 700 and gets a synthesized bold. Declare the real weights instead. */
@font-face {
  font-family: 'Rebond Grotesque';
  src: url('/static/clover-ds/fonts/RebondGrotesque-Book.woff2') format('woff2'),
       url('/static/clover-ds/fonts/Rebond-Grotesque.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Rebond Grotesque';
  src: url('/static/clover-ds/fonts/RebondGrotesque-Semibold.woff2') format('woff2'),
       url('/static/clover-ds/fonts/ESRebondGrotesque-Semibold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ── Tokens ── */
body.rd {
  /* Ink (core-color-fg-*) */
  --rd-ink-900: #171e25;        /* display headings (app page-heading) */
  --rd-ink-800: #25292e;        /* fg-strong */
  --rd-ink-600: #4b545d;        /* fg-medium */
  --rd-ink-500: #5f6872;        /* meta text, 5.6:1 on white */
  --rd-ink-400: #9099a3;        /* fg-weak: icons and rules only, never text */

  /* Surfaces (core-color-bg-surface-*) */
  --rd-surface: #ffffff;
  --rd-surface-1: #fafbfc;
  --rd-surface-2: #edf1f5;
  --rd-slate: #28323c;          /* surface-3: the app's nav rail */
  --rd-slate-hover: #37404a;
  --rd-slate-active: #274760;
  --rd-slate-line: #3e4751;

  /* Lines */
  --rd-line: #dde1e4;           /* border-on-surface */
  --rd-line-soft: #e8eaeb;      /* table borders */
  --rd-line-form: #bfc7d0;      /* border-forms, secondary buttons */

  /* Blue: #0088CC is the brand (graphics, icons, focus). Text and filled
     buttons use the app's hover/selected blues so white labels pass AA. */
  --rd-blue: #0088cc;
  --rd-blue-ink: #1377b1;       /* comp-button primary hover, 4.9:1 */
  --rd-blue-press: #04689a;     /* core-color-selected-primary */
  --rd-blue-deep: #035a85;
  --rd-blue-tint: #e7f3fa;
  --rd-focus: rgba(5, 136, 204, 0.32);

  /* Status (core-color-success/danger + app warning) */
  --rd-green: #08a262;
  --rd-green-ink: #06764a;
  --rd-green-tint: #e3f7ee;
  --rd-red: #ab2345;
  --rd-red-tint: #fbe8ec;
  --rd-orange: #f2994a;
  --rd-orange-ink: #9a520f;
  --rd-orange-tint: #fdf1e6;

  /* Type */
  --rd-font-display: 'Rebond Grotesque', 'Inter', system-ui, sans-serif;
  --rd-font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Radii (cds-radius-*) */
  --rd-r-sm: 4px;
  --rd-r: 6px;
  --rd-r-lg: 8px;
  --rd-r-xl: 12px;
  --rd-r-2xl: 16px;

  /* Depth (app button, menu and frame shadows) */
  --rd-shadow-btn: 0 2px 12px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.12), inset 0 0 1px rgba(0, 0, 0, 0.48);
  --rd-shadow-btn-2: 0 2px 12px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.12);
  --rd-shadow-menu: 0 8px 18px rgba(0, 0, 0, 0.04), 0 2px 6px rgba(0, 0, 0, 0.1), 0 8px 24px rgba(0, 0, 0, 0.04);
  --rd-shadow-frame: 0 1px 2px rgba(23, 30, 37, 0.06), 0 18px 44px -14px rgba(23, 30, 37, 0.2);
  --rd-shadow-card: 0 1px 2px rgba(23, 30, 37, 0.05), 0 6px 18px -8px rgba(23, 30, 37, 0.14);

  /* Layout */
  --rd-container: 1200px;
  --rd-gutter: clamp(20px, 4vw, 40px);
  --rd-section: clamp(72px, 8vw, 112px);
  /* Page heroes: the space under the nav, and above what follows */
  --rd-hero-top: clamp(40px, 5vw, 64px);
  --rd-hero-bottom: clamp(40px, 5vw, 56px);
  --nav-height: 68px;

  --rd-ease: cubic-bezier(0.22, 1, 0.36, 1);

  font-family: var(--rd-font);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  color: var(--rd-ink-800);
  background: var(--rd-surface);
  caret-color: var(--rd-blue);
  font-feature-settings: "cv11" 1;
}

/* ── Browser surfaces ── */
html:has(body.rd) {
  scrollbar-color: #c3cad1 var(--rd-surface, #fff);
  scroll-padding-top: 84px;
}
body.rd ::selection { background: rgba(0, 136, 204, 0.18); color: inherit; }
body.rd :focus-visible {
  outline: 2px solid var(--rd-blue);
  outline-offset: 2px;
}
body.rd a { color: inherit; }
body.rd h1, body.rd h2, body.rd h3, body.rd h4 {
  font-family: var(--rd-font);
  color: var(--rd-ink-800);
}
/* H1 and H2 in Rebond on every page, per DESIGN.md's One Display Voice Rule:
   the page heads, a blog post's title and the headings inside an article or
   legal page (the reset above outranks their own rules) */
body.rd .rd-h1, body.rd .rd-h2, body.rd .post-title, body.rd .rd-prose h2 { font-family: var(--rd-font-display); }
body.rd .skip-link {
  top: auto;
  bottom: 100%;
  background: var(--rd-slate);
  font-size: 14px;
  font-weight: 600;
  border-radius: 0 0 var(--rd-r) 0;
}
body.rd .skip-link:focus { top: 0; bottom: auto; z-index: 1000; }

/* ── Layout ── */
.rd-wrap {
  width: 100%;
  max-width: calc(var(--rd-container) + 2 * var(--rd-gutter));
  margin-inline: auto;
  padding-inline: var(--rd-gutter);
}
.rd-section { padding-block: var(--rd-section); }
.rd-band { background: var(--rd-surface-1); border-block: 1px solid var(--rd-line-soft); }
.rd-clip { overflow-x: clip; }

/* Section heading block: heading, then a lead. No kicker labels. */
.rd-head { display: flex; flex-direction: column; gap: 16px; max-width: 720px; margin-bottom: clamp(36px, 4.5vw, 56px); }
.rd-head--center { margin-inline: auto; text-align: center; align-items: center; }
.rd-head--row {
  max-width: none;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
.rd-head--row > div { display: flex; flex-direction: column; gap: 16px; max-width: 680px; }
/* Split head: tag and H2 on the left, the lead beside them, bottoms aligned;
   one column under 1100px */
.rd-head--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: end; gap: 12px clamp(32px, 4vw, 56px); max-width: none; }
.rd-head--split > div { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
@media (max-width: 1099px) { .rd-head--split { grid-template-columns: minmax(0, 1fr); max-width: 760px; } }

/* ── Type ── */
.rd-h1 {
  font-family: var(--rd-font-display);
  font-weight: 600;
  font-size: clamp(2.25rem, 1.2rem + 2.5vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--rd-ink-900);
}
.rd-h1 .rd-l { display: block; }
.rd-h2 {
  font-family: var(--rd-font-display);
  font-weight: 600;
  font-size: clamp(1.875rem, 1.25rem + 2vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.028em;
  color: var(--rd-ink-900);
  text-wrap: balance;
}
.rd-h3 {
  font-family: var(--rd-font);
  font-weight: 600;
  font-size: clamp(1.1875rem, 1.1rem + 0.35vw, 1.375rem);
  line-height: 1.3;
  letter-spacing: -0.022em;
  color: var(--rd-ink-800);
  text-wrap: balance;
}
.rd-lead {
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  line-height: 1.55;
  color: var(--rd-ink-600);
  max-width: 62ch;
  text-wrap: pretty;
}
.rd-text { font-size: 16px; line-height: 1.6; color: var(--rd-ink-600); text-wrap: pretty; }

/* Kinetic headline word: a fixed slot sized by its longest word (data-sizer),
   so nothing reflows while the words cycle. Each word is drawn from its
   data-word, so none of them is in the heading's text; a visually hidden
   word gives the h1 one plain sentence. */
.rd-kinetic {
  display: inline-grid;
  vertical-align: bottom;
  color: var(--rd-blue-ink);
  text-align: left;
}
.rd-kinetic::before { content: attr(data-sizer); grid-area: 1 / 1; visibility: hidden; }
.rd-kinetic > span { grid-area: 1 / 1; }
.rd-kinetic-word::before { content: attr(data-word); }
.rd-kinetic-word {
  opacity: 0;
  transform: translateY(0.18em);
  transition: opacity 0.38s var(--rd-ease), transform 0.5s var(--rd-ease);
}
.rd-kinetic-word.is-active { opacity: 1; transform: none; }
.rd-kinetic-word.is-leaving { opacity: 0; transform: translateY(-0.18em); }

/* ── Buttons (app Button: 6px radius, Inter 600, layered shadow) ── */
.rd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--rd-r);
  font-family: var(--rd-font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.rd-btn svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform 0.2s var(--rd-ease); }
.rd-btn:hover svg { transform: translateX(2px); }
.rd-btn--primary { background: var(--rd-blue-ink); color: #fff !important; box-shadow: var(--rd-shadow-btn); }
.rd-btn--primary:hover { background: var(--rd-blue-press); }
.rd-btn--primary:active { background: var(--rd-blue-deep); }
.rd-btn--secondary {
  background: #fff;
  color: var(--rd-ink-800) !important;
  border: 1px solid var(--rd-line-form);
  box-shadow: var(--rd-shadow-btn-2);
}
.rd-btn--secondary:hover { background: #f3f4f5; }
.rd-btn--secondary:active { background: #eceef0; }
.rd-btn--invert {
  background: transparent;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.42);
}
.rd-btn--invert:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.6); }
.rd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ── Chips (app Chip: 6px, 1px hairline, 500 weight) ── */
.rd-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: var(--rd-r);
  border: 1px solid rgba(37, 41, 46, 0.08);
  background: var(--rd-surface-2);
  color: var(--rd-ink-600);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
/* A status chip in a product picture, after the UI kit's small Chip: chip()
   in _ui.html.j2 picks the tone (info, success, warning, error, muted). */
.rd-chip--up { padding: 1px 6px; text-transform: uppercase; font-size: 11px; letter-spacing: 0.03em; font-weight: 600; }
.rd-chip--info { background: #e3f4fc; color: var(--rd-blue-press); }
.rd-chip--success { background: var(--rd-green-tint); color: var(--rd-green-ink); }
.rd-chip--warning { background: var(--rd-orange-tint); color: #8a4b0f; }
.rd-chip--error { background: var(--rd-red-tint); color: var(--rd-red); }
.rd-chip--muted { background: var(--rd-surface-2); color: var(--rd-ink-600); }

/* A toast over a product picture (toast() in _ui.html.j2): a face or a
   document with a status mark, a line and a note. It floats at the corner the
   page sets (--toast-at: right/left and bottom offsets via inline style or
   the page's own rule); .rd-toast--inline sits in the flow instead. */
.rd-toast { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; width: min(78%, 360px); padding: 12px 16px 12px 12px; border: 1px solid #b9e5cf; border-left: 4px solid #27ae60; border-radius: var(--rd-r-xl); background: #fff; box-shadow: 0 1px 2px rgba(23, 30, 37, 0.08), 0 18px 40px -12px rgba(23, 30, 37, 0.35); font-size: 13px; line-height: 1.4; letter-spacing: -0.01em; color: var(--rd-ink-800); box-sizing: border-box; }
.rd-toast--inline { position: static; width: auto; box-shadow: none; }
.rd-toast > span:first-child { position: relative; width: 36px; height: 36px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.rd-toast > span:first-child img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.rd-toast > span:first-child.is-doc img { width: 40px; height: 40px; border-radius: 0; object-fit: contain; transform: scale(1.25); }
.rd-toast > span:first-child i { position: absolute; right: -5px; bottom: -4px; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; border-radius: 50%; background: #27ae60; color: #fff; font-size: 9px; box-sizing: border-box; }
.rd-toast > span:first-child i.is-blue { background: var(--rd-blue); }
.rd-toast > div { min-width: 0; }
.rd-toast b { display: block; font-weight: 600; }
.rd-toast small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--rd-ink-600); }

/* Counters in a product picture (stats() in _ui.html.j2): label over value */
.rd-stats { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 8px; }
.rd-stats > div { min-width: 0; padding: 8px 10px; border: 1px solid var(--rd-line-soft); border-radius: var(--rd-r-lg); background: #fff; }
.rd-stats small { display: block; font-size: 11px; color: var(--rd-ink-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-stats b { display: block; margin-top: 1px; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--rd-ink-800); }
.rd-stats .is-info { color: var(--rd-blue-press); }
.rd-stats .is-success { color: var(--rd-green-ink); }
.rd-stats .is-warning { color: #b4600e; }
.rd-stats .is-error { color: var(--rd-red); }

/* ── Tabs (app Tabs: underline, selected = strong ink + blue bar) ── */
.rd-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--rd-line);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.rd-tabs::-webkit-scrollbar { display: none; }
.rd-tab {
  position: relative;
  flex-shrink: 0;
  padding: 10px 12px 12px;
  background: none;
  border: 0;
  font-family: var(--rd-font);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--rd-ink-600);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.rd-tab:hover { color: var(--rd-ink-800); }
.rd-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--rd-blue-press);
  transform: scaleX(0);
  transition: transform 0.3s var(--rd-ease);
}
.rd-tab[aria-selected="true"] { color: var(--rd-ink-800); font-weight: 600; }
.rd-tab[aria-selected="true"]::after { transform: scaleX(1); }
.rd-tab:focus-visible { outline-offset: -2px; border-radius: 4px; }

/* ── Accordion (FAQ list; markup from partials/rd/faq.html.j2, toggled by
   the shared script in base.html.j2) ── */
body.rd .faq-list { max-width: none; margin: 0; color: inherit; border-top: 1px solid var(--rd-line); }
body.rd .faq-item { border-bottom: 1px solid var(--rd-line); }
body.rd .faq-question {
  gap: 24px;
  padding: 20px 2px;
  font-family: var(--rd-font);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--rd-ink-800);
}
body.rd .faq-question:hover { color: var(--rd-blue-ink); }
/* App Accordion toggle icon */
.rd-acc-icon { display: inline-flex; flex-shrink: 0; width: 20px; height: 20px; color: var(--rd-ink-600); }
.rd-acc-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transform: none !important; }
.rd-acc-icon .rd-acc-open,
.faq-item.is-open .rd-acc-icon .rd-acc-closed,
details[open] > summary .rd-acc-icon .rd-acc-closed { display: none; }
.faq-item.is-open .rd-acc-icon .rd-acc-open,
details[open] > summary .rd-acc-icon .rd-acc-open { display: block; }
body.rd .faq-answer { font-size: 16px; color: var(--rd-ink-600); line-height: 1.65; transition: grid-template-rows 0.32s var(--rd-ease), opacity 0.25s ease; }
body.rd .faq-answer-inner > p { max-width: 68ch; padding: 0 2px 22px; text-wrap: pretty; }

/* Restyle the existing mockup partials' window chrome: no fake macOS dots,
   app top-bar treatment, frame depth. */
body.rd .cm-window {
  border: 1px solid var(--rd-line);
  border-radius: var(--rd-r-xl);
  box-shadow: var(--rd-shadow-frame);
}
body.rd .cm-window-dots { display: none; }
body.rd .cm-window-bar { padding: 11px 16px; border-bottom: 1px solid var(--rd-line); background: var(--rd-surface-1); }
body.rd .cm-window-caption { margin-left: 0; font-size: 12.5px; color: var(--rd-ink-600); }

/* ── Supplier logo strip (calm, no dock magnification) ── */
.rd-logos { padding-block: clamp(36px, 5vw, 56px); }
.rd-logos-label { text-align: center; font-size: 14px; color: var(--rd-ink-500); margin-bottom: 22px; }
.rd-logos-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.rd-logos-track { display: flex; width: max-content; animation: rd-marquee 60s linear infinite; }
.rd-logos-viewport:hover .rd-logos-track { animation-play-state: paused; }
.rd-logo { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; height: 52px; }
.rd-logo img { display: block; max-width: none; filter: grayscale(1); }
.rd-logos-track { align-items: center; }
.rd-logos-track .rd-logo { margin-inline: 26px; }
@keyframes rd-marquee { to { transform: translateX(-50%); } }

/* ── Security facts (restyle of partials/cta-security-badges.html.j2) ── */
body.rd .cta-security,
body.rd .cta-security--light,
body.rd .cta-security--dark { margin: 0; padding: 0; border: 0; }
body.rd .cta-security-list { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; list-style: none; justify-content: flex-start; }
body.rd .cta-security-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--rd-font);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
}
body.rd .cta-security-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rd-green); }
body.rd .cta-security-badge.is-progress .cta-security-dot { background: var(--rd-orange); }
body.rd .cta-security--dark .cta-security-badge { color: rgba(255, 255, 255, 0.86); }
body.rd .cta-security--dark .cta-security-badge.is-muted { color: rgba(255, 255, 255, 0.66); }
body.rd .cta-security--dark .cta-security-badge.is-muted a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.35); }
body.rd .cta-security--light .cta-security-badge { color: var(--rd-ink-800); }
body.rd .cta-security--light .cta-security-badge.is-muted { color: var(--rd-ink-500); }
body.rd .cta-security--light .cta-security-badge.is-muted a { color: var(--rd-blue-ink); }

/* ── Nav (restyled: app top bar, solid white, hairline) ── */
body.rd .nav-wrapper {
  height: var(--nav-height);
  background: #fff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom: 1px solid var(--rd-line-soft);
}
body.rd .nav-inner {
  max-width: calc(var(--rd-container) + 2 * var(--rd-gutter));
  padding-inline: var(--rd-gutter);
}
body.rd .nav-logo { color: var(--rd-ink-900); }
body.rd .nav-links > li > a {
  display: flex;
  align-items: center;
  height: var(--nav-height);
  padding: 0 14px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--rd-ink-800);
}
body.rd .nav-links > li > a:hover,
body.rd .nav-dropdown:hover > a { opacity: 1; color: var(--rd-blue-ink); }
body.rd .nav-links > li > a.is-active { color: var(--rd-blue-ink); }
body.rd .nav-cta .button,
body.rd .nav-mobile .button {
  height: 38px;
  padding: 0 14px;
  gap: 8px;
  border-radius: var(--rd-r);
  background: var(--rd-blue-ink);
  background-image: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: var(--rd-shadow-btn);
  filter: none;
}
body.rd .nav-cta .button:hover,
body.rd .nav-mobile .button:hover { background: var(--rd-blue-press); filter: none; box-shadow: var(--rd-shadow-btn); }
body.rd .nav-cta .button svg { transition: transform 0.2s var(--rd-ease); }
body.rd .nav-cta .button:hover svg { transform: translateX(2px); }

/* Solutions mega menu */
body.rd .nav-dropdown-menu {
  top: calc(100% + 6px);
  border: 1px solid var(--rd-line);
  border-radius: var(--rd-r-xl);
  box-shadow: var(--rd-shadow-menu);
}
body.rd .nav-dropdown-menu::before { top: -8px; height: 8px; }
body.rd .nav-dropdown-major-title {
  font-family: var(--rd-font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.025em;
  color: var(--rd-ink-900);
  font-variation-settings: normal;
}
body.rd .nav-dropdown-brand { font-family: inherit; letter-spacing: inherit; }
body.rd .nav-dropdown-major-sub { font-size: 13px; color: var(--rd-ink-600); }
body.rd .nav-dropdown-menu .nav-dropdown-cat { color: var(--rd-ink-800); }
body.rd .nav-dropdown-cat:hover,
body.rd .nav-dropdown-cat:hover .nav-dropdown-cat-arr,
body.rd .nav-dropdown-menu .nav-dropdown-cat-proc:hover,
body.rd .nav-dropdown-ind:hover { color: var(--rd-blue-ink); }
body.rd .nav-dropdown-menu .nav-dropdown-cat-proc { font-size: 13px; color: var(--rd-ink-600); }
body.rd .nav-dropdown-minor { background: var(--rd-surface-1); border-left-color: var(--rd-line-soft); border-top-right-radius: var(--rd-r-xl); }
body.rd .nav-dropdown-menu:not(:has(.nav-dropdown-foot)) .nav-dropdown-minor { border-bottom-right-radius: var(--rd-r-xl); }
body.rd .nav-dropdown-minor-title {
  font-family: var(--rd-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--rd-ink-600);
}
body.rd .nav-dropdown-menu .nav-dropdown-ind { font-size: 14px; color: var(--rd-ink-800); border-bottom-color: var(--rd-line-soft); }
body.rd .nav-dropdown-ind-foot {
  font-family: var(--rd-font);
  font-style: normal;
  font-size: 13px;
  color: var(--rd-ink-500);
  border-top-color: var(--rd-line-soft);
}
body.rd .nav-dropdown-foot {
  background: var(--rd-surface-1);
  border-top-color: var(--rd-line-soft);
  border-bottom-left-radius: var(--rd-r-xl);
  border-bottom-right-radius: var(--rd-r-xl);
}
body.rd .nav-dropdown-foot-text { font-size: 13px; color: var(--rd-ink-600); }
body.rd .nav-dropdown-foot-text strong { color: var(--rd-ink-800); }
body.rd .nav-dropdown-menu .nav-dropdown-foot-cta {
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--rd-line-form);
  border-radius: var(--rd-r);
  background: #fff;
  background-image: none;
  color: var(--rd-ink-800);
  box-shadow: var(--rd-shadow-btn-2);
  font-size: 13px;
}
body.rd .nav-dropdown-menu .nav-dropdown-foot-cta:hover { background: #f3f4f5; }

/* Mobile menu */
body.rd .nav-hamburger svg { stroke: var(--rd-ink-800); }
/* Log in to the app (clovercollab.io): a quiet link before Book a demo; on
   phones the bar keeps only Book a demo and Log in moves into the menu */
body.rd .nav-login { padding: 0 6px; font-size: 15px; font-weight: 500; letter-spacing: -0.012em; color: var(--rd-ink-800); white-space: nowrap; text-decoration: none; }
body.rd .nav-login:hover { color: var(--rd-blue-ink); }
@media (max-width: 991px) { body.rd .nav-login { display: none; } }
body.rd .nav-mobile { padding: 8px var(--rd-gutter) 24px; border-bottom-color: var(--rd-line-soft); }
body.rd .nav-mobile a,
body.rd .nav-mobile-toggle { font-size: 16px; color: var(--rd-ink-800); border-bottom-color: var(--rd-line-soft); }
body.rd .nav-mobile-group { border-bottom-color: var(--rd-line-soft); }
body.rd .nav-mobile-submenu a { padding: 9px 0 9px 16px; border-bottom: 0; font-size: 15px; color: var(--rd-ink-600); }
/* Each category after By Industry opens with a hairline and its own space,
   so the groups don't run together */
body.rd .nav-mobile-submenu a.nav-mobile-cat { margin: 10px 0 0 16px; padding: 18px 0 9px; border-top: 1px solid var(--rd-line-soft); color: var(--rd-ink-800); }
/* The page you're on, in the dropdown and the mobile menu */
body.rd .nav-dropdown-menu a[aria-current="page"],
body.rd .nav-mobile a[aria-current="page"] { color: var(--rd-blue-ink); font-weight: 600; }
body.rd .nav-mobile-label {
  font-family: var(--rd-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--rd-ink-500);
}
/* By Industry reads as a heading like the categories under it */
body.rd .nav-mobile-submenu span.nav-mobile-label { padding: 9px 0 9px 16px; font-size: 15px; color: var(--rd-ink-800); }
body.rd .nav-mobile .button { height: 44px; margin-top: 16px !important; }
@media (max-width: 991px) { body.rd .nav-cta .button { height: 36px; padding: 0 12px; } }
@media (max-width: 359px) { body.rd .nav-cta .button svg { display: none; } }

/* ── Footer (app surface-1) ── */
body.rd .footer {
  background: var(--rd-surface-1);
  border-top: 1px solid var(--rd-line-soft);
  padding-top: clamp(48px, 6vw, 72px);
  padding-bottom: 32px;
}
body.rd .footer .padding-global { padding-inline: var(--rd-gutter); }
body.rd .footer .container-large { max-width: var(--rd-container); }
body.rd .footer-brand .nav-logo { color: var(--rd-ink-900); }
body.rd .footer-brand p { font-size: 14px; color: var(--rd-ink-600); }
body.rd .footer-social { border-color: var(--rd-line); background: #fff; color: var(--rd-ink-600); }
body.rd .footer-social:hover { border-color: var(--rd-blue); color: var(--rd-blue-ink); }
body.rd .footer-col-title { font-size: 14px; font-weight: 600; color: var(--rd-ink-800); letter-spacing: -0.01em; }
body.rd .footer-col a { font-size: 14px; color: var(--rd-ink-600); }
body.rd .footer-col a:hover { color: var(--rd-blue-ink); }
body.rd .footer-bottom { font-size: 13px; color: var(--rd-ink-500); border-top-color: var(--rd-line); }
body.rd .footer-legal a:hover { color: var(--rd-blue-ink); }

/* ── Motion: one entrance for every picture's rows ──
   Rows carry data-beat; rd.js times them (start, step, the pause before a
   change of state; docs/design-decisions/motion.md) and adds .is-in. A hero
   ([data-beats]) plays once under html.rd-motion; a use-case tour
   (.so-tour.is-anim) replays each stage. Scenes with their own scripts use
   the same entrance: --rd-in-fade, --rd-in-move and --rd-in-rise. */
:root { --rd-in-fade: 0.4s; --rd-in-move: 0.5s; --rd-in-rise: 8px; --rd-in-step: 300ms; }
.rd-motion [data-beats] [data-beat], .so-tour.is-anim [data-beat] { transition: opacity var(--rd-in-fade) ease, transform var(--rd-in-move) var(--rd-ease); }
.rd-motion [data-beats] [data-beat]:not(.is-in), .so-tour.is-anim [data-beat]:not(.is-in) { opacity: 0; transform: translateY(var(--rd-in-rise)); }

/* ── Motion preferences ── */
@media (prefers-reduced-motion: reduce) {
  body.rd *, body.rd *::before, body.rd *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .rd-logos-track { animation: none !important; flex-wrap: wrap; justify-content: center; width: auto; }
  .rd-logos-track [data-dupe] { display: none; }
  .rd-logos-viewport { -webkit-mask-image: none; mask-image: none; }
}

/* ── Mockup atoms: initials avatar + company square (app UserAvatar / CompanyLogo) ── */
.rd-av,
.rd-co {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: var(--s, 24px);
  height: var(--s, 24px);
  color: #fff;
  font-family: var(--rd-font);
  font-size: calc(var(--s, 24px) * 0.4);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
}
.rd-av { border-radius: 50%; background: var(--av, #3971fb); }
.rd-co { border-radius: calc(var(--s, 22px) * 0.27); background: var(--co, #1ea2e2); }
/* Every face and company mark in the pictures, whatever the page's own class
   for it: people are circles and companies the app's rounded square (27%, as
   .rd-co), both with the app's hairline. The top bar's profile keeps its pair
   of circles, as in the app. */
.rd img[src*="/people/"] { border-radius: 50%; object-fit: cover; outline: 1px solid rgba(23, 30, 37, 0.12); outline-offset: -1px; }
.rd img[src*="/companies/"]:not(.rd-app-me img, .pp-profile img) { border-radius: 27%; object-fit: cover; background: #fff; outline: 1px solid rgba(23, 30, 37, 0.12); outline-offset: -1px; }

.rd-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Check list (building-block bullets) */
.rd-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rd-checks li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; font-size: 15px; line-height: 1.5; color: var(--rd-ink-800); }
.rd-checks svg { width: 18px; height: 18px; margin-top: 2px; color: var(--rd-blue); }

/* ── Phones: shorter footer (brand on top, link groups 2 × 2) and a fade
   hint on tab rows that scroll sideways ── */
@media (max-width: 767px) {
  body.rd .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  body.rd .footer-brand { grid-column: 1 / -1; }
  body.rd .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
  /* Small standalone links get a 44px touch target (an invisible box, so
     nothing moves): the legal links, Security details, a breadcrumb step,
     the article's All articles */
  body.rd .footer-legal a,
  body.rd .cta-security-badge a,
  body.rd .rd-crumb a,
  body.rd .post-more-all { position: relative; }
  body.rd .footer-legal a::after,
  body.rd .cta-security-badge a::after,
  body.rd .rd-crumb a::after,
  body.rd .post-more-all::after { content: ""; position: absolute; left: -6px; right: -6px; top: 50%; height: 44px; transform: translateY(-50%); }
  .rd-tabs {
    padding-right: 28px;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
  }
}

/* Labels on filled controls: `body.rd a { color: inherit }` would otherwise
   win over the global white .button / .skip-link colours. */
body.rd .nav-cta .button,
body.rd .nav-mobile .button,
body.rd .skip-link { color: #fff; }

/* Existing mockup partials inside the redesign: settle with an ease-out
   instead of an overshoot, and drop the pulsing status dot. */
body.rd .ac-banner,
body.rd .om-d-check,
body.rd .om-a-event { transition-timing-function: ease, var(--rd-ease); }
body.rd .om-d-badge--prog::before { animation: none; }

body.rd .cta-security-badge.is-muted a { display: inline-flex; align-items: center; gap: 5px; }
body.rd .cta-security-arrow { transition: transform 0.2s var(--rd-ease); }
body.rd .cta-security-badge.is-muted a:hover .cta-security-arrow { transform: translateX(2px); }

/* ── Shared page blocks (macros in partials/rd/_ui.html.j2) ── */

/* Breadcrumb above an interior page's H1: navigation, not a kicker. */
.rd-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--rd-ink-500); }
body.rd .rd-crumb a { text-decoration: none; color: var(--rd-ink-600); }
body.rd .rd-crumb a:hover { color: var(--rd-blue-ink); text-decoration: underline; text-underline-offset: 4px; }
.rd-crumb li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--rd-line-form); } /* after the step, so a wrapped line never opens with one */

/* App table of links: one row per destination (industries, processes). */
.rd-table {
  border: 1px solid var(--rd-line-soft);
  border-radius: var(--rd-r-lg);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(23, 30, 37, 0.04);
}
.rd-tr {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 5fr) minmax(0, 2.2fr);
  gap: 24px;
  align-items: center;
  padding: 18px 24px;
  border-top: 1px solid var(--rd-line-soft);
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.rd-tr:first-child { border-top: 0; }
.rd-th { padding-block: 11px; background: var(--rd-surface-1); font-size: 13px; font-weight: 500; color: var(--rd-ink-600); }
a.rd-tr:hover { background: #f4f9fc; }
.rd-tr-name { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 600; letter-spacing: -0.018em; color: var(--rd-ink-800); }
.rd-tr-name > i, .rd-tr-name > svg { width: 32px; height: 32px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--rd-surface-2); color: var(--rd-ink-600); font-size: 17px; }
/* The icon font's glyph box sits on the text baseline; as a block it centres in the tile. */
.rd-tr-name > i::before { display: block; }
.rd-tr-name > svg { padding: 7px; fill: none; stroke: var(--rd-ink-600); stroke-width: 1.6; }
.rd-tr-desc { font-size: 15px; line-height: 1.5; color: var(--rd-ink-600); text-wrap: pretty; }
.rd-tr-link { justify-self: end; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--rd-blue-ink); white-space: nowrap; }
.rd-tr-link svg { width: 15px; height: 15px; transition: transform 0.2s var(--rd-ease); }
a.rd-tr:hover .rd-tr-link svg { transform: translateX(3px); }
.rd-tr--more { background: var(--rd-surface-1); }
.rd-tr--more .rd-tr-name > i { background: #fff; border: 1px dashed var(--rd-line-form); }

/* Link grid: destinations three across in hairline cells (industries). */
.rd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rd-line); }
.rd-grid-item { display: flex; flex-direction: column; gap: 6px; padding: 24px 24px 24px 0; border-bottom: 1px solid var(--rd-line-soft); text-decoration: none; }
.rd-grid-item:not(:nth-child(3n+1)) { padding-left: 24px; border-left: 1px solid var(--rd-line-soft); }
.rd-grid-name { display: flex; align-items: center; gap: 12px; margin-bottom: 2px; font-size: 16px; font-weight: 600; letter-spacing: -0.018em; color: var(--rd-ink-800); }
.rd-grid-name i { width: 32px; height: 32px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--rd-surface-2); color: var(--rd-ink-600); font-size: 17px; }
.rd-grid-name i::before { display: block; }
.rd-grid-item--more .rd-grid-name i { background: #fff; border: 1px dashed var(--rd-line-form); }
.rd-grid-desc { font-size: 14px; line-height: 1.5; color: var(--rd-ink-600); text-wrap: pretty; }
.rd-grid-go { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 4px; font-size: 14px; font-weight: 600; color: var(--rd-blue-ink); }
.rd-grid-go svg { width: 14px; height: 14px; transition: transform 0.2s var(--rd-ease); }
.rd-grid-item:hover .rd-grid-name { color: var(--rd-blue-ink); }
.rd-grid-item:hover .rd-grid-go svg { transform: translateX(3px); }

/* Split: a sticky heading column beside long content (FAQ, stories). */
.rd-split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.rd-split-head { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--nav-height) + 40px); }

/* Closing demo band (slate, the app's rail colour). */
.rd-cta { background: var(--rd-slate); color: #fff; padding-block: clamp(64px, 8vw, 104px) clamp(40px, 5vw, 56px); }
.rd-cta-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
.rd-cta .rd-h2 { color: #fff; }
.rd-cta-body { margin-top: 18px; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, 0.78); max-width: 56ch; }
.rd-cta-foot { margin-top: clamp(40px, 5vw, 56px); padding-top: 24px; border-top: 1px solid var(--rd-slate-line); }

/* Status tags over a section or a panel: "Today" (how it breaks now) in red,
   "In Clover" (how it runs) in green, each a tinted pill with a hairline ring. */
.rd-tag { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.4; }
.rd-tag i { width: 20px; height: 20px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; font-size: 9px; }
.rd-tag--bad { background: #fbe3e9; color: #96193a; box-shadow: inset 0 0 0 1px #f1c6d0; }
.rd-tag--bad i { background: var(--rd-red); }
.rd-tag--good { background: #d6f3e5; color: #05603c; box-shadow: inset 0 0 0 1px #b9e5cf; }
.rd-tag--good i { background: #27ae60; }
.rd-tag--info { background: var(--rd-blue-tint); color: var(--rd-blue-deep); box-shadow: inset 0 0 0 1px #cfe6f3; }
.rd-tag--info i { background: var(--rd-blue); }
.rd-head--center .rd-tag { align-self: center; }

/* App shell (macro app_shell): the product's own window after the UI kit's
   SideNav and TopBar, 56px slate rail and 56px top bar, around a page's
   mockup. The page sets the frame's width and shadow. */
.rd-app { display: grid; grid-template-columns: 56px minmax(0, 1fr); border: 1px solid var(--rd-line); border-radius: var(--rd-r-xl); background: #fff; box-shadow: var(--rd-shadow-frame); overflow: hidden; font-family: var(--rd-font); font-size: 13px; letter-spacing: -0.01em; color: var(--rd-ink-800); user-select: none; }
.rd-app-rail { display: flex; flex-direction: column; background: var(--rd-slate); }
.rd-app-rail > span { position: relative; height: 56px; display: flex; align-items: center; justify-content: center; color: #a9adb1; }
.rd-app-rail > .rd-app-logo { border-bottom: 1px solid var(--rd-slate-line); }
.rd-app-rail img { display: block; width: 28px; height: 22px; }
.rd-app-rail i { font-size: 24px; }
.rd-app-rail > .is-active { background: var(--rd-slate-active); color: #fff; }
.rd-app-rail b { position: absolute; top: 5px; right: 5px; min-width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; padding: 0 4px; border: 3px solid var(--rd-slate); border-radius: 9px; background: var(--rd-blue); color: #fff; font-size: 12px; font-weight: 500; line-height: 16px; box-sizing: border-box; }
.rd-app-main { min-width: 0; }
.rd-app-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 56px; padding: 0 12px; border-bottom: 1px solid var(--rd-line); background: var(--rd-surface-1); }
.rd-app-left { flex: 1 1 0; display: flex; align-items: center; }
.rd-app-create { display: inline-flex; align-items: center; height: 32px; padding: 0 10px; border-radius: var(--rd-r); background: var(--rd-blue); color: #fff; font-size: 14px; font-weight: 600; line-height: 18px; letter-spacing: -0.01em; white-space: nowrap; box-shadow: var(--rd-shadow-btn); }
.rd-app-search { flex: 0 1 552px; min-width: 0; height: 32px; display: flex; align-items: center; gap: 6px; padding: 0 10px 0 9px; border: 1px solid var(--rd-line-form); border-radius: var(--rd-r-lg); background: #fff; font-size: 14px; color: var(--rd-ink-400); white-space: nowrap; overflow: hidden; }
.rd-app-search i { flex-shrink: 0; font-size: 18px; }
.rd-app-search span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.rd-app-right { flex: 1 1 0; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.rd-app-tools { display: flex; align-items: center; gap: 4px; }
.rd-app-tools > span { flex-shrink: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: var(--rd-r); color: var(--rd-ink-600); }
.rd-app-tools i { position: relative; font-size: 24px; }
/* The bell's unread dot */
.rd-app-tools .is-unread i::after { content: ""; position: absolute; top: 4px; right: 3px; width: 7px; height: 7px; border: 1px solid #fff; border-radius: 50%; background: #f75734; } /* on the bell's shoulder, not above it */
/* Profile: the company's mark with the person's face over it, in a grey pill */
.rd-app-me { flex-shrink: 0; display: flex; align-items: center; gap: 1px; height: 32px; padding: 1px; border-radius: 18px; background: #e9eaeb; }
.rd-app-me > span { width: 30px; height: 30px; flex-shrink: 0; border: 1px solid #e9eaeb; border-radius: 50%; background: #fff; overflow: hidden; box-sizing: border-box; }
.rd-app-me > span + span { margin-left: -8px; }
.rd-app-me img { display: block; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.rd-app-me i { margin: -1px 6px 0 0; font-size: 18px; color: var(--rd-ink-600); }
.rd-app-me .rd-app-init { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: var(--rd-surface-2); font-size: 10.5px; font-weight: 600; color: var(--rd-ink-600); }
.rd-app-me .rd-app-init { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: var(--rd-surface-2); font-size: 10.5px; font-weight: 600; color: var(--rd-ink-600); }
.rd-app-me .rd-app-init { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: var(--rd-surface-2); font-size: 10.5px; font-weight: 600; color: var(--rd-ink-600); }
/* A tab's count, after the UI kit's small Chip (macro tab_count) */
.rd-count { display: inline-flex; align-items: center; justify-content: center; padding: 2px 6px; border: 1px solid rgba(37, 41, 46, 0.08); border-radius: var(--rd-r); background: #eff0f1; font-size: 12px; font-weight: 500; line-height: 16px; letter-spacing: 0.2px; color: var(--rd-ink-800); }
/* A record's tabs (macro app_tabs): Overview, Contacts 4, Documents 12,
   Certificates 3, one lit */
.rd-app-tabs { display: flex; gap: 18px; height: 38px; padding: 0 18px; border-bottom: 1px solid var(--rd-line-soft); font-size: 12.5px; font-weight: 500; color: var(--rd-ink-600); white-space: nowrap; overflow: hidden; box-sizing: border-box; }
.rd-app-tabs > span { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; border-bottom: 2px solid transparent; box-sizing: border-box; }
.rd-app-tabs > .is-active { border-bottom-color: var(--rd-blue-press); font-weight: 600; color: var(--rd-ink-800); }

/* ── Record screens: a guided task, a company profile or a product, one
   look on every page (macros rec_crumb, rec_head, task_head, task_foot,
   rec_foot, prod_bar, prod_card, prod_sec in partials/rd/_ui.html.j2) ── */
.rd-rec-crumb { display: flex; align-items: center; gap: 8px; padding: 10px 18px 0; font-size: 12px; color: var(--rd-ink-500); }
.rd-rec-crumb i { font-size: 11px; }
.rd-rec-crumb b { min-width: 0; font-weight: 600; color: var(--rd-ink-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-rec-head { display: flex; align-items: center; gap: 12px; padding: 10px 18px 12px; container-type: inline-size; }
.rd-rec-head--task { border-bottom: 1px solid var(--rd-line-soft); }
.rd-rec-mark { width: 40px; height: 40px; flex-shrink: 0; border-radius: 9px; object-fit: cover; }
.rd-rec-head > div { flex: 1; min-width: 0; }
.rd-rec-head b { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 15px; font-weight: 600; letter-spacing: -0.016em; white-space: nowrap; }
.rd-rec-head b > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.rd-rec-head small { display: block; margin-top: 3px; font-size: 12px; color: var(--rd-ink-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-rec-btn { flex-shrink: 0; height: 30px; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; border: 1px solid var(--rd-line-form); border-radius: var(--rd-r); background: #fff; color: var(--rd-ink-800); font-size: 13.5px; font-weight: 600; white-space: nowrap; box-shadow: var(--rd-shadow-btn-2); }
.rd-rec-btn i { font-size: 18px; color: inherit; }
/* In a narrow window (a laptop's two-column hero, a phone) the button keeps
   only its icon, so the record's name stays whole */
@container (max-width: 460px) {
  .rd-rec-btn { width: 32px; padding: 0; justify-content: center; }
  .rd-rec-btn > span { display: none; }
}
/* ── Task list (macro task_list): Tasks, tabs, Received/Sent, the table ── */
/* (task list styles) */
.rd-tl { flex: 1; min-height: 0; min-width: 0; display: flex; flex-direction: column; container-type: inline-size; }
.rd-tl-title { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 52px; padding: 0 16px; border-bottom: 1px solid var(--rd-line-soft); }
.rd-tl-title b { font-size: 16px; font-weight: 600; letter-spacing: -0.018em; }
.rd-tl-title span { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: var(--rd-r); background: var(--rd-blue); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; box-shadow: var(--rd-shadow-btn); }
.rd-tl-tabs { flex-shrink: 0; display: flex; gap: 18px; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--rd-line-soft); font-size: 13px; font-weight: 500; color: var(--rd-ink-600); white-space: nowrap; overflow: hidden; }
.rd-tl-tabs > span { display: inline-flex; align-items: center; gap: 6px; border-bottom: 2px solid transparent; }
.rd-tl-tabs > .is-on { border-bottom-color: var(--rd-blue-press); font-weight: 600; color: var(--rd-ink-800); }
.rd-tl-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 12px 16px 16px; }
.rd-tl-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rd-tl-head > span:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; }
.rd-tl-head b { font-size: 14px; font-weight: 600; }
.rd-tl-head small { flex-basis: 100%; font-size: 12px; color: var(--rd-ink-500); }
.rd-tl-seg { flex-shrink: 0; display: inline-flex; border: 1px solid var(--rd-line); border-radius: var(--rd-r); overflow: hidden; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.rd-tl-seg span { padding: 4px 10px; color: var(--rd-ink-800); }
.rd-tl-seg span + span { border-left: 1px solid var(--rd-line); }
.rd-tl-seg em { font-style: normal; color: var(--rd-ink-500); }
.rd-tl-seg .is-on { background: #eff0f1; }
.rd-tl-table { border: 1px solid var(--rd-line-soft); border-radius: var(--rd-r-lg); overflow: hidden; }
.rd-tl-tr { display: grid; grid-template-columns: minmax(0, 1.1fr) 112px minmax(0, 1fr) 44px; gap: 12px; align-items: center; min-height: 52px; padding: 4px 12px; border-top: 1px solid var(--rd-line-soft); }
/* Without the person column: task, status, date */
.rd-tl--np .rd-tl-tr { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 44px; }
.rd-tl-th { min-height: 34px; border-top: 0; background: var(--rd-surface-1); font-size: 12px; font-weight: 500; color: var(--rd-ink-600); }
.rd-tl-th > span:last-child, .rd-tl-due { text-align: right; }
.rd-tl-tr.is-new { background: #f4f9fc; box-shadow: inset 3px 0 0 var(--rd-blue); }
.rd-tl-task, .rd-tl-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rd-tl-task > span:last-child, .rd-tl-who > span:last-child { min-width: 0; }
/* Cells wrap rather than cut a word off with an ellipsis */
.rd-tl-task b, .rd-tl-task small, .rd-tl-who b, .rd-tl-who small { display: block; line-height: 1.35; }
.rd-tl-task b, .rd-tl-who b { font-size: 13px; font-weight: 600; }
.rd-tl-task small, .rd-tl-who small { font-size: 12px; color: var(--rd-ink-500); }
.rd-tl-thumb { width: 36px; height: 36px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border: 1px solid var(--rd-line-soft); border-radius: var(--rd-r-lg); background: #fff; overflow: hidden; }
.rd-tl-thumb img { width: 80%; height: 80%; object-fit: contain; }
.rd-tl-thumb.is-mark img { width: 100%; height: 100%; object-fit: cover; }
.rd-tl-thumb.is-icon { border: 0; background: var(--tile-bg); color: var(--tile-ink); font-size: 16px; }
.rd-tl-face { display: block; width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; object-fit: cover; background: var(--rd-surface-2); }
.rd-tl-face.is-mark { border-radius: 6px; outline: 1px solid rgba(16, 18, 20, 0.08); outline-offset: -1px; }
/* A long status may run into the gap after its column ("Pending review",
   as on the industry pages), then ends in an ellipsis, never under the next */
.rd-tl-st { display: flex; min-width: 0; }
.rd-tl-st .rd-chip { display: inline-block; flex-shrink: 0; max-width: calc(100% + 12px); overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.rd-tl-due { font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.rd-tl-due.is-late { color: var(--rd-red); }
.rd-tl-due.is-soon { color: #b4600e; }
/* A tour stage's fixed-height window: tighter bars and rows */
.rd-tl--dense .rd-tl-title { height: 44px; }
.rd-tl--dense .rd-tl-tabs { height: 36px; }
.rd-tl--dense .rd-tl-body { gap: 8px; padding: 10px 16px 12px; }
.rd-tl--dense .rd-tl-tr { min-height: 46px; }
.rd-tl--dense .rd-tl-th { min-height: 30px; }
/* A cell keeps to one line, so every row of a list is one height (phones
   wrap instead, below) */
.rd-tl-task b, .rd-tl-task small, .rd-tl-who b, .rd-tl-who small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Narrower lists drop the thumbnails, then the date, then the person */
@container (max-width: 580px) {
  .rd-tl-thumb { display: none; }
}
@container (max-width: 480px) {
  .rd-tl-tr { grid-template-columns: minmax(0, 1fr) 112px minmax(0, 0.8fr); }
  .rd-tl-tr > :last-child { display: none; }
  /* without a person, the date stays */
  .rd-tl--np .rd-tl-tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px; }
  .rd-tl--np .rd-tl-tr > :last-child { display: block; }
}
@container (max-width: 400px) {
  .rd-tl-tr { grid-template-columns: minmax(0, 1fr) 106px; }
  .rd-tl-tr > :nth-child(3) { display: none; }
  .rd-tl-seg, .rd-tl-title span { display: none; }
  .rd-tl--np .rd-tl-tr { grid-template-columns: minmax(0, 1fr) 104px 40px; }
  .rd-tl--np .rd-tl-tr > :nth-child(3) { display: block; }
  /* without a person, the status sits over the date at its full width */
  .rd-tl--np .rd-tl-tr:not(.rd-tl-th) { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; }
  .rd-tl--np .rd-tl-tr:not(.rd-tl-th) > :first-child { grid-row: 1 / 3; }
  .rd-tl--np .rd-tl-tr:not(.rd-tl-th) > :nth-child(2) { grid-column: 2; grid-row: 1; justify-content: flex-end; }
  .rd-tl--np .rd-tl-tr:not(.rd-tl-th) > :nth-child(3) { grid-column: 2; grid-row: 2; line-height: 1.2; }
  .rd-tl--np .rd-tl-st .rd-chip { max-width: none; }
  .rd-tl--np .rd-tl-th { grid-template-columns: minmax(0, 1fr) auto auto; }
}
/* Phones: a tour list's task cells wrap rather than clip, and its title bar
   goes (the window's title already says Tasks) so every row stays in view */
@media (max-width: 600px) {
  .rd-tl--dense .rd-tl-title { display: none; }
  .rd-tl-task b, .rd-tl-task small, .rd-tl-who b, .rd-tl-who small { white-space: normal; line-height: 1.3; }
  .rd-tl--dense .rd-tl-tr:not(.rd-tl-th) { padding-block: 5px; }
}

/* ── Activity log (macros log_head, log_row) ── */
/* (activity log styles) */
.rd-log { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 14px 18px 12px; }
.rd-log-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--rd-line-soft); }
.rd-log-head > b { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 15px; font-weight: 600; letter-spacing: -0.016em; white-space: nowrap; }
.rd-log-head > span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; color: var(--rd-ink-500); white-space: nowrap; }
.rd-log-head > span i { flex-shrink: 0; font-size: 10px; }
/* The line through the rows' marks */
.rd-log-rows { position: relative; display: flex; flex-direction: column; }
.rd-log-rows::before { content: ""; position: absolute; left: 13px; top: 18px; bottom: 18px; width: 2px; background: var(--rd-line-soft); }
.rd-log-row { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 10px 0; }
.rd-log-mark { position: relative; z-index: 1; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--rd-surface-2); color: var(--rd-ink-500); font-size: 13px; overflow: hidden; box-shadow: 0 0 0 3px #fff; }
.rd-log-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rd-log-mark.is-clover { background: #27ae60; color: #fff; }
.rd-log-mark.is-bad { background: #fdf4f6; color: var(--rd-red); font-size: 11px; }
.rd-log-mark.is-init { font-size: 10px; font-weight: 600; color: var(--rd-ink-600); }
.rd-log-row > span:nth-child(2) { min-width: 0; padding-top: 1px; }
.rd-log-row > span:nth-child(2) > span, .rd-log-row small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-log-row > span:nth-child(2) > span { font-size: 13px; }
.rd-log-row b { font-weight: 600; }
.rd-log-row small { margin-top: 2px; font-size: 12px; color: var(--rd-ink-500); }
.rd-log-row small.is-ok { color: var(--rd-green-ink); }
.rd-log-row small.is-bad { color: var(--rd-red); }
.rd-log-row > span:last-child { padding-top: 2px; font-size: 12px; color: var(--rd-ink-500); white-space: nowrap; }
/* Phones: an entry and its detail wrap rather than clip */
@media (max-width: 600px) {
  .rd-log-row { padding-block: 8px; }
  .rd-log-row > span:nth-child(2) > span, .rd-log-row small { white-space: normal; line-height: 1.35; }
}

/* ── Contacts table (macros contact_table, contact_row) ── */
/* (contacts styles) */
/* One grid for the table, each row on its tracks (subgrid): the status
   column takes its widest pill or label, role and contact share the rest */
.rd-ct { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) auto; column-gap: 12px; min-width: 0; container-type: inline-size; }
.rd-ct-tr { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; min-height: 48px; padding: 0 18px; border-top: 1px solid #f0f2f4; }
.rd-ct-th { min-height: 0; padding-block: 9px 7px; border-top: 0; font-size: 11.5px; font-weight: 500; color: var(--rd-ink-500); }
.rd-ct--flush .rd-ct-tr { padding-inline: 0; }
.rd-ct-tr > :last-child { justify-self: end; }
.rd-ct-tr.is-new { background: #f4f9fc; }
.rd-ct-role, .rd-ct-who { display: flex; align-items: center; gap: 9px; min-width: 0; }
.rd-ct-who { gap: 8px; }
.rd-ct-tile { width: 28px; height: 28px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 7px; background: var(--rd-blue-tint); color: var(--rd-blue-press); font-size: 14px; }
.rd-ct-role b { min-width: 0; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-ct-face { display: block; width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; object-fit: cover; }
.rd-ct-face.is-init { display: flex; align-items: center; justify-content: center; background: var(--rd-surface-2); color: var(--rd-ink-600); font-size: 9px; font-weight: 600; }
.rd-ct-who > span:last-child { min-width: 0; }
.rd-ct-who b, .rd-ct-who small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-ct-who b { font-weight: 600; }
.rd-ct-who small { font-size: 11.5px; color: var(--rd-ink-500); }
/* The status: a date or a word on a pill, green (confirmed, active) or blue (invited) */
.rd-ct-st { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: var(--rd-r); background: var(--rd-green-tint); font-size: 11.5px; font-weight: 600; color: var(--rd-green-ink); white-space: nowrap; }
.rd-ct-st::before { content: ""; width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: var(--rd-green); }
.rd-ct-st--info { background: var(--rd-blue-tint); color: var(--rd-blue-press); }
.rd-ct-st--info::before { background: var(--rd-blue); }
/* A narrow table drops the role tiles, so the role keeps its name */
@container (max-width: 400px) {
  .rd-ct-tile { display: none; }
}
/* Phones: a role and a contact's note take two lines rather than clip */
@media (max-width: 600px) {
  .rd-ct { column-gap: 10px; }
  .rd-ct-tr { padding-inline: 14px; }
  .rd-ct-tr:not(.rd-ct-th) { padding-block: 4px; }
  .rd-ct-role b, .rd-ct-who small { white-space: normal; line-height: 1.3; }
}

/* ── Workflow builders (macros wf_*): the strip builder and the canvas ── */
/* (workflow builder styles) */
.rd-wf { flex: 1; min-height: 0; display: flex; }
.rd-wf--strip { flex-direction: column; }
.rd-wf-body { flex: 1; min-height: 0; display: flex; }
/* The palette: dark blocks, or (a strip builder's) white ones with one lit */
.rd-wf-palette { width: 156px; flex-shrink: 0; display: flex; flex-direction: column; gap: 6px; padding: 12px; border-right: 1px solid var(--rd-line-soft); }
.rd-wf-palette--pick { background: var(--rd-surface-1); }
.rd-wf-tabs { display: flex; gap: 14px; margin-bottom: 6px; border-bottom: 1px solid var(--rd-line-soft); font-size: 12px; font-weight: 500; color: var(--rd-ink-600); }
.rd-wf-tabs span { padding-bottom: 6px; }
.rd-wf-tabs .is-active { border-bottom: 2px solid var(--rd-blue-press); font-weight: 600; color: var(--rd-ink-800); }
.rd-wf-pal { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: var(--rd-r); background: var(--rd-slate); color: #fff; font-size: 12px; font-weight: 500; white-space: nowrap; }
.rd-wf-pal > span { color: rgba(255, 255, 255, 0.4); letter-spacing: -3px; }
.rd-wf-pal i { font-size: 13px; opacity: 0.85; }
.rd-wf-palette--pick .rd-wf-pal { border: 1px solid var(--rd-line-soft); background: #fff; color: var(--rd-ink-800); }
.rd-wf-palette--pick .rd-wf-pal > span { color: #aab4be; }
.rd-wf-palette--pick .rd-wf-pal.is-on { border-color: var(--rd-slate); background: var(--rd-slate); color: #fff; box-shadow: 0 0 0 2px var(--rd-blue); }
.rd-wf-palette--pick .rd-wf-pal.is-on > span { color: rgba(255, 255, 255, 0.4); }
.rd-wf-palette-note { margin-top: auto; padding: 0 2px; font-size: 11.5px; line-height: 1.4; color: var(--rd-ink-500); }
/* Start and Finish */
.rd-wf-cap { height: 28px; display: flex; align-items: center; padding: 0 14px; border-radius: 999px; background: var(--rd-blue); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; }
.rd-wf-cap--end { background: var(--rd-slate); }
/* The strip: steps in a row over a small grid, the lit one blue */
.rd-wf-strip { flex-shrink: 0; display: flex; align-items: center; justify-content: center; padding: 12px 10px; border-bottom: 1px solid var(--rd-line-soft); background: linear-gradient(#e9edf1 1px, transparent 1px) 0 0 / 16px 16px, linear-gradient(90deg, #e9edf1 1px, transparent 1px) 0 0 / 16px 16px, #f5f7fa; overflow: hidden; container-type: inline-size; }
.rd-wf-strip > * { flex-shrink: 0; white-space: nowrap; }
.rd-wf-strip .rd-wf-cap { box-shadow: var(--rd-shadow-btn); }
.rd-wf-wire { width: 14px; height: 2px; background: #aab4be; }
.rd-wf-step { display: inline-flex; align-items: stretch; height: 28px; border: 1px solid var(--rd-line); border-radius: 7px; background: #fff; font-size: 12px; font-weight: 600; color: var(--rd-ink-600); overflow: hidden; }
.rd-wf-step > i { width: 22px; display: flex; align-items: center; justify-content: center; background: #aab4be; color: #fff; font-size: 11px; }
.rd-wf-step > span { display: flex; align-items: center; padding: 0 9px; }
.rd-wf-step.is-on { align-items: center; gap: 7px; height: 30px; padding: 0 12px 0 6px; border: 0; border-radius: var(--rd-r-lg); background: var(--rd-blue); color: #fff; box-shadow: 0 0 0 4px rgba(0, 136, 204, 0.2), 0 6px 14px -6px rgba(0, 136, 204, 0.6); overflow: visible; }
.rd-wf-step.is-on > i { width: 20px; height: 20px; border-radius: 5px; background: rgba(255, 255, 255, 0.22); }
.rd-wf-step.is-on > span { padding: 0; }
/* A narrow strip (a phone, a laptop's two columns): the other steps keep only their icon */
@container (max-width: 560px) {
  .rd-wf-step:not(.is-on) > span { display: none; }
}
/* The lit step's panel: head, rows (icon, name, hint), foot */
.rd-wf-panel { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; }
.rd-wf-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 2px; font-weight: 600; }
.rd-wf-panel-head > span:first-child { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-wf-panel-head small { font-size: 11.5px; font-weight: 400; color: var(--rd-ink-500); white-space: nowrap; }
.rd-wf-panel-head .rd-chip, .rd-wf-canvas-head .rd-chip { flex-shrink: 0; }
/* A status chip sits in the head's line, so the rows start where they do under a text meta */
.rd-wf-panel-head .rd-chip { margin-block: -2px; }
.rd-wf-row { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 10px; border: 1px solid var(--rd-line-soft); border-radius: var(--rd-r-lg); background: #fff; }
.rd-wf-row > i { width: 26px; height: 26px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 7px; background: var(--rd-blue-tint); color: var(--rd-blue-press); font-size: 13px; }
.rd-wf-row b { flex: 0 1 auto; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The hint takes what the name leaves, so in a narrow window it gives way first */
.rd-wf-row small { flex: 1 1 0; min-width: 0; font-size: 12px; color: var(--rd-ink-500); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-wf-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; font-size: 12px; color: var(--rd-ink-500); }
.rd-wf-foot > span:first-child { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.rd-wf-foot > span:first-child i { font-size: 13px; color: #27ae60; }
.rd-wf-foot .rd-mbtn { flex-shrink: 0; }
/* The canvas: the flow down a grid, nodes with their owner on the right */
.rd-wf-canvas { flex: 1; min-width: 0; display: flex; flex-direction: column; background: linear-gradient(#e9edf1 1px, transparent 1px) 0 0 / 20px 20px, linear-gradient(90deg, #e9edf1 1px, transparent 1px) 0 0 / 20px 20px, #f5f7fa; }
.rd-wf-flow { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 14px 16px 12px; }
.rd-wf-flow--mid { justify-content: center; }
.rd-wf-canvas-head { align-self: stretch; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-weight: 600; }
.rd-wf-canvas-head > span:first-child { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-wf-link { width: 2px; height: 11px; background: #aab4be; }
.rd-wf-node { display: flex; align-items: stretch; width: min(100%, 290px); height: 30px; border: 1px solid var(--rd-line); border-radius: 7px; background: #fff; box-shadow: var(--rd-shadow-card); font-size: 12.5px; overflow: hidden; }
.rd-wf-node > span { width: 28px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: #1ea2e2; color: #fff; font-size: 14px; }
.rd-wf-node--ai > span { background: #27ae60; }
.rd-wf-node--rec > span { background: var(--rd-slate); }
.rd-wf-node b { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; padding: 0 10px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.rd-wf-node b i { position: relative; top: -1px; font-size: 14px; color: #b4600e; }
.rd-wf-node small { display: flex; align-items: center; padding: 0 10px; border-left: 1px solid #f0f2f4; font-size: 11px; font-weight: 500; color: var(--rd-ink-500); white-space: nowrap; }
/* A strip under the flow (Supplier Assessment's scoring bands) */
.rd-wf-band { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 12px 12px; padding: 8px 10px; border: 1px solid var(--rd-line); border-radius: var(--rd-r-lg); background: #fff; }
.rd-wf-band b { margin-right: 4px; font-size: 12px; font-weight: 600; color: var(--rd-ink-600); }
.rd-wf-band-chip { padding: 2px 8px; border-radius: 5px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.rd-wf-band-chip.is-success { background: var(--rd-green-tint); color: var(--rd-green-ink); }
.rd-wf-band-chip.is-warning { background: var(--rd-orange-tint); color: #b4600e; }
.rd-wf-band-chip.is-error { background: #fdf4f6; color: var(--rd-red); }
/* Phones: the builder keeps its strip or flow, not the palette, and a step's
   name and hint share the row, each wrapping rather than clipping */
@media (max-width: 600px) {
  .rd-wf-palette { display: none; }
  .rd-wf-row { height: auto; min-height: 44px; padding-block: 6px; }
  .rd-wf-row b, .rd-wf-row small { flex: 1 1 0; white-space: normal; line-height: 1.3; }
  .rd-wf-row small { text-wrap: balance; }
}

/* ── Sending work (macros send_*) and campaign dashboards (camp_*) ── */
/* (send and campaign styles) */
/* The send form: a padded body, a label column beside the fields, the task
   card the supplier will get, and the foot across the screen's bottom */
.rd-send { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; }
.rd-send-row { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 10px; align-items: center; }
.rd-send-row--top { align-items: start; }
.rd-send-label { font-size: 12.5px; color: var(--rd-ink-500); white-space: nowrap; }
.rd-send-row--top > .rd-send-label { padding-top: 11px; }
.rd-send-val { min-width: 0; }
.rd-send-field { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 38px; padding: 4px 10px; border: 1px solid var(--rd-line-form); border-radius: var(--rd-r); background: #fff; box-sizing: border-box; }
.rd-send-field.is-focus { border-color: var(--rd-blue); box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.12); }
.rd-send-field > i { flex-shrink: 0; font-size: 13px; color: var(--rd-ink-500); }
.rd-send-field > i.is-blue { font-size: 14px; color: var(--rd-blue); }
.rd-send-field > i.is-bad { color: var(--rd-red); }
.rd-send-field > b { flex: 0 1 auto; min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-send-field > small { flex: 0 1000 auto; min-width: 0; font-size: 12px; color: var(--rd-ink-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-send-aside { flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; margin-left: auto; font-size: 12px; color: var(--rd-ink-500); white-space: nowrap; }
.rd-send-aside > i { font-size: 12px; }
/* In the aside: whether the supplier is on Clover yet (with their mark) */
.rd-send-on { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 3px 4px; border-radius: 999px; background: var(--rd-green-tint); font-size: 11.5px; font-weight: 600; color: var(--rd-green-ink); }
.rd-send-on > img { width: 16px; height: 16px; border-radius: 4px; }
.rd-send-on--new { padding-left: 8px; background: var(--rd-surface-2); color: var(--rd-ink-600); }
.rd-send-card { flex-shrink: 0; border: 1px solid var(--rd-line-soft); border-radius: 10px; overflow: hidden; }
.rd-send-card-head { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; background: #f4f9fc; font-size: 12.5px; font-weight: 600; color: var(--rd-blue-deep); }
.rd-send-card-head > i { flex-shrink: 0; font-size: 13px; }
.rd-send-card-head > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-send-card-head > small { flex-shrink: 0; margin-left: auto; font-size: 12.5px; font-weight: 500; color: var(--rd-ink-500); white-space: nowrap; }
.rd-send-card-row { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; border-top: 1px solid var(--rd-line-soft); }
.rd-send-card-row > i { width: 28px; height: 28px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 7px; background: var(--rd-surface-2); color: var(--rd-ink-600); font-size: 14px; }
.rd-send-card-row > b { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-send-card-row > small { font-size: 12px; color: var(--rd-ink-500); white-space: nowrap; }
.rd-send-foot { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding: 12px 18px; border-top: 1px solid var(--rd-line-soft); background: var(--rd-surface-1); font-size: 12.5px; color: var(--rd-ink-600); }
.rd-send-note { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.rd-send-note > i { flex-shrink: 0; font-size: 13px; color: var(--rd-blue); }
.rd-send-note > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-send-foot .rd-mbtn { flex-shrink: 0; }
.rd-send-foot .rd-mbtn i { font-size: 12px; }
.rd-send-done { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: var(--rd-r); background: var(--rd-green-tint); box-shadow: inset 0 0 0 1px #b9e5cf; font-size: 13px; font-weight: 600; color: var(--rd-green-ink); white-space: nowrap; box-sizing: border-box; }
.rd-send-done i { font-size: 11px; }
/* The button gives way to the sent state: a still picture shows the sent
   state; while a tour plays, the button until the sent state comes in */
.rd-send-swap { flex-shrink: 0; display: grid; justify-items: end; }
.rd-send-swap > * { grid-area: 1 / 1; }
.rd-send-swap > :first-child { visibility: hidden; }
.is-anim .rd-send-swap > :first-child { visibility: visible; }
.is-anim .rd-send-swap > :first-child:has(~ .is-in) { visibility: hidden; }

/* The campaign dashboard: head, counters, rows in a table, a foot note */
.rd-camp { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 14px 18px 12px; }
.rd-camp-head { display: flex; align-items: center; gap: 10px; }
.rd-camp-ic { width: 34px; height: 34px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: var(--rd-r-lg); background: var(--rd-blue-tint); color: var(--rd-blue-press); font-size: 17px; }
.rd-camp-head > div { flex: 1; min-width: 0; }
.rd-camp-head b { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; letter-spacing: -0.016em; white-space: nowrap; }
.rd-camp-head b > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.rd-camp-head b > .rd-chip { flex-shrink: 0; }
.rd-camp-head small { display: block; margin-top: 1px; font-size: 12px; line-height: 1.35; color: var(--rd-ink-500); }
.rd-camp-btn { flex-shrink: 0; height: 30px; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; border: 1px solid var(--rd-line-form); border-radius: var(--rd-r); background: #fff; color: var(--rd-ink-800); font-size: 13.5px; font-weight: 600; white-space: nowrap; box-shadow: var(--rd-shadow-btn-2); }
.rd-camp-btn i { font-size: 18px; }
.rd-camp-table { flex-shrink: 0; border: 1px solid var(--rd-line-soft); border-radius: 10px; overflow: hidden; }
.rd-camp-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 112px; gap: 10px; align-items: center; min-height: 44px; padding: 0 12px; border-top: 1px solid #f0f2f4; box-sizing: border-box; }
.rd-camp-row:first-child { border-top: 0; }
.rd-camp-row.is-head { min-height: 34px; background: var(--rd-surface-1); font-size: 11.5px; font-weight: 600; color: var(--rd-ink-600); }
.rd-camp-row.is-more { display: flex; min-height: 34px; font-size: 12px; color: var(--rd-ink-500); }
.rd-camp-row > span { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; }
.rd-camp-row > span:nth-child(2) { color: var(--rd-ink-600); }
.rd-camp-row b, .rd-camp-row em { min-width: 0; font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-camp-row b { font-weight: 600; }
.rd-camp-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 10px 12px; border: 1px solid #cfe6f3; border-radius: var(--rd-r-lg); background: #f4f9fc; font-size: 12.5px; font-weight: 500; color: var(--rd-blue-deep); }
.rd-camp-foot > i { flex-shrink: 0; font-size: 13px; }
.rd-camp-foot > span { min-width: 0; }
@media (max-width: 600px) {
  /* Phone: a narrower label column; a field's value, the foot's note, the
     campaign's name and meta wrap instead of clipping */
  .rd-send-row { grid-template-columns: 76px minmax(0, 1fr); }
  .rd-send-field { padding-block: 5px; }
  .rd-send-field > b { white-space: normal; line-height: 1.3; }
  .rd-send-note > span { white-space: normal; line-height: 1.35; }
  .rd-camp { gap: 8px; padding-block: 12px 10px; }
  .rd-camp .rd-stats > div { padding: 6px 9px; }
  .rd-camp .rd-stats b { font-size: 16px; }
  .rd-camp-head b > span:first-child { white-space: normal; line-height: 1.25; }
  /* the head's button keeps only its icon, as a record's does */
  .rd-camp-btn { width: 32px; padding: 0; justify-content: center; }
  .rd-camp-btn > span { display: none; }
  /* each row is the name over its detail, the status beside both */
  .rd-camp-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 0; min-height: 40px; padding-block: 3px; }
  .rd-camp-row > :nth-child(2) { grid-row: 2; }
  .rd-camp-row:has(> span:first-child > .rd-co) > :nth-child(2) { padding-left: 30px; }
  .rd-camp-row > :nth-child(3) { grid-column: 2; grid-row: 1 / 3; justify-content: flex-end; }
  .rd-camp-row b, .rd-camp-row em { white-space: normal; line-height: 1.3; }
  .rd-camp-row.is-head, .rd-camp-row.is-more { min-height: 32px; padding-block: 0; }
  .rd-camp-row.is-head > :nth-child(2) { display: none; }
  .rd-camp-row.is-head > :nth-child(3) { grid-row: 1; }
  .rd-camp-foot { padding-block: 7px; line-height: 1.35; }
}

/* A document's thumbnail from site/static/docs (macro doc_thumb): the page
   is 57% x 77% of its square image, so the image is drawn at 1.3x the page's
   height in a box just round the page. Rows show it 40px high; --sm (32px)
   sits in a head or a compact row, --xs (18px) in a line of text. */
.rd-doc-thumb { width: 32px; height: 42px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.rd-doc-thumb img { display: block; flex-shrink: 0; width: 52px; height: 52px; max-width: none; object-fit: contain; }
.rd-doc-thumb--sm { width: 26px; height: 34px; }
.rd-doc-thumb--sm img { width: 42px; height: 42px; }
.rd-doc-thumb--xs { width: 14px; height: 19px; }
.rd-doc-thumb--xs img { width: 24px; height: 24px; }
/* The strip under a profile: a stack of faces, or an icon, and a line */
.rd-rec-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 10px 18px; border-top: 1px solid var(--rd-line-soft); background: var(--rd-surface-1); font-size: 12.5px; color: var(--rd-ink-600); }
.rd-rec-foot > i { flex-shrink: 0; font-size: 14px; color: var(--rd-blue); }
.rd-rec-faces { display: inline-flex; align-items: center; flex-shrink: 0; }
.rd-rec-faces img, .rd-rec-faces b { width: 24px; height: 24px; border: 2px solid var(--rd-surface-1); border-radius: 50%; box-sizing: content-box; object-fit: cover; }
.rd-rec-faces > * + * { margin-left: -8px; }
.rd-rec-faces b { display: inline-flex; align-items: center; justify-content: center; background: #eff0f1; font-size: 10px; font-weight: 600; color: var(--rd-ink-800); }
/* A guided task's foot: Back (from the second step on) and a note on the
   left, the step's main action on the right */
.rd-task-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; font-size: 12px; color: var(--rd-ink-500); }
.rd-task-foot-l { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.rd-task-foot-l:empty { display: none; }
.rd-task-foot > :last-child { flex-shrink: 0; margin-left: auto; }
.rd-task-note { display: inline-flex; align-items: center; gap: 6px; min-width: 0; line-height: 1.35; }
.rd-mbtn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: var(--rd-r); background: var(--rd-blue-ink); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; box-shadow: var(--rd-shadow-btn); }
.rd-mbtn--ghost { border: 1px solid var(--rd-line-form); background: #fff; color: var(--rd-ink-800); box-shadow: none; }
.rd-mbtn--off { background: #9cc7e2; box-shadow: none; }
/* A product: the bar (back to Product, a status chip, more), the item card
   on the left, sections on the right */
.rd-prod-bar { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--rd-line-soft); font-size: 14px; font-weight: 600; }
.rd-prod-bar > i { font-size: 14px; color: var(--rd-ink-600); }
.rd-prod-bar .rd-chip { margin-left: auto; }
.rd-prod-bar .rd-chip i { font-size: 11px; }
.rd-prod-bar > i.icon-more { margin-left: auto; color: var(--rd-ink-500); }
.rd-prod-bar .rd-chip + i.icon-more { margin-left: 4px; }
.rd-prod-body { display: grid; grid-template-columns: 196px minmax(0, 1fr); font-size: 12.5px; line-height: 1.45; }
.rd-prod-card { padding: 16px; border-right: 1px solid var(--rd-line-soft); }
.rd-prod-card figure { height: 132px; display: flex; align-items: center; justify-content: center; margin: 0; border: 1px solid var(--rd-line); border-radius: 10px; background: #fff; }
.rd-prod-card figure img { width: auto; max-width: 90%; height: 116px; object-fit: contain; }
.rd-prod-card > b { display: block; margin-top: 12px; font-size: 14px; font-weight: 600; line-height: 1.3; }
.rd-prod-card > p { margin-top: 4px; font-size: 12px; line-height: 1.45; color: var(--rd-ink-600); }
.rd-prod-facts { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rd-line-soft); }
.rd-prod-facts small { display: block; font-size: 11.5px; color: var(--rd-ink-500); }
.rd-prod-facts span { display: flex; align-items: center; gap: 6px; font-weight: 500; white-space: nowrap; }
.rd-prod-facts img { width: 16px; height: 16px; flex-shrink: 0; border-radius: 4px; }
.rd-prod-secs { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px 16px; }
.rd-prod-sec { border: 1px solid var(--rd-line); border-radius: 10px; overflow: hidden; }
.rd-prod-sec-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--rd-surface-1); font-size: 13px; font-weight: 600; }
.rd-prod-sec-head i { font-size: 12px; color: var(--rd-ink-500); }
.rd-prod-sec.is-open .rd-prod-sec-head { border-bottom: 1px solid var(--rd-line-soft); }
.rd-prod-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; padding: 7px 14px; }
.rd-prod-row > span:first-child { color: var(--rd-ink-500); }
.rd-prod-row > span:last-child { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 600px) {
  /* Phone: a record's name and meta wrap instead of clipping, the tabs
     close up, and the item card sits above the sections */
  .rd-rec-head b > span:first-child, .rd-rec-head small { white-space: normal; }
  .rd-rec-head small { line-height: 1.35; }
  .rd-app-tabs { gap: 14px; padding: 0 14px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
  /* a page's own tab (Chargebacks, Issues) is lit after the four usual
     ones: the middle two give way so it stays in view */
  .rd-app-tabs:has(> .is-active:nth-child(n+5)) > span:nth-child(n+3):not(.is-active) { display: none; }
  .rd-prod-body { grid-template-columns: minmax(0, 1fr); }
  .rd-prod-card { border-right: 0; border-bottom: 1px solid var(--rd-line-soft); }
  .rd-prod-row > span:last-child { white-space: normal; text-wrap: balance; }
}
@media (max-width: 600px) {
  /* Phone: a narrower rail with the first five modules; the top bar keeps
     Create, the bell and the profile */
  .rd-app { grid-template-columns: 44px minmax(0, 1fr); }
  .rd-app-rail > span { height: 48px; }
  .rd-app-rail > span:nth-child(n+7) { display: none; }
  .rd-app-rail i { font-size: 20px; }
  .rd-app-rail img { width: 24px; height: 19px; }
  .rd-app-top { height: 48px; gap: 10px; padding: 0 10px; }
  .rd-app-search, .rd-app-tools > span:nth-child(n+2) { display: none; }
}

/* Closing call card (macro call_card): a slate card inside the page width,
   the copy beside "What we promise" or, when called with a form, the copy
   and the promise above it beside the form. */
.rd-call { padding-block: 0 var(--rd-section); }
.rd-call--gap { padding-top: var(--rd-section); }
.rd-call-card { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(28px, 4vw, 56px); align-items: center; padding: clamp(24px, 4vw, 48px); border-radius: var(--rd-r-2xl); background: var(--rd-slate); color: #fff; }
.rd-call-copy { display: flex; flex-direction: column; gap: 14px; }
/* Without a form or promise the copy reads at a measure, not the card's width */
.rd-call-card--solo .rd-call-copy { max-width: 760px; }
.rd-call-card form { scroll-margin-top: calc(var(--nav-height) + 16px); }
body.rd .rd-call h2 { font-family: var(--rd-font-display); font-size: clamp(1.625rem, 1.1rem + 1.6vw, 2.25rem); line-height: 1.1; letter-spacing: -0.025em; color: #fff; }
.rd-call-copy > p { max-width: 50ch; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, 0.8); text-wrap: pretty; }
.rd-call-copy .rd-actions { margin-top: 6px; }
.rd-call-copy .rd-promise { margin-top: 6px; }
.rd-promise { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--rd-r-xl); background: rgba(255, 255, 255, 0.06); }
body.rd .rd-promise h3 { font-family: var(--rd-font); font-size: 12px; font-weight: 600; line-height: 1.4; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.66); }
.rd-promise ul { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.rd-promise li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.5; }
.rd-promise li i { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--rd-green); color: #fff; font-size: 10px; }
.rd-call-foot { margin-top: 20px; padding-inline: clamp(8px, 2vw, 24px); }

@media (max-width: 991px) {
  .rd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rd-grid-item:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .rd-grid-item:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--rd-line-soft); }
  .rd-split { grid-template-columns: minmax(0, 1fr); }
  .rd-split-head { position: static; }
  .rd-tr { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
  .rd-tr-desc { grid-column: 1 / -1; grid-row: 2; padding-left: 44px; }
  .rd-th { display: none; }
  .rd-cta-grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
}
@media (max-width: 767px) {
  .rd-grid { grid-template-columns: minmax(0, 1fr); }
  .rd-grid-item:nth-child(even) { padding-left: 0; border-left: 0; }
  .rd-grid-item { padding: 18px 0; }
  .rd-tr { padding: 16px 18px; }
  .rd-tr-link { font-size: 0; gap: 0; }
  .rd-tr-link svg { width: 18px; height: 18px; }
  .rd-tr-desc { padding-left: 0; }
  .rd-cta .rd-actions .rd-btn { flex: 1 1 auto; }
}
/* Small phones: a row of buttons fills its line, so two that wrap stack at one width */
@media (max-width: 479px) {
  .rd-actions .rd-btn { flex: 1 1 auto; }
}

/* ── Demo form (app inputs: 40px, Form Border, 6px; posted by js/form-submit.js) ── */
.rd-form { display: flex; flex-direction: column; gap: 16px; padding: clamp(20px, 2.5vw, 28px); border-radius: var(--rd-r-xl); background: #fff; color: var(--rd-ink-800); box-shadow: var(--rd-shadow-frame); }
.rd-field { display: flex; flex-direction: column; gap: 6px; }
.rd-field label { font-size: 14px; font-weight: 500; color: var(--rd-ink-800); }
.rd-field label span { font-weight: 400; color: var(--rd-ink-500); }
.rd-field label .rd-req { color: var(--rd-red); }
.rd-input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--rd-line-form);
  border-radius: var(--rd-r);
  background: #fff;
  font: inherit;
  font-size: 15px;
  color: var(--rd-ink-800);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.rd-input::placeholder { color: var(--rd-ink-500); opacity: 1; }
.rd-input:hover { border-color: #9aa5b1; }
.rd-input:focus { outline: none; border-color: var(--rd-blue); box-shadow: 0 0 0 3px var(--rd-focus); }
textarea.rd-input { height: auto; min-height: 88px; padding: 10px 12px; line-height: 1.5; resize: vertical; }
select.rd-input {
  appearance: none;
  padding-right: 36px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b545d' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
}
select.rd-input:invalid { color: var(--rd-ink-500); }
.rd-form .rd-btn { width: 100%; justify-content: center; margin-top: 4px; }
.rd-form-alt { font-size: 14px; text-align: center; }
body.rd .form-consent { margin-top: -4px; font-size: 13px; color: var(--rd-ink-500); }
@media (max-width: 767px) { body.rd .form-consent { font-size: 14px; } }
body.rd .rd-form-alt a { color: var(--rd-blue-ink); font-weight: 500; text-decoration: none; }
.rd-form-alt a:hover { text-decoration: underline; text-underline-offset: 4px; }
body.rd .form-message-success { padding: 24px; border-radius: var(--rd-r-xl); background: #fff; color: var(--rd-ink-800); font-size: 15px; line-height: 1.6; box-shadow: var(--rd-shadow-frame); }
body.rd .form-message-success a { color: var(--rd-blue-ink); }
body.rd .form-message-error { padding: 10px 12px; border-radius: var(--rd-r); background: var(--rd-red-tint); color: var(--rd-red); font-size: 14px; }

/* ── Progress pills (the shared .pcc-* control, in Site chrome): app colours,
   Brand Blue fill on the Track, 2px corners instead of the round pill ── */
body.rd .pcc-dot { border-radius: 2px; background: #d3d9df; transition: width 0.45s var(--rd-ease), background-color 0.3s ease; }
body.rd .pcc-dot:hover:not(.is-active) { background: var(--rd-line-form); }
body.rd .pcc-dot.is-active { background: #e3e8ee; }
body.rd .pcc-dot-fill { background: var(--rd-blue); }
/* Phones: a transparent 8px border makes each pill a 24px target with the
   same look (negative margins keep the spacing; the corners grow by the border
   so the visible 2px stays). The `background` shorthands above reset the clip,
   so every state sets it again or the border paints. */
@media (max-width: 767px) {
  body.rd .pcc-dot { box-sizing: content-box; margin: -8px; border: 8px solid transparent; border-radius: 10px; }
  body.rd .pcc-dot,
  body.rd .pcc-dot:hover:not(.is-active),
  body.rd .pcc-dot.is-active { background-clip: padding-box; }
  body.rd .pcc-dot-fill { border-radius: 2px; }
  body.rd .pa-carousel .pcc-dots .pcc-dot { border-radius: 11px; } /* Platform's 3px pills */
  body.rd .pa-carousel .pcc-dot-fill { border-radius: 3px; }
}

/* ── Solution Templates slice (behind features.solution_templates, AB#16636) ── */
.rd-tpl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rd-line); }
.rd-tpl-item { display: flex; flex-direction: column; gap: 8px; padding: 22px 20px 22px 0; border-bottom: 1px solid var(--rd-line-soft); text-decoration: none; }
.rd-tpl-item:not(:nth-child(4n+1)) { padding-left: 20px; border-left: 1px solid var(--rd-line-soft); }
.rd-tpl-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.rd-tpl-item h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.018em; color: var(--rd-ink-800); }
.rd-tpl-item p { font-size: 14px; line-height: 1.5; color: var(--rd-ink-600); text-wrap: pretty; }
.rd-tpl-item--more { justify-content: center; }
.rd-tpl-foot { margin-top: 24px; }
body.rd .rd-tpl-foot a { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--rd-blue-ink); text-decoration: none; }
.rd-tpl-foot svg { width: 15px; height: 15px; transition: transform 0.2s var(--rd-ease); }
.rd-tpl-foot a:hover svg { transform: translateX(3px); }
@media (max-width: 991px) {
  .rd-tpl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rd-tpl-item:not(:nth-child(4n+1)) { padding-left: 0; border-left: 0; }
  .rd-tpl-item:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--rd-line-soft); }
}
@media (max-width: 767px) {
  .rd-tpl { grid-template-columns: minmax(0, 1fr); }
  .rd-tpl-item:nth-child(even) { padding-left: 0; border-left: 0; }
  .rd-tpl-item { padding: 18px 0; }
}

/* ── Long-form text: blog articles and the legal pages (AB#16642, AB#16643).
   Body HTML comes from Markdown, so everything is styled by element. ── */
.rd-prose { font-size: 17px; line-height: 1.7; color: var(--rd-ink-800); text-wrap: pretty; }
.rd-prose > :first-child { margin-top: 0; }
.rd-prose p, .rd-prose ul, .rd-prose ol, .rd-prose blockquote { margin: 0 0 1.15em; }
.rd-prose h2 {
  margin: 2em 0 0.6em;
  font-family: var(--rd-font-display);
  font-size: clamp(1.5rem, 1.3rem + 0.6vw, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.022em;
  color: var(--rd-ink-900);
  text-wrap: balance;
}
.rd-prose h3 { margin: 1.7em 0 0.5em; font-size: 1.1875rem; font-weight: 600; line-height: 1.35; letter-spacing: -0.018em; }
.rd-prose h4 { margin: 1.6em 0 0.5em; font-size: 1rem; font-weight: 600; line-height: 1.4; letter-spacing: -0.012em; }
.rd-prose h2 + h3, .rd-prose h3 + h4 { margin-top: 0.8em; }
.rd-prose strong { font-weight: 600; color: var(--rd-ink-900); }
.rd-prose ul, .rd-prose ol { padding-left: 1.35em; }
.rd-prose li { margin-bottom: 0.45em; padding-left: 0.2em; }
.rd-prose li > p { margin-bottom: 0.45em; }
.rd-prose li::marker { color: var(--rd-ink-500); }
.rd-prose ol > li::marker { font-weight: 600; font-variant-numeric: tabular-nums; }
body.rd .rd-prose a {
  color: var(--rd-blue-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(19, 119, 177, 0.4);
  overflow-wrap: anywhere;
  transition: text-decoration-color 0.15s ease;
}
body.rd .rd-prose a:hover { text-decoration-color: currentColor; }
.rd-prose blockquote { padding: 2px 0 2px 20px; border-left: 1px solid var(--rd-line-form); color: var(--rd-ink-600); }
.rd-prose blockquote p:last-child { margin-bottom: 0; }
.rd-prose img { display: block; width: 100%; height: auto; margin: 2em 0; border-radius: var(--rd-r-lg); border: 1px solid var(--rd-line-soft); }
.rd-prose p:has(> img:only-child) { margin: 0; }
.rd-prose hr { margin: 2.5em 0; border: 0; border-top: 1px solid var(--rd-line); }
.rd-prose .post-video { position: relative; aspect-ratio: 16 / 9; margin: 0 0 2em; border-radius: var(--rd-r-lg); overflow: hidden; background: var(--rd-surface-2); }
.rd-prose .post-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ── Blog cards (listing, related posts) ── */
.rd-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 3.5vw, 48px) clamp(20px, 2.4vw, 32px); }
.rd-post { display: flex; flex-direction: column; gap: 10px; text-decoration: none; min-width: 0; }
.rd-post-img { aspect-ratio: 16 / 9; margin-bottom: 8px; border-radius: var(--rd-r-lg); overflow: hidden; border: 1px solid var(--rd-line-soft); background: var(--rd-surface-2); }
.rd-post-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--rd-ease); }
.rd-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; line-height: 1.4; color: var(--rd-ink-500); }
.rd-post-meta > * + *::before { content: "·"; margin-right: 8px; color: var(--rd-ink-400); }
.rd-post-cat { font-weight: 600; color: var(--rd-blue-ink); }
.rd-post-title { font-size: 18px; font-weight: 600; line-height: 1.35; letter-spacing: -0.02em; color: var(--rd-ink-800); text-wrap: balance; transition: color 0.15s ease; }
.rd-post-dek { font-size: 15px; line-height: 1.55; color: var(--rd-ink-600); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rd-post-by { display: flex; align-items: center; gap: 8px; margin-top: 2px; font-size: 14px; font-weight: 500; color: var(--rd-ink-600); }
.rd-post-by img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.rd-post:hover .rd-post-title { color: var(--rd-blue-ink); }
.rd-post:hover .rd-post-img img { transform: scale(1.025); }
@media (max-width: 991px) { .rd-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .rd-posts { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .rd-post-img img { transition: none; } .rd-post:hover .rd-post-img img { transform: none; } }

/* The page's topic as the first line of its H1 (SEO review, Oct 29): the H1
   names the page for search, and the hook beneath stays as written. Sized
   as a label, so the headline still reads first. */
body.rd .rd-h1-topic { display: flex; width: fit-content; align-items: center; height: 30px; padding: 0 12px; margin-bottom: 22px; border-radius: 999px; background: var(--rd-blue-tint); color: var(--rd-blue-press); font-family: var(--rd-font); font-size: 13px; font-weight: 600; line-height: 1; letter-spacing: 0; text-wrap: nowrap; }
