/* ============================================================================
   REVNARIS MARKETING SITE — DESIGN SYSTEM
   Black modern theme, Apple-like typography, indigo accents
   ============================================================================ */

:root {
  /* Color palette */
  --r-bg: #000000;
  --r-bg-raised: #0A0A0D;
  --r-surface: #111114;
  --r-surface-alt: #16161A;
  --r-surface-raised: #1C1C21;
  --r-border: #1F1F24;
  --r-border-strong: #2A2A32;

  --r-text: #FFFFFF;
  --r-text-muted: #A1A1AA;
  --r-text-faint: #71717A;
  --r-text-dim: #52525B;

  --r-primary: #6366F1;
  --r-primary-hover: #818CF8;
  --r-primary-soft: rgba(99, 102, 241, 0.12);
  --r-primary-glow: rgba(129, 140, 248, 0.4);

  --r-accent-violet: #A78BFA;
  --r-accent-pink: #EC4899;
  --r-accent-green: #6EE7B7;
  --r-accent-yellow: #FCD34D;
  --r-accent-blue: #93C5FD;

  /* Typography scale */
  --r-font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', 'Inter', sans-serif;
  --r-font-mono: ui-monospace, 'SF Mono', 'Menlo', 'Monaco', 'Courier New', monospace;

  /* Spacing */
  --r-radius-sm: 8px;
  --r-radius: 12px;
  --r-radius-lg: 20px;
  --r-radius-xl: 28px;

  /* Container width */
  --r-max-width: 1200px;
}

* { box-sizing: border-box; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--r-bg);
  color: var(--r-text);
  font-family: var(--r-font);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  overflow-x: hidden;
}

body {
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 50% at 100% 50%, rgba(167, 139, 250, 0.06), transparent 50%);
  min-height: 100vh;
}

a { color: var(--r-primary-hover); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--r-text); }

img, svg { display: block; max-width: 100%; }

::selection { background: var(--r-primary); color: white; }

/* ============================================================================
   TYPOGRAPHY SCALE
   ============================================================================ */
.display-xl {
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
  background: linear-gradient(180deg, #FFFFFF 0%, #B4B4C0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.display-lg {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--r-text);
}

.display-md {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--r-text);
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--r-primary-hover);
  margin-bottom: 1.25rem;
}

.lead {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--r-text-muted);
  line-height: 1.55;
  font-weight: 400;
  max-width: 42rem;
}

.section-heading {
  text-align: center;
  margin-bottom: 4rem;
}

.section-heading .lead { margin-left: auto; margin-right: auto; }

/* ============================================================================
   NAVIGATION
   ============================================================================ */
.r-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
  background: transparent;
}

.r-nav.scrolled {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--r-border);
}

.r-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--r-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.r-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--r-text);
}
.r-logo-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: block;
  color: var(--r-primary-hover);
  transition: color 0.2s ease;
}
.r-logo-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}
.r-logo:hover .r-logo-mark { color: #A5B4FC; }

.r-nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.r-nav-links a {
  color: var(--r-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}
.r-nav-links a:hover,
.r-nav-links a.active { color: var(--r-text); }

.r-nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.r-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--r-border-strong);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  color: var(--r-text);
  align-items: center;
  justify-content: center;
}

/* ============================================================================
   BUTTONS
   ============================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--r-text);
  color: var(--r-bg);
}
.btn-primary:hover {
  background: var(--r-text);
  color: var(--r-bg);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15);
}

.btn-indigo {
  background: var(--r-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}
.btn-indigo:hover {
  background: var(--r-primary-hover);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--r-text);
  border-color: var(--r-border-strong);
}
.btn-ghost:hover {
  background: var(--r-surface-raised);
  color: var(--r-text);
  border-color: var(--r-text-faint);
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

.btn-xl {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
  border-radius: 999px;
}

/* ============================================================================
   LAYOUT HELPERS
   ============================================================================ */
.section {
  padding: 6rem 1.5rem;
  max-width: var(--r-max-width);
  margin: 0 auto;
  position: relative;
}

.section-sm { padding: 4rem 1.5rem; }

@media (max-width: 768px) {
  .section { padding: 4rem 1.25rem; }
}

/* ============================================================================
   HERO
   ============================================================================ */
.hero {
  padding: 10rem 1.5rem 6rem;
  max-width: var(--r-max-width);
  margin: 0 auto;
  position: relative;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--r-border-strong);
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--r-text-muted);
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
}
.hero-eyebrow strong { color: var(--r-primary-hover); font-weight: 600; }
.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--r-accent-green);
  box-shadow: 0 0 10px var(--r-accent-green);
}

.hero h1 {
  margin: 0 auto 1.5rem;
  max-width: 56rem;
}

.hero .lead {
  margin: 0 auto 2.5rem;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

/* Reassurance line under the hero CTAs — "we sit alongside your PMS" */
.hero-note {
  display: block;
  max-width: 54rem;
  margin: 0 auto 3.5rem;
  padding: 0 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--r-text-faint);
  text-align: center;
  text-wrap: balance;
}
.hero-note i {
  color: var(--r-primary-hover);
  font-size: 15px;
  margin-right: 0.45rem;
  vertical-align: -1px;
}
@media (max-width: 560px) {
  .hero-note { font-size: 0.85rem; }
}

.hero-shot {
  position: relative;
  margin: 0 auto;
  max-width: 1100px;
  perspective: 1800px;
}
.hero-shot-frame {
  background: var(--r-surface);
  border: 1px solid var(--r-border);
  border-radius: var(--r-radius-xl);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 30px 80px -20px rgba(99, 102, 241, 0.35),
    0 60px 120px -30px rgba(0, 0, 0, 0.8);
  transform-style: preserve-3d;
}
.hero-shot-frame > div {
  min-width: 760px;
}
@media (max-width: 820px) {
  .hero-shot-frame {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .hero-shot-frame::-webkit-scrollbar { height: 6px; background: transparent; }
  .hero-shot-frame::-webkit-scrollbar-thumb { background: #2A2A32; border-radius: 3px; }
}

.hero-shot-img {
  width: 100%;
  display: block;
  background: var(--r-bg-raised);
}

/* ============================================================================
   TRUSTED-BY STRIP
   ============================================================================ */
.trusted-strip {
  padding: 2rem 1.5rem 4rem;
  text-align: center;
}
.trusted-strip-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--r-text-faint);
  margin-bottom: 1.5rem;
}
.trusted-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  opacity: 0.7;
}
.trusted-logo {
  font-weight: 700;
  color: var(--r-text-muted);
  font-size: 1.1rem;
  letter-spacing: -0.015em;
  filter: grayscale(1);
  opacity: 0.6;
  transition: opacity 0.2s;
}
.trusted-logo:hover { opacity: 1; }

.trusted-wall-note {
  max-width: 44rem;
  margin: 1.75rem auto 0;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--r-text-faint);
  padding: 0 1rem;
}

/* ============================================================================
   BENTO FEATURE GRID
   ============================================================================ */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.bento-cell {
  background: var(--r-surface);
  border: 1px solid var(--r-border);
  border-radius: var(--r-radius-lg);
  padding: 2rem;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.bento-cell:hover {
  border-color: var(--r-border-strong);
  transform: translateY(-2px);
}

.bento-cell.span-4 { grid-column: span 4; }
.bento-cell.span-3 { grid-column: span 3; }
.bento-cell.span-2 { grid-column: span 2; }
.bento-cell.span-6 { grid-column: span 6; }

@media (max-width: 992px) {
  .bento-cell.span-4,
  .bento-cell.span-3,
  .bento-cell.span-2 { grid-column: span 6; }
}

.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--r-primary-soft);
  color: var(--r-primary-hover);
  margin-bottom: 1.25rem;
  font-size: 20px;
}

