/* HumHub shared styles — used across all pages */

:root {
  --hh-teal: #1b8291;
  --hh-teal-dark: #166e7b;
  --hh-teal-soft: #e1f1f4;
  --hh-text: #2c2c2c;
  --hh-muted: #6b7280;
  --hh-bg: #ffffff;
  --hh-bg-alt: #f7f8f9;
  --hh-border: #e5e7eb;
  --hh-heading: #1f2937;
  --hh-font: 'Open Sans', system-ui, -apple-system, sans-serif;
  --hh-display: 'Source Sans 3', 'Open Sans', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--hh-font);
  color: var(--hh-text);
  background: var(--hh-bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  zoom: 1.15;
}
a { color: var(--hh-teal); text-decoration: none; }
a:hover { color: var(--hh-teal-dark); }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 980px; margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.2px;
  transition: all 300ms ease;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.2;
  text-align: center;
}
.btn-primary { background: var(--hh-teal); color: #fff; border-color: var(--hh-teal); }
.btn-primary:hover { background: var(--hh-teal-dark); border-color: var(--hh-teal-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--hh-teal); border-color: var(--hh-teal); }
.btn-outline:hover { background: var(--hh-teal); color: #fff; }
.btn-demo { background: var(--hh-teal); color: #fff; padding: 10px 22px; font-size: 14px; border-radius: 4px; }
.btn-demo:hover { background: var(--hh-teal-dark); color: #fff; }
.btn-lg { padding: 14px 36px; font-size: 16px; }
.btn-block { display: block; width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--hh-border); }
/* padding-top/bottom only — leave .container's horizontal padding intact. */
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.logo img { height: 38px; width: auto; filter: hue-rotate(8deg) brightness(0.86); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav-list { list-style: none; padding: 0; margin: 0; display: flex; gap: 26px; align-items: center; }
.nav-list > li { position: relative; }
.nav-list a { color: var(--hh-heading); font-weight: 600; font-size: 14.5px; }
.nav-list a:hover, .nav-list a.active { color: var(--hh-teal); }
.nav-list .has-sub > a::after {
  content: ""; display: inline-block; margin-left: 6px;
  border: solid currentColor; border-width: 0 2px 2px 0; padding: 3px;
  transform: rotate(45deg) translateY(-2px); opacity: 0.6;
}
.submenu {
  position: absolute; top: 100%; left: -16px; min-width: 220px;
  background: #fff; border-radius: 10px;
  padding: 6px; margin-top: 8px; list-style: none;
  box-shadow: 0 12px 32px rgba(0,0,0,0.10), 0 0 0 1px var(--hh-border);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: all 160ms ease;
}
.has-sub:hover .submenu, .has-sub:focus-within .submenu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.submenu a { display: block; padding: 9px 12px; border-radius: 6px; font-weight: 500; transition: background-color 300ms ease, color 300ms ease; }
.submenu a:hover, .mega-col a:hover { background: var(--hh-bg-alt); }

/* Mega-menu — multi-column submenu (uses <div>s so we can drop <li> wrappers) */
.has-sub.has-mega > .submenu {
  position: absolute; top: 100%; left: -24px; right: auto;
  width: 620px;
  background: #fff;
  padding: 20px 22px;
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(0,0,0,0.08), 0 0 0 1px var(--hh-border);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all 160ms ease;
  z-index: 50;
}
.has-sub.has-mega:hover > .submenu,
.has-sub.has-mega:focus-within > .submenu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.mega-cols {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 28px;
}
.mega-col { display: flex; flex-direction: column; gap: 4px; }
.mega-col .mega-title {
  font-family: var(--hh-display);
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.8px; text-transform: uppercase;
  color: var(--hh-muted);
  padding: 4px 10px 10px;
  margin: 0;
  border-bottom: 1px solid var(--hh-border);
  margin-bottom: 6px;
}
.mega-col a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 10px;
  border-radius: 8px;
  font-weight: 600; font-size: 14px;
  color: var(--hh-heading);
  transition: background-color 300ms ease, color 300ms ease;
}
.mega-col a .mega-icon {
  width: 30px; height: 30px; border-radius: 7px;
  background: var(--hh-teal-soft); color: var(--hh-teal);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 160ms ease, color 160ms ease;
}
.mega-col a:hover .mega-icon { background: var(--hh-teal); color: #fff; }
.mega-col a .mega-icon svg { width: 16px; height: 16px; }
.mega-col a .mega-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mega-col a .mega-text strong { font-weight: 600; font-size: 14px; line-height: 1.2; }
.mega-col a .mega-text span {
  font-weight: 400; font-size: 12px; color: var(--hh-muted);
  line-height: 1.3;
}
.mega-col a:hover .mega-text span { color: var(--hh-muted); }
.mega-col .mega-cta {
  margin-top: 8px;
  font-size: 12.5px; font-weight: 700;
  color: var(--hh-teal);
  padding: 8px 10px;
  border-top: 1px solid var(--hh-border);
  border-radius: 0;
  display: inline-flex; align-items: center; gap: 6px;
}
.mega-col .mega-cta::after { content: "→"; transition: transform 160ms ease; }
.mega-col .mega-cta:hover { background: transparent; color: var(--hh-teal-dark); }
.mega-col .mega-cta:hover::after { transform: translateX(3px); }

@media (max-width: 760px) {
  .has-sub.has-mega .submenu { width: 320px; padding: 14px; }
  .mega-cols { grid-template-columns: 1fr; gap: 16px; }
}

/* Language picker — pill button */
.lang-picker { position: relative; }
.lang-picker > a.lang {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px 8px 11px;
  border: 1px solid var(--hh-border);
  border-radius: 99px;
  background: #fff;
  font-weight: 600; font-size: 13px;
  color: var(--hh-heading);
  line-height: 1; cursor: pointer;
  transition: border-color 300ms ease, background 300ms ease;
}
.lang-picker > a.lang:hover { border-color: var(--hh-teal); color: var(--hh-teal); background: var(--hh-teal-soft); }
.lang-picker > a.lang::after {
  content: ""; display: inline-block;
  width: 7px; height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-2px,-2px);
  opacity: 0.55; margin-left: 2px;
}
.lang-flag {
  display: inline-block; width: 18px; height: 14px;
  border-radius: 2px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
  flex-shrink: 0;
}
.lang-flag svg { display: block; width: 100%; height: 100%; }

.lang-picker .submenu { left: auto; right: 0; min-width: 180px; }
.lang-picker .submenu a {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 14px;
}
.lang-picker .submenu a.is-current {
  background: var(--hh-teal-soft); color: var(--hh-teal);
}
.lang-picker .submenu a.is-current::after {
  content: "✓"; margin-left: auto; font-size: 13px; color: var(--hh-teal); font-weight: 700;
}
.lang-picker .submenu .lang-name { flex: 1; }
.lang-picker .submenu .lang-code {
  font-size: 11px; color: var(--hh-muted);
  font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase;
}
.lang-picker .submenu a.is-current .lang-code { color: var(--hh-teal); opacity: 0.7; }
.lang { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.lang img { width: 18px; height: 18px; border-radius: 2px; }
.mobile-toggle { display: none; }

/* Hero (homepage) */
.hero { padding: 70px 0 80px; background: #fff; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.eyebrow { color: var(--hh-teal); font-weight: 700; font-size: 22px; margin: 0 0 10px; min-height: 32px; font-family: var(--hh-display); }
.eyebrow .tw-caret {
  display: inline-block; margin-left: 2px;
  color: var(--hh-teal); font-weight: 400;
  animation: tw-blink 1s steps(1) infinite;
}
@keyframes tw-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .eyebrow .tw-caret { animation: none; opacity: 0.6; }
}
.hero h1 { font-family: var(--hh-display); font-size: 52px; line-height: 1.1; color: var(--hh-heading); margin: 0 0 22px; font-weight: 700; letter-spacing: -0.5px; }
.hero p.lead { font-size: 18px; color: #4b5563; margin: 0 0 32px; max-width: 520px; }
.hero-image { display: flex; justify-content: center; align-items: center; }
.hero-image img { max-width: 520px; width: 100%; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Dark hero — used on Professional Edition */
.hero.hero-dark { background: #2D3340; }
.hero.hero-dark h1 { color: #fff; }
.hero.hero-dark p.lead { color: #cbd5e1; }
.hero.hero-dark .btn-outline { color: #fff; border-color: #fff; }
.hero.hero-dark .btn-outline:hover { background: #fff; color: #2D3340; }

/* Sections */
section { padding: 80px 0; }
section h2 { font-family: var(--hh-display); font-size: 36px; color: var(--hh-heading); margin: 0 0 18px; font-weight: 700; line-height: 1.2; letter-spacing: -0.3px; }
section h3 { font-family: var(--hh-display); font-size: 22px; color: var(--hh-heading); margin: 0 0 12px; font-weight: 700; }
section h4 { font-family: var(--hh-display); font-size: 17px; color: var(--hh-heading); margin: 0 0 8px; font-weight: 700; }
.section-center { text-align: center; }
.section-center h2 { margin-bottom: 50px; }

/* Page-title hero (subpages) */
.page-hero {
  padding: 90px 0 60px;
  background: linear-gradient(180deg, var(--hh-teal-soft) 0%, #fff 100%);
  text-align: center;
}
.page-hero h1 {
  font-family: var(--hh-display);
  font-size: 48px; line-height: 1.1;
  color: var(--hh-heading);
  margin: 0 0 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.page-hero p {
  max-width: 760px; margin: 0 auto 28px;
  font-size: 18px; color: #4b5563;
}
.page-hero .hero-actions { justify-content: center; }

/* Client logos */
.clients { padding: 70px 0; background: var(--hh-bg-alt); }
.clients h2 { text-align: center; font-size: 26px; margin-bottom: 40px; color: var(--hh-heading); }
.client-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 24px 40px;
  align-items: center;
  justify-items: center;
}
.client-grid img {
  max-height: 96px;
  max-width: 100%;
  width: auto; height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.75;
  transition: filter 200ms ease, opacity 200ms ease;
}
.client-grid img:hover { filter: grayscale(0); opacity: 1; }

/* Intro */
.intro { text-align: center; padding: 90px 0; }
.intro p { max-width: 820px; margin: 0 auto 28px; color: #4b5563; font-size: 17px; }
.feature-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px 30px; max-width: 880px; margin: 36px auto 0; text-align: left;
}
.feature-list li { list-style: none; padding-left: 32px; position: relative; color: #374151; font-size: 15.5px; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 18px; height: 10px;
  border-left: 3px solid var(--hh-teal); border-bottom: 3px solid var(--hh-teal);
  transform: rotate(-45deg);
}

/* Intro with teal background — used on homepage below client logos */
.intro.intro-teal {
  background: var(--hh-teal-soft);
  color: var(--hh-heading);
  position: relative;
  overflow: hidden;
}
.intro.intro-teal::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 280px at 15% 0%, rgba(33,161,161,0.18), transparent 70%),
    radial-gradient(ellipse 500px 240px at 85% 100%, rgba(33,161,161,0.14), transparent 70%);
  pointer-events: none;
}
.intro.intro-teal::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 80px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'><path d='M0,40 C240,80 480,0 720,30 C960,60 1200,80 1440,40 L1440,80 L0,80 Z' fill='%23ffffff'/></svg>");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
}
.intro.intro-teal > .container-narrow { position: relative; z-index: 1; }
.intro.intro-teal h3, .intro.intro-teal h2 { color: var(--hh-heading); }
.intro.intro-teal p { color: #4b5563; }
.intro.intro-teal .feature-list li { color: #374151; }
.intro.intro-teal .feature-list li::before {
  border-left-color: var(--hh-teal); border-bottom-color: var(--hh-teal);
}

/* Pillar / row */
.pillars { padding: 40px 0 100px; }
.pillars h2.center { text-align: center; margin-bottom: 60px; }
.pillar { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin-bottom: 60px; }
.pillar:last-child { margin-bottom: 0; }
.pillar.reverse .pillar-img { order: 2; }
.pillar-img { display: flex; justify-content: center; }
.pillar-img img { max-width: 460px; width: 100%; }
.pillar-text h3 { font-size: 28px; margin-bottom: 16px; }
.pillar-text p { color: #4b5563; font-size: 17px; line-height: 1.7; margin: 0 0 16px; }
.pillar-text ul { padding-left: 18px; color: #4b5563; font-size: 15.5px; line-height: 1.8; margin: 8px 0; }
.pillar-text ul li { margin-bottom: 4px; }
.pillar-text ul li strong { color: var(--hh-heading); }
.pillar-text .btn { margin-top: 14px; }

/* Use-case cards (large) */
.usecase-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px; max-width: 1100px; margin: 0 auto;
}
.usecase-card {
  position: relative;
  display: flex; flex-direction: column;
  background: #fff; border: 1.5px solid var(--hh-border);
  border-radius: 14px;
  padding: 32px 30px 28px;
  text-decoration: none; color: var(--hh-text);
  transition: all 200ms ease;
  overflow: hidden;
}
.usecase-card:hover {
  border-color: var(--hh-teal);
  box-shadow: 0 14px 36px rgba(33,161,161,0.10);
  transform: translateY(-2px);
}
.usecase-card .uc-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--hh-teal-soft); color: var(--hh-teal);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  transition: background 200ms ease;
}
.usecase-card:hover .uc-icon { background: var(--hh-teal); color: #fff; }
.usecase-card .uc-icon svg { width: 28px; height: 28px; }
.usecase-card h3 {
  font-family: var(--hh-display); font-size: 22px;
  color: var(--hh-heading); margin: 0 0 8px;
}
.usecase-card p {
  margin: 0 0 18px; color: var(--hh-muted);
  font-size: 14.5px; line-height: 1.55;
}
.usecase-card .uc-modules {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 22px;
}
.usecase-card .uc-modules span {
  font-size: 11.5px; font-weight: 600;
  background: var(--hh-bg-alt); color: var(--hh-heading);
  padding: 4px 10px; border-radius: 99px;
  border: 1px solid var(--hh-border);
}
.usecase-card .uc-arrow {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 14px; color: var(--hh-teal);
}
.usecase-card .uc-arrow::after {
  content: "→";
  transition: transform 160ms ease;
}
.usecase-card:hover .uc-arrow::after { transform: translateX(4px); }
@media (max-width: 760px) { .usecase-grid { grid-template-columns: 1fr; } }

/* Use-case detail page sections */
.uc-features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px; max-width: 1100px; margin: 0 auto;
}
.uc-feature {
  background: #fff; border: 1px solid var(--hh-border);
  border-radius: 12px; padding: 28px 26px 26px;
  display: flex; flex-direction: column;
}
.uc-feature .uc-feat-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--hh-teal-soft); color: var(--hh-teal);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.uc-feature .uc-feat-icon svg { width: 22px; height: 22px; }
.uc-feature h3 {
  font-family: var(--hh-display); font-size: 18px;
  color: var(--hh-heading); margin: 0 0 8px;
}
.uc-feature p {
  margin: 0; font-size: 14.5px; color: var(--hh-muted); line-height: 1.55;
}
@media (max-width: 900px) { .uc-features-grid { grid-template-columns: 1fr; } }

/* "Who uses it" checklist */
.uc-audience {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px; max-width: 820px; margin: 0 auto;
  list-style: none; padding: 0;
}
.uc-audience li {
  position: relative; padding: 16px 18px 16px 50px;
  background: #fff; border: 1px solid var(--hh-border);
  border-radius: 10px;
  font-size: 14.5px; color: var(--hh-text); line-height: 1.5;
}
.uc-audience li strong { color: var(--hh-heading); display: block; font-family: var(--hh-display); font-size: 15px; margin-bottom: 2px; }
.uc-audience li::before {
  content: ""; position: absolute; left: 18px; top: 20px;
  width: 18px; height: 10px;
  border-left: 2.5px solid var(--hh-teal); border-bottom: 2.5px solid var(--hh-teal);
  transform: rotate(-45deg);
}
@media (max-width: 600px) { .uc-audience { grid-template-columns: 1fr; } }

/* Related use-cases (smaller cards on detail page) */
.uc-related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px; max-width: 1100px; margin: 0 auto;
}
.uc-related {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  background: #fff; border: 1px solid var(--hh-border);
  border-radius: 10px;
  text-decoration: none; color: var(--hh-heading);
  transition: all 160ms ease;
}
.uc-related:hover { border-color: var(--hh-teal); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(33,161,161,0.08); }
.uc-related .ucr-icon {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--hh-teal-soft); color: var(--hh-teal);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.uc-related .ucr-icon svg { width: 18px; height: 18px; }
.uc-related .ucr-text {
  display: flex; flex-direction: column; gap: 2px;
  font-family: var(--hh-display); font-weight: 600; font-size: 14px;
}
.uc-related .ucr-text span { font-family: var(--hh-font); font-weight: 500; font-size: 12.5px; color: var(--hh-muted); }
@media (max-width: 760px) { .uc-related-grid { grid-template-columns: 1fr; } }
.cat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; max-width: 1080px; margin: 0 auto;
}
.cat-card {
  background: #fff; border: 1px solid var(--hh-border);
  border-radius: 10px; padding: 18px 18px 16px;
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: var(--hh-heading);
  transition: all 160ms ease;
}
.cat-card:hover { border-color: var(--hh-teal); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(33,161,161,0.08); }
.cat-card .cat-icon {
  width: 38px; height: 38px; border-radius: 9px;
  background: var(--hh-teal-soft); color: var(--hh-teal);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cat-card .cat-icon svg { width: 20px; height: 20px; }
.cat-card .cat-text { display: flex; flex-direction: column; gap: 2px; }
.cat-card .cat-name { font-family: var(--hh-display); font-weight: 700; font-size: 15px; line-height: 1.2; }
.cat-card .cat-count { font-size: 12px; color: var(--hh-muted); font-weight: 500; }
@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .cat-grid { grid-template-columns: 1fr; } }

/* Modules "Free vs Premium" duet */
.module-duet {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  max-width: 1080px; margin: 0 auto;
}
.module-duet .duet-card {
  border: 1.5px solid var(--hh-border); border-radius: 14px;
  padding: 32px 30px;
  background: #fff;
  display: flex; flex-direction: column;
}
.module-duet .duet-card.premium {
  background: linear-gradient(180deg, #fff 0%, var(--hh-teal-soft) 130%);
  border-color: var(--hh-teal);
}
.module-duet .duet-card .duet-eyebrow {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.6px;
  text-transform: uppercase; color: var(--hh-teal);
  margin: 0 0 8px;
}
.module-duet .duet-card h3 {
  font-family: var(--hh-display); font-size: 24px; color: var(--hh-heading);
  margin: 0 0 8px;
}
.module-duet .duet-card p { color: var(--hh-muted); margin: 0 0 18px; font-size: 14.5px; line-height: 1.55; }
.module-duet .duet-card ul {
  list-style: none; padding: 0; margin: 0 0 22px;
  display: flex; flex-direction: column; gap: 8px;
}
.module-duet .duet-card ul li {
  position: relative; padding-left: 22px; font-size: 14px; color: var(--hh-text);
}
.module-duet .duet-card ul li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 12px; height: 7px;
  border-left: 2px solid var(--hh-teal); border-bottom: 2px solid var(--hh-teal);
  transform: rotate(-45deg);
}
.module-duet .duet-card .duet-cta { margin-top: auto; }
@media (max-width: 760px) { .module-duet { grid-template-columns: 1fr; } }

/* Marketplace cards */
.marketplace { background: var(--hh-bg-alt); padding: 90px 0; }
.marketplace h2 { text-align: center; }
.marketplace-lead { max-width: 780px; margin: 0 auto 50px; text-align: center; color: #4b5563; font-size: 17px; }
.module-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 40px; }
/* Use-case pages render a narrower 4-up grid via this modifier instead of an inline style,
   so the responsive @media overrides below still apply on mobile. */
.module-grid-four { max-width: 1080px; margin-left: auto; margin-right: auto; }
.module-card {
  background: #fff; border: 1px solid var(--hh-border); border-radius: 8px;
  padding: 24px 22px; display: flex; gap: 16px; align-items: flex-start;
  transition: all 200ms ease;
  color: inherit; text-decoration: none;
}
.module-card:hover { border-color: var(--hh-teal); box-shadow: 0 8px 24px rgba(33,161,161,0.08); transform: translateY(-2px); }
.module-card img { width: 44px; height: 44px; flex-shrink: 0; border-radius: 8px; }
.module-card h4 { margin: 0 0 4px; font-size: 16px; }
.module-card p { margin: 0; font-size: 13.5px; color: var(--hh-muted); line-height: 1.5; }
.marketplace-cta { text-align: center; margin-top: 20px; }

/* Features */
.features { padding: 100px 0; }
.features h2 { text-align: center; margin-bottom: 56px; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 32px; }
.feature-item .feature-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 2px solid var(--hh-teal); }
.feature-item .feature-icon { color: var(--hh-teal); flex-shrink: 0; }
.feature-item h4 { font-size: 17px; margin: 0; }
.feature-item p { color: var(--hh-muted); font-size: 14.5px; line-height: 1.65; margin: 0; }

/* Two-up */
.twocol { background: var(--hh-bg-alt); padding: 90px 0; }
.twocol h2 { text-align: center; margin-bottom: 50px; }
.twocol-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.twocol-card { background: #fff; padding: 38px 36px; border-radius: 10px; border: 1px solid var(--hh-border); }
.twocol-card h3 { color: var(--hh-teal); font-size: 22px; margin-bottom: 14px; }
.twocol-card p { color: #4b5563; font-size: 16px; line-height: 1.7; margin: 0; }

/* CTA */
.cta-block { text-align: center; padding: 90px 0; }
.cta-block.alt { background: var(--hh-teal); color: #fff; }
.cta-block.alt h2 { color: #fff; }
.cta-block.alt .btn-primary { background: #fff; color: var(--hh-teal); border-color: #fff; }
.cta-block.alt .btn-primary:hover { background: var(--hh-heading); color: #fff; border-color: var(--hh-heading); }
.cta-block.alt .btn-outline { color: #fff; border-color: #fff; }
.cta-block.alt .btn-outline:hover { background: #fff; color: var(--hh-teal); }
.cta-block p { max-width: 700px; margin: 0 auto 32px; font-size: 17px; color: inherit; opacity: 0.92; }

/* Split CTA */
.cta-split { background: var(--hh-bg-alt); padding: 90px 0; }
.cta-split .container { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.cta-split-panel { border-radius: 12px; padding: 48px 40px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.cta-split-demo { background: var(--hh-heading); }
.cta-split-contact { background: var(--hh-teal); }
.cta-split-panel h2 { font-size: 26px; margin: 0; color: #fff; }
.cta-split-panel p { color: rgba(255,255,255,.85); font-size: 16px; line-height: 1.7; margin: 0; flex-grow: 1; }
.cta-split-panel .btn { margin-top: 8px; background: #fff; border-color: #fff; }
.cta-split-demo .btn { color: var(--hh-teal); }
.cta-split-demo .btn:hover { background: transparent; color: #fff; }
.cta-split-contact .btn { color: var(--hh-heading); }
.cta-split-contact .btn:hover { background: transparent; color: #fff; }
@media (max-width: 760px) { .cta-split .container { grid-template-columns: 1fr; } .cta-split-panel { padding: 36px 28px; } }

/* Comparison table */
.compare-wrap { overflow-x: auto; margin-top: 30px; }
.compare-table {
  width: 100%; border-collapse: collapse; min-width: 700px;
  background: #fff; border-radius: 10px; overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,0.04);
  border: 1px solid var(--hh-border);
}
.compare-table th, .compare-table td {
  padding: 18px 22px; text-align: left;
  border-bottom: 1px solid var(--hh-border);
  font-size: 15px; vertical-align: middle;
}
.compare-table thead th {
  background: #fff;
  font-family: var(--hh-display); font-size: 17px;
  color: var(--hh-heading); font-weight: 700;
}
.compare-table th:nth-child(3),
.compare-table td:nth-child(3) { background: rgba(33, 161, 161, 0.10); }
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table td.center { text-align: center; }
.compare-check {
  display: inline-block; width: 22px; height: 22px; border-radius: 50%;
  background: var(--hh-teal); color: #fff;
  text-align: center; line-height: 22px; font-size: 13px; font-weight: 700;
}
.compare-x { color: #cbd5e1; font-size: 18px; }
.compare-table td:first-child { font-weight: 600; color: var(--hh-heading); }

/* Benefits — 3-up grid with icon */
.benefits { padding: 90px 0; }
.benefits h2 { text-align: center; margin-bottom: 14px; }
.benefits .lead { text-align: center; color: #4b5563; max-width: 760px; margin: 0 auto 50px; font-size: 17px; }
.benefit-row {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px;
  align-items: center; margin-bottom: 80px;
}
.benefit-row:last-child { margin-bottom: 0; }
.benefit-row.reverse .benefit-img { order: 2; }
.benefit-img img { max-width: 460px; width: 100%; margin: 0 auto; }
.benefit-text h3 { color: var(--hh-teal); font-size: 26px; margin-bottom: 10px; font-weight: 700; }
.benefit-text h4 { font-size: 19px; margin: 16px 0 8px; }
.benefit-text p { color: #4b5563; font-size: 16px; line-height: 1.7; margin: 0 0 12px; }
.benefit-text ul { padding-left: 0; list-style: none; margin: 16px 0; }
.benefit-text ul li {
  padding-left: 32px; position: relative; color: #374151; font-size: 15.5px;
  margin-bottom: 10px; line-height: 1.55;
}
.benefit-text ul li strong { color: var(--hh-heading); display: block; }
.benefit-text ul li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 18px; height: 10px;
  border-left: 3px solid var(--hh-teal); border-bottom: 3px solid var(--hh-teal);
  transform: rotate(-45deg);
}

/* Collapsible accordion items within benefits */
.benefit-text .accordion { margin-top: 18px; }
.benefit-text .accordion-item {
  background: #fff;
  border: 1px solid var(--hh-border);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.benefit-text .accordion-item[open] {
  border-color: var(--hh-teal);
  box-shadow: 0 4px 14px rgba(33,161,161,0.08);
}
.benefit-text .accordion-item summary {
  list-style: none; cursor: pointer;
  padding: 16px;
  font-family: var(--hh-display);
  font-weight: 700; font-size: 16.5px;
  color: var(--hh-heading);
  position: relative; padding-right: 52px;
  transition: background 160ms ease, color 160ms ease;
}
.benefit-text .accordion-item summary::-webkit-details-marker { display: none; }
.benefit-text .accordion-item summary::after {
  content: ""; position: absolute; right: 22px; top: 50%;
  width: 10px; height: 10px;
  border-right: 2px solid var(--hh-teal);
  border-bottom: 2px solid var(--hh-teal);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 280ms cubic-bezier(.4,0,.2,1);
}
.benefit-text .accordion-item[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}
.benefit-text .accordion-item[open] summary { color: var(--hh-teal); }
.benefit-text .accordion-body {
  padding: 16px;
  color: #4b5563; font-size: 15.5px; line-height: 1.7;
}
.benefit-text .accordion-body > :first-child { margin-top: 0; }
.benefit-text .accordion-body > :last-child { margin-bottom: 0; }
.benefit-text .accordion-body ul { margin: 4px 0; padding-left: 0; list-style: none; }
.benefit-text .accordion-body ul li {
  padding-left: 28px; position: relative;
  font-size: 15px; margin-bottom: 8px; color: #374151;
}
.benefit-text .accordion-body ul li strong { color: var(--hh-heading); display: block; margin-bottom: 2px; }
.benefit-text .accordion-body ul li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--hh-teal); border-bottom: 2px solid var(--hh-teal);
  transform: rotate(-45deg);
}

/* FAQ */
.faq { padding: 90px 0; background: var(--hh-bg-alt); }
.faq h2 { text-align: center; margin-bottom: 40px; }
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item {
  background: #fff; border: 1px solid var(--hh-border); border-radius: 8px;
  margin-bottom: 14px; overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer; padding: 16px;
  font-weight: 700; font-family: var(--hh-display); font-size: 17px;
  color: var(--hh-heading); position: relative; padding-right: 52px;
  transition: background 160ms ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
/* Morphing +/- icon: two bars; the vertical one rotates flat to make a − */
.faq-item summary::before,
.faq-item summary::after {
  content: ""; position: absolute; right: 22px; top: 50%;
  width: 14px; height: 2px; border-radius: 2px; background: var(--hh-teal);
  transition: transform 280ms cubic-bezier(.4,0,.2,1);
}
.faq-item summary::before { transform: translateY(-50%); }
.faq-item summary::after  { transform: translateY(-50%) rotate(90deg); }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(180deg); }
.faq-item[open] summary { background: var(--hh-bg-alt); }
.faq-body { padding: 16px; color: #4b5563; font-size: 15.5px; line-height: 1.7; }
.faq-body p { margin: 0 0 10px; }
.faq-body > :first-child { margin-top: 0; }
.faq-body > :last-child { margin-bottom: 0; }
/* JS-driven height animation (added by accordion.js as .js-accordion) */
.js-accordion .faq-body,
.js-accordion .accordion-body {
  overflow: hidden;
  transition: height 280ms cubic-bezier(.4,0,.2,1);
}
@media (prefers-reduced-motion: reduce) {
  .js-accordion .faq-body,
  .js-accordion .accordion-body,
  .faq-item summary::before,
  .faq-item summary::after,
  .benefit-text .accordion-item summary::after { transition: none; }
}
.faq-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 30px; flex-wrap: wrap; }
.faq-tab {
  padding: 8px 22px; border-radius: 99px; border: 1px solid var(--hh-border);
  background: #fff; color: var(--hh-heading); font-weight: 600; cursor: pointer;
  font-size: 14px;
}
.faq-tab.active { background: var(--hh-teal); color: #fff; border-color: var(--hh-teal); }

/* Resources grid */
.resources-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 40px;
}
.resource-card {
  background: #fff; border: 1px solid var(--hh-border); border-radius: 10px;
  padding: 30px 28px; transition: all 200ms ease;
  display: flex; flex-direction: column;
}
.resource-card:hover { border-color: var(--hh-teal); box-shadow: 0 8px 24px rgba(33,161,161,0.08); transform: translateY(-2px); }
.resource-card .icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--hh-teal-soft); color: var(--hh-teal);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.resource-card .icon svg { display: block; }
.resource-card h3 { font-size: 20px; margin-bottom: 8px; }
.resource-card p { color: var(--hh-muted); font-size: 14.5px; margin: 0 0 16px; flex: 1; }
.resource-card a { font-weight: 600; font-size: 14.5px; }

/* Pricing calculator */
.pricing-calc {
  background: #fff; border: 1px solid var(--hh-border); border-radius: 14px;
  padding: 44px; max-width: 860px; margin: 0 auto;
  box-shadow: 0 8px 30px rgba(0,0,0,0.04);
}
.pricing-calc h3 { font-size: 22px; margin-bottom: 24px; }
.pc-row { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; margin-bottom: 22px; }
.pc-row label { font-weight: 600; color: var(--hh-heading); font-size: 15px; }
.pc-row select, .pc-row input[type="number"] {
  width: 100%; padding: 12px 14px; border: 1px solid var(--hh-border);
  border-radius: 6px; font: inherit; font-size: 15px;
  background: #fff; color: var(--hh-text);
}
.pc-row select:focus, .pc-row input:focus {
  outline: none; border-color: var(--hh-teal); box-shadow: 0 0 0 3px rgba(33,161,161,0.12);
}
.pc-toggle { display: flex; gap: 0; }
.pc-toggle button {
  flex: 1; padding: 12px; border: 1px solid var(--hh-border); background: #fff;
  cursor: pointer; font-weight: 600; font-size: 14px; color: var(--hh-heading);
  transition: all 300ms ease;
}
.pc-toggle button:first-child { border-radius: 6px 0 0 6px; }
.pc-toggle button:last-child { border-radius: 0 6px 6px 0; border-left: 0; }
.pc-toggle button.active { background: var(--hh-teal); color: #fff; border-color: var(--hh-teal); }
.pc-summary {
  margin-top: 30px; padding: 30px; border-radius: 10px;
  background: var(--hh-teal-soft);
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  flex-wrap: wrap;
}
.pc-summary .label { font-size: 14px; color: var(--hh-muted); margin-bottom: 4px; }
.pc-summary .price { font-family: var(--hh-display); font-size: 36px; font-weight: 700; color: var(--hh-heading); }
.pc-summary .price small { font-size: 16px; color: var(--hh-muted); font-weight: 400; margin-left: 6px; }

/* Slider for user count */
.pc-slider-wrap {
  background: #fff; border: 1.5px solid var(--hh-border); border-radius: 12px;
  padding: 30px 32px 24px;
}
.pc-slider-display {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 22px;
}
.pc-slider-display .num {
  font-family: var(--hh-display); font-weight: 700;
  font-size: 56px; color: var(--hh-heading); line-height: 1;
  letter-spacing: -1px;
}
.pc-slider-display .num small { font-size: 18px; color: var(--hh-muted); font-weight: 400; margin-left: 8px; }
.pc-slider-display .per-user {
  display: block; margin-top: 8px;
  font-size: 13.5px; color: var(--hh-muted); font-weight: 500;
}
.pc-slider-display .per-user strong {
  color: var(--hh-heading); font-weight: 700;
}
.pc-slider-display .seg {
  text-align: right; color: var(--hh-muted); font-size: 13.5px;
}
.pc-slider-display .seg strong { display: block; color: var(--hh-heading); font-family: var(--hh-display); font-size: 16px; font-weight: 700; }

.pc-slider { -webkit-appearance: none; appearance: none; width: 100%; background: transparent; height: 28px; margin: 0; cursor: pointer; }
.pc-slider:focus { outline: none; }
.pc-slider::-webkit-slider-runnable-track {
  height: 6px; border-radius: 3px;
  background: linear-gradient(to right, var(--hh-teal) 0% var(--pc-fill, 50%), var(--hh-border) var(--pc-fill, 50%) 100%);
}
.pc-slider::-moz-range-track {
  height: 6px; border-radius: 3px;
  background: linear-gradient(to right, var(--hh-teal) 0% var(--pc-fill, 50%), var(--hh-border) var(--pc-fill, 50%) 100%);
}
.pc-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 24px; height: 24px; border-radius: 50%;
  background: #fff; border: 3px solid var(--hh-teal);
  margin-top: -9px;
  box-shadow: 0 2px 8px rgba(33,161,161,0.25);
  cursor: grab; transition: transform 120ms ease;
}
.pc-slider::-webkit-slider-thumb:hover { transform: scale(1.1); }
.pc-slider::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.15); }
.pc-slider::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: 50%;
  background: #fff; border: 3px solid var(--hh-teal);
  box-shadow: 0 2px 8px rgba(33,161,161,0.25); cursor: grab;
}

.pc-slider-ticks {
  position: relative; height: 1.4em;
  margin: 12px 0 0; font-size: 12px; color: var(--hh-muted); font-weight: 600;
}
/* Each span is pinned to its exact thumb-center position: 12px + k/8 * (100% - 24px) */
.pc-slider-ticks span {
  position: absolute; white-space: nowrap; transform: translateX(-50%);
}
.pc-slider-ticks span:nth-child(1) { left: 12px; }
.pc-slider-ticks span:nth-child(2) { left: calc(12px + 1 * (100% - 24px) / 8); }
.pc-slider-ticks span:nth-child(3) { left: calc(12px + 2 * (100% - 24px) / 8); }
.pc-slider-ticks span:nth-child(4) { left: calc(12px + 3 * (100% - 24px) / 8); }
.pc-slider-ticks span:nth-child(5) { left: calc(12px + 4 * (100% - 24px) / 8); }
.pc-slider-ticks span:nth-child(6) { left: calc(12px + 5 * (100% - 24px) / 8); }
.pc-slider-ticks span:nth-child(7) { left: calc(12px + 6 * (100% - 24px) / 8); }
.pc-slider-ticks span:nth-child(8) { left: calc(12px + 7 * (100% - 24px) / 8); }
.pc-slider-ticks span:nth-child(9) { left: calc(100% - 12px); }

@media (max-width: 600px) {
  .pc-slider-wrap { padding: 22px 18px 18px; }
  .pc-slider-display .num { font-size: 42px; }
  .pc-slider-ticks span:nth-child(even) { display: none; }
}

/* Multi-step calculator */
.pricing-calc.multi-step { padding: 0; overflow: hidden; }
.pc-stepbar {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: var(--hh-bg-alt);
  border-bottom: 1px solid var(--hh-border);
  position: relative;
}
.pc-stepbar::before {
  content: ""; position: absolute; left: 0; bottom: -1px;
  height: 3px; width: var(--progress, 20%);
  background: var(--hh-teal);
  transition: width 280ms cubic-bezier(.4,.2,.2,1);
}
.pc-step {
  padding: 18px 12px 16px;
  text-align: center;
  font-size: 13.5px; font-weight: 600;
  color: var(--hh-muted);
  border: 0; background: transparent; cursor: pointer;
  font-family: var(--hh-font);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: color 300ms ease;
  position: relative;
}
.pc-step:not(:last-child)::after {
  content: ""; position: absolute; right: 0; top: 22px;
  width: 1px; height: 22px; background: var(--hh-border);
}
.pc-step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff; border: 1.5px solid var(--hh-border);
  font-family: var(--hh-display); font-weight: 700; font-size: 13px;
  color: var(--hh-muted);
  transition: all 300ms ease;
}
.pc-step.is-done .num { background: var(--hh-teal); border-color: var(--hh-teal); color: #fff; }
.pc-step.is-done .num::after { content: "✓"; font-size: 14px; }
.pc-step.is-done .num > span { display: none; }
.pc-step.is-active { color: var(--hh-teal); }
.pc-step.is-active .num { border-color: var(--hh-teal); color: var(--hh-teal); background: #fff; box-shadow: 0 0 0 4px rgba(33,161,161,0.12); }
.pc-step { cursor: default; }
.pc-step.is-done { cursor: pointer; }
.pc-step:disabled { cursor: default; opacity: 0.6; }
.pc-step .label-sm { display: block; line-height: 1.2; }

.pc-body { padding: 40px 44px 30px; min-height: 340px; }
.pc-panel { display: none; animation: pcFade 260ms ease both; }
.pc-panel.is-active { display: block; }
@keyframes pcFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pc-panel h4.pc-q {
  font-family: var(--hh-display); font-size: 22px;
  color: var(--hh-heading); margin: 0 0 6px;
}
.pc-panel .pc-help { color: var(--hh-muted); font-size: 14.5px; margin: 0 0 24px; }

/* Notice component — info / warn / success / error.
   Markup: <div class="notice is-info"><div><strong>Heading.</strong> Body.</div></div>
   For terse confirmations a single text child also works. */
.notice {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 16px; border-radius: 6px;
  font-size: 14px; line-height: 1.55;
  color: var(--hh-heading);
}
.notice strong { display: block; margin-bottom: 2px; }
.notice::before {
  flex-shrink: 0;
  width: 20px; height: 20px; border-radius: 50%;
  color: #fff;
  font-family: var(--hh-display); font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.notice.is-info    { background: var(--hh-teal-soft); }
.notice.is-info::before    { background: var(--hh-teal); content: "i"; }
.notice.is-warn    { background: #fff7e6; }
.notice.is-warn::before    { background: #d09a2c; content: "i"; }
.notice.is-success { background: var(--hh-teal-soft); font-weight: 600; }
.notice.is-success::before { background: var(--hh-teal); content: "\2713"; }
.notice.is-error   { background: #fdecea; font-weight: 500; }
.notice.is-error::before   { background: #a23; content: "!"; }

/* Custom-quote state (1000+ users): hide running price, show CTA hint */
.pc-running.is-custom .value { font-size: 19px; color: var(--hh-teal); }
.pc-running.is-custom .value small { display: none; }

/* Option-card grid */
.pc-options { display: grid; gap: 14px; }
.pc-options.cols-2 { grid-template-columns: repeat(2, 1fr); }
.pc-options.cols-3 { grid-template-columns: repeat(3, 1fr); }
.pc-options.cols-4 { grid-template-columns: repeat(4, 1fr); }
.pc-options.cols-2-wrap { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

.pc-opt {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start;
  text-align: left;
  padding: 18px 18px 16px;
  background: #fff;
  border: 1.5px solid var(--hh-border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 300ms ease;
  font: inherit; color: var(--hh-text);
  width: 100%;
}
.pc-opt:hover { border-color: var(--hh-teal); transform: translateY(-1px); }
.pc-opt.is-selected {
  border-color: var(--hh-teal);
  background: var(--hh-teal-soft);
  box-shadow: 0 4px 14px rgba(33,161,161,0.10);
}
.pc-opt.is-selected::after {
  content: "✓"; position: absolute; top: 12px; right: 14px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--hh-teal); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
/* Eyebrow → corner ribbon. Floats above the card border so the title
   line stays at the same vertical position as sibling cards. */
.pc-opt .eyebrow {
  position: absolute;
  top: -10px; right: 14px;
  margin: 0;
  background: var(--hh-teal); color: #fff;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.6px; text-transform: uppercase;
  padding: 4px 10px 4px 14px;
  border-radius: 4px 4px 4px 0;
  box-shadow: 0 2px 6px rgba(33,161,161,0.25);
  line-height: 1.2;
}
.pc-opt .eyebrow::after {
  content: ""; position: absolute;
  left: 0; bottom: -5px;
  border-style: solid;
  border-width: 5px 0 0 5px;
  border-color: var(--hh-teal-dark) transparent transparent transparent;
}
.pc-opt .title {
  font-family: var(--hh-display); font-weight: 700;
  font-size: 17px; color: var(--hh-heading);
  margin-bottom: 4px; padding-right: 28px;
}
.pc-opt .desc { color: var(--hh-muted); font-size: 13.5px; line-height: 1.5; margin: 0; }
.pc-opt .price-tag {
  margin-top: 12px; font-size: 13px; font-weight: 600;
  color: var(--hh-heading);
}
.pc-opt .price-tag.free { color: var(--hh-teal); }

/* Compact pill-style option (for users) */
.pc-opt.compact { padding: 14px 10px; align-items: center; text-align: center; }
.pc-opt.compact .title { font-size: 18px; margin: 0; padding: 0; }
.pc-opt.compact .desc { font-size: 12.5px; margin-top: 4px; }
.pc-opt.compact.is-selected::after { top: 6px; right: 6px; width: 18px; height: 18px; font-size: 10px; }

/* Billing toggle pills */
.pc-bill-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Summary panel */
.pc-summary-box {
  background: var(--hh-bg-alt);
  border: 1px solid var(--hh-border);
  border-radius: 10px;
  padding: 24px 26px;
  margin-bottom: 22px;
}
.pc-summary-box dl {
  display: grid; grid-template-columns: 1fr auto;
  row-gap: 10px; column-gap: 16px;
  margin: 0;
}
.pc-summary-box dt { color: var(--hh-muted); font-size: 14px; }
.pc-summary-box dd {
  margin: 0; color: var(--hh-heading);
  font-weight: 600; font-size: 14.5px; text-align: right;
}
.pc-summary-box .divider { grid-column: 1 / -1; height: 1px; background: var(--hh-border); margin: 6px 0; }
.pc-summary-box dt.total, .pc-summary-box dd.total {
  font-family: var(--hh-display); font-size: 18px;
  color: var(--hh-heading); font-weight: 700;
}

/* Footer / action bar */
.pc-actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 20px 44px;
  background: #fff;
  border-top: 1px solid var(--hh-border);
}
.pc-running {
  display: flex; flex-direction: column; gap: 2px;
  font-family: var(--hh-font);
}
.pc-running .label { font-size: 12px; color: var(--hh-muted); text-transform: uppercase; letter-spacing: 0.6px; font-weight: 600; }
.pc-running .value { font-family: var(--hh-display); font-size: 24px; font-weight: 700; color: var(--hh-heading); line-height: 1; }
.pc-running .value small { font-size: 13px; color: var(--hh-muted); font-weight: 400; margin-left: 4px; }
.pc-running .sub { font-size: 12px; color: var(--hh-muted); margin-top: 2px; }

.pc-btns { display: flex; gap: 10px; }
.pc-btns .btn { padding: 11px 22px; font-size: 14.5px; }
.pc-btns .btn.is-hidden { visibility: hidden; pointer-events: none; }

/* Contact mini-form on summary */
.pc-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.pc-contact label { font-weight: 600; font-size: 13px; color: var(--hh-heading); margin-bottom: 6px; display: block; }
.pc-contact .full { grid-column: 1 / -1; }

@media (max-width: 760px) {
  .pc-step .label-sm { display: none; }
  .pc-body { padding: 28px 22px 20px; min-height: 0; }
  .pc-actions { padding: 16px 22px; flex-wrap: wrap; }
  .pc-options.cols-3, .pc-options.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .pc-options.cols-2 { grid-template-columns: 1fr; }
  .pc-bill-grid { grid-template-columns: 1fr; }
  .pc-contact { grid-template-columns: 1fr; }
}

/* Demo choice cards */
.demo-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 28px; max-width: 1080px; margin: 0 auto;
}
.demo-card {
  position: relative;
  background: #fff;
  border: 1.5px solid var(--hh-border);
  border-radius: 14px;
  padding: 40px 36px 36px;
  display: flex; flex-direction: column;
  transition: all 200ms ease;
}
.demo-card:hover {
  border-color: var(--hh-teal);
  box-shadow: 0 14px 40px rgba(33,161,161,0.12);
  transform: translateY(-2px);
}
.demo-card.recommended { border-color: var(--hh-teal); box-shadow: 0 10px 30px rgba(33,161,161,0.08); }
.demo-card .demo-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--hh-teal-soft); color: var(--hh-teal);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.demo-card .demo-icon svg { width: 30px; height: 30px; }
.demo-card h3 {
  font-family: var(--hh-display); font-size: 26px;
  color: var(--hh-heading); margin: 0 0 8px;
}
.demo-card .demo-sub {
  color: var(--hh-muted); font-size: 15px; margin: 0 0 22px; line-height: 1.5;
}
.demo-card ul {
  list-style: none; padding: 0; margin: 0 0 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.demo-card ul li {
  position: relative; padding-left: 28px;
  font-size: 14.5px; color: var(--hh-text); line-height: 1.5;
}
.demo-card ul li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 16px; height: 9px;
  border-left: 2px solid var(--hh-teal); border-bottom: 2px solid var(--hh-teal);
  transform: rotate(-45deg);
}
.demo-card .demo-foot {
  margin-top: auto;
  display: flex; flex-direction: column; gap: 10px;
}
.demo-card .demo-form { margin-top: auto; }
.demo-card .demo-form .form-row { margin-bottom: 14px; }
.demo-card .demo-meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--hh-muted);
  padding: 12px 0 6px;
  border-top: 1px solid var(--hh-border);
}
.demo-card .demo-meta span { display: inline-flex; align-items: center; gap: 6px; }
.demo-card .demo-meta strong { color: var(--hh-heading); font-weight: 600; }

@media (max-width: 760px) {
  .demo-grid { grid-template-columns: 1fr; gap: 20px; }
  .demo-card { padding: 32px 24px 28px; }
}

/* Demo comparison table (lighter than full compare-table) */
.demo-compare {
  max-width: 880px; margin: 0 auto;
  background: #fff; border: 1px solid var(--hh-border);
  border-radius: 12px; overflow: hidden;
}
.demo-compare table { width: 100%; border-collapse: collapse; }
.demo-compare th, .demo-compare td {
  padding: 16px 20px; text-align: left;
  border-bottom: 1px solid var(--hh-border);
  font-size: 14.5px; vertical-align: top;
}
.demo-compare th {
  background: var(--hh-bg-alt);
  font-family: var(--hh-display); font-weight: 700;
  color: var(--hh-heading); font-size: 15px;
}
.demo-compare tr:last-child td, .demo-compare tr:last-child th { border-bottom: 0; }
.demo-compare td:first-child { font-weight: 600; color: var(--hh-heading); width: 240px; }
.demo-compare td.yes { color: var(--hh-teal); font-weight: 600; }
.demo-compare td.no { color: var(--hh-muted); }
@media (max-width: 600px) {
  .demo-compare td:first-child { width: auto; }
  .demo-compare th, .demo-compare td { padding: 12px 14px; font-size: 13.5px; }
}
.plans-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  max-width: 900px; margin: 0 auto 60px;
}
.plans-grid.three { grid-template-columns: repeat(3, 1fr); max-width: 1180px; gap: 24px; }
.plans-grid.three .plan-card { padding: 32px 28px; }
.plans-grid.three .plan-card h3 { font-size: 20px; }
.plans-grid.three .plan-card .price { font-size: 32px; white-space: nowrap; }
.plans-grid.three .plan-card .btn { padding: 11px 18px; }
.plan-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--hh-border); border-radius: 12px;
  padding: 36px 32px;
}
.plan-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.plan-actions .btn { flex: 1 1 auto; text-align: center; white-space: normal; }
@media (max-width: 760px) {
  .plan-actions .btn { flex-basis: 100%; }
}
.plan-card.featured { border-color: var(--hh-teal); position: relative; box-shadow: 0 10px 30px rgba(33,161,161,0.12); }
.card-pill {
  position: absolute; top: -12px; left: 32px;
  background: var(--hh-teal); color: #fff;
  font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 99px;
  letter-spacing: 0.4px; text-transform: uppercase;
}
.plan-card.enterprise .card-pill { background: #34d399; color: #062a1c; }
.plan-card.enterprise {
  position: relative;
  background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
  border-color: #1f2937; color: #e5e7eb;
}
.plan-card.enterprise h3 { color: #fff; }
.plan-card.enterprise .tagline { color: #9ca3af; }
.plan-card.enterprise .price { color: #fff; }
.plan-card.enterprise .price small { color: #9ca3af; }
.plan-card.enterprise ul li { color: #d1d5db; }
.plan-card.enterprise ul li::before { border-color: #34d399; }
.plan-card.enterprise .btn-primary {
  background: #fff; color: #111827; border-color: #fff;
}
.plan-card.enterprise .btn-primary:hover { background: var(--hh-teal); color: #fff; border-color: var(--hh-teal); }
.plan-card h3 { font-size: 22px; margin-bottom: 6px; }
.plan-card .tagline { color: var(--hh-muted); font-size: 14.5px; margin-bottom: 24px; }
.plan-card .price { font-family: var(--hh-display); font-size: 38px; font-weight: 700; color: var(--hh-heading); }
.plan-card .price small { font-size: 15px; color: var(--hh-muted); font-weight: 400; margin-left: 4px; }
.plan-card ul { list-style: none; padding: 0; margin: 24px 0 28px; }
.plan-card ul li {
  padding-left: 28px; position: relative; color: #374151;
  font-size: 14.5px; margin-bottom: 10px; line-height: 1.5;
}
.plan-card ul li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--hh-teal); border-bottom: 2px solid var(--hh-teal);
  transform: rotate(-45deg);
}

/* Contact form */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px;
  align-items: start;
}
.contact-info h3 { font-size: 22px; margin-bottom: 18px; }
.contact-info p { color: #4b5563; line-height: 1.7; margin: 0 0 14px; }
.contact-info .info-item {
  display: flex; gap: 14px; margin-top: 22px;
}
.contact-info .info-item .icon {
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--hh-teal-soft); color: var(--hh-teal);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-info .info-item .icon svg { width: 20px; height: 20px; }
.contact-info .info-item div strong { display: block; color: var(--hh-heading); margin-bottom: 2px; }
.contact-info .info-item div { color: #4b5563; font-size: 14.5px; line-height: 1.55; }

.contact-form {
  background: #fff; border: 1px solid var(--hh-border); border-radius: 12px;
  padding: 36px;
}

/* Signup-style aside (left column "what you get") + form head + trust,
   shared across /newsletter/, /hosting/, etc. Used inside .contact-grid. */
.signup-aside .signup-perks {
  display: flex; flex-direction: column; gap: 22px;
  margin-top: 28px;
}
.signup-aside .signup-perk {
  display: flex; gap: 16px; align-items: flex-start;
}
.signup-aside .signup-perk-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 10px;
  background: var(--hh-teal-soft); color: var(--hh-teal);
  display: flex; align-items: center; justify-content: center;
}
.signup-aside .signup-perk-icon svg { width: 22px; height: 22px; }
.signup-aside .signup-perk strong {
  display: block; color: var(--hh-heading);
  font-size: 15.5px; margin-bottom: 4px;
}
.signup-aside .signup-perk p {
  margin: 0; color: #4b5563; font-size: 14px; line-height: 1.55;
}

.signup-form { position: relative; }
.signup-form .signup-form-head { margin-bottom: 22px; }
.signup-form .signup-form-head h2 {
  font-family: var(--hh-display); font-size: 26px;
  color: var(--hh-heading); margin: 0 0 8px;
}
.signup-form .signup-form-head p {
  margin: 0; color: #4b5563; font-size: 14.5px; line-height: 1.55;
}
.signup-form .signup-trust {
  list-style: none; padding: 18px 0 0; margin: 18px 0 0;
  border-top: 1px solid var(--hh-border);
  display: flex; flex-direction: column; gap: 10px;
}
.signup-form .signup-trust li {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: #4b5563;
}
.signup-form .signup-trust svg {
  width: 16px; height: 16px; color: var(--hh-teal); flex-shrink: 0;
}

/* Subdomain input — prefix + editable input + suffix, all in one row */
.subdomain-group {
  display: flex; align-items: stretch;
  border: 1px solid var(--hh-border); border-radius: 6px;
  background: #fff; overflow: hidden;
  transition: border-color 120ms, box-shadow 120ms;
}
.subdomain-group:focus-within {
  border-color: var(--hh-teal);
  box-shadow: 0 0 0 3px rgba(33,161,161,0.12);
}
.subdomain-group input {
  flex: 1; min-width: 0;
  border: 0; background: transparent;
  padding: 12px 8px;
  font: inherit; font-size: 15px;
  color: var(--hh-text);
}
.subdomain-group input:focus { outline: none; box-shadow: none; }
.subdomain-prefix,
.subdomain-suffix {
  display: flex; align-items: center;
  background: #f5f7fa; color: #4b5563;
  padding: 0 12px;
  font-size: 14.5px; line-height: 1;
  white-space: nowrap;
  user-select: none;
}

.form-row { margin-bottom: 18px; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row label {
  display: block; font-weight: 600; color: var(--hh-heading);
  font-size: 14px; margin-bottom: 6px;
}
.form-row input, .pc-contact input,
.form-row select, .pc-contact select,
.form-row textarea, .pc-contact textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--hh-border);
  border-radius: 6px; font: inherit; font-size: 15px;
  background: #fff; color: var(--hh-text);
}
.form-row select, .pc-contact select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='4,6 8,10 12,6'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center;
  background-size: 14px 14px;
}
.form-row textarea { min-height: 140px; resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus,
.pc-contact input:focus, .pc-contact select:focus, .pc-contact textarea:focus {
  outline: none; border-color: var(--hh-teal); box-shadow: 0 0 0 3px rgba(33,161,161,0.12);
}
.form-row .hint { font-size: 12.5px; color: var(--hh-muted); margin-top: 6px; }
.form-row.check { display: flex; gap: 12px; align-items: flex-start; }
.form-row.check input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 20px; height: 20px; flex: 0 0 20px;
  margin: 1px 0 0; padding: 0;
  border: 1.5px solid #cbd0d6; border-radius: 5px;
  background: #fff; cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.form-row.check input[type="checkbox"]:hover { border-color: var(--hh-teal); }
.form-row.check input[type="checkbox"]:focus-visible {
  outline: none; border-color: var(--hh-teal);
  box-shadow: 0 0 0 3px rgba(33,161,161,0.18);
}
.form-row.check input[type="checkbox"]:checked {
  background-color: var(--hh-teal); border-color: var(--hh-teal);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='3.5 8.5 6.5 11.5 12.5 5'/></svg>");
  background-repeat: no-repeat; background-position: center; background-size: 16px 16px;
}
.form-row.check label {
  font-weight: 400; font-size: 14.5px; line-height: 1.5;
  color: #4b5563; margin-bottom: 0; cursor: pointer;
}

/* Country picker
   ──────────────
   Custom dropdown with flag thumbnails. The hidden <select.cp-native> is
   removed from the layout once JS upgrades the component (.is-ready). With
   JS off, the native <select> is what the user sees & submits. */
.country-picker, .select-picker { position: relative; }
.country-picker .cp-trigger,
.country-picker .cp-dropdown,
.select-picker .cp-trigger,
.select-picker .cp-dropdown { display: none; }
.country-picker .cp-native,
.select-picker .cp-native { display: block; width: 100%; padding: 12px 14px; border: 1px solid var(--hh-border);
  border-radius: 6px; font: inherit; font-size: 15px; background: #fff; color: var(--hh-text); }
.country-picker.is-ready .cp-native,
.select-picker.is-ready .cp-native { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; padding: 0; border: 0; }
.country-picker.is-ready .cp-trigger,
.select-picker.is-ready .cp-trigger { display: flex; }
.country-picker.is-ready .cp-dropdown:not([hidden]),
.select-picker.is-ready .cp-dropdown:not([hidden]) { display: block; }

.cp-trigger {
  width: 100%; padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--hh-border); border-radius: 6px;
  background: #fff; color: var(--hh-text); font: inherit; font-size: 15px;
  cursor: pointer; text-align: left;
  transition: border-color 300ms, box-shadow 300ms;
}
.cp-trigger:hover { border-color: #cbd5e1; }
.cp-trigger:focus,
.cp-trigger[aria-expanded="true"] {
  outline: none; border-color: var(--hh-teal); box-shadow: 0 0 0 3px rgba(33,161,161,0.12);
}
.cp-trigger .cp-flag {
  width: 22px; height: 16px; object-fit: cover; border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06);
  flex-shrink: 0;
}
.cp-trigger .cp-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-trigger .cp-name.is-placeholder { color: var(--hh-muted); }
.cp-trigger .cp-chevron {
  width: 12px; height: 7px; color: var(--hh-muted); flex-shrink: 0;
  transition: transform 300ms cubic-bezier(.4,.2,.2,1);
}
.cp-trigger[aria-expanded="true"] .cp-chevron { transform: rotate(180deg); }

.cp-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30;
  background: #fff; border-radius: 10px;
  box-shadow: 0 14px 36px rgba(0,0,0,0.10), 0 0 0 1px var(--hh-border);
  padding: 6px;
}
.cp-search {
  width: 100%; padding: 10px 12px 10px 36px; border: 0;
  font: inherit; font-size: 14.5px; color: var(--hh-text);
  background: var(--hh-bg-alt); border-radius: 6px;
  margin-bottom: 4px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='8'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>");
  background-repeat: no-repeat;
  background-position: 12px 50%;
  background-size: 16px 16px;
}
.cp-search:focus { outline: none; background-color: #fff; box-shadow: 0 0 0 2px var(--hh-teal); }
.cp-list { list-style: none; margin: 0; padding: 0; max-height: 280px; overflow-y: auto; }
.cp-group {
  padding: 8px 10px 4px; font-size: 11.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--hh-muted);
}
.cp-option {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; cursor: pointer; font-size: 15px;
  color: var(--hh-text); border-radius: 6px;
  transition: background-color 300ms ease, color 300ms ease;
}
.cp-option:hover, .cp-option.is-active { background: var(--hh-bg-alt); }
.cp-option.is-selected { background: var(--hh-teal-soft); color: var(--hh-teal); font-weight: 600; }
.cp-option .cp-flag {
  width: 22px; height: 16px; object-fit: cover; border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06);
  flex-shrink: 0;
}
.cp-option .cp-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-empty { padding: 16px 10px; text-align: center; color: var(--hh-muted); font-size: 14px; }

/* Footer */
.site-footer { background: #1f2937; color: #cbd5e1; padding: 70px 0 30px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 40px; align-items: flex-start; justify-content: center; }
.footer-logo img { max-width: 180px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; margin: 0 0 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #cbd5e1; white-space: nowrap; }
.footer-col a:hover { color: var(--hh-teal); }
.footer-address { margin-top: 22px; color: #cbd5e1; font-size: 14px; line-height: 1.7; }
.footer-bottom {
  border-top: 1px solid #374151; margin-top: 50px; padding-top: 24px;
  text-align: center; color: #94a3b8; font-size: 13px;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .pillar, .twocol-grid,
  .benefit-row, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .pillar.reverse .pillar-img, .benefit-row.reverse .benefit-img { order: 0; }
  .hero h1, .page-hero h1 { font-size: 38px; }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .client-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .resources-grid { grid-template-columns: repeat(2, 1fr); }
  .plans-grid { grid-template-columns: 1fr; }
  .plans-grid.three { grid-template-columns: 1fr; max-width: 480px; }
  .pc-row { grid-template-columns: 1fr; gap: 8px; }
  .nav-list { display: none; }
  .mobile-toggle {
    display: block; background: none; border: 0; cursor: pointer;
    width: 36px; height: 36px; padding: 0;
  }
  .mobile-toggle span {
    display: block; height: 2px; width: 24px; background: var(--hh-heading);
    margin: 5px auto; transition: transform 200ms ease, opacity 200ms ease;
    transform-origin: center;
  }

  /* Mobile menu open — body.mobile-open set by assets/js/mobile-nav.js */
  body.mobile-open { overflow: hidden; }
  body.mobile-open .nav-list {
    display: flex; flex-direction: column;
    position: fixed; left: 0; right: 0; top: 67px; bottom: 0;
    background: #fff; padding: 8px 24px 32px;
    margin: 0; gap: 0; align-items: stretch;
    overflow-y: auto;
    border-top: 1px solid var(--hh-border);
    z-index: 49;
  }
  body.mobile-open .nav-list > li {
    padding: 14px 4px; border-bottom: 1px solid var(--hh-border);
    position: static;
  }
  body.mobile-open .nav-list > li > a {
    display: block; font-size: 17px; padding: 0;
  }
  body.mobile-open .nav-list .has-sub > a::after { display: none; }
  /* Show submenus inline (not as floating dropdowns) inside the open mobile menu. */
  body.mobile-open .nav-list .submenu,
  body.mobile-open .nav-list .has-sub.has-mega > .submenu {
    position: static; width: auto; min-width: 0;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 8px 0 0;
    background: transparent; margin: 8px 0 0;
  }
  body.mobile-open .nav-list .submenu li { margin: 0; }
  body.mobile-open .nav-list .submenu a { padding: 8px 0; font-size: 14.5px; }
  body.mobile-open .nav-list .mega-cols { grid-template-columns: 1fr; gap: 8px; }
  body.mobile-open .nav-list .mega-col a { padding: 8px 0; }
  body.mobile-open .nav-list .mega-col .mega-cta { padding: 8px 0; border-top: 1px solid var(--hh-border); }
  /* Lang picker: hide the desktop trigger pill on mobile — the three options
     below (each with flag + name + code, current one highlighted with ✓) are
     self-explanatory. */
  body.mobile-open .nav-list .lang-picker > a.lang { display: none; }
  body.mobile-open .nav-list .lang-picker .submenu { padding: 0; }
  body.mobile-open .nav-list .lang-picker .submenu a {
    padding: 12px 12px; font-size: 15px;
  }
  /* Hide the cookie banner overlay while the menu is open so it doesn't cover items. */
  body.mobile-open .cookie-banner { display: none; }

  /* Burger → X animation when open */
  body.mobile-open .mobile-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.mobile-open .mobile-toggle span:nth-child(2) { opacity: 0; }
  body.mobile-open .mobile-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 600px) {
  section { padding: 60px 0; }
  .hero h1, .page-hero h1 { font-size: 32px; }
  .module-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .client-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .resources-grid { grid-template-columns: 1fr; }
  .pricing-calc { padding: 28px 22px; }
  .contact-form { padding: 24px; }
  .form-row.two { grid-template-columns: 1fr; }
}

/* Imprint — structured company card */
.imprint-section { padding: 60px 0 80px; }
.imprint-card {
  background: #fff;
  border: 1px solid #e6ecef;
  border-radius: 14px;
  box-shadow: 0 10px 40px -20px rgba(15, 70, 90, .18), 0 2px 8px -4px rgba(15, 70, 90, .05);
  padding: 36px 40px;
  margin: -40px 0 56px;
  position: relative;
  overflow: hidden;
}
.imprint-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--hh-teal) 0%, #4fd1c5 100%);
}
.imprint-card-head {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-bottom: 26px;
  border-bottom: 1px solid #eef2f4;
}
.imprint-monogram {
  flex: 0 0 64px;
  width: 64px; height: 64px;
  border-radius: 16px;
  background: var(--hh-teal-soft);
  color: var(--hh-teal);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--hh-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -1px;
}
.imprint-company {
  font-family: var(--hh-display);
  font-size: 24px;
  margin: 0 0 6px;
  color: var(--hh-heading);
  font-weight: 700;
  letter-spacing: -0.3px;
}
.imprint-address {
  font-size: 15px;
  color: #4b5563;
  line-height: 1.5;
}

.imprint-contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 28px;
  padding: 28px 0;
  border-bottom: 1px solid #eef2f4;
}
.imprint-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--hh-heading);
  text-decoration: none;
  padding: 6px 0;
  transition: color .12s;
}
.imprint-contact-item:hover { color: var(--hh-teal); }
.imprint-contact-item .ic {
  flex: 0 0 36px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--hh-teal-soft);
  color: var(--hh-teal);
  border-radius: 10px;
  font-size: 16px;
}
.imprint-contact-item em {
  display: block;
  font-style: normal;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #6b7c85;
  font-weight: 600;
  margin-bottom: 2px;
}

.imprint-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-top: 28px;
}
.imprint-fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.imprint-fact-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #6b7c85;
  font-weight: 600;
}
.imprint-fact-value {
  font-size: 15.5px;
  color: var(--hh-heading);
  font-weight: 600;
}

.imprint-legal h2:first-of-type { margin-top: 0; }

@media (max-width: 720px) {
  .imprint-card { padding: 28px 22px; margin: -30px 0 40px; }
  .imprint-card-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .imprint-monogram { width: 52px; height: 52px; flex-basis: 52px; font-size: 26px; }
  .imprint-company { font-size: 21px; }
  .imprint-contact { grid-template-columns: 1fr; gap: 8px; }
  .imprint-facts { grid-template-columns: 1fr; gap: 18px; }
}

/* Licenses landing page */
.license-section { padding: 60px 0 80px; }
.license-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin: -40px 0 50px;
}
.license-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e6ecef;
  border-radius: 14px;
  padding: 32px 32px 28px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 24px -16px rgba(15, 70, 90, .18), 0 2px 6px -4px rgba(15, 70, 90, .04);
  transition: transform .15s, box-shadow .15s, border-color .15s;
  position: relative;
}
.license-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px -18px rgba(15, 70, 90, .25), 0 4px 12px -6px rgba(15, 70, 90, .08);
  border-color: var(--hh-teal);
}
.license-card:has(.license-badge-commercial):hover { border-color: #1f2937; }
.license-badge {
  position: absolute; top: -12px; left: 32px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 4px 12px;
  border-radius: 99px;
  color: #fff;
}
.license-badge-open { background: var(--hh-teal); }
.license-badge-commercial { background: #1f2937; }
.license-card h2 {
  font-family: var(--hh-display);
  font-size: 22px;
  color: var(--hh-heading);
  margin: 0 0 12px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.license-lead {
  font-size: 15px;
  color: #4b5563;
  line-height: 1.55;
  margin: 0 0 18px;
}
.license-points {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
}
.license-points li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  font-size: 14.5px;
  color: var(--hh-heading);
}
.license-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--hh-teal);
  border-bottom: 2px solid var(--hh-teal);
  transform: rotate(-45deg);
}
.license-cta {
  margin-top: auto;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--hh-teal);
  letter-spacing: 0.1px;
}
.license-card:hover .license-cta { color: var(--hh-teal-dark); }

.license-help {
  background: var(--hh-bg-alt);
  border-radius: 12px;
  padding: 30px 32px;
  text-align: center;
}
.license-help h3 {
  font-family: var(--hh-display);
  font-size: 20px;
  margin: 0 0 10px;
  color: var(--hh-heading);
  font-weight: 700;
}
.license-help p {
  font-size: 15.5px;
  color: #4b5563;
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto;
}
.license-help a { color: var(--hh-teal); text-decoration: underline; text-underline-offset: 2px; }

.license-intro {
  background: var(--hh-teal-soft);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 36px 0 28px;
  font-size: 15px;
  color: var(--hh-heading);
  line-height: 1.6;
}
.license-intro a { color: var(--hh-teal); text-decoration: underline; text-underline-offset: 2px; }
.license-intro p { margin: 0; }

.license-prose h3 { font-size: 17px; margin-top: 28px; }
.license-back { margin-top: 48px; padding-top: 24px; border-top: 1px solid #e6ecef; }
.license-back a { color: var(--hh-teal); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.license-back a:hover { color: var(--hh-teal-dark); }

@media (max-width: 720px) {
  .license-grid { grid-template-columns: 1fr; gap: 20px; margin: -30px 0 36px; }
  .license-card { padding: 26px 22px 22px; }
  .license-help { padding: 24px 22px; }
}

/* External-link indicator */
.ext-icon {
  display: inline-block;
  vertical-align: 1px;
  margin-left: 4px;
  opacity: 0.55;
  flex-shrink: 0;
}
a:hover > .ext-icon { opacity: 0.9; }

/* Legal pages — long-form prose */
.legal-prose { font-size: 16px; line-height: 1.7; color: #2d3748; }
.legal-prose h2 {
  font-family: var(--hh-display);
  font-size: 26px; line-height: 1.25;
  color: var(--hh-heading);
  margin: 48px 0 14px;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.legal-prose h3 {
  font-size: 19px; line-height: 1.3;
  color: var(--hh-heading);
  margin: 32px 0 10px;
  font-weight: 650;
}
.legal-prose p { margin: 0 0 16px; }
.legal-prose ul, .legal-prose ol { margin: 0 0 18px; padding-left: 24px; }
.legal-prose li { margin: 0 0 8px; }
.legal-prose a { color: var(--hh-teal); text-decoration: underline; text-underline-offset: 2px; }
.legal-prose a:hover { color: var(--hh-heading); }
.legal-prose strong { color: var(--hh-heading); }
.legal-prose hr { border: 0; border-top: 1px solid #e5e7eb; margin: 36px 0; }
.legal-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
  font-size: 14.5px;
}
.legal-prose th, .legal-prose td {
  border: 1px solid #e5e7eb;
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
}
.legal-prose th {
  background: var(--hh-bg-alt);
  font-weight: 600;
  color: var(--hh-heading);
}
.legal-prose code {
  background: #f3f4f6;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 13.5px;
}

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  z-index: 9000;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 720px;
  margin: 0 auto;
  background: #1f2937;
  color: #f3f4f6;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  padding: 18px 20px;
  font-size: 14px;
  line-height: 1.55;
}
.cookie-banner h2 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  font-family: var(--hh-display);
}
.cookie-banner p {
  margin: 0 0 14px;
  color: #d1d5db;
}
.cookie-banner a {
  color: #5eead4;
  text-decoration: underline;
}
.cookie-banner a:hover { color: #99f6e4; }
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.cookie-banner-actions .btn {
  padding: 8px 16px;
  font-size: 13.5px;
  cursor: pointer;
  border-radius: 4px;
  border: 1px solid transparent;
  font-weight: 600;
  font-family: var(--hh-font);
}
.cookie-banner-actions .btn-primary {
  background: var(--hh-teal);
  border-color: var(--hh-teal);
  color: #fff;
}
.cookie-banner-actions .btn-primary:hover { background: var(--hh-teal-dark); }
.cookie-banner-actions .btn-ghost {
  background: transparent;
  color: #f3f4f6;
  border-color: #4b5563;
}
.cookie-banner-actions .btn-ghost:hover { background: #374151; }
@media (max-width: 480px) {
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; padding: 14px 16px; }
  .cookie-banner-actions .btn { flex: 1 1 auto; text-align: center; }
}

/* Professional Edition: editions callout box (replaces the old comparison table) */
.editions-callout-wrap { padding: 50px 0; background: var(--hh-bg-alt); }
.editions-callout {
  display: flex; align-items: flex-start; gap: 22px;
  background: #fff; border: 1px solid var(--hh-border);
  border-radius: 10px; padding: 28px 32px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}
.editions-callout-icon {
  flex-shrink: 0; width: 52px; height: 52px;
  border-radius: 10px; background: var(--hh-teal-soft); color: var(--hh-teal);
  display: flex; align-items: center; justify-content: center;
}
.editions-callout h3 { margin: 0 0 8px; font-size: 19px; color: var(--hh-heading); }
.editions-callout p { margin: 0 0 16px; color: #4b5563; font-size: 15.5px; line-height: 1.6; }
.editions-callout .btn { font-size: 14px; padding: 10px 18px; }
@media (max-width: 600px) {
  .editions-callout { flex-direction: column; padding: 22px; }
}

/* 404 page */
.four-oh-four {
  padding: 72px 0 112px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.foh-stage {
  position: relative;
  height: 240px;
  max-width: 560px;
  margin: 0 auto 28px;
}
.foh-number {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 100%;
  font-family: var(--hh-display);
  font-weight: 700;
  font-size: 200px;
  line-height: 1;
  letter-spacing: -6px;
  color: var(--hh-heading);
  user-select: none;
}
.foh-d-zero {
  color: var(--hh-teal);
  display: inline-block;
  transform-origin: 50% 55%;
  animation: foh-spin 9s linear infinite;
}
@keyframes foh-spin {
  to { transform: rotate(360deg); }
}
.foh-orb {
  position: absolute;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}
.foh-orb-1 { width: 64px; height: 64px; top: 18px;  left: 8%;   background: var(--hh-teal-soft); animation: foh-float 6.5s ease-in-out infinite; }
.foh-orb-2 { width: 30px; height: 30px; top: 62%;   left: 18%;  background: var(--hh-teal);       opacity: 0.28; animation: foh-float 4.2s ease-in-out 0.4s infinite reverse; }
.foh-orb-3 { width: 92px; height: 92px; top: 38%;   right: 4%;  background: var(--hh-teal);       opacity: 0.12; animation: foh-float 7.5s ease-in-out infinite; }
.foh-orb-4 { width: 18px; height: 18px; top: 8%;    right: 26%; background: var(--hh-teal-dark);  opacity: 0.45; animation: foh-float 5s   ease-in-out 0.2s infinite reverse; }
.foh-orb-5 { width: 46px; height: 46px; bottom: 8px; right: 22%; background: var(--hh-teal-soft); animation: foh-float 8s   ease-in-out 0.6s infinite; }
.foh-orb-6 { width: 12px; height: 12px; bottom: 30%; left: 38%;  background: var(--hh-teal-dark); opacity: 0.55; animation: foh-float 3.6s ease-in-out infinite reverse; }
@keyframes foh-float {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(8px, -16px); }
}
.foh-title {
  font-family: var(--hh-display);
  font-size: 36px;
  margin: 0 0 14px;
  color: var(--hh-heading);
}
.foh-tagline {
  font-size: 17px;
  color: var(--hh-muted);
  margin: 0 auto 32px;
  max-width: 640px;
}
.foh-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 0;
}

/* Language toggle for the single static 404.html: JS sets data-lang on <html>
   based on the URL path; CSS shows the matching spans. Default is EN so the
   page reads correctly even without JS. */
.four-oh-four .lang-de, .four-oh-four .lang-fr { display: none; }
[data-lang="de"] .four-oh-four .lang-en { display: none; }
[data-lang="de"] .four-oh-four .lang-de { display: inline; }
[data-lang="fr"] .four-oh-four .lang-en { display: none; }
[data-lang="fr"] .four-oh-four .lang-fr { display: inline; }

@media (prefers-reduced-motion: reduce) {
  .foh-d-zero, .foh-orb { animation: none !important; }
}
@media (max-width: 600px) {
  .four-oh-four { padding: 48px 0 80px; }
  .foh-stage { height: 180px; }
  .foh-number { font-size: 140px; letter-spacing: -4px; }
  .foh-title { font-size: 28px; }
  .foh-tagline { font-size: 16px; }
  .foh-actions .btn { width: 100%; }
}

