/* Fleden — pixel-perfect tokens from Figma Style Guide (43-2713 / 43-2934).
   Rule: no :hover effects anywhere on the site. */
:root {
  --text-1: #141719;
  --text-2: #40494f;
  --text-3: #71797f;
  --border: #e9eaeb;
  --blue: #0099ff;
  --blue-soft: #f3fafe;
  --blue-tint: #ecf6fc;
  --blue-deep: #093959;
  --gray-soft: #f6f7f7;
  --red: #a63232;
  --green-ok: #219c27;
  --badge-good-bg: #f3f8f1; --badge-good-bd: #edf4ea; --badge-good-tx: #2b541c;
  --badge-mid-bg: #faf7f0;  --badge-mid-bd: #f5efe0;  --badge-mid-tx: #574c1d;
  --badge-bad-bg: #faf0f0;  --badge-bad-bd: #f5e6e6;  --badge-bad-tx: #762728;
  --font: "Stack Sans Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Fragment Mono", ui-monospace, monospace;
  --col: 532px;
  --radius-card: 8px;
  --radius-pill: 100px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-1);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; }

/* ---------- page shell (Figma: 16 top / 72 bottom padding, 40 gap between blocks) ---------- */
.page {
  display: flex; flex-direction: column; align-items: center; gap: 40px;
  padding: 16px 20px 72px; min-height: 100vh;
}
.page > * { width: 100%; max-width: var(--col); }
.main { display: flex; flex-direction: column; gap: 20px; }

/* ---------- header (component 95:2573) ---------- */
.header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 54px; padding: 8px; border: 1px solid var(--border);
  border-radius: var(--radius-pill); background: #fff;
}
.header .logo img { width: 42px; height: 36px; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; padding: 0 12px; border-radius: var(--radius-pill);
  font-size: 14px; color: var(--text-2); text-decoration: none;
}
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 12px; border: 0; border-radius: var(--radius-pill);
  background: var(--blue); color: #fff; font-family: var(--font); font-size: 14px;
  text-decoration: none; cursor: pointer;
}
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: none; border: 0; padding: 0; cursor: pointer; }
.avatar-btn { background: none; border: 0; padding: 0; cursor: pointer; }
.header[data-auth="anon"] .only-auth, .header[data-auth="anon"] .only-free, .header[data-auth="anon"] .only-premium { display: none; }
.header[data-auth="free"] .only-anon, .header[data-auth="free"] .only-premium { display: none; }
.header[data-auth="premium"] .only-anon, .header[data-auth="premium"] .only-free { display: none; }

/* premium dropdown (Figma 96:3816) */
.header { position: relative; }
.premium-pop {
  position: absolute; top: 62px; right: 0; z-index: 20;
  min-width: 164px; padding: 8px; border: 1px solid var(--border); border-radius: 8px;
  background: #fff; display: flex; flex-direction: column; gap: 5px;
}
.premium-pop[hidden] { display: none; }
.premium-pop button {
  display: block; width: 100%; height: 32px; padding: 0 10px; text-align: left;
  background: none; border: 0; border-radius: 6px; font-family: var(--font);
  font-size: 14px; color: var(--text-2); cursor: pointer;
}
.premium-pop button.danger { color: var(--red); }

