:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --text: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --primary: #0f172a;
  --primary-strong: #020617;
  --success: #059669;
  --shadow-soft: 0 16px 45px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 22px 60px rgba(15, 23, 42, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --container: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.skip-link,
.sr-only {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 9999;
  background: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  border-bottom: 1px solid rgba(226, 232, 240, 0.92);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.nav-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 80px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-family: "Manrope", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.1;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.desktop-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.primary-btn,
.ghost-btn,
.full-width-link {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  transition: 0.2s ease;
}

.primary-btn {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.ghost-btn,
.full-width-link {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.primary-btn:hover,
.ghost-btn:hover,
.full-width-link:hover {
  transform: translateY(-1px);
}

/* Mobile menu */
.menu-btn {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.menu-btn span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.mobile-menu {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.mobile-menu.is-open {
  display: grid;
  gap: 10px;
}

.mobile-menu a {
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px 14px;
  font-weight: 700;
}

/* Typography */
h1,
h2,
h3,
.footer-brand {
  font-family: "Manrope", "Inter", sans-serif;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.04em;
}

/* Hero */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 32px;
  align-items: start;
  padding: 48px 0 56px;
}

.eyebrow,
.section-kicker,
.panel-kicker,
.pricing-label,
.plan-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: #334155;
  font-size: 0.82rem;
  font-weight: 800;
}

/* Hero heading same size as reference */
.hero-copy h1 {
  max-width: 790px;
  margin: 18px 0 0;
  font-size: clamp(3.4rem, 4.8vw, 4.9rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

/* This prevents old manual br from making 4-5 rows */
.hero-copy h1 br,
.section-head h2 br {
  display: none !important;
}

.hero-text {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-tags span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 800;
  font-size: 0.95rem;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 32px;
  max-width: 820px;
}

.stat-card {
  min-height: 135px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-card);
  padding: 24px 22px;
  border-radius: 22px;
}

.stat-card strong {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 2.25rem;
  line-height: 1;
  letter-spacing: -0.035em;
}

.stat-card span {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.22;
}

.trust-note {
  margin-top: 24px;
  max-width: 820px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid #dbeafe;
  background: #eaf3ff;
  color: #153e90;
  font-weight: 800;
  line-height: 1.3;
}

/* Hero panel */
.hero-panel {
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-card);
  padding: 30px;
  border-radius: var(--radius-xl);
}

.panel-head h2 {
  margin: 18px 0 0;
  font-size: clamp(2.35rem, 3vw, 3.25rem);
  line-height: 1.08;
}

.panel-head p {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.75;
}

.hero-panel-grid {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

.access-card {
  border: 1px solid var(--line);
  background: #fff;
  padding: 24px 28px;
  border-radius: 22px;
}

.access-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.plan-price {
  font-weight: 600;
}

.plan-badge.premium,
.pricing-label.featured {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.access-card ul,
.pricing-card ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.access-card li,
.pricing-card li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  line-height: 1.45;
  font-weight: 700;
}

.access-card li::before,
.pricing-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--success);
}

.limit-note,
.secure-payment {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--surface-alt);
  color: var(--muted);
  line-height: 1.5;
  font-weight: 700;
}

.secure-payment,
.secure-note {
  background: #e7f8ef;
  color: #006b4a;
  border: 1px solid #d1fae5;
  font-weight: 900;
}

.premium-card {
  opacity: 0.74;
  transform: scale(0.99);
  transition: 0.25s ease;
}

.premium-preview .premium-card {
  opacity: 1;
  transform: scale(1);
}

/* Sections */
.section {
  padding: 78px 0;
}

.section-alt {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

/* Heading block */
.section-head {
  display: block;
  max-width: 100%;
  margin-bottom: 32px;
}

/* right text hidden like screenshot */
.section-head > p {
  display: none !important;
}

/* Main headings: smaller, like last screenshot */
.section-head h2 {
  margin: 16px 0 0;
  font-size: clamp(3.7rem, 4.1vw, 4.25rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
  max-width: 1050px;
  text-align: left;
  word-break: normal;
  overflow-wrap: normal;
  text-wrap: normal;
}

/* widths adjusted so heading stays max 3 rows */
#platform .section-head h2 {
  max-width: 1080px;
}

#employeeEmployer .section-head h2 {
  max-width: 1040px;
}

#premiumValue .section-head h2 {
  max-width: 980px;
}

#journey .section-head h2 {
  max-width: 1050px;
}

