:root {
  --primary: #6C63FF;
  --primary-hover: #564cdd;
  --accent: #FF6584;
  --text-dark: #1F2937;
  --text-gray: #4B5563;
  --text-light: #9CA3AF;
  --bg-white: #FFFFFF;
  --bg-gray: #F8F9FF;
  --border: #E5E7EB;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius: 8px;
  --radius-lg: 12px;
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--bg-white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

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

a:hover {
  color: var(--primary-hover);
}

img {
  max-width: 100%;
  height: auto;
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }
.section-padding { padding: 5rem 0; }
.bg-gray { background-color: var(--bg-gray); }

/* Scroll Progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background-color: var(--accent);
  z-index: 1001;
  transition: width 0.1s;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-dark);
  font-weight: 500;
}

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

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-align: center;
}

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

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
}

/* Mobile Menu */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    clip-path: circle(0% at 100% 0);
    transition: all 0.4s ease-out;
  }
  .nav-links.active {
    clip-path: circle(150% at 100% 0);
  }
  .hamburger {
    display: block;
  }
}

/* Hero Section */
.hero {
  padding: 8rem 0 5rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.hero p.subheadline {
  font-size: 1.25rem;
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.waitlist-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto 2rem;
  gap: 0.5rem;
}

.waitlist-form input[type="email"] {
  flex: 1;
  padding: 1rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
}

.waitlist-form input[type="email"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}

.waitlist-form button {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-gray);
  margin-bottom: 1.5rem;
}

.trust-badges span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.social-proof {
  font-weight: 500;
  color: var(--text-dark);
  background: var(--bg-gray);
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
}

@media (max-width: 576px) {
  .waitlist-form {
    flex-direction: column;
  }
}

/* Trust Banner */
.trust-banner {
  background-color: var(--bg-gray);
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-items {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: nowrap;
  font-weight: 600;
  color: var(--text-gray);
}

@media (max-width: 768px) {
  .trust-items {
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 8px;
  }
}

.trust-items .divider {
  color: var(--border);
}

@media (max-width: 768px) {
  .trust-items .divider {
    display: none;
  }
}

/* Cards & Grids */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Features Grid */
.grid-6 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: inline-block;
}

/* How It Works */
.steps-container {
  max-width: 800px;
  margin: 0 auto;
}

.step-card {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: flex-start;
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.step-number {
  background: var(--primary);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
  font-size: 1.2rem;
}

@media (max-width: 576px) {
  .step-card {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Privacy Section */
.privacy-section .card {
  text-align: center;
}

.privacy-section .feature-icon {
  font-size: 2.5rem;
}

/* Pricing */
.pricing-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--primary);
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px; width: 26px;
  left: 4px; bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.save-badge {
  background: var(--accent);
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: bold;
}

.pricing-card {
  text-align: center;
  padding: 3rem 2rem;
}

.pricing-card.pro {
  background-color: var(--primary);
  color: white;
  transform: scale(1.05);
  border: none;
}

.pricing-card.pro h3, .pricing-card.pro p, .pricing-card.pro ul li {
  color: white;
}

.pricing-card.pro .btn {
  background: white;
  color: var(--primary) !important;
}

.price {
  font-size: 3rem;
  font-weight: 800;
  margin: 1rem 0;
}

.price span {
  font-size: 1rem;
  font-weight: normal;
  color: var(--text-gray);
}

.pricing-card.pro .price span {
  color: rgba(255,255,255,0.8);
}

.pricing-features {
  list-style: none;
  margin: 2rem 0;
  text-align: left;
}

.pricing-features li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pricing-features li::before {
  content: '→';
  color: var(--primary);
  font-weight: bold;
}

.pricing-card.pro .pricing-features li::before {
  content: '→';
  color: var(--accent);
}

.most-popular {
  background: var(--accent);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: inline-block;
}

.pricing-note {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--text-gray);
}

/* FAQ */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.faq-question {
  font-weight: 600;
  font-size: 1.125rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  color: var(--text-gray);
  margin-top: 0;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  margin-top: 1rem;
}

/* Final CTA */
.final-cta {
  background-color: var(--primary);
  color: white;
  text-align: center;
  padding: 6rem 0;
}

.final-cta h2 {
  color: white;
}

.final-cta p {
  color: rgba(255,255,255,0.9);
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.final-cta .waitlist-form button {
  background: var(--accent);
  color: white !important;
}

.final-cta .waitlist-form button:hover {
  background: #ff4d71;
}

.final-cta .trust-badges {
  color: rgba(255,255,255,0.8);
}

/* Footer */
.footer {
  background: white;
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col h4 {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col a {
  color: var(--text-gray);
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-gray);
  font-size: 0.875rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: white;
  box-shadow: 0 -4px 6px -1px rgba(0,0,0,0.1);
  padding: 1rem;
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  transform: translateY(100%);
  transition: transform 0.5s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-buttons {
  display: flex;
  gap: 0.5rem;
}

@media (max-width: 576px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
  }
}

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

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

/* Legal Pages */
.legal-page {
  padding: 10rem 0 5rem;
  max-width: 800px;
}

.legal-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
}

.legal-content p, .legal-content ul {
  margin-bottom: 1rem;
  color: var(--text-gray);
}

.legal-content ul {
  padding-left: 1.5rem;
}

/* Why PracticeAlly */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  text-align: left;
}

@media(max-width: 768px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

.why-card {
  background: white;
  border: 2px solid #E8E6FF;
  border-left: 4px solid #6C63FF;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 8px 32px rgba(108,99,255,0.12);
  transition: transform 0.2s, box-shadow 0.2s;
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(108,99,255,0.2);
}
