/* ==========================================================================
   Serinity — Design System
   Ledger & payslip inspired: ruled rows, stamped accents, tabular rhythm.
   ========================================================================== */

:root {
  /* Serinity Core Financial & Modern HR Tech Palette (Inspired by Keka & Serinity Logo) */
  --serinity-primary: #0F172A;
  --serinity-secondary: #1E293B;
  --serinity-accent: #084B5C;
  --serinity-accent-hover: #0E6B82;
  --serinity-success: #10B981;
  --serinity-bg: #F8FAFC;

  /* Brand Colors Extracted directly from Logo */
  --brand-teal: #084B5C;
  --brand-teal-dark: #003244;
  --brand-teal-light: #0E6B82;
  --brand-cyan: #0EA5E9;
  --brand-cyan-light: #56AABF;
  --brand-ice: #EBF5F8;
  --brand-ice-soft: #F4FAFC;
  --brand-border: #C8E3EA;
  --keka-gradient: linear-gradient(135deg, #084B5C 0%, #0EA5E9 100%);
  --keka-gradient-hover: linear-gradient(135deg, #003244 0%, #0284C7 100%);

  --ink: #0F172A;
  --ink-soft: #334155;
  --muted: #64748B;
  --paper: #FFFFFF;
  --paper-alt: #F8FAFC;
  --card: #FFFFFF;
  --rule: #E2E8F0;
  --rule-strong: #CBD5E1;
  --green: #084B5C;
  --green-dark: #003244;
  --green-tint: #EBF5F8;
  --marigold: #0EA5E9;
  --marigold-tint: #F0F9FF;
  --danger: #EF4444;

  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1180px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(8, 75, 92, 0.08), 0 4px 6px -4px rgba(8, 75, 92, 0.04);
  --shadow-hover: 0 20px 25px -5px rgba(8, 75, 92, 0.14), 0 8px 10px -6px rgba(8, 75, 92, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--serinity-bg);
  color: #334155;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--brand-teal); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brand-cyan);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.2rem, 3.5vw + 1rem, 3.4rem); font-weight: 700; color: #0F172A; }
h2 { font-size: clamp(1.65rem, 1.8vw + 1rem, 2.35rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 0.8vw + 1rem, 1.45rem); font-weight: 600; }
p { margin: 0 0 1em; max-width: 62ch; color: var(--ink-soft); }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 52ch; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--brand-teal);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.9em;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--brand-cyan);
  border-radius: 2px;
}

/* ---------------------------------------------------------------------- */
/* Buttons & Keka-Style Modern Interactions                                */
/* ---------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.96rem;
  padding: 11px 26px;
  border-radius: 9999px; /* Modern pill style popular in modern HR apps like Keka */
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.4;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-primary {
  background: var(--keka-gradient) !important;
  color: #FFFFFF !important;
  border: none !important;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(8, 75, 92, 0.25);
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--keka-gradient-hover) !important;
  color: #FFFFFF !important;
  box-shadow: 0 6px 18px rgba(8, 75, 92, 0.35);
  transform: translateY(-2px);
}
.btn-secondary {
  background-color: #FFFFFF !important;
  color: var(--brand-teal) !important;
  border: 1.5px solid var(--rule-strong) !important;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}
