/* ============================================
   FIVO LANDING - GLOBAL STYLES
   Consolidated CSS for all templates
   ============================================ */

/* --------------------------------------------
   1. CSS Variables & Tokens
   -------------------------------------------- */
:root {
  --black: #0b0b0c;
  --white: #fff;
  --grey-50: #f6f7f9;
  --grey-100: #e8eaed;
  --grey-400: #4a4d52;
  --grey-900: #16181c;
  --orange: #ff8800;
  --orange-hover: #ff9d1a;
  --border: rgba(22, 24, 28, 0.1);
  --border-strong: rgba(22, 24, 28, 0.16);
  --grid-line: rgba(22, 24, 28, 0.06);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --radius-lg: 16px;
  --accent-bg: rgba(255, 136, 0, 0.08);
  --accent-border: rgba(255, 136, 0, 0.2);
  --max-w: 1080px;
  --gap: clamp(18px, 3vw, 40px);
  --header-pill-bg: rgba(255, 255, 255, 0.82);
  --header-pill-border: rgba(22, 24, 28, 0.12);
  --header-pill-text: var(--grey-900);
  --header-cta-bg: var(--grey-900);
  --header-cta-text: var(--white);
  --header-cta-border: rgba(22, 24, 28, 0.08);
  --footer-bg: var(--white);
  --footer-text: var(--grey-400);
  --footer-border: var(--border);
  --footer-hover: var(--grey-900);
}

/* --------------------------------------------
   2. Reset & Base Styles
   -------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: Sora, system-ui, sans-serif;
  color: var(--grey-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(to right, rgba(22, 24, 28, 0.1) 1px, transparent 1px), linear-gradient(to bottom, rgba(22, 24, 28, 0.1) 1px, transparent 1px);
  background-size: 120px 120px;
  background-position: center;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: 0 0;
}

ul {
  list-style: none;
}

/* Force override Elementor reset on our templates */
body button,
body [type="button"],
body [type="submit"] {
  background: none !important;
  border: 0 !important;
  padding: 0;
  color: inherit;
  font: inherit;
  box-shadow: none;
}

body input,
body textarea {
  border: 0 !important;
  background: none !important;
  color: inherit;
  font: inherit;
}

/* --------------------------------------------
   3. Typography
   -------------------------------------------- */
.h1 {
  font-size: clamp(40px, 5vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.h2 {
  font-size: clamp(26px, 3.1vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.text-muted {
  color: var(--grey-400);
  font-weight: 400;
}

.text-sm {
  font-size: 14px;
}

.text-xs {
  font-size: 13px;
}

/* --------------------------------------------
   4. Layout Components
   -------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap);
}

.section {
  padding: clamp(36px, 4.5vw, 60px) 0;
  position: relative;
}

.section-head {
  max-width: 80ch;
  margin-bottom: 26px;
}

.grid {
  display: grid;
  gap: var(--gap);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

@media (min-width: 1024px) {
  .grid-split {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
  .grid-hero {
    grid-template-columns: 1.12fr 0.88fr;
    align-items: center;
  }
}

/* --------------------------------------------
   5. Buttons (Global Bordered Style)
   -------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--grey-900);
  transition: all 0.2s ease;
  user-select: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn:hover,
.btn:focus-visible {
  border-color: var(--border-strong);
  background: var(--grey-50);
  color: var(--grey-900);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background: var(--white);
  border-color: var(--border);
  color: var(--grey-900);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
  border-color: var(--border-strong);
  background: var(--grey-50);
  color: var(--grey-900);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--white);
  border-color: var(--border);
  color: var(--grey-900);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
  border-color: var(--border-strong);
  background: var(--grey-50);
  color: var(--grey-900);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
}

.btn.active {
  background: var(--grey-900);
  color: var(--white);
  border-color: var(--grey-900);
}

/* --------------------------------------------
   6. Header
   -------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(22, 24, 28, 0.08);
  z-index: 20;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--orange);
  transition: width 0.1s ease;
}

.site-header {
  position: sticky !important;
  top: 0px !important;
  z-index: 18;
  backdrop-filter: blur(16px);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 80px;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.header-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--grey-900);
}

.fivo-logo {
  height: 28px;
  width: auto;
  display: block;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  justify-self: center;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--grey-900);
  background: none;
  border: 0;
  padding: 6px 2px;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--orange);
}

.nav-link:focus-visible {
  outline: 2px solid rgba(22, 24, 28, 0.2);
  outline-offset: 4px;
  border-radius: 8px;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
}

.site-header .btn,
.site-header .btn-primary,
.site-header .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--border);
  text-decoration: none;
  background: var(--white);
  color: var(--grey-900);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.site-header .btn:hover,
.site-header .btn:focus-visible,
.site-header .btn-primary:hover,
.site-header .btn-primary:focus-visible {
  border-color: var(--border-strong);
  background: var(--grey-50);
  color: var(--grey-900);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.header-cta {
  border-radius: 999px;
  white-space: nowrap;
}

/* --------------------------------------------
   7. Footer
   -------------------------------------------- */
.site-footer {
  padding: 28px 0 40px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--footer-text, var(--grey-400));
  font-size: 13px;
  align-items: center;
}

.footer-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--footer-text, var(--grey-400));
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--footer-hover, var(--grey-900));
}

