/* FittedCV marketing site — page-specific layer on top of the shared design system
   (../fittedcv-brand.css: tokens, font, reset, buttons, eyebrow). Load fittedcv-brand.css
   before this file.

   High-contrast alternating sections carry the "modern tool" feel instead of gradients or drop
   shadows: .section-invert always renders as the *opposite* tone from the page background via
   the shared --invert-* tokens, so the same alternating rhythm holds in both light and dark
   mode — light mode gets white-page/black-band, dark mode gets black-page/white-band. */

:root {
  --max-width: 1120px;
  --gutter: 24px;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* --- nav --- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.brand img { width: 24px; height: 24px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--fg); }

/* --- theme toggle --- */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  padding: 0;
}

.theme-toggle:hover { border-color: var(--fg); }

.theme-toggle svg { width: 17px; height: 17px; }

.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
}

/* --- sections / rhythm --- */

section { padding: 120px 0; }

.section-invert { background: var(--invert-bg); color: var(--invert-fg); }
.section-subtle { background: var(--subtle); }

.eyebrow { margin-bottom: 18px; }

h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; }

h1 { font-size: clamp(40px, 6vw, 72px); }
h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }

.lede {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--muted);
  max-width: 620px;
  line-height: 1.55;
  margin: 22px 0 0;
}

.section-invert .lede { color: var(--invert-muted); }

.section-head {
  max-width: 640px;
  margin: 0 0 64px;
}

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* --- hero --- */

.hero {
  padding: 88px 0 120px;
  text-align: center;
}

.hero .wrap { display: flex; flex-direction: column; align-items: center; }

.hero .lede { margin-left: auto; margin-right: auto; text-align: center; }

.hero .btn-row { justify-content: center; margin-top: 40px; }

.hero-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--faint);
}

/* --- how it works --- */

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--invert-border);
}

.step {
  padding: 40px 24px 0;
  border-left: 1px solid var(--invert-border);
}

.step:last-child { border-right: 1px solid var(--invert-border); }

.step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--invert-faint);
  margin-bottom: 20px;
}

.step h3 { margin-bottom: 10px; }

.step p {
  font-size: 14.5px;
  color: var(--invert-muted);
  line-height: 1.55;
  margin: 0;
}

/* --- feature grid --- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.feature {
  background: var(--bg);
  padding: 36px 32px;
}

.feature h3 { margin-bottom: 10px; }

.feature p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* --- CTA band --- */

.cta-band {
  text-align: center;
  padding: 130px 0;
}

.cta-band .btn-row { justify-content: center; margin-top: 36px; }

/* --- footer --- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  text-decoration: none;
  font-size: 13.5px;
  color: var(--muted);
}

.footer-links a:hover { color: var(--fg); }

.footer-copy {
  font-size: 13px;
  color: var(--faint);
}

/* --- reveal-on-scroll (progressive: .reveal is fully visible by default, so content never
   depends on JS running — main.js adds .js-reveal to <html> only once it's actually executing,
   which is what switches .reveal into the hidden-until-scrolled-into-view starting state). --- */

.js-reveal .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --- simple content pages (privacy / contact) --- */

.page-header {
  padding: 84px 0 56px;
  border-bottom: 1px solid var(--border);
}

.prose {
  max-width: 720px;
  padding: 64px var(--gutter) 120px;
  margin: 0 auto;
}

.prose h2 {
  font-size: 24px;
  margin: 48px 0 16px;
}

.prose h2:first-child { margin-top: 0; }

.prose p, .prose li {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
}

.prose ul { padding-left: 22px; }

.prose a { color: var(--fg); text-decoration: underline; text-underline-offset: 2px; }

.contact-card {
  padding: 48px;
  text-align: center;
  margin-top: 8px;
}

.contact-card p { color: var(--muted); margin: 12px 0 28px; }

/* --- responsive --- */

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; border-top: none; }
  .step { border: none; border-top: 1px solid var(--invert-border); padding: 32px 0 0; }
  .step:last-child { border-right: none; padding-bottom: 8px; }
  .grid-3 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  section { padding: 80px 0; }
  .hero { padding: 64px 0 80px; }
}
