/* EMB Automation - Client Onboarding Pages */
/* Modern, sleek design matching emb-automation.com */

:root {
  --primary: #FF6B35;
  --primary-hover: #ff5722;
  --bg-dark: #0a0a0f;
  --bg-card: #12121a;
  --bg-card-hover: #1a1a24;
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --border: #1f2937;
  --border-hover: #374151;
  --gradient-start: #0a0a0f;
  --gradient-end: #111118;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(180deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem;
}

/* Header */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 0 4rem;
  text-align: center;
}

.logo {
  margin-bottom: 2rem;
  transition: opacity 0.2s ease;
}

.logo:hover {
  opacity: 0.8;
}

.logo-img {
  height: 48px;
  width: auto;
}

.header-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #fff 0%, #ccc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 1.125rem;
  font-weight: 400;
}

/* Intro */
.intro {
  text-align: center;
  margin-bottom: 3rem;
}

.intro p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* Sections */
.platforms {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  padding-left: 0.5rem;
}

/* Navigation cards */
.nav-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.nav-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.25s ease;
}

.nav-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.5);
}

.card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1877f2 0%, #0d65d9 100%);
  border-radius: 12px;
  flex-shrink: 0;
  color: white;
}

.card-icon.google {
  background: linear-gradient(135deg, #4285f4 0%, #34a853 50%, #fbbc05 75%, #ea4335 100%);
}

.card-icon.shopify {
  background: linear-gradient(135deg, #96bf48 0%, #5e8e3e 100%);
}

.card-icon.hubspot {
  background: linear-gradient(135deg, #ff7a59 0%, #ff5c35 100%);
}

.card-content {
  flex: 1;
}

.card-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.card-content p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.card-arrow {
  font-size: 1.25rem;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.nav-card:hover .card-arrow {
  color: var(--primary);
  transform: translateX(4px);
}

/* Help section */
.help-section {
  margin-top: 2rem;
}

.help-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: linear-gradient(135deg, var(--bg-card) 0%, #151520 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
}

.help-icon {
  font-size: 2.5rem;
}

.help-content {
  flex: 1;
}

.help-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.help-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 16px -4px rgba(255, 107, 53, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: 2rem;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--primary);
}

/* Guide page styles */
.guide-header {
  margin-bottom: 2rem;
}

.guide-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.guide-header p {
  color: var(--text-secondary);
}

.guide-intro {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.guide-intro h2 {
  color: var(--primary);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.email-input-section {
  background: var(--bg-card-hover);
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1rem 0;
}

.email-input-section label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.9375rem;
}

.email-input-section input {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--bg-dark);
  color: var(--text-primary);
  transition: border-color 0.2s ease;
}

.email-input-section input:focus {
  outline: none;
  border-color: var(--primary);
}

.email-input-section .hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Steps */
.steps {
  counter-reset: step-counter;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  padding-left: 5rem;
  margin-bottom: 1rem;
  position: relative;
  transition: border-color 0.2s ease;
}

.step:hover {
  border-color: var(--border-hover);
}

.step::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 1.5rem;
  top: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
}

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

/* Screenshot */
.screenshot-placeholder {
  background: var(--bg-dark);
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  margin: 1rem 0;
}

.screenshot-placeholder .placeholder-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  opacity: 0.4;
}

.screenshot-placeholder p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.screenshot-placeholder .screenshot-label {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.screenshot {
  width: 100%;
  border-radius: 12px;
  margin: 1rem 0;
  border: 1px solid var(--border);
}

/* Tip */
.tip {
  background: rgba(255, 107, 53, 0.08);
  border-left: 3px solid var(--primary);
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  border-radius: 0 12px 12px 0;
  font-size: 0.9375rem;
}

.tip strong {
  color: var(--primary);
}

/* Done section */
.done-section {
  background: linear-gradient(135deg, var(--bg-card) 0%, #151520 100%);
  border: 1px solid var(--primary);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  margin-top: 2rem;
}

.done-section h3 {
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.done-section p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem 0 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
}

footer p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

footer a {
  color: var(--primary);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

footer a:hover {
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 1.5rem;
  }
  
  header {
    padding: 2rem 0 3rem;
  }
  
  .header-content h1 {
    font-size: 2rem;
  }
  
  .nav-cards {
    grid-template-columns: 1fr;
  }
  
  .help-card {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .step {
    padding-left: 1.5rem;
    padding-top: 4.5rem;
  }
  
  .step::before {
    top: 1.5rem;
    left: 1.5rem;
  }
}
