/* ==========================================================================
   CryptoLic — Design System
   Calm, professional, trustworthy. Reference points: Stripe, Linear, Notion.
   No crypto aesthetics, no gradients-for-hype, minimal motion.
   ========================================================================== */

/* ----- Design tokens ----- */
:root {
  /* Neutral scale (slate) — the backbone of a calm, readable UI */
  --ink:        #0f172a;  /* headings, high-emphasis text */
  --body:       #334155;  /* body copy */
  --muted:      #64748b;  /* secondary text, captions */
  --line:       #e2e8f0;  /* borders, dividers */
  --line-soft:  #eef2f6;
  --surface:    #ffffff;
  --surface-2:  #f8fafc;  /* section bands */
  --surface-3:  #f1f5f9;

  /* One restrained, trustworthy accent (confident blue — not crypto orange) */
  --accent:      #1d4ed8;
  --accent-strong:#1741ac;
  --accent-tint: #eef3ff;

  /* Support */
  --positive:   #0f7a4d;
  --focus:      #2563eb;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Helvetica Neue", sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;

  /* Rhythm & shape */
  --maxw: 1120px;
  --maxw-prose: 720px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.04);
  --shadow-md: 0 4px 12px rgba(15,23,42,.06), 0 2px 6px rgba(15,23,42,.04);

  --step: 8px;
}

/* ----- Reset / base ----- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--body);
  background: var(--surface);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 680; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); text-decoration: underline; }
strong { color: var(--ink); font-weight: 640; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin: .35rem 0; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ----- Layout primitives ----- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.prose { max-width: var(--maxw-prose); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.section--band { background: var(--surface-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section__head { max-width: var(--maxw-prose); margin-bottom: 44px; }
.section__head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  font-size: .8rem; font-weight: 640; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 14px;
}
.lead { font-size: 1.18rem; color: var(--muted); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-size: 1rem; font-weight: 600; line-height: 1;
  padding: 13px 22px; border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { background: var(--surface-2); color: var(--ink); }
.btn-ghost { color: var(--accent); padding-left: 4px; padding-right: 4px; }
.btn-ghost:hover { color: var(--accent-strong); text-decoration: underline; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ----- Purchase panel (reusable commerce experience) ----- */
.purchase { margin-top: 8px; }
.purchase__note { font-size: .9rem; margin-top: 12px; }

/* Assurances: a compact, calm row of checkout expectations. */
.purchase__assurances {
  list-style: none; padding: 0; margin: 18px 0 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px;
}
.purchase__assurances li { display: flex; gap: 8px; align-items: center; margin: 0; font-size: .93rem; color: var(--body); }
.purchase__assurances svg { flex: 0 0 auto; width: 17px; height: 17px; color: var(--positive); }
@media (max-width: 420px) { .purchase__assurances { grid-template-columns: 1fr; } }

/* Included: a bordered, quiet block that itemizes what the buyer receives. */
.purchase__included {
  margin-top: 22px; padding: 18px 20px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius);
}
.purchase__included-head {
  font-size: .78rem; font-weight: 640; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 12px;
}
.purchase__included ul { list-style: none; padding: 0; margin: 0; }
.purchase__included li { display: flex; gap: 10px; align-items: flex-start; margin: 9px 0; font-size: .95rem; color: var(--body); }
.purchase__included li:first-child { margin-top: 0; }
.purchase__included li:last-child { margin-bottom: 0; }
.purchase__included svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }

/* Privacy note: lock icon + small text below trust line. */
.purchase__privacy {
  display: flex; align-items: center; gap: 6px;
  font-size: .8rem; color: var(--muted); margin: 10px 0 0;
}
.purchase__privacy svg { flex: 0 0 auto; color: var(--positive); }

/* Trust line: small, spaced, unobtrusive. */
.purchase__trust {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin: 18px 0 0; font-size: .82rem; color: var(--muted);
}
.purchase__trust-dot { color: var(--line); }

/* Centered variant (used in closing CTAs): center the row, keep the assurance
   grid tidy and inline rather than full-width. */
.purchase--center .purchase .btn-row,
.purchase--center .purchase__trust { justify-content: center; }
.purchase--center .purchase__assurances {
  display: inline-grid; grid-template-columns: repeat(2, auto);
  gap: 8px 28px; text-align: left; margin-inline: auto;
}

