/* ============================================================
   HRtools — Redesigned CSS
   Aesthetic: Organic-Modern | Forest green + warm cream
   Font: DM Sans + DM Mono
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400&family=DM+Mono:wght@400;500&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:           #f5f2eb;
  --bg-card:      #fdfcf8;
  --text:         #1a1f16;
  --text-soft:    #4a5240;
  --muted:        #7d8870;
  --border:       rgba(26, 31, 22, 0.10);
  --border-soft:  rgba(26, 31, 22, 0.06);

  --accent:       #2d6a4f;
  --accent-mid:   #40916c;
  --accent-light: rgba(45, 106, 79, 0.11);
  --accent-glow:  rgba(45, 106, 79, 0.22);

  --ink:          #1b2e22;
  --ink-soft:     #243b2c;

  --sand:         #ede8da;
  --sand-dark:    #e3dccb;

  --shadow-sm:    0 2px 8px rgba(26, 31, 22, 0.06);
  --shadow-md:    0 8px 24px rgba(26, 31, 22, 0.09);
  --shadow-lg:    0 16px 40px rgba(26, 31, 22, 0.13);
  --shadow-xl:    0 24px 56px rgba(26, 31, 22, 0.17);

  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    20px;
  --radius-xl:    28px;

  --transition:   all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 242, 235, 0.92);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  flex-wrap: wrap;
}

.brand {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.brand::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent-mid);
  border-radius: 50%;
  margin-left: 3px;
  vertical-align: super;
}

/* ── Desktop Nav ─────────────────────────────────────────────── */
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 500;
}

.main-nav a {
  color: var(--text-soft);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  letter-spacing: -0.01em;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--accent);
  background: var(--accent-light);
}

.main-nav a.nav-active {
  color: var(--accent);
  background: var(--accent-light);
  font-weight: 600;
}

/* ── Lang Switch ─────────────────────────────────────────────── */
.lang-switch {
  font-size: 0.82rem;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.05em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.lang-switch a {
  color: var(--muted);
  text-decoration: none;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.lang-switch a:hover { color: var(--accent); }
.lang-active { font-weight: 600; color: var(--text); }
.lang-sep { color: var(--border); }

/* ── Hamburger ───────────────────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 12px 0 16px;
  border-top: 1px solid var(--border);
  width: 100%;
}

.mobile-nav.is-open { display: flex; }

.mobile-nav a {
  color: var(--text-soft);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
}

.mobile-nav a:hover { color: var(--accent); background: var(--accent-light); }
.mobile-nav a.nav-active { color: var(--accent); background: var(--accent-light); font-weight: 600; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  background: var(--ink);
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 70% at 85% 50%, rgba(64, 145, 108, 0.22) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 5% 85%, rgba(45, 106, 79, 0.13) 0%, transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 420px;
  height: 420px;
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  background: rgba(64, 145, 108, 0.07);
  border: 1px solid rgba(64, 145, 108, 0.13);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* Hero visual card */
.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  width: 100%;
  max-width: 340px;
  backdrop-filter: blur(8px);
}

.hvc-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-mid);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hvc-label::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent-mid);
  border-radius: 50%;
  flex-shrink: 0;
}

.hvc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.hvc-row:last-child { border-bottom: none; padding-bottom: 0; }

.hvc-tool {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  flex-shrink: 0;
}

.hvc-tag {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(64, 145, 108, 0.22);
  color: var(--accent-mid);
  font-weight: 500;
  white-space: nowrap;
}

.hvc-score {
  display: flex;
  gap: 3px;
  flex-shrink: 0;
}

.hvc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
}

.hvc-dot.filled { background: var(--accent-mid); }

/* Hero text */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-mid);
  margin-bottom: 20px;
  padding: 6px 12px;
  border: 1px solid rgba(64, 145, 108, 0.30);
  border-radius: 999px;
  background: rgba(64, 145, 108, 0.08);
}

.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent-mid);
  border-radius: 50%;
  flex-shrink: 0;
}

h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
}

h1 em {
  font-style: normal;
  color: var(--accent-mid);
}

.subhead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 8px;
  font-weight: 400;
  max-width: 500px;
}

.hero .section-intro {
  color: rgba(255,255,255,0.42);
  font-size: 0.93rem;
  margin-bottom: 6px;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}

/* ── Sections ────────────────────────────────────────────────── */
.section       { padding: 72px 0; }
.section-soft  { background: var(--sand); }
.section-alt   { background: var(--sand-dark); }

h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.15rem);
  letter-spacing: -0.035em;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.2;
}

h3 {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-intro {
  color: var(--text-soft);
  margin-bottom: 28px;
  max-width: 680px;
  font-size: 1rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 500;
  margin-bottom: 12px;
}

.snippet-line {
  margin: 3px 0;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.5;
}

.icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.icon-inline { margin-right: 8px; vertical-align: -3px; }

/* ── Grid ────────────────────────────────────────────────────── */
.grid   { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: rgba(26, 31, 22, 0.16);
}

.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-head h3 { margin: 0; }

.audience-card { cursor: pointer; position: relative; overflow: hidden; }

.audience-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-light) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
  border-radius: inherit;
  pointer-events: none;
}

.audience-card:hover::before { opacity: 1; }

