/* ==========================================================================
   RynoSuite Marketing — global.css
   Foundation: fonts, tokens, reset, base type, core utilities.
   Loaded on every page. Source of truth: ryno-design-tokens.md
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts (self-hosted, variable, Latin-subset)
   Files live in the child theme at /fonts/
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter.woff2') format('woff2');
}

@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url('../fonts/oswald.woff2') format('woff2');
}

@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/anton.woff2') format('woff2');
}

/* --------------------------------------------------------------------------
   2. Tokens
   -------------------------------------------------------------------------- */
:root {

  /* Brand — Blue (core) */
  --ry-blue-50: #DEEBFD;
  --ry-blue-100: #DBEAFE;
  --ry-blue-200: #BFDBFE;
  --ry-blue-300: #93C5FD;
  --ry-blue-400: #60A5FA;
  --ry-blue-500: #3B82F6;
  --ry-blue-600: #2563EB;
  --ry-blue-700: #1D4ED8;
  --ry-blue-800: #1E40AF;
  --ry-blue-900: #1E3A8A;

  /* Brand — Purple (AI) */
  --ry-purple-50: #F5F3FF;
  --ry-purple-100: #EDE9FE;
  --ry-purple-200: #DDD6FE;
  --ry-purple-300: #C4B5FD;
  --ry-purple-400: #A78BFA;
  --ry-purple-500: #8B5CF6;
  --ry-purple-600: #7C3AED;
  --ry-purple-700: #6D28D9;
  --ry-purple-800: #5B21B6;
  --ry-purple-900: #4C1D95;

  /* Neutral — Slate */
  --ry-slate-50: #F8FAFC;
  --ry-slate-100: #F1F5F9;
  --ry-slate-200: #E2E8F0;
  --ry-slate-300: #CBD5E1;
  --ry-slate-400: #94A3B8;
  --ry-slate-500: #545F6E;
  --ry-slate-600: #475569;
  --ry-slate-700: #334155;
  --ry-slate-800: #1E293B;
  --ry-slate-900: #0F172A;

  /* Brand — Ink (signature dark navy) */
  --ry-ink: #0b0e1e;
  --ry-ink-deep: #07121F;
  --ry-ink-soft: #122440;
  --ry-ink-line: #1E3349;

  /* Semantic */
  --ry-success: #16A34A;
  --ry-warning: #D97706;
  --ry-danger: #DC2626;

  /* Aliases (use these in components) */
  --ry-primary: var(--ry-blue-600);
  --ry-primary-hover: var(--ry-blue-700);
  --ry-ai: var(--ry-purple-600);
  --ry-ai-hover: var(--ry-purple-700);
  --ry-text: var(--ry-slate-900);
  --ry-text-muted: var(--ry-slate-500);
  --ry-text-on-dark: #FFFFFF;
  --ry-text-muted-dark: var(--ry-slate-300);
  --ry-bg: #FFFFFF;
  --ry-bg-alt: var(--ry-slate-50);
  --ry-bg-dark: var(--ry-ink);
  --ry-bg-dark-md: #0b0e1ef2;
  --ry-border: var(--ry-slate-200);
  --ry-border-dark: var(--ry-ink-line);

  /* Type — Oswald for headings, Anton for big hero/impact lines, Inter for body */
  --ry-font-display: 'Oswald', system-ui, sans-serif;
  --ry-font-impact: 'Anton', 'Oswald', sans-serif;
  --ry-font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ry-text-display: clamp(2.5rem, 6vw, 4.5rem);
  --ry-text-3xl: clamp(2rem, 4vw, 3rem);
  --ry-text-2xl: 2rem;
  --ry-text-xl: 1.5rem;
  --ry-text-lg: 1.125rem;
  --ry-text-base: 1rem;
  --ry-text-sm: 0.875rem;
  --ry-text-xs: 0.75rem;

  /* Spacing — 8px grid */
  --ry-space-1: 0.25rem;
  --ry-space-2: 0.5rem;
  --ry-space-3: 0.75rem;
  --ry-space-4: 1rem;
  --ry-space-5: 1.5rem;
  --ry-space-6: 2rem;
  --ry-space-7: 3rem;
  --ry-space-8: 4rem;
  --ry-space-9: 6rem;
  --ry-space-10: 8rem;

  /* Layout */
  --ry-container: 1200px;
  --ry-container-pad: var(--ry-space-5);

  /* Radii */
  --ry-radius-sm: 4px;
  --ry-radius-md: 6px;
  --ry-radius-lg: 8px;
  --ry-radius-xl: 12px;
  --ry-radius-pill: 999px;

  /* Elevation */
  --ry-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --ry-shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --ry-shadow-lg: 0 12px 32px rgba(11, 26, 46, 0.16);

  /* Motion */
  --ry-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ry-dur-fast: 150ms;
  --ry-dur: 250ms;
  --ry-dur-slow: 450ms;

  /* Z-index */
  --ry-z-header: 1000;
  --ry-z-megamenu: 990;
  --ry-z-overlay: 1500;
  --ry-z-modal: 2000;
}

/* --------------------------------------------------------------------------
   3. Modern reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--ry-font-body);
  font-size: var(--ry-text-base);
  line-height: 1.6;
  color: var(--ry-text);
  background: var(--ry-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}

html,
body {
  overflow-x: clip;
}

img,
picture,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

a {
  color: var(--ry-primary);
  text-decoration: none;
  transition: color var(--ry-dur-fast) var(--ry-ease);
}

a:hover {
  color: var(--ry-primary-hover);
}

ul,
ol {
  list-style: none;
  padding: 0;
}

p {
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   4. Base typography
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4 {
  font-family: var(--ry-font-display);
  color: var(--ry-slate-900);
  text-wrap: balance;
}

h1 {
  font-size: var(--ry-text-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  font-size: var(--ry-text-3xl);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  font-size: var(--ry-text-2xl);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
}

h4 {
  font-size: var(--ry-text-xl);
  font-weight: 600;
  line-height: 1.3;
}

h5 {
  font-family: var(--ry-font-body);
  font-size: var(--ry-text-lg);
  font-weight: 500;
  line-height: 1.4;
}

small {
  font-size: var(--ry-text-sm);
}

/* Impact treatment — Anton, for the biggest hero headline only.
   Add class="ry-impact" to a hero h1. */
.ry-impact {
  font-family: var(--ry-font-impact);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0.01em;
}

.mb-50 {
	margin: 50px !important;
}

/* --------------------------------------------------------------------------
   5. Core utilities
   -------------------------------------------------------------------------- */
.ry-container {
  width: 100%;
  max-width: var(--ry-container);
  margin-inline: auto;
  padding-inline: var(--ry-container-pad);
}

.ry-section {
  padding-block: clamp(var(--ry-space-7), 10vw, var(--ry-space-9));
}

.ry-section--dark {
  background: var(--ry-bg-dark);
  color: var(--ry-text-on-dark);
}

.ry-section-dark--md {
	background: var(--ry-bg-dark-md);
}

.ry-section--dark h1,
.ry-section--dark h2,
.ry-section--dark h3,
.ry-section--dark h4 {
  color: var(--ry-text-on-dark);
}

.ry-section--alt {
  background: var(--ry-bg-alt);
}

.ry-eyebrow {
  font-size: var(--ry-text-xs);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ry-slate-400);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ry-skip {
  position: absolute;
  left: var(--ry-space-4);
  top: var(--ry-space-4);
  z-index: var(--ry-z-modal);
  padding: var(--ry-space-3) var(--ry-space-4);
  font-weight: 600;
  color: #fff;
  background: var(--ry-primary);
  border-radius: var(--ry-radius-md);
  transform: translateY(-200%);
  transition: transform var(--ry-dur-fast) var(--ry-ease);
}

.ry-skip:focus {
  transform: translateY(0);
  color: #fff;
}

#ry-main:focus {
  outline: none;
}

/* Scroll-reveal base (toggled to .is-visible by IntersectionObserver) */
.ry-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--ry-dur-slow) var(--ry-ease),
              transform var(--ry-dur-slow) var(--ry-ease);
}

.ry-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.ry-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ry-space-2);
  font-family: var(--ry-font-body);
  font-size: var(--ry-text-base);
  font-weight: 600;
  line-height: 1;
  padding: var(--ry-space-3) var(--ry-space-5);
  border-radius: var(--ry-radius-md);
  border: 1px solid transparent;
  transition: background var(--ry-dur-fast) var(--ry-ease),
              border-color var(--ry-dur-fast) var(--ry-ease),
              transform var(--ry-dur-fast) var(--ry-ease);
}

.ry-btn:active {
  transform: translateY(0);
}

.ry-btn--primary {
  background: var(--ry-primary);
  color: #fff;
}

.ry-btn--primary:hover {
  background: var(--ry-primary-hover);
  color: #fff;
}

.ry-btn--secondary {
  background: transparent;
  color: var(--ry-text);
  border-color: var(--ry-border);
}

.ry-btn--secondary:hover {
  background: var(--ry-slate-50);
  border-color: var(--ry-slate-300);
}

.ry-section--dark .ry-btn--secondary,
.ry-header .ry-btn--secondary,
.ry-mobile .ry-btn--secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.ry-section--dark .ry-btn--secondary:hover,
.ry-header .ry-btn--secondary:hover,
.ry-mobile .ry-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.5);
}

.ry-btn--ai {
  background: var(--ry-ai);
  color: #fff;
}

.ry-btn--ai:hover {
  background: var(--ry-ai-hover);
  color: #fff;
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   7. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .ry-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   8. Shared layout components (reusable across pages)
   Section band + alternating feature rows + impact callout + before/after
   slider + supplemental button variants. Use inside .ry-section wrappers.
   ========================================================================== */

/* --- Button variants ----------------------------------------------------- */
.ry-btn--lg {
  font-size: var(--ry-text-base);
  padding: 14px 24px;
  gap: 8px;
}

.ry-btn--lg i {
  font-size: 18px;
}

.ry-btn--glass {
  position: relative;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04),
    0 8px 24px -10px rgba(0, 0, 0, 0.6);
  transition: background var(--ry-dur-fast) var(--ry-ease),
              border-color var(--ry-dur-fast) var(--ry-ease);
}

.ry-btn--glass:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.30);
}

/* --- Eyebrow pill (blue default, purple = AI) ---------------------------- */
.ry-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--ry-text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ry-blue-700);
  background: var(--ry-blue-50);
  padding: 7px 15px;
  border-radius: var(--ry-radius-pill);
}

.ry-eyebrow-pill i {
  font-size: 16px;
}

.ry-eyebrow-pill--purple {
  color: var(--ry-purple-700);
  background: var(--ry-purple-50);
}

/* --- Section band (big centered title) ----------------------------------- */
.ry-band {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(48px, 6vw, 84px);
}

.ry-band .ry-eyebrow-pill {
  margin-bottom: var(--ry-space-4);
}

.ry-band__title {
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.1;
  color: var(--ry-slate-900);
  margin: 0;
}

.ry-band__title--xl {
	margin: 0 0 30px 0;
}

.ry-band__sub {
  font-size: var(--ry-text-lg);
  color: var(--ry-text-muted);
  line-height: 1.55;
  margin-top: var(--ry-space-4);
}

/* --- Alternating feature rows -------------------------------------------- */
.ry-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "head media"
    "body media";
  column-gap: clamp(32px, 5vw, 80px);
  row-gap: var(--ry-space-5);
  margin-bottom: clamp(56px, 8vw, 110px);
}

.ry-row:last-child {
  margin-bottom: 0;
}

.ry-row--flip {
  grid-template-areas:
    "media head"
    "media body";
}

.ry-row__head {
  grid-area: head;
  align-self: end;
  max-width: 32em;
}

.ry-row__body {
  grid-area: body;
  align-self: start;
  max-width: 32em;
}

.ry-row__eyebrow {
  font-size: var(--ry-text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ry-blue-600);
  margin-bottom: var(--ry-space-3);
}

.ry-row__eyebrow--ai {
  color: var(--ry-purple-600);
}

.ry-row__title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.12;
  color: var(--ry-slate-900);
  margin: 0;
}

.ry-row__sub {
  font-size: var(--ry-text-base);
  color: var(--ry-text-muted);
  line-height: 1.6;
  margin-top: var(--ry-space-4);
}

.ry-row__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.ry-row__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--ry-text-base);
  color: var(--ry-slate-700);
  line-height: 1.4;
}

.ry-row__check {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--ry-blue-50);
  color: var(--ry-blue-600);
}

.ry-row__check svg {
  width: 13px;
  height: 13px;
}

.ry-row__list__ai .ry-row__check {
  color: var(--ry-purple-600);
  background: var(--ry-purple-100);
}

.ry-row__cta {
  margin-top: var(--ry-space-6);
}

.ry-row__media {
  grid-area: media;
  align-self: center;
  position: relative;
}

.ry-row__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--ry-radius-xl);
}

.ry-row__placeholder {
  min-height: 360px;
}

/* --- Inline arrow link --------------------------------------------------- */
.ry-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--ry-text-base);
  font-weight: 600;
  color: var(--ry-blue-600);
}

.ry-link i {
  transition: transform var(--ry-dur-fast) var(--ry-ease);
}

.ry-link:hover i {
  transform: translateX(3px);
}

/* --- Impact callout ------------------------------------------------------ */
.ry-callout {
  margin-top: var(--ry-space-5);
  padding: 30px 20px 25px 20px;
  border-radius: var(--ry-radius-md);
  background-image: url("/wp-content/uploads/2026/06/callout-bg.webp");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

.ry-callout__stat {
  font-family: var(--ry-font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 15px;
  color: #fff;
}

.ry-callout__txt {
  font-size: var(--ry-text-sm);
  color: var(--ry-slate-300);
  line-height: 1.45;
  margin-top: 4px;
}

/* --- Before / after slider ----------------------------------------------- */
.ry-ba {
  --pos: 50%;
  position: relative;
  margin: 0;
}

.ry-ba__frame {
  position: relative;
  aspect-ratio: var(--ry-ba-ratio, 3 / 2);
  border-radius: var(--ry-radius-xl);
  overflow: hidden;
  box-shadow: var(--ry-shadow-lg);
  user-select: none;
  touch-action: none;
  cursor: ew-resize;
}

.ry-ba__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-user-drag: none;
}

.ry-ba__img--before {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
  z-index: 2;
}

.ry-ba.is-animating .ry-ba__img--before,
.ry-ba.is-animating .ry-ba__handle {
  transition: clip-path 0.6s var(--ry-ease), left 0.6s var(--ry-ease);
}

.ry-ba__label {
  position: absolute;
  bottom: 14px;
  z-index: 3;
  font-size: var(--ry-text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(11, 14, 30, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 5px 11px;
  border-radius: 6px;
}

.ry-ba__label--before { left: 14px; }
.ry-ba__label--after  { right: 14px; }

.ry-ba__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  z-index: 4;
  padding: 0;
  border: 0;
  background: #fff;
  transform: translateX(-1px);
  box-shadow: 0 0 0 1px rgba(11, 14, 30, 0.15);
  cursor: ew-resize;
}

.ry-ba__handle:focus-visible {
  outline: 2px solid var(--ry-blue-500);
  outline-offset: 3px;
}

.ry-ba__grip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 20px -4px rgba(11, 14, 30, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  color: var(--ry-slate-700);
}

.ry-ba__grip i { font-size: 15px; }

/* --- Dark-section overrides (so the components work on .ry-section--dark) -- */
.ry-section--dark .ry-band__title,
.ry-section--dark .ry-row__title,
.ry-section-dark--md .ry-band__title {
  color: #fff;
}

.ry-section--dark .ry-band__sub,
.ry-section--dark .ry-row__sub,
.ry-section--dark .ry-row__list li,
.ry-section-dark--md .ry-band__sub {
  color: var(--ry-slate-300);
}

.ry-section--dark .ry-row__check {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ry-blue-300);
}

/* --- Responsive (rows stack) --------------------------------------------- */
@media (max-width: 880px) {
  .ry-row,
  .ry-row--flip {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "media"
      "body";
    row-gap: var(--ry-space-6);
  }

  .ry-row__head,
  .ry-row__body {
    max-width: none;
    align-self: auto;
  }

  .ry-row__placeholder {
    display: none;
  }
  .ry-link {
    justify-content: center;
    padding: 12px 22px;
    border: 1px solid var(--ry-blue-600);
    border-radius: var(--ry-radius-md);
  }
}

/* --- Section seam spacing --------------------------------------------------
   Apply per page at section boundaries. Pick by the seam type above a section.
   --------------------------------------------------------------------------- */

/* Same-bg seam (white→white or dark→dark): collapse doubled padding */
.ry-section--tight-top {
  padding-top: clamp(var(--ry-space-5), 4vw, var(--ry-space-7));
}

.ry-section--flush-top {
  padding-top: 0;
}

/* Color-change seam (dark above → light below, or light above → dark below):
   give the lower section a more generous top so the color boundary breathes */
.ry-section--roomy-top {
  padding-top: clamp(var(--ry-space-8), 9vw, var(--ry-space-10));
}

/* ==========================================================================
   9. Workflow flow strip (.ry-flow) + industry trade grid (.ry-trades)
   Reusable section components. Pair with .ry-section / .ry-band.
   ========================================================================== */

/* Smaller band title — for sections below the hero (reuse anywhere). */
.ry-band__title--sm {
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  line-height: 1.25;
}

/* Wide band — centered, but free to use the full container width. */
.ry-band--wide {
  max-width: none;
}

/* Full-bleed wrapper — breaks a child out of .ry-container edge to edge. */
.ry-bleed {
  width: 100%;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-inline: clamp(var(--ry-space-5), 4vw, var(--ry-space-8));
}

/* --- Workflow flow strip ------------------------------------------------- */
.ry-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: stretch;
  gap: clamp(var(--ry-space-5), 3vw, var(--ry-space-7));
}

