/* =========================================================================
   MEDVIZ SYSTEMS — WEBSITE DESIGN SYSTEM
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

/* ----- DESIGN TOKENS ----- */
:root {
  /* Brand teal scale */
  --teal-900:#003F40; --teal-800:#005456; --teal-700:#006B6B;
  --teal-600:#008080; --teal-500:#14A09F; --teal-400:#4FBDBC;
  --teal-300:#8DD7D6; --teal-200:#BFE9E8; --teal-100:#E2F4F4; --teal-50:#F2FAFA;
  /* Ink scale */
  --ink-900:#0A1B25; --ink-800:#142836; --ink-700:#1F3949;
  --ink-600:#34556A; --ink-500:#5C7689; --ink-400:#8497A6;
  --ink-300:#B5C2CC; --ink-200:#D9E0E5; --ink-100:#ECF0F3; --ink-50:#F7F9FA;

  --shadow-sm: 0 2px 6px rgba(20,50,70,.06);
  --shadow-md: 0 12px 28px rgba(20,50,70,.10), 0 2px 6px rgba(20,50,70,.05);
  --shadow-lg: 0 22px 50px rgba(20,50,70,.14), 0 4px 12px rgba(20,50,70,.06);
  --shadow-xl: 0 36px 80px rgba(0,107,107,.18), 0 8px 18px rgba(20,50,70,.08);

  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 18px; --radius-xl: 24px;
  --container: 1200px;
  --header-h: 76px;
  --header-h-shrunk: 64px;

  --easing: cubic-bezier(.22,.61,.36,1);
}

/* ----- RESET ----- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px; line-height: 1.6;
  color: var(--ink-700);
  background: white;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
ul,ol { list-style: none; }

/* ----- TYPE SYSTEM ----- */
h1,h2,h3,h4,h5,h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; line-height: 1.1; letter-spacing: -0.022em;
  color: var(--ink-900);
}
h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.03em;}
h2 { font-size: clamp(1.9rem, 3.4vw, 2.85rem); font-weight: 800; letter-spacing: -0.028em;}
h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
h6 { font-size: .95rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--teal-700); }

p { font-size: 1rem; line-height: 1.65; color: var(--ink-600); }
.lead { font-size: 1.15rem; line-height: 1.6; color: var(--ink-700); }

.kicker {
  display: inline-block;
  font-size: 0.78rem; font-weight: 600;
  color: var(--teal-700);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.text-teal { color: var(--teal-700) !important; }
.text-white { color: white !important; }
.text-mute { color: var(--ink-500) !important; }

/* ----- LAYOUT ----- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
/* Same outer edges as container-wide; inner content can use max-width as needed */
.container-narrow { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.container-narrow > h1, .container-narrow > .lead, .container-narrow > p { max-width: 760px; }
section { padding: clamp(60px, 8vw, 110px) 0; position: relative; }
section.compact { padding: clamp(40px, 5vw, 70px) 0; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 960px) {
  .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
}

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; } .gap-24 { gap: 24px; }

/* ----- BUTTONS ----- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  font-weight: 600; font-size: 0.95rem;
  border-radius: 10px;
  transition: transform .25s var(--easing), box-shadow .25s var(--easing), background .2s, color .2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal-700); color: white;
  box-shadow: 0 6px 16px rgba(0,128,128,0.25);
}
.btn-primary:hover { background: var(--teal-800); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,128,128,0.32); }
.btn-secondary { background: white; color: var(--teal-700); border: 1px solid var(--teal-200); }
.btn-secondary:hover { background: var(--teal-50); border-color: var(--teal-400); transform: translateY(-2px); }
.btn-ghost { color: var(--teal-700); padding: 10px 0; }
.btn-ghost::after { content: '→'; transition: transform .25s var(--easing); display: inline-block; }
.btn-ghost:hover::after { transform: translateX(6px); }

/* ----- HEADER / NAV ----- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100; height: var(--header-h);
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: height .3s var(--easing), background .3s var(--easing), border-color .3s var(--easing);
}
.site-header.scrolled {
  height: var(--header-h-shrunk);
  background: rgba(255,255,255,0.96);
  border-bottom-color: var(--ink-100);
}
.nav-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1320px; margin: 0 auto; padding: 0 24px;
}
.brand-logo { display: flex; align-items: center; gap: 10px; }
.brand-logo img { height: 30px; width: auto; }
.brand-logo .name { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.15rem; color: var(--ink-900); }

.main-nav {
  display: flex; align-items: center; gap: 4px;
  list-style: none;
}
.main-nav > li { position: relative; }
.main-nav > li > a, .main-nav > li > button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px;
  font-size: 0.95rem; font-weight: 500;
  color: var(--ink-700);
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.main-nav > li > a:hover, .main-nav > li > button:hover { color: var(--teal-700); background: var(--teal-50); }
.main-nav > li > a.active { color: var(--teal-700); }
.main-nav .caret { width: 10px; height: 10px; transition: transform .25s var(--easing); }
.main-nav .has-dropdown:hover .caret { transform: rotate(180deg); }

/* Dropdown menu */
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 320px;
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 12px;
  opacity: 0; visibility: hidden;
  transition: opacity .25s var(--easing), visibility .25s, transform .25s var(--easing);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.dropdown-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.dropdown-item:hover {
  background: var(--teal-50);
  border-color: var(--teal-200);
  box-shadow: 0 2px 8px rgba(20,160,159,.1);
}
.dropdown-item .ic {
  width: 36px; height: 36px;
  background: var(--teal-50); color: var(--teal-700);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .2s ease, color .2s ease;
}
.dropdown-item:hover .ic {
  background: var(--teal-600);
  color: white;
}
.dropdown-item:hover .meta .label {
  color: var(--teal-700);
}
.dropdown-item .ic svg { width: 20px; height: 20px; }
.dropdown-item .meta { display: flex; flex-direction: column; }
.dropdown-item .meta .label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; font-size: 0.95rem; color: var(--ink-900);
}
.dropdown-item .meta .desc {
  font-size: 0.82rem; color: var(--ink-500); margin-top: 2px;
}

.nav-cta { margin-left: 16px; }

.menu-toggle { display: none; }
.mobile-menu { display: none; }

@media (max-width: 1024px) {
  .mobile-menu { display: block; }
  .main-nav, .nav-cta { display: none; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--teal-700);
    color: white;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    box-shadow: 0 4px 12px rgba(0, 107, 107, 0.25);
    flex-shrink: 0;
    z-index: 101;
    position: relative;
  }
  .menu-toggle:hover { background: var(--teal-800); }
  .menu-toggle:active { transform: scale(0.96); }
  .menu-toggle__bars {
    display: inline-flex; flex-direction: column; gap: 3px;
    width: 18px; height: 14px;
    align-items: stretch; justify-content: center;
  }
  .menu-toggle__bars > span { display: block; width: 100%; height: 2px; background: white; border-radius: 2px; transition: transform .25s, opacity .25s; }
  .menu-toggle__label { line-height: 1; }
  .menu-toggle.open .menu-toggle__bars > span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .menu-toggle.open .menu-toggle__bars > span:nth-child(2) { opacity: 0; }
  .menu-toggle.open .menu-toggle__bars > span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
  .mobile-menu {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: white;
    z-index: 99;
    padding: 32px 24px;
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .35s var(--easing), visibility 0s .35s;
    border-top: 1px solid var(--ink-100);
  }
  .mobile-menu.open { transform: translateX(0); visibility: visible; transition: transform .35s var(--easing), visibility 0s; }
  .mobile-menu .group {
    border-bottom: 1px solid var(--ink-100);
    padding: 8px 0 16px; margin-bottom: 16px;
  }
  .mobile-menu .group h6 { color: var(--teal-700); margin-bottom: 12px; font-size: .8rem; }
  .mobile-menu a { display: block; padding: 12px 0; font-size: 1.05rem; color: var(--ink-800); font-weight: 500; }
  .mobile-menu a:hover { color: var(--teal-700); }
  .mobile-menu .cta-area { padding-top: 8px; }
}

/* ----- HERO ----- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 80px) 0 100px;
  background:
    radial-gradient(ellipse 90% 70% at 80% 20%, rgba(20,160,159,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 70% 60% at 10% 90%, rgba(143,215,214,0.22) 0%, transparent 55%),
    linear-gradient(180deg, white 0%, var(--teal-50) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px; align-items: center;
}
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.hero h1 em {
  font-style: normal; color: var(--teal-700);
  background: linear-gradient(120deg, var(--teal-700), var(--teal-500));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .lead { margin-top: 22px; max-width: 580px; }
.hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-stats {
  margin-top: 56px; display: grid;
  grid-template-columns: repeat(3, 1fr); gap: 32px;
  border-top: 1px solid var(--ink-100); padding-top: 28px;
}
.hero-stats .stat .num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.2rem; font-weight: 800;
  color: var(--teal-700); letter-spacing: -0.025em;
}
.hero-stats .stat .lbl { font-size: 0.85rem; color: var(--ink-500); margin-top: 4px; font-weight: 500; }

.hero-visual {
  position: relative;
}
.hero-visual .panel {
  background: linear-gradient(150deg, var(--teal-50), var(--teal-100));
  border: 1px solid var(--teal-100);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-xl);
  position: relative;
}
.hero-visual .float {
  position: absolute;
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 16px;
}

/* ----- SECTION HEADER ----- */
.section-header { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-header.left { text-align: left; margin-left: 0; margin-right: auto; }
.section-header h2 em { font-style: normal; color: var(--teal-700); }
.section-header p { margin-top: 16px; font-size: 1.1rem; line-height: 1.55; }

/* ----- CARDS ----- */
.card {
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .35s var(--easing), border-color .25s, box-shadow .35s var(--easing);
}
.card:hover { transform: translateY(-6px); border-color: var(--teal-200); box-shadow: var(--shadow-md); }
.card .ic {
  width: 48px; height: 48px;
  background: var(--teal-50); color: var(--teal-700);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  transition: background .25s, color .25s;
}
.card .ic svg { width: 24px; height: 24px; }
.card:hover .ic { background: var(--teal-700); color: white; }
.card h4 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { font-size: 0.95rem; color: var(--ink-600); }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--teal-700); font-weight: 600; font-size: 0.9rem; }
.card .more::after { content: '→'; transition: transform .25s var(--easing); }
.card:hover .more::after { transform: translateX(4px); }

.card-feature {
  background: linear-gradient(155deg, var(--teal-700), var(--teal-600));
  color: white;
  border: 0;
}
.card-feature h4, .card-feature p { color: white; }
.card-feature .ic { background: rgba(255,255,255,0.18); color: white; }
.card-feature:hover .ic { background: white; color: var(--teal-700); }
.card-feature .more { color: white; }

/* Tag pill */
.tag {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--teal-50); color: var(--teal-700);
  border: 1px solid var(--teal-200);
}
.tag-dark { background: var(--ink-900); color: var(--teal-200); border-color: transparent; }

/* ----- STATS BAND ----- */
.stat-band {
  background: linear-gradient(135deg, var(--teal-700), var(--teal-800));
  color: white;
  border-radius: var(--radius-xl);
  padding: 32px 40px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative; overflow: hidden;
}
.stat-band::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 30%, rgba(255,255,255,0.08), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.05), transparent 50%);
  pointer-events: none;
}
.stat-band .b-stat { position: relative; text-align: center; }
.stat-band .b-stat .num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.25rem; font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1;
}
.stat-band .b-stat .lbl {
  font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal-200); margin-top: 8px;
}
@media (max-width: 768px) {
  .stat-band { grid-template-columns: repeat(2, 1fr); padding: 24px 20px; gap: 18px; }
  .stat-band .b-stat .num { font-size: 1.85rem; }
}

/* ----- TESTIMONIAL ----- */
.testimonial {
  background: white; border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  transition: transform .35s var(--easing), box-shadow .35s var(--easing);
}
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testimonial::before {
  content: '"';
  position: absolute; top: 12px; right: 22px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 4.5rem; line-height: 0.7;
  color: var(--teal-100); font-weight: 800;
}
.testimonial .quote { font-style: italic; font-size: 1rem; color: var(--ink-700); line-height: 1.55; }
.testimonial .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--ink-100); }
.testimonial .avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-600), var(--teal-400));
  color: white; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.testimonial .name { font-weight: 700; color: var(--ink-900); font-size: 0.95rem; }
.testimonial .role { font-size: 0.82rem; color: var(--ink-500); }

/* ----- CTA — MAGAZINE STYLE ----- */
.cta-section {
  background: linear-gradient(145deg, var(--teal-900) 0%, #0a3d3d 40%, #0d2f2f 100%);
  color: white;
  position: relative;
  overflow: hidden;
  padding: 100px 0;
}
.cta-section h1, .cta-section h2, .cta-section h3,
.cta-section h4, .cta-section h5, .cta-section h6 { color: white; }
.cta-section p { color: rgba(255,255,255,0.8); }
.cta-section .fade-up { opacity: 1 !important; transform: none !important; clip-path: none !important; -webkit-clip-path: none !important; }

/* CTA strip — compact dark CTA band used on blog + inner pages */
.cta-strip {
  background: linear-gradient(145deg, var(--teal-900) 0%, #0a3d3d 40%, #0d2f2f 100%);
  color: white;
  padding: 56px 0;
  position: relative;
  z-index: 1;
}
.cta-strip h2 { color: white; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.cta-strip .lead { font-size: 1rem; line-height: 1.6; }

/* Background shapes */
.cta-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.cta-bg-shape {
  position: absolute;
  border-radius: 50%;
}
.cta-bg-shape--1 {
  width: 500px; height: 500px;
  top: -200px; right: -100px;
  background: radial-gradient(circle, rgba(0,200,180,.12) 0%, transparent 70%);
}
.cta-bg-shape--2 {
  width: 300px; height: 300px;
  bottom: -100px; left: -60px;
  background: radial-gradient(circle, rgba(0,180,170,.10) 0%, transparent 70%);
}
.cta-bg-shape--3 {
  width: 200px; height: 200px;
  top: 50%; left: 45%;
  background: radial-gradient(circle, rgba(255,255,255,.03) 0%, transparent 70%);
}

/* Magazine grid */
.cta-magazine {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

/* Left decorative panel */
.cta-deco {
  background: linear-gradient(160deg, rgba(0,200,180,.15) 0%, rgba(0,150,140,.08) 100%);
  border-right: 1px solid rgba(255,255,255,.08);
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  position: relative;
  overflow: hidden;
}

/* Badge icon */
.cta-deco-badge {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-300);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.cta-deco-label {
  font-size: .82rem;
  font-weight: 700;
  color: var(--teal-300);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* Stat */
.cta-deco-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cta-deco-number {
  font-size: 2.8rem;
  font-weight: 900;
  color: white;
  letter-spacing: -.03em;
  line-height: 1;
}
.cta-deco-sub {
  font-size: .82rem;
  color: rgba(255,255,255,.45);
  line-height: 1.4;
}

/* Dot grid decoration */
.cta-deco-dots {
  display: grid;
  grid-template-columns: repeat(5, 6px);
  gap: 10px;
  position: absolute;
  bottom: 28px;
  right: 28px;
  opacity: .2;
}
.cta-deco-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: white;
}

/* Right body */
.cta-body {
  padding: 56px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.cta-kicker {
  font-size: .82rem;
  font-weight: 700;
  color: var(--teal-300);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 16px;
}
.cta-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  letter-spacing: -.02em;
  margin: 0 0 16px;
}
.cta-title em {
  font-style: normal;
  color: var(--teal-300);
}
.cta-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,.6);
  margin: 0 0 32px;
  max-width: 480px;
}

/* Buttons */
.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  transition: all .3s var(--easing);
  cursor: pointer;
  border: none;
}
.cta-btn--primary {
  background: white;
  color: var(--teal-800);
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.cta-btn--primary:hover {
  background: var(--teal-50);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,.2);
}
.cta-btn--primary svg {
  transition: transform .3s var(--easing);
}
.cta-btn--primary:hover svg {
  transform: translateX(3px);
}
.cta-btn--secondary {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.15);
}
.cta-btn--secondary:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.3);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 860px) {
  .cta-magazine { grid-template-columns: 1fr; }
  .cta-deco {
    flex-direction: row;
    align-items: center;
    gap: 24px;
    padding: 32px 36px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .cta-deco-dots { display: none; }
  .cta-body { padding: 40px 36px; }
  .cta-title { font-size: 1.8rem; }
}
@media (max-width: 640px) {
  .cta-section { padding: 60px 0; }
  .cta-deco {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
    gap: 16px;
  }
  .cta-body { padding: 28px 24px 36px; }
  .cta-title { font-size: 1.5rem; }
  .cta-btn { padding: 12px 22px; font-size: .85rem; }
}

/* ----- FEATURE LIST ----- */
.feature-list {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px;
}
.feature-list.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 768px) {
  .feature-list, .feature-list.three { grid-template-columns: 1fr; }
}
.feature-list .item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease, transform .35s cubic-bezier(.22,1,.36,1);
}
.feature-list .item:hover {
  background: white;
  border-color: var(--ink-100);
  box-shadow: 0 8px 28px rgba(0,0,0,.05);
  transform: translateY(-3px);
}
.feature-list .item .ic {
  width: 40px; height: 40px;
  background: var(--teal-50); color: var(--teal-700);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .3s ease, color .3s ease, transform .3s ease;
}
.feature-list .item:hover .ic {
  background: var(--teal-600);
  color: white;
  transform: scale(1.1) rotate(-3deg);
}
.feature-list .item .ic svg { width: 22px; height: 22px; }
.feature-list .item h5 { font-size: 1rem; margin-bottom: 4px; color: var(--ink-900); font-weight: 700; }
.feature-list .item p { font-size: 0.92rem; color: var(--ink-600); line-height: 1.55; }