.audience-card.is-active {
  border-color: var(--accent);
  background: var(--accent-light);
  box-shadow: 0 0 0 3px var(--accent-glow), var(--shadow-md);
}

.audience-card.is-active::before { opacity: 1; }

.tool-card { display: flex; flex-direction: column; gap: 10px; cursor: pointer; }

.tool-card .tool-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.tool-card.is-selected {
  border-color: var(--accent);
  background: var(--accent-light);
  box-shadow: 0 0 0 3px var(--accent-glow), var(--shadow-md);
}

.tool-card:focus-visible {
  outline: 3px solid var(--accent-glow);
  outline-offset: 3px;
}

.tool-card .actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
  flex-wrap: wrap;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  letter-spacing: -0.01em;
  font-family: inherit;
  transition: var(--transition);
  white-space: nowrap;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(45, 106, 79, 0.30);
}

.btn.primary:hover {
  background: var(--accent-mid);
  border-color: var(--accent-mid);
  box-shadow: 0 6px 20px rgba(45, 106, 79, 0.40);
  transform: translateY(-1px);
}

.btn.primary-dark {
  background: #ffffff;
  color: var(--ink);
  border-color: #ffffff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

.btn.primary-dark:hover {
  background: rgba(255,255,255,0.92);
  transform: translateY(-1px);
}

.btn.secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn.secondary:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

.btn.ghost {
  background: transparent;
  color: rgba(255,255,255,0.6);
  border-color: rgba(255,255,255,0.18);
}

.btn.ghost:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.07);
}

.btn:focus-visible { outline: 3px solid var(--accent-glow); outline-offset: 3px; }

/* ── Badges ──────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ── List ────────────────────────────────────────────────────── */
.list { padding-left: 0; margin: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }

.list li {
  position: relative;
  padding-left: 18px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
}

/* ── Filter Bar ──────────────────────────────────────────────── */
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 8px 0 24px; }

.filter-reset {
  font-size: 0.87rem;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: var(--transition);
}

.filter-reset:hover { background: var(--accent-light); border-color: var(--accent); }

.filter-empty-message {
  font-size: 0.95rem;
  color: var(--muted);
  padding: 24px;
  text-align: center;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
}

/* ── Eval List ───────────────────────────────────────────────── */
.eval-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 8px; }

.eval-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.93rem;
  color: var(--text-soft);
}

.eval-item::before { content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* ── Why Box ─────────────────────────────────────────────────── */
.why-box {
  background: var(--ink);
  border-radius: var(--radius-xl);
  padding: 40px 44px;
  color: rgba(255,255,255,0.75);
  position: relative;
  overflow: hidden;
}

.why-box::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 280px; height: 280px;
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  background: rgba(64,145,108,0.10);
  border: 1px solid rgba(64,145,108,0.14);
  pointer-events: none;
}

.why-box h2 { color: #fff; }
.why-box p  { color: rgba(255,255,255,0.68); }
.why-box a  { color: var(--accent-mid); }
.why-box a:hover { color: #fff; }

/* ── Contact Form ────────────────────────────────────────────── */
.contact-form { display: grid; gap: 16px; max-width: 540px; }

.contact-form label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  display: block;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  font: inherit;
  font-size: 0.95rem;
  background: var(--bg-card);
  color: var(--text);
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--muted); }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer { background: var(--ink); padding: 36px 0 28px; }

.footer-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px 40px;
  align-items: start;
}

.footer-brand {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.04em;
  color: #fff;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
}

.footer-brand::after {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  background: var(--accent-mid);
  border-radius: 50%;
  margin-left: 3px;
  vertical-align: super;
}

.fineprint { color: rgba(255,255,255,0.38); font-size: 0.84rem; line-height: 1.6; }
.fineprint a { color: rgba(255,255,255,0.55); text-decoration: none; transition: var(--transition); }
.fineprint a:hover { color: #fff; }

.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 12px; }

.footer-links a {
  color: rgba(255,255,255,0.48);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
}

.footer-links a:hover { color: rgba(255,255,255,0.88); }

.footer-copy {
  color: rgba(255,255,255,0.22);
  font-size: 0.78rem;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.07);
  grid-column: 1 / -1;
}

/* ── Animations ──────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-content > * {
  animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-content > *:nth-child(1) { animation-delay: 0.05s; }
.hero-content > *:nth-child(2) { animation-delay: 0.13s; }
.hero-content > *:nth-child(3) { animation-delay: 0.20s; }
.hero-content > *:nth-child(4) { animation-delay: 0.27s; }
.hero-content > *:nth-child(5) { animation-delay: 0.34s; }

.hero-visual {
  animation: fadeUp 0.7s 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .grid      { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .main-nav   { display: none; }
}

@media (max-width: 720px) {
  .grid      { grid-template-columns: 1fr; }
  .grid-2    { grid-template-columns: 1fr; }
  .eval-list { grid-template-columns: 1fr; }
  .container { padding: 0 18px; }
  .section   { padding: 56px 0; }
  .hero      { padding: 72px 0 60px; }
  h1         { font-size: 2.1rem; }
  .why-box   { padding: 28px 24px; }
  .footer-row { grid-template-columns: 1fr; }
}


/* Comparison scorecard table */
.scorecard-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.scorecard-table th,
.scorecard-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.94rem;
}

.scorecard-table th {
  font-weight: 700;
  color: var(--ink-soft);
}