.bento-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--r-text);
  margin-bottom: 0.6rem;
  letter-spacing: -0.015em;
}

.bento-copy {
  font-size: 0.925rem;
  color: var(--r-text-muted);
  line-height: 1.6;
  margin-bottom: auto;
}

.bento-visual {
  margin-top: 1.5rem;
  position: relative;
}

/* --- module bento: head row, counts, sub-lists, chips --- */
.bento-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.bento-head .bento-icon { margin-bottom: 0; }

.bento-count {
  flex-shrink: 0;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--r-text-faint);
  background: var(--r-bg-raised);
  border: 1px solid var(--r-border);
  border-radius: 100px;
  padding: 4px 10px;
  font-variant-numeric: tabular-nums;
}

.bento-cell.slim { min-height: 0; }

.bento-sub {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.bento-sub li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.875rem;
  color: var(--r-text-muted);
  line-height: 1.55;
}
.bento-sub i {
  color: var(--r-primary-hover);
  font-size: 14px;
  margin-top: 3px;
  flex-shrink: 0;
}
.bento-sub strong { color: var(--r-text); font-weight: 600; }

.bento-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.75rem;
  align-items: center;
}
@media (max-width: 860px) {
  .bento-split { grid-template-columns: 1fr; gap: 2rem; }
}

.bento-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.bento-chip {
  font-size: 0.8rem;
  color: var(--r-text-muted);
  background: var(--r-bg-raised);
  border: 1px solid var(--r-border);
  border-radius: 100px;
  padding: 6px 12px;
  white-space: nowrap;
}
.bento-chip i { color: var(--r-text-dim); margin-right: 5px; font-size: 11px; }

/* ============================================================================
   DEPLOYMENT / DATA RESIDENCY
   ============================================================================ */
.region-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}
.region-tile {
  background: var(--r-surface);
  border: 1px solid var(--r-border);
  border-radius: var(--r-radius);
  padding: 1.4rem 1.5rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.region-tile:hover {
  border-color: var(--r-border-strong);
  transform: translateY(-2px);
}
.region-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--r-text);
  letter-spacing: -0.012em;
}
.region-meta {
  font-size: 0.82rem;
  color: var(--r-text-faint);
  margin-top: 0.3rem;
}

.region-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.75rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--r-border);
}
.region-note {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--r-text-muted);
}
.region-note i {
  color: var(--r-primary-hover);
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}
.region-note strong { color: var(--r-text); font-weight: 600; }

@media (max-width: 900px) {
  .region-grid { grid-template-columns: repeat(2, 1fr); }
  .region-notes { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 560px) {
  .region-grid { grid-template-columns: 1fr; }
}

/* --- About: short company note --- */
.company-note {
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
}
.company-note h2 { margin: 0 0 1.5rem; }
.company-note p {
  font-size: 1.05rem;
  color: var(--r-text-muted);
  line-height: 1.7;
  margin: 0 0 1.1rem;
}
.company-note p:last-child { margin-bottom: 0; }

.bento-foot {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--r-text-faint);
  text-align: center;
}
.bento-foot a { color: var(--r-primary-hover); text-decoration: none; }
.bento-foot a:hover { text-decoration: underline; }

/* ============================================================================
   DATA MODEL FLOW
   ============================================================================ */
.flow-model {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 3rem 0;
}
.flow-tier {
  background: var(--r-surface);
  border: 1px solid var(--r-border);
  border-radius: var(--r-radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  flex: 1;
  min-width: 0;
  position: relative;
  overflow: hidden;
}
.flow-tier::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}
.flow-tier.tier-1::before { background: var(--r-text-faint); }
.flow-tier.tier-2::before { background: var(--r-primary); }
.flow-tier.tier-3::before { background: var(--r-accent-yellow); }
.flow-tier.tier-4::before { background: var(--r-accent-green); }
.flow-tier-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--r-text-faint);
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.flow-tier-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--r-text);
  margin-bottom: 0.5rem;
}
.flow-tier-desc {
  font-size: 0.8rem;
  color: var(--r-text-muted);
  line-height: 1.5;
}
.flow-arrow {
  flex-shrink: 0;
  text-align: center;
  color: var(--r-primary-hover);
  font-size: 1.5rem;
  padding: 0 0.5rem;
}

@media (max-width: 992px) {
  .flow-model { flex-direction: column; }
  .flow-tier { width: 100%; }
  .flow-arrow { padding: 0.5rem 0; transform: rotate(90deg); }
}

/* ============================================================================
   AI HANDOFF VISUAL
   ============================================================================ */
.handoff-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-top: 3rem;
  position: relative;
}

@media (max-width: 992px) {
  .handoff-wrap { grid-template-columns: 1fr; }
}

.handoff-side {
  background: var(--r-surface);
  border: 1px solid var(--r-border);
  border-radius: var(--r-radius-lg);
  padding: 2.5rem;
  min-height: 400px;
  position: relative;
}
.handoff-side.ai::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--r-primary);
  border-radius: var(--r-radius-lg) var(--r-radius-lg) 0 0;
}
.handoff-side.human::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--r-accent-yellow);
  border-radius: var(--r-radius-lg) var(--r-radius-lg) 0 0;
}
.handoff-side-eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.75rem;
  font-weight: 700;
}
.handoff-side.ai .handoff-side-eyebrow { color: var(--r-primary-hover); }
.handoff-side.human .handoff-side-eyebrow { color: var(--r-accent-yellow); }
.handoff-side-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--r-text);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}
.handoff-steps {
  list-style: none;
  padding: 0;
  margin: 0;
}
.handoff-steps li {
  display: flex;
  gap: 0.85rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--r-border);
  font-size: 0.925rem;
  color: var(--r-text);
  line-height: 1.5;
}
.handoff-steps li:last-child { border-bottom: none; }
.handoff-step-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--r-surface-raised);
  color: var(--r-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ============================================================================
   CASE STUDY TABS (Individual guest vs Corporate group)
   ============================================================================ */
.case-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem auto 2.5rem;
  max-width: 820px;
}
@media (max-width: 640px) {
  .case-tabs { grid-template-columns: 1fr; }
}

