/* ============================================
   Cannapaid.com — Neo-Brutalist Design System
   Cannabis-Payment · flat, bold, high-contrast
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800;900&family=Space+Mono:wght@400;700&display=swap');

:root {
  --paper:    #f3efe2;
  --paper-2:  #eae4d2;
  --ink:      #0e0e0c;
  --ink-soft: #44443a;
  --green:    #0fc95e;
  --green-dk: #0a7c3a;
  --lime:     #d6f24b;
  --coral:    #ff5a36;
  --white:    #ffffff;

  --line: var(--ink);
  --shadow-col: var(--ink);
  --bd: 3px solid var(--line);
  --bd-thick: 4px solid var(--line);
  --sh-sm: 3px 3px 0 var(--shadow-col);
  --sh: 6px 6px 0 var(--shadow-col);
  --sh-lg: 10px 10px 0 var(--shadow-col);

  --ff: 'Archivo', system-ui, sans-serif;
  --ff-mono: 'Space Mono', monospace;
  --max-w: 1200px;
  --t: .14s cubic-bezier(.2,.7,.3,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--ff);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--ink); text-decoration: none; }
img, svg { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
::selection { background: var(--green); color: var(--ink); }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 880px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 { font-weight: 900; line-height: 1.02; letter-spacing: -.025em; color: var(--ink); }
h1 { font-size: clamp(2.7rem, 6.4vw, 5.4rem); text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); text-transform: uppercase; }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
h4 { font-size: 1.12rem; font-weight: 800; }
p { margin-bottom: 1em; }

.lead { font-size: clamp(1.05rem, 1.5vw, 1.3rem); font-weight: 500; line-height: 1.5; max-width: 640px; }
.text-mono { font-family: var(--ff-mono); }
.text-center { text-align: center; }

/* word highlight — replaces old gradient-text */
.gradient-text, .mark {
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green);
  color: var(--ink);
  padding: 0 .08em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.mark-lime { background: var(--lime); box-shadow: 0 0 0 3px var(--lime); }
.mark-coral { background: var(--coral); box-shadow: 0 0 0 3px var(--coral); color: var(--white); }

/* ---------- Sticker / overline ---------- */
.overline, .badge, .badge-partner, .badge-blue {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--ff-mono); font-weight: 700;
  font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  background: var(--ink); color: var(--paper);
  padding: 6px 12px; border: var(--bd);
}
.badge-partner { background: var(--lime); color: var(--ink); }
.badge-blue { background: var(--green); color: var(--ink); }
.badge { background: var(--green); color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--ff); font-weight: 800; font-size: .92rem;
  text-transform: uppercase; letter-spacing: .01em;
  padding: 15px 28px; border: var(--bd-thick);
  background: var(--white); color: var(--ink);
  box-shadow: var(--sh); cursor: pointer;
  transition: transform var(--t), box-shadow var(--t);
}
.btn:hover, .btn:focus-visible { transform: translate(3px,3px); box-shadow: 3px 3px 0 var(--shadow-col); color: var(--ink); }
.btn:active { transform: translate(6px,6px); box-shadow: none; }
.btn-primary { background: var(--green); }
.btn-outline { background: var(--paper); }
.btn-lg { padding: 19px 38px; font-size: 1.05rem; }
.btn-sm { padding: 10px 18px; font-size: .8rem; box-shadow: var(--sh-sm); }
.btn-sm:hover { box-shadow: 2px 2px 0 var(--shadow-col); }

