:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #172033;
  --muted: #5f6b7a;
  --line: #dfe4ea;
  --brand: #164a7b;
  --brand-dark: #0f3559;
  --accent: #e9f1f8;
  --soft: #eef3f7;
  --radius: 18px;
  --shadow: 0 14px 40px rgba(23, 32, 51, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a { color: inherit; }
p { color: var(--muted); }

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}
.narrow { max-width: 760px; }
.section { padding: 88px 0; }
.alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.brand {
  display: block;
  width: 190px;
  height: 42px;
  flex: 0 0 190px;
  overflow: hidden;
  text-indent: -9999px;
  white-space: nowrap;
  text-decoration: none;
  background-image: url("/AI_Jobflow_logo_skarp.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}
.nav {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-left: auto;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.93rem;
}
.nav a:hover { color: var(--text); }
.header-cta { min-height: 42px; padding: 0 16px; }

.hero { padding-top: 56px; }
.hero-grid,
.foundation-grid,
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(310px, 0.75fr);
  gap: 56px;
  align-items: center;
}

.eyebrow,
.product-label {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--brand);
}

h1, h2, h3 {
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-top: 0;
}
h1 {
  max-width: 800px;
  margin-bottom: 22px;
  font-size: clamp(2.7rem, 7vw, 5.4rem);
}
h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
}
h3 {
  margin-bottom: 14px;
  font-size: 1.42rem;
}
.lead { max-width: 720px; font-size: 1.18rem; }
.lead-small { font-size: 1.08rem; }

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 780;
}
.button.primary { background: var(--brand); color: #fff; }
.button.primary:hover { background: var(--brand-dark); }
.button.secondary { background: var(--surface); border-color: var(--line); }
.button.disabled { cursor: default; opacity: 0.72; }
.full { width: 100%; margin-top: auto; }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.9rem;
}
.trust-row span::before {
  content: "✓";
  color: var(--brand);
  margin-right: 7px;
  font-weight: 850;
}

.flow-card,
.product-card,
.info-card,
.foundation-card,
.check-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.flow-card {
  display: grid;
  gap: 12px;
  padding: 30px;
}
.flow-card span {
  padding: 13px 15px;
  border-radius: 12px;
  background: var(--accent);
  font-weight: 720;
}
.flow-card span small {
  display: inline-block;
  margin-left: 6px;
  color: var(--brand);
  font-weight: 800;
}
.flow-card b { color: var(--brand); text-align: center; }

.section-heading { max-width: 760px; margin-bottom: 38px; }
.three-grid,
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.info-card { padding: 26px; box-shadow: none; }
.info-card p:last-child { margin-bottom: 0; }
.step-number {
  margin: 0 0 20px;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  color: var(--brand);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.process-step {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  align-items: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.process-step > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent);
  color: var(--brand);
  font-weight: 850;
}
.process-step h3 { margin-bottom: 8px; }
.process-step p { margin: 0; }

.foundation {
  background: linear-gradient(180deg, var(--soft), #f7f8fa);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.foundation-card {
  display: grid;
  gap: 6px;
  padding: 28px;
}
.foundation-card strong { margin-top: 12px; font-size: 1.05rem; }
.foundation-card strong:first-child { margin-top: 0; }
.foundation-card span { color: var(--muted); }

.product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px;
}
.product-card.featured { border: 2px solid var(--brand); }
.badge {
  position: absolute;
  top: -13px;
  right: 22px;
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}
.product-card ul { margin: 14px 0 26px; padding-left: 20px; }
.product-card li + li { margin-top: 8px; }
.price-placeholder {
  margin: auto 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--soft);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.check-card { padding: 12px 28px; }
.check-card p {
  display: grid;
  gap: 3px;
  padding: 16px 0;
  margin: 0;
  border-bottom: 1px solid var(--line);
}
.check-card p:last-child { border-bottom: 0; }
.check-card strong { color: var(--text); }

#responsibility .info-card { background: var(--surface); }

details { padding: 18px 0; border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 760; }

.final-cta { padding: 70px 0; }
.final-cta-inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  padding: 38px;
  border-radius: 22px;
  background: #111827;
}
.final-cta h2 { color: #fff; margin-bottom: 0; max-width: 720px; }
.final-cta .eyebrow { color: #9cc4e7; }

.site-footer { padding: 28px 0; background: #0b1220; color: #e5e7eb; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-inner span { color: #cbd5e1; }

@media (max-width: 960px) {
  .nav { display: none; }
  .header-inner { gap: 12px; }
  .header-cta { margin-left: auto; }
}

@media (max-width: 820px) {
  .hero-grid,
  .foundation-grid,
  .split-grid,
  .product-grid,
  .three-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }
  .hero { padding-top: 44px; }
  .section { padding: 68px 0; }
  .final-cta-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px;
  }
}

@media (max-width: 520px) {
  .container { width: min(100% - 28px, 1120px); }
  .site-header .button { font-size: 0.86rem; padding: 0 12px; }
  .brand { width: 160px; height: 36px; flex-basis: 160px; }
  h1 { font-size: clamp(2.4rem, 14vw, 4rem); }
}

/* New hero graphic only: same placement, now as one image. */
.hero-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(540px, 1.1fr) !important;
  gap: 40px !important;
}

.hero-visual {
  min-height: 0 !important;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #f7f9fc !important;
  background-image: url("/assets/ai-jobflow-hero-new.webp") !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  background-position: center !important;
}

@media (max-width: 820px) {
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }
  .hero-visual {
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0 !important;
  }
}
