/* ==========================================================================
   Tips.beer — The Internet's Tipping Bar
   Craft beer x Web3. Flat, bold, warm. No 3D.
   ========================================================================== */

:root {
  --bg: #10110F;
  --surface: #1A1C18;
  --surface-2: #22251F;
  --line: #2C2F28;
  --primary: #E9A23B;
  --secondary: #F5D28A;
  --text: #F5F3EB;
  --muted: #92958C;
  --ok: #8FD694;
  --err: #FF7A6B;

  /* Network accent — overwritten by script.js in single mode */
  --net: #E9A23B;
  --net2: #F5D28A;

  --r: 14px;
  --r-sm: 10px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .9em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; white-space: nowrap;
  border: 1.5px solid var(--line); background: var(--surface);
  transition: background .15s, border-color .15s, transform .15s, color .15s;
}
.btn:hover { border-color: var(--primary); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn svg.fill, .soc svg { fill: currentColor; stroke: none; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--bg); }
.btn-primary:hover { background: var(--secondary); border-color: var(--secondary); }
.btn-ghost { background: transparent; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-danger:hover { border-color: var(--err); color: var(--err); }
.link { color: var(--primary); font-weight: 600; }
.link:hover { color: var(--secondary); }

.badge {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  border: 1px solid var(--line); color: var(--muted); vertical-align: middle;
}
.badge-demo { color: var(--secondary); border-color: rgba(245, 210, 138, .35); background: rgba(245, 210, 138, .07); }
.badge-sample { color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(16, 17, 15, .88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.hdr { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; }
.brand img { width: 38px; height: 38px; }
.brand em { font-style: normal; color: var(--primary); }
.nav { display: flex; gap: 4px; margin-right: auto; }
.nav a { padding: 8px 14px; border-radius: 999px; font-weight: 600; color: var(--muted); transition: color .15s, background .15s; }
.nav a:hover { color: var(--text); }
.nav a.on { color: var(--text); background: var(--surface); }
.hdr-r { display: flex; align-items: center; gap: 10px; }
.hdr-net { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 6px; border-radius: 999px; border: 1px solid var(--line); font-size: .82rem; font-weight: 600; color: var(--muted); }
.btn-wallet.on { border-color: var(--net); }
.burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); position: relative; }
.burger i { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger i:nth-child(1) { top: 14px; } .burger i:nth-child(2) { top: 20px; } .burger i:nth-child(3) { top: 26px; }
.nav-open .burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .burger i:nth-child(2) { opacity: 0; }
.nav-open .burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.net-ic { width: 20px; height: 20px; border-radius: 50%; flex: none; }
.net-ic.sm { width: 16px; height: 16px; }
.net-ic.lg { width: 30px; height: 30px; }
.net-ic.xl { width: 40px; height: 40px; }
.ic-stack { display: inline-flex; }
.ic-stack .net-ic + .net-ic { margin-left: -6px; box-shadow: 0 0 0 2px var(--surface); }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 24px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-title { font-size: clamp(2.8rem, 7vw, 5.6rem); text-transform: uppercase; letter-spacing: -.035em; line-height: .95; margin: 18px 0 20px; }
.hero-title .hl { color: var(--primary); }
.hero-text { font-size: 1.15rem; color: var(--muted); max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 34px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; margin: 0; }
.hero-stats div { min-width: 110px; }
.hero-stats dt { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.hero-stats dd { margin: 0; font-family: var(--display); font-weight: 800; font-size: 1.6rem; }
.net-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 6px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font-size: .85rem; font-weight: 600;
}
.net-pill b { color: var(--net); }
.hero-art { position: relative; }
.pint { width: 100%; max-width: 440px; margin-inline: auto; }
.pint .halo { fill: var(--surface); stroke: var(--line); stroke-width: 2; }
[data-mode="single"] .pint .halo { stroke: var(--net); stroke-opacity: .4; }
.coin-drop { animation: drop 3.6s ease-in-out infinite; transform-origin: 300px 78px; }
.bubbles circle { animation: rise 3s linear infinite; }
.bubbles circle:nth-child(2) { animation-delay: .6s; } .bubbles circle:nth-child(3) { animation-delay: 1.2s; }
.bubbles circle:nth-child(4) { animation-delay: 1.8s; } .bubbles circle:nth-child(5) { animation-delay: 2.4s; }
@keyframes drop { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(14px) rotate(8deg); } }
@keyframes rise { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: .9; } 100% { transform: translateY(-80px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .coin-drop, .bubbles circle { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Contract address box ---------- */
.ca-box { margin-top: 40px; display: grid; gap: 10px; }
.ca-box.compact { margin-top: 18px; }
.ca-row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  padding: 14px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--c, var(--net));
}
.ca-nets { display: flex; align-items: center; gap: 10px; min-width: 150px; }
.ca-lbl { display: flex; flex-direction: column; line-height: 1.2; font-weight: 700; font-size: .9rem; }
.ca-lbl small { color: var(--muted); font-weight: 500; font-size: .76rem; }
.ca-addr { font-family: var(--mono); font-size: .92rem; word-break: break-all; color: var(--secondary); }
.ca-row.pending .ca-addr { color: var(--muted); font-family: var(--font); word-break: normal; }
.ca-act { display: flex; align-items: center; gap: 6px; }
.btn-copy { height: 38px; }
.btn-ic { display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.btn-ic:hover { border-color: var(--primary); color: var(--text); }
.btn-ic svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.compact .ca-row { grid-template-columns: 1fr; gap: 10px; }

/* ---------- Sections & cards ---------- */
.section { padding: 56px 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.sec-head h2 { margin-bottom: .2em; }
.sec-head p { margin: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.card-head h2 { margin: 0; font-size: 1.6rem; }

/* ---------- Quick Tip ---------- */
.tip-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; align-items: start; }
.tip-side { display: grid; gap: 24px; }
.field { margin-bottom: 20px; }
.field > label { display: flex; justify-content: space-between; font-weight: 700; font-size: .9rem; margin-bottom: 8px; }
input[type="text"], input[type="number"], input[type="search"], textarea {
  width: 100%; padding: 13px 14px; border-radius: var(--r-sm);
  background: var(--bg); border: 1.5px solid var(--line); outline: none;
  transition: border-color .15s;
}
input:focus, textarea:focus { border-color: var(--primary); }
input.bad, textarea.bad { border-color: var(--err); }
input.good { border-color: var(--ok); }
textarea { resize: vertical; min-height: 84px; }
#tip-to { font-family: var(--mono); font-size: .9rem; }
.hint { display: block; min-height: 1.2em; margin-top: 6px; font-size: .8rem; color: var(--muted); }
.hint.bad { color: var(--err); } .hint.good { color: var(--ok); }

.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 10px; }
.amt {
  height: 64px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1;
  transition: border-color .15s, background .15s, transform .15s;
}
.amt b { font-family: var(--display); font-size: 1.35rem; }
.amt small { font-size: .7rem; color: var(--muted); font-weight: 600; }
.amt:hover { border-color: var(--primary); transform: translateY(-1px); }
.amt.on { background: var(--primary); border-color: var(--primary); color: var(--bg); }
.amt.on small { color: rgba(16, 17, 15, .7); }
.input-amount { position: relative; }
.input-amount input { padding-right: 80px; }
.input-amount .unit { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--muted); font-size: .85rem; }

.net-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.net-tab {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 8px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--bg); font-weight: 600; font-size: .88rem;
}
.net-tab:hover { border-color: var(--c); }
.net-tab.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, var(--bg)); }
.net-tab.fixed { cursor: default; }