.case-tab {
  background: var(--r-surface);
  border: 1px solid var(--r-border);
  border-radius: var(--r-radius-lg);
  padding: 1.1rem 1.3rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: inherit;
  color: inherit;
}
.case-tab:hover {
  border-color: var(--r-border-strong);
  transform: translateY(-1px);
}
.case-tab.active {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.1), var(--r-surface));
  border-color: var(--r-primary);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.2);
}
.case-tab-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--r-text);
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.case-tab-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--r-primary-soft);
  color: var(--r-primary-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.case-tab.active .case-tab-icon {
  background: var(--r-primary);
  color: white;
}
.case-tab-sub {
  font-size: 0.78rem;
  color: var(--r-text-muted);
  padding-left: 42px;
  line-height: 1.4;
}
.case-tab-sub strong {
  color: var(--r-text);
  font-weight: 600;
}

.case-content { display: none; }
.case-content.active { display: block; }

/* ============================================================================
   CASE STUDY TIMELINE
   ============================================================================ */
.timeline {
  margin-top: 3rem;
  position: relative;
}
.timeline-phase {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
}
@media (max-width: 768px) {
  .timeline-phase { grid-template-columns: 1fr; gap: 1rem; }
}

.timeline-phase-info {
  position: sticky;
  top: 100px;
  align-self: start;
}
.timeline-phase-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.phase-1 .timeline-phase-label { color: var(--r-accent-blue); }
.phase-2 .timeline-phase-label { color: var(--r-accent-yellow); }
.phase-3 .timeline-phase-label { color: var(--r-accent-green); }
.timeline-phase-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--r-text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.timeline-phase-dates {
  font-size: 0.825rem;
  color: var(--r-text-muted);
}

.timeline-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.timeline-step {
  background: var(--r-surface);
  border: 1px solid var(--r-border);
  border-radius: var(--r-radius);
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1rem;
  align-items: center;
  transition: all 0.2s;
}
@media (max-width: 560px) {
  .timeline-step {
    grid-template-columns: 70px 1fr;
    gap: 0.6rem;
    padding: 1rem 1.1rem;
  }
  .timeline-step-badge {
    grid-column: 1 / -1;
    justify-self: flex-start;
  }
}
.timeline-step:hover {
  border-color: var(--r-border-strong);
  background: var(--r-surface-alt);
}
.timeline-step-date {
  font-size: 0.75rem;
  color: var(--r-text-faint);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.timeline-step-body {
  font-size: 0.925rem;
  color: var(--r-text);
  line-height: 1.5;
}
.timeline-step-body strong { color: var(--r-primary-hover); font-weight: 600; }
.timeline-step-badge {
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--r-surface-raised);
  color: var(--r-text-muted);
  white-space: nowrap;
}

/* ============================================================================
   INTEGRATION GRID
   ============================================================================ */
.integrations {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}
@media (max-width: 768px) {
  .integrations { grid-template-columns: repeat(2, 1fr); }
}

.integration-tile {
  background: var(--r-surface);
  border: 1px solid var(--r-border);
  border-radius: var(--r-radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.2s;
  text-align: center;
}
.integration-tile:hover {
  border-color: var(--r-border-strong);
  transform: translateY(-2px);
}
.integration-tile-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--r-surface-alt);
  color: var(--r-text);
  font-size: 22px;
}
.integration-tile-name {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--r-text);
}
.integration-tile-type {
  font-size: 0.75rem;
  color: var(--r-text-faint);
}

/* ============================================================================
   STATS BAND
   ============================================================================ */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 3rem 2rem;
  background: var(--r-surface);
  border: 1px solid var(--r-border);
  border-radius: var(--r-radius-lg);
  margin: 2rem 0 4rem;
}
@media (max-width: 768px) { .stats-band { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }

.stat {
  text-align: center;
}
.stat-value {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #FFFFFF, #818CF8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
  line-height: 1;
}
.stat-label {
  font-size: 0.825rem;
  color: var(--r-text-muted);
}

/* ============================================================================
   PRICING
   ============================================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  align-items: stretch;
}
@media (max-width: 992px) { .pricing-grid { grid-template-columns: 1fr; } }

.price-card {
  background: var(--r-surface);
  border: 1px solid var(--r-border);
  border-radius: var(--r-radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card.featured {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.12), var(--r-surface));
  border-color: var(--r-primary);
}
.price-card.featured::before {
  content: "Most popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 0.85rem;
  background: var(--r-primary);
  color: white;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
}
.price-tier {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--r-text);
  margin-bottom: 0.5rem;
}
.price-tagline {
  font-size: 0.875rem;
  color: var(--r-text-muted);
  margin-bottom: 1.5rem;
  min-height: 2.5rem;
}
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.price-currency {
  font-size: 1.25rem;
  color: var(--r-text-muted);
  font-weight: 500;
}
.price-value {
  font-size: 3rem;
  font-weight: 700;
  color: var(--r-text);
  letter-spacing: -0.03em;
  line-height: 1;
}
.price-period {
  font-size: 0.875rem;
  color: var(--r-text-muted);
  margin-bottom: 2rem;
}
.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  flex: 1;
}
.price-features li {
  padding: 0.6rem 0;
  color: var(--r-text);
  font-size: 0.925rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.45;
}
.price-features li::before {
  content: "✓";
  color: var(--r-primary-hover);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============================================================================
   FAQ
   ============================================================================ */
.faq-list {
  margin-top: 3rem;
  display: grid;
  gap: 0.75rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  background: var(--r-surface);
  border: 1px solid var(--r-border);
  border-radius: var(--r-radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item:hover { border-color: var(--r-border-strong); }
.faq-item[open] { border-color: var(--r-border-strong); }

.faq-item summary {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--r-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  font-size: 0.975rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--r-text-muted);
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.2s;
  line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--r-text-muted);
  line-height: 1.6;
  font-size: 0.925rem;
}

/* ============================================================================
   FINAL CTA
   ============================================================================ */
.final-cta {
  text-align: center;
  padding: 6rem 2rem;
  margin: 4rem auto 2rem;
  max-width: 1200px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(99, 102, 241, 0.3), transparent 60%),
    var(--r-surface);
  border: 1px solid var(--r-border-strong);
  border-radius: var(--r-radius-xl);
  position: relative;
  overflow: hidden;
}
.final-cta h2 {
  margin-bottom: 1rem;
}
.final-cta .lead {
  margin: 0 auto 2rem;
}

/* ============================================================================
   FOOTER
   ============================================================================ */
footer.r-footer {
  padding: 4rem 1.5rem 2rem;
  max-width: var(--r-max-width);
  margin: 0 auto;
  border-top: 1px solid var(--r-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

.footer-brand p {
  color: var(--r-text-muted);
  font-size: 0.875rem;
  margin: 1rem 0;
  max-width: 20rem;
}

.footer-col h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--r-text-faint);
  margin: 0 0 1rem;
  font-weight: 600;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li {
  margin-bottom: 0.6rem;
}
.footer-col a {
  color: var(--r-text-muted);
  font-size: 0.875rem;
}
.footer-col a:hover { color: var(--r-text); }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--r-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.825rem;
  color: var(--r-text-faint);
}

/* ============================================================================
   FEATURE SECTIONS (zig-zag)
   ============================================================================ */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 7rem;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse .feature-copy { order: 2; }
.feature-row.reverse .feature-visual { order: 1; }

@media (max-width: 992px) {
  .feature-row { grid-template-columns: 1fr; gap: 2rem; }
  .feature-row.reverse .feature-copy { order: unset; }
  .feature-row.reverse .feature-visual { order: unset; }
}

.feature-copy h3 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0.5rem 0 1rem;
  color: var(--r-text);
}
.feature-copy p {
  font-size: 1rem;
  color: var(--r-text-muted);
  line-height: 1.6;
}

.feature-bullets {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}
.feature-bullets li {
  display: flex;
  gap: 0.75rem;
  padding: 0.6rem 0;
  color: var(--r-text);
  font-size: 0.925rem;
  line-height: 1.5;
}
.feature-bullets li::before {
  content: "→";
  color: var(--r-primary-hover);
  font-weight: 700;
  flex-shrink: 0;
}

.feature-visual {
  position: relative;
}
.feature-shot {
  background: var(--r-surface);
  border: 1px solid var(--r-border);
  border-radius: var(--r-radius-lg);
  padding: 1.5rem;
  box-shadow:
    0 20px 60px -20px rgba(99, 102, 241, 0.3),
    0 10px 30px -10px rgba(0, 0, 0, 0.6);
}

/* ============================================================================
   MOBILE NAV
   ============================================================================ */
@media (max-width: 992px) {
  .r-nav-links { display: none; }
  .r-nav-toggle { display: flex; }
  .r-nav-cta .btn-ghost { display: none; }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(4, 4, 6, 0.94);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
  display: flex;
  flex-direction: column;
  padding: calc(env(safe-area-inset-top, 0px) + 1.15rem) 1.5rem
           calc(env(safe-area-inset-bottom, 0px) + 1.6rem);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.44s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.44s;
  overscroll-behavior: contain;
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); visibility: visible; }
@media (min-width: 993px) { .mobile-menu { display: none; } }