/* ----- TWO-COL ----- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.two-col.tight { gap: 40px; }
.two-col .panel {
  background: linear-gradient(150deg, var(--teal-50), var(--teal-100));
  border: 1px solid var(--teal-100);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.two-col.reverse .visual { order: -1; }
@media (max-width: 960px) {
  .two-col, .two-col.tight { grid-template-columns: 1fr; gap: 40px; }
  .two-col.reverse .visual { order: 0; }
}

/* ----- PROCESS STEPS ----- */
.steps {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 24px; position: relative;
}
.steps::before {
  content: ''; position: absolute; top: 30px; left: 6%; right: 6%;
  height: 2px; background: linear-gradient(90deg, var(--teal-200), var(--teal-400));
  z-index: 0;
}
@media (max-width: 768px) { .steps { grid-template-columns: 1fr; } .steps::before { display: none; } }
.step { position: relative; z-index: 1; text-align: left; }
.step .n {
  width: 60px; height: 60px;
  background: white;
  border: 2px solid var(--teal-600);
  color: var(--teal-700);
  border-radius: 50%;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.4rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  transition: background .3s, color .3s;
}
.step:hover .n { background: var(--teal-700); color: white; }
.step h5 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { font-size: 0.92rem; color: var(--ink-600); }

/* ----- FOOTER ----- */
.site-footer {
  background: var(--ink-900);
  color: var(--ink-300);
  padding: 80px 0 32px;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid .col-brand { grid-column: span 2; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } .footer-grid .col-brand { grid-column: 1; } }
.footer-grid .brand-logo-footer img { filter: none; }
.footer-grid p { color: var(--ink-300); margin-top: 16px; max-width: 320px; font-size: 0.9rem; line-height: 1.6; }
.footer-grid h6 { color: white; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul a {
  color: var(--ink-300); font-size: 0.92rem;
  transition: color .2s;
}
.footer-grid ul a:hover { color: var(--teal-300); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.82rem; color: var(--ink-400);
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom .social { display: flex; gap: 12px; }
.footer-bottom .social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-300);
  transition: background .2s, color .2s, transform .2s;
}
.footer-bottom .social a:hover { background: var(--teal-700); color: white; transform: translateY(-2px); }

/* ----- ANIMATIONS ----- */
:root {
  /* Refined easing curves */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --reveal-duration: .9s;
}

.reveal {
  opacity: 0;
  transform: translateY(32px) scale(0.985);
  transition: opacity var(--reveal-duration) var(--ease-out-expo),
              transform var(--reveal-duration) var(--ease-out-expo);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0) scale(1); }
.reveal-left {
  opacity: 0;
  transform: translateX(-80px);
  transition: opacity 1.1s var(--ease-out-expo),
              transform 1.1s var(--ease-out-expo);
  will-change: opacity, transform;
}
.reveal-left.in { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(80px);
  transition: opacity 1.1s var(--ease-out-expo),
              transform 1.1s var(--ease-out-expo);
  will-change: opacity, transform;
}
.reveal-right.in { opacity: 1; transform: translateX(0); }
.reveal-zoom {
  opacity: 0;
  transform: scale(.94);
  transition: opacity var(--reveal-duration) var(--ease-out-expo),
              transform var(--reveal-duration) var(--ease-spring);
}
.reveal-zoom.in { opacity: 1; transform: scale(1); }

.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }
.delay-4 { transition-delay: .32s; }
.delay-5 { transition-delay: .40s; }
.delay-6 { transition-delay: .48s; }

/* Auto-stagger children of grids — each subsequent child enters .08s after the previous */
.grid > .reveal:nth-child(1) { transition-delay: 0s; }
.grid > .reveal:nth-child(2) { transition-delay: .08s; }
.grid > .reveal:nth-child(3) { transition-delay: .16s; }
.grid > .reveal:nth-child(4) { transition-delay: .24s; }
.grid > .reveal:nth-child(5) { transition-delay: .32s; }
.grid > .reveal:nth-child(6) { transition-delay: .40s; }
.feature-list > .reveal:nth-child(1) { transition-delay: 0s; }
.feature-list > .reveal:nth-child(2) { transition-delay: .07s; }
.feature-list > .reveal:nth-child(3) { transition-delay: .14s; }
.feature-list > .reveal:nth-child(4) { transition-delay: .21s; }
.feature-list > .reveal:nth-child(5) { transition-delay: .28s; }
.feature-list > .reveal:nth-child(6) { transition-delay: .35s; }

/* Hero text reveal — words/lines fade up in sequence on initial load */
.hero h1, .page-hero h1 { animation: hero-text-fade .9s var(--ease-out-expo) both; }
.hero .lead, .page-hero .lead { animation: hero-text-fade 1s var(--ease-out-expo) .15s both; }
.hero .hero-cta { animation: hero-text-fade 1s var(--ease-out-expo) .3s both; }
@keyframes hero-text-fade {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Smoother card hover — lift + brighten shadow, soft shadow expand */
.card {
  transition: transform .4s var(--ease-out-expo),
              border-color .25s ease,
              box-shadow .4s var(--ease-out-expo);
}
.card:hover {
  transform: translateY(-8px);
  border-color: var(--teal-300);
  box-shadow: 0 24px 48px rgba(0, 107, 107, 0.14), 0 4px 12px rgba(20, 50, 70, 0.06);
}
.testimonial { transition: transform .4s var(--ease-out-expo), box-shadow .4s var(--ease-out-expo); }
.testimonial:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(20,50,70,.12); }

/* ----- TRUSTED BY (customer logos marquee) ----- */
.logo-marquee {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}
.logo-track {
  display: inline-flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: logo-scroll 50s linear infinite;
  padding: 4px 0;
}
.logo-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-400);
  letter-spacing: -0.01em;
  padding: 0 28px;
  transition: color .25s ease;
}
.logo-text:hover { color: var(--teal-700); }
.logo-dot {
  font-size: 1.4rem;
  color: var(--ink-200);
  font-weight: 400;
}
@keyframes logo-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.logo-marquee:hover .logo-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; }
}

/* Float animation for hero pills */
@keyframes float-1 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes float-2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.animate-float-1 { animation: float-1 5s ease-in-out infinite; }
.animate-float-2 { animation: float-2 6s ease-in-out infinite 1s; }

/* Subtle background drift on section gradient panels */
@keyframes gradient-drift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* Honor reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-zoom { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero h1, .page-hero h1, .hero .lead, .page-hero .lead, .hero .hero-cta { animation: none !important; }
  .animate-float-1, .animate-float-2 { animation: none !important; }
}

/* ----- PAGE HEADERS (interior pages) ----- */
.page-hero {
  padding: calc(var(--header-h) + 80px) 0 80px;
  background:
    radial-gradient(ellipse 80% 60% at 70% 30%, rgba(20,160,159,0.15) 0%, transparent 60%),
    linear-gradient(180deg, white 0%, var(--teal-50) 100%);
}
.page-hero h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.page-hero .lead { max-width: 760px; margin-top: 18px; }
/* Tighter hero for legal pages */
body[data-page="privacy"] .page-hero,
body[data-page="legal"] .page-hero { padding: calc(var(--header-h) + 60px) 0 50px; }
body[data-page="privacy"] .page-hero h1,
body[data-page="legal"] .page-hero h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; }
.page-hero .breadcrumb {
  font-size: 0.82rem; color: var(--ink-500);
  margin-bottom: 24px;
  display: flex; gap: 8px; align-items: center;
}
.page-hero .breadcrumb a { color: var(--teal-700); }
.page-hero .breadcrumb .sep { color: var(--ink-300); }

/* ----- Split hero (text left + visual right) ----- */
.page-hero--split {
  padding-bottom: 60px;
  overflow: visible;
}
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.hero-split__text {
  min-width: 0;
}
.hero-split__text .lead {
  max-width: 520px;
}
.hero-split__visual {
  min-width: 0;
  position: relative;
}
@media (max-width: 960px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-split__visual {
    max-width: 560px;
    margin: 0 auto;
  }
}
@media (max-width: 640px) {
  .hero-split__visual img:last-child {
    height: 160px !important;
    right: -8px !important;
    bottom: -16px !important;
  }
}

/* ----- FORM ----- */
.contact-form {
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block; font-size: 0.85rem; font-weight: 600;
  color: var(--ink-700); margin-bottom: 6px;
}
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit; font-size: 0.95rem;
  border: 1px solid var(--ink-200);
  border-radius: 10px;
  background: var(--ink-50);
  color: var(--ink-800);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.form-row select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a6570' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}
.form-row select:invalid,
.form-row select option[value=""] {
  color: var(--ink-400);
}
.form-row select option {
  color: var(--ink-800);
  background: white;
  padding: 8px;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none;
  border-color: var(--teal-500);
  background-color: white;
  box-shadow: 0 0 0 4px var(--teal-100);
}
.form-row textarea { min-height: 120px; resize: vertical; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-grid-2 { grid-template-columns: 1fr; } }

/* ─── Contact Left: Enhanced Panel ─── */
.contact-left {
  background: linear-gradient(165deg, #F0FAF9 0%, #F7F8FC 50%, #FFF 100%);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  padding: 36px 32px 32px;
}

.contact-left__header {
  margin-bottom: 28px;
}
.contact-left__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(20,160,159,.08);
  color: var(--teal-700);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 18px;
}
.contact-left__title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink-900);
  margin: 0 0 12px;
}
.contact-left__title em {
  font-style: normal;
  color: var(--teal-700);
}
.contact-left__desc {
  font-size: .9rem;
  line-height: 1.6;
  color: var(--ink-500);
  margin: 0;
}

/* Contact cards */
.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s cubic-bezier(.22,1,.36,1);
}
a.contact-card:hover {
  border-color: var(--cc-c, var(--teal-600));
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
  transform: translateY(-2px);
}
.contact-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--cc-bg);
  color: var(--cc-c);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .3s ease;
}
a.contact-card:hover .contact-card__icon {
  transform: scale(1.1) rotate(-3deg);
}
.contact-card__body {
  flex: 1;
  min-width: 0;
}
.contact-card__label {
  display: block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: 2px;
}
.contact-card__value {
  display: block;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: .93rem;
  font-weight: 700;
  color: var(--ink-900);
}
.contact-card__arrow {
  flex-shrink: 0;
  color: var(--ink-300);
  transition: color .3s ease, transform .3s ease;
}
a.contact-card:hover .contact-card__arrow {
  color: var(--cc-c, var(--teal-600));
  transform: translateX(3px);
}

/* Trust row */
.contact-left__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.contact-left__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 100px;
  background: white;
  border: 1px solid var(--ink-100);
  font-size: .72rem;
  font-weight: 600;
  color: var(--ink-500);
}
.contact-left__trust-item svg {
  color: var(--teal-600);
}

@media (max-width: 640px) {
  .contact-left { padding: 24px 20px 24px; }
  .contact-left__title { font-size: 1.3rem; }
  .contact-left__trust { gap: 6px; }
}

/* ─── Custom Dropdown Select ─── */
.custom-select { position: relative; }
.custom-select__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: .95rem;
  border: 1px solid var(--ink-200);
  border-radius: 10px;
  background: var(--ink-50);
  color: var(--ink-800);
  cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s;
  text-align: left;
}
.custom-select__trigger:hover { border-color: var(--ink-300); }
.custom-select__trigger:focus {
  outline: none;
  border-color: var(--teal-500);
  background: white;
  box-shadow: 0 0 0 4px var(--teal-100);
}
.custom-select__trigger[aria-expanded="true"] {
  border-color: var(--teal-500);
  background: white;
  box-shadow: 0 0 0 4px var(--teal-100);
}
.custom-select__value { flex: 1; }
.custom-select__value.is-placeholder { color: var(--ink-400); }
.custom-select__chevron {
  flex-shrink: 0;
  color: var(--ink-400);
  transition: transform .25s ease;
}
.custom-select__trigger[aria-expanded="true"] .custom-select__chevron {
  transform: rotate(180deg);
}

.custom-select__menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--ink-150, #e2e6ea);
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0,0,0,.1), 0 2px 8px rgba(0,0,0,.04);
  padding: 8px;
  z-index: 100;
  max-height: 320px;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  overscroll-behavior: contain;
}
.custom-select__menu.is-open { display: block; animation: csDropIn .2s ease; }

@keyframes csDropIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.custom-select__group-label {
  padding: 10px 12px 6px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-400);
  pointer-events: none;
}
.custom-select__group-label:not(:first-child) {
  margin-top: 4px;
  border-top: 1px solid var(--ink-100);
  padding-top: 12px;
}

.custom-select__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: .9rem;
  color: var(--ink-700);
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.custom-select__option svg {
  flex-shrink: 0;
  color: var(--ink-400);
  transition: color .15s ease;
}
.custom-select__option:hover {
  background: var(--teal-50, #E6F7F7);
  color: var(--teal-700, #0E7C7B);
}
.custom-select__option:hover svg { color: var(--teal-500, #14A09F); }
.custom-select__option.is-selected {
  background: var(--teal-50, #E6F7F7);
  color: var(--teal-700, #0E7C7B);
  font-weight: 600;
}
.custom-select__option.is-selected svg { color: var(--teal-500, #14A09F); }

/* Scrollbar in dropdown */
.custom-select__menu::-webkit-scrollbar { width: 6px; }
.custom-select__menu::-webkit-scrollbar-track { background: transparent; }
.custom-select__menu::-webkit-scrollbar-thumb { background: var(--ink-200); border-radius: 3px; }

@media (max-width: 640px) {
  .contact-info-panel { padding: 28px 24px; }
}

/* Misc */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ''; display: inline-block; width: 24px; height: 2px;
  background: var(--teal-600);
}
.divider-soft { height: 1px; background: var(--ink-100); margin: 60px 0; }

/* ----- LEGAL PAGES (Privacy, BAA, T&C, Cookies) ----- */
.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: 24px; }
  .legal-toc { position: static !important; }
}

.legal-toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  font-size: .88rem;
  border-left: 1px solid var(--ink-100);
  padding-left: 18px;
  max-height: calc(100vh - var(--header-h) - 60px);
  overflow-y: auto;
}
.legal-toc h6 {
  font-size: .7rem; letter-spacing: 0.18em; color: var(--ink-500);
  margin-bottom: 12px; font-weight: 700;
}
.legal-toc ul { display: flex; flex-direction: column; gap: 8px; }
.legal-toc a {
  color: var(--ink-600);
  display: block;
  padding: 4px 0;
  font-weight: 500;
  transition: color .2s;
  line-height: 1.45;
}
.legal-toc a:hover, .legal-toc a.active { color: var(--teal-700); font-weight: 600; }

.legal-content {
  max-width: 720px;
  font-family: 'Inter', sans-serif;
  font-size: .92rem;
  line-height: 1.7;
  color: var(--ink-600);
}
.legal-content h2 {
  font-family: 'Inter', sans-serif !important;
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  color: var(--ink-800) !important;
  margin-top: 40px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink-100);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h3 {
  font-family: 'Inter', sans-serif !important;
  font-size: .92rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  color: var(--ink-700) !important;
  margin-top: 22px;
  margin-bottom: 6px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.legal-content p { margin: 10px 0; font-size: .92rem; line-height: 1.7; color: var(--ink-600); }
.legal-content p strong { color: var(--ink-800); font-weight: 600; }
.legal-content ul, .legal-content ol {
  margin: 12px 0 12px 22px;
  font-size: .92rem;
  line-height: 1.7;
  color: var(--ink-600);
}
.legal-content ul li, .legal-content ol li { margin-bottom: 4px; }
.legal-content ul li { list-style: disc; }
.legal-content ol li { list-style: decimal; }
.legal-content a { color: var(--teal-700); text-decoration: underline; text-underline-offset: 2px; }
.legal-content a:hover { color: var(--teal-800); }
.legal-content .effective-date {
  display: inline-block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-500);
  background: var(--ink-50);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.legal-content .callout {
  background: var(--teal-50);
  border: 1px solid var(--teal-200);
  border-left: 3px solid var(--teal-600);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: .92rem;
}
.legal-content .callout strong { color: var(--teal-800); }

/* ----- COOKIE CONSENT BANNER (compact, enterprise) ----- */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  right: 16px;
  left: auto;
  max-width: 380px;
  background: white;
  border: 1px solid var(--ink-200);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(20,50,70,.10), 0 2px 6px rgba(20,50,70,.05);
  padding: 14px 16px 12px;
  z-index: 200;
  transform: translateY(140%);
  transition: transform .4s var(--easing);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p {
  font-size: .76rem;
  line-height: 1.5;
  color: var(--ink-600);
  margin-bottom: 10px;
}
.cookie-banner p a { color: var(--teal-700); text-decoration: underline; }
.cookie-banner .actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
/* Cookie buttons — used in both banner and preferences modal */
.btn-cookie {
  display: inline-block;
  padding: 8px 14px;
  font-size: .78rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: .01em;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-cookie-primary {
  background: var(--teal-700);
  color: white;
}
.btn-cookie-primary:hover { background: #006666; }
.btn-cookie-secondary {
  background: white;
  color: var(--ink-700);
  border-color: #d4dde2;
}
.btn-cookie-secondary:hover { border-color: #6b7c85; }

/* In the slim banner only, scale the buttons down a notch */
.cookie-banner .btn-cookie {
  padding: 6px 12px;
  font-size: .72rem;
}
.cookie-banner .btn-cookie-link {
  background: none;
  border: none;
  color: #6b7c85;
  padding: 6px 4px;
  font-size: .72rem;
  font-weight: 500;
  font-family: inherit;
  text-decoration: underline;
  cursor: pointer;
  margin-left: auto;
}
.cookie-banner .btn-cookie-link:hover { color: var(--teal-700); }

/* ----- COOKIE PREFERENCES MODAL ----- */
.cookie-prefs-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--easing);
}
.cookie-prefs-modal[hidden] { display: none; }
.cookie-prefs-modal.show {
  opacity: 1;
  pointer-events: auto;
}
.cookie-prefs-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 35, 55, .55);
}
.cookie-prefs-dialog {
  position: relative;
  background: white;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(20,50,70,.18), 0 4px 12px rgba(20,50,70,.08);
  max-width: 540px;
  width: calc(100% - 32px);
  max-height: 85vh;
  overflow-y: auto;
  padding: 22px 26px 20px;
  transform: translateY(20px);
  transition: transform .25s var(--easing);
}
.cookie-prefs-modal.show .cookie-prefs-dialog { transform: translateY(0); }
.cookie-prefs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.cookie-prefs-head h3 {
  font-size: 1.05rem;
  color: var(--ink-900);
  margin: 0;
  font-weight: 700;
}
.cookie-prefs-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6b7c85;
  line-height: 1;
  padding: 2px 6px;
  font-family: inherit;
}
.cookie-prefs-close:hover { color: var(--ink-900); }
.cookie-prefs-intro {
  font-size: .82rem;
  line-height: 1.55;
  color: var(--ink-600);
  margin-bottom: 18px;
}
.cookie-prefs-intro a { color: var(--teal-700); text-decoration: underline; }
.cookie-prefs-categories {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}
.cookie-cat {
  border: 1px solid var(--ink-200);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fafbfc;
}
.cookie-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  gap: 12px;
}
.cookie-cat h4 {
  font-size: .85rem;
  margin: 0;
  color: var(--ink-900);
  font-weight: 600;
}
.cookie-cat p {
  font-size: .74rem;
  line-height: 1.5;
  color: var(--ink-600);
  margin: 0;
}
.cookie-cat-status {
  font-size: .7rem;
  font-weight: 600;
  color: var(--teal-700);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  cursor: pointer;
  flex-shrink: 0;
}
.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.cookie-toggle-track {
  position: absolute;
  inset: 0;
  background: #cbd5d8;
  border-radius: 20px;
  transition: background .2s;
}
.cookie-toggle-track::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 2px;
  top: 2px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,.15);
  transition: transform .2s;
}
.cookie-toggle input:checked + .cookie-toggle-track { background: var(--teal-700); }
.cookie-toggle input:checked + .cookie-toggle-track::before { transform: translateX(16px); }
.cookie-toggle input:focus-visible + .cookie-toggle-track {
  outline: 2px solid var(--teal-700);
  outline-offset: 2px;
}
.cookie-prefs-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
  border-top: 1px solid var(--ink-200);
  padding-top: 14px;
}

