/* ═══════════════════════════════════════════════════════════════════════════
   v3 — Fuller site: centered nav + megamenu, integrations filter grid,
   roles, patient portal, pricing, onboarding, FAQ, client logos.
   Loaded after styles.css. Same KS tokens, same flat philosophy.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Centered nav (Lattice-style) ──────────────────────────────────────── */
.nav__inner { justify-content: space-between; gap: 16px; }
.nav__center {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  height: 68px; display: flex; align-items: center; gap: 2px;
}
.nav__item { position: static; height: 68px; display: flex; align-items: center; }
.nav__trigger {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: inherit; font-size: 0.92rem; font-weight: 500; color: var(--text-body);
  background: none; border: none; cursor: pointer;
  padding: 8px 14px; border-radius: var(--r-pill);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.nav__trigger svg { width: 14px; height: 14px; transition: transform .25s var(--ease); color: var(--slate-400); }
.nav__item:hover .nav__trigger, .nav__item:focus-within .nav__trigger { color: var(--slate-900); background: var(--slate-100); }
.nav__item:hover .nav__trigger svg, .nav__item:focus-within .nav__trigger svg { transform: rotate(180deg); }

/* Megamenu panel */
.mega {
  position: absolute; top: 64px; left: 50%; transform: translateX(-50%) translateY(8px);
  width: min(900px, calc(100vw - 32px));
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-float);
  padding: 22px; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s var(--ease), transform .28s var(--ease), visibility .22s;
  z-index: 200;
}
.nav__item:hover .mega, .nav__item:focus-within .mega {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.mega__grid { display: grid; grid-template-columns: repeat(3, 1fr) 1.2fr; gap: 8px 18px; }
.mega__col h6 { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin: 4px 10px 8px; }
.mega__link { display: flex; align-items: flex-start; gap: 11px; padding: 9px 10px; border-radius: var(--r-sm); transition: background-color .18s var(--ease); }
.mega__link:hover { background: var(--slate-50); }
.mega__ico { width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--ks-primary-soft); color: var(--ks-primary); }
.mega__ico svg { width: 16px; height: 16px; }
.mega__link > span:last-child { display: block; min-width: 0; }
.mega__t { display: block; font-size: 0.86rem; font-weight: 600; color: var(--slate-800); line-height: 1.2; }
.mega__d { display: block; font-size: 0.74rem; color: var(--text-muted); margin-top: 2px; line-height: 1.3; }
.mega__feat {
  background: var(--slate-900); border-radius: var(--r-md); padding: 18px;
  display: flex; flex-direction: column; justify-content: space-between; color: #fff;
}
.mega__feat h6 { color: #7AB3E1; margin: 0 0 8px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.mega__feat .ft { font-size: 1rem; font-weight: 700; color: #fff; letter-spacing: -0.02em; line-height: 1.25; }
.mega__feat .fd { font-size: 0.78rem; color: var(--slate-400); margin-top: 6px; line-height: 1.4; }
.mega__feat .fcta { margin-top: 14px; font-size: 0.8rem; font-weight: 600; color: #fff; display: inline-flex; align-items: center; gap: 6px; }

/* ── Trust / registry bar ──────────────────────────────────────────────── */
.trust { border-bottom: 1px solid var(--border-soft); padding: 18px 0; background: #fff; }
.trust__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 26px; }
.trust__item { display: inline-flex; align-items: center; gap: 9px; font-size: 0.85rem; font-weight: 500; color: var(--text-body); }
.trust__item svg { width: 18px; height: 18px; color: var(--positive); flex-shrink: 0; }
.trust__sep { width: 1px; height: 16px; background: var(--border); }

/* ── Soft pill eyebrow (used on light sections) ────────────────────────── */
.badge-soft { display: inline-flex; align-items: center; gap: 7px; padding: 7px 16px; border-radius: var(--r-pill); background: var(--ks-primary-soft); color: var(--ks-primary); font-size: 0.85rem; font-weight: 600; }

/* ── "3 systems = one platform" — minimal editorial ────────────────────── */
.eco2__head { max-width: 680px; margin: 0 auto 60px; text-align: center; }
.eco2__eyebrow { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-subtle); }
.eco2__title { font-size: clamp(2.1rem, 3.6vw, 3rem); letter-spacing: -0.035em; line-height: 1.04; color: var(--slate-900); margin: 18px 0 16px; }
.eco2__title em { font-style: normal; color: var(--ks-primary); }
.eco2__sub { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.5; color: var(--text-body); }

.eco2__grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); }
.eco2__item { padding: 40px 40px 40px 0; }
.eco2__item + .eco2__item { border-left: 1px solid var(--border-soft); padding-left: 40px; }
.eco2__num { font-size: 2.1rem; font-weight: 300; color: var(--slate-300); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.eco2__tag { display: block; margin-top: 18px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ks-primary); }
.eco2__item h3 { font-size: 1.22rem; color: var(--slate-900); letter-spacing: -0.02em; margin: 10px 0 9px; }
.eco2__item p { font-size: 0.92rem; line-height: 1.55; color: var(--text-muted); }
.eco2__foot { border-top: 1px solid var(--border); text-align: center; padding-top: 22px; font-size: 0.9rem; color: var(--text-muted); }
.eco2__foot b { color: var(--slate-700); font-weight: 600; }