.btn-secondary:hover,
.btn-secondary:focus {
  border-color: var(--brand-teal) !important;
  background-color: var(--brand-ice-soft) !important;
  color: var(--brand-teal-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(8, 75, 92, 0.1);
}
.btn-ghost {
  background: transparent !important;
  color: var(--brand-teal) !important;
  border-color: transparent !important;
  padding-left: 6px;
  padding-right: 6px;
}
.btn-ghost:hover {
  color: var(--brand-teal-light) !important;
  text-decoration: underline;
}
.btn-block { width: 100%; }
.btn:active { transform: translateY(1px); }

/* Hide Demo CTA utility (per request #1) */
.btn-demo,
[data-demo-btn],
a[href*="#demo"],
a[href$="#demo"],
a[href="contact.html#demo"] {
  display: none !important;
}

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ---------------------------------------------------------------------- */
/* Top bar + Nav                                                           */
/* ---------------------------------------------------------------------- */

.topbar {
  background: var(--ink);
  color: #D9DEEA;
  font-size: 0.82rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 7px;
  padding-bottom: 7px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: #D9DEEA; text-decoration: none; transition: color 0.2s ease; }
.topbar a:hover { color: #fff; text-decoration: none; }
.topbar-links { display: flex; gap: 18px; align-items: center; }
.topbar-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF !important;
  padding: 3px 12px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.25s ease;
}
.topbar-login:hover {
  background: var(--brand-teal-light);
  border-color: var(--brand-teal-light);
  color: #FFFFFF !important;
  transform: translateY(-1px);
}
.topbar-login i {
  font-size: 0.85rem;
  color: #67E8F9;
  transition: color 0.2s ease;
}
.topbar-login:hover i {
  color: #FFFFFF;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 4px 20px -5px rgba(8, 75, 92, 0.05);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand-logo-img {
  height: 48px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  display: block;
}
.brand .brand-mark,
.brand .brand-sub {
  display: none !important;
}
@media (min-width: 640px) { .brand-sub { display: inline; } }

.nav-links {
  display: none;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--marigold);
}
@media (min-width: 980px) { .nav-links { display: flex; } }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .btn-secondary {
  display: inline-flex !important;
  background: var(--keka-gradient) !important;
  color: #FFFFFF !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(8, 75, 92, 0.25);
}
.nav-actions .btn-secondary:hover {
  background: var(--keka-gradient-hover) !important;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(8, 75, 92, 0.35);
}

.nav-toggle {
  display: inline-flex;
  background: none;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: 8px 10px;
  cursor: pointer;
}
@media (min-width: 980px) { .nav-toggle { display: none; } }
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: 140ms ease;
}
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--rule);
  background: var(--paper);
}
.mobile-menu.is-open { display: block; }
.mobile-menu ul { list-style: none; margin: 0; padding: 10px 0; }
.mobile-menu a {
  display: block;
  padding: 12px 24px;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  font-weight: 500;
}
.mobile-menu .mobile-cta { padding: 16px 24px; display: flex; gap: 10px; flex-wrap: wrap; }
@media (min-width: 980px) { .mobile-menu { display: none !important; } }

/* ---------------------------------------------------------------------- */
/* Hero                                                                     */
/* ---------------------------------------------------------------------- */