.ry-flow__step {
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Arrow connector — dashed line + head, centered in the gap between cards */
.ry-flow__step::after {
  content: "";
  position: absolute;
  top: 44px;
  left: 100%;
  width: clamp(var(--ry-space-5), 3vw, var(--ry-space-7));
  height: 2px;
  background-image: linear-gradient(90deg, var(--ry-blue-300) 60%, transparent 60%);
  background-size: 10px 2px;
  background-repeat: repeat-x;
}

.ry-flow__step::before {
  content: "";
  position: absolute;
  top: 40px;
  left: calc(100% + clamp(var(--ry-space-5), 3vw, var(--ry-space-7)) - 7px);
  width: 0;
  height: 0;
  border-left: 7px solid var(--ry-blue-400);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  z-index: 1;
}

.ry-flow__step:last-child::after,
.ry-flow__step:last-child::before {
  display: none;
}

.ry-flow__card {
  display: flex;
  flex-direction: column;
  flex: 1;
  background: var(--ry-bg);
  border-radius: var(--ry-radius-lg);
  box-shadow: var(--ry-shadow-md);
  border: 1px solid var(--ry-slate-100);
  padding: var(--ry-space-5);
  transition: box-shadow var(--ry-dur) var(--ry-ease);
}

a.ry-flow__card:hover {
  box-shadow: var(--ry-shadow-lg);
  color: inherit;
}

.ry-flow__ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--ry-radius-md);
  background: var(--ry-blue-50);
  color: var(--ry-blue-600);
  margin-bottom: var(--ry-space-3);
}

.ry-flow__ic svg {
  width: 22px;
  height: 22px;
}

.ry-flow__ic--green {
  background: #DCFCE7;
  color: var(--ry-success);
}

.ry-flow__t {
  font-family: var(--ry-font-display);
  font-size: var(--ry-text-lg);
  font-weight: 600;
  color: var(--ry-slate-900);
  line-height: 1.2;
}

.ry-flow__d {
  font-size: var(--ry-text-sm);
  color: var(--ry-text-muted);
  line-height: 1.45;
  margin-top: 4px;
}

/* Media area — fixed ratio, sits at the bottom of the card */
.ry-flow__media {
  position: relative;
  margin-top: 0;
  border-radius: var(--ry-radius-md);
  background: var(--ry-slate-100);
  aspect-ratio: 1;
}

.ry-flow__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ry-flow__media--stack .ry-flow__base {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  border-radius: var(--ry-radius-md);
  display: block;
}

.ry-flow__phone {
  position: absolute;
  bottom: 8px;
  right: -30px;
  width: 34%;
  max-width: 92px;
  height: auto;
  border-radius: 12px;
  filter: drop-shadow(0 10px 18px rgba(11, 26, 46, 0.45));
}

/* Paid card — pure CSS receipt tile */
.ry-flow__paid {
  margin-top: var(--ry-space-4);
  border-radius: var(--ry-radius-md);
  background: var(--ry-slate-50);
  border: 1px solid var(--ry-slate-200);
  padding: var(--ry-space-4);
  text-align: center;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.ry-flow__paid-label {
  font-size: var(--ry-text-xs);
  color: var(--ry-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.ry-flow__paid-amt {
  font-family: var(--ry-font-display);
  font-size: var(--ry-text-2xl);
  font-weight: 600;
  color: var(--ry-slate-900);
  line-height: 1.1;
}

.ry-flow__paid-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  font-size: var(--ry-text-sm);
  font-weight: 600;
  color: var(--ry-success);
}

.ry-flow__paid-badge .ry-flow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ry-success);
}

/* --- Industry trade grid (dark section) ---------------------------------- */
.ry-trades-sec {
  position: relative;
  overflow: hidden;
}

.ry-trades-sec__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ry-trades-sec__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ry-trades-sec__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      var(--ry-ink) 0%,
      rgba(11, 14, 30, 0.82) 38%,
      rgba(11, 14, 30, 0.88) 100%);
}

.ry-trades-sec .ry-container, .ry-trades-sec .ry-bleed {
  position: relative;
  z-index: 1;
}

.ry-trades {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--ry-space-3);
}

.ry-trade {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(17, 23, 42, 0.55);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--ry-radius-md);
  padding: 20px 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 24px -12px rgba(0, 0, 0, 0.6);
  transition: background var(--ry-dur-fast) var(--ry-ease),
              border-color var(--ry-dur-fast) var(--ry-ease);
}

.ry-trade:hover {
  background: rgba(17, 23, 42, 0.72);
  border-color: rgba(255, 255, 255, 0.20);
}

.ry-trade__ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: var(--ry-radius-sm);
  background: rgba(37, 99, 235, 0.22);
  color: var(--ry-blue-300);
  transition: background var(--ry-dur-fast) var(--ry-ease),
              color var(--ry-dur-fast) var(--ry-ease);
}

.ry-trade:hover .ry-trade__ic {
  background: var(--ry-blue-600);
  color: #fff;
  box-shadow:
    0 0 12px 2px rgba(37, 99, 235, 0.65),
    0 0 24px 6px rgba(37, 99, 235, 0.35);
}

.ry-trade__ic i {
  font-size: 17px;
}

.ry-trade__name {
  font-size: var(--ry-text-sm);
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.ry-trades__all {
  display: flex;
  justify-content: center;
  margin-top: var(--ry-space-6);
}

.ry-trades__all a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--ry-text-base);
  font-weight: 600;
  color: #fff;
}

.ry-trades__all i {
  transition: transform var(--ry-dur-fast) var(--ry-ease);
}

.ry-trades__all a:hover {
  color: #fff;
}

.ry-trades__all a:hover i {
  transform: translateX(3px);
}

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 1100px) {

  .ry-flow {
    grid-template-columns: repeat(3, 1fr);
    row-gap: clamp(var(--ry-space-6), 5vw, var(--ry-space-8));
  }

  /* Hide arrows when the grid wraps (they'd point into nothing) */
  .ry-flow__step::after,
  .ry-flow__step::before {
    display: none;
  }
}

@media (max-width: 980px) {

  .ry-trades {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {

  .ry-flow {
    grid-template-columns: 1fr;
  }

  .ry-flow__phone {
    width: 22%;
    max-width: 96px;
  }
}

@media (max-width: 560px) {

  .ry-trades {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 10. Section torn dividers */
.ry-tear-top,
.ry-tear-bottom {
  position: relative;
}
.ry-section.ry-tear-top {
  padding-top: clamp(var(--ry-space-9), 13vw, var(--ry-space-10));
}
.ry-tear-top::before,
.ry-tear-bottom::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 5vw;
  min-height: 24px;
  background-image: url("/wp-content/themes/twentytwentyfive-child/assets/svgs/ry-tear.svg?v=2");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 2;
}
.ry-tear-bottom::after {
  bottom: -8px;
  transform: scaleY(-1);
}
.ry-tear-top::before {
  top: -8px;
  transform: none;
}

.ry-callout.ry-callout-ai .ry-callout__stat {
	color: var(--ry-purple-300);
}

.ry-callout.ry-callout--blue .ry-callout__stat {
	color: var(--ry-blue-300);
}

/* ==========================================================================
   FAQ accordion (.ry-faqacc) — reusable content accordion (global.css)
   Namespaced away from header's mobile .ry-acc. Independent toggles.
   ========================================================================== */
.ry-faqacc {
  max-width: 820px;
  margin-inline: auto;
}
.ry-faqacc__item {
  border-bottom: 1px solid var(--ry-border);
}
.ry-faqacc__item:last-child {
  border-bottom: none;
}
.ry-faqacc__hd {
  margin: 0;
  font-family: var(--ry-font-body);
}
.ry-faqacc__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ry-space-4);
  padding: var(--ry-space-5) var(--ry-space-2);
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
}
.ry-faqacc__q {
  font-family: var(--ry-font-display);
  font-size: var(--ry-text-lg);
  font-weight: 600;
  line-height: 1.3;
  color: var(--ry-slate-900);
}
.ry-faqacc__btn:hover .ry-faqacc__q {
  color: var(--ry-blue-600);
}
.ry-faqacc__icon {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}
.ry-faqacc__icon::before,
.ry-faqacc__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: var(--ry-blue-600);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform var(--ry-dur) var(--ry-ease), opacity var(--ry-dur) var(--ry-ease);
}
.ry-faqacc__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.ry-faqacc__btn[aria-expanded="true"] .ry-faqacc__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}
.ry-faqacc__panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--ry-dur) var(--ry-ease);
}
.ry-faqacc__a {
  padding: 0 var(--ry-space-2) var(--ry-space-5);
}
.ry-faqacc__a p {
  font-size: var(--ry-text-base);
  line-height: 1.65;
  color: var(--ry-text-muted);
  margin: 0;
}
@media (prefers-reduced-motion: reduce) {
  .ry-faqacc__panel {
    transition: none;
  }
  .ry-faqacc__icon::before,
  .ry-faqacc__icon::after {
    transition: none;
  }
}

/* ==========================================================================
   404 page (.ry-404) — white, estimate-card concept
   ========================================================================== */
.ry-404 {
  text-align: center;
}

.ry-404__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 640px;
  margin-inline: auto;
}

/* --- Estimate card ------------------------------------------------------- */
.ry-404__card {
  width: 100%;
  max-width: 440px;
  text-align: left;
  background: var(--ry-bg);
  border: 1px solid var(--ry-slate-200);
  border-radius: var(--ry-radius-lg);
  box-shadow: var(--ry-shadow-md);
  overflow: hidden;
}

.ry-404__card-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--ry-space-4) var(--ry-space-5);
  border-bottom: 1px solid var(--ry-slate-200);
}

.ry-404__card-id {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ry-404__card-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--ry-radius-md);
  background: #DEEBFD;
  color: var(--ry-blue-600);
}

.ry-404__card-ic i {
  font-size: 18px;
}

.ry-404__card-num {
  font-family: var(--ry-font-display);
  font-size: var(--ry-text-lg);
  font-weight: 600;
  color: var(--ry-slate-900);
}

.ry-404__pill {
  font-size: var(--ry-text-xs);
  font-weight: 700;
  color: #A3000C;
  background: #FDE7E9;
  padding: 4px 10px;
  border-radius: var(--ry-radius-sm);
}

.ry-404__card-body {
  padding: var(--ry-space-3) var(--ry-space-5) var(--ry-space-4);
}

.ry-404__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ry-space-4);
  padding: 9px 0;
  border-bottom: 1px solid var(--ry-slate-100);
}

.ry-404__row:last-child {
  border-bottom: 0;
}

.ry-404__row-k {
  font-size: var(--ry-text-sm);
  color: var(--ry-text-muted);
}

.ry-404__row-v {
  font-size: var(--ry-text-sm);
  color: var(--ry-slate-900);
  text-align: right;
}

/* --- Headline / sub / CTA ----------------------------------------------- */
.ry-404__title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  color: var(--ry-slate-900);
  margin: var(--ry-space-7) 0 0;
}

.ry-404__sub {
  font-size: var(--ry-text-lg);
  line-height: 1.6;
  color: var(--ry-text-muted);
  margin: var(--ry-space-4) 0 0;
  max-width: 30em;
}

.ry-404__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--ry-space-3);
  margin-top: var(--ry-space-6);
}

@media (max-width: 520px) {
  .ry-404__cta .ry-btn {
    width: 100%;
  }
}

.ry-mark {
  background-image: url("/wp-content/uploads/2026/06/title-mark.png");
  background-repeat: no-repeat;
  background-position: center 92%;
  background-size: 100% 0.32em;
  padding-bottom: 0.12em;
}

/* ==========================================================================
   CARD GRID — CONCEPT 5 (.ry-cards5)
   Four equal white cards, faint icon backdrop, torn blue bottom strip.
   ========================================================================== */
.ry-cards5__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 1.6vw, 24px);
}

.ry-cards5__card {
  position: relative;
  overflow: hidden;
  border-radius: var(--ry-radius-lg);
  background: var(--ry-bg);
  border: 1px solid var(--ry-slate-200);
  padding: clamp(24px, 2.4vw, 32px) clamp(20px, 2vw, 28px) clamp(40px, 4vw, 56px);
  text-align: center;
  isolation: isolate;
}

.ry-cards5__card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(20px, 2.4vw, 32px);
  background-image: url("/wp-content/uploads/2026/06/rugged-bottom-card-fill.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
}

.ry-cards5__bg {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
  width: 70%;
  height: 70%;
  background-color: #dfe4ef;
  -webkit-mask-image: var(--ry-icon);
  mask-image: var(--ry-icon);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  opacity: .5;
  pointer-events: none;
}

.ry-cards5__t {
  font-family: var(--ry-font-display);
  font-size: var(--ry-text-lg);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ry-slate-900);
  margin: 0;
}

.ry-cards5__t::after {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  background: var(--ry-blue-600);
  margin: 10px auto 0;
  border-radius: 2px;
}

.ry-cards5__d {
  font-size: var(--ry-text-sm);
  line-height: 1.6;
  color: var(--ry-text-muted);
  margin-top: var(--ry-space-4);
}

@media (max-width: 980px) {
  .ry-cards5__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .ry-cards5__grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   CARD GRID — CONCEPT 4 (.ry-cards4f)
   Dark section. 2 left + featured center + 2 right. Center uses torn blue fill.
   ========================================================================== */
.ry-cards4f__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  align-items: stretch;
  gap: clamp(16px, 1.6vw, 24px);
}

