/* ═══════════════════════════════════════════════════════════════════════════
   Kibersoft — Landing redesign
   Built on the KS design system: brand #146EBE, cool-slate neutrals, Inter,
   flat surfaces + hairline borders, springy motion. No glass, no glow.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* Brand */
  --ks-primary:        #146EBE;
  --ks-primary-ink:    #0e5599;
  --ks-primary-soft:   rgba(20, 110, 190, 0.10);
  --ks-on-primary:     #ffffff;

  /* Cool-slate neutral scale */
  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  /* Status */
  --positive: #16a34a;
  --warning:  #f59e0b;
  --info:     #0284c7;

  /* Semantic */
  --bg-page:    #ffffff;
  --bg-soft:    #f4f6fa;
  --bg-tint:    #eef4fb;
  --text-head:  var(--slate-800);
  --text-body:  var(--slate-600);
  --text-muted: var(--slate-500);
  --border:     var(--slate-200);
  --border-soft: #eef1f5;

  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Radius */
  --r-pill: 999px;
  --r-lg:   18px;
  --r-md:   14px;
  --r-sm:   10px;

  /* Motion */
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Flat elevation — subtle, single soft shadow only */
  --shadow-card: 0 1px 2px rgba(15,23,42,0.04), 0 8px 24px -16px rgba(15,23,42,0.18);
  --shadow-float: 0 24px 60px -28px rgba(15,23,42,0.30);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  font-family: var(--font-sans);
  color: var(--text-body);
  background: var(--bg-page);
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--ks-primary-soft); color: var(--ks-primary-ink); }

/* ── Layout primitives ─────────────────────────────────────────────────── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--ks-primary); text-transform: none;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ks-primary);
}

h1, h2, h3 { color: var(--text-head); letter-spacing: -0.03em; line-height: 1.05; font-weight: 680; }
.h-display { font-size: clamp(2.6rem, 5.2vw, 4.2rem); }
.h-section { font-size: clamp(2rem, 3.6vw, 2.9rem); letter-spacing: -0.028em; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--text-body); line-height: 1.55; }

.text-center { text-align: center; }
.muted { color: var(--text-muted); }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: var(--r-pill);
  font-family: inherit; font-size: 0.95rem; font-weight: 600; letter-spacing: -0.01em;
  cursor: pointer; border: 1px solid transparent; white-space: nowrap;
  transition: transform .35s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--ks-primary); color: var(--on-primary, #fff); }
.btn--primary:hover { background: var(--ks-primary-ink); }
.btn--ghost { background: transparent; color: var(--text-head); border-color: var(--border); }
.btn--ghost:hover { background: var(--slate-50); border-color: var(--slate-300); }
.btn--white { background: #fff; color: var(--slate-900); }
.btn--white:hover { background: var(--slate-100); }
.btn--lg { height: 52px; padding: 0 28px; font-size: 1rem; }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ── Nav ───────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(0px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--border); background: rgba(255,255,255,0.92); }
.nav__inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.12rem; color: var(--slate-900); letter-spacing: -0.02em; }
.brand__mark { width: 30px; height: 30px; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav__link {
  font-size: 0.92rem; font-weight: 500; color: var(--text-body);
  padding: 8px 14px; border-radius: var(--r-pill);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.nav__link:hover { color: var(--slate-900); background: var(--slate-100); }
.nav__spacer { flex: 1; }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__login { font-size: 0.92rem; font-weight: 600; color: var(--text-head); padding: 8px 6px; }
.nav__login:hover { color: var(--ks-primary); }
.nav__burger { display: none; }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 72px 0 0; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 50% -10%, var(--bg-tint) 0%, transparent 70%),
    linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
}
.hero__head { max-width: 820px; margin: 0 auto; text-align: center; }
.hero__title { margin: 20px 0 22px; }
.hero__title .accent { color: var(--ks-primary); }
.hero__sub { max-width: 600px; margin: 0 auto; }
.hero__cta { display: flex; gap: 14px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.hero__note { margin-top: 18px; font-size: 0.85rem; color: var(--text-muted); }

.pill-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 6px 6px 14px; border-radius: var(--r-pill);
  background: #fff; border: 1px solid var(--border);
  font-size: 0.82rem; font-weight: 500; color: var(--text-body);
  box-shadow: var(--shadow-card);
}
.pill-badge .tag {
  font-size: 0.72rem; font-weight: 700; color: var(--ks-primary);
  background: var(--ks-primary-soft); padding: 3px 9px; border-radius: var(--r-pill);
}

/* Hero product mock */
.hero__stage { margin-top: 56px; position: relative; }