.ideas { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ideas button { font-size: .78rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.ideas button:hover { color: var(--text); border-color: var(--primary); }

.tip-sum { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--bg); margin-bottom: 16px; font-size: .9rem; color: var(--muted); }
.tip-sum b { color: var(--text); font-family: var(--display); font-size: 1.25rem; }

.wallet-card h3 { margin-bottom: 6px; }
.wallet-card .w-row { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.wallet-card .w-row span:first-child { color: var(--muted); }
.wallet-card .btn { margin-top: 14px; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; }
.steps li::before { content: counter(s); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 800; color: var(--primary); }
.steps span { color: var(--muted); font-size: .88rem; }

/* ---------- Community ---------- */
.search { max-width: 280px; }
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.person { display: flex; flex-direction: column; gap: 12px; transition: border-color .15s, transform .15s; }
.person:hover { border-color: rgba(233, 162, 59, .5); transform: translateY(-2px); }
.person-top { display: flex; align-items: center; gap: 12px; }
.person-top b { display: block; line-height: 1.2; }
.person-top small { color: var(--muted); }
.person p { color: var(--muted); font-size: .88rem; margin: 0; flex: 1; }
.person-meta { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.person-meta b { font-family: var(--display); font-size: 1.15rem; color: var(--secondary); }
.role { display: inline-block; font-size: .72rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .05em; }
.empty { color: var(--muted); padding: 24px 0; }

.ava { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.ava.sm { width: 34px; height: 34px; }

/* ---------- Leaderboard ---------- */
.board-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); margin-bottom: 16px; }
.seg button { padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: .88rem; color: var(--muted); transition: background .15s, color .15s; }
.seg button.on { background: var(--primary); color: var(--bg); }
.lb { list-style: none; margin: 0; padding: 0; }
.lb li { display: grid; grid-template-columns: 34px auto 1fr auto; align-items: center; gap: 12px; padding: 10px 6px; border-top: 1px solid var(--line); }
.lb li:first-child { border-top: 0; }
.lb .rank { font-family: var(--display); font-weight: 800; font-size: 1.05rem; color: var(--muted); text-align: center; }
.lb li:nth-child(1) .rank { color: var(--primary); }
.lb li:nth-child(2) .rank, .lb li:nth-child(3) .rank { color: var(--secondary); }
.lb .who b { display: block; line-height: 1.2; }
.lb .who small { color: var(--muted); font-size: .8rem; }
.lb .amt-v { font-family: var(--display); font-weight: 800; }
.lb .amt-v small { font-family: var(--font); font-weight: 600; color: var(--muted); font-size: .75rem; margin-left: 4px; }

/* ---------- Activity feed ---------- */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.feed li:first-child { border-top: 0; }
.feed .line { font-size: .92rem; }
.feed .line b { font-weight: 700; }
.feed .line .pill { display: inline-block; margin: 0 2px; padding: 0 8px; border-radius: 999px; background: rgba(233, 162, 59, .14); color: var(--primary); font-weight: 800; font-size: .85rem; }
.feed .note { color: var(--muted); font-size: .86rem; margin-top: 2px; }
.feed time { color: var(--muted); font-size: .76rem; }

/* ---------- About ---------- */
.about { border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.lead { font-size: 1.12rem; color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; color: var(--muted); }
.ticks li b { color: var(--text); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--primary); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5 9-10' fill='none' stroke='black' stroke-width='3'/%3E%3C/svg%3E") center/70% no-repeat, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.about-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.nets-row { display: flex; flex-wrap: wrap; gap: 8px; }
.token-card h3 { font-size: 1.4rem; }

.soc { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; }
.soc svg { width: 16px; height: 16px; }
.soc:hover { border-color: var(--primary); }
.soc.mini { height: 38px; width: 38px; padding: 0; justify-content: center; }
.soc.mini span { display: none; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 32px; margin-top: 24px; }
.ftr { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start; }
.ftr .tagline { font-family: var(--display); font-weight: 800; font-size: 1.4rem; margin: 14px 0 4px; }
.ftr-links { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: flex-end; }
.ftr-links a { color: var(--muted); font-weight: 600; }
.ftr-links a:hover { color: var(--primary); }
.ftr-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; opacity: 0; transition: opacity .15s; }
.modal.in { opacity: 1; }
.modal-bg { position: absolute; inset: 0; background: rgba(8, 9, 7, .75); }
.modal-box { position: relative; width: min(440px, 100%); max-height: 90vh; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px; transform: translateY(8px); transition: transform .15s; }
.modal.in .modal-box { transform: none; }
.modal-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.modal-x:hover { color: var(--text); background: var(--bg); }
.modal-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.m-head h3 { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; margin-bottom: 6px; }
.m-head p { color: var(--muted); font-size: .9rem; }
.m-list { display: grid; gap: 8px; }
.m-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); text-align: left; transition: border-color .15s; }
.m-item:hover { border-color: var(--c, var(--primary)); }
.m-item span { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.m-item small { color: var(--muted); font-size: .8rem; }
.m-item.off { opacity: .7; }
.m-item.busy { opacity: .6; pointer-events: none; }
.m-item svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.m-err { color: var(--err); font-size: .85rem; min-height: 1.2em; margin: 10px 0 0; }
.m-dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 18px 0; }
.m-dl dt { color: var(--muted); }
.m-dl dd { margin: 0; text-align: right; font-weight: 600; word-break: break-all; }
.m-row { display: flex; flex-wrap: wrap; gap: 8px; }
.link-back { margin-top: 14px; color: var(--muted); font-weight: 600; font-size: .9rem; }
.link-back:hover { color: var(--text); }
.notice { padding: 14px 16px; border-radius: 12px; background: rgba(245, 210, 138, .08); border: 1px solid rgba(245, 210, 138, .3); color: var(--secondary); font-size: .9rem; margin-top: 16px; }