.hero {
  padding: 68px 0 76px;
  border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(circle at 90% 20%, rgba(86, 170, 191, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 10% 80%, rgba(8, 75, 92, 0.05) 0%, transparent 40%),
    linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  position: relative;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero .container { grid-template-columns: 1.05fr 0.95fr; gap: 56px; }
}
.hero h1 { margin-bottom: 0.4em; }
.hero .lede { margin-bottom: 1.6em; }

.hero-note {
  margin-top: 22px;
  font-size: 0.86rem;
  color: var(--muted);
}

/* Payslip & Performance Preview Card */
.payslip,
.performance-preview {
  background: var(--card);
  border: 1.5px solid rgba(8, 75, 92, 0.16);
  border-radius: 16px;
  box-shadow: 0 16px 36px -12px rgba(8, 75, 92, 0.18), 0 4px 12px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  margin-top: 14px;
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}
.performance-preview:hover {
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: 0 20px 45px -10px rgba(8, 75, 92, 0.24), 0 0 24px rgba(14, 165, 233, 0.12);
}

.perf-head {
  background: linear-gradient(135deg, #084B5C 0%, #063744 100%);
  color: #FFFFFF;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.perf-head-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.perf-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}
.live-pulse {
  width: 9px;
  height: 9px;
  background: #10B981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: livePulseAnim 1.8s infinite;
}
@keyframes livePulseAnim {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.perf-badge {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.14);
  color: #A5F3FC;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
}

/* 2x2 Grid for preview items */
.perf-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px;
  background: #FBFDFE;
}
@media (max-width: 480px) {
  .perf-grid {
    grid-template-columns: 1fr;
  }
}

.perf-card {
  background: #FFFFFF;
  border: 1px solid rgba(8, 75, 92, 0.1);
  border-radius: 12px;
  padding: 18px 14px 16px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  cursor: default;
}
.perf-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background 0.3s ease;
}

/* Hover effects for item cards */
.perf-card:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 165, 233, 0.45);
  box-shadow: 0 10px 22px -6px rgba(8, 75, 92, 0.12);
  background: linear-gradient(180deg, #FFFFFF 0%, #F0F9FF 100%);
}
.perf-card:hover::before {
  background: linear-gradient(90deg, #084B5C, #0EA5E9);
}

/* Prominent Icon container & hover transition */
.perf-icon-wrap {
  width: 60px;
  height: 60px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--brand-ice);
  border: 1.5px solid rgba(8, 75, 92, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.perf-icon {
  font-size: 1.95rem;
  color: var(--brand-teal);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Icon hover color change & scale effect */
.perf-card:hover .perf-icon-wrap {
  background: linear-gradient(135deg, #084B5C 0%, #0EA5E9 100%);
  border-color: transparent;
  transform: scale(1.15) translateY(-2px);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.4);
}
.perf-card:hover .perf-icon {
  color: #FFFFFF !important;
  transform: scale(1.1);
}

.perf-num {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
  transition: color 0.25s ease;
}
.perf-card:hover .perf-num {
  color: var(--brand-teal);
}
.perf-num.highlight {
  color: #059669;
}
.perf-card-highlight:hover .perf-num.highlight {
  color: #10B981;
}

.perf-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.35;
}

/* Performance preview footer */
.perf-foot {
  background: #F1F5F9;
  color: #64748B;
  font-size: 0.77rem;
  font-weight: 500;
  padding: 10px 18px;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 7px;
}
.perf-foot i {
  color: var(--brand-teal);
  font-size: 0.88rem;
}

/* ---------------------------------------------------------------------- */
/* Trust strip / ledger row                                                */
/* ---------------------------------------------------------------------- */

.ledger-strip {
  border-bottom: 1px solid var(--rule);
  background: var(--brand-ice-soft);
  transition: background 0.3s ease;
}
.ledger-strip .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
@media (min-width: 720px) { .ledger-strip .container { grid-template-columns: repeat(4, 1fr); } }
.ledger-item {
  padding: 24px 22px;
  border-left: 1px solid var(--rule);
  text-align: left;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  background: transparent;
}
.ledger-item:first-child { border-left: none; }
.ledger-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-teal), var(--brand-cyan));
  transition: width 0.3s ease;
}
.ledger-item:hover {
  background: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px rgba(8, 75, 92, 0.08);
}
.ledger-item:hover::after {
  width: 100%;
}
.ledger-item-featured {
  background: rgba(255, 255, 255, 0.5);
}

.ledger-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1px solid rgba(8, 75, 92, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-teal);
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
  margin-top: 2px;
}
.ledger-item:hover .ledger-icon-wrap {
  background: var(--brand-teal);
  color: #FFFFFF;
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(8, 75, 92, 0.2);
}

.ledger-content { flex: 1; min-width: 0; }
.ledger-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 2px;
}
.ledger-tag-featured {
  color: #0284C7;
  font-weight: 700;
}
.ledger-item .num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand-teal);
  display: block;
  line-height: 1.2;
  transition: color 0.2s ease;
}
.ledger-item .num small {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-left: 2px;
}
.ledger-item:hover .num {
  color: var(--brand-teal-light);
}
.ledger-item .cap { font-size: 0.82rem; color: var(--muted); line-height: 1.35; margin-top: 3px; display: block; }