/* ── App mockup (clinic dashboard) ─────────────────────────────────────── */
.app {
  max-width: 1080px; margin: 0 auto;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-float);
}
.app__bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--border-soft); background: var(--slate-50); }
.app__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--slate-300); }
.app__addr { margin-left: 12px; flex: 1; height: 26px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--border); display: flex; align-items: center; padding: 0 12px; font-size: 0.74rem; color: var(--text-muted); }
.app__body { display: grid; grid-template-columns: 220px 1fr; min-height: 480px; }

.side { border-right: 1px solid var(--border-soft); padding: 16px 12px; background: #fff; }
.side__brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--slate-900); font-size: 0.95rem; padding: 4px 8px 16px; }
.side__brand svg { width: 22px; height: 22px; }
.side__group { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; color: var(--text-muted); text-transform: uppercase; padding: 14px 10px 6px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r-sm); font-size: 0.85rem; font-weight: 500; color: var(--text-body); }
.nav-item svg { width: 17px; height: 17px; color: var(--slate-400); }
.nav-item.is-active { background: var(--ks-primary-soft); color: var(--ks-primary-ink); font-weight: 600; }
.nav-item.is-active svg { color: var(--ks-primary); }

.main { padding: 22px 24px; background: var(--bg-soft); }
.main__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.main__title { font-size: 1.15rem; font-weight: 680; color: var(--slate-900); letter-spacing: -0.02em; }
.main__sub { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: var(--r-pill); background: var(--ks-primary); color: #fff; font-size: 0.78rem; font-weight: 600; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.stat { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--r-md); padding: 14px 16px; }
.stat__label { font-size: 0.72rem; color: var(--text-muted); font-weight: 500; }
.stat__value { font-size: 1.5rem; font-weight: 700; color: var(--slate-900); letter-spacing: -0.03em; margin-top: 4px; }
.stat__delta { font-size: 0.72rem; font-weight: 600; margin-top: 2px; }
.stat__delta.up { color: var(--positive); }
.stat__delta.down { color: var(--info); }

.panel { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--r-md); padding: 16px; }
.panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.panel__title { font-size: 0.85rem; font-weight: 600; color: var(--slate-800); }
.panel__link { font-size: 0.74rem; color: var(--ks-primary); font-weight: 600; }

