/* Tip Jar Sites hub — styles. */
:root {
  --paper: #fbf6ec;
  --paper-2: #fffdf8;
  --ink: #1c1917;
  --muted: #5b5550;
  --tomato: #e5482d;
  --tomato-dark: #c4361e;
  --gold: #f2b632;
  --mint: #8fd3a8;
  --line: rgba(28, 25, 23, .16);
  --radius: 16px;
  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, Consolas, monospace;

  --core-accent: var(--tomato);
  --core-accent-ink: #fff;
  --core-ink: var(--ink);
  --core-surface: var(--paper-2);
  --core-line: var(--line);
  --core-radius: var(--radius);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1.0625rem/1.6 var(--body); color: var(--ink); background: var(--paper); overflow-x: clip; }
h1, h2, h3 { font-family: var(--display); line-height: 1.04; margin: 0; text-wrap: balance; letter-spacing: -.02em; }
h1 { font-size: clamp(2.6rem, 8.6vw, 4.9rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 5.4vw, 3.3rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 600; line-height: 1.2; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
img { max-width: 100%; display: block; }
code { font-family: var(--mono); font-size: .9em; }
:focus-visible { outline: 3px solid var(--tomato); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.wrap.narrow { width: min(780px, 100% - 2.5rem); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; font-weight: 700; }
.skip:focus { left: .5rem; top: .5rem; }
.setup { padding: .6rem 1rem; background: var(--gold); color: var(--ink); text-align: center; font-size: .9375rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 50px; padding: .7rem 1.4rem; border: 2px solid var(--ink); border-radius: 12px;
  font: 700 1rem/1.1 var(--body); text-decoration: none; cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink); transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-tomato { background: var(--tomato-dark); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 4px 4px 0 var(--gold); }
.btn-ink:hover { box-shadow: 6px 6px 0 var(--gold); }
.btn-line { background: var(--paper-2); color: var(--ink); }
.btn-gold { background: var(--gold); color: var(--ink); border-color: var(--gold); box-shadow: 4px 4px 0 rgba(255, 255, 255, .25); }
.btn-gold:hover { box-shadow: 6px 6px 0 rgba(255, 255, 255, .25); }
.btn-line-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); box-shadow: none; }
.btn-line-light:hover { box-shadow: none; background: rgba(255, 255, 255, .08); }
.btn-sm { min-height: 44px; padding: .5rem 1rem; font-size: .9375rem; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 246, 236, .94); backdrop-filter: blur(8px); border-bottom: 2px solid var(--ink); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font: 800 1.3rem/1 var(--display); letter-spacing: -.02em; text-decoration: none; }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav { display: none; gap: 1.6rem; font-weight: 600; font-size: .9375rem; }
.nav a { text-decoration: none; padding: .75rem 0; }
.nav a:hover { text-decoration: underline; text-decoration-color: var(--tomato); text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* ---------- hero ---------- */
.hero { padding: 3rem 0 3.5rem; }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
.eyebrow, .kicker { font: 500 .8125rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--tomato-dark); margin-bottom: .9rem; }
.hl { background: linear-gradient(transparent 58%, var(--gold) 58%, var(--gold) 92%, transparent 92%); padding: 0 .08em; }
.lede { font-size: 1.2rem; max-width: 33em; margin-top: 1.2rem; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.7rem; }
.status { display: inline-flex; align-items: center; gap: .55rem; margin-top: 1.5rem; padding: .4rem .9rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper-2); font: 500 .8125rem/1.3 var(--mono); }
.status::before { content: ""; width: 10px; height: 10px; flex: none; border-radius: 50%; background: #1f9d55; box-shadow: 0 0 0 3px rgba(31, 157, 85, .22); }
.status.is-full::before { background: var(--tomato); box-shadow: 0 0 0 3px rgba(229, 72, 45, .22); }
.status + .hero-note { margin-top: .8rem; }
.hero-note { margin-top: 1.3rem; font: 400 .875rem/1.5 var(--mono); color: var(--muted); }

.receipt-wrap { display: grid; place-items: center; padding: 0 .5rem; }
.receipt {
  position: relative; width: min(100%, 370px); padding: 1.7rem 1.4rem 2.2rem;
  background: #fff; color: var(--ink); font: 400 .9375rem/1.5 var(--mono);
  transform: rotate(2.5deg); filter: drop-shadow(8px 10px 0 rgba(28, 25, 23, .14));
  --tooth: 12px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--tooth) 51% repeat-x,
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth) / 2) no-repeat;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--tooth) 51% repeat-x,
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth) / 2) no-repeat;
}
.receipt-head { text-align: center; font: 800 1.5rem/1.1 var(--display); letter-spacing: -.01em; }
.receipt-sub { text-align: center; font-size: .75rem; color: var(--muted); margin: .3rem 0 1rem; padding-bottom: 1rem; border-bottom: 2px dashed var(--line); }
.receipt-lines li, .receipt-total, .receipt-tip { display: flex; align-items: baseline; gap: .5rem; padding: .22rem 0; }
.receipt-lines .dots { flex: 1; border-bottom: 2px dotted var(--line); transform: translateY(-.25em); }
.receipt-total { justify-content: space-between; margin-top: .8rem; padding-top: .8rem; border-top: 2px dashed var(--line); font-size: 1.35rem; font-weight: 500; }
.receipt-tip { justify-content: space-between; align-items: center; }
.receipt-blank { padding: .1rem .8rem; border-bottom: 2px solid var(--ink); font-family: var(--display); font-weight: 600; color: var(--tomato-dark); transform: rotate(-3deg); }
.receipt-foot { margin-top: 1.2rem; text-align: center; font-size: .6875rem; letter-spacing: .08em; color: var(--muted); }