/* ---------------------------------------------------------------------- */
/* Sections                                                                 */
/* ---------------------------------------------------------------------- */

.section { padding: 68px 0; transition: background-color 0.3s ease; }
.section-alt { background: var(--paper-alt); }
.section-brand-ice { background: var(--brand-ice-soft); border-top: 1px solid var(--brand-border); border-bottom: 1px solid var(--brand-border); }
.section-ink { background: var(--ink); color: #fff; }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-ink p { color: #C4CADB; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Feature rows (ruled register) - Keka-inspired clean cards */
.register {
  border-top: 1px solid var(--rule);
}
.register-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 28px 24px;
  border-bottom: 1px solid var(--rule);
  border-radius: 12px;
  transition: all 0.25s ease;
}
.register-row:hover {
  background: #FFFFFF;
  box-shadow: 0 10px 25px -5px rgba(8, 75, 92, 0.07);
  transform: translateX(4px);
}
@media (min-width: 760px) {
  .register-row { grid-template-columns: 240px 1fr; gap: 36px; align-items: baseline; }
}
.register-row .r-title { display: flex; align-items: baseline; gap: 12px; }
.register-row .r-mark { color: var(--brand-cyan); font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; }
.register-row h3 { margin: 0; color: var(--brand-teal-dark); font-weight: 600; }
.register-row p { margin: 6px 0 0; color: #475569; }

/* Card grid */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 860px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* Smooth card hovering and Keka-style financial trust elevation */
.card, .service-box, .pricing-card, .plan, .form-card {
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.card:hover, .service-box:hover, .plan:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px -10px rgba(8, 75, 92, 0.14), 0 8px 10px -6px rgba(8, 75, 92, 0.04);
  border-color: var(--brand-border);
}

.card {
  padding: 30px 28px;
}
.card h3 { margin-bottom: 0.4em; font-size: 1.28rem; font-weight: 700; color: var(--brand-teal-dark); }
.card p { margin-bottom: 0; color: #475569; line-height: 1.6; }
.card .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand-teal);
  background: var(--brand-ice);
  border: 1px solid var(--brand-border);
  padding: 5px 12px;
  border-radius: 9999px;
  margin-bottom: 16px;
}

/* Steps */
.steps { counter-reset: step; border-top: 1px solid var(--rule); }
.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  color: var(--brand-teal);
  font-weight: 700;
  font-size: 1.35rem;
}

/* Testimonials */
.quote-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--brand-teal);
  padding: 28px;
  border-radius: 14px;
}
.quote-card p.q { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); margin-bottom: 14px; }
.quote-card .who { font-size: 0.86rem; color: var(--muted); }
.quote-card .who strong { color: var(--brand-teal-dark); }

/* Logos row */
.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  padding: 30px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.logo-chip {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--rule-strong);
  letter-spacing: 0.01em;
}

/* ---------------------------------------------------------------------- */
/* Pricing - Keka-style Cards                                              */
/* ---------------------------------------------------------------------- */

