/* ===========================================================
   AHG Free Tier HRM — Landing Page  · VERSION 2
   Style inspired by employmenthero.com: vivid violet primary,
   lime-green accent, bold display type, centred hero, pill
   buttons, big rounded cards. Mobile-first.
   =========================================================== */

:root {
  /* Employment Hero–style palette (sampled from their site) */
  --c-ink:         #171214;   /* near-black headings */
  --c-ink-soft:    #4a4450;
  --c-muted:       #8a8590;
  --c-bg:          #ffffff;
  --c-bg-alt:      #f9f5ff;   /* faint violet wash */
  --c-bg-tint:     #f1e9ff;   /* light violet */
  --c-border:      #e8e2f2;
  --c-violet:      #7622d7;   /* primary brand violet */
  --c-violet-hi:   #5e17b0;   /* darker hover */
  --c-violet-soft: #9a58fc;   /* secondary violet */
  --c-violet-pale: #e6d5fe;
  --c-lime:        #bafc58;   /* signature lime accent */
  --c-lime-deep:   #94e022;
  --c-deep:        #280541;   /* deep aubergine */

  --radius:    16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(40, 5, 65, 0.06);
  --shadow-md: 0 14px 40px rgba(40, 5, 65, 0.10);
  --shadow-violet: 0 12px 30px rgba(118, 34, 215, 0.30);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;

  --content-max: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--c-ink-soft);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.center { text-align: center; }

/* ---------- Typography ---------- */

h1, h2, h3 {
  color: var(--c-ink);
  line-height: 1.08;
  margin: 0 0 var(--space-2);
  font-weight: 800;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.3rem, 6.5vw, 4rem); }

h2 {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  margin-bottom: var(--space-3);
}

h3 { font-size: 1.25rem; font-weight: 700; }

p { margin: 0 0 var(--space-2); }

.grad-text {
  background: linear-gradient(100deg, var(--c-violet) 0%, var(--c-violet-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

/* H1 manual line breaks — only on larger screens; mobile wraps naturally */
.brk { display: none; }
@media (min-width: 768px) {
  .brk { display: inline; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--c-bg-tint);
  color: var(--c-violet);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: var(--space-3);
}

.pill-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--c-lime-deep);
  box-shadow: 0 0 0 3px rgba(148, 224, 34, 0.25);
}

.lede {
  font-size: 1.18rem;
  color: var(--c-ink-soft);
  max-width: 720px;
  margin-bottom: var(--space-4);
}

.sub {
  font-size: 1.2rem;
  color: var(--c-ink-soft);
  max-width: 580px;
  margin-bottom: var(--space-3);
}

/* ---------- Buttons (pill style) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.6rem;
  background: var(--c-ink);
  color: #fff;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.18s ease, border-color 0.15s ease;
  text-align: center;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--c-violet);
  color: #fff;
  box-shadow: var(--shadow-violet);
}
.btn--primary:hover {
  background: var(--c-violet-hi);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(118, 34, 215, 0.4);
}

.btn--ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-border);
}
.btn--ghost:hover {
  border-color: var(--c-violet);
  color: var(--c-violet);
  transform: translateY(-2px);
}

.btn--lg { padding: 1.05rem 1.9rem; font-size: 1.05rem; }
.btn--xl { padding: 1.2rem 2.4rem; font-size: 1.2rem; gap: 0.6rem; }
.btn--block { display: flex; width: 100%; }

.btn--lime {
  background: var(--c-lime);
  color: var(--c-ink);
  box-shadow: 0 12px 30px rgba(186, 252, 88, 0.35);
}
.btn--lime:hover {
  background: var(--c-lime-deep);
  color: var(--c-ink);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(148, 224, 34, 0.45);
}
.btn--lime svg { width: 1.25em; height: 1.25em; transition: transform 0.2s ease; }
.btn--lime:hover svg { transform: translateX(4px); }

/* ---------- Sections ---------- */

.section { padding: var(--space-5) 0; }

.section--pain   { background: var(--c-bg-alt); }
.section--how    { background: var(--c-bg-alt); }
.section--proof  { background: var(--c-bg-tint); }
.section--signup {
  background: var(--c-deep);
  background-image:
    radial-gradient(circle at 12% 18%, rgba(154, 88, 252, 0.5), transparent 55%),
    radial-gradient(circle at 88% 85%, rgba(118, 34, 215, 0.5), transparent 55%);
  color: #fff;
}
.section--signup h2 { color: #fff; }

/* ---------- CTA block (links out to the hosted form) ---------- */

.cta-block {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-block h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: var(--space-2);
}

.cta-block__sub {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  margin-bottom: var(--space-4);
}

.cta-block__btn { margin-bottom: var(--space-3); }

.cta-block__note {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin: var(--space-3) 0 0;
}

.trust-badges.trust-badges--on-dark { color: #ffffff; font-weight: 700; }
.trust-badges.trust-badges--on-dark .trust-tick { color: var(--c-lime); }

@media (min-width: 768px) {
  .section { padding: var(--space-6) 0; }
}

/* ---------- Hero (centred, EH style) ---------- */

.hero {
  padding: var(--space-5) 0 var(--space-6);
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, var(--c-bg-tint), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, var(--c-bg-alt) 100%);
  text-align: center;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
}

.hero__content {
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Headline can use the full width so the forced 3-line break
   ("your inbox. Let us handle it." on one line) fits; keep the
   body copy narrower for readability. */
.hero__content .sub { max-width: 600px; }

.hero__content h1 { margin-bottom: var(--space-3); }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  margin-bottom: var(--space-2);
}

.trust-badges {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--c-ink-soft);
  font-weight: 600;
}

.trust-badges li { display: inline-flex; align-items: center; }

.trust-tick {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--c-lime-deep);
  margin-right: 0.4rem;
}