/* ---------- trades strip ---------- */
.strip { overflow: hidden; background: var(--ink); color: var(--paper); border-block: 2px solid var(--ink); padding: .8rem 0; }
.strip-track { display: flex; width: max-content; animation: slide 60s linear infinite; }
.strip-track span { display: inline-flex; align-items: center; gap: 1.4rem; padding-left: 1.4rem; font: 600 1.05rem/1 var(--display); white-space: nowrap; }
.strip-track span::after { content: "✦"; color: var(--gold); font-size: .8rem; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 4.2rem 0; }
.section-paper { background: var(--paper-2); border-block: 2px solid var(--ink); }
.section-ink { background: var(--ink); color: var(--paper); }
.section-gold { background: var(--gold); border-block: 2px solid var(--ink); }
.section-head { max-width: 42rem; margin-bottom: 2.4rem; }
.section-head p:last-child:not(.kicker) { margin-top: .9rem; font-size: 1.1rem; color: var(--muted); }
.section-ink .section-head p:last-child:not(.kicker), .section-ink .lede { color: rgba(251, 246, 236, .82); }
.section-gold .section-head p:last-child:not(.kicker) { color: #3d3323; }
.section-ink .kicker { color: var(--gold); }
.section-gold .kicker { color: var(--ink); }

/* ---------- demos ---------- */
.demo-grid { display: grid; gap: 1.6rem; }
.demo { display: flex; flex-direction: column; background: var(--paper-2); border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: 6px 6px 0 var(--ink); }
.demo-shot { display: block; text-decoration: none; border-bottom: 2px solid var(--ink); background: var(--frame, var(--ink)); }
.demo-bar { display: flex; align-items: center; gap: .35rem; padding: .5rem .7rem; background: var(--ink); }
.demo-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--tomato); }
.demo-bar i:nth-child(2) { background: var(--gold); }
.demo-bar i:nth-child(3) { background: var(--mint); }
.demo-bar b { margin-left: .5rem; padding: .15rem .7rem; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; font: 400 .6875rem/1.4 var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-view { display: block; aspect-ratio: 16 / 11; overflow: hidden; }
.demo-view img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: object-position 7s ease-in-out; }
.demo:hover .demo-view img, .demo:focus-within .demo-view img { object-position: bottom; }
.demo-body { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; flex: 1; padding: 1.3rem; }
.demo-trade { font: 500 .75rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--tomato-dark); }
.demo-line { font: 600 1.05rem/1.35 var(--display); }
.demo-feature { color: var(--muted); font-size: .9375rem; margin-bottom: .6rem; }
.demo .btn { margin-top: auto; }