/* ---------- Toasts ---------- */
#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); }
.toast { padding: 12px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); border-left: 4px solid var(--muted); font-weight: 600; font-size: .92rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); animation: tin .2s ease-out; transition: opacity .3s, transform .3s; }
.toast.ok { border-left-color: var(--ok); }
.toast.err { border-left-color: var(--err); }
.toast.info { border-left-color: var(--primary); }
.toast.out { opacity: 0; transform: translateY(6px); }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Docs ---------- */
.docs { display: grid; grid-template-columns: 220px 1fr; gap: 48px; padding: 48px 0; align-items: start; }
.docs-nav { position: sticky; top: 92px; display: grid; gap: 2px; }
.docs-nav-t { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 8px 12px; }
.docs-nav button { text-align: left; padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; }
.docs-nav button:hover { color: var(--text); }
.docs-nav button.on { color: var(--text); background: var(--surface); box-shadow: inset 3px 0 0 var(--primary); }
.docs-body { max-width: 760px; min-width: 0; }
.docs-body section { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.docs-body section:last-child { border-bottom: 0; }
.docs-body h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.docs-body p, .docs-body li { color: #D6D4CC; }
.docs-body a:not(.btn):not(.btn-ic):not(.soc) { color: var(--primary); font-weight: 600; }
.docs-body ul, .docs-body ol { padding-left: 22px; }
.docs-body li { margin-bottom: 6px; }
.eyebrow { display: inline-block; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; margin-bottom: 10px; }
.callout { padding: 16px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--primary); color: var(--text); }
.doc-steps li { margin-bottom: 10px; }
.doc-nets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.doc-net { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--c); }
.doc-net b { display: block; }
.doc-net small { color: var(--muted); display: block; font-size: .82rem; }
.brand-kit { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; }
.bk-item { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 12px; padding: 20px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.bk-item.wide { flex: 1; min-width: 260px; }
.bk-item.wide img { width: auto; max-width: 100%; }
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.swatches span { display: flex; flex-direction: column; padding: 56px 12px 10px; border-radius: 12px; border: 1px solid var(--line); font-weight: 700; font-size: .85rem; background: linear-gradient(var(--c) 0 48px, var(--surface) 48px); }
.swatches code { color: var(--muted); font-weight: 500; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-bottom: 8px; }
.faq summary { cursor: pointer; padding: 14px 16px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 16px 14px; margin: 0; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .people { grid-template-columns: repeat(3, 1fr); }
  .hdr-net { display: none; }
}
@media (max-width: 900px) {
  .hero-grid, .tip-grid, .board-grid, .about-grid, .ftr { grid-template-columns: 1fr; }
  .hero-art { max-width: 360px; margin: 0 auto; order: -1; }
  .people { grid-template-columns: repeat(2, 1fr); }
  .ftr-links { justify-content: flex-start; }
  .docs { grid-template-columns: 1fr; gap: 16px; padding-top: 24px; }
  .docs-nav { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 8px; scrollbar-width: none; }
  .docs-nav-t { display: none; }
  .docs-nav button { white-space: nowrap; background: var(--surface); }
  .burger { display: block; }
  .nav {
    position: fixed; top: 68px; left: 0; right: 0; flex-direction: column; gap: 4px; margin: 0;
    padding: 12px 20px 20px; background: var(--bg); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s;
  }
  .nav a { padding: 12px 14px; font-size: 1.05rem; }
  .nav-open .nav { transform: none; opacity: 1; pointer-events: auto; }
  .hdr { gap: 12px; }
  .brand { margin-right: auto; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 28px); }
  .hero { padding-top: 28px; }
  .section { padding: 40px 0; }
  .card { padding: 18px; }
  .amounts { grid-template-columns: repeat(2, 1fr); }
  .people { grid-template-columns: 1fr; }
  .search { max-width: none; }
  .ca-row { grid-template-columns: 1fr; gap: 10px; }
  .ca-act { flex-wrap: wrap; }
  .btn-wallet span { display: none; }
  .btn-wallet { width: 42px; padding: 0; }
  .btn-wallet.on span { display: inline; }
  .btn-wallet.on { width: auto; padding: 0 12px; }
  .hdr-soc { display: none; }
  .doc-nets, .swatches { grid-template-columns: 1fr 1fr; }
  .lb li { grid-template-columns: 26px auto 1fr auto; gap: 10px; }
  .brand { font-size: 1.1rem; }
  .brand img { width: 34px; height: 34px; }
}