@media (max-width: 480px) {
  .cookie-prefs-dialog {
    padding: 18px 16px 16px;
    width: calc(100% - 24px);
    max-height: 90vh;
  }
  .cookie-prefs-actions {
    justify-content: stretch;
  }
  .cookie-prefs-actions button { flex: 1; min-width: 0; }
}

@media (max-width: 480px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
    padding: 12px 14px 10px;
  }
}

/* hidden util */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* List with checks */
.checklist { display: grid; gap: 12px; }
.checklist li {
  position: relative; padding-left: 30px;
  font-size: 0.95rem; color: var(--ink-700);
}
.checklist li::before {
  content: '';
  position: absolute; left: 0; top: 4px;
  width: 18px; height: 18px;
  background: var(--teal-600);
  border-radius: 50%;
}
.checklist li::after {
  content: '';
  position: absolute; left: 5px; top: 8px;
  width: 8px; height: 4px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg);
}

/* ============================================================
   BLOG — modern enterprise layout (left sidebar + content)
   ============================================================ */
/* Tighter blog hero — compact, doesn't dominate the page */
body[data-page="blog"] .page-hero {
  padding: calc(var(--header-h) + 50px) 0 36px;
}
body[data-page="blog"] .page-hero h1 {
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}
body[data-page="blog"] .page-hero .lead {
  font-size: 1rem;
  margin-top: 12px;
}
body[data-page="blog"] .page-hero .kicker {
  font-size: 0.72rem;
}
.blog-page-hero {
  padding-bottom: 36px;
}

.blog-layout {
  padding: 8px 0 90px;
  background: white;
}
.blog-layout-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 980px) {
  .blog-layout-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ----- Sidebar (sticky on desktop) ----- */
.blog-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}
@media (max-width: 980px) {
  .blog-sidebar { position: static; }
}
.blog-sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.blog-sidebar-heading {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 12px;
  padding-left: 16px;
}
.blog-cat-nav {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--ink-100);
}
.blog-cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 16px;
  margin-left: -1px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-700);
  text-decoration: none;
  border: none;
  border-left: 2px solid transparent;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: color .15s, border-color .15s, background .15s;
  border-radius: 0 6px 6px 0;
}
.blog-cat-link:hover {
  color: var(--teal-700);
  background: rgba(0, 128, 128, 0.04);
}
.blog-cat-link.active {
  color: var(--teal-700);
  border-left-color: var(--teal-700);
  font-weight: 600;
  background: rgba(0, 128, 128, 0.04);
}
.blog-cat-link .count {
  font-size: 0.72rem;
  color: var(--ink-500);
  font-weight: 500;
  padding: 1px 8px;
  background: var(--ink-50, #f4f7f8);
  border-radius: 999px;
}
.blog-cat-link.active .count {
  background: var(--teal-700);
  color: white;
}

/* Sidebar CTA card */
.blog-sidebar-cta {
  margin-top: 8px;
  margin-left: 16px;
  padding: 18px 18px 16px;
  border: 1px solid var(--ink-100);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(0, 128, 128, 0.04) 0%, white 100%);
}
.blog-sidebar-cta h6 {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink-900);
  margin: 0 0 6px;
}
.blog-sidebar-cta p {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--ink-600);
  margin: 0 0 10px;
}

/* Mobile sidebar — horizontal scrolling pill row */
@media (max-width: 980px) {
  .blog-sidebar-inner { gap: 16px; }
  .blog-sidebar-heading { display: none; }
  .blog-cat-nav {
    flex-direction: row;
    overflow-x: auto;
    border-left: none;
    padding: 4px 2px;
    margin: 0 -16px;
    padding-left: 16px;
    scrollbar-width: none;
  }
  .blog-cat-nav::-webkit-scrollbar { display: none; }
  .blog-cat-link {
    flex-shrink: 0;
    margin-left: 0;
    padding: 8px 14px;
    border: 1px solid var(--ink-200);
    border-radius: 999px;
    font-size: 0.82rem;
    background: white;
  }
  .blog-cat-link.active {
    background: var(--teal-700);
    color: white;
    border-color: var(--teal-700);
  }
  .blog-cat-link.active .count { background: white; color: var(--teal-700); }
  .blog-sidebar-cta { display: none; }
}

/* ----- Content column ----- */
.blog-content {
  min-width: 0;
}

.blog-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-top: 8px;
}
.blog-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}

/* ----- Featured (compact, fixed-aspect image) ----- */
.blog-featured {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  margin-bottom: 56px;
  transition: transform .25s var(--easing), box-shadow .25s var(--easing), border-color .2s;
}
.blog-featured:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(20,50,70,.08);
  border-color: var(--ink-200);
}
.blog-featured-image {
  overflow: hidden;
}
.blog-featured-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .4s var(--easing);
}
.blog-featured:hover .blog-featured-image img { transform: scale(1.02); }
.blog-featured-body {
  padding: 28px 32px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 20px;
}
.blog-featured-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--teal-700);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.blog-featured-title {
  width: 100%;
  font-size: 1.35rem;
  line-height: 1.3;
  font-weight: 700;
  margin: 8px 0 0;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}
.blog-featured-excerpt {
  width: 100%;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-600);
  margin: 10px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-featured-meta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--ink-500);
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--ink-100);
}
.blog-featured-read {
  color: var(--teal-700);
  font-weight: 600;
}
@media (max-width: 760px) {
  .blog-featured-body { padding: 22px 22px 20px; }
  .blog-featured-title { font-size: 1.15rem; }
}

/* ----- Card grid (2-col within sidebar layout) ----- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (max-width: 760px) {
  .blog-grid { grid-template-columns: 1fr; gap: 22px; }
}

/* Card */
.blog-card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .2s var(--easing), box-shadow .2s var(--easing), border-color .2s;
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(20,50,70,.08);
  border-color: var(--ink-200);
}
.blog-card-image {
  overflow: hidden;
  background: var(--ink-50, #f7f9fa);
}
.blog-card-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .4s var(--easing);
}
.blog-card:hover .blog-card-image img { transform: scale(1.04); }
.blog-card-body {
  padding: 16px 20px 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.blog-card-cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 0;
  color: var(--teal-700);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.blog-card-title {
  display: none;
}
.blog-card-excerpt {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--ink-600);
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--ink-500);
  padding-top: 10px;
  border-top: 1px solid var(--ink-100);
}
.blog-card-date { font-weight: 500; }
.blog-card-read {
  color: var(--teal-700);
  font-weight: 600;
  font-size: 0.78rem;
}

/* Pagination */
.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.blog-pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px; height: 36px;
  padding: 0 10px;
  border: 1px solid var(--ink-200);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-700);
  text-decoration: none;
  transition: border-color .15s, color .15s, background .15s;
}
.blog-pagination .page-link:hover {
  border-color: var(--teal-700);
  color: var(--teal-700);
}
.blog-pagination .page-link.active {
  background: var(--teal-700);
  border-color: var(--teal-700);
  color: white;
}

/* ============================================================
   BLOG POST — article page (3-col: sidebar | article | rail)
   ============================================================ */
.blog-post {
  padding: 0;
}
.blog-post-hero {
  padding: calc(var(--header-h) + 36px) 0 0;
  background: linear-gradient(180deg, var(--ink-50, #f7f9fa) 0%, white 100%);
}

/* 3-column layout below the hero */
.blog-post-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 260px;
  gap: 48px;
  padding: 56px 0 80px;
  align-items: start;
}
@media (max-width: 1100px) {
  .blog-post-layout {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 36px;
  }
  .blog-post-layout .blog-sidebar { display: none; }
}
@media (max-width: 800px) {
  .blog-post-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 32px 0 60px;
  }
  .blog-post-layout .blog-post-rail { display: none; }
}

.blog-post-main {
  min-width: 0;
}

/* Right rail (sticky) */
.blog-post-rail {
  position: sticky;
  top: 100px;
  align-self: start;
}
.blog-post-rail-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.rail-heading {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 14px;
}

/* Share widget */
.share-widget {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ink-100);
}
.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--ink-200);
  border-radius: 8px;
  background: white;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-700);
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: border-color .15s, color .15s, background .15s;
}
.share-btn:hover {
  border-color: var(--teal-700);
  color: var(--teal-700);
}

/* Popular widget */
.popular-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.popular-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 12px;
  padding: 10px 0;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--ink-50, #f4f7f8);
  align-items: start;
}
.popular-item:last-child { border-bottom: none; }
.popular-thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 6px;
  background: var(--ink-50, #f7f9fa);
}
.popular-thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
.popular-meta { min-width: 0; }
.popular-cat {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--teal-700);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}
.popular-meta h4 {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 4px;
  color: var(--ink-900);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.popular-item:hover h4 { color: var(--teal-700); }
.popular-date {
  font-size: 0.7rem;
  color: var(--ink-500);
}

/* View counter badge on post */
.blog-post-views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink-500);
}
.breadcrumb-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--ink-500);
  margin-bottom: 22px;
}
.breadcrumb-nav a {
  color: var(--ink-500);
  text-decoration: none;
}
.breadcrumb-nav a:hover { color: var(--teal-700); }
.breadcrumb-nav span { color: var(--ink-300); }

.blog-post-title {
  font-size: clamp(1.5rem, 2.4vw, 1.95rem);
  line-height: 1.22;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--ink-900);
  max-width: 860px;
  letter-spacing: -0.012em;
}
.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--ink-600);
  margin-bottom: 36px;
}
.blog-post-dot { color: var(--ink-300); }
.blog-post-date { font-weight: 600; }
.blog-post-image-wrap {
  margin: 0 auto;
  max-width: 1100px;
  padding: 0 24px;
}
.blog-post-image {
  width: 100%;
  aspect-ratio: 21 / 10;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  box-shadow: 0 10px 40px rgba(20,50,70,.08);
}

/* Body — long-form prose */
.blog-post-content {
  font-size: 1.02rem;
  line-height: 1.76;
  color: var(--ink-800);
  margin-bottom: 60px;
}
.blog-post-content > * { max-width: 100%; }
.blog-post-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink-900);
  margin: 48px auto 18px;
  line-height: 1.25;
}
.blog-post-content h3 {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--ink-900);
  margin: 36px auto 14px;
  line-height: 1.3;
}
.blog-post-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-900);
  margin: 28px auto 10px;
}
.blog-post-content p {
  margin: 0 auto 22px;
}
.blog-post-content ul,
.blog-post-content ol {
  margin: 0 auto 22px;
  padding-left: 22px;
}
.blog-post-content li {
  margin-bottom: 10px;
  padding-left: 4px;
}
.blog-post-content a {
  color: var(--teal-700);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.blog-post-content a:hover { color: var(--teal-800, #006666); }
.blog-post-content strong { color: var(--ink-900); font-weight: 600; }
.blog-post-content blockquote {
  border-left: 4px solid var(--teal-700);
  margin: 28px auto;
  padding: 4px 0 4px 22px;
  font-style: italic;
  color: var(--ink-700);
}

/* Related posts */
.blog-related {
  background: var(--ink-50, #f7f9fa);
  padding: 70px 0 80px;
  border-top: 1px solid var(--ink-100);
}
.blog-related-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 12px;
}
.blog-related-head h2 {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0;
}
.btn-link-arrow {
  color: var(--teal-700);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}
.btn-link-arrow:hover { text-decoration: underline; }

/* ============================================================
   BLOG ARTICLE — redesigned read page (ba- prefix)
   ============================================================ */

/* Reading progress bar */
.ba-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--teal-500), var(--teal-400));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* Full-bleed hero */
.ba-hero {
  position: relative;
  z-index: 2;
  height: 56vh;
  min-height: 380px;
  max-height: 540px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  margin-top: calc(-1 * var(--header-h, 72px));
  padding-top: var(--header-h, 72px);
}
.ba-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5,30,40,0.85) 0%, rgba(5,30,40,0.35) 50%, rgba(5,30,40,0.1) 100%);
}
.ba-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 0 48px;
}
.ba-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
}
.ba-breadcrumb a { color: rgba(255,255,255,0.75); text-decoration: none; transition: color 0.15s; }
.ba-breadcrumb a:hover { color: #fff; }
.ba-breadcrumb svg { opacity: 0.45; color: rgba(255,255,255,0.5); }
.ba-cat {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  text-decoration: none;
  margin-bottom: 14px;
  border: 1px solid rgba(255,255,255,0.2);
  transition: background 0.2s;
}
.ba-cat:hover { background: rgba(255,255,255,0.25); }
.ba-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 780px;
}

/* Content wrapper */
.ba-content-wrap {
  position: relative;
  z-index: 2;
  background: #ffffff !important;
  padding: 0 0 80px;
}
.ba-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Meta bar */
.ba-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px 0;
  border-bottom: 1px solid var(--ink-100);
  margin-bottom: 40px;
}
.ba-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ba-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal-600);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
}
.ba-author-name {
  font-weight: 600;
  color: var(--ink-900);
  font-size: 0.9rem;
  display: block;
}
.ba-author time {
  font-size: 0.78rem;
  color: var(--ink-400);
}
.ba-share {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ba-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink-50);
  color: var(--ink-500);
  border: 1px solid var(--ink-100);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}
.ba-share-btn:hover {
  background: var(--ink-900);
  color: white;
  border-color: var(--ink-900);
  transform: translateY(-1px);
}
.ba-share-copied {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--ink-900);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.ba-share-copied::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--ink-900);
}
.ba-share-copied.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Two-column grid */
.ba-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 56px;
  align-items: start;
}

/* Sidebar */
.ba-sidebar-sticky {
  position: sticky;
  top: calc(var(--header-h, 72px) + 24px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ba-sidebar-card {
  background: var(--ink-50);
  border-radius: var(--radius-md);
  padding: 20px;
}
.ba-sidebar-card h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-500);
  margin: 0 0 14px;
}
.ba-toc {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ba-toc a {
  display: block;
  padding: 6px 0 6px 12px;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--ink-500);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all 0.15s ease;
}
.ba-toc a:hover { color: var(--teal-700); }
.ba-toc a.active {
  color: var(--teal-700);
  border-left-color: var(--teal-500);
  font-weight: 600;
}
.ba-toc a.ba-toc-sub {
  padding-left: 24px;
  font-size: 0.78rem;
}
.ba-sidebar-cta {
  background: linear-gradient(135deg, var(--teal-50), #eef8f7);
  text-align: center;
  border: 1px solid var(--teal-100);
}
.ba-sidebar-cta p {
  font-size: 0.88rem;
  color: var(--ink-700);
  margin: 0 0 14px;
  font-weight: 500;
}
.ba-sidebar-cta .btn { font-size: 0.82rem; width: 100%; }

/* Article prose */
.ba-article { min-width: 0; }
.ba-prose {
  font-size: 1.06rem;
  line-height: 1.82;
  color: var(--ink-700);
  margin-bottom: 48px;
}
.ba-prose > * { max-width: 100%; }
.ba-prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink-900);
  margin: 48px 0 16px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--teal-100);
}
.ba-prose h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--ink-900);
  margin: 36px 0 12px;
  line-height: 1.3;
}
.ba-prose h4 {
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--ink-900);
  margin: 28px 0 10px;
}
.ba-prose p { margin: 0 0 22px; }
.ba-prose ul, .ba-prose ol { margin: 0 0 22px; padding-left: 24px; }
.ba-prose li { margin-bottom: 10px; padding-left: 4px; }
.ba-prose li::marker { color: var(--teal-500); }
.ba-prose a {
  color: var(--teal-700);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s;
}
.ba-prose a:hover { color: var(--teal-800); }
.ba-prose strong { color: var(--ink-900); font-weight: 600; }
.ba-prose blockquote {
  border-left: 4px solid var(--teal-400);
  margin: 32px 0;
  padding: 16px 24px;
  background: var(--teal-50);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--ink-700);
}
.ba-prose blockquote p:last-child { margin-bottom: 0; }
.ba-prose img { border-radius: var(--radius-md); margin: 32px 0; box-shadow: var(--shadow-sm); }
.ba-prose hr { border: none; border-top: 1px solid var(--ink-100); margin: 40px 0; }
.ba-prose table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 0.92rem; }
.ba-prose th, .ba-prose td { padding: 10px 14px; border-bottom: 1px solid var(--ink-100); text-align: left; }
.ba-prose th { font-weight: 600; color: var(--ink-900); background: var(--ink-50); }
.ba-prose code { background: var(--ink-50); padding: 2px 6px; border-radius: 4px; font-size: 0.88em; }
.ba-prose pre {
  background: var(--ink-900);
  color: #e0e8f0;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 28px 0;
  font-size: 0.88rem;
  line-height: 1.6;
}
.ba-prose pre code { background: none; padding: 0; border-radius: 0; font-size: inherit; }

