/* 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: 1200px;
  --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; }

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

.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: 50%;
  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-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
}

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

section { padding: 80px 0; }

/* Every section below the hero cuts its own top padding harder than the shared default, so two
   adjacent sections don't each contribute a full section's worth of blank space back to back at
   every boundary — the background/border change between sections already reads as the break. */
#how-it-works, #features, #pricing { padding-top: 36px; }

.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 44px;
}

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

/* --- hero --- */

.hero { padding: 72px 0 0; }

.hero-split {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 48px;
  align-items: center;
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-bottom: 48px;
}

/* badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-subtle);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-badge-icon { width: 12px; height: 12px; flex-shrink: 0; }

.hero-eyebrow { display: block; margin: 10px 0 14px; }

/* "right fit" accent span */
.hero-em { color: var(--accent); }

.hero-left .lede { margin-top: 20px; }

.hero-left .btn-row { margin-top: 32px; }

.hero-cta { display: inline-flex; align-items: center; gap: 8px; }
.hero-cta-icon { width: 16px; height: 16px; flex-shrink: 0; }

.nav-cta { display: inline-flex; align-items: center; gap: 7px; }
.nav-cta-icon { width: 13px; height: 13px; flex-shrink: 0; }

.hero-note {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}
.hero-note a { color: var(--fg); text-decoration: underline; text-underline-offset: 2px; }

/* app card wrap — purple blob behind the card */
.hero-app-wrap {
  position: relative;
  padding-bottom: 48px;
}
.hero-app-wrap::before {
  content: '';
  position: absolute;
  inset: -40% -30%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 55% 45%, var(--accent-subtle) 25%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hero-app-card {
  position: relative;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.06);
}


.hac-items { padding: 8px 0; }

.hac-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 20px;
}

.hac-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--accent);
  background: var(--accent-subtle);
}
.hac-icon svg { width: 20px; height: 20px; }

.hac-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  line-height: 1.3;
}

.hac-desc {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.45;
}

.hac-pill {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: var(--accent-subtle);
  color: var(--accent);
}

/* feature checklist */
.hero-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 48px;
}
.hero-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  line-height: 1.4;
}
.hcl-check {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 0;
}
.hcl-badge {
  display: block;
  width: fit-content;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--accent-subtle);
  color: var(--accent);
  margin-top: 4px;
  white-space: nowrap;
}

/* --- app previews section --- */

.app-previews {
  padding: 24px 0 60px;
}

.app-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.app-preview {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.ap-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--subtle);
}

.ap-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--fg);
  white-space: nowrap;
}

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

.ap-tabs { display: flex; gap: 2px; margin-left: auto; }

.ap-tab {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
.ap-active {
  background: var(--bg);
  color: var(--fg);
  font-weight: 600;
  border: 1px solid var(--border);
}

.ap-add-job { margin-left: auto; }

.ap-body {
  display: flex;
  height: 310px;
  overflow: hidden;
}
.ap-body-jobs { /* no sidebar */ }

.ap-sidebar {
  width: 172px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 6px 0;
}

.ap-si {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  margin: 0 4px;
  border-radius: 6px;
  font-size: 11.5px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1.3;
}
.ap-si:hover { background: var(--border); color: var(--fg); }
.ap-si-active { background: var(--border); color: var(--fg); font-weight: 600; }
.ap-si-icon { width: 13px; height: 13px; flex-shrink: 0; }

.ap-main {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
}

.ap-heading {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin: 0 0 4px;
}
.ap-subtext {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 12px;
  line-height: 1.5;
}

.ap-callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  background: var(--subtle);
  border: 1px solid var(--border);
  margin-bottom: 14px;
}
.ap-callout-accent {
  background: color-mix(in srgb, var(--accent) 7%, var(--bg));
  border-color: color-mix(in srgb, var(--accent) 22%, var(--border));
}

.ap-callout-key {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--accent-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
.ap-callout-key svg { width: 13px; height: 13px; }

.ap-callout-body { flex: 1; min-width: 0; }

.ap-callout-title {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 3px;
  line-height: 1.4;
}
.ap-callout-desc {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 2px;
  line-height: 1.4;
}
.ap-callout-note {
  font-size: 10.5px;
  color: var(--faint);
  margin: 0;
}
.ap-callout-btn { flex-shrink: 0; align-self: center; white-space: nowrap; }

.ap-import-hed {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 6px;
}
.ap-import-body {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 10px;
}

.ap-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 12px 12px;
}
.ap-empty-icon { width: 36px; height: 36px; color: var(--faint); margin-bottom: 10px; }
.ap-empty-title { font-size: 14px; font-weight: 700; color: var(--fg); margin: 0 0 5px; }
.ap-empty-desc {
  font-size: 11.5px;
  color: var(--muted);
  margin: 0 0 12px;
  max-width: 220px;
  line-height: 1.5;
}

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

.steps-prereq {
  margin: 14px auto 0;
  max-width: 560px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--invert-muted);
}

.steps-prereq strong,
.steps-prereq a { color: var(--invert-fg); }

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

.step {
  padding: 28px 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;
}

/* --- optional extension callout (within features section) --- */

.ext-note {
  margin-top: 40px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-subtle, var(--bg));
}

.ext-note h3 { margin-bottom: 8px; }

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

.ext-note .btn-row { margin: 0; }

/* --- pricing --- */

.pricing-head {
  max-width: 620px;
  margin: 0 auto 44px;
  text-align: center;
}

.pricing-head .lede { margin-left: auto; margin-right: auto; }

.pricing-points {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pricing-points p {
  margin: 0;
  background: var(--bg);
  border-left: 4px solid var(--fg);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
}

.pricing-points strong { color: var(--fg); font-weight: 700; }

.pricing-note {
  margin: 28px auto 0;
  max-width: 720px;
  font-size: 13px;
  color: var(--faint);
  line-height: 1.6;
}

.pricing-star {
  text-decoration: none;
  color: var(--faint);
}

.pricing-fineprint {
  margin: 10px auto 0;
  max-width: 720px;
  font-size: 12px;
  color: var(--faint);
  line-height: 1.55;
}

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

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

.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);
  text-align: center;
}

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

.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; }

.contact-card .contact-email {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 600;
  color: var(--fg);
  margin: 0;
  user-select: all;
}

/* --- responsive --- */

/* tablet: fixed column can't fit */
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* mobile: single column */
@media (max-width: 700px) {
  .hero { padding: 48px 0 0; }
  .hero-split { grid-template-columns: 1fr; gap: 28px; }
  .hero-left { padding-bottom: 0; }
  .hero-app-wrap { padding-bottom: 24px; }
  .hero-app-wrap::before { inset: -20% -15%; }
}

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