:root {
  --blue: #1e40af;
  --blue-light: #3b82f6;
  --red: #dc2626;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --gray-900: #111827;
  /* Brand theme vars (updated by Logo Lab) */
  --brand-main: #1e3a8a;
  --brand-accent: #dc2626;
  --nav-ends-width: 177px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--white);
  color: var(--gray-800);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

.logo {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.06em;
  width: var(--nav-ends-width);
  display: inline-block;
  flex-shrink: 0;
  white-space: nowrap;
}
.logo .mail { color: var(--brand-accent); }
.logo .pilot { color: var(--brand-main); }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 10;
}

.main-nav {
  display: flex;
  gap: 18px;
}

.main-nav a {
  color: var(--gray-600);
  font-weight: 500;
  font-size: 15px;
  padding: 8px 10px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.main-nav a:hover { color: var(--blue); background: var(--gray-100); }

.nav-cta { display: flex; gap: 10px; width: var(--nav-ends-width); justify-content: flex-end; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-light); }
.btn-secondary {
  background: var(--white);
  color: var(--gray-800);
  border: 2px solid var(--gray-200);
}
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); }

#app { min-height: 70vh; }
.page { animation: fadeIn 0.25s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero {
  text-align: center;
  padding: 80px 28px 60px;
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}
.hero-kicker {
  font-size: 16px;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: 52px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 20px;
  line-height: 1.1;
}
.hero h1 span { color: var(--blue); }
.hero-tagline {
  font-size: 21px;
  color: var(--gray-600);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.55;
}
.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: flex-start;
}
.cta-primary-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.cta-subtext {
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 500;
}
.hero-trust {
  margin-top: 28px;
  font-size: 14px;
  color: var(--gray-500);
  font-weight: 500;
}

/* Highlight section */
.section.highlight {
  background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
  padding: 80px 28px;
}

/* Testimonials */
.section.testimonials {
  background: var(--gray-900);
  padding: 80px 28px;
  max-width: none;
}
.section.testimonials .section-title {
  color: var(--white);
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.testimonial {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 28px;
}
.testimonial .quote {
  font-size: 17px;
  color: var(--gray-100);
  line-height: 1.6;
  margin-bottom: 16px;
  font-style: italic;
}
.testimonial .author {
  font-size: 14px;
  color: var(--gray-400);
  font-weight: 500;
}

.section {
  padding: 70px 28px;
  max-width: 1100px;
  margin: 0 auto;
}
.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 48px;
  color: var(--gray-900);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.step { text-align: center; padding: 10px; }
.step-number {
  width: 48px;
  height: 48px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  margin: 0 auto 16px;
}
.step h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--gray-900);
}
.step p { color: var(--gray-600); font-size: 15px; }

.features {
  background: var(--gray-50);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.feature {
  background: var(--white);
  padding: 28px;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  min-height: 180px;
}
.feature-icon { font-size: 32px; margin-bottom: 12px; }
.feature h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--gray-900);
}
.feature p { color: var(--gray-600); font-size: 15px; }

/* Pricing */
.pricing-container {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}
.pricing-card {
  flex: 1;
  min-width: 300px;
  max-width: 400px;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: 16px;
  padding: 36px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.pricing-card:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}
.pricing-card-annual {
  border-color: var(--blue);
  position: relative;
}
.pricing-card-annual::before {
  content: "BEST VALUE";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.price {
  font-size: 48px;
  font-weight: 700;
  color: var(--blue);
  margin: 12px 0 4px;
}
.price span {
  font-size: 18px;
  color: var(--gray-600);
  font-weight: 400;
}
.price-annual-note {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 8px;
}
.trial-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}
.save-badge {
  background: #059669;
}
.price-features {
  text-align: left;
  margin: 20px 0;
  list-style: none;
}
.price-features li {
  padding: 7px 0;
  color: var(--gray-600);
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.price-features li::before {
  content: "✓";
  color: var(--blue);
  font-weight: 600;
  flex-shrink: 0;
}
.pricing-guarantee {
  text-align: center;
  margin-top: 32px;
  font-size: 15px;
  color: var(--gray-600);
  font-weight: 500;
}

/* Collaboration section */
.collab-showcase {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.collab-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.collab-step {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: 16px;
  padding: 28px 24px;
  min-width: 200px;
  max-width: 240px;
  transition: border-color 0.2s, transform 0.2s;
}
.collab-step:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}
.collab-icon {
  font-size: 42px;
  margin-bottom: 14px;
}
.collab-step h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.collab-step p {
  color: var(--gray-600);
  font-size: 15px;
  line-height: 1.5;
}
.collab-arrow {
  font-size: 32px;
  color: var(--blue);
  font-weight: 700;
}
.collab-tagline {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-900);
}
@media (max-width: 640px) {
  .collab-flow { flex-direction: column; }
  .collab-arrow { transform: rotate(90deg); }
}

