/* MoGo Daily — dark editorial "ledger" aesthetic. Distinct from Daily Dice Hub's light card design. */
:root {
  --ink: #0e0f11;
  --panel: #17191c;
  --panel-raised: #1e2124;
  --line: #2a2d31;
  --text: #f4f5f3;
  --text-dim: #9a9fa6;
  --money: #1fb978;
  --money-dim: rgba(31, 185, 120, 0.14);
  --gold: #f2b705;
  --danger: #e5484d;
  --danger-dim: rgba(229, 72, 77, 0.14);
  --font-display: "Archivo", sans-serif;
  --font-body: "Work Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); color: var(--text); margin: 0 0 0.6em; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.08; }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
p { color: var(--text-dim); }
a { color: var(--money); }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--money); color: #06231a; padding: 0.5rem 1rem; z-index: 200; }
.skip-link:focus { left: 0; }

/* Ticker strip */
.ticker { background: var(--money); color: #06231a; font-family: var(--font-display); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.03em; }
.ticker-inner { max-width: 1160px; margin: 0 auto; padding: 0.45rem 1.25rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.4rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(14, 15, 17, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1160px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; }
.brand-mark { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--text); }
.brand-chip { width: 34px; height: 34px; border-radius: 8px; background: linear-gradient(135deg, var(--money), #0d7a4d); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 900; color: #06231a; font-size: 1rem; flex: none; }
.brand-text { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; }
.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 0.4rem; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); }
.primary-nav { display: flex; gap: 0.2rem; }
.primary-nav a { color: var(--text-dim); text-decoration: none; font-weight: 600; font-size: 0.88rem; padding: 0.5rem 0.85rem; border-radius: 6px; transition: color 0.2s, background 0.2s; }
.primary-nav a:hover { color: var(--text); background: var(--panel); }

/* Hero */
.hero { max-width: 1160px; margin: 0 auto; padding: 3.2rem 1.25rem 2.2rem; border-bottom: 1px solid var(--line); }
.kicker { display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); border: 1px solid rgba(242, 183, 5, 0.35); padding: 0.35rem 0.75rem; border-radius: 4px; margin-bottom: 1rem; }
.hero-lede { max-width: 680px; font-size: 1.06rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 0 2rem; margin-top: 1.4rem; font-size: 0.85rem; }
.hero-facts div { padding: 0.6rem 0; }
.hero-facts .k { display: block; color: var(--text-dim); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }
.hero-facts .v { font-weight: 700; color: var(--money); }

/* Sections */
main > section { max-width: 1160px; margin: 0 auto; padding: 3rem 1.25rem; border-bottom: 1px solid var(--line); }
main > section:last-of-type { border-bottom: none; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.section-head .index { font-family: var(--font-display); font-weight: 900; color: var(--line); font-size: 2rem; }

/* Ledger */
.ledger { margin-top: 1.6rem; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.ledger-row { display: grid; grid-template-columns: 2.2rem 1.4fr 6.5rem 1fr auto; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); background: var(--panel); }
.ledger-row:last-child { border-bottom: none; }
.ledger-index { font-family: var(--font-display); color: var(--text-dim); font-weight: 700; }
.ledger-title { font-weight: 700; }
.ledger-state { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.3rem 0.6rem; border-radius: 4px; text-align: center; }
.state-live { background: var(--money-dim); color: var(--money); }
.state-retired { background: var(--danger-dim); color: #ff8b8e; }
.state-pending { background: rgba(154, 159, 166, 0.16); color: var(--text-dim); }
.ledger-dates { font-size: 0.78rem; color: var(--text-dim); }
.ledger-link { justify-self: end; background: var(--money); color: #06231a; text-decoration: none; font-weight: 700; font-size: 0.85rem; padding: 0.5rem 0.9rem; border-radius: 6px; white-space: nowrap; }
.ledger-empty { padding: 1.6rem 1.2rem; background: var(--panel); border-radius: 10px; color: var(--text-dim); font-size: 0.92rem; }

/* Status facts grid */
.facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-top: 1.6rem; }
.facts-grid div { background: var(--panel); padding: 1.1rem 1.2rem; }
.facts-grid .k { display: block; font-size: 0.7rem; text-transform: uppercase; color: var(--text-dim); letter-spacing: 0.06em; margin-bottom: 0.3rem; }
.facts-grid .v { font-weight: 700; }

/* Numbered walkthrough */
.walkthrough { counter-reset: wstep; margin-top: 1.6rem; display: grid; gap: 0.8rem; }
.walkthrough div { counter-increment: wstep; position: relative; padding: 1rem 1.1rem 1rem 3rem; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.walkthrough div::before { content: counter(wstep); position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--gold); font-family: var(--font-display); font-weight: 900; }

/* Reasons list */
.reasons { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 0.7rem; }
.reasons li { background: var(--panel); border-left: 3px solid var(--gold); border-radius: 6px; padding: 0.9rem 1.1rem; }
.reasons strong { color: var(--text); }

/* Verification list */
.verify-list { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 0.6rem; }
.verify-list li { padding-left: 1.6rem; position: relative; }
.verify-list li::before { content: "\2192"; position: absolute; left: 0; color: var(--money); font-weight: 700; }

/* Archive */
.archive-list { margin-top: 1.4rem; display: grid; gap: 0.5rem; }
.archive-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; padding: 0.8rem 1.1rem; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; font-size: 0.88rem; }
.archive-meta { color: var(--text-dim); }
.archive-empty { font-size: 0.9rem; }

/* Q&A */
.qa-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; margin-top: 1.6rem; }
.qa-item { border-top: 2px solid var(--gold); padding-top: 0.9rem; }
.qa-q { display: block; font-weight: 700; margin-bottom: 0.4rem; font-family: var(--font-display); font-size: 1rem; }
.qa-a { margin: 0; }

