/*
 * Main Public CSS - RTO Agent Management Theme
 * Master Visual Design System (Mobile-First, Modern SaaS Aesthetic)
 * Universal Breakpoints (320px, 360px, 375px, 390px, 414px, 430px, 480px, 640px, 768px, 1024px, 1280px+)
 */

:root {
  --primary-900: #0F172A;
  --primary-800: #1E293B;
  --primary-700: #334155;
  --primary-600: #475569;
  --primary-500: #64748B;
  
  --brand-600: #2563EB;
  --brand-500: #3B82F6;
  --brand-400: #60A5FA;
  --brand-50: #EFF6FF;
  --brand-100: #DBEAFE;

  --success-600: #16A34A;
  --success-500: #22C55E;
  --success-50: #F0FDF4;

  --warning-600: #D97706;
  --warning-500: #F59E0B;
  --warning-50: #FFFBEB;

  --danger-600: #DC2626;
  --danger-500: #EF4444;
  --danger-50: #FEF2F2;

  --gray-900: #0F172A;
  --gray-800: #1E293B;
  --gray-700: #334155;
  --gray-600: #475569;
  --gray-500: #64748B;
  --gray-400: #94A3B8;
  --gray-300: #CBD5E1;
  --gray-200: #E2E8F0;
  --gray-100: #F1F5F9;
  --gray-50: #F8FAFC;
  --white: #FFFFFF;

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 25px 50px -12px rgba(15, 23, 42, 0.25);

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 18px;
  --radius-full: 9999px;

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   GLOBAL BASE RESETS & SAFE ZERO-OVERFLOW CANVASES
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

body {
  font-family: var(--font-main);
  background-color: var(--white);
  color: var(--gray-900);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

body.public-menu-open,
body.nav-open {
  overflow: hidden !important;
  touch-action: none;
}

img, svg, video, canvas, audio, iframe, embed, object {
  display: block;
  max-width: 100%;
  height: auto;
}

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

p, h1, h2, h3, h4, h5, h6, span, strong, a, li, label {
  overflow-wrap: break-word;
  word-break: break-word;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--primary-900);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

a {
  color: var(--brand-600);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--brand-500);
}

/* ==========================================================================
   FLUID CONTAINER & GRID SYSTEM
   ========================================================================== */

.rto-container {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 640px) {
  .rto-container {
    padding-inline: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .rto-container {
    padding-inline: 2rem;
  }
}

/* Fluid Grids */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
}

@media (min-width: 640px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
}

@media (min-width: 480px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

/* Utility Helpers */
.text-brand { color: var(--brand-600) !important; }
.text-success { color: var(--success-600) !important; }
.text-warning { color: var(--warning-600) !important; }
.text-danger { color: var(--danger-600) !important; }
.text-muted { color: var(--gray-500) !important; }
.text-white { color: var(--white) !important; }
.font-mono { font-family: var(--font-mono); }
.font-bold { font-weight: 700; }
.font-normal { font-weight: 400; }
.display-block { display: block; }
.w-100 { width: 100% !important; }
.max-w-800 { max-width: 800px; width: 100%; }
.mx-auto { margin-inline: auto; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.p-3 { padding: 0.75rem !important; }
.p-4 { padding: 1.25rem !important; }
.p-5 { padding: 1.75rem 1rem !important; }
.rounded { border-radius: var(--radius-md) !important; }
.bg-gray-50 { background-color: var(--gray-50) !important; }
.bg-brand { background-color: var(--brand-600) !important; }
.bg-brand-light { background-color: var(--brand-50) !important; }
.bg-success-light { background-color: var(--success-50) !important; }
.border-top { border-top: 1px solid var(--gray-200) !important; }
.border-bottom { border-bottom: 1px solid var(--gray-200) !important; }
.border-secondary { border-color: var(--primary-800) !important; }
.text-xs { font-size: 0.75rem !important; }
.text-sm { font-size: 0.875rem !important; }
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }

@media (min-width: 768px) {
  .p-4 { padding: 1.75rem !important; }
  .p-5 { padding: 3rem 1.5rem !important; }
  .gap-4 { gap: 1.5rem; }
  .gap-5 { gap: 2rem; }
}

/* Page Banners */
.page-banner {
  padding: 2.5rem 1rem 2rem;
  background-color: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  text-align: center;
  width: 100%;
}

.page-banner h1 {
  font-size: clamp(1.65rem, 5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.rto-section {
  padding: 2.5rem 0;
  width: 100%;
}

@media (min-width: 768px) {
  .rto-section { padding: 4.5rem 0; }
}

.rto-card {
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem;
  overflow: hidden;
  width: 100%;
}

@media (min-width: 768px) {
  .rto-card { padding: 1.75rem; }
}

/* Buttons System (Min 44px Touch Target) */
.rto-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  touch-action: manipulation;
  user-select: none;
  text-decoration: none;
}

.btn-brand { background-color: var(--primary-900); color: var(--white); border-color: var(--primary-900); }
.btn-brand:hover { background-color: var(--primary-800); border-color: var(--primary-800); color: var(--white); transform: translateY(-1px); }

.btn-accent { background-color: var(--brand-600); color: var(--white); border-color: var(--brand-600); }
.btn-accent:hover { background-color: #1d4ed8; color: var(--white); transform: translateY(-1px); }

.btn-outline { background-color: var(--white); border-color: var(--gray-300); color: var(--gray-800); }
.btn-outline:hover { background-color: var(--gray-50); border-color: var(--gray-400); color: var(--gray-900); }

.btn-lg { min-height: 48px; padding: 0.85rem 1.75rem; font-size: 1rem; border-radius: var(--radius-md); }
.btn-sm { min-height: 36px; padding: 0.4rem 0.75rem; font-size: 0.825rem; }

/* ==========================================================================
   PUBLIC HEADER & 3-LAYER OFF-CANVAS MOBILE DRAWER SYSTEM
   Layer 1: Base Page & Sticky Header (z-index: 100)
   Layer 2: Dedicated Overlay Backdrop (z-index: 9998)
   Layer 3: Top-Level Navigation Drawer (z-index: 9999)
   ========================================================================== */

/* Layer 1: Sticky Public Header */
.rto-public-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition-fast);
  width: 100%;
}

.rto-public-header.header-scrolled {
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.header-inner {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  min-width: 0;
}

@media (min-width: 992px) {
  .header-inner { height: 72px; }
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 1;
  min-width: 0;
}

.logo-icon {
  width: 34px;
  height: 34px;
  background-color: var(--primary-900);
  color: var(--white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.brand-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-900);
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand-sub { color: var(--brand-600); font-weight: 800; }

/* Desktop Navigation Menu Bar */
.desktop-nav-wrapper {
  display: none;
}

.desktop-nav-list {
  list-style: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
}

.desktop-nav-list .nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  padding: 0.4rem 0.5rem;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.desktop-nav-list .nav-link:hover {
  color: var(--brand-600);
}

/* Layer 2: Mobile Off-Canvas Drawer Backdrop */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 35, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.nav-backdrop.backdrop-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Layer 3: Top-Level Mobile Navigation Drawer */
.public-nav-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  height: 100dvh;
  width: min(88vw, 340px);
  max-width: 100vw;
  background-color: var(--white);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 25px rgba(0, 0, 0, 0.15);
  transform: translate3d(100%, 0, 0);
  visibility: hidden;
  pointer-events: none;
  transition: transform 280ms cubic-bezier(.22, 1, .36, 1), visibility 280ms ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.public-nav-menu.mobile-open,
.public-nav-menu.is-open {
  transform: translate3d(0, 0, 0);
  visibility: visible;
  pointer-events: auto;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--gray-200);
  flex-shrink: 0;
}

.mobile-nav-close {
  background: transparent;
  border: none;
  font-size: 1.35rem;
  color: var(--gray-600);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  cursor: pointer;
}

.mobile-nav-close:hover {
  background-color: var(--gray-100);
  color: var(--primary-900);
}

.public-nav-menu .nav-list {
  list-style: none;
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex-grow: 1;
}

.public-nav-menu .nav-link {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0.65rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.public-nav-menu .nav-link:hover,
.public-nav-menu .nav-link:focus {
  background-color: var(--brand-50);
  color: var(--brand-600);
}

.mobile-nav-footer {
  padding: 1.25rem;
  border-top: 1px solid var(--gray-200);
  background-color: var(--gray-50);
  flex-shrink: 0;
}

.header-auth-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-size: 1.35rem;
  color: var(--gray-900);
  cursor: pointer;
  transition: background-color var(--transition-fast);
  flex: 0 0 auto;
}

.mobile-toggle:hover {
  background-color: var(--gray-100);
}

/* STRICT MOBILE HIDING OF DESKTOP BUTTONS */
.desktop-only-btn {
  display: none !important;
}

/* Desktop Navigation Media Query (>= 992px) */
@media (min-width: 992px) {
  .public-nav-menu,
  .nav-backdrop,
  .mobile-toggle {
    display: none !important;
  }

  .desktop-nav-wrapper {
    display: flex !important;
    align-items: center;
  }

  .desktop-only-btn {
    display: inline-flex !important;
  }
}

/* ==========================================================================
   HERO SECTIONS (Fluid Mobile-First)
   ========================================================================== */

.rto-hero-section {
  padding: 2rem 0 2.5rem;
  background: radial-gradient(circle at 85% 30%, rgba(37,99,235,0.08), transparent 50%), #f8fafc;
  display: flex;
  align-items: center;
  width: 100%;
}

@media (min-width: 768px) {
  .rto-hero-section { padding: 4rem 0 4.5rem; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  width: 100%;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 44% 56%;
    gap: 2.5rem;
  }
}

.hero-content {
  width: 100%;
  max-width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background-color: var(--brand-100);
  color: var(--brand-600);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  max-width: 100%;
}

.hero-title {
  font-size: clamp(32px, 8vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--primary-900);
  margin-bottom: 1rem;
  width: 100%;
  max-width: 100%;
}

.hero-title .highlight-text { color: var(--brand-600); }

.hero-subtitle {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 540px;
  width: 100%;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  width: 100%;
}

.hero-cta-group .rto-btn {
  width: 100%;
}

@media (min-width: 576px) {
  .hero-cta-group {
    flex-direction: row;
    align-items: center;
    width: auto;
  }
  .hero-cta-group .rto-btn {
    width: auto;
  }
}

.hero-icon-bullets {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gray-200);
  width: 100%;
}

@media (min-width: 480px) {
  .hero-icon-bullets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .hero-icon-bullets {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
}

.bullet-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  min-width: 0;
  width: 100%;
}

.bullet-icon {
  width: 30px;
  height: 30px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-900);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.bullet-text { font-size: 0.75rem; font-weight: 700; color: var(--gray-800); }
.bullet-sub { font-size: 0.65rem; color: var(--gray-500); }

/* Bounded Dashboard Preview Frame */
.hero-dashboard-frame {
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-lg);
  background-color: var(--white);
  overflow: hidden;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .hero-dashboard-frame {
    max-width: 760px;
  }
}

.preview-app-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: #f8fafc;
  font-size: 0.8rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .preview-app-shell {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    min-height: 460px;
  }
}