/* Share footer */
.ba-share-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--ink-100);
  border-bottom: 1px solid var(--ink-100);
  margin-bottom: 48px;
}
.ba-share-footer > span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-600);
}

/* Comments */
.ba-comments { padding-top: 8px; }
.ba-comments-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink-900);
  margin: 0 0 24px;
}
.ba-comments-count {
  font-weight: 400;
  color: var(--ink-400);
  font-size: 0.95rem;
}
.ba-comment {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--ink-50);
  position: relative;
}
.ba-comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal-100);
  color: var(--teal-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.72rem;
  flex-shrink: 0;
}
.ba-comment-body { flex: 1; min-width: 0; }
.ba-comment-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}
.ba-comment-head strong { font-size: 0.88rem; color: var(--ink-900); }
.ba-comment-head span { font-size: 0.75rem; color: var(--ink-400); }
.ba-comment-body p { margin: 0; font-size: 0.92rem; color: var(--ink-600); line-height: 1.6; }
.ba-comment-del {
  position: absolute;
  top: 16px;
  right: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-300);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  opacity: 0;
}
.ba-comment:hover .ba-comment-del { opacity: 1; }
.ba-comment-del:hover { background: #fee2e2; color: #dc2626; }

.blog-comments-empty {
  font-size: 0.9rem;
  color: var(--ink-400);
  font-style: italic;
  padding: 8px 0 24px;
  margin: 0;
}

.ba-comment-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}
.ba-comment-form input,
.ba-comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--ink-150, #dde3ea);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--ink-800);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.ba-comment-form input:focus,
.ba-comment-form textarea:focus {
  outline: none;
  border-color: var(--teal-400);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}
.ba-comment-form .btn { align-self: flex-start; }

/* Mobile responsive */
@media (max-width: 960px) {
  .ba-grid { grid-template-columns: 1fr; gap: 0; }
  .ba-sidebar { display: none; }
}
@media (max-width: 768px) {
  .ba-hero { height: 44vh; min-height: 300px; }
  .ba-hero h1 { font-size: 1.5rem; }
  .ba-hero-content { padding: 0 0 32px; }
  .ba-meta { gap: 12px; }
  .ba-share-btn { width: 32px; height: 32px; }
  .ba-prose { font-size: 0.98rem; line-height: 1.72; }
  .ba-prose h2 { font-size: 1.28rem; margin-top: 36px; }
  .ba-prose h3 { font-size: 1.08rem; margin-top: 28px; }
}
@media (max-width: 480px) {
  .ba-hero { height: 38vh; min-height: 260px; }
  .ba-hero h1 { font-size: 1.25rem; }
  .ba-container { padding: 0 16px; }
  .ba-share-footer { flex-direction: column; align-items: flex-start; gap: 10px; }
  .ba-share-btn { width: 30px; height: 30px; }
}

/* Force-visible overrides for blog article elements affected by global fade-up / clip-path */
.ba-prose h2, .ba-prose h3, .ba-prose h4,
.ba-comments-title,
.ba-hero h1,
.ba-content-wrap h2, .ba-content-wrap h3, .ba-content-wrap h4,
.ba-share-footer,
.ba-sidebar-card h4,
.ba-article h2, .ba-article h3, .ba-article h4 {
  opacity: 1 !important;
  transform: none !important;
  clip-path: none !important;
  -webkit-clip-path: none !important;
}

/* ============================================================
   BLOG SHARE BAR
   ============================================================ */
.blog-share {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--ink-100);
}
.blog-share-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-500);
  white-space: nowrap;
}
.blog-share-buttons {
  display: flex;
  gap: 10px;
}
.blog-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink-50);
  color: var(--ink-500);
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
  position: relative;
}
.blog-share-btn:hover {
  transform: translateY(-2px);
}
.blog-share--linkedin:hover {
  background: #0A66C2;
  color: white;
}
.blog-share--x:hover {
  background: var(--ink-900);
  color: white;
}
.blog-share--facebook:hover {
  background: #1877F2;
  color: white;
}
.blog-share--copy:hover {
  background: var(--teal-600);
  color: white;
}
.blog-share-copied {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--ink-900);
  color: white;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.blog-share-copied::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--ink-900);
}
.blog-share-copied.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 480px) {
  .blog-share {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ============================================================
   BLOG COMMENTS
   ============================================================ */
.blog-comments-section {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--ink-100);
}
.blog-comments-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.blog-comments-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  color: var(--ink-900);
}
.blog-comments-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 12px;
  background: var(--teal-100);
  color: var(--teal-700);
  font-size: 0.78rem;
  font-weight: 700;
}
.blog-comments-count:empty { display: none; }

/* Comment form */
.blog-comment-form {
  margin-bottom: 32px;
}
.blog-comment-form-row {
  margin-bottom: 14px;
}
.blog-comment-form-row input,
.blog-comment-form-row textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--ink-200);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--ink-800);
  background: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
}
.blog-comment-form-row input:focus,
.blog-comment-form-row textarea:focus {
  outline: none;
  border-color: var(--teal-400);
  box-shadow: 0 0 0 3px rgba(79, 189, 188, 0.15);
}
.blog-comment-form-row input::placeholder,
.blog-comment-form-row textarea::placeholder {
  color: var(--ink-400);
}
.blog-comment-submit {
  padding: 10px 28px;
  font-size: 0.88rem;
}

/* Empty state */
.blog-comments-empty {
  color: var(--ink-400);
  font-size: 0.92rem;
  font-style: italic;
  text-align: center;
  padding: 24px 0;
}

/* Comment list */
.blog-comments-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.blog-comment {
  display: flex;
  gap: 14px;
  padding: 20px 0;
  border-top: 1px solid var(--ink-100);
}
.blog-comment:first-child { border-top: none; }
.blog-comment-avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal-100);
  color: var(--teal-700);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.03em;
}
.blog-comment-body { flex: 1; min-width: 0; }
.blog-comment-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}
.blog-comment-author {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-800);
}
.blog-comment-time {
  font-size: 0.8rem;
  color: var(--ink-400);
}
.blog-comment-text {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-600);
  margin: 0;
}

@media (max-width: 480px) {
  .blog-comment { gap: 10px; }
  .blog-comment-avatar { width: 34px; height: 34px; font-size: 0.72rem; }
}

/* Mobile blog adjustments */
@media (max-width: 760px) {
  .blog-post-title { font-size: 1.6rem; }
  .blog-post-content { font-size: 0.98rem; line-height: 1.72; }
  .blog-post-content h2 { font-size: 1.3rem; margin-top: 32px; }
  .blog-post-content h3 { font-size: 1.08rem; margin-top: 24px; }
  .blog-post-image { aspect-ratio: 16/10; border-radius: 12px; }
}

/* ============================================================
   COMMENTS
   ============================================================ */
.blog-comments {
  border-top: 1px solid var(--ink-100);
  padding-top: 36px;
  margin-top: 24px;
}
.comments-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
}
.comments-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}
.comments-count {
  font-size: 0.85rem;
  color: var(--ink-500);
  background: var(--ink-50, #f4f7f8);
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 28px;
}
.comments-loading,
.comments-empty {
  font-size: 0.9rem;
  color: var(--ink-500);
  font-style: italic;
  margin: 0;
}
.comment-item {
  border: 1px solid var(--ink-100);
  border-radius: 10px;
  padding: 16px 18px;
  background: var(--ink-50, #f7f9fa);
}
.comment-meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}
.comment-author {
  font-size: 0.92rem;
  color: var(--ink-900);
  font-weight: 600;
}
.comment-date {
  font-size: 0.78rem;
  color: var(--ink-500);
}
.comment-body {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--ink-700);
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Form — collapsed by default, expand on click */
.comments-form-wrap {
  border: 1px solid var(--ink-100);
  border-radius: 10px;
  padding: 0;
  background: white;
}
.comments-form-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-800);
  list-style: none;
  user-select: none;
}
.comments-form-toggle::-webkit-details-marker { display: none; }
.comments-form-toggle::marker { display: none; }
.comments-form-toggle:hover { color: var(--teal-700); }
.comments-form-wrap[open] .comments-form-toggle {
  border-bottom: 1px solid var(--ink-100);
  color: var(--teal-700);
}

.comments-form {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.comments-form .form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.comments-form label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-700);
}
.comments-form .req { color: #c0392b; }
.comments-form .hint { color: var(--ink-500); font-weight: 400; }
.comments-form input,
.comments-form textarea {
  font-family: inherit;
  font-size: 0.92rem;
  padding: 9px 12px;
  border: 1px solid var(--ink-200);
  border-radius: 7px;
  background: white;
  color: var(--ink-900);
  resize: vertical;
}
.comments-form input:focus,
.comments-form textarea:focus {
  outline: none;
  border-color: var(--teal-700);
  box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.1);
}
.comments-form textarea { min-height: 100px; }
.form-captcha {
  margin: 4px 0 4px;
  display: flex;
  justify-content: flex-start;
}
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.comments-policy {
  font-size: 0.74rem;
  color: var(--ink-500);
  margin: 0;
  flex: 1;
  min-width: 220px;
  line-height: 1.5;
}
.comments-policy a {
  color: var(--teal-700);
  text-decoration: underline;
}
.comments-status {
  margin: 6px 0 0;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.86rem;
}
.comments-status.success {
  background: rgba(0, 128, 128, 0.08);
  color: var(--teal-700);
  border: 1px solid rgba(0, 128, 128, 0.2);
}
.comments-status.error {
  background: rgba(192, 57, 43, 0.08);
  color: #c0392b;
  border: 1px solid rgba(192, 57, 43, 0.2);
}

@media (max-width: 600px) {
  .comments-form { padding: 16px 16px 18px; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .form-actions .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   SPECIALTIES PAGE
   ============================================================ */
/* ─── Specialty Cards — Rich Visual ─── */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 980px)  { .spec-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .spec-grid { grid-template-columns: 1fr; } }

.spec-card {
  position: relative;
  background: var(--sc-bg);
  border: 1px solid var(--sc-border);
  border-radius: 20px;
  padding: 30px 28px 26px;
  overflow: hidden;
  cursor: default;
  transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s ease, border-color .35s ease;
  /* stagger entrance */
  opacity: 0;
  transform: translateY(36px) scale(.97);
  animation: specIn .65s cubic-bezier(.22,1,.36,1) forwards;
}
.spec-card:nth-child(1)  { animation-delay: .04s; }
.spec-card:nth-child(2)  { animation-delay: .1s; }
.spec-card:nth-child(3)  { animation-delay: .16s; }
.spec-card:nth-child(4)  { animation-delay: .22s; }
.spec-card:nth-child(5)  { animation-delay: .28s; }
.spec-card:nth-child(6)  { animation-delay: .34s; }
.spec-card:nth-child(7)  { animation-delay: .4s; }
.spec-card:nth-child(8)  { animation-delay: .46s; }
.spec-card:nth-child(9)  { animation-delay: .52s; }
.spec-card:nth-child(10) { animation-delay: .58s; }
.spec-card:nth-child(11) { animation-delay: .64s; }

@keyframes specIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.spec-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 20px 48px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.04);
  border-color: var(--sc-c);
}

/* Decorative background orb */
.spec-card__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.spec-card__bg::before {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--sc-orb);
  top: -60px;
  right: -50px;
  filter: blur(40px);
  transition: transform .5s ease;
}
.spec-card__bg::after {
  content: '';
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--sc-orb);
  bottom: -40px;
  left: -30px;
  filter: blur(35px);
  opacity: .5;
}
.spec-card:hover .spec-card__bg::before {
  transform: translate(-10px, 10px) scale(1.2);
}

/* Top row: icon + big number */
.spec-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
}
.spec-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--sc-bg);
  border: 1px solid var(--sc-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sc-c);
  transition: transform .35s ease, background .35s ease, box-shadow .35s ease;
}
.spec-card:hover .spec-card__icon {
  transform: scale(1.1) rotate(-3deg);
  box-shadow: 0 4px 14px var(--sc-orb);
}

.spec-card__num {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  color: var(--sc-border);
  transition: color .35s ease;
}
.spec-card:hover .spec-card__num { color: var(--sc-c); opacity: .3; }

/* Title */
.spec-card__title {
  position: relative;
  z-index: 1;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink-900, #1a1a2e);
  margin: 0 0 14px;
}

/* Specialty pills */
.spec-card__pills {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.spec-card__pills span {
  display: inline-block;
  padding: 5px 12px;
  font-size: .78rem;
  font-weight: 600;
  background: white;
  border: 1px solid var(--sc-border);
  border-radius: 100px;
  color: var(--ink-700, #3a3a50);
  transition: background .25s ease, transform .25s ease, border-color .25s ease, color .25s ease;
}
.spec-card:hover .spec-card__pills span {
  border-color: var(--sc-c);
  color: var(--sc-c);
}

@media (prefers-reduced-motion: reduce) {
  .spec-card { opacity: 1; transform: none; animation: none; }
  .spec-card:hover { transform: none; }
}

/* =========================================================================
   SOLUTIONS SHOWCASE — Tabbed platform showcase (replaces card grid)
   ========================================================================= */

/* Scroll-pinned wrapper — creates scroll room for tab auto-switching */
.sol-scroll-wrap {
  position: relative;
  height: 300vh;            /* 3 screens of scroll space (one per tab) */
}
.sol-scroll-wrap .solutions-showcase {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Scroll progress indicator dots */
.sol-scroll-dots {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 90;
  opacity: 0;
  transition: opacity .4s var(--easing);
}
.sol-scroll-dots.visible { opacity: 1; }
.sol-scroll-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink-300);
  transition: background .3s, transform .3s var(--easing);
  cursor: pointer;
}
.sol-scroll-dot.active {
  background: var(--teal-500);
  transform: scale(1.35);
}

@media (max-width: 1024px) {
  .sol-scroll-wrap {
    height: auto;          /* disable pinning on phones/tablets/small laptops */
  }
  .sol-scroll-wrap .solutions-showcase {
    position: relative;
    height: auto;
    /* Restore comfortable padding now that the section isn't viewport-tall */
    padding-top: clamp(60px, 6vw, 90px) !important;
    padding-bottom: clamp(50px, 6vw, 80px);
  }
  .sol-scroll-dots { display: none; }
}

/* Big bold hero-style heading */
.sol-hero {
  text-align: center;
  margin: 0 auto 32px;
}
.sol-hero .kicker {
  margin-bottom: 8px;
}

.sol-hero-heading {
  font-size: clamp(2.8rem, 6.5vw, 4.8rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.035em;
  line-height: 1.06 !important;
  color: var(--ink-900) !important;
  margin-top: 0;
  margin-bottom: 12px;
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  clip-path: none !important;
  -webkit-text-fill-color: inherit !important;
}
.sol-hero-heading em {
  font-style: normal;
  position: relative;
  color: var(--teal-700);
  display: inline-block;
}
/* Animated underline on the em word */
.sol-hero-heading em::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: clamp(4px, 0.6vw, 7px);
  background: linear-gradient(90deg, var(--teal-400), var(--teal-600));
  border-radius: 4px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .8s cubic-bezier(.22,1,.36,1);
}
.sol-hero.in .sol-hero-heading em::after {
  transform: scaleX(1);
}

.sol-hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-500);
  max-width: 640px;
  margin: 0 auto;
}

/* Platform selectors */
.sol-selectors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 36px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.sol-sel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  transition: all .4s var(--easing);
  position: relative;
  border: 1.5px solid var(--ink-100);
  background: white;
  text-align: left;
  overflow: hidden;
}

/* Cursor-tracking glow on hover */
.sol-sel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(180px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(20,160,159,0.10), transparent 70%);
  opacity: 0;
  transition: opacity .3s ease-out;
  pointer-events: none;
}
.sol-sel:hover::before { opacity: 1; }

/* Hover lift */
.sol-sel:hover {
  transform: translateY(-3px);
  border-color: var(--teal-200);
  box-shadow: 0 8px 24px rgba(0,107,107,0.08), 0 2px 6px rgba(20,50,70,0.04);
}

/* Active state */
.sol-sel.active {
  border-color: var(--teal-400);
  box-shadow: 0 0 0 3px rgba(20,160,159,0.12), 0 8px 28px rgba(0,107,107,0.12);
  transform: translateY(-2px);
}

