:root {
  --clvr-primary: #1F3B82;
  --clvr-accent: #38C172;
  --clvr-light: #F5F7FA;
  --clvr-darktext: #1E1E1E;
}

/* ==================
   GLOBAL
   ================== */
html, body {
  color: var(--clvr-darktext);
  background-color: #fff;
  width: 100%;
  max-width: 100%;
  /*overflow-x: hidden;*/
}
body {
  overflow-x: hidden;
}
img { max-width: 100%; }

/* Headings */
h1 {
  font-size: clamp(56px, 5vw, 85px) !important;
  color: var(--clvr-darktext);
}

footer{
   background: linear-gradient(150deg, #000 30%, #162E6C 90%);
}
.lead {
  font-size: 1.2rem;
}

.feature-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.feature-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(56,193,114,0.1); /* soft green background */
}
.process-image svg {
  max-width: 100%;
  height: auto;
}
.step-number {
  flex-shrink: 0;
}

[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}



@media (max-width: 768px) {
  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  .lead {
    font-size: 1rem;
  }
  .process-image {
    text-align: center;
    margin-top: 1rem;
  }
}
.step-number {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: #232f64;
  font-size: 1.75rem;
  font-weight: bold;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 70px; /* ensures consistent spacing */
}

.step-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

/* Mobile tweaks */
@media (max-width: 576px) {
  .step-number {
    width: 55px;
    height: 55px;
    font-size: 1.25rem;
    min-width: 50px;
  }
  .step-content {
    gap: 0.75rem;
  }
  .lead {
    font-size: 0.95rem;
    line-height: 1.4;
  }
  h3.h4 {
    font-size: 1.2rem;
  }
}


/* ==================
   HEADER & NAV
   ================== */
.clvrly-header { position: relative; z-index: 1000; }
.clvrly-logo img { height: 60px; }
.clvrly-logo { max-width: 98%; width: 200px; }

.clvrly-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.clvrly-menu-btn span {
  width: 24px;
  height: 2px;
  background: #fff;
  display: block;
}

.clvrly-slideout {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100vh;
  background: #111;
  display: flex;
  flex-direction: column;
  padding: 4rem 1.5rem;
  transition: left 0.3s ease;
  z-index: 1001;
}
.clvrly-slideout.active { left: 0; }

.clvrly-slideout a,
.clvrly-header nav a {
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 0;
  font-size: 1rem;
  transition: color 0.3s ease;
}
.clvrly-slideout a:hover,
.clvrly-header nav a:hover { color: #6ee7b7; }

.clvrly-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  z-index: 1000;
}
.clvrly-overlay.active { display: block; }

body.menu-open::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}

/* ==================
   HERO
   ================== */
.hero {
  position: relative;
  color: #fff;
  padding-bottom: 1.5rem;
  background: linear-gradient(150deg, #000 30%, #162E6C 90%);
}

.hero {
  min-height: 93vh;
  overflow: visible;
}

.hero h1 {
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.1975rem;
  font-weight: 800;
  color: #fff;
  line-height: clamp(2.2rem, 5vw, 5rem);
  margin-top: 1rem;
}
.hero .btn {
  font-weight: 600;
}

.wave-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 1;
}
.wave-divider svg {
  display: block;
  width: 100%;
  height: 100px;
}

/* HERO Responsive */
@media (max-width: 768px) {
  .hero { padding-bottom: 3rem; }
  .hero h1 {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-top: 3.5rem;
  }
  .hero .btn {
    display: block;
    width: 100%;
    text-align: center;
  }
  .wave-divider svg { height: 60px; }
}
@media (max-width: 480px) {
  .wave-divider svg { height: 40px; }
}

/* ==================
   PRICING
   ================== */