#categories .section-head h2 {
  max-width: 1040px;
}

#trust .section-head h2 {
  max-width: 990px;
}

#pricing .section-head h2 {
  max-width: 980px;
}

#faq .section-head h2 {
  max-width: 980px;
}

/* Cards */
.card-grid,
.pricing-grid,
.footer-grid,
.premium-shell {
  display: grid;
  gap: 18px;
}

.card-grid.four {
  grid-template-columns: repeat(4, 1fr);
}

.card-grid.three,
.pricing-grid,
.footer-grid,
.premium-shell {
  grid-template-columns: repeat(3, 1fr);
}

.core-tools-row + .core-tools-row {
  margin-top: 18px;
}

.feature-card,
.info-card,
.pricing-card,
.premium-feature {
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-card);
  padding: 28px;
  border-radius: var(--radius-lg);
}

.feature-card {
  min-height: 250px;
}

.icon-box {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--surface-alt);
  font-weight: 900;
}

.feature-card h3,
.info-card h3,
.pricing-card h3,
.premium-feature h3 {
  margin: 22px 0 0;
  font-size: 1.45rem;
  line-height: 1.15;
}

.feature-card p,
.info-card p,
.pricing-card p,
.premium-feature p,
.footer-text {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
  font-weight: 500;
}

.premium-feature span {
  display: inline-flex;
  min-height: 38px;
  padding: 0 16px;
  align-items: center;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 900;
}

/* Pricing */
.featured-pricing {
  background: var(--primary);
}

.featured-pricing h3,
.featured-pricing .price-line,
.featured-pricing li,
.featured-pricing p {
  color: #fff;
}

.featured-pricing .pricing-label.featured {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}

.price-line {
  margin: 14px 0 0;
  font-family: "Manrope", sans-serif;
  font-size: 2rem;
  font-weight: 800;
}

.full-width-link {
  width: 100%;
  margin-top: 22px;
}

.light-link {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 0 18px;
  box-shadow: var(--shadow-soft);
}

.faq-item summary {
  min-height: 62px;
  display: flex;
  align-items: center;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.75;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding-top: 40px;
}

.footer-brand {
  font-size: 1.3rem;
}

.footer-grid h3 {
  margin: 0 0 14px;
  font-family: "Manrope", sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
}

.footer-grid a {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 600;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 0 24px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

/* Responsive */
@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 760px;
  }

  .card-grid.four {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid.three,
  .pricing-grid,
  .footer-grid,
  .premium-shell {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: auto;
  }

  .section-head h2 {
    font-size: clamp(3rem, 7vw, 4rem);
    max-width: 100%;
  }
}

