/*
Theme Name: November Rain Two
Theme URI: https://medlogics.net
Author: Orocube
Description: Redesigned theme for Medlogics — healthcare software company site. Same brand tokens (teal/navy, Lexend/Source Sans 3) as medii, restructured layouts.
Version: 1.0.0
Text Domain: november-rain-two
*/

:root {
  --c-text: #1A1A2E;
  --c-text-soft: #3D3D56;
  --c-text-muted: #6E6E85;
  --c-text-faint: #9E9EB5;
  --c-primary: #00B894;
  --c-primary-dark: #009B7D;
  --c-primary-light: #E8FFF8;
  --c-primary-glow: rgba(0,184,148,0.12);
  --c-accent: #6C5CE7;
  --c-blue: #0984E3;
  --c-blue-light: #EBF5FF;
  --c-amber: #FDCB6E;
  --c-coral: #E17055;
  --c-bg: #FFFFFF;
  --c-bg-soft: #F7F8FC;
  --c-bg-hero: #F7F8FC;
  --c-bg-dark: #1A1A2E;
  --c-border: #EAEAF2;
  --c-border-strong: #D4D4E0;

  --sp-xs: 4px; --sp-sm: 8px; --sp-md: 16px; --sp-lg: 24px;
  --sp-xl: 40px; --sp-2xl: 64px; --sp-3xl: 96px; --sp-4xl: 128px;

  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px; --r-full: 999px;

  --shadow-xs: 0 1px 2px rgba(26,26,46,0.04);
  --shadow-sm: 0 2px 8px rgba(26,26,46,0.06);
  --shadow-md: 0 4px 16px rgba(26,26,46,0.08);
  --shadow-lg: 0 8px 32px rgba(26,26,46,0.10);
  --shadow-xl: 0 16px 48px rgba(26,26,46,0.14);

  --max-w: 1200px;
  --section-pad: 100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .logo-text, .btn-primary, .btn-secondary, .btn-ghost, .nav-cta, .stat-number, .tag {
  font-family: 'Lexend', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Base type scale for bare headings (specific contexts like .hero h1 /
   .page-header h1 override this with their own clamp() sizing below). */
h1 { font-size: 40px; font-weight: 800; line-height: 1.2; }
h2 { font-size: 32px; font-weight: 800; line-height: 1.25; }
h3 { font-size: 25px; font-weight: 700; line-height: 1.3; }
h4 { font-size: 20px; font-weight: 700; line-height: 1.35; }
h5 { font-size: 18px; font-weight: 600; line-height: 1.4; }
h6 { font-size: 16px; font-weight: 600; line-height: 1.4; }

img { max-width: 100%; display: block; }
/* Browsers render an <img>'s alt text as real text when it fails to load;
   this just styles that fallback state as a clean placeholder instead of
   a bare broken-image icon. */
img.img-broken {
  min-height: 80px; background: var(--c-bg-soft); color: var(--c-text-faint);
  font-size: 12px; text-align: center; padding: 8px; box-sizing: border-box;
  border: 1px dashed var(--c-border-strong); -webkit-user-select: none; user-select: none;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }

/* Lucide icons render as inline SVG — without this they default to 24px
   stroke-2 everywhere, which looks oversized/inconsistent at small UI sizes. */
svg[class^="lucide-"] { width: 1em; height: 1em; stroke-width: 2px; vertical-align: -0.125em; }
.card-icon svg { width: 22px; height: 22px; }
.btn-primary svg, .btn-secondary svg, .btn-ghost svg { width: 16px; height: 16px; }

.trust-bar svg { width: 15px; height: 15px; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
}

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-pad) 0; }

@media (max-width: 1024px) { .section { padding: 80px 0; } }
@media (max-width: 768px) { .section { padding: 64px 0; } }
@media (max-width: 480px) { .section { padding: 48px 0; } }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 16px; }
.card-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.modules-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
@media (max-width: 1024px) { .card-grid-3, .modules-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 768px) { .card-grid-3, .steps-grid, .modules-grid { grid-template-columns: 1fr; } }

