/* ==========================================================================
   LitList — shared site stylesheet
   Single source of truth for every page on litlist.ca.

   Before this file, ~350 lines of near-identical CSS were duplicated across
   index / privacy / terms / delete-account, with three different values for
   the page background (#131009, #0e0c09, #0e0c0a). Everything now resolves
   to the tokens below. Change a colour here, it changes everywhere.

   Sections:
     1.  Tokens
     2.  Reset + base
     3.  Nav (desktop + mobile)
     4.  Layout primitives
     5.  Type
     6.  Buttons + store badges
     7.  Cards + features
     8.  FAQ / details
     9.  Plans + comparison table
     10. Forms
     11. Feedback board
     12. Legal / long-form pages
     13. Footer
     14. Motion + responsive
   ========================================================================== */

/* ── 1. Tokens ─────────────────────────────────────────────────────────── */
:root {
  --bg:         #131009;
  --bg2:        #1a1610;
  --surface:    #211c15;
  --surface2:   #2a2318;
  --border:     rgba(201, 168, 76, 0.15);
  --border2:    rgba(240, 232, 216, 0.08);
  --gold:       #c9a84c;
  --gold-light: #e0c070;
  --gold-dim:   rgba(201, 168, 76, 0.12);
  --cream:      #f0e8d8;
  --cream2:     #c8b898;
  --grey:       #7a6a58;

  --red:        rgba(196, 80, 58, 0.12);
  --red-border: rgba(196, 80, 58, 0.30);
  --red-text:   #c4503a;
  --green:      rgba(106, 153, 96, 0.14);
  --green-text: #8fbf7f;

  --display: 'Playfair Display', Georgia, serif;
  --body:    'DM Sans', system-ui, -apple-system, sans-serif;
  --serif:   'Lora', Georgia, serif;
  --mono:    ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap:    1100px;
  --wrap-sm: 760px;
  --radius:  16px;
}

/* ── 2. Reset + base ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Film grain — the one ambient texture the brand carries. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

::selection { background: rgba(201, 168, 76, 0.28); color: var(--cream); }

a { color: var(--gold); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 0 0 8px 0;
  font-weight: 700;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ── 3. Nav ────────────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 14px 40px;
  background: linear-gradient(to bottom, rgba(19, 16, 9, 0.97) 0%, rgba(19, 16, 9, 0) 100%);
  backdrop-filter: blur(4px);
}
nav.nav-static { position: relative; background: none; backdrop-filter: none; padding-top: 22px; }

.nav-logo { display: inline-flex; align-items: center; line-height: 1; text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  color: var(--cream2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a[aria-current="page"] { color: var(--cream); }

.nav-cta {
  background: var(--gold) !important;
  color: var(--bg) !important;
  padding: 9px 20px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.15s !important;
}
.nav-cta:hover { background: var(--gold-light); transform: translateY(-1px); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--cream2);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 58px; left: 0; right: 0;
  background: rgba(19, 16, 9, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border2);
  flex-direction: column;
  padding: 20px 24px 28px;
  gap: 2px;
  z-index: 99;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  color: var(--cream2);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid var(--border2);
  transition: color 0.2s;
}
.nav-mobile-menu a:hover { color: var(--gold); }
.nav-mobile-cta {
  background: var(--gold) !important;
  color: var(--bg) !important;
  text-align: center;
  border-radius: 10px !important;
  padding: 13px 0 !important;
  font-weight: 700 !important;
  border-bottom: none !important;
  margin-top: 10px;
}

/* ── 4. Layout primitives ──────────────────────────────────────────────── */
.section-wrap { padding: 96px 24px; max-width: var(--wrap); margin: 0 auto; }
.section-wrap.narrow { max-width: var(--wrap-sm); }
.section-wrap.tight { padding: 64px 24px; }

.divider {
  width: 100%; height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
}

/* Page hero for interior pages — smaller than the homepage hero. */
.page-hero {
  text-align: center;
  padding: 132px 24px 56px;
  max-width: var(--wrap-sm);
  margin: 0 auto;
}
.page-hero h1 { margin-bottom: 18px; }
.page-hero > p {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--cream2);
  line-height: 1.75;
  max-width: 56ch;
  margin: 0 auto;
}

.page-badge, .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-dim);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 26px;
}
.hero-badge span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
}

/* ── 5. Type ───────────────────────────────────────────────────────────── */
h1 {
  font-family: var(--display);
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--cream);
}
h1 em { font-style: italic; color: var(--gold); }

h2 {
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--cream);
  margin-bottom: 18px;
}
h2 em { font-style: italic; color: var(--gold); }

h3 {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 10px;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-family: var(--mono);
}