/* ---------- hero (Figma 96:3574) ---------- */
.hero { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.hero-logo { width: 66px; height: 57px; }
.hero-text { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 424px; text-align: center; }
.hero h1 { font-size: 36px; line-height: 1; }
.lede { color: var(--text-3); }
.hero .lede { text-align: center; }

/* ---------- controls: Fresh ideas + Category (Figma 96:3580) ---------- */
.controls { position: relative; display: flex; align-items: flex-start; gap: 12px; }
.btn-fresh {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 12px; border-radius: var(--radius-pill);
  background: var(--blue); color: #fff; font-size: 14px; text-decoration: none;
}
.btn-fresh img { width: 16px; height: 16px; }
.btn-category {
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: 8px; background: #fff;
  font-family: var(--font); font-size: 14px; color: var(--text-2); cursor: pointer;
}
.btn-category img { width: 10px; height: 9px; }
.cat-menu {
  position: absolute; left: 140px; top: 48px; z-index: 20;
  min-width: 141px; padding: 8px; border: 1px solid var(--border); border-radius: 8px;
  background: #fff; display: flex; flex-direction: column; gap: 5px;
}
.cat-menu[hidden] { display: none; }
.cat-menu a {
  display: flex; align-items: center; height: 32px; padding: 0 10px; border-radius: 6px;
  font-size: 14px; color: var(--text-2); text-decoration: none;
}
.cat-menu a.is-active { background: var(--blue-tint); color: var(--blue-deep); }

/* ---------- idea cards (component 98:4096) ---------- */
.cards { display: flex; flex-direction: column; gap: 12px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 20px;
  padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-card); background: #fff;
}
.card-main { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; }
.card-kicker { font-family: var(--mono); font-size: 12px; line-height: 1; text-transform: uppercase; color: var(--text-3); }
.card-title { font-size: 16px; line-height: 1; }
.card-problem { color: var(--text-3); line-height: 1.45; }
.card-meta { display: flex; gap: 20px; }
.card-meta > div { display: flex; flex-direction: column; gap: 6px; }
.meta-label { font-family: var(--mono); font-size: 12px; line-height: 1; text-transform: uppercase; color: var(--text-3); }
.badge {
  display: inline-flex; align-items: center; height: 23px; padding: 0 12px;
  border: 1px solid transparent; border-radius: 4px; font-size: 12px; line-height: 1;
}
.badge.b-bad { background: var(--badge-bad-bg); border-color: var(--badge-bad-bd); color: var(--badge-bad-tx); }
.badge.b-mid { background: var(--badge-mid-bg); border-color: var(--badge-mid-bd); color: var(--badge-mid-tx); }
.badge.b-good { background: var(--badge-good-bg); border-color: var(--badge-good-bd); color: var(--badge-good-tx); }
.save-btn { position: absolute; top: 20px; right: 20px; background: none; border: 0; padding: 0; cursor: pointer; }
.save-btn img { width: 16px; height: 16px; }

/* ---------- pagination ---------- */
.pagination { display: flex; align-items: center; gap: 12px; }
.page-link, .page-num {
  display: inline-flex; align-items: center; height: 32px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: 6px; font-size: 14px; color: var(--text-2); text-decoration: none;
}
.page-num.is-active { background: var(--blue-tint); color: var(--blue-deep); border-color: var(--blue-tint); }

