/*
 * Real Product List — indie-tool skin (Nomad List / Remote OK energy).
 * System fonts, emoji as icons, white rounded cards on soft gray,
 * one red accent. Red-tinted cards are reserved for plastic fakes.
 */

:root {
  --bg: #f7f7f5;
  --card: #ffffff;
  --ink: #111111;
  --muted: #666666;
  --line: #e8e8e4;
  --accent: #ff4742;
  --accent-soft: #fff1f0;
  --accent-line: #ffd6d3;
  --ok: #12b76a;
  --radius: 16px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 6px 18px rgba(0, 0, 0, 0.1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
}

a { color: var(--ink); }
a:focus-visible, .chip:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.section-intro {
  max-width: 42rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

/* ---------- Hero ---------- */

.hero {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 7rem) 1.5rem 1rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 7vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero-sub {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  color: var(--muted);
  max-width: 34rem;
  margin: 1rem auto 0;
}

.hero-sub strong { color: var(--ink); }

.hero-stats {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

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

.btn-ghost {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
}

/* ---------- Decoder ---------- */

.decoder {
  max-width: 64rem;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) 1.5rem 1rem;
}

.decoder-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 0.75rem;
}

.decoder-item {
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

.fake-name {
  display: block;
  font-weight: 700;
  color: var(--accent);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

.truth { color: var(--ink); }

/* ---------- Directory ---------- */

.directory {
  max-width: 64rem;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) 1.5rem 2rem;
}

.filters { margin-bottom: 1.75rem; }

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.chip {
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.95rem;
  box-shadow: var(--shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

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

.chip-sm { font-size: 0.82rem; padding: 0.25rem 0.8rem; }

.chip-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.product-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 1rem;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.25rem 1.1rem;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

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

.card-emoji { font-size: 1.6rem; line-height: 1; margin-bottom: 0.5rem; }

.card-brand {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.card-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0.15rem 0 0.6rem;
}

.card-name a { text-decoration: none; }
.card-name a:hover { text-decoration: underline; }

.card-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.7rem;
}

.pill {
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.12rem 0.6rem;
  white-space: nowrap;
}

.card-notes {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 0.7rem;
}

.card-price { font-weight: 700; font-size: 0.92rem; }

.badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ok);
  background: #ecfdf3;
  border: 1px solid #c7f0d9;
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
  white-space: nowrap;
}

.empty {
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding: 2rem 1.5rem 3rem;
  text-align: center;
  color: var(--muted);
}

.footer-fine { font-size: 0.8rem; margin-top: 0.5rem; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------- Admin ---------- */

.admin { max-width: 62rem; margin: 0 auto; padding: 2rem 1.5rem; }
.admin-notice { background: var(--card); border-left: 4px solid var(--ok); padding: 0.5rem 1rem; margin: 1rem 0; }
.admin-table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 0.9rem; }
.admin-table th, .admin-table td { text-align: left; border-bottom: 1px solid var(--line); padding: 0.5rem; vertical-align: top; }
.admin-table td form { display: inline; }
.admin-form { max-width: 28rem; }
.admin-form input[type="text"], .admin-form textarea, .admin-form select { width: 100%; padding: 0.4rem; border: 1px solid var(--line); border-radius: 6px; font-family: var(--font); }
.admin-errors { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 0.75rem 1rem 0.75rem 2rem; margin-bottom: 1rem; }

/* ---------- Submissions ---------- */

.submit-page { max-width: 36rem; margin: 0 auto; padding: clamp(3rem, 8vw, 5rem) 1.5rem 3rem; }
.submit-page h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 900; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.submit-form p { margin-bottom: 1rem; }
.submit-form label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.25rem; }
.submit-form input[type="text"], .submit-form textarea, .submit-form select {
  width: 100%; padding: 0.6rem 0.75rem; font-size: 1rem; font-family: var(--font);
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
}
.submit-form input:focus, .submit-form textarea:focus, .submit-form select:focus {
  outline: 3px solid var(--accent); outline-offset: 0;
}
.btn-submit { border: 0; cursor: pointer; font-size: 1rem; font-family: var(--font); }
.form-errors {
  background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 12px;
  padding: 0.85rem 1rem 0.85rem 1.1rem; margin-bottom: 1.25rem;
}
.form-errors ul { margin: 0.25rem 0 0 1.25rem; }
.field-honeypot { position: absolute; left: -9999px; top: -9999px; }

.toast {
  position: sticky; top: 0.75rem; z-index: 10;
  max-width: 26rem; margin: 0.75rem auto; padding: 0.7rem 1.2rem;
  border-radius: 999px; text-align: center; font-weight: 600;
  box-shadow: var(--shadow-hover);
}
.toast-notice { background: #ecfdf3; border: 1px solid #c7f0d9; color: #0a7d47; }
.toast-alert { background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); }
