/* ─────────────────────────────────────────────────────────────────────────
   EN-Payroll Sync marketing site — shared styles.
   Design system in one file. Each HTML page is just structure + copy.

   Adjust the --accent / --fg variables to reskin. Palette is the
   EN-Payroll Sync blue family.
   ───────────────────────────────────────────────────────────────────────── */

:root {
  --fg:           #1a1f2b;   /* charcoal */
  --fg-strong:    #0f1729;
  --muted:        #5a6478;
  --muted-soft:   #9ca3af;
  --accent:       #1f4ed8;   /* EN-Payroll Sync blue */
  --accent-hover: #1a3fb0;
  --accent-soft:  #dbe4fb;
  --bg:           #ffffff;
  --bg-alt:       #f8fafc;
  --bg-dark:      #0f1729;
  --rule:         #e6e9ef;
  --max-content:  1100px;
  --max-prose:    680px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { color: var(--accent-hover); text-decoration: underline; }

p { margin: 0 0 16px; }

ul { margin: 0 0 16px; padding: 0 0 0 22px; }
li { margin-bottom: 8px; }

h1, h2, h3 {
  color: var(--fg-strong);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
h1 { font-size: 42px; line-height: 1.15; font-weight: 700; }
h2 { font-size: 26px; line-height: 1.25; font-weight: 700; }
h3 { font-size: 18px; line-height: 1.35; font-weight: 700; }

/* ── Layout containers ───────────────────────────────────────────────── */
.container {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 28px;
}
.prose {
  max-width: var(--max-prose);
  margin: 0 auto;
}

/* ── Top nav ──────────────────────────────────────────────────────────── */
nav.top {
  border-bottom: 1px solid var(--rule);
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}
nav.top .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.wordmark {
  font-weight: 800;
  font-size: 18px;
  color: var(--fg-strong);
  letter-spacing: -0.02em;
}
.wordmark a { color: inherit; }
.wordmark a:hover { text-decoration: none; color: var(--accent); }
nav.top ul.links {
  display: flex;
  gap: 26px;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
}
nav.top ul.links a {
  color: var(--fg);
  font-weight: 500;
  font-size: 15px;
}
nav.top ul.links a.current {
  color: var(--accent);
}
nav.top ul.links a:hover { text-decoration: none; color: var(--accent); }

/* ── Hero (home page) ─────────────────────────────────────────────────── */
.hero {
  padding: 96px 0 64px;
  text-align: center;
}
.hero h1 {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.hero .subhead {
  font-size: 20px;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 32px;
}

/* ── Page headers (about/features/support/etc) ───────────────────────── */
.pagehead {
  padding: 72px 0 32px;
  text-align: left;
}
.pagehead .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}
.pagehead h1 {
  font-size: 38px;
  margin-bottom: 12px;
}
.pagehead .lede {
  font-size: 19px;
  color: var(--muted);
  max-width: var(--max-prose);
  margin: 0;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 8px;
  font-size: 16px;
  transition: background-color 0.15s ease, transform 0.05s ease;
}
.btn:hover {
  background: var(--accent-hover);
  text-decoration: none;
  color: #fff !important;
}
.btn:active { transform: translateY(1px); }

.btn.ghost {
  background: transparent;
  color: var(--fg-strong) !important;
  border: 1px solid var(--rule);
}
.btn.ghost:hover { background: var(--bg-alt); color: var(--fg-strong) !important; }

/* ── Section ─────────────────────────────────────────────────────────── */
section {
  padding: 64px 0;
}
section.alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
section h2 { margin-bottom: 24px; }
section .lede {
  font-size: 19px;
  color: var(--muted);
  max-width: var(--max-prose);
  margin: 0 0 32px;
}

/* ── Feature grid (3-column) ─────────────────────────────────────────── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 12px;
}
.feature h3 {
  font-size: 17px;
  margin-bottom: 8px;
  color: var(--fg-strong);
}
.feature p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

/* ── How-it-works (numbered steps) ───────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 16px;
}
.step .num {
  display: inline-block;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  background: var(--accent-soft);
  color: var(--accent-hover);
  border-radius: 50%;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
}
.step h3 {
  font-size: 17px;
  margin-bottom: 6px;
}
.step p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq {
  border-top: 1px solid var(--rule);
}
.faq details {
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: var(--fg-strong);
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: -2px;
  font-size: 22px;
  font-weight: 400;
  color: var(--muted);
  transition: transform 0.15s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  margin-top: 12px;
  color: var(--muted);
}

/* ── Contact card ────────────────────────────────────────────────────── */
.contact-card {
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  margin-top: 24px;
}
.contact-card h3 { font-size: 20px; margin-bottom: 8px; }
.contact-card p  { color: var(--muted); margin-bottom: 20px; }

/* ── Legal pages (privacy / terms) ───────────────────────────────────── */
.legal h2 {
  font-size: 20px;
  margin-top: 40px;
  margin-bottom: 12px;
}
.legal h3 {
  font-size: 16px;
  margin-top: 24px;
  margin-bottom: 8px;
}
.legal p, .legal li {
  color: var(--fg);
  font-size: 16px;
}
.legal .meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 32px;
}

/* ── Footer ──────────────────────────────────────────────────────────── */
footer.site {
  background: var(--bg-dark);
  color: #cbd5e1;
  margin-top: 0;
  padding: 56px 0 40px;
}
footer.site a { color: #e2e8f0; }
footer.site a:hover { color: #fff; }
footer.site .grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
footer.site .brand-block .wordmark { color: #fff; font-size: 20px; }
footer.site .brand-block p {
  color: #94a3b8;
  font-size: 14px;
  margin-top: 12px;
  max-width: 320px;
}
footer.site h4 {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
}
footer.site ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
footer.site ul li { margin-bottom: 8px; }
footer.site ul a {
  font-size: 15px;
  color: #cbd5e1;
}
footer.site .legal-row {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #94a3b8;
}
footer.site .legal-row a { color: #94a3b8; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 820px) {
  h1 { font-size: 34px; }
  .hero { padding: 64px 0 48px; }
  .hero .subhead { font-size: 18px; }
  .pagehead { padding: 56px 0 24px; }
  .pagehead h1 { font-size: 30px; }
  section { padding: 48px 0; }
  .grid-3, .steps {
    grid-template-columns: 1fr;
  }
  footer.site .grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  footer.site .legal-row {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  nav.top ul.links { gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
  nav.top ul.links a { font-size: 14px; }
}

@media (max-width: 520px) {
  .container { padding: 0 20px; }
  h1 { font-size: 28px; }
  .hero h1 { font-size: 28px; }
  nav.top ul.links { gap: 12px; }
}