/* Top bar */
.top-bar { background: var(--c-bg-dark); height: 36px; }
.top-bar-inner { display: flex; align-items: center; justify-content: space-between; height: 36px; }
.top-bar-links { display: flex; gap: 20px; }
.top-bar-links a { color: rgba(255,255,255,0.7); font-size: 13px; }
.top-bar-links a:hover { color: #fff; }

/* Header — frosted sticky bar, segmented nav pill, navy CTA */
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,0.84); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(234,234,242,0.6); transition: box-shadow .25s, border-color .25s, background .25s; }
.site-header.scrolled { background: rgba(255,255,255,0.94); border-bottom-color: var(--c-border); box-shadow: 0 8px 30px rgba(26,26,46,0.06); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 76px; transition: height .25s; }
.site-header.scrolled .header-inner { height: 64px; }
.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 34px; transition: height .25s; }
.site-header.scrolled .logo-img { height: 30px; }
.logo-text { font-weight: 800; font-size: 20px; color: var(--c-text); }
/* Single logo file used everywhere; on the dark footer it sits in a light
   badge instead of needing a separate recolored image variant. */
.logo-badge { display: inline-flex; background: #fff; border-radius: var(--r-md); padding: 8px 14px; }
.logo-badge .logo-img { height: 28px; }

.main-nav { display: flex; align-items: center; flex: 1; gap: 24px; }
.nav-links { display: flex; align-items: center; gap: 2px; margin: 0 auto; padding: 4px; border-radius: var(--r-full); background: rgba(247,248,252,0.9); border: 1px solid var(--c-border); }
.nav-link { display: inline-flex; align-items: center; gap: 5px; padding: 9px 16px; border-radius: var(--r-full); font-family: inherit; font-size: 14.5px; font-weight: 600; line-height: 1; letter-spacing: .005em; color: var(--c-text-soft); background: none; border: none; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, box-shadow .15s; }
.nav-link:hover { color: var(--c-text); background: #fff; box-shadow: 0 1px 2px rgba(26,26,46,0.06); }
.nav-link.is-active { color: var(--c-primary-dark); background: #fff; box-shadow: 0 1px 3px rgba(26,26,46,0.08), inset 0 0 0 1px var(--c-border); }
.nav-link.is-active::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--c-primary); box-shadow: 0 0 0 3px var(--c-primary-glow); margin-right: 3px; }
.nav-link:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }

.nav-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0; }
.nav-link--contact { padding: 9px 14px; }
.nav-link--contact:hover { background: var(--c-bg-soft); box-shadow: none; }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--c-text); color: #fff !important; padding: 11px 18px 11px 22px; border-radius: var(--r-full); font-size: 14.5px; font-weight: 600; white-space: nowrap; box-shadow: 0 6px 18px rgba(26,26,46,0.18); transition: background .2s, transform .15s, box-shadow .2s; }
.nav-cta svg { width: 16px; height: 16px; transition: transform .2s; }
.nav-cta:hover { background: var(--c-primary); box-shadow: 0 8px 22px rgba(0,184,148,0.35); transform: translateY(-1px); }
.nav-cta:hover svg { transform: translateX(3px); }

.mobile-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 1px solid var(--c-border); border-radius: var(--r-md); color: var(--c-text); cursor: pointer; }
.mobile-toggle svg { width: 22px; height: 22px; }
.mobile-toggle .icon-close { display: none; }
.site-header.nav-open .mobile-toggle .icon-menu { display: none; }
.site-header.nav-open .mobile-toggle .icon-close { display: block; }