/* Bottom indicator bar — animates in on active */
.sol-sel-indicator {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, var(--teal-400), var(--teal-600));
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
.sol-sel.active .sol-sel-indicator {
  transform: translateX(-50%) scaleX(1);
}

/* Icon circle */
.sol-sel-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .4s var(--easing), background .35s, box-shadow .35s;
}
.sol-sel-icon svg {
  width: 22px;
  height: 22px;
}

/* Per-platform icon colors */
.sol-sel-icon--samaat  { background: var(--teal-50);  color: var(--teal-700); }
.sol-sel-icon--dawam   { background: #FFF0E6;        color: #C2570A; }
.sol-sel-icon--autone  { background: #EEEDFE;        color: #534AB7; }

/* Active icon lift + glow */
.sol-sel.active .sol-sel-icon {
  transform: translateY(-2px) rotate(-4deg) scale(1.05);
}
.sol-sel.active .sol-sel-icon--samaat {
  background: var(--teal-600);
  color: white;
  box-shadow: 0 6px 18px rgba(0,128,128,0.30);
}
.sol-sel.active .sol-sel-icon--dawam {
  background: #D85A30;
  color: white;
  box-shadow: 0 6px 18px rgba(216,90,48,0.30);
}
.sol-sel.active .sol-sel-icon--autone {
  background: #534AB7;
  color: white;
  box-shadow: 0 6px 18px rgba(83,74,183,0.30);
}

/* Text block */
.sol-sel-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.sol-sel-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-800);
  line-height: 1.2;
  transition: color .3s;
}
.sol-sel.active .sol-sel-name {
  color: var(--teal-800);
}
.sol-sel-desc {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-400);
  line-height: 1.3;
  transition: color .3s;
}
.sol-sel.active .sol-sel-desc {
  color: var(--teal-600);
}

@media (max-width: 720px) {
  .sol-selectors {
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: 400px;
  }
  .sol-sel { padding: 14px 16px; }
}
@media (min-width: 721px) and (max-width: 900px) {
  .sol-sel-desc { display: none; }
  .sol-sel { padding: 14px 16px; gap: 10px; }
  .sol-sel-icon { width: 38px; height: 38px; }
}

/* Stage (contains all panels) */
.sol-stage {
  position: relative;
  min-height: 380px;
}

/* Panel — 2-column layout */
.sol-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.sol-panel.active {
  display: grid;
}

/* Panel entrance: animate children from left & right */
.sol-panel.active .sol-anim-left {
  animation: sol-slide-left .75s cubic-bezier(.22,1,.36,1) both;
}
.sol-panel.active .sol-anim-right {
  animation: sol-slide-right .75s cubic-bezier(.22,1,.36,1) .08s both;
}
.sol-panel.active .sol-anim-up {
  animation: sol-slide-up .7s cubic-bezier(.22,1,.36,1) .15s both;
}

@keyframes sol-slide-left {
  from { opacity: 0; transform: translateX(-60px) scale(0.97); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes sol-slide-right {
  from { opacity: 0; transform: translateX(60px) scale(0.97); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes sol-slide-up {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Panel badge (icon + label above title) */
.sol-panel-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
  border: 1px solid;
}
.sol-badge-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sol-badge-icon svg { width: 14px; height: 14px; }

.sol-badge--samaat { background: var(--teal-50); color: var(--teal-700); border-color: var(--teal-200); }
.sol-badge--samaat .sol-badge-icon { background: var(--teal-100); color: var(--teal-700); }
.sol-badge--dawam  { background: #FFF6EE; color: #A0470A; border-color: #F5D4B3; }
.sol-badge--dawam  .sol-badge-icon { background: #FFE8D4; color: #A0470A; }
.sol-badge--autone { background: #F0EFFE; color: #534AB7; border-color: #D5D0F6; }
.sol-badge--autone .sol-badge-icon { background: #E0DDFB; color: #534AB7; }

/* Panel text */
.sol-panel-text h3 {
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  margin-bottom: 10px;
  color: var(--ink-900);
}
.sol-panel-lead {
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--ink-600);
  margin-bottom: 16px;
}

/* Tags row between features and CTA */
.sol-panel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

/* Trust strip — HIPAA / Live / EHR badges inside each panel */
.sol-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  list-style: none;
  padding: 0;
}
.sol-trust-strip li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-600);
  background: var(--teal-50);
  border: 1px solid var(--teal-200);
  border-radius: 20px;
  padding: 5px 14px 5px 10px;
  white-space: nowrap;
  transition: background .25s var(--easing), border-color .25s var(--easing);
}
.sol-trust-strip li:hover {
  background: var(--teal-100);
  border-color: var(--teal-300);
}
.sol-trust-strip svg {
  flex-shrink: 0;
  color: var(--teal-600);
}

/* CTA button — enhanced per-platform */
.sol-btn {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: white;
  border-radius: 12px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s var(--easing), box-shadow .35s var(--easing);
}
.sol-btn:hover {
  transform: translateY(-3px) scale(1.02);
}

/* Text label */
.sol-btn-label {
  padding: 14px 20px 14px 24px;
  position: relative;
  z-index: 1;
}

/* Arrow circle on the right */
.sol-btn-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin: 0;
  border-left: 1px solid rgba(255,255,255,0.20);
  position: relative;
  z-index: 1;
  transition: border-color .3s;
}
.sol-btn-arrow svg {
  transition: transform .3s var(--easing);
}
.sol-btn:hover .sol-btn-arrow svg {
  transform: translateX(4px);
}
.sol-btn:hover .sol-btn-arrow {
  border-color: rgba(255,255,255,0.35);
}

/* Shimmer sweep on hover */
.sol-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-20deg);
  transition: left .7s var(--easing);
  z-index: 0;
  pointer-events: none;
}
.sol-btn:hover::before {
  left: 140%;
}

/* Per-platform colors */
.sol-btn--samaat {
  background: linear-gradient(135deg, var(--teal-700) 0%, var(--teal-600) 100%);
  box-shadow: 0 6px 20px rgba(0,107,107,0.30), 0 2px 6px rgba(0,107,107,0.15);
}
.sol-btn--samaat:hover {
  box-shadow: 0 12px 32px rgba(0,107,107,0.40), 0 4px 10px rgba(0,107,107,0.20);
}

.sol-btn--dawam {
  background: linear-gradient(135deg, #B84D1A 0%, #D85A30 100%);
  box-shadow: 0 6px 20px rgba(184,77,26,0.30), 0 2px 6px rgba(184,77,26,0.15);
}
.sol-btn--dawam:hover {
  box-shadow: 0 12px 32px rgba(184,77,26,0.40), 0 4px 10px rgba(184,77,26,0.20);
}

.sol-btn--autone {
  background: linear-gradient(135deg, #4239A0 0%, #534AB7 100%);
  box-shadow: 0 6px 20px rgba(83,74,183,0.30), 0 2px 6px rgba(83,74,183,0.15);
}
.sol-btn--autone:hover {
  box-shadow: 0 12px 32px rgba(83,74,183,0.40), 0 4px 10px rgba(83,74,183,0.20);
}

@media (prefers-reduced-motion: reduce) {
  .sol-btn::before { display: none; }
  .sol-btn:hover { transform: none; }
}

/* Feature checklist */
.sol-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.sol-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-600);
}
.sol-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--teal-50);
  color: var(--teal-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* (sol-cta replaced by .btn-primary.sol-btn — see above) */

/* ---- Panel visual (right side) ---- */
.sol-panel-visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(150deg, var(--teal-50) 0%, rgba(226,244,244,0.4) 100%);
  border: 1px solid var(--teal-100);
  padding: clamp(24px, 4vw, 40px);
  min-height: 300px;
  display: flex;
  align-items: center;
}
.sol-visual-inner {
  width: 100%;
}

/* -- Samaat visual: app mockup -- */
.samaat-app {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-100);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,107,107,0.08), 0 2px 8px rgba(20,50,70,0.04);
}

/* Top bar with traffic lights */
.samaat-topbar {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--ink-100);
  background: var(--ink-50);
}
.samaat-topbar-left {
  display: flex;
  gap: 6px;
  margin-right: 12px;
}
.samaat-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.samaat-dot--red    { background: #FF5F57; }
.samaat-dot--yellow { background: #FEBC2E; }
.samaat-dot--green  { background: #28C840; }

.samaat-topbar-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-700);
  flex: 1;
}
.samaat-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #28C840;
  background: rgba(40,200,64,0.08);
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.samaat-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #28C840;
  animation: samaat-pulse 1.8s ease-in-out infinite;
}
@keyframes samaat-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.7); }
}

/* Patient strip */
.samaat-patient {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--ink-100);
}
.samaat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--teal-100);
  color: var(--teal-700);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.samaat-patient-info {
  flex: 1;
  min-width: 0;
}
.samaat-patient-info strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-800);
  line-height: 1.2;
}
.samaat-patient-info span {
  font-size: 0.72rem;
  color: var(--ink-400);
}
.samaat-timer {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal-600);
  background: var(--teal-50);
  padding: 4px 10px;
  border-radius: 8px;
  flex-shrink: 0;
}

/* Waveform */
.samaat-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 16px 14px;
  height: 52px;
  background: linear-gradient(180deg, rgba(226,244,244,0.25) 0%, transparent 100%);
}
.samaat-wave-bar {
  width: 3px;
  border-radius: 2px;
  background: var(--teal-400);
  height: var(--h, 50%);
  animation: samaat-wave-anim 1.2s ease-in-out infinite alternate;
}
.samaat-wave-bar:nth-child(even) { animation-delay: -0.4s; background: var(--teal-300); }
.samaat-wave-bar:nth-child(3n)   { animation-delay: -0.8s; }
.samaat-wave-bar:nth-child(5n)   { animation-delay: -0.2s; background: var(--teal-500); }

@keyframes samaat-wave-anim {
  0%   { transform: scaleY(0.5); }
  100% { transform: scaleY(1.3); }
}

/* AI-generated note */
.samaat-note {
  margin: 0 14px 12px;
  border: 1px solid var(--teal-100);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.samaat-note-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--teal-50);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--teal-700);
  border-bottom: 1px solid var(--teal-100);
}
.samaat-note-status {
  margin-left: auto;
  color: var(--teal-500);
  font-weight: 500;
  animation: samaat-pulse 2s ease-in-out infinite;
}
.samaat-note-body {
  padding: 10px 12px;
}
.samaat-note-body p {
  font-size: 0.72rem;
  line-height: 1.55;
  color: var(--ink-600);
  margin-bottom: 4px;
}
.samaat-note-body p:last-child { margin-bottom: 0; }
.samaat-note-body strong {
  color: var(--ink-800);
  font-weight: 700;
}

/* Bottom stats */
.samaat-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink-100);
}
.samaat-stat {
  text-align: center;
  padding: 10px 8px;
  border-right: 1px solid var(--ink-100);
}
.samaat-stat:last-child { border-right: 0; }
.samaat-stat-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--teal-700);
  line-height: 1.2;
}
.samaat-stat-lbl {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--ink-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .samaat-wave-bar { animation: none !important; }
  .samaat-live-dot { animation: none !important; }
  .samaat-note-status { animation: none !important; }
}

/* -- DAWAM hero card -- */
.dawam-hero-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-100);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,107,107,0.08), 0 2px 8px rgba(20,50,70,0.04);
}
.dawam-hero-topbar {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--ink-100);
  background: var(--ink-50);
}
.dawam-hero-topbar-left {
  display: flex;
  gap: 6px;
  margin-right: 12px;
}
.dawam-hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dawam-hero-dot--red    { background: #FF5F57; }
.dawam-hero-dot--yellow { background: #FEBC2E; }
.dawam-hero-dot--green  { background: #28C840; }
.dawam-hero-topbar-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-700);
  flex: 1;
}
.dawam-hero-badge-active {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--teal-600);
  background: var(--teal-50);
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.dawam-hero-active-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-500);
  animation: samaat-pulse 1.8s ease-in-out infinite;
}
.dawam-hero-patient {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--ink-100);
}
.dawam-hero-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal-100);
  color: var(--teal-700);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dawam-hero-patient-info {
  flex: 1;
  min-width: 0;
}
.dawam-hero-patient-info strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-800);
  line-height: 1.2;
}
.dawam-hero-patient-info span {
  font-size: 0.72rem;
  color: var(--ink-400);
}
.dawam-hero-programs {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--ink-100);
}
.dawam-hero-pill {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}
.dawam-hero-pill--ccm { background: var(--teal-50); color: var(--teal-700); border: 1px solid var(--teal-200); }
.dawam-hero-pill--rpm { background: rgba(108,92,231,0.08); color: #6C5CE7; border: 1px solid rgba(108,92,231,0.2); }
.dawam-hero-pill--bhi { background: rgba(217,119,6,0.06); color: #D97706; border: 1px solid rgba(217,119,6,0.18); }
.dawam-hero-pill--pcm { background: rgba(220,38,38,0.05); color: #DC2626; border: 1px solid rgba(220,38,38,0.15); }

.dawam-hero-careplan {
  margin: 12px 14px;
  border: 1px solid var(--teal-100);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.dawam-hero-careplan-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--teal-50);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--teal-700);
  border-bottom: 1px solid var(--teal-100);
}
.dawam-hero-careplan-status {
  margin-left: auto;
  color: #16A34A;
  font-weight: 600;
  font-size: 0.68rem;
}
.dawam-hero-careplan-body {
  padding: 6px 0;
}
.dawam-hero-task {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 0.72rem;
  color: var(--ink-600);
}
.dawam-hero-check {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dawam-hero-check.done {
  background: var(--teal-500);
}
.dawam-hero-check.pending {
  border: 1.5px solid var(--ink-200);
  background: white;
}
.dawam-hero-task span:nth-child(2) { flex: 1; }
.dawam-hero-task-time {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink-400);
  flex-shrink: 0;
}

.dawam-hero-time {
  padding: 10px 14px 8px;
}
.dawam-hero-time-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: var(--ink-500);
  margin-bottom: 6px;
}
.dawam-hero-time-label strong {
  color: var(--ink-800);
  font-weight: 700;
}
.dawam-hero-time-bar {
  height: 6px;
  background: var(--ink-100);
  border-radius: 3px;
  overflow: hidden;
}
.dawam-hero-time-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal-400), var(--teal-600));
  border-radius: 3px;
  transition: width 1s ease;
}

.dawam-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink-100);
  margin-top: 4px;
}
.dawam-hero-stat {
  text-align: center;
  padding: 10px 8px;
  border-right: 1px solid var(--ink-100);
}
.dawam-hero-stat:last-child { border-right: 0; }
.dawam-hero-stat-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--teal-700);
  line-height: 1.2;
}
.dawam-hero-stat-lbl {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--ink-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

/* -- DAWAM visual: timeline -- */
.sol-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sol-tl-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.sol-tl-dot-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 20px;
}
.sol-tl-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2.5px solid var(--teal-300);
  background: white;
  flex-shrink: 0;
  transition: transform .3s var(--easing), background .3s;
}
.sol-tl-dot.filled {
  background: var(--teal-500);
  border-color: var(--teal-500);
}
.sol-tl-item:hover .sol-tl-dot {
  transform: scale(1.25);
}
.sol-tl-line {
  width: 2px;
  height: 28px;
  background: linear-gradient(180deg, var(--teal-300), var(--teal-100));
  flex-shrink: 0;
}
.sol-tl-content {
  padding-bottom: 20px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.sol-tl-content strong {
  color: var(--ink-800);
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}
.sol-tl-content span {
  color: var(--ink-500);
  font-size: 0.85rem;
}

/* -- Autone visual: flow pipeline -- */
.sol-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
}
.sol-flow-step {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--teal-100);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  transition: transform .3s var(--easing), border-color .3s, box-shadow .3s;
}
.sol-flow-step:hover {
  transform: translateX(6px);
  border-color: var(--teal-300);
  box-shadow: 0 6px 18px rgba(0,107,107,0.08);
}
.sol-flow-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sol-flow-step div strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-800);
  margin-bottom: 2px;
}
.sol-flow-step div span {
  font-size: 0.82rem;
  color: var(--ink-500);
}
.sol-flow-arrow {
  display: flex;
  justify-content: center;
  padding: 4px 0;
}

/* Trust bubbles — static pills on section sides */
/* Fixed trust bubbles container */
.trust-bubbles-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

.trust-bubble {
  position: fixed;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 4px 20px rgba(0,60,60,.08), 0 1px 3px rgba(0,0,0,.03);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-700);
  letter-spacing: 0.02em;
  white-space: nowrap;
  z-index: 5;
  pointer-events: none;
}

/* Position variants — fixed to viewport */
.trust-bubble--hipaa {
  top: 28%;
  left: 2%;
  color: var(--teal-700);
  border-color: rgba(0,128,128,.12);
}
.trust-bubble--hipaa svg { color: var(--teal-500); }