/* ---------- paywall / premium card (Figma 96:3613 / 27:1529) ---------- */
.paywall[data-paywall="free"] { max-width: 353px; }
.paywall, .premium-card {
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  width: 100%; max-width: 316px; margin: 0 auto; padding-bottom: 80px; text-align: center;
}
.premium-card { padding-bottom: 0; gap: 32px; margin-top: 20vh; }
.paywall h2, .premium-card h1 { font-size: 20px; line-height: 1.27; }
.paywall .lede, .premium-card .lede { text-align: center; }
.auth-stack { display: flex; flex-direction: column; gap: 20px; width: 100%; }
.btn-google {
  display: flex; align-items: center; gap: 8px; width: 100%; height: 40px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: 8px; background: var(--gray-soft);
  font-family: var(--font); font-size: 14px; color: var(--text-1); cursor: pointer;
}
.btn-google img { width: 20px; height: 20px; }
.btn-google span { flex: 1; text-align: center; }
.or { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 12px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-form { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.auth-form input {
  width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--border);
  border-radius: 8px; font-family: var(--font); font-size: 14px; font-weight: 300; color: var(--text-1);
  background: #fff;
}
.auth-form input::placeholder { color: var(--text-3); }
.btn-block {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 40px;
  border: 0; border-radius: var(--radius-pill); background: var(--blue); color: #fff;
  font-family: var(--font); font-size: 14px; cursor: pointer; text-decoration: none;
}
.form-error { color: var(--red); font-size: 14px; font-weight: 300; }
.form-error[hidden] { display: none; }

/* billing toggle + price + features (Figma 27:1533) */
.billing-toggle { display: flex; justify-content: center; gap: 4px; }
.billing-toggle button {
  height: 25px; padding: 0 8px; border: 1px solid var(--border); border-radius: var(--radius-pill);
  background: #fff; font-family: var(--font); font-size: 12px; color: var(--text-2); cursor: pointer;
}
.billing-toggle button.is-active { background: var(--blue-soft); border-color: #73c1f4; color: var(--blue); }
.price-block { display: flex; flex-direction: column; align-items: center; gap: 20px; width: 100%; }
.price-line { display: flex; align-items: baseline; gap: 4px; }
.price-old { font-size: 32px; font-weight: 200; color: var(--text-3); text-decoration: line-through; }
.price-now { font-size: 32px; font-weight: 200; color: var(--text-1); }
.price-per { font-size: 12px; color: var(--text-3); }
.features { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.features span { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--text-2); }
.features img { width: 16px; height: 16px; }
.upgrade-stack { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.caption { font-size: 12px; color: var(--text-3); }

/* ---------- SEO body + FAQ (Figma 96:3650 / 96:3660) ---------- */
.seo-body { display: flex; flex-direction: column; gap: 24px; }
.seo-block { display: flex; flex-direction: column; gap: 4px; }
.seo-body h2, .seo-body h3 { font-size: 20px; line-height: 1.27; }
.seo-body p { color: var(--text-3); }
.seo-body a { color: var(--blue-deep); }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-head { display: flex; flex-direction: column; gap: 4px; }
.faq-head h2 { font-size: 20px; line-height: 1.27; }
.faq-head p { color: var(--text-3); }
.faq-items { display: flex; flex-direction: column; gap: 8px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-card); background: #fff; }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px; font-size: 14px; font-weight: 300; color: var(--text-2); cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { padding: 0 12px 12px; color: var(--text-3); }
.faq-icon { flex: 0 0 20px; height: 20px; position: relative; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; background: var(--text-3); }
.faq-icon::before { left: 4px; right: 4px; top: 9.4px; height: 1.3px; }
.faq-icon::after { top: 4px; bottom: 4px; left: 9.4px; width: 1.3px; }
.faq-item[open] .faq-icon::after { display: none; }

/* ---------- idea page (Figma 96:3519) ---------- */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3); }
.breadcrumb a { color: var(--text-3); text-decoration: none; }
.breadcrumb .current { color: var(--text-2); }
.breadcrumb img { width: 9px; height: 10px; }
.dateline { font-size: 12px; color: var(--text-3); }
.idea { display: flex; flex-direction: column; gap: 24px; }
.idea-head { display: flex; flex-direction: column; gap: 12px; }
.idea-head h1 { font-size: 36px; line-height: 1; }
.idea-section { display: flex; flex-direction: column; gap: 4px; }
.idea-section h2 { font-size: 20px; line-height: 1.27; }
.idea-section p, .idea-body { color: var(--text-3); }
.quotes { display: flex; flex-direction: column; gap: 8px; }
.quote-label { font-family: var(--mono); font-size: 12px; line-height: 1; text-transform: uppercase; color: var(--text-3); }
.quote { padding: 12px; border-radius: var(--radius-card); background: var(--gray-soft); }
.quote p { color: var(--text-1); }
.quote cite { display: block; margin-top: 8px; font-style: normal; font-size: 12px; color: var(--text-3); }
.quote cite a { color: var(--text-3); }
.filed { font-size: 12px; color: var(--text-3); }
.filed a { color: var(--blue-deep); }

/* ---------- auth pages (Figma 39:2919 / 40:2491) ---------- */
.auth-page {
  display: flex; flex-direction: column; align-items: center; gap: 0;
  padding: 16px 20px 40px; min-height: 100vh;
}
.auth-page .hero-logo { margin-bottom: 0; }
.auth-box { display: flex; flex-direction: column; align-items: center; gap: 24px; width: 100%; max-width: 316px; margin-top: 15vh; }
.auth-box h1 { font-size: 20px; }
.auth-box .sub { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.swap { font-size: 12px; color: var(--text-3); }
.swap a { color: var(--blue-deep); text-decoration: none; }
.link-quiet { font-size: 12px; color: var(--text-3); text-decoration: none; }

/* ---------- footer (component 95:2307) ---------- */
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px; }
.footer a { font-size: 12px; color: var(--text-3); text-decoration: none; }

@media (max-width: 480px) {
  .hero h1, .idea-head h1 { font-size: 32px; }
  .card-meta { gap: 12px; }
  .cat-menu { left: 0; }
}
