/* RightFlo Comms — Marketing Site Styles
   Design tokens from RightFloComms-StyleSpec.md v1.0
   System font, no framework, no build step */

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

:root {
  --navy-900: #042C53;
  --navy-800: #0C447C;
  --navy-600: #185FA5;
  --navy-400: #378ADD;
  --navy-200: #85B7EB;
  --navy-50:  #E6F1FB;

  --teal-800: #085041;
  --teal-600: #0F6E56;
  --teal-400: #1D9E75;
  --teal-200: #5DCAA5;
  --teal-50:  #E1F5EE;

  --gray-800: #444441;
  --gray-600: #5F5E5A;
  --gray-400: #888780;
  --gray-200: #B4B2A9;
  --gray-50:  #F1EFE8;

  --white: #FAFAF8;
  --text-primary:   #2C2C2A;
  --text-secondary: #5F5E5A;
  --text-tertiary:  #888780;
  --border:         #D3D1C7;

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow: 0 1px 3px rgba(4,44,83,0.08), 0 1px 2px rgba(4,44,83,0.04);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1 { font-size: clamp(28px, 5vw, 48px); font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(22px, 3.5vw, 34px); font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: 18px; font-weight: 500; line-height: 1.3; }
h4 { font-size: 15px; font-weight: 500; }
p  { color: var(--text-secondary); }
a  { color: var(--navy-600); text-decoration: none; }
a:hover { text-decoration: underline; }

.text-muted  { color: var(--text-tertiary); font-size: 13px; }
.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-400);
  margin-bottom: 10px;
  display: block;
}

/* ── Layout ── */
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.section   { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 112px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hide-mobile { display: none; }
}

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 60px;
  max-width: 1080px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav-logo-name { font-size: 16px; font-weight: 500; color: #ffffff; }
.nav-logo-sub  { font-size: 10px; color: var(--navy-200); margin-top: 1px; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: #ffffff; text-decoration: none; }
.nav-links a.active { color: #ffffff; }

.nav-cta {
  font-size: 13px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  background: var(--teal-400);
  color: #ffffff;
  text-decoration: none;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--teal-600); text-decoration: none; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
  font-family: var(--font);
}
.btn-primary { background: var(--navy-900); color: #ffffff; border-color: var(--navy-900); }
.btn-primary:hover { background: var(--navy-800); border-color: var(--navy-800); text-decoration: none; }
.btn-teal { background: var(--teal-400); color: #ffffff; border-color: var(--teal-400); }
.btn-teal:hover { background: var(--teal-600); border-color: var(--teal-600); text-decoration: none; }
.btn-outline { background: transparent; color: var(--navy-900); border-color: var(--navy-900); }
.btn-outline:hover { background: var(--navy-50); text-decoration: none; }
.btn-outline-white { background: transparent; color: #ffffff; border-color: rgba(255,255,255,0.5); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: #ffffff; text-decoration: none; }
.btn-sm { font-size: 13px; padding: 8px 16px; }

/* ── Hero ── */
.hero {
  background: var(--navy-900);
  padding: 96px 0 80px;
  text-align: center;
}
.hero h1 { color: #ffffff; max-width: 720px; margin: 0 auto 16px; }
.hero-sub { font-size: 18px; color: var(--navy-200); max-width: 540px; margin: 0 auto 36px; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(29,158,117,0.15);
  border: 1px solid rgba(29,158,117,0.3);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  color: var(--teal-200);
  margin-bottom: 24px;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal-400);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── Cards ── */
.card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.card-sm { padding: 20px; }
.card-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.icon-navy  { background: var(--navy-50);  color: var(--navy-800); }
.icon-teal  { background: var(--teal-50);  color: var(--teal-800); }
.icon-gray  { background: var(--gray-50);  color: var(--gray-800); }

/* ── Pain points ── */
.pain-block { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--border); }
.pain-block:last-child { border-bottom: none; }
.pain-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--navy-50);
  color: var(--navy-800);
  font-size: 12px;
  font-weight: 500;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── How it works steps ── */
.step { display: flex; gap: 20px; align-items: flex-start; }
.step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--navy-900);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-connector {
  width: 2px; height: 40px;
  background: var(--border);
  margin: 6px 0 6px 17px;
}

/* ── Feature rows ── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}
.feature-row:last-child { border-bottom: none; }
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
@media (max-width: 768px) {
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row.reverse { direction: ltr; }
}

.feature-visual {
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Pricing teaser ── */
.pricing-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}
.pricing-card.featured {
  border: 2px solid var(--navy-600);
  position: relative;
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy-900);
  color: #ffffff;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 12px;
  border-radius: 20px;
  white-space: nowrap;
}
.price-amount { font-size: 36px; font-weight: 500; color: var(--text-primary); line-height: 1; }
.price-unit   { font-size: 13px; color: var(--text-tertiary); margin-top: 4px; }
.price-divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.price-line {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--text-secondary);
  margin-bottom: 10px;
  text-align: left;
}
.price-check { color: var(--teal-400); font-size: 16px; flex-shrink: 0; }

/* ── HIPAA strip ── */
.hipaa-strip {
  background: var(--teal-50);
  border: 1px solid #97C459;
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--teal-800);
}
.hipaa-icon { font-size: 20px; flex-shrink: 0; }

/* ── Stat bar ── */
.stat-bar { display: flex; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.stat-item {
  flex: 1;
  padding: 28px 20px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-val { font-size: 32px; font-weight: 500; color: var(--navy-900); line-height: 1; }
.stat-label { font-size: 13px; color: var(--text-tertiary); margin-top: 6px; }

/* ── Forms ── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-label .req { color: var(--navy-600); margin-left: 2px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--navy-600);
  box-shadow: 0 0 0 3px var(--navy-50);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size: 12px; color: var(--text-tertiary); margin-top: 4px; }
.form-status { font-size: 14px; min-height: 20px; margin-bottom: 12px; }
.form-status.success { color: var(--teal-800); }
.form-status.error   { color: #791F1F; }

/* Honeypot */
.gotcha { position: absolute; left: -9999px; }

/* ── Section with bg ── */
.bg-navy  { background: var(--navy-900); color: #ffffff; }
.bg-navy h2 { color: #ffffff; }
.bg-navy p  { color: var(--navy-200); }
.bg-light { background: var(--gray-50); }
.bg-teal-soft { background: var(--teal-50); }

/* ── Footer ── */
.footer {
  background: var(--navy-900);
  padding: 48px 0 32px;
  color: var(--navy-200);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand { font-size: 16px; font-weight: 500; color: #ffffff; margin-bottom: 8px; }
.footer-brand-sub { font-size: 12px; color: var(--navy-200); }
.footer-tagline { font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 12px; max-width: 260px; }
.footer-heading { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.4); margin-bottom: 12px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.6); text-decoration: none; }
.footer-links a:hover { color: #ffffff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .nav-links .hide-mobile { display: none; }
}

/* ── Utility ── */
.text-center { text-align: center; }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }
.gap-12 { gap: 12px; }
.flex   { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.w-full { width: 100%; }