/* --------------------------------------------
   8. Icons
   -------------------------------------------- */
.icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --------------------------------------------
   9. Cards
   -------------------------------------------- */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  transition: all 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.card-static {
  transition: none;
}

.card-static:hover {
  box-shadow: var(--shadow-sm);
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--grey-50);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  color: var(--grey-900);
}

/* --------------------------------------------
   10. Pills & Badges
   -------------------------------------------- */
.pill {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--accent-border);
  background: var(--accent-bg);
  letter-spacing: -0.01em;
}

.pill-muted {
  border-color: var(--border);
  background: var(--grey-50);
  color: var(--grey-400);
}

/* --------------------------------------------
   11. Lists
   -------------------------------------------- */
.list {
  margin: 12px 0 0;
  display: grid;
  gap: 10px;
  color: var(--grey-400);
  font-size: 15px;
  line-height: 1.75;
}

.list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.list li .icon {
  margin-top: 2px;
  flex-shrink: 0;
}

.list-check .icon {
  color: var(--orange);
}

.list-cross .icon {
  color: rgba(22, 24, 28, 0.5);
}

/* --------------------------------------------
   12. Hero Section
   -------------------------------------------- */
.hero {
  padding: clamp(72px, 8vw, 120px) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--grid-line) 1px, transparent 1px), linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 140px 140px;
  background-position: center;
  pointer-events: none;
  opacity: 0.5;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-media {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background: var(--white);
}

.hero-media img {
  width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------
   13. Mini KPI
   -------------------------------------------- */
.mini-kpi {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 560px;
}

@media (max-width: 560px) {
  .mini-kpi {
    grid-template-columns: 1fr;
  }
}

.mini-kpi-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.mini-kpi-value {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 16px;
}

.mini-kpi-label {
  margin-top: 4px;
  color: var(--grey-400);
  font-size: 13px;
  font-weight: 400;
}

/* --------------------------------------------
   14. Note Component
   -------------------------------------------- */
.note {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.note-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  font-weight: 700;
  flex-shrink: 0;
  font-size: 14px;
}

/* --------------------------------------------
   15. Logos Section
   -------------------------------------------- */
.logos {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: left;
}

.logo {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  background: var(--white);
  font-weight: 600;
  letter-spacing: -0.02em;
  box-shadow: var(--shadow-sm);
  flex: 1 1 auto;
  text-align: center;
  min-width: 140px;
}

/* --------------------------------------------
   16. Timeline/Steps
   -------------------------------------------- */
.timeline {
  display: grid;
  gap: var(--gap);
  margin-top: 24px;
}

@media (min-width: 980px) {
  .timeline {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  flex-direction: column;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 600;
  background: var(--grey-50);
  border: 1px solid var(--border);
  flex-shrink: 0;
  font-size: 14px;
}

/* --------------------------------------------
   17. KPI Section & Charts
   -------------------------------------------- */
.kpi-section {
  background: var(--grey-50);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 24px;
  border: 1px solid var(--border);
}

.kpi-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.kpi-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.kpi-subtitle {
  color: var(--grey-400);
  font-size: 14px;
}

.chart-case-inline {
  margin-top: 12px;
}

.kpi-meta {
  display: flex;
  gap: 24px;
  align-items: center;
}

.kpi-stat {
  text-align: right;
}

.kpi-stat-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--orange);
}

.kpi-stat-label {
  font-size: 12px;
  color: var(--grey-400);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.kpi-stat-change {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(22, 24, 28, 0.6);
  font-weight: 600;
}

.kpi-stat-change.positive {
  color: #16a34a;
}

.kpi-stat-change.negative {
  color: #dc2626;
}

.chart-wrap {
  background: #1f2124;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 18px 40px rgba(10, 12, 14, 0.4);
}

.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 12px;
}