.preview-sidebar {
  display: none;
  background-color: #0f172a;
  color: #ffffff;
  padding: 0.85rem 0.6rem;
  flex-direction: column;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .preview-sidebar { display: flex; }
}

.preview-sidebar .sidebar-logo { padding: 0 0.4rem 0.75rem; border-bottom: 1px solid #1e293b; margin-bottom: 0.65rem; }
.preview-sidebar .nav-section-title { font-size: 0.55rem; font-weight: 700; text-transform: uppercase; color: #64748b; padding: 0.4rem 0.4rem 0.15rem; }
.preview-nav-list { list-style: none; padding: 0; margin: 0 0 0.35rem 0; }
.preview-nav-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.5rem;
  color: #cbd5e1;
  font-size: 0.7rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.preview-nav-item.active { background-color: #2563eb; color: #ffffff; font-weight: 700; }

.preview-main-content {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
  width: 100%;
  overflow: hidden;
}

@media (min-width: 640px) {
  .preview-main-content { padding: 0.85rem 1rem; }
}

.preview-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
  height: 38px;
  width: 100%;
}

.preview-search-box {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-md);
  color: #64748b;
  font-size: 0.7rem;
  width: 100%;
  max-width: 180px;
}

.preview-kpi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
  width: 100%;
}

@media (min-width: 400px) {
  .preview-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .preview-kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.preview-kpi-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 0.45rem 0.5rem;
  min-width: 0;
  width: 100%;
}

