/* =========================================
   ApplyHQ — Warm editorial theme
   ========================================= */

:root {
  --cream: #FAF7F2;
  --cream-dark: #F0EBE3;
  --charcoal: #1A1714;
  --charcoal-muted: #4A4540;
  --terracotta: #C4541A;
  --terracotta-dark: #A34415;
  --ink: #2C2825;
  --ink-light: #6B6460;
  --success: #3A7D44;
  --pending: #B07D1A;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --space-2xl: 6rem;
}

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

body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- NAV ---- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid rgba(26, 23, 20, 0.08);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--charcoal);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 6px;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--charcoal);
}

.nav-tagline {
  font-size: 0.8rem;
  color: var(--ink-light);
  letter-spacing: 0.01em;
}

/* ---- MANIFESTO ---- */
.manifesto {
  padding: var(--space-2xl) 2rem var(--space-xl);
  border-bottom: 1px solid rgba(26, 23, 20, 0.06);
}

.manifesto-inner {
  max-width: 860px;
  margin: 0 auto;
}

.manifesto-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1.25rem;
}

.manifesto-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--charcoal);
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.manifesto-body {
  font-size: 1.15rem;
  color: var(--charcoal-muted);
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.manifesto-body--accent {
  color: var(--charcoal);
  font-weight: 500;
  font-size: 1.2rem;
}

/* ---- HOW IT WORKS ---- */
.howitworks {
  padding: var(--space-xl) 2rem;
  border-bottom: 1px solid rgba(26, 23, 20, 0.06);
  background: var(--cream-dark);
}

.howitworks-header {
  max-width: 860px;
  margin: 0 auto var(--space-lg);
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-light);
}

.steps {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.step {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(26, 23, 20, 0.08);
}

.step:last-child { border-bottom: none; }

.step-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--terracotta);
  opacity: 0.5;
  line-height: 1;
  padding-top: 0.2rem;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.step-desc {
  font-size: 0.95rem;
  color: var(--charcoal-muted);
  line-height: 1.65;
}

/* ---- APPROVAL QUEUE ---- */
.queue-section {
  padding: var(--space-xl) 2rem;
}

.queue-header {
  max-width: 1100px;
  margin: 0 auto var(--space-lg);
}

.queue-sub {
  font-size: 0.9rem;
  color: var(--ink-light);
  margin-top: 0.5rem;
}

.queue-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.app-card {
  background: white;
  border: 1px solid rgba(26, 23, 20, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.app-card--done {
  opacity: 0.75;
}

.app-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.status-badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.status-badge--pending {
  background: rgba(176, 125, 26, 0.12);
  color: var(--pending);
}

.status-badge--done {
  background: rgba(58, 125, 68, 0.12);
  color: var(--success);
}

.app-date {
  font-size: 0.75rem;
  color: var(--ink-light);
  white-space: nowrap;
}

.app-role {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.3;
}

.app-company {
  font-size: 0.9rem;
  color: var(--charcoal-muted);
  font-weight: 500;
}

.app-location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--ink-light);
}

.location-dot {
  width: 6px;
  height: 6px;
  background: var(--terracotta);
  border-radius: 50%;
}

.app-match {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.match-bar {
  flex: 1;
  height: 4px;
  background: var(--cream-dark);
  border-radius: 2px;
  overflow: hidden;
}

.match-fill {
  height: 100%;
  background: var(--terracotta);
  border-radius: 2px;
}

.match-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--terracotta);
  white-space: nowrap;
}

.app-pkg {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.75rem;
  background: var(--cream);
  border-radius: 6px;
}

.pkg-item {
  font-size: 0.8rem;
  color: var(--ink-light);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pkg-item--done {
  color: var(--charcoal-muted);
}

.pkg-check {
  color: var(--success);
  font-size: 0.85rem;
}

.app-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.btn-approve {
  flex: 1;
  background: var(--charcoal);
  color: var(--cream);
  border: none;
  border-radius: 6px;
  padding: 0.65rem 1rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: default;
  opacity: 0.4;
}

.btn-review {
  background: transparent;
  color: var(--charcoal-muted);
  border: 1px solid rgba(26, 23, 20, 0.2);
  border-radius: 6px;
  padding: 0.65rem 1rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: default;
  opacity: 0.4;
}

/* ---- CLOSER ---- */
.closer {
  padding: var(--space-2xl) 2rem;
  background: var(--charcoal);
  color: var(--cream);
  text-align: center;
}

.closer-inner {
  max-width: 640px;
  margin: 0 auto;
}

.closer-ornament {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  color: var(--cream);
  opacity: 0.4;
}

.closer-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.closer-body {
  font-size: 1.05rem;
  color: rgba(250, 247, 242, 0.65);
  line-height: 1.7;
}

/* ---- FOOTER ---- */
.footer {
  padding: 2rem;
  border-top: 1px solid rgba(26, 23, 20, 0.08);
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--ink-light);
}

/* ---- RESPONSIVE ---- */
@media (min-width: 768px) {
  .steps {
    grid-template-columns: 3rem 1fr;
    gap: 0 2rem;
  }
}

@media (max-width: 480px) {
  .nav {
    padding: 1rem;
  }

  .manifesto {
    padding: var(--space-xl) 1.25rem;
  }

  .manifesto-headline {
    font-size: 2.75rem;
  }

  .step {
    grid-template-columns: 2rem 1fr;
    gap: 1rem;
  }

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