.trust-bubble--ehr {
  top: 50%;
  right: 2%;
  color: #5B4CC4;
  border-color: rgba(108,92,231,.12);
}
.trust-bubble--ehr svg { color: #6C5CE7; }

.trust-bubble--live {
  bottom: 22%;
  left: 3%;
  color: #16874F;
  border-color: rgba(31,174,111,.12);
}
.trust-bubble--live svg { color: #1FAE6F; }

/* Mobile stacking */
@media (max-width: 860px) {
  .sol-panel.active {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .sol-panel-visual {
    order: -1;
    min-height: 240px;
  }
  .sol-bubble, .trust-bubble, .trust-bubbles-fixed { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .sol-panel.active .sol-anim-left,
  .sol-panel.active .sol-anim-right,
  .sol-panel.active .sol-anim-up {
    animation: none !important;
    opacity: 1; transform: none; filter: none;
  }
  .sol-bar { transition: none !important; }
}

/* =========================================================================
   MANAGED SERVICES — SPLIT CARD ROWS
   ========================================================================= */

.svc-section { background: white; overflow: hidden; position: relative; }

/* ---- Card rows ---- */
.svc-top, .svc-bottom {
  display: grid;
  gap: 20px;
}
.svc-top  { grid-template-columns: 1.2fr 1fr 1fr; }
.svc-bottom { grid-template-columns: 1fr 1fr 1fr; }
.svc-top, .svc-bottom { max-width: 1060px; margin-left: auto; margin-right: auto; }

/* ---- Base card ---- */
.svc-card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: var(--radius-xl);
  padding: 24px 22px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--ink-100);
  box-shadow: 0 2px 8px rgba(20,50,70,.04);
  transition:
    transform .45s var(--easing),
    box-shadow .45s var(--easing),
    border-color .45s var(--easing);
  z-index: 1;
}
.svc-card > * { position: relative; z-index: 2; }
.svc-card:hover {
  transform: translateY(-8px);
  border-color: var(--teal-200);
  box-shadow:
    0 24px 56px rgba(0,107,107,.1),
    0 6px 16px rgba(20,50,70,.05);
}

/* Decorative background element — radial glow + dot pattern */
.svc-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0 !important;
  pointer-events: none;
  opacity: 0;
  transition: opacity .5s var(--easing);
}
.svc-card-bg::before {
  content: '';
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  top: -80px; right: -60px;
  background: radial-gradient(circle, var(--teal-100) 0%, transparent 70%);
}
.svc-card-bg::after {
  content: '';
  position: absolute;
  bottom: 12px; left: 12px;
  width: 80px; height: 80px;
  background-image: radial-gradient(var(--teal-200) 1px, transparent 1px);
  background-size: 8px 8px;
  border-radius: var(--radius-sm);
  opacity: .5;
}
.svc-card:hover .svc-card-bg { opacity: 1; }

/* Top accent bar */
.svc-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--teal-500);
  z-index: 3;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--easing);
}
.svc-card:hover::after { transform: scaleX(1); }

/* ---- Icon ---- */
.svc-card-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--teal-50);
  color: var(--teal-700);
  margin-bottom: 16px;
  flex-shrink: 0;
  transition: background .35s var(--easing), color .35s var(--easing), transform .35s var(--easing), box-shadow .35s var(--easing);
}
.svc-card:hover .svc-card-ic {
  background: var(--teal-700);
  color: white;
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(0,107,107,.18);
}
.svc-card-ic svg { flex-shrink: 0; }

/* Icon color variants */
.svc-card-ic--purple { background: #EDE5FF; color: #7C5CFC; }
.svc-card--purple:hover .svc-card-ic--purple { background: #7C5CFC; color: white; box-shadow: 0 8px 24px rgba(124,92,252,.2); }
.svc-card-ic--green { background: #D9F7E7; color: #12B76A; }
.svc-card--green:hover .svc-card-ic--green { background: #12B76A; color: white; box-shadow: 0 8px 24px rgba(18,183,106,.2); }
.svc-card-ic--coral { background: #FFE4DE; color: #F04438; }
.svc-card--coral:hover .svc-card-ic--coral { background: #F04438; color: white; box-shadow: 0 8px 24px rgba(240,68,56,.18); }
.svc-card-ic--amber { background: #FFEFC7; color: #DC8E00; }
.svc-card--amber:hover .svc-card-ic--amber { background: #DC8E00; color: white; box-shadow: 0 8px 24px rgba(220,142,0,.18); }

/* Per-color accent bar + bg glow */
.svc-card--purple:hover::after { background: #7C5CFC; }
.svc-card--purple .svc-card-bg::before { background: radial-gradient(circle, #EDE5FF 0%, transparent 70%); }
.svc-card--purple .svc-card-bg::after { background-image: radial-gradient(#D4C4FF 1px, transparent 1px); }

.svc-card--green:hover::after { background: #12B76A; }
.svc-card--green .svc-card-bg::before { background: radial-gradient(circle, #D9F7E7 0%, transparent 70%); }
.svc-card--green .svc-card-bg::after { background-image: radial-gradient(#A8EDCB 1px, transparent 1px); }

.svc-card--coral:hover::after { background: #F04438; }
.svc-card--coral .svc-card-bg::before { background: radial-gradient(circle, #FFE4DE 0%, transparent 70%); }
.svc-card--coral .svc-card-bg::after { background-image: radial-gradient(#FFC4BB 1px, transparent 1px); }

.svc-card--amber:hover::after { background: #DC8E00; }
.svc-card--amber .svc-card-bg::before { background: radial-gradient(circle, #FFF3D6 0%, transparent 70%); }
.svc-card--amber .svc-card-bg::after { background-image: radial-gradient(#FFD97A 1px, transparent 1px); }

/* ---- Tag ---- */
.svc-card-tag {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-700);
  background: var(--teal-100);
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* ---- Text ---- */
.svc-card-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 6px;
  line-height: 1.25;
  transition: color .3s var(--easing);
}
.svc-card:hover .svc-card-name { color: var(--teal-800); }

.svc-card-desc {
  font-size: .82rem;
  line-height: 1.55;
  color: var(--ink-500);
  flex-grow: 1;
}

/* ---- Metrics (primary card) ---- */
.svc-card-metrics {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--ink-100);
}
.svc-m {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  background: var(--teal-50);
  border-radius: var(--radius-md);
  transition: background .3s var(--easing);
}
.svc-card--primary:hover .svc-m { background: var(--teal-100); }
.svc-m-val {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--teal-700);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.svc-m-lbl {
  display: block;
  font-size: .66rem;
  font-weight: 600;
  color: var(--ink-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 3px;
}

/* ---- Arrow link ---- */
.svc-card-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--teal-700);
  transition: gap .3s var(--easing), color .3s var(--easing);
}
.svc-card-go svg { transition: transform .3s var(--easing); }
.svc-card:hover .svc-card-go { gap: 12px; }
.svc-card:hover .svc-card-go svg { transform: translateX(4px); }
/* Per-color link */
.svc-card--purple .svc-card-go { color: #7C5CFC; }
.svc-card--green  .svc-card-go { color: #12B76A; }
.svc-card--coral  .svc-card-go { color: #F04438; }
.svc-card--amber  .svc-card-go { color: #DC8E00; }

/* ---- Primary card ---- */
.svc-card--primary {
  border-color: var(--teal-100);
}
.svc-card--primary::after {
  background: linear-gradient(90deg, var(--teal-600), var(--teal-400));
  transform: scaleX(1);
  height: 4px;
}
.svc-card--primary:hover {
  border-color: var(--teal-300);
  box-shadow: 0 28px 60px rgba(0,107,107,.14), 0 6px 16px rgba(20,50,70,.05);
}
.svc-card--primary .svc-card-name { font-size: 1.15rem; }

/* ---- CTA card ---- */
.svc-card--cta {
  background: linear-gradient(145deg, var(--teal-50) 0%, var(--teal-100) 100%);
  border-color: var(--teal-200);
  justify-content: space-between;
  overflow: hidden;
}
.svc-card--cta .svc-card-bg { display: none; }
.svc-card--cta::after { display: none; }
.svc-card--cta:hover {
  border-color: var(--teal-300);
  box-shadow: 0 24px 56px rgba(0,107,107,.12);
}

/* Dot grid background */
.svc-cta-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--teal-200) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: .3;
  pointer-events: none;
  z-index: 0;
  transition: opacity .4s var(--easing);
}
.svc-card--cta:hover .svc-cta-grid { opacity: .5; }

/* Corner glow */
.svc-cta-glow {
  position: absolute;
  bottom: -50px; right: -50px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,128,128,.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transition: transform .5s var(--easing), opacity .5s var(--easing);
  opacity: .5;
}
.svc-card--cta:hover .svc-cta-glow {
  opacity: 1;
  transform: scale(1.4);
}

/* Body */
.svc-cta-body {
  position: relative;
  z-index: 1;
  flex-grow: 1;
}
.svc-card--cta .svc-card-name {
  color: var(--teal-900);
  font-size: 1.12rem;
}
.svc-card--cta:hover .svc-card-name { color: var(--teal-800); }
.svc-card--cta .svc-card-desc { color: var(--ink-500); font-size: .8rem; }

/* Arrow circle */
.svc-card-cta-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--teal-100);
  border: 1px solid var(--teal-200);
  color: var(--teal-700);
  margin-bottom: 14px;
  transition: background .35s var(--easing), transform .35s var(--easing), border-color .35s var(--easing), box-shadow .35s var(--easing);
}
.svc-card--cta:hover .svc-card-cta-arrow {
  background: var(--teal-700);
  border-color: var(--teal-700);
  color: white;
  transform: translate(3px, -3px);
  box-shadow: 0 4px 16px rgba(0,107,107,.2);
}

/* Bottom button */
.svc-cta-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--teal-700);
  border: 1px solid var(--teal-700);
  font-size: .78rem;
  font-weight: 700;
  color: white;
  letter-spacing: .01em;
  transition: background .3s var(--easing), gap .3s var(--easing), border-color .3s var(--easing);
}
.svc-card--cta:hover .svc-cta-btn {
  background: var(--teal-800);
  border-color: var(--teal-800);
  gap: 12px;
}
.svc-cta-btn svg { transition: transform .3s var(--easing); }
.svc-card--cta:hover .svc-cta-btn svg { transform: translateX(3px); }

/* ---- Divider ---- */
.svc-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 0;
}
.svc-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--ink-100), var(--teal-200), var(--ink-100));
}
.svc-divider-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal-400);
}
.svc-divider-text {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-400);
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .svc-top { grid-template-columns: 1fr 1fr; }
  .svc-top .svc-card--primary { grid-column: 1 / -1; }
  .svc-bottom { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 640px) {
  .svc-top, .svc-bottom { grid-template-columns: 1fr; }
  .svc-card { padding: 24px 22px; }
  .svc-divider { padding: 28px 0; }
}

/* =========================================================================
   WHY MEDVIZ — BENTO GRID
   ========================================================================= */

.why-section {
  background: var(--ink-50, #f8fafb);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* ---- Animated background ---- */
.why-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.why-section .container { position: relative; z-index: 1; }

/* Dot grid overlay */
.why-bg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--teal-300) .8px, transparent .8px);
  background-size: 28px 28px;
  opacity: .18;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 75%);
}

/* Floating gradient blobs */
.why-bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  will-change: transform;
}

.why-bg-blob--1 {
  width: 450px; height: 450px;
  top: -80px; left: -60px;
  background: rgba(0, 180, 170, .15);
  animation: why-float-1 16s ease-in-out infinite;
}
.why-bg-blob--2 {
  width: 350px; height: 350px;
  bottom: -40px; right: -20px;
  background: rgba(124, 92, 252, .12);
  animation: why-float-2 20s ease-in-out infinite;
}
.why-bg-blob--3 {
  width: 300px; height: 300px;
  top: 35%; left: 50%;
  background: rgba(0, 150, 140, .1);
  animation: why-float-3 14s ease-in-out infinite;
}

@keyframes why-float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(60px, 40px) scale(1.15); }
  66%      { transform: translate(-30px, 70px) scale(.9); }
}
@keyframes why-float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40%      { transform: translate(-50px, -35px) scale(1.2); }
  70%      { transform: translate(30px, -50px) scale(.88); }
}
@keyframes why-float-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-40px, 30px) scale(1.18); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .why-bg-blob { animation: none !important; }
}

/* ---- Bento grid layout ---- */
.why-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

/* Hero card spans left column, rows 1–2 */
.why-card--hero {
  grid-row: 1 / 3;
}

/* Wide card spans both columns, row 3 */
.why-card--wide {
  grid-column: 1 / -1;
}

/* ---- Base card ---- */
.why-card {
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-xl);
  padding: 28px 26px;
  position: relative;
  overflow: hidden;
  transition:
    transform .4s var(--ease-out-expo),
    border-color .3s var(--easing),
    box-shadow .4s var(--ease-out-expo);
}
.why-card:hover {
  transform: translateY(-6px);
  border-color: var(--teal-200);
  box-shadow: 0 20px 48px rgba(0,107,107,.08), 0 4px 12px rgba(20,50,70,.04);
}

/* ---- Icon ---- */
.why-card-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--teal-50);
  color: var(--teal-700);
  margin-bottom: 18px;
  transition: background .3s var(--easing), color .3s var(--easing), transform .3s var(--easing);
}
.why-card-ic svg { width: 24px; height: 24px; }
.why-card:hover .why-card-ic {
  background: var(--teal-700);
  color: white;
  transform: scale(1.08);
}

/* Icon color variants */
.why-card-ic--purple { background: #EDE5FF; color: #7C5CFC; }
.why-card:hover .why-card-ic--purple { background: #7C5CFC; color: white; }
.why-card-ic--green { background: #D9F7E7; color: #12B76A; }
.why-card:hover .why-card-ic--green { background: #12B76A; color: white; }
.why-card-ic--amber { background: #FFEFC7; color: #DC8E00; }
.why-card:hover .why-card-ic--amber { background: #DC8E00; color: white; }

/* ---- Text ---- */
.why-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 8px;
  line-height: 1.3;
}
.why-card-desc {
  font-size: .88rem;
  line-height: 1.6;
  color: var(--ink-500);
}

/* ---- Hero card (large, left) ---- */
.why-card--hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 30px;
  border-color: var(--teal-100);
}
.why-card--hero .why-card-title {
  font-size: 1.35rem;
}
.why-card--hero .why-card-desc {
  font-size: .92rem;
  margin-bottom: 20px;
}

/* Decorative glow */
.why-card-glow {
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,128,128,.08) 0%, transparent 70%);
  pointer-events: none;
  transition: transform .5s var(--easing), opacity .5s var(--easing);
  opacity: .6;
}
.why-card--hero:hover .why-card-glow {
  transform: scale(1.5);
  opacity: 1;
}

/* Tags */
.why-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.why-tag {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal-700);
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  padding: 4px 12px;
  border-radius: 999px;
  transition: background .25s var(--easing), border-color .25s var(--easing);
}
.why-card--hero:hover .why-tag {
  background: var(--teal-100);
  border-color: var(--teal-200);
}

/* ---- Accent card (top-right) ---- */
.why-card--accent {
  background: linear-gradient(145deg, #FAFAFF 0%, #F3F0FF 100%);
  border-color: #E8E0FF;
}
.why-card--accent:hover {
  border-color: #D4C4FF;
  box-shadow: 0 20px 48px rgba(124,92,252,.08), 0 4px 12px rgba(20,50,70,.04);
}

/* ---- Wide card (bottom, full width) ---- */
.why-card--wide {
  padding: 28px 30px;
}
.why-card-wide-inner {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 22px;
}
.why-card--wide .why-card-ic {
  flex-shrink: 0;
  margin-bottom: 0;
}
.why-card--wide .why-card-title {
  margin-bottom: 4px;
}

/* Timeline inside wide card */
.why-card-timeline {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 16px 20px;
  background: var(--ink-50, #f8fafb);
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-100);
}
.why-tl-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  min-width: 100px;
}
.why-tl-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--teal-500);
  border: 2px solid var(--teal-200);
  transition: transform .3s var(--easing), box-shadow .3s var(--easing);
}
.why-card--wide:hover .why-tl-dot {
  transform: scale(1.3);
  box-shadow: 0 0 0 4px rgba(0,128,128,.12);
}
.why-tl-label {
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal-700);
}
.why-tl-text {
  font-size: .76rem;
  color: var(--ink-500);
  font-weight: 500;
}
.why-tl-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--teal-200), var(--teal-300), var(--teal-200));
  border-radius: 1px;
  min-width: 40px;
}

/* ---- Responsive ---- */
@media (max-width: 700px) {
  .why-bento {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .why-card--hero { grid-row: auto; }
  .why-card--wide { grid-column: auto; }
  .why-card--hero { padding: 28px 24px; }
  .why-card--hero .why-card-title { font-size: 1.15rem; }
  .why-card-wide-inner { flex-direction: column; gap: 12px; }
  .why-card-timeline { flex-direction: column; align-items: stretch; gap: 0; }
  .why-tl-step { flex-direction: row; min-width: 0; gap: 10px; padding: 8px 0; }
  .why-tl-line { width: 2px; height: 20px; min-width: 2px; align-self: center; }
}

/* =========================================================================
   TESTIMONIALS — COMMUNITY WALL (light)
   ========================================================================= */

.testi-section {
  background: var(--ink-50, #f8fafb);
  overflow: hidden;
  position: relative;
}

/* ---- Split layout ---- */
.testi-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 48px;
  align-items: start;
}

/* ---- Left intro ---- */
.testi-intro {
  position: sticky;
  top: 120px;
  padding: 20px 0;
}
.testi-title {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink-900);
  letter-spacing: -.02em;
  margin: 0 0 18px;
}
.testi-desc {
  font-size: .98rem;
  line-height: 1.7;
  color: var(--ink-500);
  margin: 0 0 32px;
  max-width: 340px;
}
.testi-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  background: var(--teal-600);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  transition: background .25s var(--easing), transform .25s var(--easing), box-shadow .25s var(--easing);
}
.testi-cta:hover {
  background: var(--teal-700);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,128,128,.18);
}

/* ---- Right: two-column card wall ---- */
.testi-wall {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-height: 620px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent 0%, black 2%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 2%, black 88%, transparent 100%);
}
.testi-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  will-change: transform;
}
.testi-col--offset {
  margin-top: 40px;
}
@keyframes testi-scroll {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .testi-col { animation: none !important; }
}

