:root {
  /* Palette */
  --bg-warm: #e9e5dc;
  --bg-cream: #f5f1eb;
  --bg-green-tint: #eef2ed;
  --bg-white: #ffffff;

  --primary: #2b4a3f;
  --primary-light: #3a6354;
  --highlight: #e8a87c;

  --text-dark: #1a1a1a;
  --text-muted: #6b6b6b;
  --text-white: #ffffff;

  --border: #d6d2ca;
  --border-light: #e8e4dc;

  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.1);
}

/* ========== Reset & Base ========== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-warm);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
}

h4 {
  font-family: var(--font-sans);
  font-weight: 700;
}

.container {
  width: 90%;
  max-width: 1140px;
  margin: 0 auto;
}

/* ========== Buttons ========== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

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

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

.btn-secondary {
  background: var(--text-white);
  color: var(--primary);
}

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

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

/* ========== Header ========== */

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(233, 229, 220, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow 0.3s ease;
}

.nav-container {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

/* Mobile nav toggle */
.mobile-nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.mobile-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-nav-toggle.is-active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.is-active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-links {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--bg-warm);
  border-bottom: 1px solid var(--border);
  padding: 24px 5%;
  gap: 20px;
}

.nav-links.is-open {
  display: flex;
}

.nav-links a {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.nav-actions {
  display: none;
}

.btn-nav {
  padding: 10px 22px;
  font-size: 0.9rem;
}

/* ========== Eyebrow ========== */

.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* ========== Hero ========== */

.hero {
  padding: 120px 0 80px;
}

.hero-grid {
  display: grid;
  gap: 48px;
}

.hero-text h1 {
  font-size: 2.6rem;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 24px;
  line-height: 1.7;
}

.hero-highlights {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 32px;
}

.hero-highlights .highlight {
  text-decoration: underline;
  text-decoration-color: var(--highlight);
  text-underline-offset: 4px;
  text-decoration-thickness: 3px;
}

.inline-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 440px;
}

.inline-form input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 1rem;
  background: var(--bg-white);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.inline-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(43, 74, 63, 0.1);
}

.form-status {
  font-size: 0.9rem;
  min-height: 1.4em;
}

.hero-disclaimer {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 12px;
}

/* ========== Phone Frames ========== */

.phone-frame {
  position: relative;
  width: 280px;
  margin: 0 auto;
  background: #1a1a1a;
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
}

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

.phone-notch {
  width: 100px;
  height: 28px;
  background: #1a1a1a;
  border-radius: 0 0 16px 16px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.phone-frame-sm {
  width: 220px;
}

.phone-frame-sm .phone-notch {
  width: 80px;
  height: 22px;
  border-radius: 0 0 12px 12px;
}

/* ========== Stats Bar ========== */

.stats-bar {
  padding: 64px 0;
  background: var(--primary);
  color: var(--text-white);
}

.stats-grid {
  display: grid;
  gap: 40px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ========== Feature Showcase ========== */

.feature-showcase {
  padding: 100px 0;
}

.feature-showcase-header {
  text-align: center;
  margin-bottom: 40px;
}

.feature-showcase-header h2 {
  font-size: 2.2rem;
  color: var(--text-dark);
}

.feature-showcase-tabs {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.feature-tab {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.feature-tab:hover {
  color: var(--text-dark);
  border-color: var(--text-dark);
}

.feature-tab.is-active {
  background: var(--primary);
  color: var(--text-white);
  border-color: var(--primary);
}

/* Timer bar on active tab */
.feature-tab.is-active.is-timing::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.4);
  animation: tab-timer 5s linear forwards;
}

@keyframes tab-timer {
  from { width: 0%; }
  to { width: 100%; }
}

.feature-showcase-stage {
  display: grid;
  gap: 48px;
  align-items: center;
}

.feature-showcase-text {
  position: relative;
  min-height: 160px;
}

.feature-slide-text {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  pointer-events: none;
}

.feature-slide-text.is-active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
  pointer-events: auto;
}

.feature-slide-text h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.feature-slide-text p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
}

.feature-showcase-phone {
  display: flex;
  justify-content: center;
}

.feature-phone-slides {
  position: relative;
}