/* ----- Header / nav ----- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; font-size: 1.15rem; }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand__mark {
  width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .95rem; letter-spacing: -0.03em;
}
.nav__links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--body); font-weight: 500; font-size: .98rem; }
.nav__links a:hover { color: var(--ink); text-decoration: none; }
.nav__cta { display: flex; align-items: center; gap: 16px; }
.nav__toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
@media (max-width: 820px) {
  .nav__links, .nav__cta .btn { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav[data-open="true"] .nav__links {
    display: flex; position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px 24px 20px;
  }
  .nav[data-open="true"] .nav__links a { display: block; width: 100%; padding: 10px 0; }
}

/* ----- Hero ----- */
.hero { padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 6vw, 80px); }
.hero__inner { max-width: 800px; }

/* Collection hero — two-column layout when a hero image is present */
.hero--collection { padding-bottom: 0; }
.hero--collection .hero__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}
.hero--collection .hero__split .hero__inner { max-width: none; }
.hero--collection .hero__img {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.hero--collection .hero__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 768px) {
  .hero--collection .hero__split { grid-template-columns: 1fr; }
  .hero--collection .hero__img { aspect-ratio: 16 / 9; }
}

/* Merchant supporting image blocks */
.merchant-img-block { margin: 0 auto; }
.merchant-img-block img {
  width: 100%; height: auto;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  display: block;
}
.merchant-img-block figcaption {
  font-size: .85rem; color: var(--muted);
  margin-top: 10px; text-align: center;
}
.merchant-img-block--diagram { max-width: 900px; }
.merchant-img-block--lifestyle { max-width: 680px; }
.merchant-img-block--wide { max-width: 100%; }
.merchant-img-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}
@media (max-width: 640px) {
  .merchant-img-grid { grid-template-columns: 1fr; }
}
.hero h1 { margin-bottom: 20px; }
.hero .lead { font-size: 1.3rem; margin-bottom: 32px; max-width: 640px; }
.hero__note { margin-top: 18px; font-size: .95rem; color: var(--muted); }
.hero__note--independence {
  margin-bottom: 24px; margin-top: 0;
  font-size: .88rem; color: var(--muted);
  padding: 10px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  max-width: 580px;
}

/* ----- Cards ----- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm); height: 100%;
}
.card--pad-lg { padding: 32px; }
.card h3 { margin-top: 0; }
.card__icon {
  width: 42px; height: 42px; border-radius: 10px; background: var(--accent-tint); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 16px;
}
.card__icon svg { width: 22px; height: 22px; }
.card p:last-child { margin-bottom: 0; }
.card--link { transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; display: block; color: inherit; }
.card--link:hover { border-color: #cdd8e6; box-shadow: var(--shadow-md); text-decoration: none; color: inherit; }

.pill {
  display: inline-block; font-size: .74rem; font-weight: 640; letter-spacing: .05em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; background: var(--surface-3); color: var(--muted);
}
.pill--accent { background: var(--accent-tint); color: var(--accent-strong); }
.pill--soon { background: #fff7ed; color: #9a5b17; }

/* ----- Resource cards (companion publications, each purchasable) ----- */
.resource-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.resource-card__cover {
  display: block; width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover;
  border-bottom: 1px solid var(--line);
}
.resource-card__body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.resource-card__body p { flex: 1; }
.resource-card__buy { margin-top: 8px; }
.resource-card__buy .btn { width: 100%; }

/* ----- Companion cards (catalog grid on /books/) ----- */
.companions { align-items: stretch; }
.companion-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.companion-card__cover {
  display: block; width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover;
  border-bottom: 1px solid var(--line);
}
.companion-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.companion-card__meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.companion-card__price {
  font-size: 1.1rem; font-weight: 740; color: var(--ink); letter-spacing: -0.01em;
}
.companion-card__desc { font-size: .95rem; color: var(--body); margin-bottom: 10px; }
.companion-card__who {
  font-size: .88rem; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 9px 12px; margin: 0 0 14px;
}
.companion-card__who strong { color: var(--body); }
.companion-card__buy { margin-top: auto; padding-top: 4px; }
.companion-card__buy .btn { width: 100%; }
.companion-card__bundle-note {
  font-size: .8rem; color: var(--muted); margin: 10px 0 0; line-height: 1.4;
}
.companion-card__bundle-note a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.companion-card__bundle-note a:hover { color: var(--accent); }

