:root {
  --c-bg: #ffffff;
  --c-surface: #f6fafb;
  --c-border: #d8e7ea;
  --c-text: #0f172a;
  --c-text-muted: #4a6168;
  /* PharmIT teal/cyan brand palette (from logo gradient) */
  --c-primary: #1A95A0;
  --c-primary-dark: #0E5C6E;
  --c-primary-bright: #2EC4C8;
  --c-accent: #2EC4C8;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(14, 92, 110, 0.05), 0 1px 3px rgba(14, 92, 110, 0.07);
  --shadow-md: 0 4px 6px -1px rgba(14, 92, 110, 0.09), 0 2px 4px -2px rgba(14, 92, 110, 0.05);
  --shadow-lg: 0 10px 25px -5px rgba(14, 92, 110, 0.12), 0 4px 12px -2px rgba(14, 92, 110, 0.06);
}

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

html { scroll-behavior: smooth; }

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

a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-primary-dark); }

img { max-width: 100%; display: block; }

ul { list-style: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* TOPBAR */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--c-border);
}
.topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  height: 40px;
}
.brand img {
  height: 36px;
  width: auto;
  display: block;
}
.brand img.brand-logo-white { height: 28px; }
.topnav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 500;
}
.topnav a { color: var(--c-text-muted); }
.topnav a:hover { color: var(--c-text); }