.section-sub {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--cream2);
  max-width: 54ch;
  line-height: 1.75;
  margin-bottom: 52px;
}

.lede {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--cream2);
  line-height: 1.85;
}

.center { text-align: center; }
.center .section-sub { margin-left: auto; margin-right: auto; }

/* ── 6. Buttons + store badges ─────────────────────────────────────────── */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 10px;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  font-family: var(--body);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary {
  background: var(--gold);
  color: var(--bg);
  font-weight: 700;
  border: none;
  box-shadow: 0 4px 24px rgba(201, 168, 76, 0.25);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201, 168, 76, 0.35);
}
.btn-secondary {
  background: transparent;
  color: var(--cream2);
  font-weight: 500;
  border: 1px solid var(--border2);
}
.btn-secondary:hover { color: var(--cream); border-color: var(--border); background: var(--surface); }

.btn-sm { padding: 9px 18px; font-size: 13px; border-radius: 8px; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-row.center { justify-content: center; }

.store-buttons {
  display: flex; gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 36px;
}
.store-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 14px;
  padding: 13px 24px;
  text-decoration: none;
  color: var(--cream);
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
  min-width: 175px;
}
.store-btn:hover {
  border-color: var(--gold);
  background: var(--surface);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.store-btn svg { flex-shrink: 0; }
.store-btn-sub { font-size: 10px; color: var(--grey); letter-spacing: 0.04em; }
.store-btn-name { font-size: 16px; font-weight: 600; color: var(--cream); margin-top: 1px; }

/* ── 7. Cards + features ───────────────────────────────────────────────── */
.features-hero {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
.feature-card-hero {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 24px;
  padding: 34px 30px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.2s;
}
.feature-card-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold-dim) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 24px;
  pointer-events: none;
}
.feature-card-hero:hover { border-color: var(--border); transform: translateY(-3px); }
.feature-card-hero:hover::after { opacity: 1; }
.fch-icon { font-size: 34px; margin-bottom: 18px; display: block; }
.fch-title { font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--cream); margin-bottom: 12px; }
.fch-desc { font-size: 14px; color: var(--cream2); line-height: 1.75; margin-bottom: 18px; }
.fch-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.fch-pill {
  font-size: 11px;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px 10px;
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

.features-secondary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
.feature-card-sm {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: border-color 0.25s, transform 0.2s;
}
.feature-card-sm:hover { border-color: var(--border); transform: translateY(-2px); }
.fcs-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.fcs-title { font-size: 14px; font-weight: 600; color: var(--cream); margin-bottom: 4px; }
.fcs-desc { font-size: 13px; color: var(--grey); line-height: 1.6; }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 44px 40px;
  position: relative;
  overflow: hidden;
}
.panel-glow::before {
  content: '';
  position: absolute;
  top: -140px; left: 50%;
  transform: translateX(-50%);
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* Numbered steps — used on the import walkthrough, where order is real. */
.steps { display: flex; flex-direction: column; gap: 2px; counter-reset: step; }
.step {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border2);
}
.step:last-child { border-bottom: none; }
.step-num {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--gold-dim);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-body h3 { font-size: 17px; margin-bottom: 6px; }
.step-body p { font-size: 14px; color: var(--cream2); line-height: 1.7; }

/* ── 8. FAQ / details ──────────────────────────────────────────────────── */
.faq-list { max-width: 700px; display: flex; flex-direction: column; gap: 4px; }
details {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s;
}
details[open] { border-color: rgba(201, 168, 76, 0.25); }
details summary {
  padding: 20px 22px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--cream);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  user-select: none;
}
details summary::-webkit-details-marker { display: none; }
.faq-icon {
  color: var(--gold);
  font-size: 20px;
  font-weight: 300;
  transition: transform 0.2s;
  flex-shrink: 0;
}
details[open] .faq-icon { transform: rotate(45deg); }
.faq-body { padding: 0 22px 20px; font-size: 14px; color: var(--cream2); line-height: 1.8; }
.faq-body p + p { margin-top: 12px; }
.faq-body a { color: var(--gold); }

/* ── 8b. Hero phone ────────────────────────────────────────────────────── */
.hero-phone { position: relative; width: min(300px, 80vw); animation: fadeUp 0.8s 0.4s ease both; }
.hero-phone-frame {
  background: var(--surface2);
  border: 2px solid rgba(201,168,76,0.2);
  border-radius: 26px;
  padding: 7px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.03);
}
/* Show the top of the home screen only: header, stat cards and currently
   reading. Full-height would dominate the hero at 242px wide. */
.hero-phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 18;
  object-fit: cover;
  object-position: top;
  border-radius: 19px;
  background: var(--bg2);
}