/* ---------- Navigation ---------- */
.nav { position: sticky; top: 0; z-index: 1000; background: var(--paper); border-bottom: var(--bd-thick); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: var(--max-w); margin: 0 auto; height: 78px; padding: 0 24px; }
.nav-logo { display: flex; align-items: center; gap: 11px; font-weight: 900; font-size: 1.42rem; text-transform: lowercase; letter-spacing: -.04em; }
.nav-logo img { width: 40px; height: 40px; }
.lg-canna { color: var(--ink); }
.lg-paid { background: var(--green); box-shadow: 0 0 0 3px var(--green); color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links > a {
  font-family: var(--ff-mono); font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .02em;
  padding: 9px 12px; color: var(--ink); border: 3px solid transparent;
}
.nav-links > a:hover { border-color: var(--ink); }
.nav-links > a.active { background: var(--ink); color: var(--paper); }
.nav-cta { margin-left: 8px; }
.lang-switch { display: flex; margin-left: 8px; border: var(--bd); }
.lang-switch a { font-family: var(--ff-mono); font-weight: 700; font-size: .76rem; padding: 6px 10px; color: var(--ink); }
.lang-switch a + a { border-left: var(--bd); }
.lang-switch a.active { background: var(--ink); color: var(--paper); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 48px; height: 48px; align-items: center; justify-content: center; background: var(--green); border: var(--bd); cursor: pointer; box-shadow: var(--sh-sm); }
.nav-toggle span { display: block; width: 24px; height: 3px; background: var(--ink); transition: all .2s; }

@media (max-width: 1080px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 78px 0 0 0; flex-direction: column; align-items: stretch;
    background: var(--paper); border-top: var(--bd-thick);
    padding: 22px; gap: 8px; overflow-y: auto;
    transform: translateX(100%); transition: transform .25s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links > a { font-size: 1rem; padding: 14px 14px; border: var(--bd); }
  .nav-cta { margin-left: 0; }
  .lang-switch { margin-left: 0; width: max-content; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 80px 0 70px; background: var(--paper); border-bottom: var(--bd-thick); }
.hero-grid { max-width: var(--max-w); }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-mono); font-weight: 700; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .08em;
  background: var(--ink); color: var(--lime);
  padding: 8px 14px; margin-bottom: 26px;
}
.hero-tag .dot { width: 9px; height: 9px; background: var(--lime); border-radius: 50%; }
.hero h1 { max-width: 14ch; margin-bottom: 22px; }
.hero-desc { font-size: clamp(1.05rem, 1.6vw, 1.32rem); font-weight: 500; max-width: 600px; margin-bottom: 32px; line-height: 1.5; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 0; margin-top: 50px; border: var(--bd-thick); box-shadow: var(--sh); background: var(--white); }
.hero-stat { flex: 1; min-width: 150px; padding: 22px 24px; border-right: var(--bd); }
.hero-stat:last-child { border-right: none; }
.hero-stat .num { font-family: var(--ff-mono); font-weight: 700; font-size: 2rem; line-height: 1; }
.hero-stat .label { font-size: .82rem; font-weight: 600; margin-top: 8px; color: var(--ink-soft); }
@media (max-width: 620px) {
  .hero-stat { flex: 1 1 50%; border-bottom: var(--bd); }
  .hero-stat:nth-child(2n) { border-right: none; }
}