/* Markets dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle svg { width: 14px; height: 14px; opacity: .7; transition: transform .2s; }
.nav-dropdown.is-open .nav-dropdown-toggle { color: var(--c-text); background: #fff; box-shadow: 0 1px 2px rgba(26,26,46,0.06); }
.nav-dropdown.is-open .nav-dropdown-toggle svg { transform: rotate(180deg); }
.nav-dropdown-menu { position: absolute; top: calc(100% + 14px); left: 50%; width: 320px; padding: 8px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-lg); box-shadow: 0 20px 50px rgba(26,26,46,0.14); z-index: 1001; opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(-50%) translateY(-6px); transition: opacity .18s ease, transform .18s ease, visibility .18s; }
.nav-dropdown-menu::before { content: ''; position: absolute; top: -7px; left: 50%; width: 12px; height: 12px; background: #fff; border-left: 1px solid var(--c-border); border-top: 1px solid var(--c-border); transform: translateX(-50%) rotate(45deg); }
.nav-dropdown.is-open .nav-dropdown-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav-menu-head { padding: 8px 12px 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-text-faint); }
.nav-menu-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-md); transition: background .15s; }
.nav-menu-item:hover { background: var(--c-bg-soft); }
.nav-menu-icon { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: var(--c-primary-light); color: var(--c-primary-dark); transition: background .15s, color .15s; }
.nav-menu-icon svg { width: 18px; height: 18px; }
.nav-menu-item:hover .nav-menu-icon { background: var(--c-primary); color: #fff; }
.nav-menu-text strong { display: block; font-size: 14px; font-weight: 600; color: var(--c-text); line-height: 1.3; }
.nav-menu-text small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--c-text-faint); line-height: 1.3; }
.nav-menu-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 6px -8px -8px; padding: 12px 20px; background: var(--c-bg-soft); border-top: 1px solid var(--c-border); border-radius: 0 0 var(--r-lg) var(--r-lg); font-size: 13px; font-weight: 600; color: var(--c-primary-dark); }
.nav-menu-foot svg { width: 14px; height: 14px; transition: transform .2s; }
.nav-menu-foot:hover svg { transform: translateX(3px); }

@media (max-width: 1024px) {
  /* backdrop-filter turns the header into the containing block for the
     fixed drawer below, which would trap it inside the bar — so no glass here. */
  .site-header, .site-header.scrolled { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
  .header-inner, .site-header.scrolled .header-inner { height: 68px; gap: 16px; }
  .logo-img, .site-header.scrolled .logo-img { height: 30px; }
  .mobile-toggle { display: inline-flex; margin-left: auto; }
  .main-nav { display: none; position: fixed; top: 68px; left: 0; right: 0; bottom: 0; z-index: 999; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 40px; background: #fff; overflow-y: auto; }
  .main-nav.is-open { display: flex; animation: navIn .22s ease; }
  @keyframes navIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 0; background: none; border: none; border-radius: 0; }
  .nav-link { width: 100%; justify-content: space-between; padding: 18px 4px; border-radius: 0; border-bottom: 1px solid var(--c-border); font-family: 'Lexend', sans-serif; font-size: 18px; font-weight: 600; color: var(--c-text); }
  .nav-link:hover, .nav-link.is-active, .nav-dropdown.is-open .nav-dropdown-toggle { background: none; box-shadow: none; }
  .nav-link.is-active { color: var(--c-primary-dark); }
  .nav-link.is-active::before { display: none; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown-toggle { width: 100%; }
  .nav-dropdown-toggle svg { width: 18px; height: 18px; }
  .nav-dropdown-menu { position: static; width: auto; padding: 4px 0 12px; border: none; border-bottom: 1px solid var(--c-border); border-radius: 0; box-shadow: none; display: none; opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: none; }
  .nav-dropdown-menu::before { display: none; }
  .nav-dropdown.is-open .nav-dropdown-menu { display: block; transform: none; }
  .nav-menu-head { padding-left: 4px; }
  .nav-menu-item { padding: 10px 4px; }
  .nav-menu-foot { margin: 8px 0 0; border: 1px solid var(--c-border); border-radius: var(--r-md); }
  .nav-actions { flex-direction: column; align-items: stretch; gap: 12px; margin: 24px 0 0; }
  .nav-link--contact { justify-content: center; padding: 15px; border: 1.5px solid var(--c-border-strong); border-radius: var(--r-full); font-family: 'Lexend', sans-serif; font-size: 16px; }
  .nav-cta { justify-content: center; padding: 16px; font-size: 16px; background: var(--c-primary); box-shadow: 0 6px 18px rgba(0,184,148,0.3); }
  body.nav-locked { overflow: hidden; }
  body.nav-locked .gtranslate_wrapper { display: none; }
}

/* Buttons */
.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--c-primary); color: #fff; padding: 14px 28px; border-radius: var(--r-full); font-weight: 600; box-shadow: 0 4px 16px var(--c-primary-glow); border: none; cursor: pointer; }
.btn-primary:hover { background: var(--c-primary-dark); }
.btn-secondary { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--c-text); padding: 14px 28px; border-radius: var(--r-full); font-weight: 600; border: 1px solid var(--c-border-strong); }
.btn-secondary:hover { border-color: var(--c-text-muted); }
.btn-secondary--white { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.btn-ghost { background: transparent; color: var(--c-primary); border: 1px solid var(--c-primary); padding: 12px 24px; border-radius: var(--r-full); font-weight: 600; display: inline-flex; }
.btn-subtle { color: rgba(255,255,255,0.7); }
.cta-group { display: flex; gap: 12px; flex-wrap: wrap; }

/* Tags */
.tag { display: inline-flex; padding: 4px 10px; border-radius: var(--r-full); font-size: 11px; text-transform: uppercase; font-weight: 700; letter-spacing: .03em; }
.tag-teal { background: var(--c-primary-light); color: var(--c-primary-dark); }
.tag-blue { background: var(--c-blue-light); color: var(--c-blue); }
.tag-green { background: #E6F9EE; color: #1E9E5C; }
.tag-amber { background: #FEF3DA; color: #B5790A; }
.tag-coral { background: #FCE7E2; color: var(--c-coral); }

/* Section headings */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-heading { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.section-subtitle { font-size: 17px; color: var(--c-text-muted); }
.section-lead { font-size: 18px; color: var(--c-text-soft); }

/* Page header (inner pages) */
.page-header { background: var(--c-bg-hero); padding: 64px 0; opacity: 1 !important; }
.page-header h1 { font-size: clamp(32px,5vw,50px); font-weight: 800; }
.page-header-subtitle { font-size: 18px; color: var(--c-text-muted); max-width: 560px; margin-top: 12px; }

/* Hero */
.hero { background: var(--c-bg-hero); opacity: 1 !important; transform: none !important; }
.hero-inner { display: flex; flex-direction: column; padding-top: 80px; padding-bottom: 64px; }
.hero h1 { font-size: clamp(32px,5vw,54px); font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.hero h1 em { color: var(--c-primary); font-style: normal; }
.hero p { font-size: 19px; color: var(--c-text-muted); margin-bottom: 32px; max-width: 580px; }
.trust-bar { display: flex; gap: 24px; margin-top: 48px; flex-wrap: wrap; color: var(--c-text-faint); font-size: 14px; font-weight: 600; }
.trust-bar span { display: inline-flex; align-items: center; gap: 6px; }
.trust-bar i { width: 16px; height: 16px; }

/* Hero split (homepage): text + layered module-stack visual */
/* Only override the vertical padding; `padding: 72px 0` would wipe .container's
   24px side gutters and `max-width: none` its 1200px cap, pushing the hero to
   the viewport edge. */
.hero-split-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero-split .hero-text { max-width: 560px; }
.hero-inner > * { max-width: 760px; }
/* Hero visual — real photo with offset plate, floating status card, module chip */
.hero-visual { position: relative; padding: 0 20px 28px 0; }
.hero-photo { position: relative; margin: 0; border-radius: var(--r-xl); overflow: hidden; box-shadow: 0 24px 60px rgba(26,26,46,0.16); aspect-ratio: 16 / 10; background: var(--c-bg-soft); }
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
.hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,26,46,0.62) 0%, rgba(26,26,46,0.18) 32%, rgba(26,26,46,0) 55%); pointer-events: none; }
.hero-visual::before { content: ''; position: absolute; top: 22px; left: 22px; right: 0; bottom: 8px; border-radius: var(--r-xl); background: var(--c-primary-light); border: 1px solid rgba(0,184,148,0.18); z-index: 0; }
.hero-visual::after { content: ''; position: absolute; top: -18px; right: 4px; width: 92px; height: 92px; border-radius: 50%; background: radial-gradient(circle, var(--c-primary) 1.6px, transparent 1.8px) 0 0 / 12px 12px; opacity: .35; z-index: 0; }
.hero-photo, .hero-float { z-index: 1; }
.hero-chip { position: absolute; top: 16px; right: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--r-full); background: rgba(255,255,255,0.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--c-text); font-size: 12.5px; font-weight: 700; letter-spacing: .01em; box-shadow: 0 2px 10px rgba(26,26,46,0.12); }
.hero-chip svg { width: 14px; height: 14px; color: var(--c-primary); }
.hero-photo-caption { position: absolute; top: 16px; left: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: var(--r-full); background: rgba(26,26,46,0.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-size: 12.5px; font-weight: 600; letter-spacing: .01em; }
.hero-float { position: absolute; left: -28px; bottom: 56px; z-index: 3; display: flex; align-items: center; gap: 12px; width: 300px; padding: 14px 16px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-lg); box-shadow: 0 16px 40px rgba(26,26,46,0.16); animation: heroFloatIn .7s cubic-bezier(.2,.8,.2,1) .25s both; }
.hero-float-icon { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--c-primary-light); color: var(--c-primary-dark); }
.hero-float-icon svg { width: 20px; height: 20px; }
.hero-float-text strong { display: block; font-size: 14.5px; font-weight: 700; color: var(--c-text); line-height: 1.25; }
.hero-float-text small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--c-text-faint); line-height: 1.3; }
.hero-float-status { flex-shrink: 0; margin-left: auto; width: 10px; height: 10px; border-radius: 50%; background: var(--c-primary); box-shadow: 0 0 0 0 rgba(0,184,148,0.45); animation: heroPulse 2s ease-out infinite; }
@keyframes heroFloatIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes heroPulse { 0% { box-shadow: 0 0 0 0 rgba(0,184,148,0.45); } 70% { box-shadow: 0 0 0 10px rgba(0,184,148,0); } 100% { box-shadow: 0 0 0 0 rgba(0,184,148,0); } }
@media (prefers-reduced-motion: reduce) { .hero-float { animation: none; } .hero-float-status { animation: none; } }
@media (max-width: 1024px) {
  .hero-split-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 600px; margin-top: 32px; padding: 0 16px 20px 0; }
  .hero-float { left: 16px; bottom: 40px; }
}
@media (max-width: 480px) {
  .hero-visual { padding: 0 12px 16px 0; }
  .hero-visual::after { display: none; }
  .hero-photo { aspect-ratio: 4 / 3; }
  .hero-float { left: 12px; right: 24px; width: auto; bottom: 34px; padding: 12px 14px; }
  .hero-photo-caption { display: none; }
}

