/* ============================================================
   JaliHR.live — Main Stylesheet
   Brand: Emerald #0E4A38 | Sage #84B59F | Cream #F7F5F0
   Fonts: Georgia (display/headers) | Inter (body)
   ============================================================ */

/* ---------- DESIGN TOKENS ---------- */
:root {
  /* Type scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* JaliHR Brand Palette — Light mode */
  --emerald:        #0E4A38;
  --emerald-mid:    #1F7A5E;
  --emerald-dark:   #08372A;
  --sage:           #84B59F;
  --sage-mid:       #5E997E;
  --sage-light:     #C9DDD0;
  --sage-very-light:#E8F0EB;
  --cream:          #F7F5F0;
  --cream-dark:     #EBE7DC;
  --charcoal:       #2B2F33;
  --charcoal-soft:  #475056;
  --charcoal-light: #6B7280;
  --border:         #E5E7EB;
  --white:          #FFFFFF;
  --red:            #B0322C;
  --amber:          #C68B1F;

  /* Semantic roles */
  --color-bg:        var(--cream);
  --color-surface:   var(--white);
  --color-surface-2: var(--sage-very-light);
  --color-border:    var(--border);
  --color-text:      var(--charcoal);
  --color-text-muted:var(--charcoal-soft);
  --color-text-faint:var(--charcoal-light);
  --color-primary:   var(--emerald);
  --color-accent:    var(--sage);

  /* Fonts */
  --font-display: 'Georgia', 'Times New Roman', serif;
  --font-body:    'Inter', 'Helvetica Neue', sans-serif;

  /* Layout */
  --content-narrow:  700px;
  --content-default: 1100px;
  --content-wide:    1440px;

  /* Radius */
  --radius-sm:   0.375rem;
  --radius-md:   0.5rem;
  --radius-lg:   0.75rem;
  --radius-xl:   1rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(14,74,56,0.08);
  --shadow-md: 0 4px 16px rgba(14,74,56,0.10);
  --shadow-lg: 0 12px 40px rgba(14,74,56,0.14);

  /* Transitions */
  --transition: 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark mode */
[data-theme="dark"] {
  --color-bg:        #0f1a16;
  --color-surface:   #162219;
  --color-surface-2: #1c2e24;
  --color-border:    #2a3d34;
  --color-text:      #d4e0da;
  --color-text-muted:#8fada2;
  --color-text-faint:#5e7a70;
  --color-primary:   #5EB891;
  --color-accent:    #84B59F;
  --emerald:         #5EB891;
  --sage-very-light: #1c2e24;
  --cream:           #0f1a16;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:        #0f1a16;
    --color-surface:   #162219;
    --color-surface-2: #1c2e24;
    --color-border:    #2a3d34;
    --color-text:      #d4e0da;
    --color-text-muted:#8fada2;
    --color-text-faint:#5e7a70;
    --color-primary:   #5EB891;
    --color-accent:    #84B59F;
    --emerald:         #5EB891;
    --sage-very-light: #1c2e24;
    --cream:           #0f1a16;
  }
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
}
img, svg { display: block; max-width: 100%; height: auto; }
ul[role="list"], ol[role="list"] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
h1,h2,h3,h4,h5,h6 { text-wrap: balance; line-height: 1.15; font-family: var(--font-display); }
p, li { text-wrap: pretty; max-width: 80ch; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
::selection { background: rgba(14,74,56,0.15); color: var(--color-text); }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: var(--radius-sm); }

/* ---------- LAYOUT UTILITIES ---------- */
.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-6), 4vw, 80px);
}
.container--narrow { max-width: var(--content-narrow); }
.container--default { max-width: var(--content-default); }

