:root {
  --bg: #FBF8F4;
  --brand: #C4704B;
  --brand-hover: #B5613E;
  --brand-subtle: rgba(196, 112, 75, 0.1);
  --text: #2C2520;
  --text-secondary: #8A7E75;
  --card-bg: #FFFFFF;
  --card-border: #EADFD2;
  --waitlist-bg: #F5EEE6;
  --success: #6B9080;
  --max-width: 1080px;
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 18px;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

/* ========== NAV ========== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 244, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  mix-blend-mode: multiply;
}

.nav-brand span {
  font-family: 'Lora', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.nav-cta {
  font-size: 15px;
  font-weight: 500;
  color: var(--brand);
  transition: color 0.2s;
}

.nav-cta:hover {
  color: var(--brand-hover);
}

/* ========== SECTIONS ========== */
section {
  padding: 96px 0;
}

.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 16px;
}

h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: 52px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--text);
}

h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 16px;
}

h3 {
  font-family: 'Lora', Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 8px;
}

/* ========== HERO ========== */
.hero {
  padding: 64px 0 96px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 48px;
  align-items: center;
}

.hero-logo {
  width: 80px;
  height: auto;
  margin-bottom: 28px;
  mix-blend-mode: multiply;
  border-radius: 0;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero-body {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-subtext {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 16px;
  font-style: italic;
}

.hero-phone {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-frame {
  position: relative;
  width: 280px;
  border-radius: 36px;
  overflow: hidden;
  box-shadow:
    0 25px 60px rgba(44, 37, 32, 0.18),
    0 8px 24px rgba(44, 37, 32, 0.08);
  border: 8px solid #1a1a1a;
  background: #1a1a1a;
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #1a1a1a;
  border-radius: 0 0 18px 18px;
  z-index: 2;
}

.phone-frame img {
  width: 100%;
  border-radius: 28px;
}

/* ========== BUTTON ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  background: var(--brand);
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}

.btn:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
}

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

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

.btn-outline:hover {
  background: var(--brand-subtle);
}

/* ========== FEATURES ========== */
.features {
  background: var(--bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 36px 28px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 20px rgba(196, 112, 75, 0.08);
}

.feature-illustration {
  width: 100%;
  max-width: 180px;
  height: auto;
  margin: 0 auto 20px;
  mix-blend-mode: multiply;
}

.feature-card h3 {
  font-family: 'Lora', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ========== HOW IT WORKS ========== */
.how-it-works {
  background: var(--card-bg);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--brand);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Lora', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
}

.step-content h3 {
  font-family: 'Lora', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.step-content p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========== CAROUSEL ========== */
.carousel {
  background: var(--bg);
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
  margin-top: 32px;
}

.carousel-track {
  display: flex;
  gap: 28px;
  transition: transform 0.4s ease;
  padding: 20px 0 40px;
}

.carousel-item {
  flex-shrink: 0;
  width: 220px;
  text-align: center;
}

.carousel-phone {
  width: 220px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 16px 40px rgba(44, 37, 32, 0.12),
    0 4px 12px rgba(44, 37, 32, 0.06);
  border: 6px solid #1a1a1a;
  background: #1a1a1a;
  margin-bottom: 16px;
}

.carousel-phone img {
  width: 100%;
  border-radius: 22px;
}

.carousel-caption {
  font-size: 14px;
  color: var(--text-secondary);
}

.carousel-arrow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(44, 37, 32, 0.1);
}

.carousel-arrow:hover {
  background: var(--brand-subtle);
  border-color: var(--brand);
}

.carousel-arrow.prev { left: 8px; }
.carousel-arrow.next { right: 8px; }
.carousel-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 8px 0 16px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--card-border);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  padding: 0;
}

.carousel-dot.active {
  background: var(--brand);
  transform: scale(1.25);
}

/* ========== WAITLIST ========== */
.waitlist {
  background: var(--waitlist-bg);
  text-align: center;
}

.waitlist h2 {
  margin-bottom: 12px;
}

.waitlist-desc {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.waitlist-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto 16px;
}

.waitlist-form input[type="email"] {
  flex: 1;
  padding: 16px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  background: var(--card-bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.waitlist-form input[type="email"]:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(196, 112, 75, 0.12);
}

.waitlist-form input[type="email"]::placeholder {
  color: var(--text-secondary);
}

.waitlist-form button {
  white-space: nowrap;
}

.waitlist-consent {
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.5;
}

.waitlist-consent a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.waitlist-consent a:hover {
  color: var(--text);
}

.waitlist-error {
  color: #c0392b;
  font-size: 14px;
  margin-top: 8px;
  display: none;
}

/* ========== FOOTER ========== */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--card-border);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  mix-blend-mode: multiply;
}

.footer-brand span {
  font-family: 'Lora', Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.footer-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--card-border);
}