.ry-cards4f__col {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 1.6vw, 24px);
}

.ry-cards4f__card {
  flex: 1;
  border-radius: var(--ry-radius-lg);
  background: var(--ry-ink);
  border: 1px solid var(--ry-ink-line);
  padding: clamp(22px, 2.2vw, 30px);
}

.ry-cards4f__ic {
  display: inline-block;
  width: 40px;
  height: 40px;
  margin-bottom: var(--ry-space-4);
  background-color: var(--ry-primary);
  -webkit-mask-image: var(--ry-icon);
  mask-image: var(--ry-icon);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.ry-cards4f__ic img {
  width: 40px;
  height: 40px;
  display: block;
}

.ry-cards4f__t {
  font-family: var(--ry-font-display);
  font-size: var(--ry-text-lg);
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  margin: 0;
}

.ry-cards4f__d {
  font-size: var(--ry-text-sm);
  line-height: 1.6;
  color: var(--ry-slate-300);
  margin-top: var(--ry-space-3);
}

/* Featured center card — torn blue fill */
.ry-cards4f__card--featured {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  background: transparent;
  border: 0;
  padding: clamp(40px, 5vw, 64px) clamp(28px, 3vw, 40px);
  isolation: isolate;
}

.ry-cards4f__card--featured::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("/wp-content/uploads/2026/06/rugged-full-card.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.ry-cards4f__card--featured .ry-cards4f__ic {
  width: 48px;
  height: 48px;
  background-color: #fff;
  align-self: center;
}

.ry-cards4f__card--featured .ry-cards4f__ic img {
  width: 48px;
  height: 48px;
}

.ry-cards4f__card--featured .ry-cards4f__t {
  font-size: var(--ry-text-2xl);
}

.ry-cards4f__card--featured .ry-cards4f__d {
  color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 980px) {
  .ry-cards4f__grid {
    grid-template-columns: 1fr;
  }

  .ry-cards4f__col {
    gap: clamp(16px, 1.6vw, 24px);
  }

  .ry-cards4f__card--featured {
    order: -1;
  }
}

/* ==========================================================================
   AI VISUALIZER GRID (.ry-vizgrid) — two before/after sliders + stat banner
   ========================================================================== */
.ry-vizgrid__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(32px, 4vw, 56px);
}

.ry-vizgrid__cap {
  text-align: center;
  margin-top: var(--ry-space-3);
  font-family: var(--ry-font-display);
  font-size: var(--ry-text-base);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ry-slate-900);
}

.ry-vizgrid__banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ry-space-3);
  margin-top: clamp(32px, 4vw, 56px);
  text-align: center;
}

.ry-vizgrid__stat {
  font-family: var(--ry-font-impact);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.05;
  color: var(--ry-blue-600);
  margin: 0;
}

.ry-vizgrid__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--ry-purple-100, #f3effe);
  font-size: var(--ry-text-sm);
  font-weight: 600;
  color: var(--ry-purple-700, #6d28d9);
  margin: 0;
}

.ry-vizgrid__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ry-purple-600, #7c3aed);
}

@media (max-width: 880px) {
  .ry-vizgrid__grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Feature card (.ry-fcard) — photo bg + dark overlay + torn corner.
   Shared by .ry-fcards (industry 2x2) and .ry-fcards4 (single row of 4).
   ========================================================================== */
.ry-fcard {
  position: relative;
  overflow: hidden;
  border-radius: var(--ry-radius-lg);
  padding: clamp(22px, 2.4vw, 30px);
  background-color: var(--ry-ink);
  background-image: var(--ry-fcard-img);
  background-size: cover;
  background-position: 100% 24%;
  background-repeat: no-repeat;
  color: #fff;
  isolation: isolate;
}

.ry-fcard::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(160deg,
      rgba(11, 14, 30, 0.72) 0%,
      rgba(11, 14, 30, 0.82) 55%,
      rgba(11, 14, 30, 0.92) 100%);
}

.ry-fcard::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: clamp(110px, 40%, 200px);
  height: clamp(110px, 40%, 200px);
  background-image: url("/wp-content/uploads/2026/06/corner-rugged.webp");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
}

.ry-fcard__t {
  position: relative;
  z-index: 1;
  font-family: var(--ry-font-display);
  font-size: var(--ry-text-xl);
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  margin: 0 0 var(--ry-space-4);
}

.ry-fcard__list {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.ry-fcard__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--ry-text-base);
  line-height: 1.4;
  color: var(--ry-slate-200);
}

.ry-fcard__check {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.30);
  color: var(--ry-blue-300);
}

.ry-fcard__check svg {
  width: 13px;
  height: 13px;
}

/* Feature cards, single row of 4 (.ry-fcards4) — reuses .ry-fcard cards */
.ry-fcards4__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 1.6vw, 24px);
}

@media (max-width: 1024px) {
  .ry-fcards4__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .ry-fcards4__grid {
    grid-template-columns: 1fr;
  }
}

.ry-chat {
  position: relative;
  z-index: 1;
  width: 384px;
  max-width: 100%;
  border-radius: var(--ry-radius-xl);
  background: rgba(17, 23, 42, 0.74);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    0 44px 100px -30px rgba(0, 0, 0, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
  overflow: hidden;
  animation: ry-hero-rise 0.7s var(--ry-ease) both;
}

.ry-chat__head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.ry-chat__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(140deg, var(--ry-purple-500), var(--ry-purple-700));
  color: #fff;
  font-size: 19px;
}

.ry-chat__id {
  display: flex;
  flex-direction: column;
}

.ry-chat__name {
  font-size: var(--ry-text-sm);
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.ry-chat__status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--ry-text-xs);
  color: var(--ry-slate-400);
}

.ry-chat__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.ry-chat__body {
  height: 326px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
  padding: 18px;
  overflow: hidden;
}

.ry-chat__msg {
  display: none;
  max-width: 84%;
  padding: 11px 14px;
  font-size: var(--ry-text-sm);
  line-height: 1.45;
  border-radius: 16px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ry-ease), transform 0.4s var(--ry-ease);
}

.ry-chat__msg.is-in {
  opacity: 1;
  transform: none;
}

.ry-chat__msg--user {
  align-self: flex-end;
  background: var(--ry-blue-600);
  color: #fff;
}

.ry-chat__msg--ai {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ry-slate-100);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ry-chat__msg--ai strong {
  color: #fff;
  font-weight: 600;
}

.ry-chat__ok {
  color: #34D399;
  font-weight: 700;
}

.ry-chat__typing {
  display: none;
  align-self: flex-start;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  border-bottom-left-radius: 5px;
}

.ry-chat__typing span {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ry-slate-400);
  margin: 0 2px;
  animation: ry-typing 1.2s infinite;
}

.ry-chat__typing span:nth-child(2) { animation-delay: 0.2s; }
.ry-chat__typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes ry-typing {
  0%, 60%, 100% { opacity: 0.25; transform: translateY(0); }
  30%           { opacity: 1;    transform: translateY(-3px); }
}

.ry-chat__input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.ry-chat__placeholder {
  flex: 1;
  font-size: var(--ry-text-sm);
  color: var(--ry-slate-500);
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
}

.ry-chat__send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 9px;
  background: var(--ry-blue-600);
  color: #fff;
}

#ry-followup-chat {
	background: var(--ry-ink);
}

@keyframes ry-hero-rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {

  .ry-chat {
    animation: none;
  }

  .ry-chat__msg {
    transition: none;
  }
}

/* ==========================================================================
   Deposit success demo (.ry-deposit) — pure-CSS phone shell + skeleton screen
   + animated success modal. Reusable; data-amount sets the figure,
   data-loop="true" replays with a pause. Animation driven by .is-playing.
   ========================================================================== */
.ry-deposit {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* --- Phone shell (pure CSS) ---------------------------------------------- */
.ry-deposit__phone {
  position: relative;
  width: 250px;
  max-width: 100%;
  aspect-ratio: 300 / 620;
  border-radius: 44px;
  background: #0b0e1e;
  padding: 8px;
  box-shadow:
    0 40px 80px -24px rgba(0, 0, 0, 0.5),
    inset 0 0 0 2px rgba(255, 255, 255, 0.06);
}

/* Notch / camera pill */
.ry-deposit__phone::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 26px;
  border-radius: 14px;
  background: #0b0e1e;
  z-index: 2;
}

.ry-deposit__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  background: var(--ry-bg);
  overflow: hidden;
}

/* --- Skeleton placeholder content ---------------------------------------- */
.ry-deposit__skeleton {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 48px 22px 22px;
}

.ry-sk {
  display: block;
  border-radius: 8px;
  background: var(--ry-slate-200);
  position: relative;
  overflow: hidden;
}

.ry-sk--title { height: 22px; width: 60%; }
.ry-sk--line  { height: 14px; width: 100%; }
.ry-sk--short { height: 14px; width: 45%; }
.ry-sk--block { height: 90px; width: 100%; border-radius: 12px; }

/* Gentle shimmer */
.ry-sk::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 100%);
  animation: ry-sk-shimmer 1.8s infinite;
}

@keyframes ry-sk-shimmer {
  100% { transform: translateX(100%); }
}

/* --- Success modal (SweetAlert-style) ------------------------------------ */
.ry-deposit__screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 14, 30, 0.45);
  opacity: 0;
  transition: opacity 0.4s var(--ry-ease);
  pointer-events: none;
  z-index: 1;
}

.ry-deposit__modal {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 78%;
  transform: translate(-50%, -50%) scale(0.85);
  opacity: 0;
  text-align: center;
  padding: 26px 20px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.35);
  transition: opacity 0.45s var(--ry-ease), transform 0.45s var(--ry-ease);
}

/* Active state — JS adds .is-playing to .ry-deposit */
.ry-deposit.is-playing .ry-deposit__screen::before {
  opacity: 1;
}

.ry-deposit.is-playing .ry-deposit__modal {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* --- Animated check ------------------------------------------------------ */
.ry-deposit__check {
  display: inline-flex;
  width: 64px;
  height: 64px;
  margin-bottom: 14px;
}

.ry-deposit__check svg {
  width: 100%;
  height: 100%;
}

.ry-deposit__check-c {
  stroke: #0EAC78;
  stroke-width: 3;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
}

.ry-deposit__check-p {
  stroke: #0EAC78;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
}

.ry-deposit.is-playing .ry-deposit__check-c {
  transition: stroke-dashoffset 0.5s var(--ry-ease) 0.2s;
  stroke-dashoffset: 0;
}

.ry-deposit.is-playing .ry-deposit__check-p {
  transition: stroke-dashoffset 0.4s var(--ry-ease) 0.6s;
  stroke-dashoffset: 0;
}

.ry-deposit__title {
  font-family: var(--ry-font-display);
  font-size: var(--ry-text-lg);
  font-weight: 600;
  color: var(--ry-slate-900);
  margin: 0;
}

.ry-deposit__amt {
  font-family: var(--ry-font-impact);
  font-size: 1.9rem;
  line-height: 1;
  color: var(--ry-blue-600);
  margin: 8px 0 0;
}

/* --- Reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .ry-sk::after { animation: none; }

  .ry-deposit__modal,
  .ry-deposit__check-c,
  .ry-deposit__check-p,
  .ry-deposit__screen::before {
    transition: none;
  }
}

/* ==========================================================================
   Reviews block (.ry-reviews) — dark contained band, animated gradient mesh,
   contains a .ry-row. Right side: staggered review cards (.ry-revstack).
   ========================================================================== */
.ry-reviews {
  position: relative;
  background: var(--ry-ink);
  border-radius: var(--ry-radius-xl);
  padding: clamp(32px, 5vw, 64px);
  overflow: hidden;
}

/* Animated gradient-mesh + grain (matches the feature hero) */
.ry-reviews__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(40% 55% at 18% 22%, rgba(37, 99, 235, 0.28), transparent 70%),
    radial-gradient(38% 50% at 82% 30%, rgba(124, 58, 237, 0.22), transparent 70%),
    radial-gradient(45% 60% at 65% 88%, rgba(37, 99, 235, 0.18), transparent 72%);
  background-repeat: no-repeat;
  animation: ry-fhero-drift 26s ease-in-out infinite alternate;
}

.ry-reviews__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

/* Content sits above the mesh */
.ry-reviews .ry-row {
  position: relative;
  z-index: 1;
}

.ry-reviews__title {
  color: #fff;
}

.ry-reviews__sub {
  color: var(--ry-slate-300);
}

.ry-reviews__eyebrow {
  color: var(--ry-blue-400);
}

.ry-reviews__link {
  color: var(--ry-blue-300);
}

/* --- Staggered review cards ---------------------------------------------- */
.ry-revstack {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ry-revcard {
  position: absolute;
  width: 86%;
  max-width: 360px;
  padding: 20px 22px;
  border-radius: var(--ry-radius-lg);
  background: #fff;
  box-shadow: 0 20px 44px -12px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  transition: opacity 0.5s var(--ry-ease), transform 0.5s var(--ry-ease);
}

/* Staggered resting positions (fanned stack) */
.ry-revcard:nth-child(1) { transform: translateY(24px) translateX(0) rotate(0deg) scale(0.96); z-index: 3; }
.ry-revcard:nth-child(2) { transform: translateY(24px) translateX(0) rotate(0deg) scale(0.96); z-index: 2; }
.ry-revcard:nth-child(3) { transform: translateY(24px) translateX(0) rotate(0deg) scale(0.96); z-index: 1; }

.ry-revstack.is-playing .ry-revcard:nth-child(1) {
  opacity: 1;
  transform: translateY(-72px) translateX(-14px) rotate(-4deg) scale(1);
}

.ry-revstack.is-playing .ry-revcard:nth-child(2) {
  opacity: 1;
  transform: translateY(0) translateX(10px) rotate(3deg) scale(1);
  transition-delay: 0.18s;
}

.ry-revstack.is-playing .ry-revcard:nth-child(3) {
  opacity: 1;
  transform: translateY(72px) translateX(-8px) rotate(-2deg) scale(1);
  transition-delay: 0.36s;
}

.ry-revcard__stars {
  display: block;
  color: #F59E0B;
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.ry-revcard__text {
  font-size: var(--ry-text-sm);
  line-height: 1.5;
  color: var(--ry-slate-900);
  margin: 0 0 10px;
}

.ry-revcard__name {
  font-size: var(--ry-text-xs);
  font-weight: 600;
  color: var(--ry-text-muted);
  margin: 0;
}

/* --- Reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .ry-revcard {
    transition: none;
  }

  .ry-reviews__bg {
    animation: none;
  }
}

/* --- Mobile -------------------------------------------------------------- */
@media (max-width: 880px) {
  .ry-revstack,
  .ry-reviews .ry-row__media,
  .ry-ctasplit__media {
    display: none;
  }

  .ry-chat {
    box-shadow: unset;
  }

  /* Reviews: no media on mobile, so collapse the row to head + body only */
  .ry-reviews .ry-row,
  .ry-reviews .ry-row--flip {
    grid-template-areas:
      "head"
      "body";
  }
  .ry-reviews {
	padding-top: 55px;
	padding-bottom: 30px;
  }
	#ry-ctasplit {
		padding-top: 65px;
    	padding-bottom: 50px;
	}
}

/* ==========================================================================
   Phone shell (.ry-phoneshell) — pure CSS device frame. Put any content
   (GIF, video, skeleton, modal) inside .ry-phoneshell__screen.
   ========================================================================== */
.ry-phoneshell {
  position: relative;
  width: 250px;
  max-width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 44px;
  background: var(--ry-ink);
  padding: 8px;
  margin-inline: auto;
  box-shadow:
    0 40px 80px -24px rgba(0, 0, 0, 0.5),
    inset 0 0 0 2px rgba(255, 255, 255, 0.06);
}

.ry-phoneshell__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 36px;
  background: #000;
  overflow: hidden;
}