/* Footer */
.site-footer { padding: 3rem 1.25rem 3.2rem; }
.footer-inner { max-width: 1160px; margin: 0 auto; display: grid; gap: 1.3rem; }
.footer-brand { font-family: var(--font-display); font-weight: 800; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.2rem; }
.footer-cols a { display: block; color: var(--text-dim); text-decoration: none; font-size: 0.85rem; padding: 0.25rem 0; }
.footer-cols a:hover { color: var(--money); }
.footer-fine { font-size: 0.8rem; max-width: 780px; }
.footer-copy { font-size: 0.76rem; color: var(--text-dim); }

/* Legal pages */
.legal-wrap { max-width: 760px; margin: 0 auto; padding: 3.2rem 1.25rem 4.5rem; }
.legal-wrap section { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.legal-wrap section:last-child { border-bottom: none; }
.legal-wrap h2 { font-size: 1.1rem; }

/* Contact form */
.reach-form { display: grid; gap: 1.1rem; max-width: 520px; margin-top: 1.4rem; }
.reach-form label { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.85rem; font-weight: 600; }
.reach-form input, .reach-form textarea { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 0.75rem 0.95rem; color: var(--text); font-family: var(--font-body); }
.reach-form input:focus, .reach-form textarea:focus { outline: none; border-color: var(--money); box-shadow: 0 0 0 3px var(--money-dim); }
.reach-form button { justify-self: start; background: var(--money); color: #06231a; border: none; font-weight: 800; padding: 0.8rem 1.7rem; border-radius: 6px; cursor: pointer; }
.form-status { font-size: 0.88rem; padding: 0.7rem 1rem; border-radius: 6px; display: none; }
.form-status.success { display: block; background: var(--money-dim); color: var(--money); }
.form-status.error { display: block; background: var(--danger-dim); color: #ff8b8e; }

/* Cookie consent bar */
.consent-bar { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; max-width: 620px; margin: 0 auto; background: var(--panel-raised); border: 1px solid var(--line); border-radius: 10px; padding: 1.1rem 1.3rem; box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.6); z-index: 100; }
.consent-bar p { font-size: 0.85rem; margin: 0 0 0.9rem; }
.consent-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.consent-btn { border-radius: 6px; padding: 0.55rem 1.1rem; font-weight: 700; font-size: 0.85rem; cursor: pointer; border: 1px solid var(--line); }
.consent-btn.solid { background: var(--money); color: #06231a; border-color: var(--money); }
.consent-btn.ghost { background: transparent; color: var(--text); }

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .primary-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--ink); flex-direction: column; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); display: none; }
  .primary-nav.open { display: flex; }
  .ledger-row { grid-template-columns: 1fr; gap: 0.4rem; }
  .ledger-link { justify-self: start; }
}