.preview-kpi-label { font-size: 0.55rem; font-weight: 600; color: #64748b; text-transform: uppercase; }
.preview-kpi-val { font-size: 0.85rem; font-weight: 800; font-family: var(--font-mono); margin: 0.15rem 0; color: #0f172a; }
.preview-kpi-sub { font-size: 0.5rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.preview-split-65-35, .preview-split-50-50 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  width: 100%;
}

@media (min-width: 640px) {
  .preview-split-65-35 { grid-template-columns: 1.2fr 0.8fr; }
  .preview-split-50-50 { grid-template-columns: 1fr 1fr; }
}

.preview-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 0.5rem;
  overflow: hidden;
  width: 100%;
}

.preview-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.65rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.preview-attention-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.25rem 0.4rem;
  border-radius: 4px;
  font-size: 0.55rem;
  margin-bottom: 0.25rem;
}

.row-red { background-color: #fef2f2; color: #ef4444; }
.row-amber { background-color: #fffbeb; color: #f59e0b; }
.row-yellow { background-color: #fefce8; color: #ca8a04; }

.preview-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  width: 100%;
}

@media (min-width: 576px) {
  .preview-quick-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.preview-quick-btn {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.35rem 0.2rem;
  text-align: center;
  font-size: 0.55rem;
  font-weight: 600;
  color: #0f172a;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.preview-quick-btn i { font-size: 0.85rem; color: #2563eb; }

/* ==========================================================================
   CARDS, GRIDS & SECTIONS
   ========================================================================== */

/* Trust Value Strip */
.trust-value-strip {
  padding: 2rem 0;
  background-color: var(--white);
  width: 100%;
}

.trust-value-card {
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
  width: 100%;
}

@media (min-width: 768px) {
  .trust-value-card { padding: 2.5rem; border-radius: var(--radius-xl); }
}

.trust-value-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
  width: 100%;
}

@media (min-width: 480px) {
  .trust-value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
}

@media (min-width: 1024px) {
  .trust-value-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
}

.trust-item { display: flex; align-items: center; gap: 0.75rem; text-align: left; min-width: 0; width: 100%; }
.trust-icon-box {
  width: 40px;
  height: 40px;
  background-color: var(--brand-50);
  color: var(--brand-600);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Feature 6-Card Grid */
.features-grid-section {
  padding: 3rem 0;
  background-color: var(--gray-50);
  width: 100%;
}

@media (min-width: 768px) {
  .features-grid-section { padding: 5rem 0; }
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
  width: 100%;
}

.section-header-title {
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  font-weight: 800;
  color: var(--primary-900);
}

.section-header-sub {
  font-size: clamp(0.875rem, 2.5vw, 1.05rem);
  color: var(--gray-600);
  margin-top: 0.5rem;
}

.features-6-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
}

@media (min-width: 640px) {
  .features-6-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
}

@media (min-width: 1024px) {
  .features-6-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
}

.feature-grid-card {
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  width: 100%;
}

@media (min-width: 768px) {
  .feature-grid-card { padding: 1.75rem; }
}

.feature-grid-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-400);
}

.card-icon-box {
  width: 40px;
  height: 40px;
  background-color: var(--brand-50);
  color: var(--brand-600);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}

.feature-card-title { font-size: 1.05rem; font-weight: 700; color: var(--primary-900); margin-bottom: 0.4rem; }
.feature-card-desc { font-size: 0.85rem; color: var(--gray-600); line-height: 1.5; margin-bottom: 0.75rem; }

/* 4-Step Workflow Section */
.workflow-section {
  padding: 3rem 0;
  background-color: var(--gray-50);
  width: 100%;
}

.steps-4-horizontal {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
  width: 100%;
}

@media (min-width: 480px) {
  .steps-4-horizontal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .steps-4-horizontal { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
}

.workflow-step-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--white);
  padding: 1.25rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  width: 100%;
}