.ry-phoneshell__screen img,
.ry-phoneshell__screen video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ==========================================================================
   Estimate send demo (.ry-estsend) — pure-CSS phone, line items pop in,
   Save & Send taps, success modal confirms. data-loop="true" replays.
   ========================================================================== */
.ry-estsend {
  display: flex;
  justify-content: center;
  align-items: center;
}
/*
.ry-estsend__phone {
  position: relative;
  width: 250px;
  max-width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 44px;
  background: #0b0e1e;
  padding: 8px;
  box-shadow:
    0 40px 80px -24px rgba(0, 0, 0, 0.5),
    inset 0 0 0 2px rgba(255, 255, 255, 0.06);
}
*/

.ry-estsend__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 36px;
  background: var(--ry-bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ry-estsend__head {
  padding: 26px 20px 14px;
  border-bottom: 1px solid var(--ry-slate-200);
}

.ry-estsend__head-t {
  display: block;
  font-family: var(--ry-font-display);
  font-size: var(--ry-text-lg);
  font-weight: 600;
  color: var(--ry-slate-900);
}

.ry-estsend__head-sub {
  display: block;
  font-size: var(--ry-text-xs);
  color: var(--ry-text-muted);
  margin-top: 2px;
}

.ry-estsend__items {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  overflow: hidden;
}

.ry-estsend__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--ry-slate-50, #F8FAFC);
  border: 1px solid var(--ry-slate-200);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s var(--ry-ease), transform 0.4s var(--ry-ease);
}

.ry-estsend.is-playing .ry-estsend__item.is-in {
  opacity: 1;
  transform: none;
}

.ry-estsend__item-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--ry-blue-50);
  color: var(--ry-blue-600);
}

.ry-estsend__item-ic svg {
  width: 16px;
  height: 16px;
}

.ry-estsend__item-t {
  display: block;
  font-size: var(--ry-text-sm);
  font-weight: 600;
  color: var(--ry-slate-900);
  line-height: 1.2;
}

.ry-estsend__item-m {
  display: block;
  font-size: var(--ry-text-xs);
  color: var(--ry-text-muted);
  margin-top: 2px;
}

/* Save & Send button — always visible, pinned bottom */
.ry-estsend__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 16px 16px;
  padding: 14px;
  border-radius: 12px;
  background: var(--ry-blue-600);
  color: #fff;
  font-family: var(--ry-font-body);
  font-size: var(--ry-text-sm);
  font-weight: 600;
  border: none;
  transition: transform 0.12s var(--ry-ease), background 0.12s var(--ry-ease);
}

.ry-estsend__btn i {
  font-size: 16px;
}

/* Tapped state */
.ry-estsend.is-tapped .ry-estsend__btn {
  transform: scale(0.95);
  background: var(--ry-blue-700);
}

/* Success modal */
.ry-estsend__screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 14, 30, 0.45);
  opacity: 0;
  transition: opacity 0.4s var(--ry-ease);
  pointer-events: none;
  z-index: 1;
}

.ry-estsend.is-sent .ry-estsend__screen::before {
  opacity: 1;
}

.ry-estsend__modal {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 80%;
  transform: translate(-50%, -50%) scale(0.85);
  opacity: 0;
  text-align: center;
  padding: 26px 20px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.35);
  transition: opacity 0.45s var(--ry-ease), transform 0.45s var(--ry-ease);
}

.ry-estsend.is-sent .ry-estsend__modal {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.ry-estsend__check {
  display: inline-flex;
  width: 60px;
  height: 60px;
  margin-bottom: 12px;
}

.ry-estsend__check svg { width: 100%; height: 100%; }

.ry-estsend__check-c {
  stroke: #0EAC78;
  stroke-width: 3;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
}

.ry-estsend__check-p {
  stroke: #0EAC78;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
}

.ry-estsend.is-sent .ry-estsend__check-c {
  transition: stroke-dashoffset 0.5s var(--ry-ease) 0.2s;
  stroke-dashoffset: 0;
}

.ry-estsend.is-sent .ry-estsend__check-p {
  transition: stroke-dashoffset 0.4s var(--ry-ease) 0.6s;
  stroke-dashoffset: 0;
}

.ry-estsend__modal-t {
  font-family: var(--ry-font-display);
  font-size: var(--ry-text-lg);
  font-weight: 600;
  color: var(--ry-slate-900);
  margin: 0;
}

.ry-estsend__modal-d {
  font-size: var(--ry-text-sm);
  color: var(--ry-text-muted);
  margin: 6px 0 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ry-estsend__item,
  .ry-estsend__btn,
  .ry-estsend__modal,
  .ry-estsend__check-c,
  .ry-estsend__check-p,
  .ry-estsend__screen::before {
    transition: none;
  }
}

/* ==========================================================================
   Visualizer value props (.ry-vizvalue) — 2-col benefit list above the
   sliders. Sells the "why" before the sliders show the "what".
   ========================================================================== */
.ry-vizvalue {
  margin: clamp(28px, 4vw, 44px) auto clamp(36px, 5vw, 56px);
  max-width: 940px;
}

.ry-vizvalue__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 2.4vw, 28px) clamp(28px, 4vw, 56px);
}

.ry-vizvalue__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}

.ry-vizvalue__ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 100%;
  background: var(--ry-blue-50);
  color: var(--ry-blue-600);
}

.ry-vizvalue__ic svg {
  width: 20px;
  height: 20px;
}

.ry-vizvalue__t {
  display: block;
  font-family: var(--ry-font-display);
  font-size: var(--ry-text-lg);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ry-slate-900);
}

.ry-vizvalue__d {
  display: block;
  font-size: var(--ry-text-base);
  line-height: 1.5;
  color: var(--ry-text-muted);
  margin-top: 5px;
}

@media (max-width: 680px) {
  .ry-vizvalue__list {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Service plan demo (.ry-splan) — create once, visits auto-schedule,
   invoice auto-sends. Reusable across recurring-service trades. data-loop.
   ========================================================================== */
.ry-splan {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ry-splan__phone {
  position: relative;
  width: 250px;
  max-width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 44px;
  background: #0b0e1e;
  padding: 8px;
  box-shadow:
    0 40px 80px -24px rgba(0, 0, 0, 0.5),
    inset 0 0 0 2px rgba(255, 255, 255, 0.06);
}

.ry-splan__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 36px;
  background: var(--ry-bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 26px 16px 16px;
  gap: 14px;
}

.ry-splan__head {
  text-align: left;
}

.ry-splan__head-t {
  display: block;
  font-family: var(--ry-font-display);
  font-size: var(--ry-text-lg);
  font-weight: 600;
  color: var(--ry-slate-900);
}

.ry-splan__head-sub {
  display: block;
  font-size: var(--ry-text-xs);
  color: var(--ry-text-muted);
  margin-top: 2px;
}

/* Plan card */
.ry-splan__plan {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: var(--ry-blue-50);
  border: 1px solid var(--ry-blue-100, #DBEAFE);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s var(--ry-ease), transform 0.4s var(--ry-ease);
}

.ry-splan.is-step1 .ry-splan__plan {
  opacity: 1;
  transform: none;
}

.ry-splan__plan-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--ry-blue-600);
  color: #fff;
}

.ry-splan__plan-ic svg { width: 18px; height: 18px; }

.ry-splan__plan-t {
  display: block;
  font-size: var(--ry-text-sm);
  font-weight: 600;
  color: var(--ry-slate-900);
  line-height: 1.2;
}

.ry-splan__plan-m {
  display: block;
  font-size: var(--ry-text-xs);
  color: var(--ry-text-muted);
  margin-top: 2px;
}

/* Label */
.ry-splan__label {
  font-size: var(--ry-text-xs);
  font-weight: 600;
  color: var(--ry-text-muted);
  margin: 0;
  opacity: 0;
  transition: opacity 0.3s var(--ry-ease);
}

.ry-splan.is-step2 .ry-splan__label { opacity: 1; }

/* Visit chips */
.ry-splan__visits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ry-splan__visit {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 10px;
  background: var(--ry-slate-50, #F8FAFC);
  border: 1px solid var(--ry-slate-200);
  font-size: var(--ry-text-xs);
  font-weight: 600;
  color: var(--ry-slate-700);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.3s var(--ry-ease), transform 0.3s var(--ry-ease);
}

.ry-splan.is-step2 .ry-splan__visit.is-in {
  opacity: 1;
  transform: none;
}

/* Invoice card */
.ry-splan__invoice {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 16px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--ry-slate-200);
  box-shadow: 0 12px 26px -10px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s var(--ry-ease), transform 0.4s var(--ry-ease);
}

.ry-splan.is-step3 .ry-splan__invoice {
  opacity: 1;
  transform: none;
}

.ry-splan__invoice-t {
  display: block;
  font-size: var(--ry-text-sm);
  font-weight: 600;
  color: var(--ry-slate-900);
  line-height: 1.2;
}

.ry-splan__invoice-m {
  display: block;
  font-size: var(--ry-text-xs);
  color: var(--ry-text-muted);
  margin-top: 2px;
}

.ry-splan__invoice-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(14, 172, 120, 0.12);
  color: #0EAC78;
  font-size: var(--ry-text-xs);
  font-weight: 700;
}

.ry-splan__invoice-badge svg { width: 12px; height: 12px; }

@media (prefers-reduced-motion: reduce) {
  .ry-splan__plan,
  .ry-splan__label,
  .ry-splan__visit,
  .ry-splan__invoice {
    transition: none;
  }
}

/* ==========================================================================
   Route optimization demo (.ry-routes) — pins drop, optimized route draws.
   Reusable across route-based trades. data-loop="true" replays.
   ========================================================================== */
.ry-routes {
  display: flex;
  justify-content: center;
}

.ry-routes__panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  border-radius: var(--ry-radius-xl);
  background: var(--ry-ink);
  padding: 20px;
  overflow: hidden;
}

.ry-routes__svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Route line draws in */
.ry-routes__line {
  stroke: var(--ry-blue-400);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

.ry-routes.is-playing .ry-routes__line {
  transition: stroke-dashoffset 1.6s var(--ry-ease) 0.9s;
  stroke-dashoffset: 0;
}

/* Pins drop in */
.ry-routes__pin {
  fill: var(--ry-blue-600);
  stroke: #fff;
  stroke-width: 2.5;
  opacity: 0;
  transform: translateY(-10px);
  transform-origin: center;
  transform-box: fill-box;
  transition: opacity 0.3s var(--ry-ease), transform 0.3s var(--ry-ease);
  transition-delay: calc(var(--d) * 0.1s);
}

.ry-routes.is-playing .ry-routes__pin {
  opacity: 1;
  transform: none;
}

.ry-routes__stat {
  margin-top: 14px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.5s var(--ry-ease) 2.4s;
}

.ry-routes.is-playing .ry-routes__stat { opacity: 1; }

.ry-routes__stat-num {
  display: block;
  font-family: var(--ry-font-impact);
  font-size: 1.6rem;
  line-height: 1;
  color: #fff;
}

.ry-routes__stat-d {
  display: block;
  font-size: var(--ry-text-sm);
  color: var(--ry-slate-300);
  margin-top: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .ry-routes__line,
  .ry-routes__pin,
  .ry-routes__stat {
    transition: none;
  }
}

/* ==========================================================================
   Job complete → send invoice demo (.ry-jobflow) — mark complete, prompt to
   send the invoice, success confirms. Reusable. data-loop="true" replays.
   ========================================================================== */
.ry-jobflow {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ry-jobflow__phone {
  position: relative;
  width: 250px;
  max-width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 44px;
  background: #0b0e1e;
  padding: 8px;
  box-shadow:
    0 40px 80px -24px rgba(0, 0, 0, 0.5),
    inset 0 0 0 2px rgba(255, 255, 255, 0.06);
}

.ry-jobflow__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 36px;
  background: var(--ry-bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ry-jobflow__head {
  padding: 26px 20px 14px;
  border-bottom: 1px solid var(--ry-slate-200);
}

.ry-jobflow__head-t {
  display: block;
  font-family: var(--ry-font-display);
  font-size: var(--ry-text-lg);
  font-weight: 600;
  color: var(--ry-slate-900);
}

.ry-jobflow__head-sub {
  display: block;
  font-size: var(--ry-text-xs);
  color: var(--ry-text-muted);
  margin-top: 2px;
}

.ry-jobflow__items {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  overflow: hidden;
}

.ry-jobflow__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--ry-slate-50, #F8FAFC);
  border: 1px solid var(--ry-slate-200);
}

.ry-jobflow__item-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(14, 172, 120, 0.12);
  color: #0EAC78;
}

.ry-jobflow__item-ic svg { width: 14px; height: 14px; }

.ry-jobflow__item-t {
  display: block;
  font-size: var(--ry-text-sm);
  font-weight: 600;
  color: var(--ry-slate-900);
  line-height: 1.2;
}

.ry-jobflow__item-m {
  display: block;
  font-size: var(--ry-text-xs);
  color: var(--ry-text-muted);
  margin-top: 2px;
}

/* Mark Complete button */
.ry-jobflow__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 16px 16px;
  padding: 14px;
  border-radius: 12px;
  background: #0EAC78;
  color: #fff;
  font-family: var(--ry-font-body);
  font-size: var(--ry-text-sm);
  font-weight: 600;
  border: none;
  transition: transform 0.12s var(--ry-ease), filter 0.12s var(--ry-ease);
}

.ry-jobflow__btn i { font-size: 16px; }

.ry-jobflow.is-tapped-complete .ry-jobflow__btn {
  transform: scale(0.95);
  filter: brightness(0.9);
}

/* Backdrop dim (shared by prompt + modal) */
.ry-jobflow__screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 14, 30, 0.45);
  opacity: 0;
  transition: opacity 0.35s var(--ry-ease);
  pointer-events: none;
  z-index: 1;
}

.ry-jobflow.is-prompting .ry-jobflow__screen::before,
.ry-jobflow.is-sent .ry-jobflow__screen::before {
  opacity: 1;
}

/* Prompt popup */
.ry-jobflow__prompt {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 16px;
  width: calc(100% - 32px);
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  text-align: center;
  padding: 20px 18px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.35);
  transition: opacity 0.4s var(--ry-ease), transform 0.4s var(--ry-ease);
}