/* ----- Bundles ----- */
.bundles { align-items: stretch; }
.bundle { display: flex; flex-direction: column; position: relative; }
.bundle--featured { border-color: var(--accent); box-shadow: var(--shadow-md); }
.bundle__flag { position: absolute; top: 16px; right: 16px; z-index: 1; }
.bundle__image {
  display: block; width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 18px;
}
.bundle__name { margin: 0 0 4px; }
.bundle__tagline { color: var(--muted); font-size: .95rem; margin: 0 0 16px; }
.bundle__items { list-style: none; padding: 0; margin: 0 0 18px; }
.bundle__items li { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; font-size: .93rem; color: var(--body); }
.bundle__items svg { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 2px; color: var(--accent); }
.bundle__price { display: flex; align-items: baseline; gap: 10px; margin: auto 0 16px; flex-wrap: wrap; }
.bundle__now { font-size: 1.9rem; font-weight: 760; color: var(--ink); letter-spacing: -0.02em; }
.bundle__was { font-size: 1.05rem; color: var(--muted); text-decoration: line-through; }
.bundle__save { font-size: .8rem; font-weight: 700; color: var(--positive); background: #e7f6ee; padding: 3px 9px; border-radius: 999px; }
.bundle .btn { width: 100%; }

/* ----- Problem / solution list ----- */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0; }
.checklist svg { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 1px; color: var(--accent); }