/* ---- Individual card ---- */
.testi-card {
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  position: relative;
  overflow: hidden;
  transition: border-color .35s var(--easing), transform .35s var(--easing), box-shadow .35s var(--easing);
}
/* Accent top border */
.testi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal-400), var(--teal-600));
  opacity: 0;
  transition: opacity .35s var(--easing);
}
.testi-card:hover {
  border-color: var(--teal-200);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,80,70,.08);
}
.testi-card:hover::before {
  opacity: 1;
}

/* Star rating row */
.testi-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 14px;
}
.testi-stars svg {
  width: 14px; height: 14px;
  fill: #f59e0b;
}

/* Card header */
.testi-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

/* Avatar */
.testi-avatar {
  width: 44px; height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-100), var(--teal-50));
  color: var(--teal-700);
  font-weight: 800;
  font-size: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: .04em;
  border: 2px solid var(--teal-200);
  box-shadow: 0 2px 6px rgba(0,128,128,.08);
  transition: border-color .3s var(--easing), box-shadow .3s var(--easing);
}
.testi-card:hover .testi-avatar {
  border-color: var(--teal-400);
  box-shadow: 0 3px 10px rgba(0,128,128,.14);
}

/* Name + role */
.testi-name {
  font-weight: 700;
  font-size: .9rem;
  color: var(--ink-900);
}
.testi-role {
  font-size: .75rem;
  color: var(--ink-400);
  margin-top: 2px;
}

/* Quote text */
.testi-text {
  font-size: .9rem;
  line-height: 1.7;
  color: var(--ink-600);
  margin: 0 0 14px;
  font-style: italic;
}

/* Date */
.testi-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  color: var(--ink-300);
  padding-top: 12px;
  border-top: 1px solid var(--ink-100);
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .testi-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .testi-intro {
    position: static;
    text-align: center;
  }
  .testi-desc { margin-left: auto; margin-right: auto; }
  .testi-title { font-size: 2rem; }
}
@media (max-width: 640px) {
  .testi-wall {
    grid-template-columns: 1fr;
    max-height: 480px;
  }
  .testi-col--offset { margin-top: 0; }
  .testi-title { font-size: 1.6rem; }
  .testi-card { padding: 20px; }
}

/* =========================================================================
   FIXED BACKGROUND CANVAS — Holographic visual on all pages
   ========================================================================= */

.hv-bg-fixed {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .6s ease;
}
.hv-bg-fixed.visible { opacity: 1; }
.hv-bg-fixed canvas {
  display: block;
  width: 600px;
  height: 600px;
}

/* All page sections sit above the fixed canvas */
main, header, .site-footer,
.trusted-by, .sol-scroll-wrap, .svc-section, .why-section,
.testi-section, .cta-section, .sol-cta, .compact, .blog-section {
  position: relative;
  z-index: 1;
}

/* Semi-transparent section backgrounds so canvas shows through */
/* Homepage sections */
.trusted-by { background: rgba(255,255,255,0.7) !important; }
.sol-scroll-wrap { background: rgba(255,255,255,0.7); }
.svc-section { background: rgba(255,255,255,0.7) !important; }
section.compact { background: rgba(255,255,255,0.7); }
.why-section { background: rgba(247,249,250,0.7) !important; }
.testi-section { background: rgba(247,249,250,0.7) !important; }
/* All other pages */
[data-page]:not([data-page="home"]) main > section:not(.cta-section):not(.cta-strip),
[data-page]:not([data-page="home"]) main > div {
  background-color: rgba(255,255,255,0.7);
}

@media (max-width: 768px) {
  .hv-bg-fixed canvas { width: 380px; height: 380px; }
}
@media (prefers-reduced-motion: reduce) {
  .hv-bg-fixed { display: none; }
}

/* =========================================================================
   ABOUT — Mission Visual (SVG diagram)
   ========================================================================= */