/* ---------- NAVIGATION ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: var(--shadow-sm); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: var(--space-8);
}
.nav__spacer { flex: 1; }
.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  flex-shrink: 0;
}
.nav__logo svg { width: 36px; height: 36px; }
.nav__wordmark {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: bold;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}
.nav__links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition);
  font-weight: 500;
}
.nav__links a:hover,
.nav__links a.active { color: var(--color-primary); }
.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.nav__cta {
  font-size: var(--text-sm);
  font-weight: 600;
  background: var(--color-primary);
  color: var(--white);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: opacity var(--transition), transform var(--transition);
}
.nav__cta:hover { opacity: 0.88; transform: translateY(-1px); }
.theme-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  transition: color var(--transition), background var(--transition);
}
.theme-btn:hover { color: var(--color-primary); background: var(--color-surface-2); }

/* Mobile nav */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  color: var(--color-text);
}
.nav__hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav__mobile {
  display: none;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4) 0 var(--space-6);
  border-top: 1px solid var(--color-border);
}
.nav__mobile a {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  padding: var(--space-3) 0;
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}
.nav__mobile a:hover { color: var(--color-primary); }
.nav__mobile .nav__cta { margin-top: var(--space-4); text-align: center; padding: var(--space-3); }
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .nav__mobile.open { display: flex; }
  .nav__cta:not(.nav__mobile .nav__cta) { display: none; }
}

/* ---------- HERO ---------- */
.hero {
  background: linear-gradient(145deg, var(--emerald-dark) 0%, var(--emerald) 55%, var(--emerald-mid) 100%);
  color: var(--white);
  padding-block: clamp(var(--space-20), 14vw, var(--space-24));
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}
.hero__eyebrow {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: var(--space-5);
}
.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: bold;
  color: var(--white);
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}
.hero__sub {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.80);
  margin-bottom: var(--space-10);
  max-width: 72ch;
  line-height: 1.6;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1;
}
.btn--primary {
  background: var(--white);
  color: var(--emerald);
}
.btn--primary:hover { background: var(--sage-very-light); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn--secondary:hover { border-color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.08); }
.btn--emerald {
  background: var(--emerald);
  color: var(--white);
  border-color: var(--emerald);
}
.btn--emerald:hover { background: var(--emerald-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn--outline:hover { background: var(--color-primary); color: var(--white); }

/* ---------- SECTION BASE ---------- */
.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
}
.section--alt { background: var(--color-surface-2); }
.section--dark {
  background: var(--emerald);
  color: var(--white);
}
.section__label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-mid);
  margin-bottom: var(--space-4);
}
.section--dark .section__label { color: var(--sage-light); }
.section__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: bold;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  letter-spacing: -0.01em;
}
.section--dark .section__title { color: var(--white); }
.section__sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 80ch;
  margin-bottom: var(--space-10);
}
.section--dark .section__sub { color: rgba(255,255,255,0.70); }

/* ---------- CARDS ---------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-mid);
  margin-bottom: var(--space-3);
}
.card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: bold;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
.card__body {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ---------- SERVICE CARDS GRID ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-10);
}
@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}
.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: box-shadow var(--transition), transform var(--transition);
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.service-card__icon {
  width: 44px; height: 44px;
  background: var(--sage-very-light);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  color: var(--emerald);
}
.service-card__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-mid);
}
.service-card__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: bold;
  color: var(--color-text);
  line-height: 1.3;
}
.service-card__body {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  flex: 1;
  line-height: 1.65;
}
.service-card__link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  transition: gap var(--transition);
}
.service-card__link:hover { gap: var(--space-2); }

/* ---------- SIGNAL STRIP — horizontal scroll ---------- */
.signal-strip-wrap {
  margin-top: var(--space-10);
  /* extend past container padding for edge-to-edge scroll */
  margin-inline: calc(-1 * clamp(var(--space-6), 4vw, 80px));
  padding-inline: clamp(var(--space-6), 4vw, 80px);
  overflow-x: auto;
  overflow-y: visible;
  /* smooth scroll on mobile */
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  /* hide scrollbar but keep scrollability */
  scrollbar-width: thin;
  scrollbar-color: var(--sage-light) transparent;
  padding-bottom: var(--space-4);
}
.signal-strip-wrap::-webkit-scrollbar { height: 4px; }
.signal-strip-wrap::-webkit-scrollbar-track { background: transparent; }
.signal-strip-wrap::-webkit-scrollbar-thumb { background: var(--sage-light); border-radius: 2px; }

.signal-strip {
  display: flex;
  gap: var(--space-5);
  width: max-content;
}