/* ----- Book feature ----- */
.book-feature { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; }
@media (max-width: 820px) { .book-feature { grid-template-columns: 1fr; gap: 28px; } }
.book-cover {
  aspect-ratio: 3/4; border-radius: 12px; box-shadow: var(--shadow-md);
  background: var(--ink); color: #fff; padding: 32px 26px; display: flex; flex-direction: column;
  border: 1px solid var(--line);
}
.book-cover__series { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #93c5fd; font-weight: 640; }
.book-cover__title { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; margin-top: 14px; line-height: 1.15; }
.book-cover__rule { width: 44px; height: 3px; background: #3b82f6; margin: 18px 0; }
.book-cover__sub { font-size: .95rem; color: #cbd5e1; margin-top: auto; }

/* ----- Table of contents / chapter list ----- */
.toc-list { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.toc-list li { margin: 0; display: flex; gap: 16px; padding: 16px 22px; border-bottom: 1px solid var(--line-soft); align-items: baseline; }
.toc-list li:last-child { border-bottom: 0; }
.toc-list .n { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; min-width: 28px; }
.toc-list .t strong { display: block; color: var(--ink); }
.toc-list .t span { color: var(--muted); font-size: .95rem; }

/* ----- Steps ----- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding-left: 52px; margin: 22px 0; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 8px;
  background: var(--accent-tint); color: var(--accent-strong); font-weight: 700; display: grid; place-items: center; font-size: .95rem;
}

/* ----- Newsletter (Brevo form, restyled to match the site) -----
   The Brevo markup and inline styles are untouched; these rules override the
   presentation so the embedded form reads as a first-class CryptoLic section.
   `!important` is used only where it must beat Brevo's inline styles. */

/* The section band: a calm CryptoLic surface, not the widget's grey. */
.newsletter-section { background: var(--ink); }
.newsletter-section .container { max-width: 720px; }

/* CryptoLic-authored lead-magnet block above the form (on the dark band). */
.newsletter-lead { max-width: 560px; margin: 0 auto 28px; text-align: center; color: #fff; }
.newsletter-lead__eyebrow { color: var(--accent-tint); }
.newsletter-lead__headline { color: #fff; font-size: clamp(1.6rem, 3vw, 2.15rem); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 12px; }
.newsletter-lead__copy { color: #cbd5e1; font-size: 1.08rem; line-height: 1.6; margin: 0 auto 20px; max-width: 520px; }
.newsletter-lead__list { display: inline-block; text-align: left; margin: 0 auto; }
.newsletter-lead__list li { color: #e2e8f0; }
.newsletter-lead__list svg { color: #7dd3a8; }

/* Hide the Brevo form's own title + first intro paragraph: the curated block
   above is the single source of the value proposition (no duplicate heading). */
.newsletter-section .sib-form-block[style*="32px"],
.newsletter-section .sib-text-form-block { display: none !important; }

/* Kill the Brevo outer wrapper's grey background + centering; let our band show. */
.newsletter-section .sib-form { background-color: transparent !important; padding: 0 !important; text-align: left !important; }
.newsletter-section .sib-form-container { max-width: none; }

/* The form card: match site cards (surface, radius, subtle border/shadow). */
.newsletter-section #sib-container {
  max-width: 560px !important;
  margin: 0 auto;
  background-color: var(--surface) !important;
  border-color: var(--line) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-md);
  padding: clamp(24px, 4vw, 40px) !important;
  text-align: left !important;
}

/* Typography: swap Helvetica for the site font, retune sizes/colors. */
.newsletter-section .sib-form-block,
.newsletter-section .sib-text-form-block p,
.newsletter-section .entry__label,
.newsletter-section .entry__specification,
.newsletter-section #sib-container input {
  font-family: var(--font-sans) !important;
}
/* Heading ("Join the CryptoLic Insider"). */
.newsletter-section .sib-form-block p { color: var(--ink) !important; }
.newsletter-section .sib-form-block[style*="32px"] p {
  font-size: clamp(1.6rem, 3vw, 2.15rem) !important;
  font-weight: 680 !important;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 4px;
}
/* Intro paragraph. */
.newsletter-section .sib-text-form-block p { color: var(--muted) !important; font-size: 1.05rem !important; line-height: 1.6; }
/* Field label + helper text. */
.newsletter-section .entry__label { color: var(--ink) !important; font-size: .95rem !important; margin-bottom: 8px; }
.newsletter-section .entry__specification { color: var(--muted) !important; }

/* Email input: match site form controls. */
.newsletter-section #sib-container input.input {
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  padding: 12px 14px !important;
  font-size: 1rem !important;
  color: var(--ink) !important;
  box-shadow: none !important;
}
.newsletter-section #sib-container input.input:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-tint) !important;
  outline: none !important;
}

/* Submit button: the CryptoLic primary button. */
.newsletter-section .sib-form-block__button {
  background-color: var(--accent) !important;
  color: #fff !important;
  font-family: var(--font-sans) !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  border-radius: var(--radius) !important;
  padding: 13px 22px !important;
  transition: background-color .15s ease;
}
.newsletter-section .sib-form-block__button:hover { background-color: var(--accent-strong) !important; }

/* Links (e.g. any Brevo-inserted link) use the site accent, not Brevo blue. */
.newsletter-section #sib-container a { color: var(--accent) !important; }

/* Brevo's own success/error panels keep their function; just soften corners. */
.newsletter-section .sib-form-message-panel { border-radius: var(--radius) !important; max-width: 560px !important; margin: 0 auto 12px; }

/* ----- Welcome (post-subscription) page ----- */
.welcome__check {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 24px;
  background: var(--accent-tint); color: var(--accent-strong);
  display: grid; place-items: center;
}
.welcome__check svg { width: 32px; height: 32px; }
.card__cta { display: inline-block; margin-top: 12px; color: var(--accent); font-weight: 600; font-size: .95rem; }
.card--link:hover .card__cta { color: var(--accent-strong); }

/* ----- Callout ----- */
.callout {
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  background: var(--surface-2); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px; margin: 24px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout__label { font-size: .78rem; font-weight: 640; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-strong); }

/* ----- Footer ----- */
.site-footer { background: var(--surface-2); border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 8px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 640; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: 9px 0; }
.footer-col a { color: var(--body); font-size: .95rem; }
.footer-col a:hover { color: var(--ink); text-decoration: none; }
.footer-merchant-types { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.footer-merchant-types h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 640; margin-bottom: 12px; }
.footer-merchant-types ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 0; }
.footer-merchant-types li { white-space: nowrap; }
.footer-merchant-types li::after { content: "·"; color: var(--line); margin: 0 10px; }
.footer-merchant-types li:last-child::after { content: ""; }
.footer-merchant-types a { color: var(--body); font-size: .95rem; }
.footer-merchant-types a:hover { color: var(--ink); text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.footer-brand p { color: var(--muted); font-size: .95rem; margin-top: 12px; margin-bottom: 0; max-width: 34ch; }

/* ----- Stat (cost points) ----- */
.stat {
  font-family: var(--font-sans);
  font-size: 2.4rem; font-weight: 720; letter-spacing: -0.03em;
  color: var(--accent); line-height: 1; margin: 0 0 12px;
}
.card .stat + h3 { margin-top: 0; }

/* ----- Evidence strip (short high-impact facts) ----- */
.evidence {
  display: flex; flex-wrap: wrap; gap: 12px 40px; align-items: baseline;
  margin-top: 8px; padding: 20px 0 4px;
}
.evidence__item { display: flex; gap: 12px; align-items: baseline; }
.evidence__fig { font-family: var(--font-sans); font-weight: 720; color: var(--ink); font-size: 1.15rem; letter-spacing: -0.02em; white-space: nowrap; }
.evidence__lbl { color: var(--muted); font-size: .95rem; }

/* ----- Muted checklist (the "not for you" list) ----- */
.checklist--muted li { color: var(--muted); }
.checklist--muted li::before {
  content: "—"; flex: 0 0 auto; color: var(--muted); font-weight: 700; width: 22px;
}
.checklist--muted svg { display: none; }

/* ----- Q&A (objection handling) ----- */
.qa { padding: 4px 0; }
.qa__q {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 6px;
}
.qa__q::before {
  content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent);
  flex: 0 0 auto;
}

/* ----- Fee Calculator ----- */
.calc { scroll-margin-top: 84px; }  /* clear the sticky header on anchor jump */
.calc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 760px) { .calc__grid { grid-template-columns: 1fr; } }

.field { margin-bottom: 20px; }
.field:last-child { margin-bottom: 0; }
.field > label { display: block; font-weight: 600; color: var(--ink); font-size: .95rem; margin-bottom: 8px; }
.field__control { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .15s ease, box-shadow .15s ease; }
.field__control:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.field__control input {
  flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 14px;
  font-family: inherit; font-size: 1.15rem; font-weight: 600; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.field__control input:focus { outline: none; }
.field__prefix, .field__suffix { padding: 0 6px 0 14px; color: var(--muted); font-weight: 600; }
.field__suffix { padding: 0 14px 0 6px; }
.field__help { font-size: .85rem; color: var(--muted); margin: 8px 0 0; }

.calc__advanced { border-top: 1px solid var(--line-soft); padding-top: 16px; margin-top: 4px; }
.calc__advanced summary { cursor: pointer; font-weight: 600; color: var(--ink); font-size: .95rem; }
.calc__advanced summary::marker { color: var(--muted); }

/* Result panel — quiet, authoritative, the number is the hero */
.calc__result { background: var(--surface-2); }
.calc__result-label { font-size: .95rem; color: var(--muted); margin: 0 0 8px; font-weight: 600; }
.calc__figure {
  font-size: clamp(2.4rem, 6vw, 3.4rem); font-weight: 720; letter-spacing: -0.03em;
  color: var(--ink); line-height: 1; margin: 0 0 20px; font-variant-numeric: tabular-nums;
}
.calc__breakdown-intro { font-size: .95rem; color: var(--muted); margin: 0 0 10px; }
.calc__breakdown { list-style: none; padding: 0; margin: 0 0 18px; }
.calc__breakdown li { display: flex; gap: 8px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--line-soft); color: var(--body); }
.calc__breakdown li:last-child { border-bottom: 0; }
.calc__breakdown strong { color: var(--ink); font-variant-numeric: tabular-nums; min-width: 84px; }
.calc__note { font-size: .85rem; color: var(--muted); margin: 0; font-style: italic; }

.calc__next { text-align: center; max-width: 620px; margin: 44px auto 0; }
.calc__next .btn-row { justify-content: center; }
.calc__aside { font-size: .9rem; color: var(--muted); margin: 14px 0 0; }

.calc__transparency { max-width: 720px; margin: 32px auto 0; }
.calc__transparency summary { cursor: pointer; font-weight: 600; color: var(--accent); font-size: .95rem; }
.calc__transparency-body { padding-top: 12px; font-size: .95rem; }
.calc__transparency-body ul { margin: 6px 0 16px; }

/* ----- Utilities ----- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack-sm > * + * { margin-top: 12px; }
.muted { color: var(--muted); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ----- Improved button active state ----- */
.btn:active { transform: translateY(1px); }
.btn-primary:active { background: var(--accent-strong); }

/* ----- Article prose mobile safety ----- */
.article-prose { overflow-wrap: break-word; word-break: break-word; }
.article-prose pre, .article-prose code { overflow-x: auto; }

/* ----- Nav active indicator ----- */
.nav__links a[aria-current="page"] { color: var(--ink); font-weight: 600; }


/* ----- Print styles ----- */
@media print {
  .site-header, .site-footer, .newsletter-section, .article-sidebar,
  .article-nav, .related-grid, .btn, .callout { display: none !important; }
  body { font-size: 12pt; color: #000; }
  .article-body { max-width: 100%; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 10pt; color: #555; }
  h1, h2, h3 { page-break-after: avoid; }
  p, li { orphans: 3; widows: 3; }
}

/* ----- Articles hub ----- */
.articles-grid { display: grid; gap: 24px; }
.article-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.article-card:hover { border-color: #cdd8e6; box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; color: inherit; }
.article-card__meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.article-card__tag { font-size: .72rem; font-weight: 640; letter-spacing: .05em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--accent-tint); color: var(--accent-strong); }
.article-card__read { font-size: .82rem; color: var(--muted); }
.article-card h3 { margin: 0 0 10px; font-size: 1.15rem; }
.article-card p { color: var(--body); font-size: .97rem; margin: 0 0 16px; }
.article-card__cta { font-size: .9rem; font-weight: 600; color: var(--accent); }
.article-card:hover .article-card__cta { color: var(--accent-strong); }

/* ----- Article layout (single article page) ----- */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 56px;
  align-items: start;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; gap: 32px; } }

.article-body { min-width: 0; max-width: 720px; }

/* Breadcrumbs */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; list-style: none; padding: 0; margin: 0 0 32px; font-size: .85rem; color: var(--muted); }
.breadcrumb li { display: flex; align-items: center; gap: 6px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); text-decoration: none; }
.breadcrumb__sep { color: var(--line); }

