/* ── Imports ──────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* ── Variables ────────────────────────────────────────────────────────── */
:root {
  --bg-base:      #F4EFE6;
  --bg-card:      #FDFAF5;
  --brand-deep:   #7A4A30;
  --brand-mid:    #B5784F;
  --brand-light:  #EDD5C4;
  --border:       #D8D2C5;
  --border-sub:   #E8E2D8;
  --text-primary: #1E1A14;
  --text-sec:     #6B5E50;
  --text-muted:   #9A9088;
  --sage-deep:    #3A6650;
  --sage-light:   #C4D9CE;
}

/* ── Reset ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-base);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Typography ───────────────────────────────────────────────────────── */
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; line-height: 1.1; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; line-height: 1.2; }
h3 { font-size: 1.1rem; font-weight: 600; }
p  { color: var(--text-sec); }
.label {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-muted);
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.5rem; border-radius: 10px; font-family: inherit;
  font-size: 0.95rem; font-weight: 600; cursor: pointer; border: none;
  transition: opacity 0.15s, transform 0.1s;
  width: 100%;
}
.btn:hover  { opacity: 0.88; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--brand-deep); color: #FDFAF5; }
.btn-outline {
  background: transparent; border: 1.5px solid var(--brand-deep);
  color: var(--brand-deep);
}
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; width: auto; }

/* ── Layout ───────────────────────────────────────────────────────────── */
.container { max-width: 900px; margin: 0 auto; padding: 0 1.25rem; }
section    { padding: 4rem 0; }

/* ── Nav ──────────────────────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244,239,230,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-sub);
  padding: 0 1.25rem;
}
.nav-inner {
  max-width: 900px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.1rem; color: var(--brand-deep);
}
.nav-logo {
  width: 34px; height: 34px;
  background: var(--brand-deep); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #FDFAF5; font-weight: 700; font-size: 0.85rem;
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { padding: 5rem 0; text-align: center; }
.hero h1 { color: var(--brand-deep); margin-bottom: 1rem; }
.hero .tagline {
  font-size: 1.1rem; color: var(--text-sec);
  max-width: 480px; margin: 0 auto 2rem;
}
.hero-actions { display: flex; flex-direction: column; gap: 0.75rem; max-width: 300px; margin: 0 auto; }

/* ── Problem ──────────────────────────────────────────────────────────── */
.problem-grid {
  display: grid; grid-template-columns: 1fr; gap: 1rem;
  margin-top: 2rem;
}
.problem-card {
  background: var(--bg-card); border: 1px solid var(--border-sub);
  border-radius: 12px; padding: 1.25rem;
}
.problem-card .icon { font-size: 1.5rem; margin-bottom: 0.5rem; }

/* ── Features ─────────────────────────────────────────────────────────── */
.features-grid {
  display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 2rem;
}
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border-sub);
  border-radius: 12px; padding: 1.25rem;
  display: flex; gap: 1rem; align-items: flex-start;
}
.feature-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: rgba(122,74,48,0.1); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.feature-card h3 { margin-bottom: 0.25rem; display: flex; align-items: center; gap: 0.5rem; }
.pro-pill {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em;
  background: var(--brand-deep); color: #FDFAF5; padding: 2px 6px;
  border-radius: 4px; text-transform: uppercase;
}

/* ── Pricing ──────────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 2rem;
}
.pricing-card {
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: 14px; padding: 1.5rem;
}
.pricing-card.pro { background: var(--brand-deep); border-color: var(--brand-deep); color: #FDFAF5; }
.pricing-card.pro p, .pricing-card.pro li { color: rgba(253,245,238,0.85); }
.price { font-size: 2rem; font-weight: 700; line-height: 1; }
.price-period { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; }
.pricing-card.pro .price-period { color: rgba(253,245,238,0.6); }
.pricing-features { list-style: none; margin-top: 1rem; }
.pricing-features li { padding: 0.35rem 0; font-size: 0.9rem; }
.pricing-features li::before { content: "✓  "; color: var(--sage-deep); font-weight: 600; }
.pricing-card.pro .pricing-features li::before { color: var(--sage-light); }
.pricing-note { font-size: 0.75rem; margin-top: 1rem; color: var(--text-muted); }
.pricing-card.pro .pricing-note { color: rgba(253,245,238,0.6); }

/* ── Download ─────────────────────────────────────────────────────────── */
.download-box {
  background: var(--bg-card); border: 1px solid var(--border-sub);
  border-radius: 16px; padding: 2rem; text-align: center; margin-top: 2rem;
}
.download-box h2 { margin-bottom: 0.5rem; }
.download-box p { margin-bottom: 1.5rem; }
.download-actions { display: flex; flex-direction: column; gap: 0.75rem; max-width: 280px; margin: 0 auto; }
.ios-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 1rem; }

/* ── Legal pages ──────────────────────────────────────────────────────── */
.legal-content { max-width: 680px; margin: 0 auto; padding: 3rem 1.25rem; }
.legal-content h1 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.legal-content .date { color: var(--text-muted); margin-bottom: 2rem; font-size: 0.9rem; }
.legal-content h2 { font-size: 1.1rem; margin: 1.75rem 0 0.5rem; }
.legal-content p, .legal-content li { margin-bottom: 0.6rem; line-height: 1.7; }
.legal-content ul { margin-left: 1.25rem; }
.legal-content a { color: var(--brand-mid); text-decoration: underline; }

/* ── Reset page ───────────────────────────────────────────────────────── */
.reset-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 2rem 1.25rem;
}
.reset-card {
  background: var(--bg-card); border: 1px solid var(--border-sub);
  border-radius: 16px; padding: 2rem; width: 100%; max-width: 420px;
}
.reset-card h1 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.reset-card p { margin-bottom: 1.5rem; }
.input-group { margin-bottom: 1rem; }
.input-group label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 0.35rem; }
.input-group input {
  width: 100%; padding: 0.7rem 0.9rem; border: 1.5px solid var(--border);
  border-radius: 8px; font-family: inherit; font-size: 0.95rem;
  background: var(--bg-base); color: var(--text-primary);
  transition: border-color 0.15s;
}
.input-group input:focus { outline: none; border-color: var(--brand-mid); }
.msg {
  padding: 0.75rem 1rem; border-radius: 8px; font-size: 0.9rem;
  margin-bottom: 1rem; display: none;
}
.msg.success { background: var(--sage-light); color: var(--sage-deep); }
.msg.error   { background: #E8C4C4; color: #7A3838; }

/* ── Footer ───────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border-sub); padding: 2rem 1.25rem;
  text-align: center; color: var(--text-muted); font-size: 0.85rem;
}
footer a { color: var(--brand-mid); }
footer a:hover { text-decoration: underline; }
.footer-links { display: flex; gap: 1.5rem; justify-content: center; margin-bottom: 0.75rem; }

/* ── Section headings ─────────────────────────────────────────────────── */
.section-header { margin-bottom: 0.5rem; }
.section-sub { color: var(--text-sec); }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (min-width: 768px) {
  .hero-actions    { flex-direction: row; max-width: none; justify-content: center; }
  .btn             { width: auto; }
  .problem-grid    { grid-template-columns: repeat(3, 1fr); }
  .features-grid   { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid    { grid-template-columns: repeat(2, 1fr); }
  .download-actions { flex-direction: row; max-width: none; justify-content: center; }
}