.row-pt { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--border-soft); }
.row-pt:first-of-type { border-top: none; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 700; color: #fff; flex-shrink: 0; }
.row-pt__name { font-size: 0.82rem; font-weight: 600; color: var(--slate-800); }
.row-pt__meta { font-size: 0.72rem; color: var(--text-muted); }
.row-pt__time { margin-left: auto; font-size: 0.74rem; font-weight: 600; color: var(--text-body); font-variant-numeric: tabular-nums; }
.badge {
  font-size: 0.68rem; font-weight: 600; padding: 3px 8px; border-radius: var(--r-pill);
}
.badge--green { background: #dcfce7; color: #15803d; }
.badge--amber { background: #fef3c7; color: #92400e; }
.badge--blue  { background: #e8f3fd; color: #0e5ea8; }

/* mini bar chart */
.bars { display: flex; align-items: flex-end; gap: 8px; height: 96px; padding-top: 8px; }
.bars__col { flex: 1; align-self: stretch; background: var(--slate-100); border-radius: 5px 5px 0 0; position: relative; }
.bars__col span { position: absolute; inset: 0; top: auto; border-radius: 5px 5px 0 0; background: linear-gradient(180deg, #2f86d6, var(--ks-primary)); }

.grid-2-app { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; }

/* ── Logos strip ───────────────────────────────────────────────────────── */
.logos { padding: 44px 0; border-bottom: 1px solid var(--border-soft); }
.logos__title { text-align: center; font-size: 0.82rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0.02em; margin-bottom: 26px; }
.logos__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 44px; opacity: 0.8; }
.logo-item { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1.05rem; color: var(--slate-500); letter-spacing: -0.02em; }
.logo-item svg { width: 22px; height: 22px; color: var(--slate-400); }

/* ── Features (alternating) ────────────────────────────────────────────── */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature + .feature { margin-top: 110px; }
.feature--flip .feature__media { order: -1; }
.feature__icon {
  width: 46px; height: 46px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center;
  background: var(--ks-primary-soft); color: var(--ks-primary); margin-bottom: 20px;
}
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin-bottom: 14px; }
.feature p { font-size: 1.05rem; line-height: 1.6; }
.feature__list { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.feature__li { display: flex; gap: 11px; align-items: flex-start; font-size: 0.98rem; color: var(--text-body); }
.feature__li svg { width: 20px; height: 20px; color: var(--positive); flex-shrink: 0; margin-top: 1px; }
.feature__media {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 22px; min-height: 340px;
  display: flex; align-items: center; justify-content: center;
}

/* feature mock cards */
.mock { width: 100%; }
.mock-card { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--r-md); padding: 16px; box-shadow: var(--shadow-card); }
.mock-card + .mock-card { margin-top: 12px; }
.emr-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.emr-head .row-pt__name { font-size: 0.95rem; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 0.8rem; }
.kv dt { color: var(--text-muted); }
.kv dd { color: var(--slate-800); font-weight: 600; text-align: right; }
.timeline { margin-top: 6px; }
.tl-item { display: flex; gap: 12px; padding: 9px 0; border-top: 1px solid var(--border-soft); }
.tl-item:first-child { border-top: none; }
.tl-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ks-primary); margin-top: 5px; flex-shrink: 0; }
.tl-dot.muted { background: var(--slate-300); }
.tl-item__t { font-size: 0.8rem; font-weight: 600; color: var(--slate-800); }
.tl-item__d { font-size: 0.74rem; color: var(--text-muted); }

/* schedule grid mock */
.sched { display: grid; grid-template-columns: 44px 1fr 1fr 1fr; gap: 6px; font-size: 0.7rem; }
.sched__h { font-weight: 600; color: var(--text-muted); text-align: center; padding-bottom: 4px; }
.sched__t { color: var(--text-muted); text-align: right; padding-right: 6px; font-variant-numeric: tabular-nums; }
.slot { height: 34px; border-radius: 7px; border: 1px dashed var(--border); }
.slot.busy { border: none; padding: 5px 7px; font-weight: 600; color: #fff; overflow: hidden; }
.slot.b1 { background: var(--ks-primary); }
.slot.b2 { background: #2f9e6b; }
.slot.b3 { background: #c2810a; }

/* ── Bento / capabilities ──────────────────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bento__cell {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 24px; transition: border-color .25s var(--ease), transform .35s var(--ease);
}
.bento__cell:hover { border-color: var(--slate-300); transform: translateY(-2px); }
.bento__cell.span-2 { grid-column: span 2; }
.bento__ico { width: 40px; height: 40px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; background: var(--ks-primary-soft); color: var(--ks-primary); margin-bottom: 16px; }
.bento__ico svg { width: 21px; height: 21px; }
.bento h4 { font-size: 1.05rem; color: var(--slate-900); margin-bottom: 7px; letter-spacing: -0.02em; }
.bento p { font-size: 0.9rem; color: var(--text-body); line-height: 1.5; }

/* ── Stats band ────────────────────────────────────────────────────────── */
.stats-band { background: var(--slate-900); color: #fff; border-radius: var(--r-lg); padding: 56px 40px; }
.stats-band__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.big-stat__v { font-size: clamp(2.4rem, 4vw, 3.2rem); font-weight: 700; letter-spacing: -0.04em; color: #fff; line-height: 1; }
.big-stat__v .unit { color: #7AB3E1; }
.big-stat__l { margin-top: 10px; font-size: 0.9rem; color: var(--slate-400); }

/* ── Testimonial ───────────────────────────────────────────────────────── */
.quote { max-width: 880px; margin: 0 auto; text-align: center; }
.quote__mark { font-size: 4rem; line-height: 0.4; color: var(--ks-primary); font-weight: 800; }
.quote__text { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 600; color: var(--slate-800); letter-spacing: -0.025em; line-height: 1.35; margin: 16px 0 28px; }
.quote__author { display: flex; align-items: center; justify-content: center; gap: 12px; }
.quote__avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, #2f86d6, var(--ks-primary)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; }
.quote__name { font-weight: 700; color: var(--slate-900); font-size: 0.95rem; text-align: left; }
.quote__role { font-size: 0.84rem; color: var(--text-muted); text-align: left; }

/* ── Security band ─────────────────────────────────────────────────────── */
.security { background: var(--bg-soft); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.security__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.compliance { display: flex; flex-wrap: wrap; gap: 12px; }
.comp-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-pill); font-size: 0.85rem; font-weight: 600; color: var(--slate-700); }
.comp-chip svg { width: 17px; height: 17px; color: var(--positive); }

/* ── CTA band ──────────────────────────────────────────────────────────── */
.cta-band { position: relative; overflow: hidden; background: var(--ks-primary); border-radius: var(--r-lg); padding: 72px 40px; text-align: center; }
.cta-band::before { content:""; position:absolute; inset:0; background: radial-gradient(70% 120% at 50% 0%, rgba(255,255,255,0.14), transparent 60%); }
.cta-band h2 { color: #fff; font-size: clamp(2rem, 3.6vw, 2.9rem); position: relative; }
.cta-band p { color: rgba(255,255,255,0.82); font-size: 1.1rem; margin: 16px auto 30px; max-width: 540px; position: relative; }
.cta-band .hero__cta { position: relative; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.footer { background: var(--slate-900); color: var(--slate-400); padding: 64px 0 36px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer__brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1.1rem; margin-bottom: 14px; }
.footer__about { font-size: 0.9rem; line-height: 1.6; max-width: 300px; }
.footer__col h5 { color: #fff; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 16px; }
.footer__col a { display: block; font-size: 0.9rem; padding: 6px 0; transition: color .2s; }
.footer__col a:hover { color: #fff; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; font-size: 0.84rem; }
.footer__social { display: flex; gap: 14px; }
.footer__social a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; transition: background .2s, border-color .2s; }
.footer__social a:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.24); }
.footer__social svg { width: 16px; height: 16px; }

/* ── Reveal on scroll ──────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .feature, .security__grid { grid-template-columns: 1fr; gap: 36px; }
  .feature--flip .feature__media { order: 0; }
  .bento, .stat-row { grid-template-columns: 1fr; }
  .bento__cell.span-2 { grid-column: span 1; }
  .stats-band__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .app__body { grid-template-columns: 1fr; }
  .side { display: none; }
  .grid-2-app { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .stats-band__grid, .footer__grid { grid-template-columns: 1fr; }
  .nav__login { display: none; }
  .hero__cta .btn { flex: 1; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   v2 — Lattice-inspired moves: floating hero collage, tabbed module switcher,
   per-module accent system. Still flat: solid tinted panels + hairline borders.
   ═══════════════════════════════════════════════════════════════════════════ */

/* warmer, softer base + room for the float cards that hang below the frame */
.hero--v2 { padding-bottom: 56px; }
.hero--v2::before {
  background:
    radial-gradient(55% 45% at 50% -6%, #e7f0fb 0%, transparent 70%),
    linear-gradient(180deg, #fbfcfe 0%, #f3f6fb 100%);
}

/* ── Floating collage around the hero mockup ───────────────────────────── */
.collage { position: relative; }
.float-card {
  position: absolute; z-index: 5;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 12px 14px;
  box-shadow: var(--shadow-float);
  display: flex; align-items: center; gap: 11px;
  animation: floaty 6s ease-in-out infinite;
}
.float-card .fc-ico {
  width: 34px; height: 34px; border-radius: var(--r-sm); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.float-card .fc-ico svg { width: 18px; height: 18px; }
.fc-t { font-size: 0.8rem; font-weight: 700; color: var(--slate-800); letter-spacing: -0.01em; line-height: 1.2; }
.fc-d { font-size: 0.72rem; color: var(--text-muted); margin-top: 1px; }

.fc--notify { top: 12%; left: -36px; transform: rotate(-3deg); animation-delay: 0s; }
.fc--revenue { top: 50%; right: -36px; transform: rotate(2.5deg); animation-delay: 1.1s; }
.fc--avatars { bottom: -26px; left: 56px; transform: rotate(2deg); animation-delay: .6s; }
.fc--rating { bottom: -26px; right: 56px; transform: rotate(-2deg); animation-delay: 1.6s; }

.avatars-stack { display: flex; }
.avatars-stack .avatar { width: 26px; height: 26px; border: 2px solid #fff; margin-left: -8px; }
.avatars-stack .avatar:first-child { margin-left: 0; }
.avatars-stack .more { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; margin-left: -8px; background: var(--slate-100); display: flex; align-items: center; justify-content: center; font-size: 0.62rem; font-weight: 700; color: var(--slate-600); }

@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}
@media (prefers-reduced-motion: reduce) { .float-card { animation: none; } }

/* ── Interactive tabbed module showcase ────────────────────────────────── */
.showcase { --acc: var(--ks-primary); --acc-soft: var(--ks-primary-soft); }
.showcase[data-accent="emr"]   { --acc: #146EBE; --acc-soft: #e8f1fb; --acc-ink: #0e5599; }
.showcase[data-accent="sched"] { --acc: #1f9d63; --acc-soft: #e4f5ec; --acc-ink: #157049; }
.showcase[data-accent="cash"]  { --acc: #d08a05; --acc-soft: #fbf0d9; --acc-ink: #9a6604; }
.showcase[data-accent="stats"] { --acc: #6d4fd1; --acc-soft: #efeafb; --acc-ink: #523aa8; }

.tabs {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  margin: 36px 0 28px;
}
.tab {
  display: inline-flex; align-items: center; gap: 9px;
  height: 46px; padding: 0 20px; border-radius: var(--r-pill);
  font-family: inherit; font-size: 0.95rem; font-weight: 600; letter-spacing: -0.01em;
  color: var(--text-body); background: #fff; border: 1px solid var(--border); cursor: pointer;
  transition: color .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease), transform .35s var(--ease);
}
.tab svg { width: 18px; height: 18px; color: var(--slate-400); transition: color .25s var(--ease); }
.tab:hover { border-color: var(--slate-300); }
.tab:active { transform: scale(0.97); }
.tab.is-active { background: var(--acc); color: #fff; border-color: var(--acc); }
.tab.is-active svg { color: #fff; }

.showcase__stage {
  background: var(--acc-soft);
  border: 1px solid color-mix(in srgb, var(--acc) 22%, var(--border));
  border-radius: var(--r-lg); padding: 40px; overflow: hidden;
  transition: background-color .4s var(--ease), border-color .4s var(--ease);
}
.pane { display: none; grid-template-columns: 0.92fr 1.08fr; gap: 48px; align-items: center; }
.pane.is-active { display: grid; animation: paneIn .5s var(--ease-out); }
@keyframes paneIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.pane__badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: var(--r-pill);
  background: #fff; border: 1px solid color-mix(in srgb, var(--acc) 30%, var(--border));
  font-size: 0.78rem; font-weight: 700; color: var(--acc-ink); margin-bottom: 16px;
}
.pane__badge svg { width: 15px; height: 15px; }
.pane h3 { font-size: clamp(1.5rem, 2.3vw, 2rem); margin-bottom: 14px; }
.pane p { font-size: 1.02rem; line-height: 1.6; }
.pane .feature__list { margin-top: 20px; }
.pane .feature__li svg { color: var(--acc); }
.pane__media { min-width: 0; }
.pane .mock-card { box-shadow: var(--shadow-card); }

@media (max-width: 900px) {
  .float-card { display: none; }
  .showcase__stage { padding: 22px; }
  .pane.is-active { grid-template-columns: 1fr; gap: 28px; }
  .tab { height: 42px; padding: 0 16px; font-size: 0.9rem; }
}