.ry-jobflow.is-prompting .ry-jobflow__prompt {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Hide the prompt once we move to the sent state */
.ry-jobflow.is-sent .ry-jobflow__prompt {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
}

.ry-jobflow__prompt-t {
  font-family: var(--ry-font-display);
  font-size: var(--ry-text-base);
  font-weight: 600;
  color: var(--ry-slate-900);
  margin: 0;
}

.ry-jobflow__prompt-d {
  font-size: var(--ry-text-xs);
  color: var(--ry-text-muted);
  margin: 4px 0 14px;
}

.ry-jobflow__prompt-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ry-jobflow__prompt-btn {
  display: block;
  padding: 11px;
  border-radius: 10px;
  font-size: var(--ry-text-sm);
  font-weight: 600;
}

.ry-jobflow__prompt-btn--primary {
  background: var(--ry-blue-600);
  color: #fff;
  transition: transform 0.12s var(--ry-ease), background 0.12s var(--ry-ease);
}

.ry-jobflow.is-tapped-send .ry-jobflow__prompt-btn--primary {
  transform: scale(0.95);
  background: var(--ry-blue-700);
}

.ry-jobflow__prompt-btn--ghost {
  background: var(--ry-slate-100, #F1F5F9);
  color: var(--ry-slate-700);
}

/* Success modal */
.ry-jobflow__modal {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 80%;
  transform: translate(-50%, -50%) scale(0.85);
  opacity: 0;
  text-align: center;
  padding: 26px 20px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.35);
  transition: opacity 0.45s var(--ry-ease), transform 0.45s var(--ry-ease);
}

.ry-jobflow.is-sent .ry-jobflow__modal {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.ry-jobflow__check {
  display: inline-flex;
  width: 60px;
  height: 60px;
  margin-bottom: 12px;
}

.ry-jobflow__check svg { width: 100%; height: 100%; }

.ry-jobflow__check-c {
  stroke: #0EAC78;
  stroke-width: 3;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
}

.ry-jobflow__check-p {
  stroke: #0EAC78;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
}

.ry-jobflow.is-sent .ry-jobflow__check-c {
  transition: stroke-dashoffset 0.5s var(--ry-ease) 0.2s;
  stroke-dashoffset: 0;
}

.ry-jobflow.is-sent .ry-jobflow__check-p {
  transition: stroke-dashoffset 0.4s var(--ry-ease) 0.6s;
  stroke-dashoffset: 0;
}

.ry-jobflow__modal-t {
  font-family: var(--ry-font-display);
  font-size: var(--ry-text-lg);
  font-weight: 600;
  color: var(--ry-slate-900);
  margin: 0;
}

.ry-jobflow__modal-d {
  font-size: var(--ry-text-sm);
  color: var(--ry-text-muted);
  margin: 6px 0 0;
}

@media (prefers-reduced-motion: reduce) {
  .ry-jobflow__btn,
  .ry-jobflow__prompt,
  .ry-jobflow__prompt-btn--primary,
  .ry-jobflow__modal,
  .ry-jobflow__check-c,
  .ry-jobflow__check-p,
  .ry-jobflow__screen::before {
    transition: none;
  }
}

/* ==========================================================================
   Wide card shell (.ry-widecard) — reusable wide container for demos that
   need more room than the phone shell. White rounded panel with depth.
   ========================================================================== */
.ry-widecard {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(20px, 3vw, 40px);
  max-width: 920px;
  margin: clamp(28px, 4vw, 44px) auto 0;
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--ry-radius-xl);
  background: var(--ry-ink);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   AI Estimator demo (.ry-estimator) — staged via .is-step1..4.
   ========================================================================== */
.ry-estimator__input {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ry-estimator__photo {
  position: relative;
  border-radius: var(--ry-radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
}

.ry-estimator__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ry-estimator__photo-tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(11, 14, 30, 0.72);
  color: #fff;
  font-size: var(--ry-text-xs);
  font-weight: 600;
}

.ry-estimator__photo-tag i { font-size: 13px; }

.ry-estimator__prompt {
  padding: 14px 16px;
  border-radius: var(--ry-radius-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ry-estimator__prompt-label {
  display: block;
  font-size: var(--ry-text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 4px;
}

.ry-estimator__prompt-text {
  font-size: var(--ry-text-sm);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
}

/* --- Flow column --------------------------------------------------------- */
.ry-estimator__flow {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 320px;
}

/* All flow steps start hidden; JS reveals via state classes */
.ry-estimator__loader,
.ry-estimator__question,
.ry-estimator__result {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ry-ease), transform 0.4s var(--ry-ease);
  pointer-events: none;
}

/* Stack steps in the same area so they swap in place */
.ry-estimator__loader,
.ry-estimator__question {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Step visibility */
.ry-estimator.is-step1 .ry-estimator__loader--analyze { opacity: 1; transform: none; }
.ry-estimator.is-step2 .ry-estimator__question        { opacity: 1; transform: none; }
.ry-estimator.is-step3 .ry-estimator__loader--create  { opacity: 1; transform: none; }
.ry-estimator.is-step4 .ry-estimator__result {
  opacity: 1;
  transform: none;
  position: relative;
}

/* --- Loader -------------------------------------------------------------- */
.ry-estimator__loader {
  align-items: center;
  text-align: center;
  gap: 12px;
}

.ry-estimator__spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid var(--ry-blue-100, #DBEAFE);
  border-top-color: var(--ry-blue-600);
  animation: ry-est-spin 0.8s linear infinite;
}

@keyframes ry-est-spin {
  to { transform: rotate(360deg); }
}

.ry-estimator__loader-txt {
  font-size: var(--ry-text-sm);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
}

/* --- Question ------------------------------------------------------------ */
.ry-estimator__q-text {
  font-family: var(--ry-font-display);
  font-size: var(--ry-text-lg);
  font-weight: 600;
  color: #fff;
  margin: 0 0 14px;
  text-align: center;
}

.ry-estimator__choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ry-estimator__choice {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  font-size: var(--ry-text-sm);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  transition: transform 0.12s var(--ry-ease), background 0.12s var(--ry-ease), border-color 0.12s var(--ry-ease), color 0.12s var(--ry-ease);
}

.ry-estimator__choice--custom {
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
}

/* Picked choice gets selected when JS adds .is-picking */
.ry-estimator.is-picking .ry-estimator__choice.is-pick {
  transform: scale(0.97);
  background: var(--ry-blue-600);
  border-color: var(--ry-blue-600);
  color: #fff;
}

/* --- Result -------------------------------------------------------------- */
.ry-estimator__result-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--ry-text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ry-purple-600);
  margin: 0 0 12px;
}

.ry-estimator__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ry-estimator__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s var(--ry-ease), transform 0.35s var(--ry-ease);
}

.ry-estimator.is-step4 .ry-estimator__item.is-in {
  opacity: 1;
  transform: none;
}

.ry-estimator__item-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.12);
  color: var(--ry-purple-600);
}

.ry-estimator__item-check svg { width: 13px; height: 13px; }

.ry-estimator__item-t {
  display: block;
  font-size: var(--ry-text-sm);
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.ry-estimator__item-m {
  display: block;
  font-size: var(--ry-text-xs);
  color: rgba(255, 255, 255, 0.55);
  margin-top: 1px;
}

/* --- Save to estimate button --------------------------------------------- */
.ry-estimator__save {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 14px;
  padding: 13px;
  border-radius: 12px;
  background: var(--ry-blue-600);
  color: #fff;
  font-family: var(--ry-font-body);
  font-size: var(--ry-text-sm);
  font-weight: 600;
  border: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s var(--ry-ease), transform 0.12s var(--ry-ease), background 0.12s var(--ry-ease);
}

.ry-estimator__save i { font-size: 16px; }

.ry-estimator.is-step4 .ry-estimator__save {
  opacity: 1;
  transform: none;
}

.ry-estimator.is-saving .ry-estimator__save {
  transform: scale(0.96);
  background: var(--ry-blue-700);
}

/* --- Success modal ------------------------------------------------------- */
.ry-widecard {
  /* allow the modal to overlay the whole card */
}

.ry-estimator__modal {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  width: min(300px, 80%);
  transform: translate(-50%, -50%) scale(0.85);
  opacity: 0;
  text-align: center;
  padding: 28px 22px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 60px -16px rgba(11, 14, 30, 0.4);
  transition: opacity 0.45s var(--ry-ease), transform 0.45s var(--ry-ease);
  pointer-events: none;
}

.ry-estimator.is-saved .ry-estimator__modal {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Dim the card behind the modal */
.ry-widecard::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--ry-radius-xl);
  background: rgba(11, 14, 30, 0.35);
  opacity: 0;
  transition: opacity 0.4s var(--ry-ease);
  pointer-events: none;
  z-index: 4;
}

.ry-estimator.is-saved .ry-widecard::after {
  opacity: 1;
}

.ry-estimator__modal-check {
  display: inline-flex;
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
}

.ry-estimator__modal-check svg { width: 100%; height: 100%; }

.ry-estimator__modal-c {
  stroke: #0EAC78;
  stroke-width: 3;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
}

.ry-estimator__modal-p {
  stroke: #0EAC78;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
}

.ry-estimator.is-saved .ry-estimator__modal-c {
  transition: stroke-dashoffset 0.5s var(--ry-ease) 0.2s;
  stroke-dashoffset: 0;
}

.ry-estimator.is-saved .ry-estimator__modal-p {
  transition: stroke-dashoffset 0.4s var(--ry-ease) 0.6s;
  stroke-dashoffset: 0;
}

.ry-estimator__modal-t {
  font-family: var(--ry-font-display);
  font-size: var(--ry-text-lg);
  font-weight: 600;
  color: var(--ry-slate-900);
  margin: 0;
}

.ry-estimator__modal-d {
  font-size: var(--ry-text-sm);
  color: var(--ry-text-muted);
  margin: 6px 0 0;
}

.ry-estimator__input--noimg {
  grid-template-columns: 1fr;
}
.ry-estimator__input--noimg .ry-estimator__prompt {
  width: 100%;
}

/* --- Reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .ry-estimator__loader,
  .ry-estimator__question,
  .ry-estimator__result,
  .ry-estimator__item,
  .ry-estimator__choice,
  .ry-estimator__save,
  .ry-estimator__modal,
  .ry-estimator__modal-c,
  .ry-estimator__modal-p,
  .ry-widecard::after {
    transition: none;
  }
  .ry-estimator__spinner { animation: none; }
}

/* --- Mobile -------------------------------------------------------------- */
@media (max-width: 760px) {
  .ry-widecard {
    grid-template-columns: 1fr;
  }

  .ry-estimator__flow {
    min-height: 300px;
  }
}

/* ==========================================================================
   AI Estimator explainer — centered text, then horizontal steps with an icon
   on top, a number badge, and a dashed line connecting each. Stacks on mobile.
   ========================================================================== */
.ry-esthow__text {
  max-width: 760px;
  margin: clamp(24px, 4vw, 36px) auto 0;
  text-align: center;
}
.ry-esthow__text .ry-row__title {
  margin-top: 0;
}

.ry-esteps {
  list-style: none;
  margin: clamp(32px, 5vw, 52px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 3vw, 32px);
}
.ry-estep {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 8px;
}

/* Dashed connector between the icon circles (desktop only) */
.ry-estep:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 32px;
  left: calc(50% + 42px);
  right: calc(-50% + 42px);
  border-top: 2px dashed var(--ry-slate-300, #CBD5E1);
  z-index: 0;
}

/* Icon circle — SVG masked so it inherits the brand color */
.ry-estep__ic {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.10);
}
.ry-estep__ic::before {
  content: "";
  width: 30px;
  height: 30px;
  background-color: var(--ry-blue-600);
  -webkit-mask: var(--ry-icon) center / contain no-repeat;
  mask: var(--ry-icon) center / contain no-repeat;
}

/* Number badge on the circle */
.ry-estep__num {
  position: absolute;
  top: -4px;
  right: -4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ry-blue-600);
  color: #fff;
  font-family: var(--ry-font-display);
  font-size: 13px;
  font-weight: 700;
  border: 2px solid #fff;
}

.ry-estep__t {
  display: block;
  font-family: var(--ry-font-display);
  font-size: var(--ry-text-base);
  font-weight: 600;
  color: var(--ry-slate-900);
  line-height: 1.3;
}
.ry-estep__d {
  display: block;
  font-size: var(--ry-text-sm);
  color: var(--ry-text-muted);
  margin-top: 6px;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .ry-esteps {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 420px;
    margin-inline: auto;
  }
  .ry-estep:not(:last-child)::before {
    display: none;
  }
}

/* ==========================================================================
   Automations demo (.ry-autos) — automated reminders firing on their own.
   One card at a time: estimate reminder, then past-due reminder swaps in.
   data-loop="true" replays.
   ========================================================================== */
.ry-autos {
  display: flex;
  justify-content: center;
  align-items: center;
}
.ry-autos__phone {
  position: relative;
  width: 250px;
  max-width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 44px;
  background: #0b0e1e;
  padding: 8px;
  box-shadow:
    0 40px 80px -24px rgba(0, 0, 0, 0.5),
    inset 0 0 0 2px rgba(255, 255, 255, 0.06);
}
.ry-autos__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 36px;
  background: var(--ry-bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ry-autos__head {
  padding: 26px 20px 14px;
  border-bottom: 1px solid var(--ry-slate-200);
}
.ry-autos__head-t {
  display: block;
  font-family: var(--ry-font-display);
  font-size: var(--ry-text-lg);
  font-weight: 600;
  color: var(--ry-slate-900);
}
.ry-autos__head-sub {
  display: block;
  font-size: var(--ry-text-xs);
  color: var(--ry-text-muted);
  margin-top: 2px;
}
.ry-autos__feed {
  position: relative;
  flex: 1;
  padding: 16px;
}
.ry-autos__msg {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px;
  border-radius: 14px;
  background: var(--ry-slate-50, #F8FAFC);
  border: 1px solid var(--ry-slate-200);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ry-ease), transform 0.5s var(--ry-ease);
  pointer-events: none;
}
.ry-autos.is-step1 .ry-autos__msg[data-step="1"],
.ry-autos.is-step2 .ry-autos__msg[data-step="2"] {
  opacity: 1;
  transform: none;
}
.ry-autos__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--ry-blue-600);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ry-autos__badge i { font-size: 12px; }
.ry-autos__badge--due {
  background: rgba(245, 158, 11, 0.14);
  color: #B45309;
}
.ry-autos__msg-to {
  font-size: var(--ry-text-xs);
  font-weight: 700;
  color: var(--ry-slate-900);
}
.ry-autos__bubble {
  font-size: var(--ry-text-xs);
  line-height: 1.5;
  color: var(--ry-slate-700);
}
.ry-autos__sent {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  color: #0EAC78;
}
.ry-autos__sent svg { width: 11px; height: 11px; }
.ry-autos__via {
  font-size: 10px;
  color: var(--ry-text-muted);
}
@media (prefers-reduced-motion: reduce) {
  .ry-autos__msg { transition: none; }
}
/* ==========================================================================
   AI Visualizer demo (.ry-vizdemo) — pure-CSS phone showing upload →
   generating loader → before/after reveal. data-loop="true" replays.
   Driven by state classes: .is-building, .is-revealed.
   ========================================================================== */
.ry-vizdemo {
  display: flex;
  justify-content: center;
  align-items: center;
}
.ry-vizdemo__phone {
  position: relative;
  width: 250px;
  max-width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 40px;
  background: #0b0e1e;
  padding: 8px;
  box-shadow:
    0 40px 80px -24px rgba(0, 0, 0, 0.5),
    inset 0 0 0 2px rgba(255, 255, 255, 0.06);
}
.ry-vizdemo__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  background: var(--ry-bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ry-vizdemo__head {
  padding: 22px 18px 12px;
  border-bottom: 1px solid var(--ry-slate-200);
}
.ry-vizdemo__head-t {
  display: block;
  font-family: var(--ry-font-display);
  font-size: var(--ry-text-base);
  font-weight: 600;
  color: var(--ry-slate-900);
}
.ry-vizdemo__head-sub {
  display: block;
  font-size: var(--ry-text-xs);
  color: var(--ry-text-muted);
  margin-top: 2px;
}

/* Image stage — before shows first, after wipes in on reveal */
.ry-vizdemo__stage {
  position: relative;
  margin: 0 14px 14px;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--ry-slate-200);
}
.ry-vizdemo__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ry-vizdemo__img--after {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.1s var(--ry-ease);
}
.ry-vizdemo.is-revealed .ry-vizdemo__img--after {
  clip-path: inset(0 0 0 0);
}