.step-icon-circle {
  width: 48px;
  height: 48px;
  background-color: var(--brand-50);
  color: var(--brand-600);
  border: 1px solid #bfdbfe;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}

.step-number-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background-color: var(--primary-900);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.step-title { font-size: 0.95rem; font-weight: 700; color: var(--primary-900); margin-bottom: 0.25rem; }
.step-desc { font-size: 0.8rem; color: var(--gray-500); line-height: 1.4; }

/* Dark CTA Banner Section */
.dark-cta-banner-section {
  padding: 2.5rem 1.25rem;
  background-color: var(--primary-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  margin: 2.5rem auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.4);
  width: 100%;
}

@media (min-width: 768px) {
  .dark-cta-banner-section {
    padding: 4rem 2.5rem;
    border-radius: var(--radius-xl);
    margin: 4rem auto;
  }
}

.dark-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  width: 100%;
}

@media (min-width: 992px) {
  .dark-cta-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.cta-headline {
  font-size: clamp(1.4rem, 4.5vw, 2.25rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.cta-sub {
  font-size: clamp(0.85rem, 2vw, 1rem);
  color: var(--gray-300);
}

.btn-accent-cta {
  background-color: var(--brand-600);
  color: var(--white);
  font-weight: 700;
  min-height: 48px;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
  width: 100%;
  text-align: center;
}

@media (min-width: 576px) {
  .btn-accent-cta { width: auto; }
}

.btn-accent-cta:hover { background-color: #1d4ed8; color: var(--white); transform: translateY(-1px); }

/* ==========================================================================
   PUBLIC FOOTER (Responsive 4-Col to 1-Col + MMCodeX Link)
   ========================================================================== */

.rto-public-footer {
  background-color: var(--primary-900);
  color: var(--gray-300);
  padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--primary-800);
  font-size: 0.875rem;
  width: 100%;
}

.footer-4-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
  width: 100%;
}

@media (min-width: 640px) {
  .footer-4-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .footer-4-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
    gap: 2rem;
    margin-bottom: 3rem;
  }
}

.footer-col-title { font-size: 0.95rem; font-weight: 700; color: var(--white); margin-bottom: 0.75rem; }
.footer-links-list { list-style: none; padding: 0; margin: 0; }
.footer-links-list li { margin-bottom: 0.5rem; }
.footer-links-list a {
  color: var(--gray-400);
  font-size: 0.85rem;
  display: inline-block;
  min-height: 24px;
  line-height: 1.5;
}
.footer-links-list a:hover { color: var(--white); }

.social-icons-row { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.social-icon-btn {
  width: 38px;
  height: 38px;
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--gray-300);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.social-icon-btn:hover { background-color: var(--brand-600); color: var(--white); }

.footer-bottom-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--primary-800);
  width: 100%;
}

@media (min-width: 640px) {
  .footer-bottom-bar {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.developer-credit-link {
  color: #60a5fa !important;
  font-weight: 700;
  text-decoration: none;
}

.developer-credit-link:hover {
  text-decoration: underline;
  color: #93c5fd !important;
}

/* Timeline Stepper for How It Works */
.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
}

@media (min-width: 576px) {
  .timeline-item {
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
  }
}