/* ── 9. Plans + comparison table ───────────────────────────────────────── */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  /* stretch, not start: the cards hold different numbers of bullets, and a
     short card next to a tall one reads as the lesser option before a word
     has been read. */
  align-items: stretch;
}
.plan-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 24px;
  padding: 34px 30px;
  position: relative;
  display: flex;
  flex-direction: column;
}
/* Push the CTA to the bottom so all buttons sit on the same line. */
.plan-card > a:last-of-type { margin-top: auto; }
.plan-footnote { font-size: 13px; color: var(--cream2); line-height: 1.6; margin-top: 14px; text-align: center; }
.plan-card.featured { border-color: var(--border); background: var(--surface2); }
.plan-flag {
  position: absolute;
  top: -11px; left: 30px;
  background: var(--gold);
  color: var(--bg);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
}
.plan-name { font-family: var(--display); font-size: 26px; font-weight: 700; color: var(--cream); margin-bottom: 6px; }
.plan-price { font-size: 15px; color: var(--gold); font-family: var(--mono); margin-bottom: 4px; }
.plan-price strong { font-size: 26px; font-weight: 600; }
.plan-note { font-size: 13px; color: var(--grey); margin-bottom: 22px; line-height: 1.6; }
.plan-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }
.plan-list li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--cream2);
  line-height: 1.6;
  align-items: flex-start;
}
.plan-list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 9px;
}

.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare-table caption { text-align: left; color: var(--grey); font-size: 13px; padding-bottom: 14px; }
.compare-table th, .compare-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border2);
  text-align: left;
  vertical-align: top;
}
.compare-table thead th {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: var(--mono);
  font-weight: 600;
  border-bottom-color: var(--border);
}
.compare-table th[scope="row"] { color: var(--cream); font-weight: 500; width: 44%; }
.compare-table td { color: var(--cream2); }
.compare-table .yes { color: var(--gold); }
.compare-table .no  { color: var(--grey); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ── 10. Forms ─────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; text-align: left; }
.field label { font-size: 12px; font-weight: 600; color: var(--cream2); letter-spacing: 0.04em; }
.field .hint { font-size: 12px; color: var(--grey); line-height: 1.5; }