.chart-title {
  font-weight: 600;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.82);
  margin-top: 14px;
}

.chart-actions {
  display: flex;
  gap: 6px;
}

.chart-case {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--grey-900);
  font-weight: 600;
  font-size: 13px;
}

.chart-case-label {
  min-width: 80px;
  text-align: center;
  color: var(--grey-900);
}

.chart-nav {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--grey-900);
  background: var(--white);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

.chart-nav:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  background: var(--grey-50);
}

.chart-nav .icon {
  width: 16px;
  height: 16px;
}

.chart-legend {
  font-size: 12px;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: 0.02em;
}

.chart {
  position: relative;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(28, 30, 34, 0.95), rgba(21, 23, 26, 0.98));
  min-height: 360px;
}

.chart svg {
  display: block;
}

.chart .grid line {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
  shape-rendering: crispEdges;
}

.chart .axes text {
  font-family: Sora, sans-serif;
  fill: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  font-weight: 500;
}

.chart .axes text.axis-y {
  fill: var(--orange);
  font-weight: 600;
}

.chart .axes text.axis-x {
  fill: rgba(255, 255, 255, 0.55);
}

.chart .area {
  fill: url(#chartAreaGradient);
}

.chart .line {
  fill: none;
  stroke: #ff8a00;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart .point {
  fill: #ff8a00;
  stroke: #1f2124;
  stroke-width: 2;
  cursor: pointer;
  transition: r 0.15s ease;
}

.chart .point:hover {
  r: 6.5;
}

.tooltip {
  position: absolute;
  min-width: 120px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0f1114;
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -110%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.tooltip.visible {
  opacity: 1;
}

.tooltip-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tooltip-value {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 700;
  color: #ff8a00;
}

/* --------------------------------------------
   18. CTA Section
   -------------------------------------------- */
.cta-section {
  padding: clamp(36px, 4.5vw, 60px) 0;
}

.cta-box {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--white);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 32px);
  align-items: center;
}

@media (min-width: 768px) {
  .cta-box {
    grid-template-columns: 1fr auto;
  }
}

.cta-content {
  flex: 1;
}

.cta-aside {
  border-radius: var(--radius-lg);
}

.cta-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.team-avatars {
  position: relative;
  width: 270px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  position: absolute;
}

.team-avatar-left {
  left: 0;
  z-index: 1;
}

.team-avatar-right {
  right: 0;
  z-index: 2;
}

.team-names {
  font-size: 20px;
  font-weight: 700;
  color: var(--grey-900);
  text-align: center;
}

.cta-bullets {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 560px) {
  .cta-bullets {
    grid-template-columns: 1fr;
  }
}

.bullet {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--grey-50);
  padding: 12px 14px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.01em;
}

.cta-section .grid-split {
  align-items: stretch;
}

.cta-section .cta-bullets .bullet {
  background: var(--white);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

/* --------------------------------------------
   19. Match/Comparison Sections
   -------------------------------------------- */
.match {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

@media (min-width: 980px) {
  .match {
    grid-template-columns: 1fr 1fr;
  }
}

.match-col {
  padding: 20px;
}

.match-good {
  background: rgba(246, 247, 249, 0.88);
}

/* --------------------------------------------
   20. Dots Section
   -------------------------------------------- */
.section-dots {
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: clamp(48px, 6vw, 80px);
}

.dots-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--white);
  padding: clamp(20px, 4vw, 32px);
  box-shadow: var(--shadow-sm);
}

.dots-head {
  margin-bottom: 18px;
  max-width: 56ch;
}

.dots-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.dots-subtitle {
  margin-top: 6px;
  font-size: 14px;
}

.dots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10px, 1fr));
  gap: 10px;
  padding-top: 6px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(22, 24, 28, 0.14);
}

/* --------------------------------------------
   21. Contact Card & Chat
   -------------------------------------------- */
.contact-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--white);
  padding: clamp(22px, 4vw, 36px);
  box-shadow: var(--shadow-md);
}

.contact-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-chat {
  margin-top: 20px;
  background: rgba(22, 24, 28, 0.04);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(22, 24, 28, 0.08);
}

.chat-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--grey-900);
  color: var(--white);
  font-weight: 700;
  display: grid;
  place-items: center;
}

.chat-name {
  font-weight: 700;
}

.chat-note {
  font-size: 12px;
}