.other { margin-top: 3rem; padding: 1.6rem; border: 2px dashed var(--ink); border-radius: var(--radius); }
.other p { color: var(--muted); margin: .3rem 0 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { padding: .3rem .85rem; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper-2); font-size: .9375rem; font-weight: 500; }

/* ---------- reach ---------- */
.reach-grid { display: grid; gap: 1.2rem; }
.reach-stat { padding: 1.5rem; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 6px 6px 0 var(--ink); }
.reach-stat strong { display: block; font: 800 clamp(3.4rem, 9vw, 5rem)/1 var(--display); letter-spacing: -.04em; color: var(--tomato-dark); }
.reach-stat span { display: block; margin-top: .5rem; font: 600 1.15rem/1.3 var(--display); }
.reach-copy { max-width: 46rem; margin-top: 2.4rem; display: grid; gap: 1rem; font-size: 1.1rem; }
.reach-source { font: 400 .8125rem/1.5 var(--mono); color: var(--muted); }
.reach-source a { text-underline-offset: 3px; }
@media (min-width: 640px) { .reach-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- features ---------- */
.feature-grid { display: grid; gap: 1px; background: rgba(251, 246, 236, .22); border: 1px solid rgba(251, 246, 236, .22); border-radius: var(--radius); overflow: hidden; }
.feature { padding: 1.6rem; background: var(--ink); }
.feature h3 { color: var(--gold); margin-bottom: .5rem; }
.feature p { color: rgba(251, 246, 236, .82); }

/* ---------- steps ---------- */
.step-list { display: grid; gap: 1.2rem; max-width: 780px; }
.step-item { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start; padding: 1.3rem; background: var(--paper-2); border: 2px solid var(--ink); border-radius: var(--radius); }
.step-num { display: grid; place-items: center; width: 3rem; height: 3rem; border: 2px solid var(--ink); border-radius: 50%; background: var(--gold); font: 800 1.4rem/1 var(--display); }
.step-item p { color: var(--muted); margin-top: .25rem; }
.step-item:nth-child(even) { margin-left: clamp(0rem, 4vw, 3rem); }

/* ---------- catch ---------- */
.catch-grid { display: grid; gap: 1.2rem; }
.catch { padding: 1.6rem; background: var(--paper-2); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 6px 6px 0 var(--ink); }
.catch h3 { margin-bottom: .5rem; }
.catch p { color: var(--muted); }

/* ---------- tips ---------- */
.tip-grid { display: grid; gap: 2rem; align-items: center; justify-items: start; }
.jar { width: min(200px, 55%); height: auto; }

.wallets { display: grid; gap: 1.2rem; margin-top: 1.6rem; max-width: 560px; }
.wallet { display: grid; gap: 1.1rem; justify-items: start; padding: 1.2rem; background: var(--paper-2); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 6px 6px 0 var(--ink); }
.wallet-qr { width: 132px; height: 132px; background: #fff; border: 2px solid var(--ink); border-radius: 8px; }
.wallet-body { min-width: 0; }
.wallet-label { font: 500 .75rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--tomato-dark); }
.wallet-addr { margin: .4rem 0 .9rem; font: 500 .9375rem/1.5 var(--mono); overflow-wrap: anywhere; user-select: all; }
.wallet-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.wallet-warn { margin-top: .9rem; font-size: .8125rem; color: var(--muted); }
@media (min-width: 560px) { .wallet:has(.wallet-qr) { grid-template-columns: auto 1fr; align-items: center; } }

.tip-other { margin-top: 1.4rem; max-width: 560px; font-size: 1rem; color: var(--muted); }
.tip-other a { color: var(--tomato-dark); font-weight: 700; text-underline-offset: 3px; }

/* ---------- faq ---------- */
.faq-list details { border-bottom: 2px solid var(--ink); }
.faq-list details:first-child { border-top: 2px solid var(--ink); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 60px; padding: 1.1rem 0; cursor: pointer; list-style: none; font: 600 1.25rem/1.25 var(--display); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border: 2px solid var(--ink); border-radius: 50%; background: var(--gold); font: 500 1.3rem/1 var(--mono); transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); background: var(--tomato-dark); color: #fff; }
.faq-list details p { padding: 0 3rem 1.3rem 0; color: var(--muted); }

/* ---------- claim form ---------- */
.claim-grid { display: grid; gap: 2.5rem; align-items: start; }
.claim-card { padding: 1.4rem; background: var(--paper); color: var(--ink); border-radius: var(--radius); box-shadow: 8px 8px 0 var(--gold); }
.claim-form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; font-size: .9375rem; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .7rem .9rem; border: 2px solid var(--ink); border-radius: 10px;
  background: #fff; color: var(--ink); font: 400 1rem/1.4 var(--body);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: 4px 4px 0 var(--gold); }
.field ::placeholder { color: #7d756e; }
.opt { font: 400 .75rem/1 var(--mono); color: var(--muted); margin-left: .3rem; }
.tick { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; font-size: .9375rem; font-weight: 500; cursor: pointer; }
.tick input { width: 24px; height: 24px; margin: .05rem 0 0; accent-color: var(--tomato-dark); cursor: pointer; }
.disclaimer { margin-top: 1.2rem; padding-top: 1rem; border-top: 2px dashed var(--line); font-size: .8125rem; line-height: 1.55; color: var(--muted); }
.fit { display: grid; gap: 1.6rem; margin-top: 2rem; }
.fit h3 { font-size: 1.05rem; color: var(--gold); margin-bottom: .6rem; }
.fit-list li { position: relative; padding: .3rem 0 .3rem 1.7rem; font-size: .9375rem; line-height: 1.45; color: rgba(251, 246, 236, .88); }
.fit-list li::before { position: absolute; left: 0; top: .3rem; font-weight: 700; }
.fit-yes li::before { content: "✓"; color: var(--mint); }
.fit-no li::before { content: "✕"; color: #ff8a73; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- footer ---------- */
.site-footer { padding: 2rem 0 2.4rem; border-top: 2px solid var(--ink); font-size: .9375rem; }
.footer-row { display: grid; gap: .5rem; }
.footer-meta { font-size: .8125rem; color: var(--muted); max-width: 46rem; }

/* ---------- larger screens ---------- */
@media (min-width: 640px) {
  .demo-grid, .feature-grid, .catch-grid { grid-template-columns: repeat(2, 1fr); }
  .claim-form { grid-template-columns: repeat(2, 1fr); }
  .field-wide { grid-column: 1 / -1; }
  .claim-card { padding: 2rem; }
  .tip-grid { grid-template-columns: auto 1fr; gap: 3rem; }
  .jar { width: 200px; }
}
@media (min-width: 940px) {
  .nav { display: flex; }
  .hero { padding: 5rem 0 5.5rem; }
  .hero-grid { grid-template-columns: 1.25fr .75fr; gap: 3rem; }
  .section { padding: 6rem 0; }
  .demo-grid { grid-template-columns: repeat(6, 1fr); }
  .demo { grid-column: span 2; }
  .demo:nth-child(4) { grid-column: 2 / span 2; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .fit { grid-template-columns: 1fr 1fr; }
  .claim-grid { grid-template-columns: 1fr 1.1fr; gap: 4rem; }
  #how .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: start; }
  #how .section-head { position: sticky; top: 110px; margin-bottom: 0; }
  .jar { width: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .strip-track { animation: none; }
  .btn, .demo-view img, .faq-list summary::after { transition: none; }
  .btn:hover { transform: none; }
}
