/* MemeShots.com — shared styles */

:root {
  --ink: #16101F;
  --ink-2: #211829;
  --ink-3: #2E2239;
  --line: #3B2C4A;
  --text: #F2E9F7;
  --text-dim: #A99BB8;
  --pink: #FF3D8B;
  --yellow: #FFD84D;
  --green: #2BD98A;
  --red: #FF5C5C;

  --display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --body: "Chivo", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;

  --wrap: 1120px;
  --r: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--pink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--yellow); }

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); }
h4 { font-size: 1.05rem; letter-spacing: -0.01em; }

p { margin: 0 0 1.1em; max-width: 68ch; }

.lead { font-size: 1.18rem; color: var(--text-dim); max-width: 60ch; }

.num { font-family: var(--mono); font-feature-settings: "tnum"; }

/* ---------- for sale ribbon ---------- */

.ribbon {
  background: var(--yellow);
  color: #211829;
  font-family: var(--body);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 9px 0;
}
.ribbon .wrap {
  display: flex; gap: 14px; align-items: center;
  justify-content: center; flex-wrap: wrap; text-align: center;
}
.ribbon a { color: #211829; font-weight: 800; }
.ribbon a:hover { color: #7A1140; }

/* ---------- nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(22, 16, 31, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex; align-items: center; gap: 28px;
  height: 66px;
}
.brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.brand span { color: var(--pink); }
.nav-links {
  display: flex; gap: 22px; margin-left: auto;
  font-size: 0.94rem; flex-wrap: wrap;
}
.nav-links a {
  color: var(--text-dim); text-decoration: none; font-weight: 500;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"] { border-bottom: 2px solid var(--pink); }

/* ---------- ticker ---------- */

.ticker {
  border-bottom: 1px solid var(--line);
  background: var(--ink-2);
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.8rem;
  padding: 7px 0;
  white-space: nowrap;
}
.ticker-track {
  display: inline-block;
  animation: slide 42s linear infinite;
}
.ticker-track span { padding: 0 22px; color: var(--text-dim); }
.ticker-track b { font-weight: 500; color: var(--text); }
.up { color: var(--green); }
.down { color: var(--red); }
@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 74px 0 84px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(3.2rem, 9vw, 6rem);
  line-height: 0.92;
  margin-bottom: 0.3em;
}
.hero h1 em {
  font-style: normal;
  display: block;
  color: var(--pink);
}
.hero .lead { font-size: 1.24rem; }
.hero-chart { position: relative; }
.hero-chart svg { width: 100%; height: auto; overflow: visible; }

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 24px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--pink); color: #fff; }
.btn-primary:hover { background: var(--yellow); color: #211829; }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--pink); color: var(--text); }

/* ---------- sections ---------- */

.section { padding: 76px 0; border-bottom: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: 40px; }
.section-head p { color: var(--text-dim); }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.stat {
  background: var(--ink-2);
  padding: 24px 20px;
}
.stat .figure {
  font-family: var(--mono);
  font-size: 1.7rem;
  color: var(--yellow);
  display: block;
  line-height: 1.1;
}
.stat p { font-size: 0.9rem; color: var(--text-dim); margin: 8px 0 0; }

/* ---------- cards ---------- */

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px;
}
.card h3 { margin-bottom: 0.4em; }
.card p { font-size: 0.96rem; color: var(--text-dim); margin-bottom: 0; }
.card p + p { margin-top: 0.9em; }

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-dim);
  margin: 0 6px 6px 0;
}
.tag-hot { border-color: var(--pink); color: var(--pink); }
.tag-free { border-color: var(--green); color: var(--green); }

/* ---------- scanner demo ---------- */

.scanner {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.scanner-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--ink-3);
  font-size: 0.9rem;
}
.dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(43, 217, 138, 0.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(43, 217, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(43, 217, 138, 0); }
}
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }
.demo-flag {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--yellow);
  border: 1px solid var(--yellow);
  padding: 2px 8px;
  border-radius: 999px;
}
.feed { max-height: 380px; overflow-y: auto; }
.feed-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.feed-row:last-child { border-bottom: 0; }
.feed-row .sym { font-family: var(--mono); font-weight: 500; }
.feed-row .why { color: var(--text-dim); font-size: 0.85rem; }
.feed-row .mv { font-family: var(--mono); font-weight: 500; }
.spark { width: 64px; height: 22px; }

/* ---------- tools / calculators ---------- */

.tool {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 30px;
  margin-bottom: 26px;
}
.tool h3 { margin-bottom: 0.35em; }
.tool > p { color: var(--text-dim); font-size: 0.96rem; }