.chat-bubble {
  margin-top: 14px;
  background: var(--white);
  border-radius: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(22, 24, 28, 0.08);
}

.chat-input {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--white);
  border-radius: 999px;
  padding: 10px 12px;
  border: 1px solid transparent;
  position: relative;
}

.chat-input input,
.chat-input textarea {
  border: 0 !important;
  outline: none;
  flex: 1;
  font: inherit;
  background: transparent;
}

.chat-input textarea {
  resize: vertical;
}

.chat-input input:focus,
.chat-input textarea:focus {
  outline: none;
  box-shadow: none;
}

.chat-textarea {
  border-radius: 16px;
}

.chat-form {
  display: grid;
  gap: 12px;
}

.chat-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-send {
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--white);
  color: var(--grey-900);
  display: grid;
  place-items: center;
  gap: 6px;
  font-weight: 600;
  grid-auto-flow: column;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

.chat-send:hover {
  background: var(--grey-50);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.chat-send:focus,
.chat-send:active {
  background: var(--grey-50);
  color: var(--grey-900);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.typing-dots {
  position: absolute;
  right: 58px;
  display: none;
  gap: 4px;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(22, 24, 28, 0.35);
  animation: typing 1.1s infinite ease-in-out;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typing {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

/* --------------------------------------------
   22. Case Template Specific Styles
   -------------------------------------------- */
.case-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px var(--gap) 80px;
}

.case-content {
  display: grid;
  gap: 40px;
}

.case-hero h1 {
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-top: 8px;
}

.case-hero p {
  color: var(--grey-400);
  margin-top: 12px;
  max-width: 60ch;
}

.case-tagline {
  font-size: 13px;
  color: var(--grey-400);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-cover {
  margin-top: 24px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.case-cover img {
  width: 100%;
  height: auto;
  display: block;
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.case-section {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.meta-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey-400);
  margin-bottom: 8px;
}

.meta-pill {
  display: inline-flex;
  background: var(--grey-50);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  margin: 4px 6px 0 0;
}

.case-text h2 {
  font-size: 20px;
  letter-spacing: -0.02em;
}

.case-text p {
  color: var(--grey-400);
  margin-top: 12px;
  max-width: 70ch;
}

.case-private {
  padding: 120px 20px 80px;
  display: grid;
  place-items: center;
}

.case-private-card {
  max-width: 560px;
  text-align: center;
  background: var(--white);
  border-radius: 18px;
  padding: 28px 32px;
  border: 1px solid var(--border);
}

.case-private-card h1 {
  font-size: 26px;
  letter-spacing: -0.02em;
}

.case-private-card p {
  color: var(--grey-400);
  margin-top: 10px;
}

/* --------------------------------------------
   23. Responsive Design
   -------------------------------------------- */
@media (max-width: 900px) {
  .case-layout {
    padding: 32px var(--gap) 64px;
  }
}

@media (max-width: 860px) {
  .header-inner {
    grid-template-columns: auto auto;
    row-gap: 0;
  }
  .header-logo {
    justify-self: start;
  }
  .header-actions {
    justify-content: flex-end;
  }
  .header-nav {
    display: none;
  }
}

@media (max-width: 640px) {
  .chart-wrap {
    padding: 16px;
  }
  .chart {
    min-height: 420px;
  }
  .chart svg {
    height: 420px;
  }
  .chart-title {
    font-size: 14px;
    margin-top: 16px;
  }
  .chart-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .kpi-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .kpi-stat {
    text-align: left;
  }
  .chart .axes text {
    font-size: 10px;
  }
  .chart-case {
    width: 100%;
    justify-content: space-between;
  }
  .chart-case-label {
    flex: 1;
  }
  .contact-head {
    align-items: flex-start;
  }
  .contact-actions {
    width: 100%;
  }
  .chat-input {
    flex-direction: column;
    align-items: stretch;
    border-radius: 16px;
  }
  .chat-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .typing-dots {
    right: 18px;
    top: 12px;
  }
}

@media (max-width: 560px) {
  .header-inner {
    grid-template-columns: 1fr;
  }
  .header-logo {
    justify-self: center;
  }
  .header-actions {
    justify-content: center;
  }
  .header-nav {
    justify-content: center;
  }
}

/* --------------------------------------------
   24. Accessibility & Motion Preferences
   -------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .btn,
  .card,
  .chart .point {
    transition: none !important;
  }
  .btn:hover,
  .card:hover {
    transform: none !important;
  }
}