/* CTAs */
.cta-primary,
.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  white-space: nowrap;
}
.cta-primary {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark));
  color: white;
  box-shadow: var(--shadow-sm);
}
.cta-primary:hover {
  background: linear-gradient(135deg, var(--c-primary-dark), var(--c-primary-dark));
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.cta-secondary {
  background: white;
  color: var(--c-text);
  border: 1px solid var(--c-border);
}
.cta-secondary:hover {
  border-color: var(--c-text);
  color: var(--c-text);
}
.lg {
  padding: 13px 28px;
  font-size: 15px;
  border-radius: 12px;
}

/* HERO */
.hero {
  padding: 80px 0 100px;
  background: linear-gradient(180deg, #e6f8f9 0%, #ffffff 70%);
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-primary-dark);
  background: rgba(46, 196, 200, 0.12);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(36px, 5.6vw, 64px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  max-width: 820px;
}
.grad {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--c-text-muted);
  max-width: 680px;
  margin-bottom: 36px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 13px;
  color: var(--c-text-muted);
  font-weight: 500;
}

/* SECTION HEADINGS */
.section-title {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 16px;
}
.section-sub {
  text-align: center;
  color: var(--c-text-muted);
  font-size: 17px;
  max-width: 620px;
  margin: 0 auto 56px;
}

/* APPS */
.apps {
  padding: 90px 0;
}
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.app-card {
  display: block;
  padding: 32px 28px;
  background: white;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  color: var(--c-text);
}
.app-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--c-primary);
  color: var(--c-text);
}
.app-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
}
.app-icon.erp  { background: linear-gradient(135deg, #cef4f5, #2EC4C8); color: #0E5C6E; }
.app-icon.sfa  { background: linear-gradient(135deg, #dcfce7, #4ade80); color: #166534; }
.app-icon.hrms { background: linear-gradient(135deg, #fef3c7, #fcd34d); color: #92400e; }
.app-icon.lms  { background: linear-gradient(135deg, #ede9fe, #c4b5fd); color: #5b21b6; }
.app-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.app-card p {
  color: var(--c-text-muted);
  font-size: 15px;
  margin-bottom: 18px;
}
.app-features {
  margin-bottom: 22px;
}
.app-features li {
  font-size: 14px;
  color: var(--c-text-muted);
  padding: 5px 0 5px 22px;
  position: relative;
}
.app-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2300a86b'%3E%3Cpath d='M13.485 4.515a1 1 0 010 1.414l-6.5 6.5a1 1 0 01-1.414 0l-3-3a1 1 0 011.414-1.414L6.278 10.31l5.793-5.793a1 1 0 011.414 0z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}
.app-link {
  display: inline-block;
  font-weight: 600;
  font-size: 14px;
  color: var(--c-primary);
}
.app-link.badge-soon {
  color: var(--c-text-muted);
  background: var(--c-surface);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* WHY */
.why {
  padding: 90px 0;
  background: var(--c-surface);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}
.why-card {
  padding: 30px 26px;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
}
.why-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-primary);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.why-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.why-card p {
  color: var(--c-text-muted);
  font-size: 15px;
}

/* CTA BAND */
.cta-band {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--c-primary-dark) 0%, var(--c-primary) 60%, var(--c-primary-bright) 100%);
  color: white;
}
.cta-band-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.cta-band p {
  opacity: 0.9;
  font-size: 16px;
}
.cta-band-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cta-band .cta-primary {
  background: white;
  color: var(--c-primary);
}
.cta-band .cta-primary:hover { background: #f1f5f9; color: var(--c-primary-dark); }
.cta-band .cta-secondary {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.35);
}
.cta-band .cta-secondary:hover { border-color: white; color: white; background: rgba(255,255,255,0.06); }

/* CONTACT */
.contact {
  padding: 90px 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.contact-card {
  padding: 28px;
  background: white;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  text-align: center;
}
.contact-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.contact-card p {
  color: var(--c-text-muted);
  font-size: 14px;
  margin-bottom: 8px;
}
.contact-card a {
  font-weight: 600;
  font-size: 15px;
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--c-border);
  padding: 32px 0;
  background: var(--c-surface);
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--c-text-muted);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--c-text);
}
.footer-links {
  display: flex;
  gap: 18px;
}
.footer-links a {
  color: var(--c-text-muted);
}
.footer-links a:hover { color: var(--c-text); }

/* RESPONSIVE */
@media (max-width: 720px) {
  .topnav a:not(.cta-primary):not(.cta-secondary) { display: none; }
  .topnav { gap: 10px; }
  .hero { padding: 56px 0 70px; }
  .apps, .why, .contact { padding: 60px 0; }
  .cta-band { padding: 56px 0; }
  .cta-band-row { flex-direction: column; align-items: flex-start; }
}

/* ────── Accessibility — skip link + visually-hidden ────── */
.visually-hidden-focusable {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.visually-hidden-focusable:focus {
  position: fixed; top: 12px; left: 12px;
  width: auto; height: auto; padding: 10px 16px; margin: 0;
  clip: auto; overflow: visible; white-space: normal;
  background: var(--c-text); color: white; border-radius: 8px;
  z-index: 9999; font-size: 14px; font-weight: 600;
}

/* ────── FAQ ────── */
.faq { padding: 90px 0; background: var(--c-surface); }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: white;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow .15s ease;
}
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  position: relative;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 {
  display: inline;
  font-size: 16px;
  font-weight: 600;
  color: var(--c-text);
  letter-spacing: -0.005em;
  margin: 0;
}
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--c-text-muted);
  font-weight: 400;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
  padding: 0 22px 18px;
  color: var(--c-text-muted);
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}
.faq-item p a { color: var(--c-primary); font-weight: 500; }

/* ────── Article-card wrapping for app cards (SEO semantics) ────── */
.app-card { padding: 0; }
.app-card > a {
  display: block;
  padding: 32px 28px;
  color: var(--c-text);
  height: 100%;
}
.app-card > a:hover { color: var(--c-text); }

@media (max-width: 720px) {
  .faq { padding: 60px 0; }
  .faq-item summary { padding: 16px 18px; }
  .faq-item summary::after { right: 18px; }
  .faq-item p { padding: 0 18px 16px; }
}

/* ────── Sign-in dropdown (multi-app) ────── */
.signin-dd {
  position: relative;
}
.signin-dd-btn {
  background: white;
  color: var(--c-text);
  border: 1px solid var(--c-border);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 16px 9px 18px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color .15s ease;
}
.signin-dd-btn:hover { border-color: var(--c-primary); }
.signin-dd-btn::after {
  content: '';
  width: 8px; height: 8px;
  border-right: 2px solid var(--c-text-muted);
  border-bottom: 2px solid var(--c-text-muted);
  transform: rotate(45deg);
  display: inline-block;
  margin-left: 4px;
  margin-top: -3px;
}
.signin-dd-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 280px;
  background: white;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: none;
  z-index: 60;
}
.signin-dd[open] .signin-dd-menu,
.signin-dd:focus-within .signin-dd-menu { display: block; }
.signin-dd-menu a {
  display: flex;
  flex-direction: column;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--c-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  transition: background .12s ease;
}
.signin-dd-menu a:hover { background: var(--c-surface); color: var(--c-text); }
.signin-dd-menu a small {
  font-size: 12px;
  color: var(--c-text-muted);
  font-weight: 400;
  margin-top: 2px;
}
.signin-dd-menu .dd-divider {
  height: 1px;
  background: var(--c-border);
  margin: 6px 4px;
}
.signin-dd-menu .dd-label {
  font-size: 11px;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 14px 4px;
  font-weight: 600;
}

/* Footer logo */
.footer-brand img {
  height: 22px;
  width: auto;
  display: block;
}