/* Value strip: horizontal divided list (replaces repeated boxed cards) */
.value-strip-section { padding-top: 64px; padding-bottom: 64px; }
.value-strip { display: grid; grid-template-columns: repeat(3, 1fr); }
.value-item { display: flex; gap: 16px; padding: 0 28px; border-left: 1px solid var(--c-border); }
.value-item:first-child { border-left: none; padding-left: 0; }
.value-item svg { width: 26px; height: 26px; color: var(--c-primary); flex-shrink: 0; margin-top: 4px; }
.value-item h2 { font-size: 17px; margin-bottom: 6px; }
.value-item p { font-size: 14px; color: var(--c-text-muted); }
@media (max-width: 900px) { .value-strip { grid-template-columns: 1fr; gap: 24px; } .value-item { border-left: none; padding-left: 0; padding-top: 20px; border-top: 1px solid var(--c-border); } .value-item:first-child { border-top: none; padding-top: 0; } }

/* Promise row: text + numbered steps side by side */
.promise-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.promise-steps { display: flex; flex-direction: column; gap: 24px; }
.promise-steps .step { display: flex; gap: 16px; text-align: left; }
.promise-steps .step-num { flex-shrink: 0; margin: 0; }
.promise-steps strong { font-size: 15px; display: block; margin-bottom: 4px; }
.promise-steps p { font-size: 14px; color: var(--c-text-muted); }
@media (max-width: 900px) { .promise-row { grid-template-columns: 1fr; } }