@media (max-width: 860px) {
  .desktop-nav,
  .nav-actions .ghost-btn,
  .nav-actions .primary-btn {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
  }

  .hero-grid {
    padding: 36px 0 44px;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--container), calc(100% - 24px));
  }

  .brand-copy small {
    display: none;
  }

  .hero-copy h1 {
    font-size: clamp(2.55rem, 11vw, 3.35rem);
    line-height: 1.08;
  }

  .section-head h2 {
    font-size: clamp(2.15rem, 9vw, 2.85rem);
    line-height: 1.12;
  }

  .panel-head h2 {
    font-size: clamp(2.15rem, 9vw, 2.75rem);
  }

  .hero-cta-row {
    flex-direction: column;
  }

  .hero-cta-row .primary-btn,
  .hero-cta-row .ghost-btn {
    width: 100%;
  }

  .card-grid.four {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================================
   HOME PAGE PROFESSIONAL UPDATE PACK
   Updated for Tool1–Tool7 + Free 600 + Premium 1500 platform data
   ========================================================= */

:root {
  --container: 1180px;
}

/* Premium SaaS typography tuning */
h1,
h2,
h3,
.footer-brand {
  letter-spacing: -0.026em;
}

body {
  line-height: 1.55;
}

/* Header polish */
.site-header {
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.nav-shell {
  min-height: 76px;
}

.desktop-nav a {
  position: relative;
}

.desktop-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 3px;
  border-radius: 999px;
  background: var(--primary);
}

/* Hero section balance */
.hero-grid {
  grid-template-columns: minmax(0, 1.04fr) minmax(390px, 0.96fr);
  gap: 36px;
  padding: 58px 0 66px;
  align-items: stretch;
}

.hero-copy {
  min-width: 0;
}

.hero-copy h1 {
  max-width: 850px;
  font-size: clamp(3.25rem, 4.85vw, 5rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.hero-text {
  max-width: 760px;
  font-size: 1.08rem;
  line-height: 1.78;
}

.hero-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.panel-head h2 {
  letter-spacing: -0.03em;
}

/* Stats: more product-grade */
.stats-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 860px;
}

.stat-card {
  min-height: 148px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-color: #dbe3ef;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.10);
}

.stat-card strong {
  font-size: clamp(2.25rem, 3vw, 3rem);
  letter-spacing: -0.04em;
}

.stat-card span {
  margin-top: 16px;
  color: #334155;
  line-height: 1.3;
}

/* Trust note */
.trust-note {
  line-height: 1.45;
}

/* Access cards alignment */
.access-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.access-card ul {
  margin-top: 0;
}

.access-card li {
  color: #334155;
  font-weight: 750;
}

/* Sections */
.section {
  padding: 84px 0;
}

.section-head {
  margin-bottom: 36px;
}

.section-head > p {
  display: block !important;
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
  font-weight: 500;
}

.section-head h2 {
  max-width: 980px;
  font-size: clamp(3rem, 4vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

/* Better card rhythm */
.card-grid,
.pricing-grid,
.footer-grid,
.premium-shell {
  gap: 20px;
}

.feature-card,
.info-card,
.pricing-card,
.premium-feature {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  border-color: #dbe3ef;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.feature-card:hover,
.info-card:hover,
.pricing-card:hover,
.premium-feature:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.10);
}

.feature-card h3,
.info-card h3,
.pricing-card h3,
.premium-feature h3 {
  margin-top: 22px;
  letter-spacing: -0.025em;
}

.feature-card p,
.info-card p,
.pricing-card p,
.premium-feature p,
.footer-text {
  color: #334155;
  line-height: 1.72;
}

.icon-box {
  background: linear-gradient(180deg, #f8fafc, #eef4fb);
  color: #0f172a;
  border: 1px solid #e2e8f0;
}

/* Premium cards */
.premium-feature span,
.pricing-label,
.plan-badge,
.eyebrow,
.section-kicker,
.panel-kicker {
  letter-spacing: 0.02em;
}

/* Pricing polish */
.pricing-card {
  min-height: 430px;
}

.pricing-card ul {
  margin-top: 22px;
}

.pricing-card li {
  color: #334155;
  font-weight: 750;
}

.featured-pricing li {
  color: #fff;
}

.full-width-link {
  margin-top: auto;
}

/* FAQ */
.faq-item {
  border-color: #dbe3ef;
}

.faq-item summary {
  font-size: 1rem;
}

/* Footer */
.site-footer {
  margin-top: 10px;
}

.footer-grid {
  align-items: start;
}

.footer-bottom {
  line-height: 1.5;
}

/* Responsive polish */
@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 100%;
  }

  .card-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid.three,
  .pricing-grid,
  .footer-grid,
  .premium-shell {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .info-card,
  .pricing-card,
  .premium-feature {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .hero-grid {
    padding: 38px 0 48px;
  }

  .hero-copy h1 {
    font-size: clamp(2.45rem, 11vw, 3.4rem);
  }

  .hero-text {
    font-size: 1rem;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 62px 0;
  }

  .section-head h2 {
    font-size: clamp(2.2rem, 9.5vw, 3rem);
  }

  .section-head > p {
    font-size: 1rem;
  }

  .card-grid.four {
    grid-template-columns: 1fr;
  }
}

