:root {
  --bg: #fdf9f3;
  --surface: #ffffff;
  --surface-2: #faf1e4;
  --border: #eee1cf;
  --text: #2b2118;
  --text-muted: #75685a;
  --brand: #e2593b;
  --brand-dark: #c34527;
  --brand-contrast: #ffffff;
  --brand-soft: #fdeae4;
  --accent: #2f8f6b;
  --accent-soft: #e2f3ec;
  --sun: #f2b52f;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(60, 35, 10, 0.07), 0 10px 28px rgba(60, 35, 10, 0.07);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171310;
    --surface: #211b16;
    --surface-2: #2a221b;
    --border: #3c322a;
    --text: #f0e9e0;
    --text-muted: #a89a8a;
    --brand: #f07a5c;
    --brand-dark: #e2593b;
    --brand-soft: #3a221b;
    --accent: #4bb98d;
    --accent-soft: #1c332a;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.45), 0 10px 28px rgba(0, 0, 0, 0.3);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
button, input, select, textarea { font: inherit; color: inherit; }

.container { max-width: 1060px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 62px; gap: 16px;
}
.logo { font-weight: 800; font-size: 1.25rem; text-decoration: none; color: var(--text); }
.logo span { color: var(--brand); }
.nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--text-muted); font-weight: 500; font-size: 0.95rem; }
.nav a:hover { color: var(--text); }
.nav .nav-cta {
  background: var(--brand); color: var(--brand-contrast);
  padding: 8px 16px; border-radius: 999px; font-weight: 700;
}
.nav .nav-cta:hover { background: var(--brand-dark); color: var(--brand-contrast); }

/* Sections */
section { padding: 64px 0; }
section.alt { background: var(--surface-2); }
.section-title { font-size: 1.7rem; line-height: 1.25; margin-bottom: 10px; }
.section-sub { color: var(--text-muted); max-width: 640px; margin-bottom: 32px; }

/* Hero */
.hero { padding: 72px 0 56px; text-align: center; }
.hero h1 { font-size: clamp(1.8rem, 4.5vw, 2.9rem); line-height: 1.15; max-width: 820px; margin: 0 auto 18px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .sub { color: var(--text-muted); max-width: 640px; margin: 0 auto 28px; font-size: 1.08rem; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.badge-row {
  display: flex; gap: 10px 22px; justify-content: center; flex-wrap: wrap;
  margin-top: 26px; color: var(--text-muted); font-size: 0.9rem;
}
.badge-row span::before { content: "✓ "; color: var(--accent); font-weight: 700; }

/* Buttons */
.btn {
  display: inline-block; padding: 13px 26px; border: none; border-radius: 999px;
  background: var(--brand); color: var(--brand-contrast);
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn.secondary {
  background: var(--surface); color: var(--text);
  border: 1.5px solid var(--border);
}
.btn.secondary:hover { background: var(--surface-2); }

/* Filters */
.filters { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.filter-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-label { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); min-width: 72px; text-transform: uppercase; letter-spacing: 0.04em; }
.chip {
  padding: 7px 15px; border-radius: 999px; border: 1.5px solid var(--border);
  background: var(--surface); color: var(--text-muted); font-weight: 600;
  font-size: 0.92rem; cursor: pointer; transition: all 0.12s ease;
}
.chip:hover { border-color: var(--brand); color: var(--text); }
.chip.active { background: var(--brand); border-color: var(--brand); color: var(--brand-contrast); }
.filters-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 18px;
}
#ideas-count { color: var(--text-muted); font-size: 0.92rem; }

/* Idea cards */
.ideas-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
}
.idea-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 8px;
}
.idea-card.flash { outline: 3px solid var(--sun); outline-offset: 2px; }
.idea-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.idea-emoji { font-size: 2rem; line-height: 1; }
.idea-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.tag {
  font-size: 0.74rem; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  background: var(--surface-2); color: var(--text-muted);
}
.tag-age { background: var(--brand-soft); color: var(--brand-dark); }
@media (prefers-color-scheme: dark) { .tag-age { color: var(--brand); } }
.tag-time { background: var(--accent-soft); color: var(--accent); }
.idea-card h3 { font-size: 1.12rem; line-height: 1.3; }
.idea-mat { font-size: 0.9rem; color: var(--text-muted); }
.idea-how { font-size: 0.95rem; }
.idea-skills { font-size: 0.82rem; font-weight: 600; color: var(--accent); margin-top: auto; padding-top: 6px; }

/* How it works steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.step {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.step .num {
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; background: var(--brand); color: var(--brand-contrast);
  font-weight: 800; margin-bottom: 12px;
}
.step h3 { margin-bottom: 6px; font-size: 1.05rem; }
.step p { color: var(--text-muted); font-size: 0.95rem; }

/* Products */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.product-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.product-card.featured { border-color: var(--brand); position: relative; }
.product-card .flag {
  position: absolute; top: -13px; left: 20px;
  background: var(--sun); color: #3a2a00; font-size: 0.78rem; font-weight: 800;
  padding: 3px 12px; border-radius: 999px;
}
.product-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.product-card .price { font-size: 1.7rem; font-weight: 800; color: var(--brand); margin-bottom: 14px; }
.product-card .price small { font-size: 0.95rem; color: var(--text-muted); font-weight: 500; }
.product-card ul { list-style: none; margin-bottom: 20px; flex: 1; }
.product-card li { padding: 5px 0 5px 24px; position: relative; font-size: 0.94rem; }
.product-card li::before { content: "✓"; position: absolute; left: 2px; color: var(--accent); font-weight: 800; }
.product-card .btn { width: 100%; text-align: center; }

/* Newsletter */
.newsletter-box {
  background: var(--brand-soft); border-radius: var(--radius);
  padding: 40px 28px; text-align: center;
}
.newsletter-box h2 { margin-bottom: 8px; }
.newsletter-box p { color: var(--text-muted); margin-bottom: 20px; }
#newsletter-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
#newsletter-form input {
  padding: 12px 18px; border-radius: 999px; border: 1.5px solid var(--border);
  background: var(--surface); min-width: 260px;
}

/* FAQ */
.faq details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px; margin-bottom: 12px;
}
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin-top: 10px; color: var(--text-muted); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border); padding: 28px 0; text-align: center;
  color: var(--text-muted); font-size: 0.9rem;
}
.site-footer a { color: var(--text-muted); }

/* Toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--text); color: var(--bg); padding: 12px 22px;
  border-radius: 999px; font-size: 0.92rem; box-shadow: var(--shadow); z-index: 50;
}

@media (max-width: 640px) {
  section { padding: 44px 0; }
  .hero { padding: 48px 0 40px; }
  .nav a:not(.nav-cta) { display: none; }
}