/* Platform section — sticky intro + uniform module card grid */
.platform-layout { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: 64px; align-items: start; }
.platform-intro { position: sticky; top: 104px; }
.platform-eyebrow { display: inline-block; margin-bottom: 14px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-primary-dark); }
.platform-intro .section-heading { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; margin-bottom: 14px; }
.platform-intro .section-subtitle { margin-bottom: 24px; }
.platform-facts { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.platform-facts li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--c-text-soft); line-height: 1.4; }
.platform-facts svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; padding: 2px; border-radius: 50%; background: var(--c-primary-light); color: var(--c-primary-dark); }
.platform-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.module-card { position: relative; display: flex; flex-direction: column; padding: 22px 22px 20px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-lg); box-shadow: var(--shadow-xs); transition: transform .2s, box-shadow .2s, border-color .2s; }
.module-card:hover { transform: translateY(-3px); border-color: rgba(0,184,148,0.45); box-shadow: 0 14px 32px rgba(26,26,46,0.10); }
.module-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 12px; background: var(--c-primary-light); color: var(--c-primary-dark); transition: background .2s, color .2s; }
.module-icon svg { width: 22px; height: 22px; }
.module-card:hover .module-icon { background: var(--c-primary); color: #fff; }
.module-arrow { position: absolute; top: 18px; right: 18px; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--c-bg-soft); color: var(--c-text-faint); opacity: 0; transform: translate(-4px, 4px); transition: opacity .2s, transform .2s, color .2s; }
.module-arrow svg { width: 14px; height: 14px; }
.module-card:hover .module-arrow { opacity: 1; transform: none; color: var(--c-primary-dark); }
.module-dept { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-text-faint); margin-bottom: 4px; }
.module-card h3 { font-size: 17px; font-weight: 700; color: var(--c-text); margin-bottom: 6px; }
.module-card p { font-size: 14px; line-height: 1.45; color: var(--c-text-muted); }
@media (max-width: 1024px) {
  .platform-layout { grid-template-columns: 1fr; gap: 40px; }
  .platform-intro { position: static; max-width: 620px; }
}
@media (max-width: 560px) {
  .platform-grid { grid-template-columns: 1fr; gap: 12px; }
  .module-card { padding: 18px; }
}