@media (max-width: 720px) {
  .eco2__grid { grid-template-columns: 1fr; }
  .eco2__item { padding: 30px 0; border-top: 1px solid var(--border-soft); }
  .eco2__item:first-child { border-top: none; }
  .eco2__item + .eco2__item { border-left: none; padding-left: 0; }
}

/* ── Roles ─────────────────────────────────────────────────────────────── */
.roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.role {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 22px;
  transition: border-color .25s var(--ease), transform .35s var(--ease);
}
.role:hover { border-color: var(--slate-300); transform: translateY(-3px); }
.role__ico { width: 42px; height: 42px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; background: var(--ks-primary-soft); color: var(--ks-primary); margin-bottom: 14px; }
.role__ico svg { width: 22px; height: 22px; }
.role h4 { font-size: 1.05rem; color: var(--slate-900); margin-bottom: 12px; letter-spacing: -0.02em; }
.role__li { display: flex; gap: 9px; align-items: flex-start; font-size: 0.86rem; color: var(--text-body); padding: 5px 0; }
.role__li svg { width: 17px; height: 17px; color: var(--ks-primary); flex-shrink: 0; margin-top: 1px; }

/* (phone mock removed — patient app section uses the real product render) */

/* ── Integrations (filterable, Lattice-style) ──────────────────────────── */
.integrations { background: var(--bg-soft); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 32px 0 28px; }
.filter {
  height: 38px; padding: 0 16px; border-radius: var(--r-pill);
  font-family: inherit; font-size: 0.85rem; font-weight: 600; color: var(--text-body);
  background: #fff; border: 1px solid var(--border); cursor: pointer;
  transition: color .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), transform .35s var(--ease);
}
.filter:hover { border-color: var(--slate-300); }
.filter:active { transform: scale(0.96); }
.filter.is-active { background: var(--ks-primary); color: #fff; border-color: var(--ks-primary); }
.int-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.int {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 18px;
  display: flex; align-items: center; gap: 13px;
  transition: border-color .22s var(--ease), transform .3s var(--ease);
}
.int:hover { border-color: var(--slate-300); transform: translateY(-2px); }
.int.is-hidden { display: none; }
.int__logo { width: 44px; height: 44px; border-radius: var(--r-sm); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.9rem; color: #fff; letter-spacing: -0.03em; }
.int__name { font-size: 0.92rem; font-weight: 700; color: var(--slate-800); letter-spacing: -0.01em; }
.int__cat { font-size: 0.74rem; color: var(--text-muted); margin-top: 1px; }
.int__more { text-align: center; margin-top: 26px; font-size: 0.9rem; color: var(--text-muted); }

/* ── Integrations — gradient panel + chip marquee ──────────────────────── */
.int-hero {
  position: relative; overflow: hidden; text-align: center;
  border-radius: 28px; padding: 64px 32px 60px;
  background: linear-gradient(115deg, #0e5599 0%, #146EBE 55%, #2f86d6 100%);
}
.int-hero__badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 8px 7px 16px; border-radius: var(--r-pill);
  background: #fff; color: var(--slate-900); font-size: 0.85rem; font-weight: 600;
  transition: transform .35s var(--ease);
}
.int-hero__badge svg { width: 15px; height: 15px; background: var(--slate-100); border-radius: 50%; padding: 3px; box-sizing: content-box; }
.int-hero__badge:hover { transform: translateY(-1px); }
.int-hero__title { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.8rem); letter-spacing: -0.03em; line-height: 1.08; margin: 22px 0 16px; }
.int-hero__sub { color: rgba(255,255,255,0.86); font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.55; max-width: 560px; margin: 0 auto; }

.int-marquee {
  margin: 44px auto 0; position: relative; overflow: hidden; padding: 18px 0;
  max-width: 980px; border-radius: 20px;
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.18);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.marquee__track { display: flex; gap: 12px; width: max-content; animation: marquee 38s linear infinite; will-change: transform; }
.int-marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }
.int-logo {
  flex: 0 0 124px; height: 72px; display: flex; align-items: center; justify-content: center;
  padding: 17px 18px; border-radius: 14px; background: #fff;
  border: 1px solid rgba(15,23,42,0.06); box-shadow: 0 8px 24px -18px rgba(15,23,42,0.55);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.int-logo:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -18px rgba(15,23,42,0.7); }