/* soft brand glow so the panel isn't a flat black sheet */
.mobile-menu::before {
  content: "";
  position: absolute;
  top: -18%;
  right: -32%;
  width: 90%;
  height: 52%;
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.20), transparent 68%);
  pointer-events: none;
}

.mm-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 2rem;
  flex-shrink: 0;
}
.mm-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--r-text);
  text-decoration: none;
}
.mm-brand .r-logo-mark { width: 26px; height: 26px; }

.mobile-menu-close {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--r-surface);
  border: 1px solid var(--r-border);
  color: var(--r-text);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.mobile-menu-close:active {
  transform: scale(0.92);
  background: var(--r-surface-raised);
  border-color: var(--r-border-strong);
}

.mm-nav {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-height: 0;
  padding-bottom: 1rem;
}
.mm-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0;
  font-size: clamp(1.45rem, 6vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--r-text);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  opacity: 0;
  transform: translateY(16px);
}
.mm-link:last-of-type { border-bottom: none; }
.mm-link i {
  font-size: 0.9rem;
  color: var(--r-text-dim);
  transition: transform 0.25s ease, color 0.25s ease;
}
.mm-link:active,
.mm-link:focus-visible { color: var(--r-primary-hover); }
.mm-link:active i { transform: translateX(5px); color: var(--r-primary-hover); }
.mm-link.current { color: var(--r-primary-hover); }
.mm-link.current i { color: var(--r-primary-hover); }

@keyframes mmIn { to { opacity: 1; transform: none; } }
.mobile-menu.open .mm-link,
.mobile-menu.open .mm-foot {
  animation: mmIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.mobile-menu.open .mm-link:nth-of-type(1) { animation-delay: 0.08s; }
.mobile-menu.open .mm-link:nth-of-type(2) { animation-delay: 0.14s; }
.mobile-menu.open .mm-link:nth-of-type(3) { animation-delay: 0.20s; }
.mobile-menu.open .mm-link:nth-of-type(4) { animation-delay: 0.26s; }
.mobile-menu.open .mm-link:nth-of-type(5) { animation-delay: 0.32s; }
.mobile-menu.open .mm-foot { animation-delay: 0.38s; }

.mm-foot {
  position: relative;
  flex-shrink: 0;
  padding-top: 2rem;
  opacity: 0;
  transform: translateY(16px);
}
.mm-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 1.05rem 1rem;
  border-radius: 100px;
  background: var(--r-primary);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: 0 10px 34px rgba(99, 102, 241, 0.38);
  transition: transform 0.18s ease;
}
.mm-cta:active { transform: scale(0.98); }
.mm-meta {
  margin-top: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--r-text-faint);
  letter-spacing: -0.005em;
}
.mm-meta a { color: var(--r-text-muted); text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  .mobile-menu { transition: none; }
  .mobile-menu.open .mm-link,
  .mobile-menu.open .mm-foot { animation: none; opacity: 1; transform: none; }
}

/* ============================================================================
   CONTACT FORM
   ============================================================================ */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 768px) { .form-grid { grid-template-columns: 1fr; } }

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-field.full { grid-column: span 2; }
@media (max-width: 768px) { .form-field.full { grid-column: span 1; } }
.form-field label {
  font-size: 0.825rem;
  color: var(--r-text-muted);
  font-weight: 500;
}
.form-field input,
.form-field textarea,
.form-field select {
  background: var(--r-surface);
  border: 1px solid var(--r-border);
  border-radius: var(--r-radius-sm);
  color: var(--r-text);
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--r-primary);
  box-shadow: 0 0 0 3px var(--r-primary-soft);
}
.form-field textarea { min-height: 120px; resize: vertical; }

/* Contact form states (WordPress handler) */
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-field.has-error input,
.form-field.has-error textarea,
.form-field.has-error select { border-color: #F87171; }
.field-error { font-size: 0.8rem; color: #F87171; }
.form-status {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: var(--r-radius-sm);
  font-size: 0.9rem;
  line-height: 1.5;
}
.form-status.is-success { background: rgba(110, 231, 183, 0.1); border: 1px solid rgba(110, 231, 183, 0.35); color: var(--r-accent-green); }
.form-status.is-error { background: rgba(248, 113, 113, 0.1); border: 1px solid rgba(248, 113, 113, 0.35); color: #FCA5A5; }
.form-legal { margin: 0.75rem 0 0; font-size: 0.75rem; color: var(--r-text-faint); }
.form-legal a { color: var(--r-text-muted); }
#contact-form button[type="submit"][disabled] { opacity: 0.7; cursor: progress; }
/* Badge hidden; the required reCAPTCHA notice is shown in .form-legal instead */
.grecaptcha-badge { visibility: hidden; }

/* ============================================================================
   REVEAL ANIMATIONS (GSAP-friendly starting states)
   Only hide if JS is enabled — the `.js-ready` class is added by main.js early
   so content stays visible for no-JS and search engines.
   ============================================================================ */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(30px);
}
.js-ready .reveal-fast {
  opacity: 0;
  transform: translateY(20px);
}

/* ============================================================================
   TRUSTED WALL (enhanced "Built for and with")
   ============================================================================ */
.trusted-wall {
  text-align: center;
  padding: 4rem 1.5rem 5rem;
  max-width: var(--r-max-width);
  margin: 0 auto;
}
.trusted-wall-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--r-text-faint);
  margin-bottom: 2rem;
  font-weight: 600;
}
.trusted-wall-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}
@media (max-width: 992px) { .trusted-wall-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .trusted-wall-grid { grid-template-columns: 1fr; } }

.trusted-tile {
  background: var(--r-surface);
  border: 1px solid var(--r-border);
  border-radius: var(--r-radius);
  padding: 1.25rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-align: left;
  transition: all 0.2s;
}
.trusted-tile:hover {
  border-color: var(--r-border-strong);
  transform: translateY(-2px);
}
.trusted-tile-mark {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: white;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}
.trusted-tile-body { min-width: 0; }
.trusted-tile-name {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--r-text);
  line-height: 1.3;
  margin-bottom: 1px;
}
.trusted-tile-type {
  font-size: 0.72rem;
  color: var(--r-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* ============================================================================
   PRODUCT DEMO (tabbed real-UI recreations)
   ============================================================================ */
.product-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem auto 2rem;
  background: var(--r-surface);
  border: 1px solid var(--r-border);
  border-radius: 999px;
  padding: 5px;
  max-width: fit-content;
}
.product-tab {
  background: transparent;
  border: none;
  padding: 0.5rem 1rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--r-text-muted);
  cursor: pointer;
  border-radius: 999px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .product-tab { padding: 0.4rem 0.7rem; font-size: 0.8rem; }
  .product-tab i { display: none; }
}
.product-tab i { font-size: 0.95rem; }
.product-tab:hover { color: var(--r-text); }
.product-tab.active {
  background: var(--r-primary);
  color: white;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.product-demo-frame {
  background: var(--r-surface);
  border: 1px solid var(--r-border);
  border-radius: var(--r-radius-xl);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 30px 80px -20px rgba(99, 102, 241, 0.25),
    0 60px 120px -30px rgba(0, 0, 0, 0.8);
  margin: 0 auto;
  max-width: 1200px;
}
.product-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--r-border);
  background: var(--r-bg-raised);
}
.product-chrome-dots {
  display: flex;
  gap: 6px;
}
.product-chrome-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #52525B;
}
.product-chrome-url {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: var(--r-text-faint);
  font-family: var(--r-font-mono);
}

/* App shell inside demo frame — matches real product styling.
   On mobile the surfaces keep their full desktop layout and scroll
   horizontally inside the frame rather than collapsing. */
.app-stage {
  position: relative;
  background: #09090B;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.app-surface {
  display: none;
}
.app-surface.active {
  display: grid;
  grid-template-columns: 190px 1fr;
  min-height: 640px;
  min-width: 1000px;
}