.signal-item {
  width: 360px;
  flex-shrink: 0;
  scroll-snap-align: start;
  padding: var(--space-8) var(--space-8) var(--space-8) var(--space-7);
  border-left: 3px solid var(--sage);
  background: var(--color-surface);
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.signal-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.signal-item__tag {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-mid);
}
.signal-item__quote {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  font-style: italic;
  line-height: 1.7;
  flex: 1;
  max-width: none;
}
.signal-item__text {
  font-size: var(--text-base);
  color: var(--color-text);
  font-weight: 600;
  line-height: 1.5;
}
.signal-item__detail {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: none;
}
.signal-item__stat {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}
.signal-item__stat-num {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: bold;
  color: var(--emerald);
}
[data-theme="dark"] .signal-item__stat-num { color: var(--color-primary); }
.signal-item__stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* scroll hint arrow */
.signal-scroll-hint {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-3);
  user-select: none;
}

/* ---------- WHY / OFFER STRIP ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-16);
  align-items: center;
}
.why-grid__text { }
.why-grid__visual {
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-mid) 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-12);
  color: var(--white);
}
.why-stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5) 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.why-stat:last-child { border-bottom: none; }
.why-stat__number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: bold;
  color: var(--white);
  line-height: 1;
}
.why-stat__label {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.70);
}
@media (max-width: 768px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* ---------- ANIMATED SVG GRAPHIC (What We Do sidebar) ---------- */
.service-graphic {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6) 0;
}
.service-graphic svg {
  width: 100%;
  max-width: 220px;
  height: auto;
  overflow: visible;
}
/* Orbit ring animation */
@keyframes spinOrbit {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes spinOrbitRev {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.7; transform: scale(0.92); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
@keyframes dash {
  to { stroke-dashoffset: 0; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.orbit-ring {
  transform-origin: 110px 110px;
  animation: spinOrbit 12s linear infinite;
}
.orbit-ring-rev {
  transform-origin: 110px 110px;
  animation: spinOrbitRev 18s linear infinite;
}
.core-pulse {
  transform-origin: 110px 110px;
  animation: pulse 3s ease-in-out infinite;
}
.float-el {
  animation: float 4s ease-in-out infinite;
}
.float-el-slow {
  animation: float 6s ease-in-out infinite 1s;
}
.draw-line {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: dash 2s ease forwards 0.5s;
}
.fade-up {
  animation: fadeUp 0.8s ease forwards;
}

/* ---------- CTA BAND ---------- */
.cta-band {
  background: var(--emerald);
  color: var(--white);
  padding-block: clamp(var(--space-16), 8vw, var(--space-20));
  text-align: center;
}
.cta-band__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: bold;
  color: var(--white);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}
.cta-band__sub {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.75);
  margin-bottom: var(--space-8);
  max-width: 64ch;
  margin-inline: auto;
}

/* ---------- SERVICE DETAIL (What We Do page) ---------- */
.service-block {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-16);
  align-items: start;
  padding-block: clamp(var(--space-12), 6vw, var(--space-20));
  border-top: 1px solid var(--color-border);
}
.service-block:first-child { border-top: none; }
.service-block__meta { }
.service-block__number {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: bold;
  color: var(--sage-light);
  line-height: 1;
  margin-bottom: var(--space-4);
  user-select: none;
}
[data-theme="dark"] .service-block__number { color: var(--color-border); }
.service-block__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-mid);
}
.service-block__content { }
.service-block__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: bold;
  color: var(--color-text);
  margin-bottom: var(--space-5);
  letter-spacing: -0.01em;
}
.service-block__body {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  line-height: 1.7;
  max-width: none;
}
.service-block__body p + p { margin-top: var(--space-4); }
.service-block__body strong { color: var(--color-text); font-weight: 600; }
.service-covers {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}
.service-covers li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}
.service-covers li::before {
  content: '';
  display: block;
  width: 6px; height: 6px;
  background: var(--sage);
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .service-block {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .service-block__number { font-size: var(--text-2xl); }
}

/* ---------- RESOURCES ---------- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}
@media (max-width: 900px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .articles-grid { grid-template-columns: 1fr; }
}
.article-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-7);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: box-shadow var(--transition), transform var(--transition);
}
.article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.article-card__tag {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-mid);
}
.article-card__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: bold;
  color: var(--color-text);
  line-height: 1.4;
  flex: 1;
}
.article-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}
.article-card__link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}
.article-card__link:hover { gap: 8px; }

/* Calculator */
.calculator {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  max-width: 860px;
}
.calc-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}
.field-group { display: flex; flex-direction: column; gap: var(--space-2); }
.field-group label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.field-group input {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition);
}
.field-group input:focus { border-color: var(--color-primary); outline: none; }
.calc-result {
  background: var(--sage-very-light);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.calc-result__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-mid);
}
.calc-result__number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: bold;
  color: var(--emerald);
}
.calc-result__note { font-size: var(--text-sm); color: var(--color-text-muted); }

