/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Brand */
  --accent: #C8956C;
  --accent-hover: #B5804F;
  --accent-light: #F5E6D8;

  /* Backgrounds */
  --bg-primary: #FAF6F1;
  --bg-card: #FFFCF8;
  --bg-dark: #1A1614;

  /* Text */
  --text-primary: #2C2520;
  --text-secondary: #786E65;
  --text-muted: #A39890;

  /* Semantic */
  --success: #5E9E7E;
  --danger: #D4634B;
  --warning: #C9983A;

  /* Subject palette */
  --indigo: #6366F1;
  --pink: #EC4899;
  --amber: #F59E0B;
  --emerald: #10B981;
  --blue: #3B82F6;
  --purple: #8B5CF6;
  --red: #EF4444;
  --teal: #14B8A6;

  /* Layout */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --max-width: 1120px;
  --nav-height: 64px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(44, 37, 32, 0.06);
  --shadow: 0 4px 16px rgba(44, 37, 32, 0.08);
  --shadow-lg: 0 12px 40px rgba(44, 37, 32, 0.12);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.highlight {
  color: var(--accent);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 12px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--accent);
  color: #fff;
  white-space: nowrap;
}

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

.btn-outline {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(250, 246, 241, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(44, 37, 32, 0.06);
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

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

/* ===== HERO ===== */
.hero {
  padding: calc(var(--nav-height) + 80px) 0 80px;
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

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

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

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

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Phone mockup */
.phone-mockup {
  width: 300px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: 32px;
  padding: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(44, 37, 32, 0.05);
}

.phone-screen {
  background: var(--bg-primary);
  border-radius: 24px;
  padding: 24px 16px;
  min-height: 440px;
}

.mock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.mock-greeting {
  font-weight: 700;
  font-size: 1.125rem;
}

.mock-count {
  font-size: 0.8125rem;
  color: var(--accent);
  font-weight: 600;
  background: var(--accent-light);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.mock-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  transition: opacity 0.3s;
  overflow: hidden;
}

.mock-card.faded {
  opacity: 0.5;
}

.mock-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px 0;
}

.mock-subject {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.mock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.mock-tag {
  font-size: 0.625rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.mock-tag-due {
  background: #FEF3C7;
  color: #92400E;
}

.mock-tag-new {
  background: #DBEAFE;
  color: #1E40AF;
}

.mock-question {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 14px;
}

.mock-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px 10px;
}

.mock-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(44, 37, 32, 0.06);
  color: var(--text-muted);
}

.mock-reveal {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 500;
}

/* Hero background shapes */
.hero-bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
}

.shape-1 {
  width: 600px;
  height: 600px;
  background: var(--accent);
  top: -200px;
  right: -100px;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: var(--indigo);
  bottom: -100px;
  left: -100px;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: var(--emerald);
  top: 50%;
  left: 40%;
}

/* ===== SOCIAL PROOF ===== */
.social-proof {
  padding: 48px 0;
  border-top: 1px solid rgba(44, 37, 32, 0.06);
  border-bottom: 1px solid rgba(44, 37, 32, 0.06);
}

.proof-items {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.proof-item {
  text-align: center;
}

.proof-item strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.proof-item span {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.proof-divider {
  width: 1px;
  height: 40px;
  background: rgba(44, 37, 32, 0.1);
}

/* ===== SECTION SHARED ===== */
.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.2;
}

.section-header p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
}

/* ===== FEATURES ===== */
.features {
  padding: 100px 0;
}

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

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid rgba(44, 37, 32, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: var(--icon-bg);
  color: var(--icon-fg);
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: 100px 0;
  background: var(--bg-card);
}

.steps {
  max-width: 640px;
  margin: 0 auto;
}

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

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.step-content p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.step-connector {
  width: 2px;
  height: 40px;
  background: var(--accent-light);
  margin-left: 23px;
}

/* ===== SHOWCASE ===== */
.showcase {
  padding: 100px 0;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.showcase-text h2 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.showcase-text p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 0.9375rem;
}

/* Curve graphic */
.curve-graphic {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 36px 32px 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(44, 37, 32, 0.04);
}

.curve-chart {
  position: relative;
  margin-bottom: 20px;
}

.forgetting-svg {
  width: 100%;
  height: auto;
  display: block;
}

.svg-label {
  font-size: 10px;
  fill: var(--text-muted);
  font-family: 'Inter', system-ui, sans-serif;
}

.axis-label {
  position: absolute;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.axis-y {
  top: 50%;
  left: -8px;
  transform: rotate(-90deg) translateX(-50%);
  transform-origin: left center;
}

.axis-x {
  bottom: 2px;
  right: 0;
}

/* Animate curve paths on reveal */
.curve-path {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
}

.showcase-visual.visible .curve-path {
  animation: drawCurve 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.showcase-visual.visible .curve-spaced {
  animation-delay: 0.4s;
}

.showcase-visual.visible .review-dot {
  opacity: 0;
  animation: popDot 0.3s ease forwards;
}

.showcase-visual.visible .review-dot:nth-of-type(1) { animation-delay: 0.6s; }
.showcase-visual.visible .review-dot:nth-of-type(2) { animation-delay: 0.9s; }
.showcase-visual.visible .review-dot:nth-of-type(3) { animation-delay: 1.2s; }
.showcase-visual.visible .review-dot:nth-of-type(4) { animation-delay: 1.5s; }

@keyframes drawCurve {
  to { stroke-dashoffset: 0; }
}

@keyframes popDot {
  0% { opacity: 0; r: 0; }
  60% { r: 5.5; }
  100% { opacity: 1; r: 4; }
}

/* Legend */
.curve-legend {
  display: flex;
  gap: 28px;
  margin-bottom: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-line {
  display: inline-block;
  width: 24px;
  height: 3px;
  border-radius: 2px;
  flex-shrink: 0;
}

.decline-line { background: var(--danger); }
.spaced-line { background: var(--success); }

.legend-text {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.legend-text .danger { color: var(--danger); }
.legend-text .success { color: var(--success); }

.curve-caption {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ===== PRICING ===== */
.pricing {
  padding: 100px 0;
  background: var(--bg-card);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.price-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 2px solid rgba(44, 37, 32, 0.06);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

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

.price-card .btn {
  margin-top: auto;
}

.price-card.popular {
  border-color: var(--accent);
  background: var(--bg-card);
}

.popular-tag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: var(--radius-full);
}

.price-badge {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.price-amount {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}

.currency {
  font-size: 1.5rem;
  vertical-align: super;
  font-weight: 600;
}

.period {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.price-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.price-features {
  list-style: none;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-features li {
  font-size: 0.9375rem;
  font-weight: 500;
  padding-left: 24px;
  position: relative;
}

.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.price-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 24px;
}

.price-footnote {
  font-size: 0.75rem;
  vertical-align: super;
  color: var(--text-muted);
}

.btn-disabled {
  opacity: 0.55;
  pointer-events: none;
  cursor: default;
}

/* ===== FAQ ===== */
.faq {
  padding: 100px 0;
}

.faq-list {
  max-width: 680px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(44, 37, 32, 0.08);
}

.faq-item summary {
  padding: 20px 0;
  font-weight: 600;
  font-size: 1.0625rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform 0.3s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding-bottom: 20px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ===== CTA ===== */
.cta {
  padding: 100px 0;
  background: var(--bg-dark);
  color: #EDE6DD;
}

.cta-inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.cta-inner h2 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: #EDE6DD;
}

.cta-inner p {
  color: #A89E94;
  font-size: 1.0625rem;
  margin-bottom: 32px;
}

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

.cta-form input {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid rgba(237, 230, 221, 0.15);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: #EDE6DD;
  font-family: inherit;
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.2s;
}

.cta-form input::placeholder {
  color: #786E65;
}

.cta-form input:focus {
  border-color: var(--accent);
}

.store-badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  border: 2px solid rgba(237, 230, 221, 0.25);
  border-radius: var(--radius);
  color: #EDE6DD;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.06);
}

.store-badge:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.store-badge-small {
  font-size: 0.625rem;
  font-weight: 500;
  color: #A89E94;
  letter-spacing: 0.02em;
}

.store-badge-big {
  font-size: 1.0625rem;
  font-weight: 700;
}

.cta-note {
  font-size: 0.8125rem;
  color: #786E65 !important;
  margin-bottom: 0 !important;
}

/* ===== FOOTER ===== */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid rgba(44, 37, 32, 0.06);
}

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

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

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.footer-col a {
  display: block;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid rgba(44, 37, 32, 0.06);
  padding-top: 24px;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

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

  .hero-sub {
    margin: 0 auto 32px;
  }

  .hero-actions {
    justify-content: center;
  }

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

  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-primary);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(44, 37, 32, 0.06);
    box-shadow: var(--shadow);
  }

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

  .navbar .btn-sm {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--nav-height) + 48px) 0 48px;
  }

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

  .hero-sub {
    font-size: 1rem;
  }

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

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .price-card.popular {
    order: -1;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .showcase-text h2 {
    font-size: 1.75rem;
  }

  .cta-form {
    flex-direction: column;
  }

  .cta-inner h2 {
    font-size: 1.75rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .proof-divider {
    display: none;
  }

  .proof-items {
    gap: 24px;
  }
}

/* ===== ANIMATIONS ===== */
@media (prefers-reduced-motion: no-preference) {
  .feature-card,
  .step,
  .price-card,
  .showcase-text,
  .showcase-visual {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .feature-card.visible,
  .step.visible,
  .price-card.visible,
  .showcase-text.visible,
  .showcase-visual.visible {
    opacity: 1;
    transform: translateY(0);
  }
}
