/* ==========================================================================
   STOP THE TIP : stopthetip.com
   Brand: bold, irreverent, data-backed. "No-tipping sign" energy.
   Palette: alarm red, ink black, bone cream, a touch of gold (the coin).
   ========================================================================== */

:root {
  --red:        #e2231a;
  --red-dark:   #b41510;
  --ink:        #14110f;
  --ink-soft:   #2b2622;
  --bone:       #f6f1e7;
  --bone-2:     #efe7d6;
  --gold:       #f2b705;
  --paper:      #ffffff;
  --muted:      #6b625a;
  --line:       #e3d9c6;

  --shadow:     0 10px 30px rgba(20, 17, 15, 0.12);
  --shadow-lg:  0 24px 60px rgba(20, 17, 15, 0.22);
  --radius:     14px;
  --radius-lg:  22px;

  --serif:  "Georgia", "Times New Roman", serif;
  --sans:   "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Arial Black", "Inter", system-ui, sans-serif;

  --maxw: 1140px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bone);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--red-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 0.4em; }
h1 { font-family: var(--display); font-weight: 900; }
h2 { font-family: var(--display); font-weight: 900; font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-weight: 800; font-size: 1.25rem; }
p  { margin: 0 0 1rem; }
section { position: relative; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.center { text-align: center; }
.eyebrow {
  font-family: var(--sans); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.18em; font-size: 0.78rem; color: var(--red);
  margin: 0 0 0.8rem;
}
.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 60ch; }
.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--sans); font-weight: 800; font-size: 1rem;
  padding: 0.85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .15s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--red-dark); }
.btn-dark { background: var(--ink); color: var(--bone); }
.btn-dark:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bone); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.9rem; }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.1rem; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 241, 231, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--ink);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--display); font-weight: 900; font-size: 1.15rem; color: var(--ink); letter-spacing: -0.03em; }
.brand:hover { text-decoration: none; }
.brand .logo { width: 34px; height: 34px; flex: 0 0 auto; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: 0.96rem; }
.nav-links a:hover { color: var(--red); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 0.6rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .2s; }

@media (max-width: 900px) {
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bone); border-bottom: 2px solid var(--ink);
    max-height: 0; overflow: hidden; transition: max-height .28s ease;
  }
  .nav-links.open { max-height: 70vh; }
  .nav-links a { width: 100%; padding: 14px 22px; border-top: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .nav-cta .btn:not(.always) { display: none; }
}

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(226,35,26,0.12), transparent 60%),
    var(--bone);
  border-bottom: 3px solid var(--ink);
  padding: 64px 0 56px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); color: var(--ink); }