.pricing-card { background: #fff; }
.pricing-card h3 { color: var(--clvr-primary); }
.pricing-card ul li { font-size: 0.95rem; }

table.table td, table.table th {
  vertical-align: middle !important;
  padding: 1rem;
}
.table-hover tbody tr:hover { background-color: #f8f8f8; }

/* ==================
   BUTTONS
   ================== */
.btn-success {
  background-color: var(--clvr-accent);
  border: none;
  font-weight: 600;
  padding: 0.75rem 2rem;
  box-shadow: 0 4px 14px rgba(56, 193, 114, 0.3);
}
.btn-success:hover { background-color: #2ebc68; }

/* ==================
   ACCESSIBILITY
   ================== */
input.ring,
input:focus,
.select:focus {
  outline: 3px solid #111;
  outline-offset: 2px;
}

/* ==================
   STEPS / FEATURES
   ================== */
.step-number {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: rgb(35, 47, 100);
  font-size: 1.75rem;
  font-weight: bold;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-icon { font-size: 2rem; color: var(--clvr-accent); }
.section-heading { font-weight: 700; color: var(--clvr-primary); }

/* ==================
   UTILITIES
   ================== */
.bg-clvr {
  background: url(_assets/img/clvrly.bg.png);
  background-position: top right;
  background-repeat: no-repeat;
  background-color: var(--clvr-light);
}
.bg-clvr-light {
  background-color: var(--clvr-light);
}
.text-clvr-primary { color: var(--clvr-darktext); }
.bg-clvr-primary { background-color: var(--clvr-primary); }
.bg-clvr-accent { background-color: var(--clvr-accent); }

.btn-upgrade { background-color: #0e2967; }

.animate-bounce { animation: bouncer 1.5s infinite; }
@keyframes bouncer {
  0%,20%,50%,80%,100% { transform: translateY(0); }
  40% { transform: translateY(8px); }
  60% { transform: translateY(4px); }
}

.pulse { --pulse-color: rgba(0, 0, 0, 0.4); animation: pulse-animation 1.7s ease-out infinite; }
@keyframes pulse-animation {
  0% { box-shadow: 0 0 0 0 var(--pulse-color); }
  100% { box-shadow: 0 0 0 20px rgba(0,0,0,0); }
}
.pulse-green { --pulse-color: rgba(25,135,84,0.4); }
.pulse-blue { --pulse-color: rgba(0,123,255,0.4); }
.pulse-red { --pulse-color: rgba(220,53,69,0.4); }

/* ==================
   ASSISTANT
   ================== */
.assistant {
  padding: 4rem !important;
  background-color: #f9f9f9;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #ddd;
}
#assistant-title {
  font-size: clamp(30px,5vw,52px);
  letter-spacing: -1px;
  margin-bottom: 2rem;
}
.chat-window {
  max-height: 50vh !important;
  overflow-y: auto;
  margin-bottom: 1em;
}
.chat-message {
  margin: 0.5em 0;
  padding: 0.5em;
  border-radius: 8px;
  line-height: 1.4;
}
.chat-message h1, .chat-message h2, .chat-message h3,
.chat-message h4, .chat-message h5, .chat-message h6 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0.5em 0 0.25em;
  line-height: 1.3;
}
.from-user {
  background: #d9f2fd;
  text-align: right;
  margin-left: 5em;
}
.from-clvrly {
  background: #f0f0f0;
  text-align: left;
  margin-right: 5em;
}
.chat-form { gap: 0.5em; }
#chat-input {
  flex: 1;
  padding: 0.5em;
  border-radius: 6px;
  border: 1px solid #ccc;
  width: 100%;
}

.chat-message.from-clvrly {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.4s ease forwards;
}
@keyframes fadeInUp { to { opacity:1; transform: translateY(0); } }

.chat-message.typing .chat-body::after {
  content: '';
  display: inline-block;
  width: 0.75em;
  height: 0.75em;
  border: 2px solid #999;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.6s linear infinite;
  margin-left: 0.5em;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Responsive Assistant */
@media (max-width:1200px){ .assistant { padding:2rem !important; margin-bottom:2rem; } }
@media (max-width:991px){ .assistant { padding:3rem !important; margin-bottom:2rem; } }
@media (max-width:768px){
  .assistant { padding:1.5rem 1rem !important; margin-bottom:2rem; }
  #step1,#step2,#step3 { margin:0 auto; max-width:90vw; padding:30px; }
  .btn-gh { min-width:unset; }
}