/* Reveal flash — soft purple bloom as the new floor lands */
.ry-vizdemo__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  background: rgba(124, 58, 237, 0.25);
  opacity: 0;
  pointer-events: none;
}
.ry-vizdemo.is-revealed .ry-vizdemo__stage::after {
  animation: ry-vizdemo-flash 0.5s var(--ry-ease) 0.9s;
}
@keyframes ry-vizdemo-flash {
  0%   { opacity: 0; }
  40%  { opacity: 1; }
  100% { opacity: 0; }
}

/* Sweeping scan line — glowing bar rides the reveal edge */
.ry-vizdemo__scan {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -4px;
  width: 4px;
  z-index: 3;
  background: rgba(124, 58, 237, 0.95);
  box-shadow:
    0 0 12px 2px rgba(124, 58, 237, 0.8),
    0 0 24px 8px rgba(124, 58, 237, 0.45),
    0 0 2px 1px #fff;
  opacity: 0;
}
.ry-vizdemo.is-revealed .ry-vizdemo__scan {
  animation: ry-vizdemo-scan 1.1s var(--ry-ease) forwards;
}
@keyframes ry-vizdemo-scan {
  0%   { opacity: 1; left: -4px; }
  90%  { opacity: 1; }
  100% { opacity: 0; left: 100%; }
}

.ry-vizdemo__tag {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(11, 14, 30, 0.66);
  opacity: 0;
  transition: opacity 0.3s var(--ry-ease);
}
.ry-vizdemo__tag--before {
  opacity: 1;
}
.ry-vizdemo.is-revealed .ry-vizdemo__tag--before {
  opacity: 0;
}
.ry-vizdemo.is-revealed .ry-vizdemo__tag--after {
  opacity: 1;
  transition-delay: 0.6s;
}

/* Details line (the "prompt") */
.ry-vizdemo__detail {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--ry-slate-50, #F8FAFC);
  border: 1px solid var(--ry-slate-200);
}
.ry-vizdemo__detail-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 7px;
  background: var(--ry-blue-50);
  color: var(--ry-blue-600);
}
.ry-vizdemo__detail-ic i { font-size: 14px; }
.ry-vizdemo__detail-txt {
  font-size: var(--ry-text-xs);
  color: var(--ry-slate-900);
  line-height: 1.3;
}

/* Generate button */
.ry-vizdemo__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px 14px 14px;
  padding: 12px;
  border-radius: 11px;
  background: var(--ry-purple-600);
  color: #fff;
  font-family: var(--ry-font-body);
  font-size: var(--ry-text-sm);
  font-weight: 600;
  border: none;
  transition: transform 0.12s var(--ry-ease), opacity 0.3s var(--ry-ease);
}
.ry-vizdemo__btn i { font-size: 15px; }
.ry-vizdemo.is-building .ry-vizdemo__btn,
.ry-vizdemo.is-revealed .ry-vizdemo__btn {
  opacity: 0;
  pointer-events: none;
}

/* Loader overlay (shown while building) */
.ry-vizdemo__loader {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border-radius: 11px;
  background: var(--ry-purple-50, #F3EFFE);
  opacity: 0;
  transition: opacity 0.3s var(--ry-ease);
  pointer-events: none;
}
.ry-vizdemo.is-building .ry-vizdemo__loader {
  opacity: 1;
}
.ry-vizdemo__spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--ry-purple-200, #DDD6FE);
  border-top-color: var(--ry-purple-600);
  animation: ry-vizdemo-spin 0.7s linear infinite;
}
.ry-vizdemo__label {
  display: block;
  margin: 14px 14px 6px;
  font-family: var(--ry-font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ry-text-muted);
}
@keyframes ry-vizdemo-spin {
  to { transform: rotate(360deg); }
}
.ry-vizdemo__loader-txt {
  font-size: var(--ry-text-xs);
  font-weight: 600;
  color: var(--ry-purple-700, #6D28D9);
}

@media (prefers-reduced-motion: reduce) {
  .ry-vizdemo__img--after,
  .ry-vizdemo__tag,
  .ry-vizdemo__btn,
  .ry-vizdemo__loader { transition: none; }
  .ry-vizdemo__spinner,
  .ry-vizdemo__scan,
  .ry-vizdemo__stage::after { animation: none; }
}

/* ==========================================================================
   Job costing / profit report demo (.ry-jobcost) — animated profit report in
   the standard phone shell. Margin + figures count up, bars reveal, on scroll.
   data-loop="true" replays with a pause. State class: .is-playing.
   ========================================================================== */
.ry-jobcost {
  display: flex;
  justify-content: center;
  align-items: center;
}
.ry-jobcost__phone {
  position: relative;
  width: 250px;
  max-width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 40px;
  background: #0b0e1e;
  padding: 8px;
  box-shadow:
    0 40px 80px -24px rgba(0, 0, 0, 0.5),
    inset 0 0 0 2px rgba(255, 255, 255, 0.06);
}
.ry-jobcost__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  background: var(--ry-bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 14px 14px;
}
 
/* Header */
.ry-jobcost__head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ry-jobcost__head-t {
  font-family: var(--ry-font-display);
  font-size: var(--ry-text-base);
  font-weight: 600;
  color: var(--ry-slate-900);
}
.ry-jobcost__pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  color: #0EAC78;
  background: rgba(14, 172, 120, 0.12);
}
.ry-jobcost__pill i { font-size: 12px; }
.ry-jobcost__head-sub {
  display: block;
  font-size: 10px;
  color: var(--ry-text-muted);
  margin-top: 4px;
  line-height: 1.3;
}
 
/* Margin headline */
.ry-jobcost__margin {
  padding-top: 6px;
  border-top: 1px solid var(--ry-slate-200);
}
.ry-jobcost__margin-label {
  display: block;
  font-size: var(--ry-text-xs);
  color: var(--ry-text-muted);
}
.ry-jobcost__margin-num {
  display: block;
  font-family: var(--ry-font-impact);
  font-size: 2rem;
  line-height: 1.05;
  color: #0EAC78;
  margin: 2px 0 8px;
}
.ry-jobcost__margin-bar {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: var(--ry-slate-200);
  overflow: hidden;
}
.ry-jobcost__margin-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: #0EAC78;
  transition: width 1.1s var(--ry-ease) 0.2s;
}
.ry-jobcost.is-playing .ry-jobcost__margin-fill {
  width: var(--ry-fill);
}
 
/* KPI row */
.ry-jobcost__kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.ry-jobcost__kpi {
  padding: 8px 6px;
  border-radius: 10px;
  background: var(--ry-slate-50, #F8FAFC);
  border: 1px solid var(--ry-slate-200);
  text-align: center;
}
.ry-jobcost__kpi-num {
  display: block;
  font-family: var(--ry-font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--ry-slate-900);
  line-height: 1.1;
}
.ry-jobcost__kpi-num--cost { color: #DC2626; }
.ry-jobcost__kpi-num--profit { color: #0EAC78; }
.ry-jobcost__kpi-label {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ry-text-muted);
  margin-top: 2px;
}
 
/* Cost breakdown */
.ry-jobcost__breakdown {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px;
  border-radius: 10px;
  background: var(--ry-slate-50, #F8FAFC);
  border: 1px solid var(--ry-slate-200);
}
.ry-jobcost__breakdown-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ry-slate-900);
}
.ry-jobcost__row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 6px;
}
.ry-jobcost__row-label {
  font-size: 9px;
  color: var(--ry-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ry-jobcost__row-track {
  height: 7px;
  border-radius: 999px;
  background: var(--ry-slate-200);
  overflow: hidden;
}
.ry-jobcost__row-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--ry-blue-600);
  transition: width 0.7s var(--ry-ease);
  transition-delay: var(--ry-delay, 0s);
}
.ry-jobcost.is-playing .ry-jobcost__row-fill {
  width: var(--ry-fill);
}
.ry-jobcost__row-val {
  font-size: 9px;
  font-weight: 600;
  color: var(--ry-slate-900);
  white-space: nowrap;
}
.ry-jobcost__onsite {
  font-size: 9px;
  color: var(--ry-text-muted);
  padding-top: 2px;
  border-top: 1px solid var(--ry-slate-200);
}
 
/* Net profit footer */
.ry-jobcost__net {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding: 11px 12px;
  border-radius: 11px;
  background: rgba(14, 172, 120, 0.10);
  border: 1px solid rgba(14, 172, 120, 0.22);
}
.ry-jobcost__net-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(14, 172, 120, 0.16);
  color: #0EAC78;
}
.ry-jobcost__net-ic i { font-size: 15px; }
.ry-jobcost__net-txt { flex: 1; }
.ry-jobcost__net-t {
  display: block;
  font-size: var(--ry-text-sm);
  font-weight: 700;
  color: var(--ry-slate-900);
  line-height: 1.1;
}
.ry-jobcost__net-sub {
  display: block;
  font-size: 9px;
  color: var(--ry-text-muted);
  margin-top: 1px;
}
.ry-jobcost__net-num {
  font-family: var(--ry-font-impact);
  font-size: 1.25rem;
  color: #0EAC78;
  white-space: nowrap;
}
 
@media (prefers-reduced-motion: reduce) {
  .ry-jobcost__margin-fill,
  .ry-jobcost__row-fill {
    transition: none;
  }
}

/* ==========================================================================
   DARK DEMO TREATMENT (.ry-demo--dark) — flips a phone demo's screen to dark.
   Add alongside the demo's base class, e.g. class="ry-vizdemo ry-demo--dark".
   Screen bg goes dark; text, borders, and card surfaces flip to light-on-dark.
   Accent colors (blue/green/purple/red) are kept and brightened for contrast.
   ========================================================================== */

/* --- Shared dark tokens for inside the screen --------------------------- */
.ry-demo--dark {
  --ryd-screen:   #0f1424;   /* screen background (slightly lighter than bezel) */
  --ryd-surface:  #1a2032;   /* cards / tiles / inputs */
  --ryd-border:   rgba(255, 255, 255, 0.10);
  --ryd-text:     #F1F5F9;   /* primary text */
  --ryd-muted:    rgba(241, 245, 249, 0.55);
  --ryd-track:    rgba(255, 255, 255, 0.10); /* bar tracks / skeleton */
}

/* --- The screen itself --------------------------------------------------- */
.ry-demo--dark .ry-vizdemo__screen,
.ry-demo--dark .ry-estsend__screen,
.ry-demo--dark .ry-jobflow__screen,
.ry-demo--dark .ry-deposit__screen,
.ry-demo--dark .ry-jobcost__screen,
.ry-demo--dark .ry-autos__screen {
  background: var(--ryd-screen);
}

/* --- Headers (titles + sublabels) --------------------------------------- */
.ry-demo--dark .ry-vizdemo__head,
.ry-demo--dark .ry-estsend__head,
.ry-demo--dark .ry-jobflow__head,
.ry-demo--dark .ry-jobcost__head {
  border-color: var(--ryd-border);
}
.ry-demo--dark .ry-vizdemo__head-t,
.ry-demo--dark .ry-estsend__head-t,
.ry-demo--dark .ry-jobflow__head-t,
.ry-demo--dark .ry-jobcost__head-t,
.ry-demo--dark .ry-autos__head-t {
  color: var(--ryd-text);
}
.ry-demo--dark .ry-vizdemo__head-sub,
.ry-demo--dark .ry-estsend__head-sub,
.ry-demo--dark .ry-jobflow__head-sub,
.ry-demo--dark .ry-jobcost__head-sub,
.ry-demo--dark .ry-autos__head-sub {
  color: var(--ryd-muted);
}

/* --- Generic labels (vizdemo "Upload Image" etc.) ----------------------- */
.ry-demo--dark .ry-vizdemo__label {
  color: var(--ryd-muted);
}

/* ========================================================================
   VIZDEMO specifics
   ======================================================================== */
.ry-demo--dark .ry-vizdemo__detail {
  background: var(--ryd-surface);
  border-color: var(--ryd-border);
}
.ry-demo--dark .ry-vizdemo__detail-txt {
  color: var(--ryd-text);
}
.ry-demo--dark .ry-vizdemo__stage {
  background: var(--ryd-track);
}

/* ========================================================================
   ESTSEND specifics
   ======================================================================== */
.ry-demo--dark .ry-estsend__item {
  background: var(--ryd-surface);
  border-color: var(--ryd-border);
}
.ry-demo--dark .ry-estsend__item-t {
  color: var(--ryd-text);
}
.ry-demo--dark .ry-estsend__item-m {
  color: var(--ryd-muted);
}
.ry-demo--dark .ry-estsend__modal {
  background: var(--ryd-surface);
}
.ry-demo--dark .ry-estsend__modal-t {
  color: var(--ryd-text);
}
.ry-demo--dark .ry-estsend__modal-d {
  color: var(--ryd-muted);
}

/* ========================================================================
   JOBFLOW specifics
   ======================================================================== */
.ry-demo--dark .ry-jobflow__item-t {
  color: var(--ryd-text);
}
.ry-demo--dark .ry-jobflow__item-m {
  color: var(--ryd-muted);
}
.ry-demo--dark .ry-jobflow__prompt,
.ry-demo--dark .ry-jobflow__modal {
  background: var(--ryd-surface);
}
.ry-demo--dark .ry-jobflow__prompt-t,
.ry-demo--dark .ry-jobflow__modal-t {
  color: var(--ryd-text);
}
.ry-demo--dark .ry-jobflow__prompt-d,
.ry-demo--dark .ry-jobflow__modal-d {
  color: var(--ryd-muted);
}
.ry-demo--dark .ry-jobflow__prompt-btn--ghost {
  color: var(--ryd-text);
  border-color: var(--ryd-border);
}

/* ========================================================================
   DEPOSIT specifics (skeleton + modal)
   ======================================================================== */
.ry-demo--dark .ry-sk {
  background: var(--ryd-track);
}
.ry-demo--dark .ry-deposit__modal {
  background: var(--ryd-surface);
}
.ry-demo--dark .ry-deposit__title {
  color: var(--ryd-text);
}

/* ========================================================================
   JOBCOST specifics
   ======================================================================== */
.ry-demo--dark .ry-jobcost__margin {
  border-color: var(--ryd-border);
}
.ry-demo--dark .ry-jobcost__margin-label,
.ry-demo--dark .ry-jobcost__kpi-label,
.ry-demo--dark .ry-jobcost__row-label,
.ry-demo--dark .ry-jobcost__onsite,
.ry-demo--dark .ry-jobcost__net-sub {
  color: var(--ryd-muted);
}
.ry-demo--dark .ry-jobcost__kpi,
.ry-demo--dark .ry-jobcost__breakdown {
  background: var(--ryd-surface);
  border-color: var(--ryd-border);
}
.ry-demo--dark .ry-jobcost__kpi-num,
.ry-demo--dark .ry-jobcost__breakdown-label,
.ry-demo--dark .ry-jobcost__row-val,
.ry-demo--dark .ry-jobcost__net-t {
  color: var(--ryd-text);
}
.ry-demo--dark .ry-jobcost__margin-bar,
.ry-demo--dark .ry-jobcost__row-track {
  background: var(--ryd-track);
}
.ry-demo--dark .ry-jobcost__onsite {
  border-color: var(--ryd-border);
}

/* ========================================================================
   AUTOS specifics (already darkish, but normalize to the shared dark)
   ======================================================================== */
.ry-demo--dark .ry-autos__bubble {
  background: var(--ryd-surface);
  color: var(--ryd-text);
}
.ry-demo--dark .ry-autos__msg-to,
.ry-demo--dark .ry-autos__via {
  color: var(--ryd-muted);
}

