/* ClipStack Onboarding Page Styles */

/* === Brand Tokens === */
:root {
  --lime: #CCFF00;
  --lime-dim: rgba(204, 255, 0, 0.12);
  --lime-glow: rgba(204, 255, 0, 0.25);
  --bg: #0A0A0A;
  --bg-2: #111111;
  --bg-3: #1A1A1A;
  --text: #F0F0F0;
  --text-dim: rgba(240, 240, 240, 0.55);
  --text-muted: rgba(240, 240, 240, 0.3);
  --border: rgba(204, 255, 0, 0.1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Syne', sans-serif; font-weight: 800; }

/* === Nav === */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(16px);
  z-index: 100;
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--lime);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.nav-logo:hover { opacity: 0.85; }
.nav-link {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--text); }

/* === Page Header === */
.page-header {
  text-align: center;
  padding: 4rem 2rem 2rem;
  max-width: 680px;
  margin: 0 auto;
}
.page-header .label {
  font-size: 0.75rem;
  color: var(--lime);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}
.page-header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  line-height: 1.1;
}
.page-header h1 span { color: var(--lime); }
.page-header p {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 auto;
}

/* === Pricing Tiers === */
.pricing-section {
  padding: 3rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1rem;
}
.pricing-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  transition: border-color 0.2s;
}
.pricing-card:hover {
  border-color: rgba(204, 255, 0, 0.3);
}
.pricing-card.featured {
  border-color: var(--lime);
  background: var(--lime-dim);
}
.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--lime);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
}
.pricing-tier {
  font-size: 0.75rem;
  color: var(--lime);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.pricing-price {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}
.pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-dim);
}
.pricing-desc {
  font-size: 0.875rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.pricing-features li {
  font-size: 0.875rem;
  color: var(--text-dim);
  padding-left: 1.25rem;
  position: relative;
}
.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--lime);
  font-weight: 700;
}

/* === Lead Form === */
.form-section {
  padding: 3rem 2rem 5rem;
  max-width: 560px;
  margin: 0 auto;
}
.form-section h2 {
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  text-align: center;
}
.form-section .subtitle {
  text-align: center;
  color: var(--text-dim);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}
.form-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.2s;
  outline: none;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--lime);
}
.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23F0F0F0' opacity='0.5' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-group select option {
  background: var(--bg-3);
  color: var(--text);
}
.btn-primary {
  width: 100%;
  background: var(--lime);
  color: #000;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.01em;
  border: none;
  border-radius: 8px;
  padding: 0.9rem 1.5rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-primary:hover { opacity: 0.9; }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* === Success State === */
.success-card {
  text-align: center;
  padding: 3rem 2.5rem;
}
.success-icon {
  width: 64px;
  height: 64px;
  background: var(--lime-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.75rem;
}
.success-card h2 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.success-card p {
  color: var(--text-dim);
  margin-bottom: 2rem;
}
.calendar-link {
  display: inline-block;
  background: var(--lime);
  color: #000;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  transition: opacity 0.2s;
}
.calendar-link:hover { opacity: 0.85; }

/* === Error/Validation === */
.error-msg {
  background: rgba(255, 80, 80, 0.12);
  border: 1px solid rgba(255, 80, 80, 0.25);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #ff8080;
  margin-bottom: 1rem;
  display: none;
}
.error-msg.visible { display: block; }
.field-error {
  border-color: rgba(255, 80, 80, 0.6) !important;
}

/* === Divider === */
.section-divider {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}
.section-divider hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* === Responsive === */
@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  .pricing-card.featured {
    order: -1;
  }
  .form-card { padding: 1.75rem; }
  .page-header { padding: 3rem 1.5rem 1.5rem; }
}

/* === Animations === */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.pricing-card {
  animation: fadeIn 0.4s ease-out both;
}
.pricing-grid .pricing-card:nth-child(1) { animation-delay: 0.05s; }
.pricing-grid .pricing-card:nth-child(2) { animation-delay: 0.15s; }
.pricing-grid .pricing-card:nth-child(3) { animation-delay: 0.25s; }
.form-card {
  animation: fadeIn 0.4s ease-out 0.3s both;
}
.success-card {
  animation: fadeIn 0.4s ease-out both;
}