/* CTA box with embedded stats */
.cta-box--stats .stats-row { margin: 28px 0; }
.stats-row--dark .stat-number { color: var(--c-primary); }
.stats-row--dark .stat-label { color: rgba(255,255,255,0.6); }

/* Card */
.card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 28px; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card-icon { width: 48px; height: 48px; background: var(--c-primary-light); border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; color: var(--c-primary); }
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--c-text-muted); }
.cs-home-card { padding: 0; overflow: hidden; display: block; }
.cs-home-card-img { width: 100%; height: 200px; object-fit: cover; }
.cs-home-card-body { padding: 24px; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.pricing-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 32px; }
.pricing-card h3 { font-size: 20px; font-weight: 800; margin: 14px 0 8px; }
.pricing-card-desc { font-size: 14px; color: var(--c-text-muted); margin-bottom: 20px; min-height: 42px; }
.pricing-card--featured { border: 2px solid var(--c-primary); padding-top: 40px; position: relative; box-shadow: var(--shadow-lg); transform: scale(1.03); }
.pricing-card-badge { position: absolute; top: -13px; left: 32px; background: var(--c-primary); color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 4px 12px; border-radius: var(--r-full); }
.check-list { margin-bottom: 24px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 14px; color: var(--c-text-soft); }
.check-list svg { width: 18px; height: 18px; color: var(--c-primary); flex-shrink: 0; margin-top: 1px; }
.pricing-card .btn-primary, .pricing-card .btn-secondary { width: 100%; justify-content: center; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } .pricing-card--featured { transform: none; } }

.faq-list { max-width: 720px; margin: 0 auto; display: grid; gap: 1px; background: var(--c-border); border-radius: var(--r-lg); overflow: hidden; }
.faq-item { background: #fff; padding: 24px 28px; }
.faq-item h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.faq-item p { font-size: 14px; color: var(--c-text-muted); line-height: 1.6; }

/* Feature rows (features page) */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 48px 0; border-bottom: 1px solid var(--c-border); }
.feature-row:last-child { border-bottom: none; }
.feature-row--reverse { direction: rtl; }
.feature-row--reverse > * { direction: ltr; }
.feature-row-img { margin: 0; }
.feature-row-img img { width: 100%; height: auto; border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.photo-credit { margin-top: 8px; font-size: 11.5px; color: var(--c-text-faint); }
.photo-credit a { color: inherit; text-decoration: underline; text-decoration-color: var(--c-border-strong); text-underline-offset: 2px; }
.photo-credit a:hover { color: var(--c-text-muted); }
.feature-row-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.feature-row-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--c-primary-light); color: var(--c-primary-dark); }
.feature-row-icon svg { width: 20px; height: 20px; }
.feature-row-body h2 { font-size: 26px; margin-bottom: 10px; }
.feature-list { display: grid; gap: 8px; margin-top: 18px; }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.4; color: var(--c-text-soft); }
.feature-list svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; padding: 2px; border-radius: 50%; background: var(--c-primary-light); color: var(--c-primary-dark); }
@media (max-width: 768px) { .feature-row, .feature-row--reverse { grid-template-columns: 1fr; direction: ltr; } }
.card.locale-us { border-left: 3px solid var(--c-blue); }
.card.locale-bd { border-left: 3px solid var(--c-primary); }
.card.locale-ke { border-left: 3px solid var(--c-amber); }
.card.locale-mx { border-left: 3px solid var(--c-coral); }

/* Insight box */
.insight-box { background: var(--c-bg-soft); border-left: 3px solid var(--c-primary); border-radius: var(--r-md); padding: 24px 28px; }
.insight-box h4 { font-weight: 700; margin-bottom: 8px; color: var(--c-primary-dark); }

/* Stats */
.stats-row { display: flex; gap: 48px; flex-wrap: wrap; justify-content: center; }
.stat-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.stat-number { font-size: 52px; font-weight: 800; color: var(--c-primary); }
.stat-label { font-size: 13px; color: var(--c-text-muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 4px; }

/* Steps */
.step { text-align: center; }
.step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--c-bg-dark); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; margin: 0 auto 16px; }