/* Thin dark scrollbar for horizontal scroll on mobile */
.app-stage::-webkit-scrollbar { height: 8px; background: #0A0A0D; }
.app-stage::-webkit-scrollbar-thumb {
  background: #2A2A32;
  border-radius: 4px;
}
.app-stage::-webkit-scrollbar-thumb:hover { background: #3F3F46; }

/* Mobile swipe hint shown under the tab bar on small screens */
.product-mobile-hint {
  display: none;
  text-align: center;
  font-size: 11px;
  color: var(--r-text-faint);
  margin: -0.5rem auto 1rem;
  letter-spacing: 0.04em;
}
.product-mobile-hint i { color: var(--r-primary-hover); margin: 0 4px; }

@media (max-width: 1024px) {
  .product-mobile-hint { display: block; }
}

/* Edge fade on mobile to signal more content horizontally */
.product-demo-frame {
  position: relative;
}
@media (max-width: 1024px) {
  .product-demo-frame::after {
    content: "";
    position: absolute;
    top: 44px;
    right: 0;
    bottom: 8px;
    width: 40px;
    background: linear-gradient(to right, transparent, var(--r-surface));
    pointer-events: none;
    z-index: 2;
    border-radius: 0 var(--r-radius-xl) var(--r-radius-xl) 0;
  }
}

.app-sidebar {
  background: #0A0A0D;
  border-right: 1px solid #1F1F24;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 12px;
  margin-bottom: 8px;
}
.app-logo-mark {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: block;
  color: #818CF8;
}
.app-logo-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}
.app-brand-name { font-size: 12px; font-weight: 600; color: #FAFAFA; line-height: 1.2; }
.app-brand-tenant { font-size: 9.5px; color: #71717A; line-height: 1.2; margin-top: 1px; }

.app-nav {
  flex: 1;
  overflow: hidden;
}
.app-nav-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #52525B;
  padding: 4px 8px 2px;
  font-weight: 600;
  margin-top: 6px;
}
.app-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 5px;
  color: #A1A1AA;
  font-size: 11px;
  cursor: default;
  margin-bottom: 1px;
}
.app-nav-link i { font-size: 12px; color: #71717A; flex-shrink: 0; width: 14px; }
.app-nav-link.active {
  background: rgba(99, 102, 241, 0.12);
  color: #FAFAFA;
}
.app-nav-link.active i { color: #818CF8; }
.app-nav-badge {
  margin-left: auto;
  background: #1C1C21;
  color: #A1A1AA;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 999px;
  font-weight: 600;
}
.app-nav-badge.indigo { background: #6366F1; color: white; }
.app-nav-badge.danger { background: #DC2626; color: white; }
.app-nav-badge.warning { background: #D97706; color: white; }

.app-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 6px;
  margin-top: 8px;
  border-top: 1px solid #1F1F24;
  padding-top: 10px;
}
.app-user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.18);
  color: #818CF8;
  font-weight: 700;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.app-user-name { font-size: 11px; font-weight: 600; color: #FAFAFA; line-height: 1.2; }
.app-user-role { font-size: 9.5px; color: #71717A; line-height: 1.2; margin-top: 1px; }

.app-main-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.app-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-bottom: 1px solid #1F1F24;
  background: #09090B;
}
.app-property-switcher {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: #131316;
  border: 1px solid #27272A;
  border-radius: 6px;
  font-size: 11px;
  color: #FAFAFA;
  font-weight: 500;
}
.app-property-switcher i { color: #818CF8; font-size: 11px; }
.app-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #131316;
  border: 1px solid #27272A;
  border-radius: 6px;
  max-width: 400px;
}
.app-search i { color: #71717A; font-size: 11px; }
.app-search-text { flex: 1; font-size: 11px; color: #71717A; }
.app-search-kbd {
  background: #1C1C21;
  border: 1px solid #27272A;
  padding: 1px 5px;
  border-radius: 3px;
  font-family: var(--r-font-mono);
  font-size: 9px;
  color: #A1A1AA;
}
.app-topbar-right {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.app-btn-primary {
  background: #6366F1;
  color: white;
  border: none;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: default;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: inherit;
}
.app-icon-btn {
  background: transparent;
  border: 1px solid #27272A;
  color: #A1A1AA;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  cursor: default;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.app-main {
  padding: 16px;
  overflow: auto;
  flex: 1;
}

.app-page-header {
  margin-bottom: 14px;
}
.app-crumb {
  font-size: 10.5px;
  color: #71717A;
  margin-bottom: 2px;
}
.app-title {
  font-size: 20px;
  font-weight: 700;
  color: #FAFAFA;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}
.app-subtitle {
  font-size: 11px;
  color: #A1A1AA;
}

/* KPI cards */
.app-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
@media (max-width: 768px) { .app-kpi-row { grid-template-columns: repeat(2, 1fr); } }
.app-kpi {
  background: #131316;
  border: 1px solid #27272A;
  border-radius: 8px;
  padding: 12px;
}
.app-kpi-label {
  font-size: 10px;
  color: #71717A;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  font-weight: 600;
}
.app-kpi-value {
  font-size: 22px;
  font-weight: 700;
  color: #FAFAFA;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  margin-bottom: 4px;
}
.app-kpi-delta {
  font-size: 10.5px;
  color: #6EE7B7;
  font-weight: 600;
}
.app-kpi-delta.pos { color: #6EE7B7; }
.app-kpi-delta.neg { color: #FCA5A5; }
.app-kpi-delta span { color: #71717A; font-weight: 400; margin-left: 4px; }

/* Panel */
.app-panel {
  background: #131316;
  border: 1px solid #27272A;
  border-radius: 10px;
  padding: 14px;
}
.app-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.app-panel-title {
  font-size: 12px;
  font-weight: 600;
  color: #FAFAFA;
}
.app-panel-subtitle {
  font-size: 10px;
  color: #71717A;
  margin-top: 1px;
}

/* Handoff alert row */
.app-alert {
  background: #0A0A0D;
  border: 1px solid #1F1F24;
  border-radius: 7px;
  padding: 10px 12px;
  margin-bottom: 6px;
  position: relative;
  overflow: hidden;
}
.app-alert.urgent { border-color: rgba(220, 38, 38, 0.4); }
.app-alert.high { border-color: rgba(217, 119, 6, 0.4); }
.app-alert-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.app-alert-title {
  font-size: 11.5px;
  font-weight: 600;
  color: #FAFAFA;
}
.app-badge {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: auto;
  text-transform: uppercase;
}
.app-badge.urgent { background: rgba(220, 38, 38, 0.18); color: #FCA5A5; }
.app-badge.high-value { background: rgba(217, 119, 6, 0.18); color: #FCD34D; }
.app-badge.policy { background: rgba(99, 102, 241, 0.18); color: #818CF8; }
.app-alert-body {
  font-size: 10.5px;
  color: #A1A1AA;
  line-height: 1.4;
  margin-bottom: 4px;
}
.app-alert-meta {
  font-size: 9.5px;
  color: #71717A;
}
.app-alert-meta a { color: #818CF8; }

/* Opportunities-by-stage bar chart */
.app-stage-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 130px;
  padding: 10px 4px 20px;
}
.app-stage-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.app-stage-bar-fill {
  width: 70%;
  background: #6366F1;
  border-radius: 4px 4px 0 0;
  position: relative;
}
.app-stage-bar-value {
  position: absolute;
  top: -16px;
  font-size: 10px;
  color: #FAFAFA;
  font-weight: 600;
}
.app-stage-bar-label {
  font-size: 9.5px;
  color: #A1A1AA;
  margin-top: 6px;
  text-align: center;
}

/* Donut */
.app-donut {
  width: 150px;
  height: 150px;
  position: relative;
  margin: 0 auto;
}
.app-donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.app-donut-label {
  font-size: 9px;
  color: #71717A;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.app-donut-value {
  font-size: 22px;
  font-weight: 700;
  color: #FAFAFA;
  line-height: 1;
  margin-top: 2px;
}
.app-donut-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  margin-top: 10px;
  padding: 0 10px;
}
.app-donut-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: #A1A1AA;
}
.app-donut-legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  flex-shrink: 0;
}

/* Line-chart mini */
.app-line-chart {
  height: 150px;
  position: relative;
  padding: 10px 0 24px;
}

/* ============================================================================
   INBOX SURFACE
   Three-column layout. Inside the horizontally-scrolling frame on mobile,
   the full desktop layout is preserved — no responsive collapse here.
   ============================================================================ */
.inbox-grid {
  display: grid;
  grid-template-columns: 240px 1fr 240px;
  gap: 10px;
  height: 100%;
  min-height: 580px;
  min-width: 780px;
}

.inbox-list {
  background: #0A0A0D;
  border: 1px solid #1F1F24;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.inbox-list-search {
  padding: 8px 10px;
  border-bottom: 1px solid #1F1F24;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #131316;
}
.inbox-list-search input {
  background: transparent;
  border: none;
  color: #FAFAFA;
  font-size: 10.5px;
  flex: 1;
  outline: none;
  font-family: inherit;
}
.inbox-list-tabs {
  display: flex;
  gap: 2px;
  padding: 6px 8px;
  border-bottom: 1px solid #1F1F24;
  overflow-x: auto;
}
.inbox-list-tab {
  padding: 3px 7px;
  border-radius: 5px;
  font-size: 10px;
  color: #A1A1AA;
  background: transparent;
  cursor: default;
  display: inline-flex;
  gap: 4px;
  align-items: center;
  flex-shrink: 0;
}
.inbox-list-tab.active { background: #1C1C21; color: #FAFAFA; }
.inbox-list-tab-count { color: #71717A; font-weight: 600; }
.inbox-list-items { flex: 1; overflow-y: auto; }

.inbox-row {
  padding: 9px 10px;
  border-bottom: 1px solid #1F1F24;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 8px;
  cursor: default;
}
.inbox-row.active { background: rgba(99, 102, 241, 0.08); border-left: 2px solid #6366F1; padding-left: 8px; }
.inbox-row:hover:not(.active) { background: #131316; }
.inbox-row-avatar {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.inbox-row-name {
  font-size: 11px;
  font-weight: 600;
  color: #FAFAFA;
  line-height: 1.2;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.inbox-row-preview {
  font-size: 10px;
  color: #71717A;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.inbox-row-time { font-size: 9px; color: #71717A; font-weight: 500; }
.inbox-row-footer { display: flex; gap: 4px; margin-top: 4px; }
.inbox-mini-pill {
  font-size: 8.5px;
  padding: 1px 5px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.inbox-mini-pill.ai { background: rgba(99, 102, 241, 0.15); color: #818CF8; }
.inbox-mini-pill.en { background: #1C1C21; color: #71717A; }
.inbox-mini-pill.fr { background: #1C1C21; color: #71717A; }
.inbox-mini-pill.es { background: #1C1C21; color: #71717A; }
.inbox-mini-pill.won { background: rgba(16, 185, 129, 0.15); color: #6EE7B7; }
.inbox-mini-pill.assigned { background: rgba(217, 119, 6, 0.15); color: #FCD34D; }
.inbox-mini-pill.complaint { background: rgba(220, 38, 38, 0.15); color: #FCA5A5; }
.inbox-mini-pill.resolved { background: rgba(110, 231, 183, 0.12); color: #6EE7B7; }
.inbox-mini-pill.resumed { background: rgba(99, 102, 241, 0.12); color: #818CF8; }
.inbox-mini-pill.wokeup { background: rgba(252, 211, 77, 0.12); color: #FCD34D; }

.inbox-convo {
  background: #0A0A0D;
  border: 1px solid #1F1F24;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.inbox-convo-header {
  padding: 10px 14px;
  border-bottom: 1px solid #1F1F24;
}
.inbox-convo-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #FAFAFA;
  margin-bottom: 2px;
}
.inbox-convo-meta {
  font-size: 10px;
  color: #71717A;
  display: flex;
  gap: 6px;
  align-items: center;
}
.inbox-ai-banner {
  padding: 7px 14px;
  background: rgba(99, 102, 241, 0.08);
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
  font-size: 10px;
  color: #818CF8;
  display: flex;
  align-items: center;
  gap: 6px;
}
.inbox-ai-banner strong { color: #FAFAFA; }
.inbox-ai-banner-cta {
  margin-left: auto;
  background: #6366F1;
  color: white;
  border: none;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
  cursor: default;
}

.inbox-thread {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.inbox-sys {
  text-align: center;
  font-size: 9.5px;
  color: #71717A;
  padding: 3px 0;
}
.inbox-sys.inline {
  background: #131316;
  border: 1px solid #27272A;
  padding: 5px 10px;
  border-radius: 999px;
  display: inline-flex;
  gap: 6px;
  margin: 0 auto;
  align-items: center;
}
.inbox-msg {
  max-width: 72%;
  padding: 8px 11px;
  border-radius: 10px;
  font-size: 11.5px;
  line-height: 1.45;
  color: #FAFAFA;
}
.inbox-msg-time {
  font-size: 9px;
  color: #71717A;
  margin-top: 3px;
}
.inbox-msg.guest {
  align-self: flex-start;
  background: #131316;
  border: 1px solid #27272A;
  border-radius: 10px 10px 10px 2px;
}
.inbox-msg.ai {
  align-self: flex-end;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.28);
  border-radius: 10px 10px 2px 10px;
}
.inbox-msg-ai-tag {
  font-size: 8.5px;
  color: #818CF8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 3px;
}
.inbox-composer {
  padding: 10px 14px;
  border-top: 1px solid #1F1F24;
  background: #131316;
  font-size: 10.5px;
  color: #71717A;
}

.inbox-context {
  background: #0A0A0D;
  border: 1px solid #1F1F24;
  border-radius: 8px;
  padding: 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ctx-block {
  background: #131316;
  border: 1px solid #27272A;
  border-radius: 7px;
  padding: 9px 10px;
}
.ctx-label {
  font-size: 9px;
  color: #71717A;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 6px;
}
.ctx-kv {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 10.5px;
  padding: 2px 0;
}
.ctx-kv-k { color: #71717A; }
.ctx-kv-v { color: #FAFAFA; font-weight: 500; text-align: right; }
.ctx-ai {
  background: rgba(167, 139, 250, 0.08);
  border: 1px solid rgba(167, 139, 250, 0.2);
  padding: 9px 10px;
  border-radius: 7px;
}
.ctx-ai-label {
  font-size: 9px;
  color: #C4B5FD;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.ctx-ai-body {
  font-size: 10.5px;
  color: #FAFAFA;
  line-height: 1.4;
  margin-bottom: 6px;
}
.ctx-ai-cta {
  background: #6366F1;
  color: white;
  border: none;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
  cursor: default;
}

/* ============================================================================
   PIPELINE SURFACE
   ============================================================================ */
.pipe-header-kpis {
  display: flex;
  gap: 20px;
  padding: 12px 2px;
  border-bottom: 1px solid #1F1F24;
  margin-bottom: 12px;
}
.pipe-header-kpi-label {
  font-size: 9px;
  color: #71717A;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 2px;
}
.pipe-header-kpi-value {
  font-size: 16px;
  font-weight: 700;
  color: #FAFAFA;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
}

.pipe-stage-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.pipe-stage-tab {
  padding: 4px 10px;
  background: #131316;
  border: 1px solid #27272A;
  border-radius: 999px;
  font-size: 10.5px;
  color: #A1A1AA;
  cursor: default;
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.pipe-stage-tab.active { background: rgba(99, 102, 241, 0.12); border-color: #6366F1; color: #FAFAFA; }
.pipe-stage-tab-count {
  background: #1C1C21;
  padding: 1px 5px;
  border-radius: 999px;
  font-size: 9px;
  color: #71717A;
  font-weight: 700;
}

.pipe-kanban {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  min-width: 900px;
}

.pipe-col {
  background: #0A0A0D;
  border: 1px solid #1F1F24;
  border-radius: 8px;
  padding: 10px;
}
.pipe-col-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.pipe-col-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}
.pipe-col-title::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
}
.pipe-col-title.new { color: #71717A; }
.pipe-col-title.new::before { background: #71717A; }
.pipe-col-title.engaged { color: #93C5FD; }
.pipe-col-title.engaged::before { background: #93C5FD; }
.pipe-col-title.quoted { color: #FCD34D; }
.pipe-col-title.quoted::before { background: #FCD34D; }
.pipe-col-title.awaiting { color: #C4B5FD; }
.pipe-col-title.awaiting::before { background: #C4B5FD; }
.pipe-col-title.negotiating { color: #FCD34D; }
.pipe-col-title.negotiating::before { background: #FCD34D; }
.pipe-col-count {
  font-size: 10px;
  color: #71717A;
  font-weight: 600;
}
.pipe-col-stats {
  font-size: 9.5px;
  color: #52525B;
  margin-bottom: 10px;
}

.pipe-card {
  background: #131316;
  border: 1px solid #27272A;
  border-radius: 7px;
  padding: 9px 10px;
  margin-bottom: 6px;
  display: block;
}
.pipe-card:hover { border-color: #3F3F46; }
.pipe-card-src {
  font-size: 9px;
  color: #71717A;
  margin-bottom: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  text-transform: capitalize;
}
.pipe-card-src i { font-size: 10px; }
.pipe-card-name {
  font-size: 11px;
  font-weight: 600;
  color: #FAFAFA;
  margin-bottom: 2px;
  line-height: 1.3;
}
.pipe-card-detail {
  font-size: 9.5px;
  color: #71717A;
  margin-bottom: 7px;
  line-height: 1.3;
}
.pipe-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pipe-card-value {
  font-size: 11px;
  font-weight: 700;
  color: #FAFAFA;
  font-variant-numeric: tabular-nums;
}
.pipe-card-prob {
  display: flex;
  align-items: center;
  gap: 5px;
}
.pipe-card-prob-val {
  font-size: 9.5px;
  color: #A1A1AA;
  font-weight: 600;
}
.pipe-card-assignee {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  font-size: 8px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.pipe-card-add {
  padding: 7px 10px;
  text-align: center;
  font-size: 9.5px;
  color: #52525B;
  border: 1px dashed #27272A;
  border-radius: 7px;
  cursor: default;
}

/* ============================================================================
   MY DAY SURFACE
   ============================================================================ */
.md-greeting {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #FAFAFA;
  line-height: 1.1;
  margin-bottom: 3px;
}
.md-date {
  font-size: 11px;
  color: #71717A;
  margin-bottom: 6px;
}
.md-summary {
  font-size: 11.5px;
  color: #A1A1AA;
  margin-bottom: 16px;
  line-height: 1.5;
}
.md-summary strong { color: #FAFAFA; font-weight: 600; }
.md-summary .sep { color: #3F3F46; margin: 0 6px; }
.md-summary .urgent { color: #FCD34D; font-weight: 600; }

.md-view-as {
  background: rgba(99, 102, 241, 0.07);
  border: 1px solid rgba(99, 102, 241, 0.22);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  color: #A1A1AA;
  margin-bottom: 14px;
}
.md-view-as i { color: #818CF8; font-size: 12px; }
.md-view-as strong { color: #FAFAFA; }
.md-role-toggle {
  margin-left: auto;
  display: flex;
  gap: 3px;
  background: #131316;
  border: 1px solid #27272A;
  border-radius: 6px;
  padding: 2px;
}
.md-role-toggle button {
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 500;
  background: transparent;
  border: none;
  border-radius: 4px;
  color: #A1A1AA;
  cursor: default;
  font-family: inherit;
}
.md-role-toggle button.active {
  background: #1C1C21;
  color: #FAFAFA;
}

.md-quick-actions {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}
.md-qa-btn {
  background: #131316;
  border: 1px solid #27272A;
  border-radius: 7px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 500;
  color: #FAFAFA;
  cursor: default;
  text-align: left;
  font-family: inherit;
}
.md-qa-btn i { font-size: 12px; color: #818CF8; flex-shrink: 0; }
.md-qa-btn .sub { color: #71717A; font-weight: 400; margin-left: 2px; }

.md-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.md-kpi {
  background: #131316;
  border: 1px solid #27272A;
  border-radius: 8px;
  padding: 10px 12px;
}
.md-kpi-label {
  font-size: 9.5px;
  color: #71717A;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  font-weight: 600;
}
.md-kpi-value {
  font-size: 20px;
  font-weight: 700;
  color: #FAFAFA;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  margin-bottom: 3px;
}
.md-kpi-sub {
  font-size: 10px;
  color: #71717A;
}
.md-kpi-sub strong.warn { color: #FCD34D; }
.md-kpi-sub strong.bad { color: #FCA5A5; }

.md-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 10px;
}

.md-priority-card {
  background: #131316;
  border: 1px solid #27272A;
  border-radius: 8px;
  padding: 11px 12px;
  margin-bottom: 7px;
  position: relative;
  overflow: hidden;
}
.md-priority-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
}
.md-priority-card.urgent::before { background: #DC2626; }
.md-priority-card.high::before { background: #FCD34D; }
.md-priority-card.normal::before { background: #818CF8; }

.md-priority-body {
  display: flex;
  gap: 10px;
}
.md-priority-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
}
.md-priority-card.urgent .md-priority-icon { background: rgba(220, 38, 38, 0.15); color: #FCA5A5; }
.md-priority-card.high .md-priority-icon { background: rgba(252, 211, 77, 0.15); color: #FCD34D; }
.md-priority-card.normal .md-priority-icon { background: rgba(99, 102, 241, 0.15); color: #818CF8; }
.md-priority-main { flex: 1; min-width: 0; }
.md-priority-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
  flex-wrap: wrap;
}
.md-priority-title {
  font-size: 12px;
  font-weight: 600;
  color: #FAFAFA;
}
.md-pill {
  font-size: 8.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.md-pill.deadline { background: rgba(220, 38, 38, 0.15); color: #FCA5A5; }
.md-pill.platinum { background: rgba(167, 139, 250, 0.18); color: #C4B5FD; }
.md-pill.group { background: rgba(99, 102, 241, 0.15); color: #818CF8; }
.md-pill-faint {
  font-size: 9.5px;
  color: #71717A;
  margin-left: auto;
}
.md-priority-meta {
  font-size: 10.5px;
  color: #A1A1AA;
  margin-bottom: 7px;
  line-height: 1.4;
}
.md-priority-meta strong { color: #FAFAFA; }
.md-ai-note {
  background: rgba(167, 139, 250, 0.08);
  border: 1px solid rgba(167, 139, 250, 0.15);
  padding: 6px 9px;
  border-radius: 5px;
  margin-bottom: 7px;
  display: flex;
  gap: 5px;
  font-size: 10px;
  color: #C4B5FD;
  line-height: 1.45;
}
.md-ai-note i { color: #A78BFA; margin-top: 1px; flex-shrink: 0; }
.md-priority-actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.md-btn-sm {
  background: transparent;
  border: 1px solid #27272A;
  color: #A1A1AA;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 500;
  cursor: default;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: inherit;
}
.md-btn-sm.primary {
  background: #6366F1;
  color: white;
  border-color: #6366F1;
}

.md-arrival-row {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 8px;
  padding: 7px 0;
  align-items: center;
  border-bottom: 1px solid #1F1F24;
}
.md-arrival-row:last-child { border-bottom: none; }
.md-arrival-time {
  font-size: 11px;
  font-weight: 700;
  color: #FAFAFA;
  font-variant-numeric: tabular-nums;
}
.md-arrival-time.vip { color: #FCD34D; }
.md-arrival-name {
  font-size: 11px;
  font-weight: 600;
  color: #FAFAFA;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.md-arrival-meta {
  font-size: 10px;
  color: #71717A;
  line-height: 1.4;
  margin-top: 1px;
}
.md-arrival-meta .ok { color: #6EE7B7; }
.md-arrival-meta .bad { color: #FCA5A5; font-weight: 600; }
.md-arrival-room {
  font-size: 10.5px;
  font-weight: 700;
  color: #FAFAFA;
  background: #1C1C21;
  padding: 2px 7px;
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
}

.md-opp-row {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid #1F1F24;
  align-items: center;
}
.md-opp-row:last-child { border-bottom: none; }
.md-opp-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}
.md-opp-title {
  font-size: 11px;
  font-weight: 600;
  color: #FAFAFA;
  line-height: 1.3;
}
.md-opp-meta {
  font-size: 9.5px;
  color: #71717A;
  margin-top: 1px;
}
.md-opp-status {
  font-size: 10px;
  font-weight: 700;
  text-align: right;
  flex-shrink: 0;
}
.md-opp-status.action { color: #FCA5A5; }
.md-opp-status.ai { color: #6EE7B7; }
.md-opp-status.wait { color: #71717A; }

/* My Day on narrower widths — collapse 2-col grid to single column */
@media (max-width: 1180px) {
  .md-grid { grid-template-columns: 1fr; }
  .md-quick-actions { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .md-quick-actions { grid-template-columns: repeat(2, 1fr); }
  .md-kpi-row { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================================
   BEHIND THE PRODUCT — Isloo Tech
   Dark card, consistent with the site. Orange is Isloo Tech's accent (#F0592D),
   used sparingly so the section reads as part of Revnaris, not pasted in.
   ============================================================================ */
.built-by {
  background:
    radial-gradient(ellipse 60% 90% at 0% 0%, rgba(240, 89, 45, 0.10), transparent 62%),
    var(--r-surface);
  border: 1px solid var(--r-border);
  border-radius: var(--r-radius-xl);
  padding: 3rem;
  position: relative;
  overflow: hidden;
}
@media (max-width: 768px) {
  .built-by { padding: 2rem 1.5rem; }
}

.built-by-top {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 3.5rem;
  align-items: start;
}
@media (max-width: 920px) {
  .built-by-top { grid-template-columns: 1fr; gap: 2rem; }
}

.built-by-logo {
  width: 100%;
  max-width: 270px;
  height: auto;
  display: block;
  margin-bottom: 1.25rem;
}
.built-by-logo-note {
  font-size: 0.8rem;
  color: var(--r-text-faint);
  line-height: 1.55;
  padding-left: 2px;
  border-left: 2px solid rgba(240, 89, 45, 0.5);
  padding: 0.1rem 0 0.1rem 0.85rem;
}

.built-by-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #F0592D;
  font-weight: 700;
  margin-bottom: 1rem;
}
.built-by-head {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.15;
  color: var(--r-text);
  margin: 0 0 1.1rem;
}
.built-by-lede {
  color: var(--r-text-muted);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 0 1.75rem;
  max-width: 44rem;
}
.built-by-lede strong { color: var(--r-text); font-weight: 600; }

.built-by-ctas {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.built-by-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--r-border);
}
@media (max-width: 920px) {
  .built-by-features { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
@media (max-width: 560px) {
  .built-by-features { grid-template-columns: 1fr; }
}

.built-by-feature-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(240, 89, 45, 0.12);
  color: #F0592D;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  margin-bottom: 0.85rem;
}
.built-by-feature-title {
  font-weight: 600;
  color: var(--r-text);
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}
.built-by-feature-sub {
  color: var(--r-text-muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

/* ============================================================================
   LEGAL PAGES — Privacy, Terms, Cookies
   Long-form content, readable, generous spacing
   ============================================================================ */
.legal-page {
  padding: 8rem 1.5rem 4rem;
  max-width: 820px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .legal-page { padding: 6rem 1.25rem 3rem; }
}

.legal-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--r-primary-hover);
  margin-bottom: 1rem;
  font-weight: 600;
}

.legal-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 1rem;
  color: var(--r-text);
}

.legal-updated {
  font-size: 0.825rem;
  color: var(--r-text-faint);
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--r-border);
}
.legal-updated strong { color: var(--r-text-muted); font-weight: 500; }

.legal-toc {
  background: var(--r-surface);
  border: 1px solid var(--r-border);
  border-radius: var(--r-radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 3rem;
}
.legal-toc h3 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--r-text-faint);
  margin: 0 0 0.85rem;
  font-weight: 700;
}
.legal-toc ol {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--r-text-muted);
  font-size: 0.925rem;
  line-height: 1.9;
  columns: 2;
  column-gap: 2rem;
}
@media (max-width: 640px) {
  .legal-toc ol { columns: 1; }
}
.legal-toc a {
  color: var(--r-text-muted);
  text-decoration: none;
}
.legal-toc a:hover { color: var(--r-text); }

.legal-body {
  color: var(--r-text-muted);
  line-height: 1.75;
  font-size: 1rem;
}
.legal-body > p:first-child {
  font-size: 1.1rem;
  color: var(--r-text);
  margin-bottom: 2rem;
}
.legal-body h2 {
  color: var(--r-text);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 3.5rem 0 1rem;
  scroll-margin-top: 100px;
}
.legal-body h2 .num {
  color: var(--r-text-faint);
  font-weight: 400;
  margin-right: 0.5rem;
  font-size: 0.9em;
}
.legal-body h3 {
  color: var(--r-text);
  font-size: 1.075rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
}
.legal-body p { margin: 0 0 1rem; }
.legal-body ul, .legal-body ol {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}
.legal-body li { margin-bottom: 0.5rem; }
.legal-body a {
  color: var(--r-primary-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(129, 140, 248, 0.4);
}
.legal-body a:hover {
  color: var(--r-text);
  text-decoration-color: var(--r-text);
}
.legal-body table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.legal-body th {
  text-align: left;
  padding: 0.75rem 0.75rem 0.75rem 0;
  border-bottom: 1px solid var(--r-border-strong);
  color: var(--r-text);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.legal-body td {
  padding: 0.85rem 0.75rem 0.85rem 0;
  border-bottom: 1px solid var(--r-border);
  vertical-align: top;
}
.legal-body td:first-child { color: var(--r-text); font-weight: 500; }
.legal-body code {
  background: var(--r-surface-alt);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--r-font-mono);
  font-size: 0.85em;
  color: var(--r-text);
}
.legal-body strong {
  color: var(--r-text);
  font-weight: 600;
}
.legal-body blockquote {
  border-left: 3px solid var(--r-primary);
  padding: 0.5rem 0 0.5rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--r-text-muted);
  font-style: italic;
}
.legal-footer-nav {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--r-border);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}
.legal-footer-nav a {
  color: var(--r-text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.legal-footer-nav a:hover { color: var(--r-text); }