.pricing-grid { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 860px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }
.plan {
  background: var(--card);
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.plan.featured,
.plan.is-popular {
  border: 2px solid var(--brand-teal);
  position: relative;
  box-shadow: 0 16px 32px -8px rgba(8, 75, 92, 0.18);
}
.plan.featured::before,
.plan.is-popular::before {
  content: "Most Popular";
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--keka-gradient);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 14px;
  border-radius: 9999px;
}
.plan-name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.plan-price-box { margin: 14px 0 16px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; flex-wrap: wrap; }
.plan-price .starts-text { font-size: 0.85rem; font-weight: 600; color: var(--brand-teal); text-transform: uppercase; letter-spacing: 0.04em; }
.plan-price .amount { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--brand-teal-dark); line-height: 1; }
.plan-price .amount.quote-amt { font-size: 1.85rem; color: var(--ink); }
.plan-price .unit { color: var(--muted); font-size: 0.86rem; font-weight: 500; }
.plan-price-tier { font-size: 0.82rem; font-weight: 600; color: #0284C7; background: #F0F9FF; border: 1px solid #BAE6FD; padding: 3px 10px; border-radius: 6px; display: inline-block; margin-top: 6px; }
.plan-desc { color: var(--muted); font-size: 0.88rem; line-height: 1.45; margin-bottom: 16px; min-height: 42px; }

.plan-modules-wrap { margin-bottom: 16px; }
.plan-modules-title { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--brand-teal); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.module-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.module-pill { font-size: 0.76rem; font-weight: 500; background: var(--brand-ice); color: var(--brand-teal-dark); border: 1px solid rgba(8, 75, 92, 0.12); padding: 3px 9px; border-radius: 6px; }

.plan-list { list-style: none; margin: 0 0 24px; padding: 0; flex: 1; }
.plan-list li {
  padding: 9px 0;
  border-bottom: 1px dashed var(--rule);
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-soft);
  line-height: 1.4;
}
.plan-list li:last-child { border-bottom: none; }
.plan-list li i.check-icon { color: var(--green-dark); margin-top: 3px; font-size: 0.95rem; flex-shrink: 0; }
.plan-list li i.star-icon { color: #0284C7; margin-top: 3px; font-size: 0.95rem; flex-shrink: 0; }
.plan-list li strong { color: var(--ink); }

.pricing-table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--card); }
table.compare { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 640px; }
table.compare th, table.compare td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--rule); }
table.compare th { font-family: var(--font-display); font-weight: 600; background: var(--paper-alt); }
table.compare th.highlight-col { background: var(--brand-ice-soft); color: var(--brand-teal-dark); border-left: 2px solid var(--brand-teal); border-right: 2px solid var(--brand-teal); }
table.compare td.center, table.compare th.center { text-align: center; }
table.compare tr:last-child td { border-bottom: none; }

/* ---------------------------------------------------------------------- */
/* Forms                                                                    */
/* ---------------------------------------------------------------------- */