/* Bottom CTA */
.cta-box { background: var(--c-bg-dark); color: #fff; border-radius: var(--r-xl); padding: 64px 40px; text-align: center; }
.cta-box h2 { font-size: 30px; font-weight: 800; margin-bottom: 16px; }
.cta-box p { color: rgba(255,255,255,0.7); margin-bottom: 28px; }

/* Case study editorial layout */
.cs-hero { background: var(--c-bg-hero); padding: 56px 0; }
.cs-hero .tag { margin-bottom: 16px; }
.cs-hero h1 { font-size: clamp(28px,4vw,42px); font-weight: 800; margin-bottom: 16px; }
.cs-hero .cs-intro { font-size: 18px; color: var(--c-text-muted); max-width: 720px; margin-bottom: 32px; }
.cs-hero img { border-radius: var(--r-lg); width: 100%; }
.cs-body { display: grid; grid-template-columns: 1fr 320px; gap: 56px; padding-top: 64px; padding-bottom: 64px; }
.cs-article { max-width: 720px; }
.cs-sidebar { position: sticky; top: 100px; align-self: start; }
.cs-section { padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--c-border); }
.cs-section:last-child { border-bottom: none; }
.cs-section-eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--c-primary); font-weight: 700; margin-bottom: 8px; }
.cs-section-heading { font-size: clamp(20px,2.5vw,28px); font-weight: 800; margin-bottom: 16px; }
.cs-lead { font-size: 18px; color: var(--c-text-soft); margin-bottom: 16px; }
.cs-p { font-size: 16px; line-height: 1.8; color: var(--c-text-soft); margin-bottom: 16px; }
.cs-pullquote { border-left: 3px solid var(--c-primary); background: var(--c-primary-light); padding: 20px 24px; font-style: italic; font-size: 19px; color: var(--c-text); border-radius: 0 var(--r-md) var(--r-md) 0; margin: 24px 0; }
.cs-list { margin: 16px 0; }
.cs-list li { padding-left: 24px; position: relative; margin-bottom: 10px; color: var(--c-text-soft); }
.cs-list li::before { content: '→'; position: absolute; left: 0; color: var(--c-primary); font-weight: 700; }
.cs-inline-stats { display: flex; gap: 32px; margin: 24px 0; flex-wrap: wrap; }
.cs-inline-stat .num { font-size: 30px; font-weight: 800; color: var(--c-primary); }
.cs-inline-stat .lbl { font-size: 12px; color: var(--c-text-muted); text-transform: uppercase; }
.cs-highlight { background: var(--c-bg-soft); border-radius: var(--r-md); padding: 24px; margin: 20px 0; }
.cs-img { border-radius: var(--r-md); margin: 24px 0; width: 100%; }
.cs-meta-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 24px; margin-bottom: 20px; }
.cs-meta-card-title { font-size: 11px; text-transform: uppercase; color: var(--c-text-faint); font-weight: 700; margin-bottom: 12px; }
.cs-meta-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--c-border); font-size: 14px; }
.cs-meta-row:last-child { border-bottom: none; }
.cs-meta-row span:first-child { color: var(--c-text-muted); }
.cs-meta-row span:last-child { font-weight: 600; text-align: right; }
.cs-results-card { background: var(--c-bg-dark); color: #fff; border-radius: var(--r-lg); padding: 24px; margin-bottom: 20px; }
.cs-result-num { font-size: 34px; font-weight: 800; color: var(--c-primary); }
.cs-result-lbl { font-size: 12px; color: rgba(255,255,255,0.5); }
.cs-cta-card { background: var(--c-bg-soft); border-radius: var(--r-lg); padding: 24px; text-align: center; }
@media (max-width: 900px) { .cs-body { grid-template-columns: 1fr; } .cs-sidebar { position: static; } }

/* Blog */
.blog-layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; padding-top: 64px; padding-bottom: 64px; }
.post-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 28px; margin-bottom: 24px; }
.post-card h2 { font-size: 22px; font-weight: 800; margin: 8px 0; }
.post-card .post-meta { font-size: 13px; color: var(--c-text-muted); }

/* Editorial post list: no card boxes, divider rule between entries */
.post-entry { padding: 36px 0; border-bottom: 1px solid var(--c-border); }
.post-entry:first-child { padding-top: 0; }
.post-entry-meta { font-size: 13px; color: var(--c-text-muted); margin-bottom: 8px; }
.post-entry h2 { font-size: 24px; margin-bottom: 10px; }
.post-entry--featured h2 { font-size: 32px; }
.post-entry-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.post-entry p { color: var(--c-text-soft); margin-bottom: 14px; }
.post-entry-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--c-primary); font-size: 14px; }
.post-entry-link svg { width: 15px; height: 15px; }
.post-content { font-size: 16px; line-height: 1.8; color: var(--c-text-soft); }
.post-content h2, .post-content h3 { color: var(--c-text); margin: 28px 0 12px; font-weight: 800; }
.post-content p { margin-bottom: 16px; }

