/* Phrased Landing Page Styles */

/* ===== Landing page only shows when not signed in ===== */
.landing-page {
  background: #020617;
  color: #f8fafc;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.2);
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-title span {
  background: linear-gradient(135deg, #3b82f6, #60a5fa, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: #94a3b8;
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
  max-width: 320px;
}

.btn-primary {
  width: 100%;
  padding: 14px 32px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 30px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
  background: transparent;
  color: #94a3b8;
  border: none;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 8px 16px;
  transition: color 0.2s;
}

.btn-secondary:hover {
  color: #f8fafc;
}

.hero-note {
  font-size: 0.75rem;
  color: #475569;
  margin-top: 1rem;
}

/* ===== Scroll indicator ===== */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ===== Section base ===== */
.landing-section {
  padding: 5rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  text-align: center;
  color: #94a3b8;
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  max-width: 500px;
  margin: 0 auto 3rem;
}

/* ===== Features Grid ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
}

.feature-card {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(51, 65, 85, 0.5);
  border-radius: 16px;
  padding: 1.75rem;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.5;
}

/* ===== How It Works ===== */
.steps {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.step {
  text-align: center;
  flex: 1;
  min-width: 200px;
  max-width: 280px;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 auto 1rem;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

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

.step p {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.5;
}

/* ===== Tool Showcase ===== */
.tool-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  max-width: 700px;
  margin: 0 auto;
}

.tool-pill {
  padding: 8px 16px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(51, 65, 85, 0.5);
  border-radius: 100px;
  font-size: 0.8rem;
  color: #cbd5e1;
  white-space: nowrap;
  transition: all 0.2s;
}

.tool-pill:hover {
  border-color: rgba(59, 130, 246, 0.4);
  color: #f8fafc;
}

/* ===== Pricing ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  max-width: 820px;
  margin: 0 auto;
}

.price-card {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(51, 65, 85, 0.5);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  transition: all 0.3s;
}

.price-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
}

.price-card.featured {
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(37, 99, 235, 0.08);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.1);
}

.price-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.05em;
}

.price-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.price-amount span {
  font-size: 0.9rem;
  font-weight: 400;
  color: #94a3b8;
}

.price-note {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.25rem;
  margin-bottom: 1.25rem;
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  text-align: left;
}

.price-features li {
  font-size: 0.85rem;
  color: #94a3b8;
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-features li::before {
  content: '';
  width: 16px;
  height: 16px;
  background: rgba(59, 130, 246, 0.2);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.price-btn {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.price-btn-primary {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: white;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
}

.price-btn-primary:hover {
  box-shadow: 0 6px 25px rgba(37, 99, 235, 0.35);
}

.price-btn-outline {
  background: transparent;
  color: #94a3b8;
  border: 1px solid rgba(51, 65, 85, 0.5);
}

.price-btn-outline:hover {
  border-color: rgba(59, 130, 246, 0.4);
  color: #f8fafc;
}

/* ===== Free tier callout ===== */
.free-callout {
  text-align: center;
  margin-top: 2rem;
  padding: 1.25rem;
  background: rgba(30, 41, 59, 0.3);
  border-radius: 12px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.free-callout p {
  color: #94a3b8;
  font-size: 0.85rem;
}

.free-callout strong {
  color: #f8fafc;
}

/* ===== CTA Section ===== */
.cta-section {
  text-align: center;
  padding: 5rem 1.5rem;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 80%, rgba(59, 130, 246, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-section p {
  color: #94a3b8;
  margin-bottom: 2rem;
  font-size: 1rem;
}

/* ===== Footer ===== */
.landing-footer {
  border-top: 1px solid rgba(51, 65, 85, 0.3);
  padding: 2rem 1.5rem;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.footer-links a {
  color: #64748b;
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #f8fafc;
}

.footer-copy {
  color: #334155;
  font-size: 0.75rem;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .landing-section {
    padding: 3.5rem 1.25rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
  }

  .steps {
    flex-direction: column;
    align-items: center;
  }

  .hero {
    padding: 2rem 1.25rem;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 720px;
  }
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