.form-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 30px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}
.field .hint { font-size: 0.78rem; color: var(--muted); margin-top: 5px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 16px;
  border: 1.5px solid #CBD5E1;
  border-radius: 10px;
  background: #FFFFFF;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 3.5px rgba(8, 75, 92, 0.12);
  outline: none;
}
.field-row { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field.error input,
.field.error select,
.field.error textarea { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12); }
.field .error-msg { color: var(--danger); font-size: 0.78rem; margin-top: 5px; display: none; }
.field.error .error-msg { display: block; }
.form-status {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 500;
}
.form-status.show { display: block; }
.form-status.ok { background: #ECFDF5; color: #065F46; border: 1.5px solid #A7F3D0; }
.form-status.bad { background: #FEF2F2; color: #991B1B; border: 1.5px solid #FECACA; }

/* ---------------------------------------------------------------------- */
/* FAQ accordion                                                           */
/* ---------------------------------------------------------------------- */

.faq-list { border-top: 1px solid var(--rule); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.4rem;
  color: var(--marigold);
  flex-shrink: 0;
  transition: transform 160ms ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 0 20px; color: var(--ink-soft); max-width: 68ch; }

/* ---------------------------------------------------------------------- */
/* Blog                                                                     */
/* ---------------------------------------------------------------------- */

.post-card { display: block; text-decoration: none; color: inherit; }
.post-card .p-meta { font-size: 0.78rem; color: var(--muted); margin-bottom: 8px; }
.post-card h3 { margin-bottom: 8px; }
.post-card:hover h3 { color: var(--green-dark); }

/* ---------------------------------------------------------------------- */
/* CTA band                                                                 */
/* ---------------------------------------------------------------------- */

.cta-band {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 44px;
  display: grid;
  gap: 24px;
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 780px) { .cta-band { grid-template-columns: 1.3fr auto; padding: 48px 56px; } }
.cta-band h2 { color: #fff; margin-bottom: 0.3em; }
.cta-band p { color: #C4CADB; margin-bottom: 0; }

/* Dark container button variants */
.cta-band .btn-secondary,
.site-footer .btn-secondary {
  background-color: transparent !important;
  color: #FFFFFF !important;
  border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
}
.cta-band .btn-secondary:hover,
.cta-band .btn-secondary:focus,
.site-footer .btn-secondary:hover,
.site-footer .btn-secondary:focus {
  background-color: rgba(255, 255, 255, 0.15) !important;
  color: #FFFFFF !important;
  border-color: #FFFFFF !important;
}

/* ---------------------------------------------------------------------- */
/* Footer                                                                   */
/* ---------------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: #B9C0D4;
  padding: 56px 0 20px;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  padding-bottom: 36px;
  border-bottom: 1px solid #2B3457;
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand .brand-mark { color: #fff; font-weight: 700; }
.footer-brand .brand-mark span { color: var(--brand-cyan); }
.footer-brand .brand-logo-img {
  height: 48px;
  width: auto;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.9);
  padding: 4px 8px;
  border-radius: 8px;
  display: inline-block;
}
.footer-brand p { color: #99A1BC; margin-top: 10px; max-width: 32ch; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: 0.82rem; text-transform: none; letter-spacing: 0.02em; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #B9C0D4; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  font-size: 0.8rem;
  color: #8890AC;
}
.footer-bottom a { color: #8890AC; }

/* ---------------------------------------------------------------------- */
/* Page header (interior pages)                                            */
/* ---------------------------------------------------------------------- */

.page-header {
  padding: 44px 0 40px;
  border-bottom: 1px solid var(--rule);
}
.page-header .lede { margin-bottom: 0; }
.breadcrumb { font-size: 0.8rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }

/* ---------------------------------------------------------------------- */
/* Legal pages                                                             */
/* ---------------------------------------------------------------------- */

.legal-body { max-width: 74ch; }
.legal-body h2 { margin-top: 1.6em; font-size: 1.3rem; }
.legal-body h3 { font-size: 1.05rem; margin-top: 1.3em; }
.legal-body p, .legal-body li { color: var(--ink-soft); }
.legal-body ul { padding-left: 1.2em; }
.legal-updated {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--paper-alt);
  padding: 6px 12px;
  border-radius: 2px;
  margin-bottom: 26px;
}

/* ---------------------------------------------------------------------- */
/* Cookie consent banner                                                   */
/* ---------------------------------------------------------------------- */

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 640px;
  margin: 0 auto;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: 0 20px 50px -18px rgba(0,0,0,0.5);
  z-index: 100;
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner p { color: #C4CADB; font-size: 0.88rem; margin-bottom: 14px; }
.cookie-banner a { color: #8FE0BF; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 9px 16px; font-size: 0.86rem; }
.cookie-actions .btn-secondary {
  background-color: transparent !important;
  border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
  color: #FFFFFF !important;
}
.cookie-actions .btn-secondary:hover,
.cookie-actions .btn-secondary:focus {
  background-color: rgba(255, 255, 255, 0.15) !important;
  border-color: #FFFFFF !important;
  color: #FFFFFF !important;
}

/* ---------------------------------------------------------------------- */
/* 404                                                                      */
/* ---------------------------------------------------------------------- */

.error-page { padding: 90px 0; text-align: left; }
.error-page .code { font-family: var(--font-display); font-size: 5rem; color: var(--rule-strong); line-height: 1; margin-bottom: 10px; }

/* ---------------------------------------------------------------------- */
/* Utilities                                                                */
/* ---------------------------------------------------------------------- */

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ---------------------------------------------------------------------- */
/* Lottie Hero Animation Container                                         */
/* ---------------------------------------------------------------------- */

#lottie-hero-animation {
  width: 100%;
  max-width: 440px;
  min-height: 280px;
  height: 320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
#lottie-hero-animation svg {
  width: 100% !important;
  height: 100% !important;
  max-height: 320px;
  display: block;
}

.hero-visual-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 16px 20px 24px;
  box-shadow: 0 20px 30px -10px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
  position: relative;
  overflow: hidden;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #0369A1;
  background: #E0F2FE;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

/* ---------------------------------------------------------------------- */
/* Sales Inquiry Form                                                      */
/* ---------------------------------------------------------------------- */

.inquiry-card {
  background: #ffffff;
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
}

.inquiry-card .form-control {
  border-radius: 8px;
  border: 1px solid #CBD5E1;
  padding: 12px 16px;
  font-size: 0.95rem;
  color: #1E293B;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.inquiry-card .form-control:focus {
  border-color: var(--serinity-accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
  outline: none;
}

/* Alerts */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.92rem;
  margin-top: 14px;
}
.alert-info {
  background-color: var(--brand-ice);
  color: var(--brand-teal);
  border: 1px solid var(--brand-border);
}
.alert-success {
  background-color: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}
.alert-danger {
  background-color: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* ---------------------------------------------------------------------- */
/* Contact Us Page Redesign & Interactive Components                       */
/* ---------------------------------------------------------------------- */

.contact-hero-banner {
  background: linear-gradient(135deg, #0F172A 0%, #084B5C 100%);
  color: #ffffff;
  padding: 60px 0 50px;
  position: relative;
  overflow: hidden;
}
.contact-hero-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(86, 170, 191, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.contact-hero-banner h1 {
  color: #ffffff;
  font-size: clamp(2.2rem, 3.5vw + 1rem, 3.2rem);
  font-weight: 700;
  margin-bottom: 12px;
}
.contact-hero-banner .lede {
  color: #CBD5E1;
  font-size: 1.15rem;
  max-width: 60ch;
}
.contact-hero-banner .breadcrumb a {
  color: #94A3B8;
  text-decoration: none;
}
.contact-hero-banner .breadcrumb a:hover {
  color: #FFFFFF;
}

/* Tab Switcher for Demo / Quote - Demo hidden per user request #1 */
.contact-tab-switcher,
#contact-demo-pane,
#tab-demo-btn,
#demo.form-card {
  display: none !important;
}
.contact-tab-btn {
  flex: 1;
  text-align: center;
  padding: 12px 18px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.contact-tab-btn.active {
  background: #FFFFFF;
  color: var(--brand-teal);
  box-shadow: 0 4px 10px rgba(8, 75, 92, 0.12);
}
.contact-tab-btn:hover:not(.active) {
  color: var(--brand-teal-dark);
}

/* Contact Info Quick Cards */
.contact-quick-card {
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.contact-quick-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--brand-border);
}
.contact-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand-ice);
  color: var(--brand-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: background 0.3s ease, color 0.3s ease;
}
.contact-quick-card:hover .contact-icon-box {
  background: var(--brand-teal);
  color: #FFFFFF;
}

/* WhatsApp pill button */
.btn-whatsapp {
  background: #25D366 !important;
  color: #FFFFFF !important;
  border-color: #25D366 !important;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn-whatsapp:hover {
  background: #20BA5A !important;
  color: #FFFFFF !important;
  transform: translateY(-1px);
}

/* SLA Guarantee Card */
.sla-badge-card {
  background: linear-gradient(135deg, var(--brand-ice-soft) 0%, var(--brand-ice) 100%);
  border: 1.5px solid var(--brand-border);
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 24px;
}
.sla-badge-card h4 {
  font-size: 1.05rem;
  color: var(--brand-teal-dark);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sla-badge-card p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 0;
}

/* What Happens Next Timeline */
.timeline-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}
@media (min-width: 768px) {
  .timeline-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}
.timeline-card {
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 20px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.timeline-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(8, 75, 92, 0.08);
  border-color: var(--brand-border);
}
.timeline-number {
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--brand-teal);
  color: #FFFFFF;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.timeline-card h4 {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--brand-teal-dark);
}
.timeline-card p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0;
}