.panel {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 32px;
}

.auth-grid {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 500;
}
.form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s;
}
.form-group input:focus {
  outline: none;
  border-color: var(--blue);
}
.form-group input.code-input {
  text-align: center;
  font-size: 28px;
  letter-spacing: 8px;
  font-family: monospace;
}
.error-msg {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--red);
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 14px;
  display: none;
}
.success-msg {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #16a34a;
  padding: 24px;
  border-radius: 8px;
  text-align: center;
  display: none;
}

.legal h1, .legal h2 { color: var(--gray-900); }
.legal h1 { font-size: 32px; margin-bottom: 12px; }
.legal h2 { font-size: 20px; margin-top: 20px; margin-bottom: 8px; }
.legal p, .legal li { color: var(--gray-700); }
.legal ul { margin-left: 18px; padding-left: 0; }
.legal ul li { margin-bottom: 6px; }

.logo-lab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.logo-group {
  margin-bottom: 30px;
}
.logo-group h4 {
  margin: 0 0 12px;
  color: var(--gray-800);
  font-size: 16px;
}
.logo-card {
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 14px;
  background: var(--white);
}
.logo-card .label {
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 6px;
}
.logo-swatch {
  font-size: 28px;
}

.site-footer {
  padding: 32px 28px;
  text-align: center;
  border-top: 1px solid var(--gray-200);
  color: var(--gray-600);
  font-size: 14px;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 8px;
}
.footer-links a { color: var(--gray-600); }
.footer-links a:hover { color: var(--blue); }

.loading { padding: 60px; text-align: center; color: var(--gray-600); }

@media (max-width: 820px) {
  .site-header { flex-wrap: wrap; gap: 12px; }
  .nav-cta { width: 100%; justify-content: flex-start; }
  .hero { padding: 60px 18px 44px; }
  .hero h1 { font-size: 34px; }
  .hero p { font-size: 18px; }
}

/* Install Section */
.install-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
  max-width: 1000px;
  margin: 0 auto;
}

.install-card {
  display: grid;
  grid-template-rows: 32px 40px 44px 1fr;
  gap: 12px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 24px;
}

/* Card 1 allows code to expand, footer shrinks */
.install-card.install-cli {
  grid-template-rows: 32px 40px 1fr auto;
}

.install-card.install-cli .card-code {
  min-height: 44px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header h3 {
  font-size: 18px;
  color: var(--gray-900);
  margin: 0;
}

.card-header .copy-btn {
  margin: 0;
}

.card-tabs {
  display: flex;
  align-items: center;
  min-height: 32px;
}

.card-code {
  display: flex;
  align-items: center;
}

.card-footer {
  display: flex;
  align-items: flex-start;
  min-height: 32px;
}

.install-tabs { display: flex; gap: 8px; flex-wrap: wrap; }

.install-tab {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  background: var(--white);
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.2s;
}

.install-tab:hover { border-color: var(--blue); color: var(--blue); }
.install-tab.active { background: var(--blue); border-color: var(--blue); color: var(--white); }

.install-code {
  width: 100%;
  background: var(--white);
  color: var(--gray-800);
  border: 1px solid var(--gray-200);
  padding: 10px 14px;
  border-radius: 8px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px;
  overflow-x: auto;
  white-space: nowrap;
  line-height: 1.4;
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* Allow wrapping for longer commands in card 1 */
.install-cli .install-code {
  white-space: normal;
  word-break: break-all;
}

.install-code.hidden { display: none; }

.copy-btn {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  background: var(--white);
  color: var(--gray-800);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.copy-btn:hover { border-color: var(--blue); color: var(--blue); }
.copy-btn.copied { background: #22c55e; border-color: #22c55e; color: var(--white); }

.install-hint { font-size: 13px; color: var(--gray-600); line-height: 1.4; }

.install-footer {
  text-align: center;
  color: var(--gray-600);
  margin-top: 32px;
  font-size: 15px;
}

.install-footer kbd {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: monospace;
  font-size: 13px;
}

@media (max-width: 1020px) {
  .install-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .install-grid { grid-template-columns: 1fr; }
}