/* HRIS Quiz */
.quiz { max-width: 900px; }
.quiz-step { display: none; flex-direction: column; gap: var(--space-5); }
.quiz-step.active { display: flex; }
.quiz-question {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: bold;
  color: var(--color-text);
}
.quiz-options { display: flex; flex-direction: column; gap: var(--space-3); }
.quiz-option {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition);
  background: var(--color-surface);
}
.quiz-option:hover { border-color: var(--color-primary); background: var(--sage-very-light); }
.quiz-option.selected { border-color: var(--color-primary); background: var(--sage-very-light); }
.quiz-option input { accent-color: var(--color-primary); }
.quiz-option span { font-size: var(--text-base); color: var(--color-text); }
.quiz-nav { display: flex; gap: var(--space-3); align-items: center; }
.quiz-progress {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-left: auto;
}
.quiz-result {
  background: var(--emerald);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: none;
  flex-direction: column;
  gap: var(--space-4);
}
.quiz-result.show { display: flex; }
.quiz-result__label { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage); }
.quiz-result__platform { font-family: var(--font-display); font-size: var(--text-xl); font-weight: bold; color: var(--white); }
.quiz-result__why { font-size: var(--text-base); color: rgba(255,255,255,0.80); line-height: 1.6; }

/* Comparison table */
.compare-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.compare-table th {
  background: var(--emerald);
  color: var(--white);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--space-3) var(--space-5);
  text-align: left;
}
.compare-table th:first-child { border-radius: var(--radius-md) 0 0 0; }
.compare-table th:last-child { border-radius: 0 var(--radius-md) 0 0; }
.compare-table td {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  vertical-align: top;
}
.compare-table tr:nth-child(even) td { background: var(--color-surface-2); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td:first-child { font-weight: 700; color: var(--color-primary); }
.table-wrap { overflow-x: auto; border-radius: var(--radius-xl); border: 1px solid var(--color-border); }

/* Top picks */
.picks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}
@media (max-width: 900px) {
  .picks-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .picks-grid { grid-template-columns: 1fr; }
}
.pick-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.pick-card__cat { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage-mid); }
.pick-card__platform { font-family: var(--font-display); font-size: var(--text-lg); font-weight: bold; color: var(--color-text); }
.pick-card__why { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.6; }

/* ---------- PRICING ---------- */
.pricing-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  margin-bottom: var(--space-16);
}
@media (max-width: 768px) { .pricing-intro { grid-template-columns: 1fr; } }
.pricing-intro__block { }
.pricing-intro__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: bold;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.pricing-intro__body { font-size: var(--text-base); color: var(--color-text-muted); line-height: 1.7; }
.delivery-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  counter-reset: steps;
}
.delivery-steps li {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  counter-increment: steps;
}
.step-num {
  flex-shrink: 0;
  width: 28px; height: 28px;
  background: var(--emerald);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-xs);
  font-weight: 700;
  font-family: var(--font-display);
}
.step-body { font-size: var(--text-base); color: var(--color-text-muted); line-height: 1.6; }
.step-body strong { color: var(--color-text); font-weight: 600; }