.int-logo img { width: 100%; height: 100%; object-fit: contain; }
.int-logo--sign img { max-width: 39px; max-height: 39px; }
.int-hero__more { margin-top: 40px; font-size: 0.92rem; color: rgba(255,255,255,0.82); }
.int-hero__more a { color: #fff; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.4); }

@media (max-width: 720px) {
  .int-hero { padding: 46px 18px 42px; border-radius: 22px; }
  .int-marquee { margin-top: 34px; padding: 13px 0; border-radius: 16px; }
  .int-logo { flex-basis: 104px; height: 62px; padding: 14px 15px; border-radius: 12px; }
  .int-logo--sign img { max-width: 34px; max-height: 34px; }
  .int-hero__more { margin-top: 30px; }
}

/* ── Customer stories carousel (Lattice-style) ─────────────────────────── */
.story-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 8px 7px 16px; border-radius: var(--r-pill);
  background: #e3f4ea; color: #157049; font-size: 0.85rem; font-weight: 600;
  transition: transform .35s var(--ease);
}
.story-badge svg { width: 15px; height: 15px; background: #cdeeda; border-radius: 50%; padding: 3px; box-sizing: content-box; }
.story-badge:hover { transform: translateY(-1px); }

.stories {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 28px 24px 26px; margin-top: 4px;
  scrollbar-width: none; -ms-overflow-style: none;
  scroll-padding: 0 24px;
}
.stories::-webkit-scrollbar { display: none; }
.story {
  flex: 0 0 min(580px, 84%); scroll-snap-align: center;
  border-radius: 24px; padding: 28px 30px;
}
.story--green  { background: #e3f4ea; }
.story--blue   { background: #e6f0fa; }
.story--amber  { background: #fbf1de; }
.story--violet { background: #ece7fb; }

.story__head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.story__avatar { position: relative; width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; }
.story__badge { position: absolute; right: -3px; bottom: -3px; width: 23px; height: 23px; border-radius: 50%; border: 2.5px solid #fff; display: flex; align-items: center; justify-content: center; font-size: 0.62rem; font-weight: 800; color: #fff; }
.story__name { font-size: 1rem; font-weight: 700; color: var(--slate-900); letter-spacing: -0.01em; }
.story__org { font-size: 0.84rem; color: var(--text-muted); }

.story__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 26px; align-items: start; }
.story__quote { font-size: 0.96rem; line-height: 1.55; color: var(--slate-700); }
.story__stat-col { border-left: 1px solid rgba(15, 23, 42, 0.10); padding-left: 24px; }
.story__stat { font-size: 2.7rem; font-weight: 700; letter-spacing: -0.045em; color: var(--slate-900); line-height: 1; }
.story__statdesc { font-size: 0.82rem; color: var(--slate-600); margin-top: 10px; line-height: 1.4; }
.story__cta { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border-radius: var(--r-pill); padding: 11px 18px; font-size: 0.86rem; font-weight: 600; color: var(--slate-900); transition: transform .35s var(--ease); }
.story__cta svg { width: 16px; height: 16px; }
.story__cta:hover { transform: translateX(2px); }

.dots { display: flex; gap: 8px; justify-content: center; margin-top: 10px; }
.dot { width: 8px; height: 8px; border-radius: 99px; background: var(--slate-300); border: none; cursor: pointer; padding: 0; transition: width .3s var(--ease), background-color .3s var(--ease); }
.dot.is-active { width: 26px; background: #1f9d63; }

@media (max-width: 720px) {
  .story__grid { grid-template-columns: 1fr; gap: 18px; }
  .story__stat-col { border-left: none; border-top: 1px solid rgba(15,23,42,0.10); padding-left: 0; padding-top: 18px; }
}

/* ── Bento capabilities — tiled, hero cell with live visual ────────────── */
.bento2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bento2 > * {
  background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 24px;
  transition: border-color .25s var(--ease), transform .35s var(--ease), box-shadow .25s var(--ease);
}
.bento2 > *:hover { border-color: var(--slate-300); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.bento2__hero { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; gap: 22px; padding: 28px; }
.bento2__cell { display: flex; flex-direction: column; }
.bento2-ico { width: 42px; height: 42px; border-radius: 12px; background: var(--acc-soft, var(--ks-primary-soft)); color: var(--acc, var(--ks-primary)); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.bento2-ico svg { width: 22px; height: 22px; }
.bento2 h4 { font-size: 1.04rem; color: var(--slate-900); letter-spacing: -0.02em; margin-bottom: 8px; }
.bento2__hero h4 { font-size: 1.3rem; margin-bottom: 10px; }
.bento2 p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }
.bento2__hero p { font-size: 0.96rem; color: var(--text-body); line-height: 1.55; }

.bento2__visual { margin-top: auto; background: var(--bg-soft); border: 1px solid var(--border-soft); border-radius: 14px; padding: 20px; }
.bento2__vtop { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 16px; }
.bento2__vstat { font-size: 1.8rem; font-weight: 700; color: var(--slate-900); letter-spacing: -0.035em; line-height: 1; }
.bento2__vsub { font-size: 0.78rem; color: var(--text-muted); margin-top: 5px; }
.bento2__vbadge { font-size: 0.72rem; font-weight: 600; color: #15803d; background: #dcfce7; padding: 5px 10px; border-radius: var(--r-pill); }

@media (max-width: 920px) {
  .bento2 { grid-template-columns: repeat(2, 1fr); }
  .bento2__hero { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 560px) {
  .bento2 { grid-template-columns: 1fr; }
  .bento2__hero { grid-column: span 1; }
}

/* ── Patients — dark app-promo panel (audience pivot) ──────────────────── */
.patients__bridge { text-align: center; font-size: 0.95rem; color: var(--text-muted); margin: 0 auto 32px; }
.patients__bridge b { color: var(--ks-primary); font-weight: 600; }

.papp2 {
  position: relative; overflow: hidden; border-radius: 28px; padding: 64px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
  background: linear-gradient(160deg, #e9f1fb 0%, #f7fafd 52%, #edf3fb 100%);
  border: 1px solid var(--border-soft);
}
.papp2__sub { max-width: 460px; }
.papp2__feats { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 26px; margin: 32px 0; }
.papp2__feat { display: flex; gap: 12px; align-items: flex-start; }
.papp2__feat svg { width: 22px; height: 22px; color: var(--ks-primary); flex-shrink: 0; margin-top: 1px; }
.papp2__feat b { display: block; color: var(--slate-800); font-size: 0.95rem; font-weight: 600; letter-spacing: -0.01em; }
.papp2__feat span { font-size: 0.82rem; color: var(--text-muted); }
.papp2__stores { display: flex; gap: 10px; flex-wrap: wrap; }
.papp2__store {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 12px;
  background: var(--slate-900); color: #fff; font-size: 0.85rem; font-weight: 600;
  transition: transform .3s var(--ease), background-color .2s var(--ease);
}
.papp2__store:hover { transform: translateY(-2px); background: var(--slate-800); }
.papp2__store svg { width: 17px; height: 17px; }

/* Scene: real app screenshots in CSS phone frames + notifications + rings */
.papp2__scene { position: relative; max-width: 440px; margin: 0 auto; aspect-ratio: 2/3; }

.phone2 {
  position: absolute; overflow: hidden;
  border: 9px solid #101a2c; border-radius: 42px; background: #1B263B;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.06),
    0 34px 64px -22px rgba(15, 23, 42, 0.45);
  animation: floaty 7s ease-in-out infinite;
}
.phone2 img { width: 100%; height: auto; display: block; margin-top: 30px; border-radius: 0 0 32px 32px; }
.phone2__island {
  position: absolute; left: 50%; top: 11px; transform: translateX(-50%); z-index: 2;
  width: 74px; height: 20px; border-radius: 99px; background: #060b14;
}
.phone2--front { width: 56%; right: 2%; top: 12%; z-index: 3; rotate: 2.5deg; }
.phone2--back { width: 48%; left: 3%; top: 2%; z-index: 1; rotate: -5deg; animation-delay: 1.2s; filter: brightness(0.92); }
.papp2__ring {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 116%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(20, 110, 190, 0.16);
  animation: ring-pulse 5s var(--ease) infinite;
}
.papp2__ring--2 { width: 140%; border-color: rgba(20, 110, 190, 0.09); animation-delay: 1.4s; }
@keyframes ring-pulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }

.pfc { z-index: 4; }
.pfc--confirm { left: -9%; bottom: 16%; --rot: -2deg; animation-delay: .7s; }
.pfc--results { left: -5%; top: 4%; --rot: 2deg; animation-delay: 1.5s; }
.pfc--bonus { right: -7%; bottom: 3%; --rot: 2.5deg; animation-delay: .2s; }
.pfc--confirm .fc-ico { position: relative; }
.pfc--confirm .fc-ico::after {
  content: ""; position: absolute; top: -3px; right: -3px; width: 9px; height: 9px;
  border-radius: 50%; background: #22c55e; border: 2px solid #fff;
  animation: ping 2.6s var(--ease) infinite;
}

.papp2__caption {
  margin-top: 26px; text-align: center;
  font-size: 0.8rem; line-height: 1.5; color: var(--text-muted);
}

@media (max-width: 880px) {
  .papp2 { grid-template-columns: 1fr; gap: 40px; padding: 44px 28px; text-align: center; }
  .papp2__sub { margin: 0 auto; }
  .papp2__feats { text-align: left; max-width: 420px; margin: 30px auto; }
  .papp2__stores { justify-content: center; }
  .papp2__scene { max-width: 320px; }
}
@media (max-width: 560px) {
  .papp2__feats { grid-template-columns: 1fr; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .phone2 { animation: none; }
  .papp2__ring { animation: none; opacity: 0.6; }
  .pfc--confirm .fc-ico::after { animation: none; }
}

/* ── Security — inset-grouped credentials list ─────────────────────────── */
.sec2 { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.sec2__list { background: #fff; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-card); }
.sec2__row { display: flex; align-items: center; gap: 15px; padding: 17px 22px; }
.sec2__row + .sec2__row { border-top: 1px solid var(--border-soft); }
.sec2__ico { width: 42px; height: 42px; border-radius: 12px; background: #e4f5ec; color: #16a34a; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sec2__ico svg { width: 22px; height: 22px; }
.sec2__t { font-size: 0.96rem; font-weight: 600; color: var(--slate-900); letter-spacing: -0.01em; }
.sec2__d { font-size: 0.82rem; color: var(--text-muted); margin-top: 1px; }
.sec2__check { margin-left: auto; color: #16a34a; flex-shrink: 0; display: flex; }
.sec2__check svg { width: 20px; height: 20px; }

@media (max-width: 860px) { .sec2 { grid-template-columns: 1fr; gap: 36px; } }

/* ── Roles — persona cards with tinted header ──────────────────────────── */
.roles2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.role2 { background: #fff; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; transition: border-color .25s var(--ease), transform .35s var(--ease), box-shadow .25s var(--ease); }
.role2:hover { border-color: var(--slate-300); transform: translateY(-3px); box-shadow: var(--shadow-card); }
.role2__head { background: var(--acc-soft); padding: 22px 22px 20px; }
.role2__ico { width: 40px; height: 40px; border-radius: 11px; background: #fff; color: var(--acc); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.07); }
.role2__ico svg { width: 21px; height: 21px; }
.role2__name { font-size: 1.1rem; font-weight: 700; color: var(--slate-900); letter-spacing: -0.02em; }
.role2__tag { font-size: 0.78rem; font-weight: 600; color: var(--acc); margin-top: 3px; }
.role2__body { padding: 18px 22px 22px; }
.role2__li { display: flex; gap: 9px; align-items: flex-start; font-size: 0.88rem; color: var(--slate-600); padding: 6px 0; }
.role2__li svg { width: 17px; height: 17px; color: var(--acc); flex-shrink: 0; margin-top: 1px; }

@media (max-width: 900px) { .roles2 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .roles2 { grid-template-columns: 1fr; } }

/* ── Pricing ───────────────────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px 22px;
  display: flex; flex-direction: column; transition: border-color .25s var(--ease);
}
.plan:hover { border-color: var(--slate-300); }
.plan--featured { border-color: var(--ks-primary); border-width: 1.5px; box-shadow: var(--shadow-card); background: linear-gradient(180deg, #f5f9fe 0%, #fff 40%); }
.plan__for { font-size: 0.82rem; color: var(--text-muted); margin-top: 3px; }
.plan__badge { align-self: flex-start; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ks-primary); background: var(--ks-primary-soft); padding: 4px 10px; border-radius: var(--r-pill); margin-bottom: 12px; height: 24px; }
.plan__badge--ghost { color: transparent; background: transparent; }
.plan__name { font-size: 1.1rem; font-weight: 700; color: var(--slate-900); letter-spacing: -0.02em; }
.plan__price { margin: 14px 0 4px; font-size: 1.8rem; font-weight: 700; color: var(--slate-900); letter-spacing: -0.03em; }
.plan__price small { font-size: 0.8rem; font-weight: 500; color: var(--text-muted); letter-spacing: 0; }
.plan__store { font-size: 0.8rem; color: var(--text-muted); padding-bottom: 18px; border-bottom: 1px solid var(--border-soft); margin-bottom: 16px; }
.plan__li { display: flex; gap: 9px; align-items: flex-start; font-size: 0.85rem; color: var(--text-body); padding: 6px 0; }
.plan__li svg { width: 16px; height: 16px; color: var(--positive); flex-shrink: 0; margin-top: 2px; }
.plan .btn { margin-top: 18px; width: 100%; }

/* ── Onboarding steps ──────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.step { position: relative; padding-top: 8px; }
.step__n { width: 38px; height: 38px; border-radius: 50%; background: var(--ks-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; margin-bottom: 14px; position: relative; z-index: 1; }
.step__line { position: absolute; top: 27px; left: 38px; right: -7px; height: 2px; background: var(--border); }
.step:last-child .step__line { display: none; }
.step h5 { font-size: 0.95rem; color: var(--slate-900); margin-bottom: 5px; letter-spacing: -0.01em; }
.step p { font-size: 0.83rem; color: var(--text-muted); line-height: 1.45; }

/* ── FAQ ───────────────────────────────────────────────────────────────── */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 4px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 1.02rem; font-weight: 600; color: var(--slate-800); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q-ico { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; transition: transform .3s var(--ease), background-color .25s, border-color .25s; }
.faq summary .q-ico svg { width: 13px; height: 13px; color: var(--text-muted); }
.faq details[open] summary .q-ico { transform: rotate(45deg); background: var(--ks-primary); border-color: var(--ks-primary); }
.faq details[open] summary .q-ico svg { color: #fff; }
.faq__a { padding: 0 4px 22px; font-size: 0.94rem; color: var(--text-body); line-height: 1.6; max-width: 94%; }

/* ── Client logos (clinics) ────────────────────────────────────────────── */
.clients__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 18px; }
.client-chip { display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-pill); font-size: 0.88rem; font-weight: 600; color: var(--slate-600); }
.client-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ks-primary); }

@media (max-width: 1024px) {
  .nav__center { display: none; }
  .int-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .roles { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step__line { display: none; }
  .triple { grid-template-columns: 1fr; }
  .triple__plus { display: none; }
  .portal__grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 560px) {
  .int-grid, .pricing-grid, .roles, .steps, .portal__list { grid-template-columns: 1fr; }
}

/* ── Brand identity touches (v3.1) ─────────────────────────────────────── */

/* Hero: marker-style underline under the accent phrase */
.accent--marker { position: relative; display: inline-block; }
.accent__stroke {
  position: absolute; left: -1%; bottom: -0.14em; width: 102%; height: 0.24em;
  color: var(--ks-primary); opacity: 0.3; pointer-events: none;
}
.accent__stroke path { stroke-dasharray: 300; stroke-dashoffset: 300; animation: stroke-draw 0.9s var(--ease-out) 0.55s forwards; }
@keyframes stroke-draw { to { stroke-dashoffset: 0; } }

/* Hero: live booking card — pulse dot + text swap */
.fc--notify .fc-ico { position: relative; }
.fc--notify .fc-ico::after {
  content: ""; position: absolute; top: -3px; right: -3px; width: 9px; height: 9px;
  border-radius: 50%; background: #22c55e; border: 2px solid #fff;
  animation: ping 2.6s var(--ease) infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  60% { box-shadow: 0 0 0 7px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
#liveBooking .fc-d { transition: opacity 0.28s var(--ease); }
#liveBooking.is-swapping .fc-d { opacity: 0; }

/* ═══════════════════════════════════════════════════════════════════════════
   v3.2 — premium pass: glass nav, layered hero, autoplay tabs, dark AI section,
   parallax collage, cursor glow, CTA form, pricing calculator, polish.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Rhythm & typography polish ────────────────────────────────────────── */
.section { padding: 112px 0; }
/* Premium icon pass: rounded caps/joins on every line icon (Lucide style) */
svg, svg * { stroke-linecap: round; stroke-linejoin: round; }
.stat__value, .big-stat__v, .row-pt__time, .fc-t, .plan__price,
.bento2__vstat, .story__stat, .calc__out { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--ks-primary); outline-offset: 2px; }

/* ── Glass nav ─────────────────────────────────────────────────────────── */
.nav {
  background: rgba(255,255,255,0.62);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.nav.is-scrolled {
  background: rgba(255,255,255,0.78);
  border-bottom-color: rgba(15,23,42,0.06);
  box-shadow: 0 8px 24px -20px rgba(15,23,42,0.25);
}

/* ── Hero: dot grid + glow + expensive mockup shadow ───────────────────── */
.hero--v2::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(15,23,42,0.09) 1px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
}
.hero--v2 .app {
  border-color: rgba(15,23,42,0.07);
  box-shadow:
    0 1px 2px rgba(15,23,42,0.05),
    0 24px 48px -16px rgba(20,110,190,0.16),
    0 64px 120px -36px rgba(15,23,42,0.32);
}

/* ── Parallax float cards ──────────────────────────────────────────────── */
.fc--notify  { --rot: -3deg; }
.fc--revenue { --rot: 2.5deg; }
.fc--avatars { --rot: 2deg; }
.fc--rating  { --rot: -2deg; }
.float-card {
  transform: rotate(var(--rot, 0deg)) translate(var(--px, 0px), var(--py, 0px));
  transition: transform 0.8s var(--ease-out);
}

/* ── Tabs: autoplay progress bar ───────────────────────────────────────── */
.tab { position: relative; overflow: hidden; }
.tab__bar {
  position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  transform: scaleX(0); transform-origin: left;
  background: rgba(255,255,255,0.55); border-radius: 2px;
  pointer-events: none;
}
.tab.is-active.is-auto .tab__bar { animation: tabbar 7s linear forwards; }
@keyframes tabbar { to { transform: scaleX(1); } }

/* ── Card hovers: lift + accent border ─────────────────────────────────── */
.bento2__hero, .bento2__cell {
  transition: transform .35s var(--ease), border-color .25s var(--ease), box-shadow .3s var(--ease);
}
.bento2__hero:hover, .bento2__cell:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--acc, var(--ks-primary)) 40%, var(--border));
  box-shadow: 0 16px 36px -20px color-mix(in srgb, var(--acc, var(--ks-primary)) 45%, transparent);
}
.role2:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--acc, var(--ks-primary)) 40%, var(--border));
  box-shadow: 0 16px 36px -20px color-mix(in srgb, var(--acc, var(--ks-primary)) 45%, transparent);
}
.plan { transition: transform .35s var(--ease), border-color .25s var(--ease), box-shadow .3s var(--ease); }
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }

/* ── AI — dark flat section ────────────────────────────────────────────── */
.ai {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  background: var(--slate-900); border-radius: 28px; padding: 64px;
}
.ai__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: var(--r-pill);
  background: rgba(122,179,225,0.12); border: 1px solid rgba(122,179,225,0.3);
  color: #7AB3E1; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.02em;
}
.ai__badge svg { width: 15px; height: 15px; }
.ai__text h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 20px 0 14px; }
.ai__text > p { color: var(--slate-400); font-size: 1.02rem; line-height: 1.6; max-width: 440px; }
.ai__panel {
  background: #1a2436; border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg); padding: 10px 22px;
}
.ai-row { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; }
.ai-row + .ai-row { border-top: 1px solid rgba(255,255,255,0.07); }
.ai-row__dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.ai-row__t { color: #fff; font-weight: 600; font-size: 0.94rem; letter-spacing: -0.01em; }
.ai-row__d { color: var(--slate-400); font-size: 0.82rem; margin-top: 2px; line-height: 1.5; }

/* ── Pricing note (under the grid) ─────────────────────────────────────── */
.pricing-note {
  margin-top: 28px; padding: 20px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--bg-soft); border: 1px solid var(--border-soft); border-radius: var(--r-lg);
}
.pricing-note p { font-size: 0.92rem; color: var(--text-body); }
.pricing-note b { color: var(--slate-900); }
.pricing-note__cta {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-size: 0.92rem; font-weight: 600; color: var(--ks-primary);
}
.pricing-note__cta svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.pricing-note__cta:hover svg { transform: translateX(3px); }

/* ── CTA form ──────────────────────────────────────────────────────────── */
.cta-form {
  position: relative; display: flex; gap: 10px; justify-content: center;
  flex-wrap: wrap; max-width: 520px; margin: 0 auto;
}
.cta-form__input {
  flex: 1; min-width: 220px; height: 52px; padding: 0 22px;
  border-radius: var(--r-pill); border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.14); color: #fff;
  font-family: inherit; font-size: 0.98rem;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.cta-form__input::placeholder { color: rgba(255,255,255,0.55); }
.cta-form__input:focus { outline: none; border-color: #fff; background: rgba(255,255,255,0.2); }
.cta-band__alt { position: relative; margin-top: 18px !important; font-size: 0.88rem !important; }
.cta-band__alt a { color: #fff; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,0.4); }

/* ── Reduced motion ────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .accent__stroke path { animation: none; stroke-dashoffset: 0; }
  .fc--notify .fc-ico::after { animation: none; }
  .tab.is-active.is-auto .tab__bar { animation: none; }
  .float-card { transition: none; }
}

/* ── Responsive for new blocks ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .ai { grid-template-columns: 1fr; gap: 40px; padding: 48px 32px; }
  .ai-card:nth-child(2), .ai-card:nth-child(3) { margin: 0; }
}
@media (max-width: 560px) {
  .section { padding: 80px 0; }
  .ai { padding: 36px 22px; border-radius: 22px; }
  .cta-form__input { min-width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   v3.3 — accessibility & mobile pass: skip link, burger + mobile menu,
   reduced-motion smooth scroll, footer phone.
   ═══════════════════════════════════════════════════════════════════════════ */

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

/* Anchors land below the sticky nav */
[id] { scroll-margin-top: 88px; }

/* ── Skip link ─────────────────────────────────────────────────────────── */
.skip-link {
  position: fixed; left: 16px; top: -56px; z-index: 300;
  background: var(--slate-900); color: #fff;
  padding: 12px 20px; border-radius: var(--r-pill);
  font-size: 0.9rem; font-weight: 600;
  transition: top .25s var(--ease);
}
.skip-link:focus-visible { top: 12px; }

/* ── Burger ────────────────────────────────────────────────────────────── */
.nav__burger {
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 50%; border: 1px solid var(--border); background: #fff;
  cursor: pointer; padding: 0;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.nav__burger:hover { border-color: var(--slate-300); }
.nav__burger span {
  display: block; width: 17px; height: 2px; border-radius: 2px;
  background: var(--slate-800);
  transition: transform .3s var(--ease);
}
.nav.is-open .nav__burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav.is-open .nav__burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ── Mobile menu sheet ─────────────────────────────────────────────────── */
.mobile-menu {
  display: none; position: fixed; z-index: 90;
  top: 68px; left: 0; right: 0; bottom: 0;
  background: #fff; padding: 10px 24px 40px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .28s var(--ease), transform .32s var(--ease), visibility .28s;
}
.nav.is-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
.mobile-menu__link {
  display: block; padding: 17px 4px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 1.08rem; font-weight: 600; color: var(--slate-800); letter-spacing: -0.015em;
}
.mobile-menu__actions { display: grid; gap: 10px; margin-top: 24px; }
body.menu-locked { overflow: hidden; }

@media (max-width: 1024px) {
  .nav__burger { display: inline-flex; }
  .mobile-menu { display: block; }
}
@media (max-width: 560px) {
  .nav__actions .btn--primary { display: none; }
}

/* ── Footer phone ──────────────────────────────────────────────────────── */
.footer__phone {
  display: inline-block; margin-top: 14px;
  color: #fff; font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  transition: color .2s var(--ease);
}
.footer__phone:hover { color: #7AB3E1; }
.footer__mail { display: block; margin-top: 4px; font-size: 0.9rem; transition: color .2s var(--ease); }
.footer__mail:hover { color: #fff; }

/* ═══════════════════════════════════════════════════════════════════════════
   v3.4 — content-to-reality pass: brand «Киберсофт.Здоровье», case cards.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Brand: production logo */
.brand__logo { height: 42px; width: auto; display: block; }
.footer__logo { height: 46px; width: auto; display: block; }
.side__brand img { width: 22px; height: 22px; }
