/* Dr Prep — Landing Page Styles */
/* ============================================ */

:root {
  --teal-900: #134e4a;
  --teal-800: #115e59;
  --teal-700: #0f766e;
  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --teal-400: #2dd4bf;
  --teal-100: #ccfbf1;
  --teal-50: #f0fdfa;

  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-100: #fef3c7;

  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;

  --white: #ffffff;
  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
  --shadow: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --max-width: 1200px;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Utility */
.section-padding {
  padding: 5rem 0;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-500);
  max-width: 36rem;
  line-height: 1.7;
}

/* Nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow 0.3s ease;
}

.nav.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.02em;
}

.nav-logo svg {
  width: 32px; height: 32px;
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--teal-600);
  color: var(--white) !important;
  padding: 0.55rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background 0.2s, transform 0.15s;
}

.nav-cta:hover {
  background: var(--teal-700);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.mobile-toggle svg {
  width: 24px; height: 24px;
  color: var(--gray-700);
}

/* Hero scroll spacer — gives room for scroll-driven phone animation */
.hero-scroll-spacer {
  position: relative;
  height: 220vh;
}

.hero {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 4rem;
  overflow: hidden;
  background: linear-gradient(160deg, var(--white) 0%, var(--teal-50) 40%, var(--teal-100) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(13,148,136,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 40%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(245,158,11,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 36rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  border: 1px solid var(--teal-100);
  border-radius: 2rem;
  padding: 0.4rem 1rem 0.4rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal-700);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.hero-badge-dot {
  width: 8px; height: 8px;
  background: var(--teal-500);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--teal-600), var(--teal-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--gray-600);
  margin-bottom: 2rem;
  max-width: 30rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-sub-text {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-top: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
  color: var(--gray-900);
  padding: 0.9rem 2rem;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(245,158,11,0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,158,11,0.45);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary.loading {
  pointer-events: none;
  opacity: 0.8;
}

.btn-primary.loading .btn-text {
  visibility: hidden;
}

.btn-primary.loading::after {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  border: 2px solid rgba(17,24,39,0.3);
  border-top-color: var(--gray-900);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn-secondary {
  background: var(--white);
  color: var(--gray-700);
  padding: 0.9rem 1.75rem;
  font-size: 1rem;
  border: 1px solid var(--gray-300);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
}

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-phone {
  position: relative;
  width: 280px;
  height: 480px;
  background: var(--white);
  border-radius: 2rem;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0,0,0,0.04);
  overflow: hidden;
  border: 8px solid var(--gray-900);
}

.hero-phone-notch {
  width: 40%;
  height: 20px;
  background: var(--gray-900);
  border-radius: 0 0 1rem 1rem;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-phone-screen {
  padding: 0;
  height: calc(100% - 20px); /* subtract notch height */
  display: flex;
  flex-direction: column;
  overflow-y: hidden;
}

.chat-scroll-inner {
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.chat-header {
  text-align: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 0.75rem;
}

.chat-header-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--gray-900);
}

.chat-header-status {
  font-size: 0.7rem;
  color: var(--teal-600);
}

.chat-msg {
  max-width: 85%;
  padding: 0.6rem 0.85rem;
  border-radius: 1rem;
  font-size: 0.78rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.chat-msg.bot {
  background: var(--gray-100);
  color: var(--gray-800);
  border-bottom-left-radius: 0.25rem;
  align-self: flex-start;
}

.chat-msg.user {
  background: var(--teal-600);
  color: var(--white);
  border-bottom-right-radius: 0.25rem;
  align-self: flex-end;
}


.chat-msg.correct {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.chat-msg.explanation {
  background: var(--gray-100);
  color: var(--gray-800);
  border-bottom-left-radius: 0.25rem;
  align-self: flex-start;
  line-height: 1.6;
}

.hero-float-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  animation: float 6s ease-in-out infinite;
}

.hero-float-card.card-1 {
  top: 10%;
  right: -20px;
  animation-delay: 0s;
}

.hero-float-card.card-2 {
  bottom: 15%;
  left: -30px;
  animation-delay: 3s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.float-icon {
  width: 32px; height: 32px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.float-icon.green { background: var(--teal-100); color: var(--teal-700); }
.float-icon.amber { background: var(--amber-100); color: var(--amber-600); }

/* Trust bar */
.trust-bar {
  padding: 2rem 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  background: var(--white);
}

.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--gray-500);
  font-weight: 500;
}

.trust-item svg {
  width: 18px; height: 18px;
  color: var(--teal-600);
}

/* How it works */
.how-section {
  background: var(--white);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}

.step-card {
  position: relative;
  padding: 2rem;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: transform 0.3s, box-shadow 0.3s;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--teal-600), var(--teal-500));
  color: var(--white);
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.step-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.95rem;
  color: var(--gray-500);
  line-height: 1.65;
}

.step-connector {
  display: none;
}

/* Features */
.features-section {
  background: var(--gray-50);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--gray-200);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

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

.feature-icon.teal { background: var(--teal-100); color: var(--teal-700); }
.feature-icon.amber { background: var(--amber-100); color: var(--amber-600); }

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.4rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* Pricing */
.pricing-section {
  background: var(--white);
}

.pricing-card {
  max-width: 28rem;
  margin: 3rem auto 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 2px solid var(--teal-600);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(13,148,136,0.05), var(--shadow-xl);
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: 0; right: 0;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
  color: var(--gray-900);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-bottom-left-radius: 0.75rem;
}

.pricing-card-inner {
  padding: 2.5rem;
}

.pricing-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.pricing-card .price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.25rem;
}

.pricing-card .price .currency {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
}

.pricing-card .price .amount {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.03em;
  line-height: 1;
}

.pricing-card .price .period {
  font-size: 1rem;
  color: var(--gray-500);
}

.pricing-card .price .price-original {
  color: #dc2626;
  font-weight: 800;
  margin-right: 0.75rem;
  align-self: center;
  position: relative;
  display: inline-block;
}

.pricing-card .price .price-original .currency {
  font-size: 1.25rem;
}

.pricing-card .price .price-original .amount-original {
  font-size: 3.5rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.pricing-card .price .price-original::after {
  content: '';
  position: absolute;
  left: -8%;
  top: 50%;
  width: 116%;
  height: 3px;
  background: #dc2626;
  transform: rotate(-12deg);
  transform-origin: center;
}

.pricing-card .price-note {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-bottom: 1.5rem;
}

.pricing-features {
  margin-bottom: 2rem;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--gray-700);
  padding: 0.4rem 0;
}

.pricing-features li svg {
  width: 18px; height: 18px;
  color: var(--teal-600);
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-compare {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.5;
  text-align: center;
}

.pricing-compare strong {
  color: var(--gray-700);
}

/* FAQ */
.faq-section {
  background: var(--gray-50);
}

.faq-list {
  max-width: 48rem;
  margin: 3rem auto 0;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.faq-item:hover {
  box-shadow: var(--shadow);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  cursor: pointer;
  text-align: left;
  line-height: 1.4;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--teal-700);
}

.faq-chevron {
  width: 20px; height: 20px;
  color: var(--gray-400);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 20rem;
}

.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* Final CTA */
.cta-section {
  position: relative;
  background: linear-gradient(135deg, var(--teal-700) 0%, var(--teal-600) 50%, var(--teal-500) 100%);
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 50%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.cta-section .btn-primary {
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
}

/* Footer */
.footer {
  background: var(--gray-900);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

.footer-brand-sub {
  font-size: 0.8rem;
  color: var(--gray-400);
}

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

.footer-links a {
  font-size: 0.85rem;
  color: var(--gray-400);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: var(--gray-500);
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: var(--gray-800);
  margin: 1.5rem 0;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero h1 { font-size: 2.75rem; }
  .hero-grid { gap: 3rem; }
  .hero-phone { width: 240px; }
  .steps-grid { gap: 1.5rem; }
  .features-grid { gap: 1rem; }
}

@media (max-width: 768px) {
  .section-padding { padding: 3.5rem 0; }
  .section-title { font-size: 1.75rem; }
  .hero { min-height: auto; padding: 6rem 0 3rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero h1 { font-size: 2.5rem; }
  .hero-visual { order: -1; }
  .hero-phone { width: 220px; }
  .hero-float-card { display: none; }
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .steps-grid { grid-template-columns: 1fr; max-width: 28rem; margin-left: auto; margin-right: auto; }
  .features-grid { grid-template-columns: 1fr; max-width: 28rem; margin-left: auto; margin-right: auto; }
  .cta-content h2 { font-size: 1.75rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-info { align-items: center; }
  .footer-bottom { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .pricing-card-inner { padding: 1.75rem; }
  .trust-inner { gap: 1.5rem; }
}