.pricing-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-16);
}
@media (max-width: 768px) {
  .pricing-tiers { grid-template-columns: 1fr; }
}
.tier-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.tier-card--featured {
  background: var(--emerald);
  border-color: var(--emerald);
  color: var(--white);
  position: relative;
}
.tier-card--featured::before {
  content: 'Most common';
  position: absolute;
  top: -12px;
  left: var(--space-6);
  background: var(--sage);
  color: var(--emerald-dark);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px var(--space-3);
  border-radius: var(--radius-full);
}
.tier-card__name {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-mid);
}
.tier-card--featured .tier-card__name { color: var(--sage-light); }
.tier-card__price {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: bold;
  color: var(--color-text);
  line-height: 1;
}
.tier-card--featured .tier-card__price { color: var(--white); }
.tier-card__price span { font-size: var(--text-sm); font-weight: 400; color: var(--color-text-muted); font-family: var(--font-body); }
.tier-card--featured .tier-card__price span { color: rgba(255,255,255,0.65); }
.tier-card__best {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}
.tier-card--featured .tier-card__best { color: rgba(255,255,255,0.75); }
.tier-card__divider { border: none; border-top: 1px solid var(--color-border); }
.tier-card--featured .tier-card__divider { border-color: rgba(255,255,255,0.18); }
.tier-includes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}
.tier-includes li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}
.tier-card--featured .tier-includes li { color: rgba(255,255,255,0.80); }
.tier-includes li::before {
  content: '';
  display: block;
  width: 16px; height: 16px;
  background: var(--sage-very-light);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 1px;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 8l3.5 3.5L13 5' stroke='%231F7A5E' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}
.tier-card--featured .tier-includes li::before {
  background-color: rgba(255,255,255,0.15);
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 8l3.5 3.5L13 5' stroke='%23C9DDD0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Not included */
.not-included {
  background: var(--color-surface-2);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin-bottom: var(--space-16);
}
.not-included__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: bold;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.not-included__body { font-size: var(--text-base); color: var(--color-text-muted); line-height: 1.7; }
.not-included__body p + p { margin-top: var(--space-3); }

/* FAQ */
.faq { max-width: none; }
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--space-6);
}
.faq-item:first-child { border-top: 1px solid var(--color-border); }
.faq-item__q {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: bold;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  list-style: none;
  user-select: none;
}
.faq-item__q::marker, .faq-item__q::-webkit-details-marker { display: none; }
.faq-chevron {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--color-text-muted);
  transition: transform var(--transition);
}
details[open] .faq-chevron { transform: rotate(180deg); }
.faq-item__a {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  padding-top: var(--space-4);
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--emerald-dark);
  color: rgba(255,255,255,0.70);
  padding-block: clamp(var(--space-12), 6vw, var(--space-16));
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr repeat(2, 1fr);
  gap: var(--space-10);
}
.footer__brand { display: flex; flex-direction: column; gap: var(--space-4); }
.footer__logo { display: flex; align-items: center; gap: var(--space-2); }
.footer__logo svg { width: 32px; height: 32px; }
.footer__wordmark { font-family: var(--font-display); font-size: var(--text-base); font-weight: bold; color: var(--white); }
.footer__tagline { font-size: var(--text-sm); color: rgba(255,255,255,0.55); max-width: 30ch; line-height: 1.6; }
.footer__col-title { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage); margin-bottom: var(--space-4); }
.footer__links { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
.footer__links a { font-size: var(--text-sm); color: rgba(255,255,255,0.60); text-decoration: none; transition: color var(--transition); }
.footer__links a:hover { color: var(--white); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer__copy { font-size: var(--text-xs); color: rgba(255,255,255,0.40); }
@media (max-width: 640px) {
  .footer__inner { grid-template-columns: 1fr; gap: var(--space-8); }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- PAGE HEADER (inner pages) ---------- */
.page-header {
  background: linear-gradient(145deg, var(--emerald-dark) 0%, var(--emerald) 100%);
  color: var(--white);
  padding-block: clamp(var(--space-16), 8vw, var(--space-20));
}
.page-header__eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: var(--space-4);
}
.page-header__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: bold;
  color: var(--white);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}
.page-header__sub {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.75);
  max-width: 72ch;
  line-height: 1.65;
}

/* ---------- UTILITIES ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }
.mt-12 { margin-top: var(--space-12); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-10 { margin-bottom: var(--space-10); }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

/* Page transition fade */
.page-fade { animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