.hero__image {
  width: 100%;
  max-width: 960px;
  position: relative;
}

.hero__image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 6px solid #fff;
}

/* ---------- Tonal icon system ---------- */

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 14px;
  background: var(--c-bg-tint);
  color: var(--c-violet);
  flex-shrink: 0;
  margin-bottom: var(--space-1);
}
.icon svg { width: 1.4rem; height: 1.4rem; }

.icon--lg {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 16px;
  background: var(--c-violet);
  color: #fff;
}
.icon--lg svg { width: 1.7rem; height: 1.7rem; }

/* ---------- Pain section (centred checklist) ---------- */

.section--pain h2,
.section--pain .lede,
.section--pain .transition {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.pain-list {
  list-style: none;
  padding: var(--space-1) var(--space-3);
  margin: 0 auto var(--space-4);
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  max-width: 760px;
}

.pain-row {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-3) 0;
  border-top: 1px solid var(--c-border);
  transition: padding-left 0.2s ease;
}
.pain-row:first-child { border-top: 0; }
.pain-row:hover { padding-left: 0.5rem; }
.pain-row .icon { margin-bottom: 0; transition: transform 0.2s ease; }
.pain-row:hover .icon { transform: scale(1.08); }
.pain-row p { margin: 0; font-weight: 600; color: var(--c-ink); }

.transition {
  font-size: 1.1rem;
  color: var(--c-ink-soft);
  max-width: 760px;
  margin-top: var(--space-3);
}

/* ---------- Service cards ---------- */

.service-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
  margin-bottom: var(--space-4);
}

.service-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-violet-pale);
}
.service-card .icon--lg { transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.service-card:hover .icon--lg { transform: scale(1.08) rotate(-3deg); }
.service-card h3 { margin: var(--space-2) 0 var(--space-1); }

.service-card__turnaround {
  margin-top: var(--space-2);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--c-lime-deep);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (min-width: 640px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .service-grid { grid-template-columns: repeat(4, 1fr); } }

.center { text-align: center; }

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-3);
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}

.step {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  border: 1px solid var(--c-border);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.step__num {
  width: 2.75rem;
  height: 2.75rem;
  background: var(--c-lime);
  color: var(--c-ink);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: var(--space-2);
}
.step h3 { margin-bottom: var(--space-1); }
.step p { margin: 0; color: var(--c-ink-soft); }

.callout {
  background: var(--c-bg-tint);
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-3);
  text-align: center;
  font-size: 0.95rem;
  color: var(--c-violet);
  font-weight: 600;
}

