/* ============================================================
   AutoHired — Beta landing. Faithful reproduction of the
   Claude-Design reference (carousel / chiffres / timeline,
   rendered with textScale = 1.2).
   ============================================================ */

:root {
  /* ---- Design-system tokens (inlined) ---- */
  --color-bordeaux:        #840032;
  --color-bordeaux-hover:  #6B0028;
  --color-bordeaux-tint:   rgba(132, 0, 50, 0.08);
  --color-bordeaux-tint-15: rgba(132, 0, 50, 0.15);
  --color-white:           #FFFFFF;
  --color-bone:            #F7F6F4;
  --color-ink:             #111111;
  --color-slate:           #6B7280;
  --color-line:            #E5E7EB;
  --color-green:           #16A34A;
  --color-red:             #DC2626;
  --color-gray:            #9CA3AF;

  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;

  --radius-input:  10px;
  --radius-button: 8px;
  --radius-card:   12px;
  --radius-pill:   20px;
  --radius-full:   999px;

  /* ---- Text scale (reference rendered at 1.2) ---- */
  --ts: 1.2;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, figure { margin: 0; }
button { font-family: inherit; }
::placeholder { color: #9CA3AF; opacity: 1; }
::selection { background: var(--color-bordeaux-tint-15); }

/* ============================================================
   Buttons (design-system Button reproduction)
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: var(--weight-medium);
  font-size: calc(clamp(15px, 1.2vw, 17px) * var(--ts, 1));
  line-height: 1;
  border: none;
  border-radius: var(--radius-button);
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-bordeaux);
  color: var(--color-white);
  padding: 0 22px;
  height: 44px;
}
.btn-primary:hover { background: var(--color-bordeaux-hover); }
.btn-primary:disabled { opacity: 0.65; cursor: default; }
.btn-secondary {
  background: transparent;
  color: var(--color-bordeaux);
  border: 1px solid var(--color-bordeaux);
  padding: 0 20px;
  height: 42px;
}
.btn-secondary:hover { background: var(--color-bordeaux-tint); }
.btn-block { width: 100%; height: 42px; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-line);
}
.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { height: 46px; display: block; margin-left: -12px; }

.lang { position: relative; }
.lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-ink);
  transition: background 120ms ease;
}
.lang-btn:hover { background: var(--color-bordeaux-tint); }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  padding: 6px;
  min-width: 172px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lang-menu[hidden] { display: none; }
.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--color-ink);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background 120ms ease;
}
.lang-option:hover { background: var(--color-bordeaux-tint); }
.lang-option.is-active { background: var(--color-bordeaux-tint); color: var(--color-bordeaux); }
.lang-check { display: inline-flex; width: 14px; height: 14px; }

/* ============================================================
   Hero — carousel
   ============================================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #1A1A1A;
  padding: 150px 24px 120px;
}
.hero-slides { position: absolute; inset: 0; overflow: hidden; }
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1200ms ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.85);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 26px;
  max-width: 780px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 20px;
  color: var(--color-white);
  font-size: calc(clamp(13px, 1.05vw, 15px) * var(--ts, 1));
  font-weight: 500;
  letter-spacing: 0.01em;
}
.hero-title {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-white);
  margin: 0;
  text-wrap: balance;
  text-shadow: 0 1px 24px rgba(0,0,0,0.35);
}
.hero-sub {
  font-size: calc(clamp(16px, 1.7vw, 21px) * var(--ts, 1));
  line-height: 1.55;
  color: rgba(255,255,255,0.94);
  max-width: 680px;
  margin: 0;
  text-wrap: pretty;
  text-shadow: 0 1px 16px rgba(0,0,0,0.3);
}
.hero-cta-wrap { margin-top: 6px; }
.hero-dots { display: flex; gap: 8px; margin-top: 10px; }
.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.4);
  transition: width 400ms ease, background 400ms ease;
}
.hero-dot.is-active { width: 20px; background: var(--color-white); }

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 650ms ease, transform 650ms ease;
}
.reveal.revealed { opacity: 1; transform: none; }

/* ============================================================
   Metrics — chiffres
   ============================================================ */
.metrics { background: var(--color-white); padding: 110px 24px; }
.metrics-inner { max-width: 1040px; margin: 0 auto; }
.metrics-intro {
  text-align: center;
  font-size: calc(clamp(18px, 2.4vw, 27px) * var(--ts, 1));
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  max-width: 680px;
  margin: 0 auto 72px;
  text-wrap: balance;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 56px 32px;
}
.metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.metric-num {
  font-size: clamp(56px, 6.5vw, 76px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-bordeaux);
  font-variant-numeric: tabular-nums;
}
.metric-label {
  font-size: calc(clamp(15px, 1.3vw, 18px) * var(--ts, 1));
  line-height: 1.55;
  color: var(--color-slate);
  max-width: 270px;
  text-wrap: pretty;
}

/* ============================================================
   Steps — timeline
   ============================================================ */
.steps {
  background: var(--color-bone);
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  padding: 110px 24px;
}
.steps-inner { max-width: 1040px; margin: 0 auto; }
.steps-title {
  text-align: center;
  font-size: calc(clamp(26px, 3.2vw, 38px) * var(--ts, 1));
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  margin: 0 0 80px;
}
.timeline {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.tl-row { display: grid; grid-template-columns: 52px 1fr; gap: 28px; }
.tl-rail { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.tl-rail-last { gap: 0; }
.tl-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-bordeaux);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 600;
  flex: none;
}
.tl-line { width: 2px; flex: 1; background: var(--color-line); }
.tl-body { padding-bottom: 52px; }
.tl-body-last { padding-bottom: 0; }
.tl-step-title {
  font-size: calc(clamp(19px, 1.7vw, 24px) * var(--ts, 1));
  line-height: 1.3;
  font-weight: 600;
  color: var(--color-ink);
  margin: 11px 0 10px;
}
.tl-step-text {
  font-size: calc(clamp(15px, 1.35vw, 18px) * var(--ts, 1));
  line-height: 1.6;
  color: var(--color-slate);
  margin: 0;
  max-width: 560px;
  text-wrap: pretty;
}

/* ============================================================
   Form section
   ============================================================ */
.form-section { background: var(--color-white); padding: 110px 24px 120px; }
.form-wrap { max-width: 620px; margin: 0 auto; }
.form-title {
  text-align: center;
  font-size: calc(clamp(26px, 3.2vw, 38px) * var(--ts, 1));
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  margin: 0;
}
.form-subtitle {
  text-align: center;
  font-size: calc(clamp(15px, 1.4vw, 18px) * var(--ts, 1));
  line-height: 1.6;
  color: var(--color-slate);
  margin: 16px auto 0;
  max-width: 500px;
  text-wrap: pretty;
}

.counter { max-width: 300px; margin: 24px auto 0; }
.counter[hidden] { display: none; }
.counter-track {
  height: 6px;
  background: var(--color-line);
  border-radius: 999px;
  overflow: hidden;
}
.counter-fill {
  height: 100%;
  width: 0;
  background: var(--color-bordeaux);
  border-radius: 999px;
  transition: width 600ms ease;
}
.counter-caption {
  margin-top: 8px;
  text-align: center;
  font-size: 12px;
  line-height: 16px;
  color: var(--color-slate);
  font-variant-numeric: tabular-nums;
}

.form-card {
  margin-top: 44px;
  background: var(--color-bone);
  border: 1px solid var(--color-line);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field { display: flex; flex-direction: column; }
.field-label {
  display: block;
  margin-bottom: 6px;
  font-size: calc(clamp(13px, 1.1vw, 15px) * var(--ts, 1));
  line-height: 1.4;
  font-weight: 500;
  color: var(--color-slate);
}
.field-label-group { margin-bottom: 6px; }

.input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-input);
  font-family: inherit;
  font-size: calc(clamp(15px, 1.25vw, 17px) * var(--ts, 1));
  line-height: 1.5;
  color: var(--color-ink);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.input:focus {
  outline: none;
  border-color: var(--color-bordeaux);
  box-shadow: 0 0 0 1px var(--color-bordeaux);
}
.input.invalid { border-color: var(--color-red); }

.select-wrap { position: relative; }
.select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 40px;
  cursor: pointer;
}
.select-chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.situation-group { display: flex; flex-direction: column; gap: 8px; }
.situation-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
}
.situation-opt.is-selected {
  background: rgba(132,0,50,0.05);
  border-color: var(--color-bordeaux);
  box-shadow: 0 0 0 1px var(--color-bordeaux);
}
.radio-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--color-gray);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  transition: border-color 120ms ease;
}
.situation-opt.is-selected .radio-dot { border-color: var(--color-bordeaux); }
.radio-fill {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  transition: background 120ms ease;
}
.situation-opt.is-selected .radio-fill { background: var(--color-bordeaux); }
.situation-label {
  font-size: calc(clamp(15px, 1.25vw, 17px) * var(--ts, 1));
  line-height: 1.5;
  color: var(--color-ink);
}