/* Article hero */
.article-hero { padding: clamp(48px, 7vw, 88px) 0 0; }
.article-hero .container { max-width: var(--maxw); }
.article-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line-soft); font-size: .88rem; color: var(--muted); }
.article-meta__sep { color: var(--line); }

/* Article prose — structured content within .article-body */
.article-prose h2 { font-size: 1.5rem; margin: 2em 0 .6em; padding-top: .2em; }
.article-prose h3 { font-size: 1.15rem; margin: 1.6em 0 .5em; }
.article-prose p { line-height: 1.75; margin: 0 0 1.1em; }
.article-prose ul, .article-prose ol { margin: 0 0 1.1em; }
.article-prose li { margin: .5em 0; line-height: 1.7; }
.article-prose strong { color: var(--ink); }
.article-prose a { color: var(--accent); }
.article-prose a:hover { color: var(--accent-strong); }
.article-prose .callout { margin: 1.6em 0; }
.article-prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

/* Article figures — images within article body */
.article-figure { margin: 2em 0; }
.article-figure img { width: 100%; height: auto; border-radius: 6px; display: block; }

/* Cost badge — inline setup cost label */
.cost-badge { font-family: var(--font-sans); font-size: .95rem; color: var(--ink-muted); margin: -.4em 0 1em; }