@media (min-width: 1024px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Social proof ---------- */

.quote-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-3) var(--space-3);
  margin: 0 auto var(--space-4);
  max-width: 700px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.quote-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--c-violet), var(--c-lime));
}
.quote-card__mark {
  position: absolute;
  top: 0.1em; left: 0.3em;
  font-size: 5rem; line-height: 1;
  font-family: Georgia, serif;
  color: var(--c-bg-tint);
}
.quote-card blockquote { margin: 0; position: relative; z-index: 1; }
.quote-card blockquote p {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--c-ink);
  font-weight: 600;
}
.quote-card__by {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--c-border);
}
.quote-card__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: var(--radius-pill);
  background: var(--c-violet);
  color: #fff;
  flex-shrink: 0;
}
.quote-card__avatar svg { width: 1.4rem; height: 1.4rem; }
.quote-card__meta { display: flex; flex-direction: column; line-height: 1.3; }
.quote-card__meta strong { color: var(--c-ink); }
.quote-card__meta span { color: var(--c-muted); font-size: 0.88rem; }

.proof-stats {
  list-style: none;
  margin: 0 auto var(--space-4);
  padding: 0;
  max-width: 760px;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}
.proof-stats li {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-2);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.proof-stats__num {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--c-violet);
}
.proof-stats__num small { font-size: 0.9rem; font-weight: 800; margin-left: 1px; }
.proof-stats__label { display: block; margin-top: 0.4rem; font-size: 0.92rem; color: var(--c-ink-soft); }

.trust-statement {
  color: var(--c-ink-soft);
  font-size: 0.98rem;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

@media (min-width: 640px) { .proof-stats { grid-template-columns: repeat(3, 1fr); } }

/* ---------- FAQ ---------- */

.faq details {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-2);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease;
}
.faq details[open] { border-color: var(--c-violet-pale); }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--c-ink);
  padding: 0.25rem 0;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-violet);
}
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: var(--space-2) 0 0; color: var(--c-ink-soft); }

/* ---------- Footer ---------- */

.footer {
  padding: var(--space-5) 0;
  background: var(--c-ink);
  color: #b9b2c2;
  font-size: 0.92rem;
}
.footer a { color: #fff; }

.footer__logo {
  height: 42px;
  width: auto;
  margin: 0 auto var(--space-3);
}

.footer__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.4rem 0.75rem;
  margin: 0;
}
.footer__sep { color: var(--c-muted); }

/* Stack onto two lines on small screens; hide the divider when wrapped */
@media (max-width: 559px) {
  .footer__sep { display: none; }
  .footer__meta { gap: 0.35rem; }
  .footer__meta > span { width: 100%; }
}

/* ---------- Motion: scroll reveal + hero entrance ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

.reveal.is-visible .pain-row,
.reveal.is-visible .service-card,
.reveal.is-visible .step {
  animation: rise-in 0.5s ease both;
}
.reveal.is-visible .pain-row:nth-child(2),
.reveal.is-visible .service-card:nth-child(2),
.reveal.is-visible .step:nth-child(2) { animation-delay: 0.08s; }
.reveal.is-visible .pain-row:nth-child(3),
.reveal.is-visible .service-card:nth-child(3),
.reveal.is-visible .step:nth-child(3) { animation-delay: 0.16s; }
.reveal.is-visible .pain-row:nth-child(4),
.reveal.is-visible .service-card:nth-child(4) { animation-delay: 0.24s; }
.reveal.is-visible .pain-row:nth-child(5),
.reveal.is-visible .service-card:nth-child(5) { animation-delay: 0.32s; }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.hero__content > *,
.hero__image {
  animation: rise-in 0.6s ease both;
}
.hero__content > *:nth-child(1) { animation-delay: 0.05s; }
.hero__content > *:nth-child(2) { animation-delay: 0.12s; }
.hero__content > *:nth-child(3) { animation-delay: 0.19s; }
.hero__content > *:nth-child(4) { animation-delay: 0.26s; }
.hero__content > *:nth-child(5) { animation-delay: 0.33s; }
.hero__image { animation-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
