/* pilot.css — Styles for /pilot signup form and /pilot/success confirmation */

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

:root {
  --blue: #0ea5e9;
  --blue-dark: #0284c7;
  --navy: #0f172a;
  --slate: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --bg: #f0f9ff;
  --white: #ffffff;
  --green: #059669;
  --red: #dc2626;
  --amber: #d97706;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 8px;
}

body {
  margin: 0;
  background: var(--bg);
  font-family: 'Satoshi', system-ui, -apple-system, sans-serif;
  color: var(--slate);
  min-height: 100vh;
}

/* ── Nav ─────────────────────────────────────────────────────────────────── */

.pilot-nav {
  background: var(--navy);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.pilot-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pilot-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
}

.pilot-brand-mark {
  font-size: 20px;
}

.pilot-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.pilot-nav-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.pilot-nav-links a:hover { color: var(--white); }

/* ── Main layout ──────────────────────────────────────────────────────────── */

.pilot-main {
  padding: 48px 24px;
}

.pilot-container {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 48px;
  align-items: start;
}

/* ── Left: value prop ─────────────────────────────────────────────────────── */

.pilot-left {
  padding-top: 16px;
}

.pilot-badge {
  display: inline-block;
  background: #dcfce7;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.pilot-headline {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 20px;
}

.pilot-headline em {
  font-style: italic;
  color: var(--blue);
}

.pilot-subhead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 36px;
  max-width: 480px;
}

/* Perks list */

.pilot-perks {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pilot-perks li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.perk-icon {
  font-size: 24px;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.pilot-perks li div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pilot-perks strong {
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
}

.pilot-perks span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Social proof */

.pilot-proof {
  display: flex;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.pilot-proof-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pilot-proof-stat strong {
  font-size: 28px;
  font-weight: 800;
  color: var(--blue);
}

.pilot-proof-stat span {
  font-size: 12px;
  color: var(--muted);
}

/* ── Right: form card ─────────────────────────────────────────────────────── */

.pilot-right {
  position: sticky;
  top: 80px;
}

.pilot-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.10);
  border: 1px solid var(--border);
}

.pilot-form-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
}

.pilot-form-sub {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* Error banner */

.pilot-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  color: #991b1b;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* Form fields */

.pilot-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pilot-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pilot-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.required { color: var(--red); }
.optional { color: var(--muted); font-weight: 400; }

.pilot-field input,
.pilot-field select {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--navy);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.pilot-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.pilot-field input:focus,
.pilot-field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.15);
}

.pilot-field-hint {
  font-size: 12px;
  color: var(--muted);
}

/* Submit button */

.pilot-submit {
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  margin-top: 4px;
}

.pilot-submit:hover:not(:disabled) {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.pilot-submit:active { transform: translateY(0); }
.pilot-submit:disabled { opacity: 0.7; cursor: not-allowed; }

.pilot-terms {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  text-align: center;
  line-height: 1.6;
}

.pilot-terms a { color: var(--blue); text-decoration: none; }

/* ── Success page ─────────────────────────────────────────────────────────── */

.success-body {
  background: var(--bg);
}

.success-main {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 24px;
}

.success-container {
  max-width: 600px;
  width: 100%;
}

.success-header {
  text-align: center;
  margin-bottom: 32px;
}

.success-icon {
  font-size: 56px;
  margin-bottom: 12px;
}

.success-headline {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 40px;
  font-weight: 400;
  color: var(--navy);
  margin: 0 0 8px;
}

.success-subhead {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
}

/* Code block */

.success-code-block {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  text-align: center;
  margin-bottom: 32px;
}

.code-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.code-value {
  font-size: 48px;
  font-weight: 900;
  color: #38bdf8;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.code-hint {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 16px;
}

.copy-btn {
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
}

.copy-btn:hover { background: var(--blue-dark); }

/* Steps */

.success-steps {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.steps-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 20px;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.step-item:last-child { margin-bottom: 0; }

.step-num {
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.step-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

/* Timeline */

.success-timeline {
  background: #fefce8;
  border: 1px solid #fde047;
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: #854d0e;
  line-height: 1.5;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

.timeline-dot--blue { background: var(--blue); }
.timeline-dot--green { background: var(--green); }
.timeline-dot--red { background: var(--red); }

/* CTAs */

.success-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-primary {
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  display: inline-block;
  transition: background 0.2s;
  flex: 1;
  text-align: center;
  min-width: 200px;
}

.cta-primary:hover { background: var(--blue-dark); }

.cta-secondary {
  background: var(--white);
  color: var(--slate);
  text-decoration: none;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  display: inline-block;
  border: 1.5px solid var(--border);
  transition: border-color 0.2s;
  flex: 1;
  text-align: center;
  min-width: 180px;
}

.cta-secondary:hover { border-color: var(--blue); color: var(--blue); }

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .pilot-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .pilot-right {
    position: static;
  }

  .pilot-form-card {
    padding: 28px 24px;
  }
}

@media (max-width: 480px) {
  .pilot-main { padding: 24px 16px; }
  .success-main { padding: 24px 16px; }
  .success-code-block { padding: 20px; }
  .success-steps { padding: 20px; }
  .code-value { font-size: 36px; }
}