.feature-slide-img {
  opacity: 0;
  transition: opacity 0.4s ease;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.feature-slide-img.is-active {
  opacity: 1;
  position: relative;
}

/* ========== Pricing ========== */

.section-pricing {
  padding: 100px 0;
  background: var(--bg-green-tint);
}

.pricing-header {
  text-align: center;
  margin-bottom: 48px;
}

.pricing-header h2 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.pricing-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.pricing-card {
  max-width: 820px;
  margin: 0 auto;
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  display: grid;
  overflow: hidden;
}

.pricing-card-details {
  padding: 40px 36px;
}

.pricing-card-details h3 {
  font-size: 1.6rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.pricing-card-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.pricing-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 32px;
}

.pricing-features span {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.pricing-card-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 36px;
  background: var(--bg-cream);
  text-align: center;
  gap: 4px;
}

.pricing-card-price {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--text-dark);
}

.pricing-card-term {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.pricing-card-cta .btn {
  width: 100%;
  max-width: 240px;
}

/* ========== Setup / How It Works ========== */

.section-setup {
  padding: 100px 0;
}

.setup-header {
  text-align: center;
  margin-bottom: 56px;
}

.setup-header h2 {
  font-size: 2.2rem;
}

.setup-steps {
  display: grid;
  gap: 24px;
}

.step-card {
  background: var(--bg-white);
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.step-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-green-tint);
  border-radius: var(--radius-md);
  color: var(--primary);
  margin-bottom: 20px;
}

.step-card h4 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.step-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ========== FAQ ========== */

.section-faq {
  padding: 100px 0;
  background: var(--bg-cream);
}

.section-faq h2 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 48px;
}

.faq-grid {
  display: grid;
  gap: 20px;
}

.faq-card {
  background: var(--bg-white);
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.faq-card h4 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.faq-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ========== Final CTA ========== */

.section-final-cta {
  padding: 100px 0;
  background: var(--primary);
  text-align: center;
  color: var(--text-white);
}

.section-final-cta h2 {
  font-size: 2.2rem;
  color: var(--text-white);
  max-width: 600px;
  margin: 0 auto 16px;
}

.section-final-cta p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
}

/* ========== Footer ========== */

.site-footer {
  padding: 48px 0;
  background: var(--bg-warm);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 8px;
}

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

.footer-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

/* ========== Legal Pages ========== */

.nav-links--legal {
  display: flex;
  flex-direction: row;
  position: static;
  background: none;
  border: none;
  padding: 0;
  gap: 24px;
}

.legal-main {
  padding: 120px 0 80px;
}

.legal-content {
  max-width: 680px;
}

.legal-content h1 {
  font-size: 2.4rem;
  margin-bottom: 8px;
}

.legal-updated {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.legal-summary {
  background: var(--bg-cream);
  border-left: 3px solid var(--primary);
  padding: 20px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 32px;
}

.legal-summary p {
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.7;
}

.legal-content h2 {
  font-size: 1.4rem;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.legal-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 12px;
}

.legal-content li {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 6px;
}

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

.legal-content a:hover {
  color: var(--primary-light);
}

/* ========== Scroll Animations ========== */

[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Responsive: Tablet (640px+) ========== */

@media (min-width: 640px) {
  .inline-form {
    flex-direction: row;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .setup-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========== Responsive: Desktop (768px+) ========== */

@media (min-width: 768px) {
  .mobile-nav-toggle {
    display: none;
  }

  .nav-links {
    display: flex;
    flex-direction: row;
    position: static;
    background: none;
    border: none;
    padding: 0;
    gap: 32px;
  }

  .nav-actions {
    display: block;
  }

  .hero {
    padding: 160px 0 100px;
  }

  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }

  .hero-text h1 {
    font-size: 3.2rem;
  }

  .feature-showcase-stage {
    grid-template-columns: 1fr 1fr;
  }

  .pricing-card {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .footer-grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ========== Responsive: Large Desktop (1024px+) ========== */

@media (min-width: 1024px) {
  .hero-text h1 {
    font-size: 3.8rem;
  }

  .feature-showcase-header h2,
  .pricing-header h2,
  .setup-header h2,
  .section-faq h2,
  .section-final-cta h2 {
    font-size: 2.8rem;
  }

  .feature-slide-text h3 {
    font-size: 2.2rem;
  }

  .phone-frame {
    width: 320px;
  }

  .stat-number {
    font-size: 4.5rem;
  }
}