/* ==========================================================================
   Property view / Street View demo (.ry-propview) — shows the real Street
   View container screenshot in the phone shell, then reveals highlight cards
   in sequence. data-loop="true" replays with a pause. State: .is-playing.
   ========================================================================== */
.ry-propview {
  display: flex;
  justify-content: center;
  align-items: center;
}
.ry-propview__phone {
  position: relative;
  width: 250px;
  max-width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 40px;
  background: #0b0e1e;
  padding: 8px;
  box-shadow:
    0 40px 80px -24px rgba(0, 0, 0, 0.5),
    inset 0 0 0 2px rgba(255, 255, 255, 0.06);
}
.ry-propview__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  background: var(--ry-bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 14px 16px;
}
 
/* Header */
.ry-propview__head-t {
  display: block;
  font-family: var(--ry-font-display);
  font-size: var(--ry-text-base);
  font-weight: 600;
  color: var(--ry-slate-900);
  line-height: 1.1;
}
.ry-propview__head-sub {
  display: block;
  font-size: var(--ry-text-xs);
  color: var(--ry-text-muted);
  margin-top: 3px;
}
 
/* The real Street View container screenshot */
.ry-propview__shot {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--ry-slate-200);
  box-shadow: 0 8px 20px -10px rgba(11, 14, 30, 0.25);
  opacity: 0;
  transform: translateY(8px) scale(0.985);
  transition:
    opacity 0.6s var(--ry-ease),
    transform 0.6s var(--ry-ease);
}
.ry-propview__shot img {
  display: block;
  width: 100%;
  height: auto;
}
.ry-propview.is-playing .ry-propview__shot {
  opacity: 1;
  transform: translateY(0) scale(1);
}
 
/* Highlight cards */
.ry-propview__cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ry-propview__card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 11px;
  background: var(--ry-slate-50, #F8FAFC);
  border: 1px solid var(--ry-slate-200);
  opacity: 0;
  transform: translateX(-10px);
  transition:
    opacity 0.5s var(--ry-ease),
    transform 0.5s var(--ry-ease);
  transition-delay: var(--ry-delay, 0s);
}
.ry-propview.is-playing .ry-propview__card {
  opacity: 1;
  transform: translateX(0);
}
.ry-propview__card-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--ry-blue-600);
}
.ry-propview__card-ic i { font-size: 16px; }
.ry-propview__card-txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.ry-propview__card-t {
  font-size: var(--ry-text-sm);
  font-weight: 700;
  color: var(--ry-slate-900);
  line-height: 1.15;
}
.ry-propview__card-d {
  font-size: 10px;
  color: var(--ry-text-muted);
  line-height: 1.25;
  margin-top: 1px;
}
 
@media (prefers-reduced-motion: reduce) {
  .ry-propview__shot,
  .ry-propview__card {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Visualizer example tabs
   -------------------------------------------------------------------------- */
.ry-vtabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ry-space-2);
  margin-bottom: var(--ry-space-4);
}

.ry-vtab {
  font-family: var(--ry-font-body);
  font-size: var(--ry-text-sm);
  font-weight: 500;
  color: var(--ry-slate-500);
  padding: 8px 10px 10px 10px;
  background: transparent;
  border: 1px solid var(--ry-slate-200);
  border-radius: 999px;
  cursor: pointer;
  transition: color var(--ry-dur-fast) var(--ry-ease),
              background var(--ry-dur-fast) var(--ry-ease),
              border-color var(--ry-dur-fast) var(--ry-ease);
}

.ry-vtab:hover {
  color: var(--ry-slate-900);
  border-color: var(--ry-slate-400);
}

.ry-vtab.is-active {
  color: #fff;
  background: var(--ry-purple-600);
  border-color: var(--ry-purple-600);
}

/* ============================================================
   Page hero (.ry-phero) — thin gradient hero for company pages
   Self-contained in global.css (no features.css dependency)
   ============================================================ */