/* Blog: labeled before/after screenshot frames */
.screenshot-wrap { border: 2px solid var(--c-border-strong); border-radius: var(--r-lg); overflow: hidden; margin: 24px 0; }
.screenshot-wrap--bad { border-color: var(--c-coral); }
.screenshot-wrap--good { border-color: var(--c-primary); }
.screenshot-wrap img { width: 100%; }
.screenshot-label { padding: 10px 16px; font-size: 13px; font-weight: 700; color: var(--c-text); background: var(--c-bg-soft); }
.screenshot-wrap--bad .screenshot-label { background: #FCE7E2; color: var(--c-coral); }
.screenshot-wrap--good .screenshot-label { background: var(--c-primary-light); color: var(--c-primary-dark); }

/* Blog: numbered critique list */
.issue-list { margin: 20px 0; display: flex; flex-direction: column; gap: 16px; }
.issue-list li { display: flex; gap: 16px; align-items: flex-start; }
.issue-num { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: #FCE7E2; color: var(--c-coral); font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.issue-title { display: block; font-weight: 700; color: var(--c-text); margin-bottom: 4px; }

/* Blog: two-column before/after comparison */
.ui-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0; }
@media (max-width: 700px) { .ui-comparison { grid-template-columns: 1fr; } }

/* Blog: principle card grid */
.ui-principle-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 20px 0; }
.ui-principle-card { background: var(--c-bg-soft); border-radius: var(--r-md); padding: 20px; }
.ui-principle-card h3 { font-size: 15px; margin-bottom: 6px; }
.ui-principle-card p { font-size: 14px; color: var(--c-text-muted); margin-bottom: 0; }
@media (max-width: 700px) { .ui-principle-grid { grid-template-columns: 1fr; } }

/* Blog: equipment showcase cards */
.machine-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0; }
.machine-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-lg); overflow: hidden; }
.machine-card-img img { width: 100%; height: 140px; object-fit: cover; }
.machine-card-body { padding: 16px; }
.machine-card-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--c-primary-dark); }
.machine-card-name { font-weight: 700; color: var(--c-text); margin: 6px 0 4px; font-size: 15px; }
.machine-card-spec { font-size: 13px; color: var(--c-text-muted); line-height: 1.5; }
@media (max-width: 900px) { .machine-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .machine-grid { grid-template-columns: 1fr; } }
.sidebar-widget { background: var(--c-bg-soft); border-radius: var(--r-md); padding: 20px; margin-bottom: 20px; }
@media (max-width: 900px) { .blog-layout { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding-top: 64px; padding-bottom: 64px; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; padding: 12px 16px; border: 1px solid var(--c-border-strong); border-radius: var(--r-md); font-family: inherit; font-size: 15px; }
.contact-form label { display: block; font-size: 13px; font-weight: 600; color: var(--c-text-soft); margin-bottom: 6px; }
.form-field { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-primary-glow); }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.contact-info-panel { background: var(--c-bg-soft); border-radius: var(--r-lg); padding: 32px; }
.form-notice { padding: 14px 18px; border-radius: var(--r-md); margin-bottom: 20px; font-size: 14px; font-weight: 600; }
.form-notice--success { background: var(--c-primary-light); color: var(--c-primary-dark); }
.form-notice--error { background: #FCE7E2; color: var(--c-coral); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* Footer */
.footer-main { background: var(--c-bg-dark); color: rgba(255,255,255,0.7); padding: 64px 0 32px; }
.footer-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-brand { max-width: 280px; }
.footer-hq { margin-top: 16px; font-size: 14px; }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col h2 { color: #fff; font-size: 14px; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; margin-bottom: 10px; color: rgba(255,255,255,0.6); }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 40px; padding-top: 24px; display: flex; justify-content: space-between; font-size: 13px; flex-wrap: wrap; gap: 12px; }

/* Animation
   Scroll-reveal (opacity:0 until IntersectionObserver adds .is-visible) was
   removed deliberately: it's a generic AI-template tell, and it has a real
   failure mode where below-the-fold content depending on JS timing never
   becomes visible (e.g. plugin-rendered sections not covered by main.js's
   observer setup). .animate-on-scroll is now a visual no-op kept only so
   existing markup (including in third-party plugin templates) doesn't need
   editing to remain visible. */
.animate-on-scroll { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