.hero h1 .hl { color: var(--red); display: inline-block; }
.hero .lead { margin: 1.2rem 0 1.8rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero-stamp {
  display: inline-block; transform: rotate(-4deg);
  border: 3px solid var(--red); color: var(--red);
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.05em; padding: 6px 14px; border-radius: 8px; font-size: 0.85rem;
  margin-bottom: 1rem; background: rgba(255,255,255,0.5);
}
.hero-art { display: flex; justify-content: center; }
.hero-art svg { width: 100%; max-width: 360px; filter: drop-shadow(var(--shadow-lg)); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art svg { max-width: 240px; }
}

/* ---------- ticker ---------- */
.ticker { background: var(--ink); color: var(--bone); overflow: hidden; border-bottom: 3px solid var(--gold); }
.ticker-track { display: inline-flex; white-space: nowrap; padding: 12px 0; animation: scroll 32s linear infinite; }
.ticker-track span { font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.95rem; padding: 0 1.6rem; }
.ticker-track span::after { content: "•"; color: var(--gold); margin-left: 1.6rem; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce){ .ticker-track { animation: none; } }

/* ---------- generic section ---------- */
.band { padding: 72px 0; }
.band.alt { background: var(--bone-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band.ink { background: var(--ink); color: var(--bone); }
.band.ink h2, .band.ink h3 { color: #fff; }
.band.ink .lead { color: #d9cfc0; }
.band.red { background: var(--red); color: #fff; }
.band.red h2, .band.red .lead { color: #fff; }
.section-head { max-width: 64ch; margin: 0 auto 2.6rem; text-align: center; }

/* ---------- stat cards ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 26px 20px; box-shadow: 4px 4px 0 var(--ink);
}
.stat .num { font-family: var(--display); font-weight: 900; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--red); line-height: 1; }
.stat .label { font-weight: 700; margin-top: 8px; }
.stat .sub { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }
.band.ink .stat { background: var(--ink-soft); border-color: var(--gold); box-shadow: 4px 4px 0 var(--gold); }
.band.ink .stat .label { color: #fff; }
@media (max-width: 820px){ .stat-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- cards / features ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .ico { font-size: 2rem; margin-bottom: 0.6rem; }
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--ink-soft); margin: 0; }
.card a.more { font-weight: 800; display: inline-block; margin-top: 0.8rem; }
@media (max-width: 820px){ .cards { grid-template-columns: 1fr; } }

/* ---------- charts ---------- */
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.chart-card {
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.chart-card h3 { margin-bottom: 0.2rem; }
.chart-card .src { font-size: 0.8rem; color: var(--muted); margin-top: 10px; }
.chart-holder { position: relative; height: 280px; }
@media (max-width: 820px){ .chart-grid { grid-template-columns: 1fr; } }

/* ---------- timeline ---------- */
.timeline { max-width: 760px; margin: 0 auto; position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 3px; background: var(--gold); }
.tl-item { position: relative; padding: 0 0 30px 22px; }
.tl-item::before { content: ""; position: absolute; left: -28px; top: 4px; width: 15px; height: 15px; border-radius: 50%; background: var(--red); border: 3px solid var(--bone); }
.tl-year { font-family: var(--display); font-weight: 900; color: var(--red); font-size: 1.1rem; }
.tl-item h3 { margin: 2px 0 4px; }
.tl-item p { margin: 0; color: var(--ink-soft); }
.band.ink .tl-item p { color: #cfc6b8; }
.band.ink .tl-item::before { border-color: var(--ink); }

/* ---------- engagement panel ---------- */
.engage { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 34px; align-items: stretch; }
.panel {
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: 6px 6px 0 var(--ink);
}
.panel h3 { font-family: var(--display); font-size: 1.5rem; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 2px solid var(--line); border-radius: 10px;
  font-size: 1rem; font-family: var(--sans); background: var(--bone);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--red); background: #fff; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.signer-count { font-family: var(--display); font-weight: 900; font-size: 2.4rem; color: var(--red); line-height: 1; }
.progress { height: 14px; border-radius: 999px; background: var(--bone-2); border: 2px solid var(--ink); overflow: hidden; margin: 10px 0 6px; }
.progress > i { display: block; height: 100%; background: var(--red); width: 0%; transition: width 1s ease; }
.form-note { font-size: 0.82rem; color: var(--muted); }
.recent-signers { list-style: none; padding: 0; margin: 14px 0 0; max-height: 180px; overflow-y: auto; }
.recent-signers li { padding: 8px 0; border-top: 1px dashed var(--line); font-size: 0.92rem; }
.recent-signers li b { color: var(--ink); }
@media (max-width: 820px){ .engage { grid-template-columns: 1fr; } .row2 { grid-template-columns: 1fr; } }

/* ---------- tip calculator ---------- */
.calc { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius-lg); padding: 30px; box-shadow: 6px 6px 0 var(--gold); }
.calc .big { font-family: var(--display); font-weight: 900; font-size: clamp(2rem,5vw,3rem); color: var(--red); }
.calc input[type=range] { width: 100%; accent-color: var(--red); }
.calc .readout { display: flex; justify-content: space-between; font-weight: 700; margin-top: 6px; }

/* ---------- share ---------- */
.share-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 1.4rem; }
.share-btn {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1.1rem;
  border-radius: 999px; font-weight: 800; font-size: 0.92rem; border: 2px solid currentColor; cursor: pointer;
  background: #fff; color: var(--ink); transition: transform .12s, background .12s, color .12s;
}
.share-btn:hover { transform: translateY(-2px); text-decoration: none; }
.share-btn svg { width: 18px; height: 18px; }
.band.red .share-btn { background: rgba(255,255,255,0.12); color: #fff; }
.band.red .share-btn:hover { background: #fff; color: var(--red); }

/* ---------- merch ---------- */
.merch-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.product { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s; display: flex; flex-direction: column; }
.product:hover { transform: translateY(-4px); }
.product .ph { aspect-ratio: 1/1; display: grid; place-items: center; text-align: center; padding: 24px; border-bottom: 2px solid var(--ink); background: var(--bone-2); }
.product .ph .slogan { font-family: var(--display); font-weight: 900; font-size: 1.3rem; text-transform: uppercase; line-height: 1.05; }
.product .ph.has-img { padding: 0; background: #fff; }
.product .ph.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product .body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product .name { font-weight: 800; }
.product .price { color: var(--red); font-weight: 800; }
.product .btn { margin-top: auto; justify-content: center; }
@media (max-width: 820px){ .merch-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .merch-grid { grid-template-columns: 1fr; } }

/* ---------- map / spread ---------- */
.spread { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.tag { border: 2px solid currentColor; border-radius: 999px; padding: 5px 12px; font-weight: 700; font-size: 0.88rem; }
.tag.bad { color: var(--red); }
.tag.good { color: #1f7a3d; }
@media (max-width: 820px){ .spread { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.qa { border-bottom: 1px solid var(--line); padding: 6px 0; }
.qa summary { cursor: pointer; font-weight: 800; font-size: 1.1rem; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; color: var(--red); font-family: var(--display); }
.qa[open] summary::after { content: "–"; }
.qa p { padding: 0 0 14px; color: var(--ink-soft); margin: 0; }

/* ---------- callout ---------- */
.callout { background: var(--paper); border: 2px dashed var(--red); border-radius: var(--radius-lg); padding: 30px; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #cfc6b8; padding: 56px 0 30px; border-top: 4px solid var(--gold); }
.footer a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer h4 { color: #fff; font-family: var(--sans); font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem; margin: 0 0 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 0.5rem; }
.foot-brand .brand { color: #fff; margin-bottom: 0.8rem; }
.foot-bottom { border-top: 1px solid #3a342e; margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.85rem; }
@media (max-width: 820px){ .foot-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- page header (subpages) ---------- */
.page-head { background: var(--ink); color: #fff; padding: 60px 0; border-bottom: 4px solid var(--gold); }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); color: #fff; }
.page-head .lead { color: #d9cfc0; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(120%);
  background: var(--ink); color: #fff; padding: 14px 22px; border-radius: 999px;
  font-weight: 700; box-shadow: var(--shadow-lg); z-index: 100; transition: transform .3s ease; border: 2px solid var(--gold);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- utility ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
@media (max-width: 820px){ .grid-2 { grid-template-columns: 1fr; } }
.mt-2 { margin-top: 2rem; } .mt-1 { margin-top: 1rem; }
.pill { display:inline-block; background: var(--gold); color: var(--ink); font-weight: 800; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 10px; border-radius: 999px; }
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.8rem; margin-top: 2rem; }
.prose h3 { margin-top: 1.4rem; }

/* ---------- war map ---------- */
.warmap-wrap {
  background: #0e0c0b; border: 2px solid var(--ink); border-radius: var(--radius-lg);
  padding: 14px; box-shadow: var(--shadow-lg);
  background-image: radial-gradient(900px 400px at 50% -10%, rgba(226,35,26,0.18), transparent 70%);
}
.warmap { height: clamp(320px, 52vw, 560px); width: 100%; }
.warmap-legend {
  display: flex; flex-wrap: wrap; gap: 18px; justify-content: center;
  padding: 16px 6px 4px; color: #cfc6b8; font-weight: 700; font-size: 0.9rem;
}
.warmap-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; margin-right: 7px; vertical-align: middle; border: 1px solid rgba(255,255,255,0.3); }
.jvm-tooltip {
  background: var(--ink) !important; border: 2px solid var(--gold) !important;
  font-family: var(--sans) !important; font-weight: 700 !important; border-radius: 8px !important;
  padding: 8px 12px !important;
}
.jvm-zoom-btn { background: var(--red) !important; border-radius: 6px !important; }

/* ---------- "do something now" alert ---------- */
.alert-now {
  margin-top: 28px; background: var(--red); color: #fff; border: 3px solid var(--ink);
  border-radius: var(--radius-lg); padding: 24px 28px; display: flex; align-items: center;
  justify-content: space-between; gap: 22px; flex-wrap: wrap; box-shadow: 7px 7px 0 var(--ink);
  animation: pulseAlert 2.4s ease-in-out infinite;
}
@keyframes pulseAlert {
  0%, 100% { box-shadow: 7px 7px 0 var(--ink); }
  50% { box-shadow: 7px 7px 0 var(--ink), 0 0 0 7px rgba(226,35,26,0.28); }
}
@media (prefers-reduced-motion: reduce) { .alert-now { animation: none; } }
.alert-kicker { font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 0.35rem; font-size: 1.1rem; }
.alert-text { margin: 0; font-weight: 600; max-width: 62ch; }
.alert-actions { display: flex; gap: 10px; flex-shrink: 0; }
@media (max-width: 700px) { .alert-now { flex-direction: column; align-items: flex-start; } .alert-actions { width: 100%; } .alert-actions .btn { flex: 1; justify-content: center; } }

/* ---------- battle cry / pull quote ---------- */
.warcry { text-align: center; padding: 10px 0; }
.warcry b {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2rem, 7vw, 4.5rem); letter-spacing: -0.02em; line-height: 1;
  color: #fff; display: inline-block;
}
.warcry .sub { color: #ffd9d6; font-weight: 700; max-width: 60ch; margin: 1rem auto 0; }
.warcry .disclaimer { color: rgba(255,255,255,0.7); font-size: 0.8rem; margin-top: 1rem; }

/* ---------- floating sign/share button ---------- */
.float-cta {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  display: flex; gap: 8px;
  transform: translateY(160%); opacity: 0; pointer-events: none;
  transition: transform .32s ease, opacity .32s ease;
}
.float-cta.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.float-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--sans); font-weight: 800; font-size: 0.95rem;
  padding: 0.72rem 1.15rem; border-radius: 999px; border: 2px solid var(--ink);
  cursor: pointer; text-decoration: none; box-shadow: 4px 4px 0 var(--ink);
  transition: transform .12s ease;
}
.float-btn:hover { transform: translateY(-2px); text-decoration: none; }
.float-sign { background: var(--red); color: #fff; }
.float-share { background: var(--gold); color: var(--ink); }
@media (max-width: 520px) {
  .float-cta { right: 10px; bottom: 10px; gap: 6px; }
  .float-btn { padding: 0.6rem 0.9rem; font-size: 0.88rem; }
}