.input, .textarea, .select {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 12px 15px;
  color: var(--cream);
  font-size: 15px;
  font-family: var(--body);
  outline: none;
  transition: border-color 0.2s;
}
.input::placeholder, .textarea::placeholder { color: var(--grey); }
.input:focus, .textarea:focus, .select:focus { border-color: var(--gold); }
.textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.select { appearance: none; cursor: pointer; padding-right: 38px;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%),
                    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 19px) center, calc(100% - 14px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.inline-form { display: flex; gap: 12px; max-width: 460px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.inline-form .input { flex: 1; min-width: 220px; width: auto; }
.form-note { font-size: 12px; color: var(--grey); margin-top: 14px; }

/* ── 11. Feedback board ────────────────────────────────────────────────── */
.board-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 26px;
}
.chip {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 100px;
  padding: 7px 15px;
  font-size: 13px;
  color: var(--cream2);
  cursor: pointer;
  font-family: var(--body);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.chip:hover { color: var(--cream); border-color: var(--border); }
.chip.active { background: var(--gold-dim); border-color: var(--border); color: var(--gold); }
.board-bar .spacer { flex: 1; }

.post {
  display: flex;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 10px;
  transition: border-color 0.2s;
}
.post:hover { border-color: var(--border); }
.post.pinned { border-color: var(--border); background: var(--surface2); }

.vote {
  flex-shrink: 0;
  width: 54px;
  border: 1px solid var(--border2);
  border-radius: 12px;
  background: var(--bg2);
  color: var(--cream2);
  padding: 9px 0;
  cursor: pointer;
  font-family: var(--body);
  text-align: center;
  align-self: flex-start;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.vote:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.vote:disabled { cursor: default; opacity: 0.75; }
.vote.voted { background: var(--gold-dim); border-color: var(--border); color: var(--gold); }
.vote-arrow { display: block; font-size: 11px; line-height: 1; }
.vote-count { display: block; font-size: 17px; font-weight: 700; line-height: 1.3; }

.post-main { flex: 1; min-width: 0; }
.post-title { font-size: 16px; font-weight: 600; color: var(--cream); margin-bottom: 5px; line-height: 1.45; }
.post-body { font-size: 14px; color: var(--cream2); line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.post-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 11px;
  font-size: 12px;
  color: var(--grey);
}
.post-meta button {
  background: none;
  border: none;
  color: var(--grey);
  font-size: 12px;
  cursor: pointer;
  font-family: var(--body);
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.post-meta button:hover { color: var(--gold); }

.tag {
  font-size: 10px;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 100px;
  border: 1px solid var(--border2);
  color: var(--cream2);
  white-space: nowrap;
}
.tag-bug      { color: var(--red-text);   border-color: var(--red-border);   background: var(--red); }
.tag-idea     { color: var(--gold);       border-color: var(--border);       background: var(--gold-dim); }
.tag-question { color: var(--cream2); }
.tag-open        { color: var(--grey); }
.tag-planned     { color: var(--gold);       border-color: var(--border); }
.tag-in_progress { color: var(--gold-light); border-color: var(--border);       background: var(--gold-dim); }
.tag-shipped     { color: var(--green-text); border-color: rgba(106,153,96,0.3); background: var(--green); }
.tag-declined, .tag-duplicate { color: var(--grey); }
.tag-staff { color: var(--gold); border-color: var(--border); background: var(--gold-dim); }

.admin-note {
  margin-top: 11px;
  padding: 11px 14px;
  border-left: 2px solid var(--gold);
  background: var(--gold-dim);
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  color: var(--cream2);
  line-height: 1.65;
}
.admin-note strong { color: var(--gold); display: block; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 3px; font-family: var(--mono); font-weight: 600; }

.comments { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border2); display: flex; flex-direction: column; gap: 12px; }
.comment { font-size: 13px; line-height: 1.7; }
.comment-head { display: flex; gap: 8px; align-items: center; margin-bottom: 3px; flex-wrap: wrap; }
.comment-who { color: var(--cream); font-weight: 600; font-size: 12px; }
.comment-when { color: var(--grey); font-size: 11px; }
.comment-body { color: var(--cream2); white-space: pre-wrap; overflow-wrap: anywhere; }

.admin-tools {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border2);
}
.admin-tools button {
  background: var(--bg2);
  border: 1px solid var(--border2);
  color: var(--cream2);
  font-size: 11px;
  font-family: var(--mono);
  padding: 5px 10px;
  border-radius: 7px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.admin-tools button:hover { border-color: var(--gold); color: var(--gold); }

.empty {
  text-align: center;
  padding: 56px 24px;
  border: 1px dashed var(--border2);
  border-radius: 18px;
  color: var(--grey);
}
.empty h3 { color: var(--cream); margin-bottom: 8px; }
.empty p { font-size: 14px; max-width: 40ch; margin: 0 auto; line-height: 1.7; }

.notice {
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 16px;
  border: 1px solid var(--border2);
  background: var(--surface);
  color: var(--cream2);
}
.notice-error { border-color: var(--red-border); background: var(--red); color: var(--red-text); }
.notice-ok    { border-color: rgba(106,153,96,0.3); background: var(--green); color: var(--green-text); }

/* ── 12. Legal / long-form pages ───────────────────────────────────────── */
.doc { max-width: var(--wrap-sm); margin: 0 auto; padding: 0 24px 80px; }
.doc h2 {
  font-size: 24px;
  margin: 44px 0 14px;
  padding-top: 26px;
  border-top: 1px solid var(--border2);
}
.doc h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.doc h3 { font-size: 17px; margin: 26px 0 10px; }
.doc p, .doc li { font-size: 15px; color: var(--cream2); line-height: 1.85; }
.doc p { margin-bottom: 14px; }
.doc ul, .doc ol { margin: 0 0 16px 22px; }
.doc li { margin-bottom: 8px; }
.doc a { color: var(--gold); }
.doc strong { color: var(--cream); }

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left-width: 3px;
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  margin: 22px 0;
}
.callout p:last-child { margin-bottom: 0; }

/* ── 13. Footer ────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border2);
  padding: 46px 40px 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  gap: 56px;
}
.footer-brand { text-align: center; }
.footer-brand p { font-size: 13px; color: var(--grey); max-width: 220px; line-height: 1.6; margin-top: 12px; }
.footer-links { display: flex; gap: 56px; flex-wrap: wrap; justify-content: center; }
.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-family: var(--mono);
}
.footer-col a {
  display: block;
  color: var(--cream2);
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--border2);
  padding: 22px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p { font-size: 12px; color: var(--grey); }
.footer-bottom a { color: var(--grey); text-decoration: none; font-size: 12px; }
.footer-bottom a:hover { color: var(--gold); }

/* ── 14. Motion + responsive ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.js-ready .fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-ready .fade-in.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .features-hero { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .section-wrap { padding: 64px 20px; }
  .page-hero { padding: 112px 20px 44px; }
  .panel { padding: 32px 22px; border-radius: 20px; }
  footer { padding: 40px 20px 0; flex-direction: column; }
  .footer-links { gap: 36px; }
  .footer-bottom { padding: 20px; }
  .post { padding: 15px; gap: 12px; }
  .vote { width: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js-ready .fade-in { opacity: 1; transform: none; }
}