.about-visual {
  border-radius: 24px;
  overflow: hidden;
}
.about-visual__svg {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================================================================
   SOLUTION PAGE CTA — Glassmorphic Card
   ========================================================================= */
.sol-cta {
  padding: 80px 0 100px;
  background: transparent;
  position: relative;
  z-index: 1;
}

.sol-cta__card {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(255,255,255,.92) 0%, rgba(240,250,250,.88) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(79,189,188,.2);
  box-shadow:
    0 1px 0 rgba(255,255,255,.6) inset,
    0 30px 60px -12px rgba(0,63,64,.1),
    0 4px 12px rgba(0,0,0,.04);
  overflow: hidden;
}

.sol-cta__glow {
  position: absolute;
  top: -60%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(ellipse at 30% 20%, rgba(79,189,188,.12) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 80%, rgba(162,155,254,.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.sol-cta__inner {
  position: relative;
  z-index: 1;
  padding: 48px 48px 44px;
  text-align: center;
}

.sol-cta__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 12px;
  background: rgba(79,189,188,.1);
  border: 1px solid rgba(79,189,188,.2);
  border-radius: 100px;
  color: var(--teal-700, #0E7C7B);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.sol-cta__badge svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.sol-cta__heading {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink-900, #0d1117);
  margin: 0 0 16px;
}
.sol-cta__heading em {
  font-style: normal;
  background: linear-gradient(135deg, var(--teal-600, #14A09F), var(--teal-400, #4FBDBC));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sol-cta__desc {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-500, #5a6570);
  max-width: 500px;
  margin: 0 auto 32px;
}

.sol-cta__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.sol-cta__actions .btn-primary {
  padding: 14px 36px;
  font-size: .95rem;
  font-weight: 700;
  border-radius: 12px;
}

.sol-cta__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-600, #4a5568);
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
  transition: color .25s ease;
}
.sol-cta__phone:hover {
  color: var(--teal-600, #14A09F);
}
.sol-cta__phone svg {
  flex-shrink: 0;
  opacity: .6;
}

.sol-cta__trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sol-cta__trust span {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink-400, #7a8490);
  padding: 5px 14px;
  background: rgba(0,63,64,.04);
  border-radius: 100px;
  border: 1px solid rgba(0,63,64,.06);
}

/* Mobile */
@media (max-width: 640px) {
  .sol-cta { padding: 48px 0 64px; }
  .sol-cta__inner { padding: 32px 24px 28px; }
  .sol-cta__actions { flex-direction: column; gap: 12px; }
  .sol-cta__trust { gap: 6px; }
  .sol-cta__trust span { font-size: .68rem; padding: 4px 10px; }
}


/* =========================================================================
   SERVICE HERO — Holographic canvas layout for service pages
   ========================================================================= */

.sv-hero-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 40px;
}
.sv-hero-text { min-width: 0; }
.sv-hero-text h1 { font-size: clamp(1.7rem, 2.6vw, 2.3rem) !important; }
.sv-hero-text .lead { max-width: 100%; font-size: 0.95rem; }

.sv-holo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 500px;
  margin: -10px 0 -10px auto;
  overflow: visible;
}
.sv-hero-visual { opacity: 1 !important; transform: none !important; }
.sv-holo canvas { display: block; width: 100%; height: 100%; }

.sv-hlabel {
  position: absolute;
  display: flex; align-items: center; gap: 8px;
  opacity: 0;
  animation: sv-label-in .6s ease-out forwards;
}
.sv-hlabel--1 { top: 15%; right: 2%; animation-delay: 1s; }
.sv-hlabel--2 { top: 42%; left: 0; animation-delay: 1.4s; }
.sv-hlabel--3 { bottom: 32%; right: 2%; animation-delay: 1.8s; }
.sv-hlabel--4 { bottom: 18%; left: 0; animation-delay: 2.2s; }
@keyframes sv-label-in {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}
.sv-hlabel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #00DCD2;
  box-shadow: 0 0 10px rgba(0,220,210,.7), 0 0 20px rgba(0,220,210,.3);
  animation: sv-dot-blink 2s ease-in-out infinite;
}
@keyframes sv-dot-blink { 0%,100% { opacity: .5; } 50% { opacity: 1; } }
.sv-hlabel-line {
  width: 40px; height: 1px;
  background: linear-gradient(90deg, rgba(0,220,210,.7), rgba(0,220,210,.05));
}
.sv-hlabel--2 .sv-hlabel-line,
.sv-hlabel--4 .sv-hlabel-line {
  background: linear-gradient(90deg, rgba(0,220,210,.05), rgba(0,220,210,.7));
}
.sv-hlabel-text {
  font-size: .75rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(0,200,200,.9);
  text-shadow: 0 0 14px rgba(0,210,210,.35);
  white-space: nowrap;
}

.sv-datafrag {
  position: absolute;
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  border-radius: 10px;
  background: rgba(0,210,210,.05);
  border: 1px solid rgba(0,220,220,.18);
  font-size: .78rem; font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: rgba(0,230,220,.95);
  letter-spacing: .03em;
  text-shadow: 0 0 10px rgba(0,210,210,.3);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  animation: sv-frag-in .5s ease-out forwards, sv-frag-float 5s ease-in-out infinite;
  white-space: nowrap;
}
.sv-df-icon { font-size: .6rem; opacity: .7; }
.sv-df1 { top: 5%; left: 5%; animation-delay: 1s, 1s; }
.sv-df2 { top: 28%; right: 0; animation-delay: 1.5s, 1.5s; }
.sv-df3 { bottom: 25%; left: 2%; animation-delay: 2s, 2s; }
.sv-df4 { bottom: 5%; right: 2%; animation-delay: 2.5s, 2.5s; }
@keyframes sv-frag-in {
  from { opacity: 0; transform: scale(.9) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes sv-frag-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .sv-hlabel-dot, .sv-datafrag { animation: none !important; }
  .sv-hlabel, .sv-datafrag { opacity: 1; }
  .sv-holo canvas { display: none; }
}
@media (max-width: 960px) {
  .sv-hero-row { grid-template-columns: 1fr; }
  .sv-hero-text { max-width: 100%; text-align: center; }
  .sv-holo { width: 100%; margin: 0 auto; max-width: 480px; }
}
@media (max-width: 768px) {
  .sv-holo { max-width: 340px; width: 100%; margin: 0 auto; }
  .sv-hlabel--3, .sv-hlabel--4 { display: none; }
  .sv-df3, .sv-df4 { display: none; }
  .sv-hlabel-text { font-size: .65rem; }
  .sv-hlabel-line { width: 24px; }
  .sv-datafrag { padding: 6px 12px; font-size: .7rem; }
}
@media (max-width: 480px) {
  .sv-holo { max-width: 280px; }
  .sv-hlabel { display: none; }
  .sv-datafrag { display: none; }
}


/* =========================================================================
   COMPREHENSIVE MOBILE RESPONSIVE — All breakpoints
   ========================================================================= */

/* ---- DAWAM page captions ---- */
.dawam-captions {
  max-width: 1040px;
  margin: 30px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 22px;
}

/* ---- Prevent horizontal overflow globally ---- */
/* Use clip instead of hidden — overflow:hidden breaks position:sticky */
html, body {
  overflow-x: clip;
  max-width: 100vw;
}

/* =========== TABLET (max-width: 960px) =========== */
@media (max-width: 960px) {

  /* Hero */
  .hero { padding: calc(var(--header-h) + 50px) 0 60px; }
  .hero .lead { max-width: 100%; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
  .hero-stats .stat .num { font-size: 1.8rem; }

  /* Hero visual — prevent overflow */
  .hero-visual { max-width: 420px; margin: 0 auto; }

  /* Section headers */
  .section-header { margin-bottom: 36px; }

  /* Testimonials layout */
  .testi-layout { gap: 32px; }
  .testi-title { font-size: 1.6rem; }
}

/* =========== MOBILE-LARGE (max-width: 768px) =========== */
@media (max-width: 768px) {

  /* Base spacing */
  section { padding: clamp(40px, 6vw, 70px) 0; }
  .container, .container-wide, .container-narrow { padding: 0 18px; }

  /* Hero */
  .hero { padding: calc(var(--header-h) + 36px) 0 44px; }
  .hero-grid { gap: 24px; }
  .hero h1 { font-size: clamp(1.9rem, 7vw, 2.8rem); }
  .hero .lead { font-size: 1rem; margin-top: 14px; }
  .hero-cta { flex-direction: column; gap: 10px; margin-top: 24px; }
  .hero-cta .btn { width: 100%; justify-content: center; text-align: center; }
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 28px;
    padding-top: 20px;
  }
  .hero-stats .stat .num { font-size: 1.6rem; }
  .hero-stats .stat .lbl { font-size: .78rem; }

  /* Hero visual — hide on mobile since canvas is disabled */
  .hero-visual { display: none; }

  /* Page hero (inner pages) */
  .page-hero { padding: calc(var(--header-h) + 40px) 0 50px; }
  .page-hero h1 { font-size: clamp(1.7rem, 5.5vw, 2.4rem); }
  .page-hero .lead { font-size: .95rem; }
  .page-hero .breadcrumb { font-size: .75rem; margin-bottom: 16px; }

  /* Section headers */
  .section-header { margin-bottom: 32px; }
  .section-header h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
  .section-header p { font-size: .95rem; }

  /* Cards */
  .card { padding: 22px; }
  .card h4 { font-size: 1rem; }

  /* CTA section */
  .cta-body { padding: 32px 24px; }
  .cta-title { font-size: 1.5rem; }
  .cta-desc { font-size: .92rem; }

  /* Feature list */
  .feature-list .item { padding: 16px 14px; }
  .feature-list .item .ic { width: 36px; height: 36px; }

  /* Two-column on inner pages */
  .two-col { gap: 30px; }

  /* DAWAM page */
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .dawam-captions { grid-template-columns: 1fr; gap: 16px; }

  /* Footer */
  .site-footer { padding: 50px 0 28px; }
  .footer-grid { gap: 24px; margin-bottom: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 16px; }
}

/* =========== MOBILE-SMALL (max-width: 640px) =========== */
@media (max-width: 640px) {

  /* Base */
  .container, .container-wide, .container-narrow { padding: 0 16px; }

  /* Hero */
  .hero { padding: calc(var(--header-h) + 28px) 0 36px; }
  .hero h1 { font-size: clamp(1.7rem, 7vw, 2.4rem); }
  .hero-stats { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .hero-stats .stat .num { font-size: 1.3rem; }
  .hero-stats .stat .lbl { font-size: .7rem; }

  /* Hero visual hidden on mobile */
  .hero-visual { display: none; }

  /* Section header */
  .section-header h2 { font-size: clamp(1.35rem, 5vw, 1.8rem); }

  /* Kicker */
  .kicker { font-size: .7rem; letter-spacing: .14em; }

  /* Solutions showcase */
  .sol-hero-heading { font-size: clamp(1.8rem, 7vw, 2.6rem) !important; }
  .sol-hero-sub { font-size: .92rem; }
  .sol-sel { padding: 12px 14px; gap: 10px; }
  .sol-sel-icon { width: 36px; height: 36px; border-radius: 10px; }
  .sol-sel-icon svg { width: 18px; height: 18px; }
  .sol-sel-name { font-size: .88rem; }
  .sol-sel-desc { font-size: .72rem; }
  .sol-stage { min-height: 0; }
  .sol-panel.active { gap: 24px; }
  .sol-panel-text h3 { font-size: clamp(1.3rem, 4vw, 1.6rem); }
  .sol-panel-lead { font-size: .92rem; }
  .sol-panel-visual { padding: clamp(16px, 4vw, 28px); min-height: 200px; }
  .sol-features li { font-size: .88rem; gap: 10px; }
  .sol-check { width: 20px; height: 20px; }
  .sol-btn-label { padding: 12px 16px 12px 20px; font-size: .85rem; }
  .sol-btn-arrow { width: 40px; height: 40px; }
  .sol-trust-strip li { font-size: .72rem; padding: 4px 10px 4px 8px; }

  /* Services — all single column */
  .svc-top, .svc-bottom { grid-template-columns: 1fr; }
  .svc-card { padding: 20px 18px; }
  .svc-card-name { font-size: .95rem; }
  .svc-card-desc { font-size: .8rem; }
  .svc-divider { padding: 20px 0; }

  /* Why Medviz bento */
  .why-bento { gap: 14px; }
  .why-card { padding: 22px 20px; }
  .why-card--hero { padding: 24px 20px; }
  .why-card--hero .why-card-title { font-size: 1.1rem; }
  .why-card-title { font-size: 1rem; }
  .why-card-desc { font-size: .82rem; }
  .why-card-ic { width: 40px; height: 40px; margin-bottom: 14px; }
  .why-tag { font-size: .62rem; padding: 3px 10px; }

  /* Testimonials */
  .testi-title { font-size: 1.4rem; }
  .testi-desc { font-size: .9rem; }
  .testi-card { padding: 18px; }
  .testi-text { font-size: .85rem; }
  .testi-name { font-size: .85rem; }
  .testi-avatar { width: 38px; height: 38px; min-width: 38px; font-size: .68rem; }
  .testi-card-head { gap: 10px; margin-bottom: 12px; }

  /* Stat band */
  .stat-band { border-radius: var(--radius-lg); padding: 20px 16px; gap: 14px; }
  .stat-band .b-stat .num { font-size: 1.6rem; }
  .stat-band .b-stat .lbl { font-size: .68rem; }

  /* CTA magazine */
  .cta-deco-number { font-size: 2.2rem; }
  .cta-btn { padding: 11px 20px; font-size: .82rem; width: 100%; justify-content: center; }

  /* Contact page */
  .contact-left { padding: 22px 18px; }
  .contact-left__title { font-size: 1.2rem; }
  .contact-left__desc { font-size: .85rem; }
  .contact-card { padding: 12px 14px; gap: 12px; }
  .contact-card__icon { width: 38px; height: 38px; border-radius: 10px; }
  .contact-card__value { font-size: .85rem; }
  .contact-form { padding: 24px 20px; }
  .form-row label { font-size: .82rem; }
  .form-row input, .form-row textarea, .form-row select { padding: 10px 12px; font-size: .9rem; }

  /* Sol-CTA (inner page CTAs) */
  .sol-cta__card { border-radius: 18px; margin: 0 4px; }
  .sol-cta__inner { padding: 28px 20px 24px; }
  .sol-cta__heading { font-size: clamp(1.3rem, 5vw, 1.7rem); }
  .sol-cta__desc { font-size: .9rem; }
  .sol-cta__badge { font-size: .7rem; padding: 5px 12px 5px 10px; }

  /* Footer */
  .footer-grid { gap: 20px; }
  .footer-grid h6 { font-size: .72rem; margin-bottom: 10px; }
  .footer-grid ul a { font-size: .85rem; }
  .footer-grid p { font-size: .85rem; }
  .footer-bottom { font-size: .78rem; padding-top: 20px; }

  /* Legal pages */
  .legal-content h2 { font-size: 1.3rem; }
  .legal-content h3 { font-size: 1.1rem; }
  .legal-content p, .legal-content li { font-size: .9rem; }

  /* Blog */
  .blog-post-title { font-size: 1.4rem; }
}

/* =========== VERY SMALL (max-width: 400px) =========== */
@media (max-width: 400px) {
  .hero h1 { font-size: 1.6rem; }
  .hero .lead { font-size: .9rem; }
  .hero-stats { gap: 8px; }
  .hero-stats .stat .num { font-size: 1.2rem; }
  .hero-stats .stat .lbl { font-size: .68rem; line-height: 1.3; }
  .btn { padding: 12px 20px; font-size: .88rem; }
  .sol-hero-heading { font-size: 1.6rem !important; }
  .section-header h2 { font-size: 1.3rem; }
  .sol-panel-text h3 { font-size: 1.2rem; }
  .cta-title { font-size: 1.3rem; }
  .testi-title { font-size: 1.25rem; }
  .sol-cta__heading { font-size: 1.2rem; }
  .contact-left__title { font-size: 1.1rem; }
}

/* =========================================================================
   MOBILE-RESPONSIVE OVERRIDES — page-level fixes for inline grids,
   form/touch UX, overflow safety. Loaded last so it wins.
   ========================================================================= */

/* ---- Touch + form UX baseline ---- */
@media (max-width: 768px) {
  /* iOS auto-zooms inputs <16px on focus; lock the form fields to 16px. */
  .form-row input,
  .form-row textarea,
  .form-row select,
  .custom-select__trigger,
  .comments-form input,
  .comments-form textarea {
    font-size: 16px;
  }

  /* Buttons get a touch-friendly hit area. */
  .btn {
    min-height: 44px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  /* Word-break on aggressive long strings (URLs, emails) */
  body { word-wrap: break-word; overflow-wrap: break-word; }

  /* Images and media never overflow */
  img, video, iframe, svg { max-width: 100%; height: auto; }
}

/* ---- Inline-grid collapses on case-studies + services pages ---- */
/* These grids set grid-template-columns inline; we override with !important
   at narrow breakpoints so cramped 3/4/6-col grids stack cleanly. */

/* Case-studies index: 3-col stat strip inside each card (-89% / +27% / $147K) */
@media (max-width: 520px) {
  body[data-page="case-studies"] .card > div[style*="grid-template-columns: repeat(3"] {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* Family Practice + Multispecialty case-study hero stat blocks (4 columns) */
@media (max-width: 760px) {
  body[data-page="case-studies"] section.compact > .container > div[style*="grid-template-columns: repeat(4"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
    padding: 22px !important;
  }
  body[data-page="case-studies"] section.compact > .container > div[style*="grid-template-columns: repeat(4"] div[style*="font-size: 2.2rem"] {
    font-size: 1.7rem !important;
  }
}
@media (max-width: 380px) {
  body[data-page="case-studies"] section.compact > .container > div[style*="grid-template-columns: repeat(4"] {
    grid-template-columns: 1fr !important;
  }
}

/* Medical Billing: 6-col specialty card grid */
@media (max-width: 1024px) {
  body[data-page="services"] .grid[style*="grid-template-columns: repeat(6"],
  body[data-page="services-medical-billing"] .grid[style*="grid-template-columns: repeat(6"] {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}
@media (max-width: 720px) {
  body[data-page="services"] .grid[style*="grid-template-columns: repeat(6"],
  body[data-page="services-medical-billing"] .grid[style*="grid-template-columns: repeat(6"] {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}
@media (max-width: 480px) {
  body[data-page="services"] .grid[style*="grid-template-columns: repeat(6"],
  body[data-page="services-medical-billing"] .grid[style*="grid-template-columns: repeat(6"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ---- Containers: tighter horizontal padding on phones, never overflow ---- */
@media (max-width: 480px) {
  .container, .container-wide, .container-narrow { padding-left: 14px; padding-right: 14px; }
  /* Case-study and blog inner max-widths shouldn't push past viewport */
  .container[style*="max-width: 920px"] { max-width: 100% !important; }
}

/* ---- Hero stats: stack vertically when content gets crammed ---- */
@media (max-width: 380px) {
  .hero-stats { grid-template-columns: 1fr !important; gap: 14px; padding-top: 18px; }
  .hero-stats .stat { display: flex; align-items: baseline; gap: 10px; }
  .hero-stats .stat .num { font-size: 1.4rem; }
  .hero-stats .stat .lbl { margin-top: 0; }
}

/* ---- Header: nav-inner padding on phones, logo fits cleanly ---- */
@media (max-width: 480px) {
  .nav-inner { padding-left: 14px; padding-right: 14px; }
  .brand-logo img { height: 26px; }
  .menu-toggle { width: 40px; height: 40px; }
}

/* ---- Mobile menu: scrollable when content tall + close on internal link ---- */
@media (max-width: 1024px) {
  .mobile-menu { padding-bottom: calc(40px + env(safe-area-inset-bottom, 0)); }
  .mobile-menu .group h6 { font-size: .72rem; }
  .mobile-menu a { padding: 10px 0; font-size: 1rem; }
}

/* ---- Footer: links comfortably tappable, social row centers ---- */
@media (max-width: 600px) {
  .footer-grid ul li { margin-bottom: 6px; }
  .footer-grid ul a { display: inline-block; padding: 6px 0; }
  .footer-bottom .social { width: 100%; justify-content: center; }
  .footer-bottom { text-align: center; }
}

/* ---- Page-hero compact on phones ---- */
@media (max-width: 480px) {
  .page-hero { padding: calc(var(--header-h) + 28px) 0 32px; }
  .page-hero h1 { font-size: clamp(1.5rem, 7vw, 2rem); }
  .page-hero .lead { font-size: .92rem; }
  .breadcrumb-nav { font-size: .76rem; }
}

/* ---- Blog post: hero, image, in-article spacing on phones ---- */
@media (max-width: 600px) {
  .blog-post-hero { padding-top: calc(var(--header-h) + 24px); }
  .blog-post-image-wrap { padding: 0 14px; }
  .blog-post-image { aspect-ratio: 16 / 10; border-radius: 10px; }
  .blog-post-meta { flex-wrap: wrap; gap: 6px 10px; font-size: .82rem; }
  .blog-post-content { font-size: .96rem; line-height: 1.7; margin-bottom: 36px; }
  .blog-post-content blockquote { padding-left: 16px; margin: 22px auto; }
  .blog-related { padding: 44px 0 56px; }
}

/* ---- Cookie banner: don't dwarf small screens ---- */
@media (max-width: 380px) {
  .cookie-banner p { font-size: .72rem; }
  .cookie-banner .btn-cookie { padding: 6px 10px; font-size: .68rem; }
}

/* ---- Solutions selectors stagger + readable text on phones ---- */
@media (max-width: 480px) {
  .sol-selectors { gap: 8px; margin-bottom: 32px; }
  .sol-sel-desc { display: none; }
  .sol-trust-strip { gap: 6px; }
  .sol-panel-tags { gap: 6px; }
}

/* ---- Stat band: numbers shrink gracefully ---- */
@media (max-width: 380px) {
  .stat-band .b-stat .num { font-size: 1.4rem; }
  .stat-band .b-stat .lbl { font-size: .62rem; letter-spacing: .1em; }
}

/* ---- Forms: comfortable label/inputs on tiny screens ---- */
@media (max-width: 480px) {
  .contact-form { padding: 22px 16px; }
  .form-row { margin-bottom: 14px; }
  .form-row textarea { min-height: 110px; }
}

/* ---- Cookie prefs: actions stack and full-width on tiny screens ---- */
@media (max-width: 380px) {
  .cookie-prefs-actions { flex-direction: column; }
  .cookie-prefs-actions .btn-cookie { width: 100%; text-align: center; }
}

/* ---- Anchor scroll buffer for fixed header on every internal link ---- */
:target { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---- Mobile menu safety: nav-inner can't squish, menu panel stays opaque ---- */
@media (max-width: 1024px) {
  .nav-inner { gap: 12px; flex-wrap: nowrap; }
  .mobile-menu {
    background: #ffffff !important;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
  }
  .mobile-menu .cta-area .btn { width: 100%; min-height: 48px; justify-content: center; }
}


/* ---- Long-word/email safety inside small cards ---- */
.contact-card__value,
.blog-post-content p,
.blog-post-content li,
.legal-content p,
.legal-content li {
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* =========================================================================
   MOBILE PERFORMANCE — kill the heaviest paint/composite costs on phones.
   Each rule below targets a specific cause of scroll jank on mobile:
     · backdrop-filter on a fixed header re-blurs viewport content per frame
     · large filter:blur(N) layers force re-rasterizing on any movement
     · drifting/fading aurora orbs animate forever in the background
     · the holographic 3D canvas paints a full layer every frame
   On desktop these stay; on phones they go.
   ========================================================================= */
@media (max-width: 1024px) {
  /* Header: drop backdrop-filter (re-blurs the whole header strip on every
     scroll frame). Solid translucent bg looks similar at this size. */
  .site-header,
  .site-header.scrolled {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(255, 255, 255, 0.94) !important;
  }

  /* Cards / panels / dropdowns: glass → flat. backdrop-filter on a long
     scrolling list of cards is the single biggest mobile cost. */
  .card, .testimonial, .blog-card, .contact-form,
  .hero-visual .panel, .dropdown, .mobile-menu,
  .sol-cta__card, .why-card, .testi-card, .svc-card,
  .spec-card, .blog-featured,
  .sol-panel-visual, .sol-sel, .samaat-app, .sol-flow-step,
  .cookie-banner, .cookie-prefs-dialog {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Solutions panels: pause the always-on bar wave + dot pulse + animated
     gradient sweeps so the section isn't repainting while the user scrolls. */
  .samaat-wave-bar, .samaat-live-dot, .samaat-note-status,
  .sol-bar, .sol-tl-dot { animation: none !important; }

  /* Heavy decorative blur orbs: smaller blur radii, fewer of them.
     Animation pauses keep the compositor from re-rasterizing them. */
  .site-bg__aurora .orb { filter: blur(40px) !important; animation: none !important; }
  .site-bg__aurora .orb-3, .site-bg__aurora .orb-4 { display: none !important; }
  .site-bg__pulse, .site-bg__dots { display: none !important; }

  /* Hero mesh blobs: keep visible but stop the drift animations and shrink
     blur. The blobs are also no longer parallaxed by JS (motion.js skip). */
  .hero-mesh__blob { animation: none !important; filter: blur(50px) !important; }

  /* Why-section blobs: stop drifting */
  .why-bg-blob { animation: none !important; filter: blur(40px) !important; }

  /* Holographic fixed canvas: hidden + JS short-circuits draw loop */
  .hv-bg-fixed { display: none !important; }

  /* Logo marquee: keep, but slow it down so it's less painty */
  .logo-track { animation-duration: 90s !important; }

  /* Testimonial auto-scroll columns: pause on mobile (cheap UX win) */
  .testi-col { animation: none !important; transform: none !important; }

  /* Drop will-change on background decorations — frees compositor layers */
  .site-bg__dots, .hero-mesh__blob, .why-bg-blob { will-change: auto !important; }
}

/* ================================================================
   TOAST NOTIFICATIONS
   ================================================================ */
.mz-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 36px rgba(20,50,70,.14), 0 2px 8px rgba(20,50,70,.06);
  padding: 14px 18px;
  max-width: 480px;
  width: calc(100% - 32px);
  opacity: 0;
  transition: transform .35s var(--easing), opacity .35s var(--easing);
}
.mz-toast--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.mz-toast__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mz-toast--success .mz-toast__icon {
  background: rgba(16,185,129,.1);
  color: #10b981;
}
.mz-toast--error .mz-toast__icon {
  background: rgba(239,68,68,.1);
  color: #ef4444;
}
.mz-toast--success { border-left: 3px solid #10b981; }
.mz-toast--error { border-left: 3px solid #ef4444; }
.mz-toast__msg {
  font-size: .88rem;
  line-height: 1.45;
  color: var(--ink-800);
  flex: 1;
}
.mz-toast__close {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: #9ca3af;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
  flex-shrink: 0;
  font-family: inherit;
}
.mz-toast__close:hover { color: var(--ink-700); }

@media (max-width: 480px) {
  .mz-toast {
    bottom: 16px;
    padding: 12px 14px;
    gap: 8px;
  }
}

/* ================================================================
   COOKIE CONSENT BANNER + PREFERENCES MODAL
   ================================================================ */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  right: 16px;
  left: auto;
  max-width: 380px;
  background: white;
  border: 1px solid var(--ink-200);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(20,50,70,.10), 0 2px 6px rgba(20,50,70,.05);
  padding: 14px 16px 12px;
  z-index: 200;
  transform: translateY(140%);
  transition: transform .4s var(--easing);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p {
  font-size: .76rem;
  line-height: 1.5;
  color: var(--ink-600);
  margin-bottom: 10px;
}
.cookie-banner p a { color: var(--teal-700); text-decoration: underline; }
.cookie-banner .actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.btn-cookie {
  display: inline-block;
  padding: 8px 14px;
  font-size: .78rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: .01em;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-cookie-primary {
  background: var(--teal-700);
  color: white;
}
.btn-cookie-primary:hover { background: #006666; }
.btn-cookie-secondary {
  background: white;
  color: var(--ink-700);
  border-color: #d4dde2;
}
.btn-cookie-secondary:hover { border-color: #6b7c85; }
.cookie-banner .btn-cookie {
  padding: 6px 12px;
  font-size: .72rem;
}
.cookie-banner .btn-cookie-link {
  background: none;
  border: none;
  color: #6b7c85;
  padding: 6px 4px;
  font-size: .72rem;
  font-weight: 500;
  font-family: inherit;
  text-decoration: underline;
  cursor: pointer;
  margin-left: auto;
}
.cookie-banner .btn-cookie-link:hover { color: var(--teal-700); }

/* ----- COOKIE PREFERENCES MODAL ----- */
.cookie-prefs-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--easing);
}
.cookie-prefs-modal[hidden] { display: none; }
.cookie-prefs-modal.show {
  opacity: 1;
  pointer-events: auto;
}
.cookie-prefs-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 35, 55, .55);
}
.cookie-prefs-dialog {
  position: relative;
  background: white;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(20,50,70,.18), 0 4px 12px rgba(20,50,70,.08);
  max-width: 540px;
  width: calc(100% - 32px);
  max-height: 85vh;
  overflow-y: auto;
  padding: 22px 26px 20px;
  transform: translateY(20px);
  transition: transform .25s var(--easing);
}
.cookie-prefs-modal.show .cookie-prefs-dialog { transform: translateY(0); }
.cookie-prefs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.cookie-prefs-head h3 {
  font-size: 1.05rem;
  color: var(--ink-900);
  margin: 0;
  font-weight: 700;
}
.cookie-prefs-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6b7c85;
  line-height: 1;
  padding: 2px 6px;
  font-family: inherit;
}
.cookie-prefs-close:hover { color: var(--ink-900); }
.cookie-prefs-intro {
  font-size: .82rem;
  line-height: 1.55;
  color: var(--ink-600);
  margin-bottom: 18px;
}
.cookie-prefs-intro a { color: var(--teal-700); text-decoration: underline; }
.cookie-prefs-categories {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}
.cookie-cat {
  border: 1px solid var(--ink-200);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fafbfc;
}
.cookie-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  gap: 12px;
}
.cookie-cat h4 {
  font-size: .85rem;
  margin: 0;
  color: var(--ink-900);
  font-weight: 600;
}
.cookie-cat p {
  font-size: .74rem;
  line-height: 1.5;
  color: var(--ink-600);
  margin: 0;
}
.cookie-cat-status {
  font-size: .7rem;
  font-weight: 600;
  color: var(--teal-700);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  cursor: pointer;
  flex-shrink: 0;
}
.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.cookie-toggle-track {
  position: absolute;
  inset: 0;
  background: #cbd5d8;
  border-radius: 20px;
  transition: background .2s;
}
.cookie-toggle-track::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 2px;
  top: 2px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,.15);
  transition: transform .2s;
}
.cookie-toggle input:checked + .cookie-toggle-track { background: var(--teal-700); }
.cookie-toggle input:checked + .cookie-toggle-track::before { transform: translateX(16px); }
.cookie-toggle input:focus-visible + .cookie-toggle-track {
  outline: 2px solid var(--teal-700);
  outline-offset: 2px;
}
.cookie-prefs-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
  border-top: 1px solid var(--ink-200);
  padding-top: 14px;
}

@media (max-width: 480px) {
  .cookie-prefs-dialog {
    padding: 18px 16px 16px;
    width: calc(100% - 24px);
    max-height: 90vh;
  }
  .cookie-prefs-actions {
    justify-content: stretch;
  }
  .cookie-prefs-actions button { flex: 1; min-width: 0; }
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
    padding: 12px 14px 10px;
  }
}