/* Responsive table wrapper */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.5em 0; }
.table-wrap table { min-width: 540px; }

/* FAQ definition list */
.article-prose .faq dt { font-weight: 700; color: var(--ink); margin: 1.5em 0 .3em; }
.article-prose .faq dd { margin: 0; line-height: 1.7; }

/* Table of contents (in-article) */
.toc {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 26px; margin: 0 0 2.4em;
}
.toc__title { font-size: .78rem; font-weight: 640; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.toc ol { margin: 0; padding-left: 1.1rem; }
.toc li { margin: 6px 0; font-size: .95rem; }
.toc a { color: var(--body); }
.toc a:hover { color: var(--accent); text-decoration: none; }

/* Article sidebar */
.article-sidebar { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 960px) { .article-sidebar { position: static; } }

.sidebar-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.sidebar-card__title { font-size: .78rem; font-weight: 640; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.sidebar-card h3 { font-size: 1rem; margin: 0 0 8px; }
.sidebar-card p { font-size: .9rem; margin: 0 0 14px; color: var(--body); }
.sidebar-card .btn { width: 100%; font-size: .9rem; padding: 11px 16px; }
.sidebar-card__links { list-style: none; padding: 0; margin: 0; }
.sidebar-card__links li { margin: 9px 0; }
.sidebar-card__links a { font-size: .92rem; color: var(--body); display: flex; align-items: center; gap: 6px; }
.sidebar-card__links a:hover { color: var(--accent); text-decoration: none; }

/* Article nav (prev/next) */
.article-nav { display: flex; gap: 16px; justify-content: space-between; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.article-nav__item { flex: 1; }
.article-nav__item--next { text-align: right; }
.article-nav__label { display: block; font-size: .78rem; font-weight: 640; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.article-nav__title { font-size: .97rem; font-weight: 600; color: var(--accent); }
.article-nav__title:hover { color: var(--accent-strong); text-decoration: none; }
@media (max-width: 560px) { .article-nav { flex-direction: column; gap: 20px; } .article-nav__item--next { text-align: left; } }

/* Related articles grid (below article) */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 820px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .related-grid { grid-template-columns: 1fr; } }

/* Compact "more guides" link list on the Learn hub (clean, not card clutter). */
.learn-more-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 32px;
}
.learn-more-grid li { margin: 0; }
.learn-more-grid a {
  display: block; padding: 12px 0; border-bottom: 1px solid var(--line-soft);
  color: var(--ink); font-weight: 500;
}
.learn-more-grid a:hover { color: var(--accent); text-decoration: none; }
@media (max-width: 640px) { .learn-more-grid { grid-template-columns: 1fr; } }
.related-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.related-card:hover { border-color: #cdd8e6; box-shadow: var(--shadow-md); text-decoration: none; color: inherit; }
.related-card__tag { font-size: .7rem; font-weight: 640; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.related-card h3 { font-size: .97rem; margin: 0 0 6px; color: var(--ink); }
.related-card p { font-size: .88rem; color: var(--muted); margin: 0; }

/* ==========================================================================
   Start Here — guided onboarding roadmap
   ========================================================================== */
.start-glance .card { padding: 20px 22px; }
.start-glance__label { font-size: .78rem; font-weight: 640; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.start-glance__val { font-size: .98rem; color: var(--ink); font-weight: 500; }

.start-roadmap { list-style: none; counter-reset: none; padding: 0; margin: 0; }
.start-step { display: grid; grid-template-columns: 48px 1fr; gap: 20px; margin: 0 0 20px; }
.start-step__rail { display: flex; flex-direction: column; align-items: center; }
.start-step__num {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 720; font-size: 1.05rem;
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
/* connecting line between steps */
.start-step:not(:last-child) .start-step__rail::after {
  content: ""; flex: 1; width: 2px; background: var(--line); margin-top: 8px; min-height: 24px;
}
.start-step__card { padding: 22px 24px; }
.start-step__meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; }
.start-step__time { font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.start-step__title { margin: 0 0 8px; font-size: 1.2rem; }
.start-step__what { margin: 0 0 10px; }
.start-step__does { font-size: .93rem; color: var(--body); margin: 0 0 16px; }
.start-step__does strong { color: var(--ink); }
.start-step__cta { }
@media (max-width: 560px) {
  .start-step { grid-template-columns: 36px 1fr; gap: 14px; }
  .start-step__num { width: 32px; height: 32px; font-size: .95rem; }
}

/* ==========================================================================
   Merchant Readiness Quiz
   ========================================================================== */
.quiz { scroll-margin-top: 90px; }
.quiz-intro .checklist { margin-bottom: 20px; }

/* Progress */
.quiz-progress { margin-bottom: 24px; }
.quiz-progress__bar {
  height: 8px; background: var(--surface-3); border-radius: 999px; overflow: hidden;
}
.quiz-progress__bar > span {
  display: block; height: 100%; width: 0; background: var(--accent);
  border-radius: 999px; transition: width .25s ease;
}
.quiz-progress__text { font-size: .85rem; color: var(--muted); margin: 8px 0 0; font-weight: 600; }

/* Step */
.quiz-step { border: 0; padding: 0; margin: 0; }
.quiz-step:focus { outline: none; }
.quiz-step__legend { display: block; padding: 0; margin: 0 0 6px; width: 100%; }
.quiz-step__section { display: block; font-size: .78rem; font-weight: 640; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.quiz-step__prompt { display: block; font-size: 1.35rem; font-weight: 680; color: var(--ink); letter-spacing: -0.01em; line-height: 1.2; }
.quiz-step__help { font-size: .92rem; color: var(--muted); margin: 8px 0 0; }

/* Options */
.quiz-options { display: grid; gap: 12px; margin: 22px 0 0; }
.quiz-option {
  display: flex; gap: 14px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  padding: 16px 18px; cursor: pointer; box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.quiz-option:hover { border-color: #cdd8e6; }
.quiz-option.is-selected { border-color: var(--accent); background: var(--accent-tint); box-shadow: 0 0 0 1px var(--accent); }
.quiz-option__input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: 0 0 auto; }
.quiz-option__body { display: flex; flex-direction: column; gap: 3px; }
.quiz-option__label { color: var(--ink); font-weight: 500; }
.quiz-option__help { font-size: .85rem; color: var(--muted); }

/* Controls */
.quiz-controls { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.quiz-controls .btn { min-width: 120px; justify-content: center; }
.quiz-controls .btn:first-child { }

/* ----- Result ----- */
.quiz-result__head { margin-bottom: 8px; }
.quiz-result__head:focus { outline: none; }
.quiz-result__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
@media (max-width: 560px) { .quiz-result__facts { grid-template-columns: 1fr; } }
.quiz-fact {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px;
}
.quiz-fact__label { display: block; font-size: .76rem; font-weight: 640; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.quiz-fact__val { display: block; color: var(--ink); font-weight: 500; font-size: .95rem; }

.quiz-result__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 32px 0; }
@media (max-width: 640px) { .quiz-result__cols { grid-template-columns: 1fr; } }
.quiz-panel { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 24px; }
.quiz-panel h3 { font-size: 1.05rem; margin: 0 0 12px; }
.quiz-panel ul { margin: 0; padding-left: 1.1rem; }
.quiz-panel li { margin: 8px 0; color: var(--body); font-size: .95rem; }
.quiz-panel--good { background: #f2fbf6; border-color: #cdeeda; }
.quiz-panel--good h3 { color: var(--positive); }
.quiz-panel--watch { background: #fff9f0; border-color: #f3e2c6; }
.quiz-panel--watch h3 { color: #9a5b17; }

.quiz-result__plan, .quiz-result__reading, .quiz-result__compare { margin: 32px 0; }
.quiz-result h3 { font-size: 1.2rem; }
.quiz-rec-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.quiz-rec__link {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  padding: 14px 18px; box-shadow: var(--shadow-sm); color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.quiz-rec__link:hover { border-color: #cdd8e6; box-shadow: var(--shadow-md); text-decoration: none; color: inherit; transform: translateY(-1px); }
.quiz-rec__n {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 999px;
  background: var(--accent-tint); color: var(--accent-strong); font-weight: 720; font-size: .9rem;
  display: grid; place-items: center; font-variant-numeric: tabular-nums;
}
.quiz-rec__body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.quiz-rec__title { color: var(--ink); font-weight: 600; }
.quiz-rec__value { font-size: .88rem; color: var(--muted); }
.quiz-rec__go { flex: 0 0 auto; color: var(--accent); font-weight: 700; }
.quiz-result__cta { margin-top: 32px; }

/* Print: results are worth printing; hide the interactive chrome. */
@media print {
  .quiz-intro, .quiz-form, .quiz-controls, .quiz-progress,
  .quiz-result__cta .btn, [data-quiz-restart] { display: none !important; }
  .quiz-rec__link, .quiz-panel, .quiz-fact { break-inside: avoid; }
}