.submit-row { margin-top: 6px; }

.err {
  color: var(--color-red);
  font-size: 12px;
  line-height: 16px;
  margin-top: 4px;
  min-height: 0;
}
.err:empty { display: none; }
.err-global {
  text-align: center;
  margin-top: 0;
}
.err-global[hidden] { display: none; }

.privacy {
  font-size: calc(clamp(13px, 1.05vw, 14px) * var(--ts, 1));
  line-height: 1.55;
  color: var(--color-slate);
  text-align: center;
  margin: 2px 0 0;
  text-wrap: pretty;
}

/* Honeypot */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ============================================================
   Success screen
   ============================================================ */
.success {
  background: var(--color-bone);
  border: 1px solid var(--color-line);
  border-radius: 12px;
  padding: 56px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}
.success[hidden] { display: none; }
.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(22,163,74,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.success-title {
  font-size: calc(clamp(26px, 3.2vw, 38px) * var(--ts, 1));
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  margin: 0;
}
.success-body {
  font-size: calc(clamp(15px, 1.4vw, 18px) * var(--ts, 1));
  line-height: 1.6;
  color: var(--color-slate);
  margin: 0;
  max-width: 440px;
  text-wrap: pretty;
}
.success-cta-wrap { margin-top: 8px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--color-bone);
  border-top: 1px solid var(--color-line);
  padding: 28px 24px;
  text-align: center;
  font-size: calc(clamp(13px, 1.05vw, 15px) * var(--ts, 1));
  line-height: 18px;
  color: var(--color-slate);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 640px) {
  .metrics { padding: 72px 20px; }
  .steps { padding: 72px 20px; }
  .form-section { padding: 72px 20px 80px; }
  .metrics-grid { grid-template-columns: 1fr; gap: 48px; }
  .metrics-intro { margin-bottom: 56px; }
  .steps-title { margin-bottom: 56px; }
  .form-card { padding: 24px; }
  .hero { padding: 120px 20px 90px; }
}