/* ========== THANK-YOU PAGE ========== */
.thanks-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.thanks-content {
  flex: 1;
  padding: 64px 0;
  text-align: center;
}

.thanks-emoji {
  font-size: 56px;
  margin-bottom: 24px;
  display: block;
  animation: bounceIn 0.6s ease both;
}

.thanks-content h1 {
  font-size: 36px;
  margin-bottom: 12px;
}

.thanks-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

.progress-bar-container {
  max-width: 360px;
  margin: 0 auto 48px;
}

.progress-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}

.progress-bar {
  height: 8px;
  background: var(--card-border);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--brand);
  border-radius: 4px;
  transition: width 1s ease;
}

.share-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 0;
  border-top: 1px solid var(--card-border);
}

.share-section h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.share-desc {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.referral-link-box {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.referral-link-box input {
  flex: 1;
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  background: var(--card-bg);
  color: var(--text-secondary);
  outline: none;
}

.btn-copy {
  padding: 12px 20px;
  font-size: 14px;
  border-radius: 10px;
}

.btn-copy.copied {
  background: var(--success);
}

.share-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
  text-decoration: none;
}

.share-btn:hover {
  border-color: var(--brand);
  background: var(--brand-subtle);
}

.perks-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 0;
  border-top: 1px solid var(--card-border);
}

.perks-section h2 {
  font-size: 24px;
  margin-bottom: 20px;
}

.perks-list {
  list-style: none;
  text-align: left;
}

.perks-list li {
  font-size: 16px;
  color: var(--text-secondary);
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.perks-list li::before {
  content: '✓';
  color: var(--brand);
  font-weight: 700;
  font-size: 16px;
}

/* ========== LEGAL PAGES ========== */
.legal-page {
  flex: 1;
  padding: 48px 24px 80px;
  max-width: 720px;
  margin: 0 auto;
}

.legal-page h1 {
  font-size: 28px;
  margin-bottom: 4px;
}

.legal-meta {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--card-border);
}

.legal-page h2 {
  font-size: 18px;
  font-weight: 700;
  margin-top: 36px;
  margin-bottom: 12px;
}

.legal-page p {
  font-size: 15px;
  color: #374151;
  line-height: 1.75;
  margin-bottom: 16px;
}

.legal-page ul {
  margin-bottom: 16px;
  padding-left: 20px;
}

.legal-page li {
  font-size: 15px;
  color: #374151;
  line-height: 1.75;
  margin-bottom: 8px;
}

.legal-page strong {
  color: var(--text);
  font-weight: 600;
}

.legal-page a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page a:hover {
  color: var(--brand-hover);
}

.legal-contact {
  font-size: 15px;
  color: #374151;
  line-height: 1.75;
}

/* ========== SCROLL REVEAL ========== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== ANIMATIONS ========== */
@keyframes bounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.05); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); opacity: 1; }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  body { font-size: 16px; }

  section { padding: 56px 0; }

  h1 { font-size: 34px; }
  h2 { font-size: 26px; }

  .hero { padding: 40px 0 56px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-phone { order: 2; }
  .phone-frame { width: 240px; }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .carousel-item { width: 200px; }

  .waitlist-form {
    flex-direction: column;
  }
  .waitlist-form button {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-links {
    justify-content: center;
  }

  .share-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .referral-link-box {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * {
    animation-duration: 0.01ms !important;
  }
}
