* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --cream: #faf8f5;
  --warm-gray: #f0ede8;
  --dark: #1a1a2e;
  --text: #2d2d44;
  --text-muted: #6b6b80;
  --accent: #e07a5f;
  --accent-hover: #c96850;
  --border: #e5e0d8;
  --white: #ffffff;
  --gap-bg: #f2e0c9;
  --gap-text: #8a6d3b;
}

body {
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 80vw;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
nav {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.logo {
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--dark);
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo .logo-mark {
  flex: none;
  width: 36px;
  height: 36px;
  display: block;
}

/* Hero */
.hero {
  padding: 80px 0 60px;
}

.badge {
  display: inline-block;
  background: var(--warm-gray);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Desktop: pitch on the left, signup panel on the right. Collapses to the
   original centred single column at ≤900px (see the media query below). */
.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: start;
}

.hero-signup {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}

h1 {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--dark);
  margin-bottom: 20px;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: none;
  margin: 0;
  line-height: 1.7;
}

/* Pillars */
.pillars {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: none;
  margin: 0 0 20px;
  text-align: left;
}

.pillar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.hero-signup .pillar {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 0 0 14px;
}

.hero-signup .pillar:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.pillar strong {
  color: var(--dark);
}

.pillar span {
  color: var(--text-muted);
}

.pricing-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 24px;
  text-align: left;
  max-width: none;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* Form */
.signup-form {
  max-width: 460px;
  margin: 0 auto;
}

.input-group {
  display: flex;
  gap: 8px;
}

.input-group input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.input-group input:focus {
  border-color: var(--accent);
}

.input-group input::placeholder {
  color: var(--text-muted);
}

.input-group button {
  padding: 12px 24px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.input-group button:hover {
  background: var(--accent-hover);
}

.form-note {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form-message {
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 8px;
  display: none;
}

.form-message.success {
  background: #e8f5e9;
  color: #2e7d32;
  display: block;
}

.form-message.error {
  background: #fbe9e7;
  color: #c62828;
  display: block;
}

/* How it works */
.how-it-works {
  padding: 80px 0;
  background: var(--white);
}

.how-it-works h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 48px;
}

.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.step {
  padding: 24px;
  border-radius: 12px;
  background: var(--cream);
  border: 1px solid var(--border);
}

.step-number {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 8px;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Pipeline demo mockup */
.pipeline-demo-section {
  padding: 80px 0;
  background: var(--cream);
}

.pipeline-demo-section h2 {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.pipeline-demo {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}

.demo-job-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.demo-job-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.demo-job-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--dark);
}

.demo-job-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.demo-fit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
}

.demo-fit-head h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
}

.demo-fit-score {
  background: var(--accent);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}

.demo-fit-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 10px 0 18px;
}

.demo-fit-summary span {
  background: var(--warm-gray);
  color: var(--text-muted);
  padding: 2px 10px;
  border-radius: 12px;
}

.demo-verdicts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.demo-verdict {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
}

.demo-verdict-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.demo-requirement {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dark);
}

.demo-badge {
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 2px 10px;
  border-radius: 12px;
}

.demo-verdict-matched .demo-badge {
  background: var(--warm-gray);
  color: var(--text);
}

.demo-verdict-profile-gap .demo-badge {
  background: var(--gap-bg);
  color: var(--gap-text);
}

.demo-verdict-framing-gap .demo-badge {
  background: #e9e6ec;
  color: var(--text-muted);
}

.demo-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 8px;
}

/* Shows the app's affordance without looking like a live control on a static page. */
.demo-gap-btn {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 14px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  cursor: default;
}

.demo-arrow {
  text-align: center;
  font-size: 1.4rem;
  color: var(--accent);
  margin: 0 auto;
}

.demo-output {
  background: var(--warm-gray);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.demo-output h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
}

.demo-output p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 6px;
}

.demo-caption {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 16px auto 0;
}

/* What it won't do — guardrails */
.guardrails {
  padding: 80px 0;
  background: var(--white);
}

.guardrails h2 {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.guardrail-list {
  list-style: none;
  max-width: 760px;
  margin: 24px auto 0;
  padding: 0;
}

.guardrail-list li {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
}

.guardrail-list li strong {
  color: var(--dark);
}

/* Origin / About */
.origin {
  padding: 80px 0;
  background: var(--white);
  text-align: center;
}

.origin h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
}

.origin-text {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* CTA */
.cta {
  padding: 80px 0;
  text-align: center;
  background: var(--warm-gray);
  border-top: 1px solid var(--border);
}

.cta h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.cta p {
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 32px;
  font-size: 1rem;
}

/* Footer */
footer {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--white);
}

/* Responsive */

/* The two-column hero's signup panel is a narrow column: its content box runs from
   ~223px at a 901px viewport to ~403px at ≥1400px, while the side-by-side input +
   button row it holds needs ~350px (it only fits past ~1250px). Stack the form
   across the whole two-column band; the 1300px cut-off is deliberately
   conservative. Outside the band the default `.input-group` row applies — as on
   main at ≤900px — and the ≤640px block still stacks it. */
@media (min-width: 901px) and (max-width: 1300px) {
  .hero-signup .input-group {
    flex-direction: column;
  }

  .hero-signup .input-group button {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .container {
    width: 100%;
  }

  .hero {
    text-align: center;
  }

  .hero-content {
    display: block;
  }

  .hero-signup {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
  }

  .subtitle {
    max-width: 600px;
    margin: 0 auto 48px;
  }

  .pillars {
    max-width: 480px;
    margin: 0 auto 48px;
  }

  .hero-signup .pillar {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 20px;
  }

  /* The desktop `:last-child` divider suppressant is more specific than the
       rule above, so restore the real card edge here. */
  .hero-signup .pillar:last-child {
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
  }

  .pricing-note {
    max-width: 480px;
    margin: 0 auto 48px;
    text-align: center;
    padding-top: 0;
    border-top: 0;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .input-group {
    flex-direction: column;
  }

  .input-group button {
    width: 100%;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .how-it-works,
  .pipeline-demo-section,
  .guardrails,
  .origin,
  .cta {
    padding: 48px 0;
  }

  .demo-fit-summary span {
    font-size: 0.75rem;
  }
}