.ry-phero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4rem);
  background: var(--ry-ink);
  overflow: hidden;
  text-align: center;
}
.ry-phero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 80% 0%, rgba(124,58,237,.45), transparent 70%),
    radial-gradient(50% 70% at 10% 100%, rgba(37,99,235,.35), transparent 70%);
  pointer-events: none;
}
.ry-phero__inner { position: relative; z-index: 1; max-width: 760px; margin-inline: auto; }
.ry-phero__title {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.05;
  margin: 0 0 .75rem;
}
.ry-phero__accent {
  background: linear-gradient(90deg, #c4b5fd, #93c5fd);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.ry-phero__sub {
  color: rgba(255,255,255,.82);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.55; margin: 0;
}

/* ============================================================
   Pricing
   ============================================================ */
.ry-pricing { padding-top: clamp(2rem, 5vw, 3.5rem); }

/* Billing cycle toggle */
.ry-pcycle {
  display: inline-flex; gap: 4px; margin: 0 auto clamp(2rem, 4vw, 3rem);
  padding: 5px; background: #eef2f9; border-radius: 999px;
  position: relative; left: 50%; transform: translateX(-50%);
}
.ry-pcycle__btn {
  border: 0; background: transparent; cursor: pointer;
  padding: 9px 20px; border-radius: 999px; font-weight: 600;
  font-size: .92rem; color: #475569; transition: all .18s ease;
  display: inline-flex; align-items: center; gap: 8px;
}
.ry-pcycle__btn.is-active {
  background: #fff; color: var(--ry-ink, #0b0e1e);
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
}
.ry-pcycle__save {
  font-size: .72rem; font-weight: 700; color: #fff;
  background: #16a34a; padding: 2px 8px; border-radius: 999px;
}

/* Plan cards */
.ry-pgrid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem; max-width: 920px; margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  align-items: stretch;
}
.ry-pcard {
  background: #f3f4f9; border: 1px solid #d0d0d0; border-radius: 16px;
  padding: 1.75rem 1.5rem; display: flex; flex-direction: column;
  text-align: center; position: relative;
}
.ry-pcard--featured {
  background: var(--ry-ink, #0b0e1e); border-color: var(--ry-ink, #0b0e1e);
  color: #fff; box-shadow: 0 20px 45px -18px rgba(37,99,235,.55);
  transform: translateY(-8px);
}
.ry-pcard--featured .ry-pcard__name {
	color: #fff;
}
.ry-pcard__ribbon {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
  background: linear-gradient(90deg, #2563EB, #7C3AED); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}
.ry-pcard__name { font-size: 1.4rem; margin: 0 0 .25rem; }
.ry-pcard__tag { font-size: .9rem; opacity: .7; margin: 0 0 1.25rem; }
.ry-pcard--featured .ry-pcard__tag { opacity: .8; }
.ry-pcard__price { margin-bottom: 1.5rem; }
.ry-pcard__amt { font-size: 2.5rem; font-weight: 800; letter-spacing: -.02em; }
.ry-pcard__per { font-size: .95rem; opacity: .65; }
.ry-pcard__save {
  display: block; margin-top: .4rem; font-size: .8rem; font-weight: 700;
  color: #16a34a;
}
.ry-pcard--featured .ry-pcard__save { color: #4ade80; }
.ry-pcard__cta { margin-top: auto; width: 100%; }

/* Comparison table */
.ry-ptable-wrap { max-width: 920px; margin: 0 auto; overflow-x: auto; }
.ry-ptable { width: 100%; border-collapse: collapse; min-width: 640px; }
.ry-ptable th, .ry-ptable td {
  padding: 14px 16px; text-align: center; border-bottom: 1px solid #eef1f6;
  font-size: .92rem;
}
.ry-ptable thead th {
  font-size: 1.05rem; font-weight: 700; color: var(--ry-ink, #0b0e1e);
  border-bottom: 2px solid #e6eaf2;
}
.ry-ptable__feat { text-align: left !important; font-weight: 600; color: #334155; }
.ry-ptable__pro {
  background: #f5f8ff;
  border-left: 1px solid #dbe6ff; border-right: 1px solid #dbe6ff;
}
.ry-ptable thead .ry-ptable__pro { color: #2563EB; }
.ry-ptable tfoot td { border-bottom: 0; padding-top: 18px; }

/* Cells */
.ry-pcell { display: inline-flex; align-items: center; justify-content: center; }
.ry-pcell--yes svg { width: 18px; height: 18px; color: #16a34a; }
.ry-pcell--no  svg { width: 16px; height: 16px; color: #cbd5e1; }
.ry-pcell--text { font-weight: 600; color: var(--ry-ink, #0b0e1e); }

.ry-pricing__note {
  text-align: center;font-size: .85rem;
  margin-top: 2rem;
}

/* Ghost button (if not already in global) */
.ry-btn--ghost {
  background: transparent; border: 1px solid #cbd5e1; color: var(--ry-ink, #0b0e1e);
}
.ry-btn--ghost:hover { border-color: #2563EB; color: #2563EB; }
.ry-btn--sm { padding: 8px 16px; font-size: .85rem; }

/* Responsive */
@media (max-width: 760px) {
  .ry-pgrid { grid-template-columns: 1fr; max-width: 380px; }
  .ry-pcard--featured { transform: none; order: -1; }
}

/* ============================================================
   Contact
   ============================================================ */
.ry-contact { padding-top: clamp(2.5rem, 5vw, 4rem); }
.ry-contact__grid {
  display: grid; grid-template-columns: 1.5fr 1fr;
  gap: clamp(2rem, 5vw, 4rem); max-width: 980px; margin: 0 auto;
  align-items: start;
}

/* Notes / banners */
.ry-cnote {
  border-radius: 12px; padding: 14px 18px; margin-bottom: 1.5rem;
  font-size: .95rem; line-height: 1.5;
}
.ry-cnote--success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.ry-cnote--error   { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.ry-cnote a { color: inherit; text-decoration: underline; }

/* Form */
.ry-cform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ry-cform__row { margin-bottom: 1.1rem; }
.ry-cform__row--two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ry-cform__field { display: block; }
.ry-cform__label {
  display: block; font-size: .85rem; font-weight: 600;
  color: #334155; margin-bottom: .4rem;
}
.ry-cform__req { color: #2563EB; }
.ry-cform__opt { color: #94a3b8; font-weight: 400; }
.ry-cform input,
.ry-cform select,
.ry-cform textarea {
  width: 100%; padding: 11px 13px; border: 1px solid #d8dee9;
  border-radius: 10px; font-size: .95rem; font-family: inherit;
  color: var(--ry-ink, #0b0e1e); background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ry-cform input:focus,
.ry-cform select:focus,
.ry-cform textarea:focus {
  outline: none; border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.ry-cform textarea { resize: vertical; min-height: 120px; }
.ry-cform__submit { margin-top: .5rem; width: 100%; }

/* Info column */
.ry-cinfo {
  background: #f7f9fc; border: 1px solid #e9eef5; border-radius: 16px;
  padding: 1.5rem; margin-bottom: 1.25rem;
}
.ry-cinfo--cta { background: #fff; }
.ry-cinfo__title { font-size: 1.15rem; margin: 0 0 .5rem; color: var(--ry-ink, #0b0e1e); }
.ry-cinfo__body { font-size: .92rem; color: #64748b; margin: 0 0 .5rem; line-height: 1.5; }
.ry-cinfo__email {
  display: inline-block; font-size: 1.05rem; font-weight: 700;
  color: #2563EB; text-decoration: none; margin-bottom: .5rem;
  word-break: break-word;
}
.ry-cinfo__email:hover { text-decoration: underline; }
.ry-cinfo__meta { font-size: .85rem; color: #94a3b8; margin: 0; }
.ry-cinfo--cta .ry-btn { margin-top: .5rem; }

/* Responsive */
@media (max-width: 760px) {
  .ry-contact__grid { grid-template-columns: 1fr; }
  .ry-cform__row--two { grid-template-columns: 1fr; }
  .ry-contact__info-col { order: -1; }
}

/* ============================================================
   About
   ============================================================ */
.ry-about { padding-top: clamp(2.5rem, 5vw, 4rem); }

.ry-about__intro {
  max-width: 680px; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
}
.ry-about__intro p {
  font-size: 1.1rem; line-height: 1.65; color: #334155; margin: 0 0 1.1rem;
}
.ry-about__intro p:last-child { margin-bottom: 0; }

/* Family hero photo */
.ry-about__family {
  max-width: 420px; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
}
.ry-about__family img {
  width: 100%; height: auto; border-radius: 18px;
  box-shadow: 0 24px 50px -22px rgba(11,14,30,.4);
}
.ry-about__family figcaption {
  font-size: .9rem; margin-top: .9rem; font-style: italic;
}

/* Everyday photo grid — uniform squares, graceful crop */
.ry-about__grid {
  position: relative;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: .75rem;
  max-width: 920px; margin: 0 auto clamp(3rem, 6vw, 4.5rem);
}
.ry-about__gitem {
  aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden;
  background: #eef2f9;
}
.ry-about__gitem img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .3s ease;
}
.ry-about__gitem:hover img { transform: scale(1.04); }
.ry-about__grid-cap {
  grid-column: 1 / -1; text-align: right;
  font-size: .85rem; font-style: italic; margin: .25rem 0 0;
}

/* Founder bios — two column */
.ry-about__bios {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem);
  max-width: 820px; margin: 0 auto clamp(3rem, 6vw, 4.5rem);
}
.ry-about__bio-name {
  font-size: 1.35rem; margin: 0 0 .6rem; color: var(--ry-ink, #0b0e1e);
}
.ry-about__bio p {
  font-size: 1rem; line-height: 1.65; color: #475569; margin: 0;
}

/* Closing */
.ry-about__close {
  max-width: 620px; margin: 0 auto; text-align: center;
}
.ry-about__close p {
  font-size: 1.15rem; line-height: 1.6; color: var(--ry-ink, #0b0e1e);
  margin: 0 0 1.5rem; font-weight: 500;
}

/* Responsive */
@media (max-width: 760px) {
  .ry-about__grid { grid-template-columns: repeat(2, 1fr); }
  .ry-about__grid-cap { text-align: center; }
  .ry-about__bios { grid-template-columns: 1fr; gap: 2rem; }
}

/* ── AI Visualizer: impact stat tiles ────────────────────────── */
.ry-vizstat {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin: clamp(2rem, 4vw, 3rem) 0;
}
.ry-vizstat__item {
  text-align: center;
  padding: 1.25rem 1rem;
  background: var(--ry-ink);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.ry-vizstat__num {
  display: block;
  font-family: 'Archivo', sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;        /* was 1 — gives descenders room */
  padding-bottom: 0.08em;  /* belt-and-suspenders for clip */
  background: linear-gradient(90deg, var(--ry-blue-600), var(--ry-purple-600));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: .5rem;
}
.ry-vizstat__label {
  display: block;
  font-weight: 700;
  color: #fff;
  font-size: .98rem;
  margin-bottom: .4rem;
}
.ry-vizstat__desc {
  display: block;
  font-size: .88rem;
  line-height: 1.5;
  color: var(--ry-slate-400);
}

/* ── Section divider (eyebrow + gradient underline) ──────────── */
.ry-divider {
  position: relative;
  margin: 0 0 clamp(1.75rem, 3vw, 2.5rem);
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--ry-slate-200);
}
.ry-divider__eyebrow {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ry-purple-600);
  margin-bottom: .35rem;
}
.ry-divider__title {
  font-size: clamp(1.4rem, 3vw, 1.95rem);
  color: var(--ry-ink);
  margin: 0;
  line-height: 1.1;
}
.ry-divider::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 72px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ry-blue-600), var(--ry-purple-600));
}

/* ── AI Visualizer: trailing CTA ─────────────────────────────── */
.ry-vizcta {
  text-align: center;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

/* Responsive */
@media (max-width: 760px) {
  .ry-vizstat { grid-template-columns: repeat(2, 1fr); }
}


/* ==========================================================================
   Long-form prose (.ry-prose) — educational SEO section
   ========================================================================== */
.ry-prose__inner {
  max-width: 760px;
  margin-inline: auto;
}

.ry-prose__inner .ry-band__title {
  text-align: left;
  margin: 0 0 var(--ry-space-5);
}

.ry-prose__inner p {
  font-size: var(--ry-text-base);
  line-height: 1.75;
  color: var(--ry-text-muted);
  margin: 0 0 var(--ry-space-4);
}

.ry-prose__inner p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   AI Assistant interactive demo (.ry-ademo)
   Self-contained so it never collides with the auto-play .ry-chat component.
   Chat surface matches the dark .ry-chat palette, but opaque (not glass) since
   it sits on a light page section rather than a dark hero.
   ========================================================================== */

.ry-ademo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

/* ── Left: intro + prompts (stays light, these are page controls) ───────── */
.ry-ademo__intro .ry-row__title { margin-top: .4rem; }
.ry-ademo__intro .ry-row__sub   { margin-bottom: 1.5rem; }

.ry-ademo__prompts {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.ry-ademo__chip {
  display: flex;
  align-items: center;
  gap: .75rem;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  background: var(--ry-ink);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  font-family: inherit;
  font-size: .92rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .1s ease;
}
.ry-ademo__chip:hover {
  border-color: rgba(124, 58, 237, 0.6);            /* purple-600 glow edge */
  background: #11172a;                               /* slightly lifted */
}
.ry-ademo__chip:active { transform: scale(.99); }
.ry-ademo__chip.is-active {
  border-color: var(--ry-purple-600);
  background: #14112a;                               /* faint purple-tinted dark */
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18);   /* selection ring */
}
.ry-ademo__chip-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 8px;
  background: linear-gradient(140deg, var(--ry-purple-500), var(--ry-purple-700));
  color: #fff;
  font-size: 15px;
}
.ry-ademo__cta { margin-top: 1.5rem; }

/* ── Right: chat (dark, matches .ry-chat) ───────────────────────────────── */
.ry-ademo__chat {
  background: var(--ry-ink);
  border-radius: var(--ry-radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    0 44px 100px -30px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ry-ademo__head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.ry-ademo__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(140deg, var(--ry-purple-500), var(--ry-purple-700));
  color: #fff;
  font-size: 19px;
  flex-shrink: 0;
}
.ry-ademo__id { display: flex; flex-direction: column; }
.ry-ademo__name {
  font-size: var(--ry-text-sm);
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}
.ry-ademo__status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--ry-text-xs);
  color: var(--ry-slate-400);
}
.ry-ademo__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.ry-ademo__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px;
  min-height: 300px;
  max-height: 440px;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.ry-ademo__msg {
  max-width: 84%;
  padding: 11px 14px;
  font-size: var(--ry-text-sm);
  line-height: 1.45;
  border-radius: 16px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ry-ease), transform 0.4s var(--ry-ease);
}
.ry-ademo__msg.is-in { opacity: 1; transform: none; }
.ry-ademo__msg--user {
  align-self: flex-end;
  background: var(--ry-blue-600);
  color: #fff;
}
.ry-ademo__msg--ai {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ry-slate-100);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.ry-ademo__msg--ai strong { color: #fff; font-weight: 600; }
.ry-ademo__ok { color: #34D399; font-weight: 700; }

/* Typing indicator */
.ry-ademo__typing {
  align-self: flex-start;
  display: inline-flex;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  border-bottom-left-radius: 5px;
}
.ry-ademo__typing span {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ry-slate-400);
  margin: 0 2px;
  animation: ry-typing 1.2s infinite;
}
.ry-ademo__typing span:nth-child(2) { animation-delay: 0.2s; }
.ry-ademo__typing span:nth-child(3) { animation-delay: 0.4s; }
/* reuses @keyframes ry-typing already defined for .ry-chat */

/* Fake input (visual only) */
.ry-ademo__input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.ry-ademo__placeholder {
  flex: 1;
  font-size: var(--ry-text-sm);
  color: var(--ry-slate-500);
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
}
.ry-ademo__send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 9px;
  background: var(--ry-blue-600);
  color: #fff;
}

/* Hide the answer templates */
.ry-ademo__a { display: none; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 860px) {
  .ry-ademo { grid-template-columns: 1fr; }
  .ry-ademo__prompts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
  }
  .ry-ademo__cta { display: none; }
}
@media (max-width: 480px) {
  .ry-ademo__prompts { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .ry-ademo__msg { transition: none; }
}

/* ── Assistant tool-count statement ──────────────────────────── */
.ry-toolcount {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.ry-toolcount__num {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: clamp(4.5rem, 14vw, 9rem);
  line-height: .9;
  letter-spacing: -.02em;
  margin: 0;
  background: linear-gradient(100deg, var(--ry-blue-600), var(--ry-purple-600));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  padding-bottom: .08em; /* guard against descender/gradient clip */
}
.ry-toolcount__title {
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  color: var(--ry-ink);
  margin: .25rem 0 1rem;
  line-height: 1.1;
}
.ry-toolcount__sub {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ry-slate-600);
  margin: 0 auto;
  max-width: 560px;
}

/* ==========================================================================
   AI Writing tone-swap demo (.ry-tone)
   Dark card matching the assistant demo. Editable source text, four tone
   buttons that swap a canned rewrite in place. Opaque (not glass) since it
   sits on a light page section.
   ========================================================================== */

.ry-tone {
  max-width: 680px;
  margin: 0 auto;
}
.ry-tone__card {
  background: var(--ry-ink);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  padding: clamp(1.1rem, 3vw, 1.6rem);
  box-shadow:
    0 44px 100px -30px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

/* Head */
.ry-tone__head {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1.1rem;
}
.ry-tone__head-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--ry-blue-600), var(--ry-purple-600));
  color: #fff;
  font-size: 15px;
}
.ry-tone__head-t { font-weight: 700; color: #fff; }

/* Field */
.ry-tone__label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--ry-slate-400);
  margin-bottom: .4rem;
}
.ry-tone__textwrap { position: relative; }
.ry-tone__text {
  width: 100%;
  resize: vertical;
  min-height: 132px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ry-slate-100);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color .15s ease, box-shadow .15s ease, opacity .2s ease;
}
.ry-tone__text:focus {
  outline: none;
  border-color: var(--ry-blue-600);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .22);
}

/* "Rewriting…" overlay */
.ry-tone__writing {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: 12px;
  background: rgba(11, 26, 46, .78);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  color: #c4b5fd;
  font-weight: 600;
  font-size: .92rem;
}
.ry-tone.is-writing .ry-tone__writing { display: flex; }
.ry-tone.is-writing .ry-tone__text    { opacity: .5; }
.ry-tone__writing-dots { display: inline-flex; gap: 4px; }
.ry-tone__writing-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ry-purple-500);
  animation: ry-tone-bounce 1.2s infinite ease-in-out;
}
.ry-tone__writing-dots span:nth-child(2) { animation-delay: .15s; }
.ry-tone__writing-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes ry-tone-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30%           { transform: translateY(-4px); opacity: 1; }
}

/* Tone picker */
.ry-tone__choose {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--ry-slate-400);
  margin: 1.2rem 0 .6rem;
}
.ry-tone__tones {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .55rem;
}
.ry-tone__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45rem;
  padding: 14px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  font-family: inherit;
  font-size: .85rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .1s ease;
}
.ry-tone__btn:hover {
  border-color: rgba(124, 58, 237, 0.6);
  background: rgba(255, 255, 255, 0.07);
}
.ry-tone__btn:active { transform: scale(.98); }
.ry-tone__btn.is-active {
  border-color: var(--ry-purple-600);
  background: rgba(124, 58, 237, 0.14);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .20);
}
.ry-tone__btn-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--ry-blue-600), var(--ry-purple-600));
  color: #fff;
  font-size: 17px;
}

/* Footer: reset + note */
.ry-tone__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.1rem;
  flex-wrap: wrap;
}
.ry-tone__reset {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: .88rem;
  font-weight: 600;
  color: #60a5fa;
  cursor: pointer;
}
.ry-tone__reset:hover { text-decoration: underline; }
.ry-tone__note {
  margin: 0;
  font-size: .8rem;
  color: var(--ry-slate-500);
  font-style: italic;
}

/* Hide tone templates */
.ry-tone__tpl { display: none; }

@media (max-width: 520px) {
  .ry-tone__tones { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .ry-tone__text { transition: none; }
}

/* ==========================================================================
   Index card grids (.ry-idx*) — Features + Industries index pages.
   Full-card-clickable cards, calm color/border hover (no transform/movement).
   ========================================================================== */

/* ── Section header + divider rule ───────────────────────────── */
.ry-idxsec { margin-top: clamp(2.6rem, 6vw, 4rem); }
.ry-idxsec:first-of-type { margin-top: clamp(1.5rem, 4vw, 2.5rem); }

.ry-idxsec__head {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.5rem;
}
.ry-idxsec__title {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  font-weight: 700;
  color: var(--ry-ink);
  white-space: nowrap;
  margin: 0;
}
.ry-idxsec__title--ai { color: var(--ry-purple-600); }
.ry-idxsec__rule {
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--ry-slate-200), rgba(226, 232, 240, 0));
}
.ry-idxsec__rule--ai {
  background: linear-gradient(90deg, var(--ry-purple-600), rgba(124, 58, 237, 0));
  opacity: .45;
}

/* ── Grid ────────────────────────────────────────────────────── */
.ry-idxgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.ry-idxgrid--dense {
  grid-template-columns: repeat(auto-fill, minmax(236px, 1fr));
}
@media (max-width: 900px) {
  .ry-idxgrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .ry-idxgrid,
  .ry-idxgrid--dense { grid-template-columns: 1fr; }
}
/* ── Card (full clickable) — dark ────────────────────────────── */
.ry-idxcard {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 16px 18px;
  background: var(--ry-ink);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  text-decoration: none;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.ry-idxcard:hover {
  border-color: var(--ry-blue-600);
  background: #11172a;
  box-shadow: 0 14px 34px -18px rgba(37, 99, 235, .55);
}

.ry-idxcard__ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 11px;
  background: rgba(37, 99, 235, 0.16);
  color: #60a5fa;
  font-size: 22px;
  transition: background .15s ease, color .15s ease;
}
.ry-idxcard:hover .ry-idxcard__ic {
  background: var(--ry-blue-600);
  color: #fff;
}

.ry-idxcard__body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.ry-idxcard__t {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  transition: color .15s ease;
}
.ry-idxcard:hover .ry-idxcard__t { color: #93b4fd; }
.ry-idxcard__d {
  font-size: .88rem;
  color: var(--ry-slate-400);
}

.ry-idxcard__arrow {
  margin-left: auto;
  flex-shrink: 0;
  display: inline-flex;
  color: #60a5fa;
  opacity: 0;
  transition: opacity .15s ease;
}
.ry-idxcard:hover .ry-idxcard__arrow { opacity: 1; }

/* ── AI variant (purple accent) — dark ───────────────────────── */
.ry-idxcard--ai .ry-idxcard__ic {
  background: rgba(124, 58, 237, 0.18);
  color: #a78bfa;
}
.ry-idxcard--ai:hover {
  border-color: var(--ry-purple-600);
  background: #14112a;
  box-shadow: 0 14px 34px -18px rgba(124, 58, 237, .55);
}
.ry-idxcard--ai:hover .ry-idxcard__ic {
  background: var(--ry-purple-600);
  color: #fff;
}
.ry-idxcard--ai:hover .ry-idxcard__t { color: #c4b5fd; }
.ry-idxcard--ai .ry-idxcard__arrow { color: #a78bfa; }


/* ── CTA + note ──────────────────────────────────────────────── */
.ry-idxcta {
  text-align: center;
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
}
.ry-idxnote {
  text-align: center;
  margin-top: 2rem;
  color: var(--ry-slate-500);
  font-size: .95rem;
}
.ry-idxnote a { color: var(--ry-blue-600); font-weight: 600; }

/* ==========================================================================
   Everything-else capability grid (.ry-cap)
   White section. 3x3 icon grid, third row fades into the CTA.
   ========================================================================== */
.ry-cap__wrap {
  position: relative;
}

.ry-cap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: clamp(32px, 5vw, 72px);
  row-gap: clamp(32px, 4vw, 30px);
}

.ry-cap__card {
  display: flex;
  flex-direction: column;
  gap: var(--ry-space-3);
}

.ry-cap__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ry-cap__ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: var(--ry-radius-md);
  color: var(--ry-blue-600);
}

.ry-cap__ic svg {
  width: 30px;
  height: 30px;
}

.ry-cap__t {
  font-size: var(--ry-text-lg);
  font-weight: 600;
  line-height: 1.2;
}

.ry-cap__d {
  color: var(--ry-text-muted);
  line-height: 1.55;
}

.ry-cap__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(120px, 22vw, 100px);
  background: linear-gradient(to top, var(--ry-bg) 15%, transparent);
  pointer-events: none;
}

.ry-cap__cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(8px, 2vw, 24px);
}

@media (max-width: 900px) {
  .ry-cap {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .ry-cap {
    grid-template-columns: 1fr;
  }
}
.ry-estsend__phone,
.ry-vizdemo__phone,
.ry-jobcost__phone,
.ry-propview__phone,
.ry-estimator__phone,
.ry-jobflow__phone,
.ry-autos__phone,
.ry-deposit__phone,
.ry-splan__phone {
  background: var(--ry-ink);
  width: 384px;
  max-width: 100%;
  height: 500px;          /* explicit height instead of max-height + aspect-ratio */
  border-radius: 44px;
  padding: 8px;
  overflow: hidden;       /* clip the screen to the frame */
  box-shadow:
    0 40px 80px -24px rgba(0, 0, 0, 0.5),
    inset 0 0 0 2px rgba(255, 255, 255, 0.06);
}

@media (max-width: 880px) {
	.ry-estsend__phone,
	.ry-vizdemo__phone,
	.ry-jobcost__phone,
	.ry-propview__phone,
	.ry-estimator__phone,
	.ry-jobflow__phone,
	.ry-autos__phone,
	.ry-deposit__phone,
	.ry-splan__phone {
		min-width: 100%;
		box-shadow: unset;
	}
}

/* ==========================================================================
   Industry feature cards (.ry-fcards)
   Left intro (title/sub) + right 2x2 image cards. Each card: photo bg,
   dark ::after overlay (legibility), blue torn ::before corner. Content
   drives height; no text-length limit.
   ========================================================================== */
.ry-fcards {
  /* base: normal section padding from .ry-section */
}

.ry-fcards--clears-overhang {
  padding-top: clamp(160px, 22vw, 260px);
}
.ry-fcards__inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  column-gap: clamp(40px, 5vw, 80px);
}

.ry-fcards__intro {
  padding-inline-start: clamp(var(--ry-space-5), 3vw, var(--ry-space-7));
}

.ry-fcards__intro .ry-band__title {
  text-align: left;
  margin: 0;
}

.ry-fcards__intro .ry-band__sub {
  text-align: left;
  margin-top: var(--ry-space-4);
  max-width: 26em;
}

.ry-fcards__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 1.6vw, 24px);
}

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 980px) {
  .ry-fcards__inner {
    grid-template-columns: 1fr;
    row-gap: clamp(28px, 5vw, 44px);
  }

  .ry-fcards__intro .ry-band__sub {
    max-width: none;
  }
}

@media (max-width: 620px) {
  .ry-fcards__grid {
    grid-template-columns: 1fr;
  }
}