/* transaction ticket motif */
.ticket { background: var(--white); border: var(--bd-thick); box-shadow: var(--sh-lg); padding: 26px; }
.ticket-head { display: flex; justify-content: space-between; font-family: var(--ff-mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; padding-bottom: 14px; border-bottom: 3px dashed var(--ink); }
.txn-row { display: flex; justify-content: space-between; align-items: center; font-family: var(--ff-mono); font-size: .9rem; padding: 13px 0; border-bottom: 3px dashed #c9c3ad; }
.txn-row:last-child { border-bottom: none; }
.txn-row .ok { background: var(--green); padding: 2px 9px; border: var(--bd); font-weight: 700; }
.txn-row .fail { background: var(--coral); color: var(--white); padding: 2px 9px; border: var(--bd); font-weight: 700; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-sm { padding: 56px 0; }
.section-alt { background: var(--paper-2); border-top: var(--bd-thick); border-bottom: var(--bd-thick); }
.section-dark {
  background: var(--ink); color: var(--paper);
  border-top: var(--bd-thick); border-bottom: var(--bd-thick);
  --line: var(--paper); --shadow-col: #000;
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--paper); }
.section-dark .btn { color: var(--ink); }
.section-dark .overline { background: var(--lime); color: var(--ink); }

.section-header { max-width: 720px; margin-bottom: 48px; }
.section-header.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-header.centered .overline { margin-inline: auto; }
.section-header .overline { margin-bottom: 18px; }
.section-header h2 { margin-bottom: 14px; }
.section-header p { font-size: 1.06rem; font-weight: 500; color: var(--ink-soft); }
.section-dark .section-header p { color: #b8b8a8; }

/* ---------- Cards ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; }
.card {
  background: var(--white); border: var(--bd-thick); box-shadow: var(--sh);
  padding: 30px 26px; color: var(--ink);
  transition: transform var(--t), box-shadow var(--t);
}
a.card:hover, .card.is-link:hover { transform: translate(-4px,-4px); box-shadow: var(--sh-lg); }
.card-icon {
  width: 54px; height: 54px; display: flex; align-items: center; justify-content: center;
  background: var(--green); border: var(--bd); font-size: 1.5rem; margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: .96rem; margin: 0; font-weight: 500; }
.card.big-num { counter-increment: cnum; }
.card .knum { font-family: var(--ff-mono); font-weight: 700; font-size: 2.6rem; line-height: 1; display: block; margin-bottom: 8px; }

/* ---------- Feature rows ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; margin-bottom: 56px; }
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse .feature-content { order: 2; }
.feature-row.reverse .feature-visual { order: 1; }
.feature-visual { background: var(--white); border: var(--bd-thick); box-shadow: var(--sh); padding: 32px; }
.feature-content h3 { margin-bottom: 14px; }
.feature-content p { font-weight: 500; color: var(--ink-soft); margin-bottom: 20px; }
.feature-list { display: flex; flex-direction: column; gap: 12px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.feature-list li .check { flex-shrink: 0; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; background: var(--green); border: var(--bd); font-size: .72rem; font-weight: 800; }
@media (max-width: 760px) {
  .feature-row { grid-template-columns: 1fr; gap: 28px; }
  .feature-row.reverse .feature-content { order: 1; }
  .feature-row.reverse .feature-visual { order: 2; }
}

/* ---------- Steps ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: var(--bd-thick); box-shadow: var(--sh); background: var(--white); counter-reset: step; }
.step { padding: 30px 24px; border-right: var(--bd); counter-increment: step; }
.step:last-child { border-right: none; }
.step::before { content: counter(step); font-family: var(--ff-mono); font-weight: 700; font-size: 2.4rem; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; background: var(--lime); border: var(--bd); margin-bottom: 16px; }
.step h4 { margin-bottom: 8px; }
.step p { font-size: .92rem; font-weight: 500; color: var(--ink-soft); margin: 0; }
@media (max-width: 820px) {
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .step { border-bottom: var(--bd); }
  .step:nth-child(2n) { border-right: none; }
}
@media (max-width: 480px) {
  .steps-grid { grid-template-columns: 1fr; }
  .step { border-right: none; }
}

/* ---------- Affiliate box ---------- */
.aff-box { background: var(--lime); border: var(--bd-thick); box-shadow: var(--sh-lg); padding: 40px; }
.aff-box .badge-partner { background: var(--ink); color: var(--lime); margin-bottom: 16px; }
.aff-box h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); text-transform: uppercase; margin-bottom: 12px; }
.aff-box p { font-weight: 500; max-width: 620px; }
.aff-box .aff-note { font-family: var(--ff-mono); font-size: .76rem; margin-top: 16px; margin-bottom: 0; }
.aff-inline { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; background: var(--white); border: var(--bd-thick); box-shadow: var(--sh); padding: 24px; margin: 32px 0; }
.aff-inline .aff-inline-txt { flex: 1; min-width: 220px; font-weight: 600; }
.aff-inline strong { background: var(--green); box-shadow: 0 0 0 3px var(--green); }

/* ---------- Pros / Cons ---------- */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 30px 0; }
.proscons .pc { border: var(--bd-thick); box-shadow: var(--sh); padding: 26px; background: var(--white); }
.proscons .pc.pros { background: #e7f8ec; }
.proscons .pc.cons { background: #ffe9e3; }
.proscons .pc h4 { text-transform: uppercase; margin-bottom: 14px; padding-bottom: 10px; border-bottom: var(--bd); }
.proscons .pc li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-weight: 500; font-size: .95rem; }
.proscons .pc.pros li::before { content: '✚'; font-weight: 900; color: var(--green-dk); }
.proscons .pc.cons li::before { content: '✕'; font-weight: 900; color: var(--coral); }
@media (max-width: 620px) { .proscons { grid-template-columns: 1fr; } }

/* ---------- Rating ---------- */
.rating { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.rating-stars { font-family: var(--ff-mono); font-size: 1.2rem; letter-spacing: 2px; }
.rating-score { font-family: var(--ff-mono); font-weight: 700; font-size: 1.6rem; background: var(--lime); border: var(--bd); padding: 4px 12px; }
.rating-label { font-weight: 700; text-transform: uppercase; font-size: .85rem; }
.rating-bars { display: flex; flex-direction: column; gap: 12px; }
.rating-bar { display: grid; grid-template-columns: 170px 1fr 52px; gap: 12px; align-items: center; font-size: .86rem; font-weight: 600; }
.rating-bar .track { height: 22px; background: var(--white); border: var(--bd); }
.rating-bar .fill { height: 100%; background: var(--green); border-right: var(--bd); transition: width .8s cubic-bezier(.2,.7,.3,1); }
.rating-bar .val { font-family: var(--ff-mono); font-weight: 700; text-align: right; }
@media (max-width: 540px) { .rating-bar { grid-template-columns: 110px 1fr 44px; } }

/* ---------- Tables ---------- */
.data-table-wrap { overflow-x: auto; border: var(--bd-thick); box-shadow: var(--sh); background: var(--white); }
.data-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.data-table th, .data-table td { padding: 14px 18px; text-align: left; border-bottom: var(--bd); border-right: var(--bd); }
.data-table th:last-child, .data-table td:last-child { border-right: none; }
.data-table tr:last-child td { border-bottom: none; }
.data-table th { background: var(--ink); color: var(--paper); font-family: var(--ff-mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; }
.data-table td { font-weight: 500; font-size: .93rem; }
.data-table .col-hi { background: var(--lime); font-weight: 700; }
.data-table th.col-hi { background: var(--green); color: var(--ink); }
.data-table .yes { color: var(--green-dk); font-weight: 800; }
.data-table .no { color: var(--coral); font-weight: 800; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { border: var(--bd-thick); background: var(--white); box-shadow: var(--sh-sm); transition: box-shadow var(--t); }
.faq-item.open { box-shadow: var(--sh); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--ff); font-weight: 800; font-size: 1.04rem; color: var(--ink);
}
.faq-icon { flex-shrink: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: var(--green); border: var(--bd); font-size: 1.2rem; font-weight: 900; transition: transform .2s; }
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--coral); color: var(--white); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-answer-inner { padding: 0 22px 22px; font-weight: 500; color: var(--ink-soft); border-top: 3px dashed #c9c3ad; padding-top: 16px; }
.faq-item.open .faq-answer { max-height: 720px; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-family: var(--ff-mono); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 7px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 14px 16px; background: var(--white); border: var(--bd);
  color: var(--ink); font-family: var(--ff); font-size: .96rem; font-weight: 500;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; box-shadow: var(--sh-sm); }
.form-group textarea { resize: vertical; min-height: 140px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-consent { display: flex; gap: 12px; align-items: flex-start; font-size: .85rem; font-weight: 500; margin-bottom: 22px; }
.form-consent input { width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--green); margin-top: 2px; }
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; background: var(--white); border: var(--bd); padding: 18px; }
.contact-info-icon { width: 46px; height: 46px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--green); border: var(--bd); }
.contact-info-item h4 { margin-bottom: 3px; }
.contact-info-item p { margin: 0; font-weight: 500; font-size: .92rem; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } }

/* ---------- CTA banner ---------- */
.cta-banner { background: var(--green); border: var(--bd-thick); box-shadow: var(--sh-lg); padding: 60px 48px; text-align: center; }
.cta-banner h2 { margin-bottom: 14px; }
.cta-banner p { font-weight: 600; max-width: 560px; margin: 0 auto 30px; }
@media (max-width: 600px) { .cta-banner { padding: 40px 24px; } }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--paper); border-top: var(--bd-thick); padding: 60px 0 28px; }
.footer .nav-logo { color: var(--paper); }
.footer .lg-canna { color: var(--paper); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.footer-brand p { color: #b8b8a8; font-size: .92rem; font-weight: 500; margin-top: 14px; max-width: 320px; }
.parent-brands { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.parent-brands a { font-family: var(--ff-mono); font-weight: 700; font-size: .78rem; color: var(--paper); border: 3px solid var(--paper); padding: 5px 12px; }
.parent-brands a:hover { background: var(--green); border-color: var(--green); color: var(--ink); }
.footer-col h5 { font-family: var(--ff-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--lime); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--paper); font-size: .92rem; font-weight: 500; padding: 5px 0; }
.footer-col a:hover { color: var(--green); }
.footer-bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 24px; border-top: 3px solid #33332b; font-family: var(--ff-mono); font-size: .78rem; color: #b8b8a8; }
.footer-bottom a { color: var(--lime); }
.footer-disclaimer { font-size: .78rem; color: #8a8a7c; font-weight: 500; margin-top: 16px; line-height: 1.6; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Page hero (inner) ---------- */
.page-hero { padding: 56px 0; background: var(--paper-2); border-bottom: var(--bd-thick); }
.breadcrumb { display: flex; gap: 8px; flex-wrap: wrap; font-family: var(--ff-mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 18px; }
.breadcrumb a { color: var(--ink); border-bottom: 3px solid var(--green); }
.breadcrumb .sep { color: var(--ink-soft); }
.page-hero h1 { margin-bottom: 16px; }
.page-hero .lead { margin-bottom: 0; }

/* ---------- Prose ---------- */
.prose { max-width: 760px; font-size: 1.05rem; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 48px 0 16px; }
.prose h3 { font-size: 1.32rem; margin: 32px 0 12px; font-weight: 800; }
.prose p { font-weight: 500; line-height: 1.7; margin-bottom: 1.1em; }
.prose ul, .prose ol { margin: 14px 0 24px; padding-left: 0; }
.prose ul li, .prose ol li { position: relative; padding-left: 32px; margin-bottom: 10px; font-weight: 500; line-height: 1.6; }
.prose ul li::before { content: ''; position: absolute; left: 0; top: .35em; width: 14px; height: 14px; background: var(--green); border: 3px solid var(--ink); }
.prose ol { counter-reset: li; }
.prose ol li { counter-increment: li; }
.prose ol li::before { content: counter(li); position: absolute; left: 0; top: 0; width: 22px; height: 22px; background: var(--lime); border: 3px solid var(--ink); font-family: var(--ff-mono); font-weight: 700; font-size: .8rem; display: flex; align-items: center; justify-content: center; }
.prose strong { font-weight: 800; background: var(--lime); box-shadow: 0 0 0 2px var(--lime); }
.prose a { color: var(--ink); font-weight: 700; border-bottom: 3px solid var(--green); }
.prose a:hover { background: var(--green); }
.prose blockquote { border: var(--bd-thick); box-shadow: var(--sh); background: var(--white); padding: 22px 26px; margin: 28px 0; font-weight: 600; font-style: normal; }
.prose blockquote::before { content: '“'; font-family: var(--ff-mono); font-size: 2rem; font-weight: 700; color: var(--green-dk); display: block; line-height: .6; }

/* ---------- Note / callout ---------- */
.note { display: flex; gap: 14px; padding: 20px 22px; margin: 26px 0; background: var(--white); border: var(--bd-thick); box-shadow: var(--sh-sm); }
.note.tip { background: #e7f8ec; }
.note.warn { background: #ffe9e3; }
.note .note-ico { font-size: 1.3rem; flex-shrink: 0; }
.note p { margin: 0; font-weight: 600; font-size: .94rem; }
.note strong { font-weight: 800; }

/* ---------- TOC ---------- */
.toc { background: var(--white); border: var(--bd-thick); box-shadow: var(--sh); padding: 24px; margin-bottom: 28px; }
.toc h4 { font-family: var(--ff-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; padding-bottom: 10px; border-bottom: var(--bd); }
.toc ol { counter-reset: toc; display: flex; flex-direction: column; gap: 4px; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 9px; font-size: .9rem; font-weight: 600; padding: 4px 0; }
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--ff-mono); color: var(--green-dk); font-weight: 700; }
.toc a:hover { color: var(--green-dk); }

/* ---------- Article layout ---------- */
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.article-sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 22px; }
@media (max-width: 980px) { .article-layout { grid-template-columns: 1fr; } .article-sidebar { position: static; } }

/* ---------- Author box ---------- */
.author-box { display: flex; gap: 16px; align-items: center; background: var(--white); border: var(--bd-thick); box-shadow: var(--sh); padding: 22px; margin: 32px 0; }
.author-box .av { width: 58px; height: 58px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--green); border: var(--bd); font-weight: 900; font-size: 1.2rem; }
.author-box h4 { margin-bottom: 2px; }
.author-box p { margin: 0; font-family: var(--ff-mono); font-size: .8rem; }

/* ---------- Keyword cloud ---------- */
.keyword-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.keyword-tag { font-family: var(--ff-mono); font-size: .82rem; font-weight: 700; background: var(--white); border: var(--bd); padding: 7px 14px; }
.keyword-tag:hover { background: var(--green); }

/* ---------- Misc ---------- */
.divider { height: 0; border-top: var(--bd-thick); margin: 52px 0; }

.fade-up { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto; }
}

.toast { position: fixed; bottom: 28px; right: 28px; background: var(--green); color: var(--ink); border: var(--bd-thick); box-shadow: var(--sh); padding: 16px 24px; font-weight: 800; text-transform: uppercase; font-size: .88rem; transform: translateY(140px); transition: transform .3s ease; z-index: 9999; }
.toast.show { transform: translateY(0); }

.scroll-top { position: fixed; bottom: 28px; right: 28px; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; background: var(--lime); border: var(--bd-thick); box-shadow: var(--sh-sm); font-size: 1.3rem; font-weight: 900; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity var(--t), transform var(--t); z-index: 900; }
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink); }

@media print { .nav, .footer, .scroll-top, .toast { display: none !important; } body { background: #fff; } }

/* ---------- Hero split layout ---------- */
.hero-split { display: grid; grid-template-columns: 1.12fr .88fr; gap: 46px; align-items: start; }
.hero-split .hero-side { padding-top: 8px; }
@media (max-width: 900px) { .hero-split { grid-template-columns: 1fr; gap: 34px; } }