.field-row { display: grid; gap: 18px; margin: 22px 0; }
.field-row-3 { grid-template-columns: repeat(3, 1fr); }
.field-row-2 { grid-template-columns: repeat(2, 1fr); }

.field label {
  display: block;
  font-size: 0.83rem;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.field input, .field select {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--mono);
  font-size: 1rem;
  padding: 11px 13px;
  border-radius: 9px;
}
.field input:focus, .field select:focus { border-color: var(--pink); }

.readout {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.readout div span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.readout div strong {
  font-family: var(--mono);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--yellow);
}
.readout div strong.good { color: var(--green); }
.readout div strong.bad { color: var(--red); }

.note {
  font-size: 0.86rem;
  color: var(--text-dim);
  border-left: 2px solid var(--line);
  padding-left: 14px;
  margin-top: 20px;
}

/* rug check */
.check-list { list-style: none; padding: 0; margin: 22px 0; }
.check-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.check-list input { margin-top: 5px; width: 17px; height: 17px; accent-color: var(--pink); flex: none; }
.check-list label { font-size: 0.95rem; cursor: pointer; }
.check-list .hint { display: block; color: var(--text-dim); font-size: 0.83rem; margin-top: 2px; }

.score-bar {
  height: 12px;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin: 12px 0 8px;
}
.score-fill {
  height: 100%;
  width: 0%;
  background: var(--red);
  transition: width 0.3s ease, background 0.3s ease;
}

/* ---------- playbook / workflow ---------- */

.flow { display: grid; gap: 14px; counter-reset: step; }
.flow-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--pink);
  border-radius: var(--r);
  padding: 20px 24px;
}
.flow-step .marker {
  counter-increment: step;
  font-family: var(--mono);
  font-size: 1.2rem;
  color: var(--pink);
}
.flow-step .marker::before { content: counter(step, decimal-leading-zero); }
.flow-step h4 { margin-bottom: 0.3em; }
.flow-step p { font-size: 0.94rem; color: var(--text-dim); margin: 0; }

.candle-legend { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 26px; }

/* ---------- table ---------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); }
th {
  background: var(--ink-3);
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-dim);
}
tbody tr:last-child td { border-bottom: 0; }
td .num { color: var(--yellow); }

/* ---------- posts ---------- */

.post-list { display: grid; gap: 2px; }
.post-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
}
.post-item:hover h3 { color: var(--pink); }
.post-item p { color: var(--text-dim); font-size: 0.94rem; margin: 4px 0 0; }
.post-item .meta { font-family: var(--mono); font-size: 0.8rem; color: var(--text-dim); white-space: nowrap; }

.article { max-width: 68ch; }
.article h2 { margin-top: 1.6em; }
.article ul, .article ol { color: var(--text-dim); padding-left: 22px; }
.article li { margin-bottom: 0.5em; max-width: 64ch; }
.article blockquote {
  border-left: 3px solid var(--pink);
  margin: 1.6em 0;
  padding-left: 20px;
  color: var(--text);
  font-size: 1.06rem;
}

/* ---------- for sale page ---------- */

.price-box {
  background: linear-gradient(135deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--pink);
  border-radius: var(--r);
  padding: 34px;
}
.price-box .figure {
  font-family: var(--mono);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  color: var(--yellow);
  line-height: 1;
  display: block;
}

/* ---------- risk banner ---------- */

.risk {
  background: var(--ink-2);
  border: 1px solid var(--red);
  border-radius: var(--r);
  padding: 22px 26px;
}
.risk h4 { color: var(--red); }
.risk p { font-size: 0.92rem; color: var(--text-dim); margin-bottom: 0; }

/* ---------- footer ---------- */

.footer { padding: 56px 0 44px; font-size: 0.9rem; color: var(--text-dim); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; margin-bottom: 36px; }
.footer h4 { color: var(--text); font-size: 0.9rem; margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 7px; }
.footer a { color: var(--text-dim); text-decoration: none; }
.footer a:hover { color: var(--pink); }
.footer-base { border-top: 1px solid var(--line); padding-top: 22px; font-size: 0.84rem; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .field-row-3, .field-row-2 { grid-template-columns: 1fr; }
  .readout { grid-template-columns: 1fr; gap: 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .candle-legend { grid-template-columns: 1fr; }
  .nav .wrap { height: auto; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
  .nav-links { margin-left: 0; width: 100%; gap: 16px; font-size: 0.88rem; }
  .section { padding: 54px 0; }
}

@media (max-width: 560px) {
  .stat-strip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .feed-row { grid-template-columns: 1fr auto; }
  .feed-row .spark { display: none; }
}

/* ticker emphasis should not italicise */
.ticker-track em { font-style: normal; font-weight: 500; }
