/* joker-card.ca — 2026 rebuild
   Hand-written. No framework, no web fonts, no third-party requests. */

:root {
  --ink:        #0a0e1a;
  --ink-2:      #121829;
  --ink-3:      #1e2740;
  --line-dark:  #263049;

  --paper:      #ffffff;
  --surface:    #f6f7fb;
  --surface-2:  #eceefa;
  --line:       #e2e5f0;

  --indigo:     #4f46e5;
  --indigo-2:   #6366f1;
  --indigo-3:   #8b8bff;
  --indigo-soft:#eef0ff;
  --rose:       #f43f5e;
  --rose-soft:  #ffeef1;
  --gold:       #f5b301;
  --gold-soft:  #fff6dc;
  --green:      #0f9d6e;
  --green-soft: #e6f7f1;

  --text:       #131a2b;
  --muted:      #5a6480;

  --radius:     14px;
  --radius-lg:  20px;
  --shadow:     0 1px 2px rgba(10,14,26,.06), 0 10px 28px rgba(10,14,26,.08);
  --shadow-lg:  0 28px 64px rgba(10,14,26,.22);
  --wrap:       1140px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.68;
  color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: #3b34c4; text-underline-offset: 3px; }
a:hover { color: #2a248f; }
h1,h2,h3,h4 { line-height: 1.17; letter-spacing: -.022em; margin: 0 0 .5em; font-weight: 760; color: var(--ink); }
h1 { font-size: clamp(2rem, 1.3rem + 2.7vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.15rem); }
h3 { font-size: clamp(1.14rem, 1.05rem + .5vw, 1.34rem); }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.25em; }
li { margin-bottom: .45em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
:focus-visible { outline: 3px solid var(--indigo-2); outline-offset: 3px; border-radius: 5px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: .7rem 1.1rem; z-index: 999; }
.skip:focus { left: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section--surface { background: var(--surface); }
.section--ink { background: var(--ink); color: #c3cbe0; }
.section--ink h2, .section--ink h3 { color: #fff; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 65ch; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; font-size: .77rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: #4038c9;
  background: var(--indigo-soft); border-radius: 999px; padding: .35rem .85rem; margin-bottom: 1rem;
}
.section--ink .eyebrow, .hero .eyebrow { color: var(--indigo-3); background: rgba(99,102,241,.16); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.93);
  backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-weight: 800; letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; }
.brand span { font-size: 1.05rem; line-height: 1.15; }
.brand small { display: block; font-size: .67rem; font-weight: 600; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: .15rem; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--text); font-weight: 600; font-size: .94rem; padding: .5rem .68rem; border-radius: 9px; white-space: nowrap; }
.nav-links a:hover { background: var(--surface-2); }
.nav-links a[aria-current="page"] { background: var(--indigo-soft); color: #3b34c4; }
/* the CTA in the nav is a button first — beat `.nav-links a` on specificity */
.nav-links a.btn-primary { color: #fff; }
.nav-links a.btn-primary:hover { color: #fff; background: #4038c9; }
.nav-toggle { display: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; font: inherit;
  font-weight: 700; font-size: .97rem; text-decoration: none; padding: .82rem 1.5rem; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer; transition: transform .14s ease, box-shadow .14s ease, background .14s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--indigo); color: #fff; box-shadow: 0 10px 26px rgba(79,70,229,.32); }
.btn-primary:hover { background: #4038c9; color: #fff; }
.btn-light { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.btn-light:hover { color: var(--ink); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.hero .btn-ghost, .section--ink .btn-ghost, .cta-band .btn-ghost { border-color: rgba(255,255,255,.3); color: #fff; }
.hero .btn-ghost:hover, .section--ink .btn-ghost:hover, .cta-band .btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: #c3cbe0;
  background: radial-gradient(880px 460px at 84% -10%, rgba(99,102,241,.34), transparent 62%),
              radial-gradient(680px 400px at 4% 106%, rgba(244,63,94,.18), transparent 60%), var(--ink);
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(3.5rem, 7vw, 6rem); }
.hero h1 { color: #fff; max-width: 17ch; }
.hero .lede { color: #aab3cc; font-size: 1.14rem; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.7rem; }
.pill { display: inline-flex; align-items: center; gap: .45rem; font-size: .83rem; font-weight: 600; color: #d3daea;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.13); padding: .4rem .85rem; border-radius: 999px; }

.answer-box { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  border-left: 4px solid var(--indigo-2); border-radius: var(--radius); padding: 1rem 1.2rem;
  font-size: 1rem; color: #d3daea; max-width: 62ch; }
.answer-box strong { color: #fff; }

/* CSS-drawn card */
.card-art { perspective: 1200px; }
.pcard { position: relative; aspect-ratio: 1.586; width: 100%; max-width: 400px; margin-inline: auto;
  border-radius: 18px; padding: 1.4rem 1.5rem; color: #fff;
  background: linear-gradient(140deg, #6366f1 0%, #4f46e5 46%, #312a9e 100%);
  box-shadow: var(--shadow-lg); transform: rotate(-6deg) rotateY(9deg);
  display: flex; flex-direction: column; justify-content: space-between; }
.pcard::after { content: ""; position: absolute; inset: 0; border-radius: 18px;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.24) 48%, transparent 57%); }
.pcard-top { display: flex; justify-content: space-between; align-items: flex-start; font-weight: 800; letter-spacing: -.02em; }
.pcard-chip { width: 44px; height: 33px; border-radius: 7px; background: linear-gradient(135deg, #ffe08a, #d3a520); }
.pcard-num { font-size: 1.1rem; letter-spacing: .16em; font-weight: 700; opacity: .9; }
.pcard-bottom { display: flex; justify-content: space-between; align-items: flex-end; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .92; }
.pcard-dots { display: flex; gap: .3rem; }
.pcard-dots i { width: 13px; height: 13px; border-radius: 50%; display: block; }
.pcard-bal { position: absolute; left: -34px; bottom: -40px; background: var(--paper); color: var(--ink);
  border-radius: 14px; padding: .7rem 1rem; box-shadow: var(--shadow-lg); }
.pcard-bal b { display: block; font-size: 1.35rem; letter-spacing: -.03em; }
.pcard-bal span { font-size: .71rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.6rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }
.card .more { margin-top: auto; padding-top: .9rem; font-weight: 700; text-decoration: none; color: #3b34c4; }
.card .more::after { content: " →"; }
a.card { text-decoration: none; color: inherit; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--indigo-2); color: inherit; }
.icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--indigo-soft); color: #4038c9; margin-bottom: 1rem; flex: none; }
.icon--rose { background: var(--rose-soft); color: var(--rose); }
.icon--green { background: var(--green-soft); color: var(--green); }
.icon--gold { background: var(--gold-soft); color: #96700a; }

.steps { counter-reset: step; display: grid; gap: 1.25rem; grid-template-columns: repeat(3, 1fr); }
.step { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2.2rem 1.5rem 1.5rem; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -18px; left: 1.5rem;
  width: 38px; height: 38px; border-radius: 50%; background: var(--indigo); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; }
.step h3 { font-size: 1.08rem; }
.step p:last-child { margin-bottom: 0; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { text-align: center; padding: 1.2rem .8rem; border-radius: var(--radius); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.stat b { display: block; font-size: 1.65rem; color: #fff; letter-spacing: -.03em; }
.stat span { font-size: .85rem; color: #949eba; }

/* callouts */
.note { border-radius: var(--radius); padding: 1.15rem 1.3rem; margin: 1.6rem 0;
  border-left: 5px solid var(--indigo); background: var(--indigo-soft); color: #2f2a80; }
.note--warn { border-left-color: var(--rose); background: var(--rose-soft); color: #8d1f34; }
.note--ok { border-left-color: var(--green); background: var(--green-soft); color: #0a5c43; }
.note strong { display: block; margin-bottom: .2rem; }
.note p:last-child { margin-bottom: 0; }

/* table */
.table-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .95rem; }
th, td { text-align: left; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface); font-weight: 700; color: var(--ink); }
tr:last-child td { border-bottom: 0; }

.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 1.9rem; margin-bottom: .6rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f9d6e' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/.78rem no-repeat; }
.ticks--x li::before { background: var(--rose-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f43f5e' stroke-width='3.4' stroke-linecap='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") center/.7rem no-repeat; }

/* FAQ */
.faq { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--paper); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 1.15rem 3rem 1.15rem 1.4rem; font-weight: 700; color: var(--ink); position: relative; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 1.4rem; top: 1.5rem; width: 12px; height: 12px;
  border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted); transform: rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq summary:hover { background: var(--surface); }
.faq .answer { padding: 0 1.4rem 1.3rem; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }

/* breadcrumbs + page head */
.crumbs { font-size: .86rem; color: var(--muted); padding: 1rem 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.crumbs li::after { content: "/"; margin-left: .4rem; color: #b6bccf; }
.crumbs li:last-child::after { content: ""; }
.crumbs a { text-decoration: none; }
.page-head { background: var(--paper); border-bottom: 1px solid var(--line); padding-bottom: clamp(2rem, 4vw, 3rem); }
.page-head h1 { margin-top: .6rem; }
.meta { font-size: .85rem; color: var(--muted); margin-top: 1rem; }

.prose h2 { margin-top: 2.6rem; padding-top: .3rem; }
.prose h3 { margin-top: 1.9rem; }
.prose > *:first-child { margin-top: 0; }

.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.5rem; margin-bottom: 2rem; }
.toc strong { display: block; margin-bottom: .5rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc li { margin-bottom: .25rem; }

.cta-band { background: linear-gradient(135deg, #1c2440, var(--ink)); border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem); color: #c3cbe0; text-align: center; border: 1px solid var(--line-dark); }
.cta-band h2 { color: #fff; }
.cta-band .btn-row { justify-content: center; }

/* footer */
.site-footer { background: var(--ink); color: #8d97b2; padding: 3.5rem 0 2rem; font-size: .93rem; }
.site-footer h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.site-footer a { color: #b8c1d6; text-decoration: none; }
.site-footer a:hover { color: var(--indigo-3); text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: .5rem; }
.foot-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); font-size: .85rem; color: #6f7994; }
.disclaimer { background: #070a12; color: #737e99; font-size: .81rem; padding: 1.1rem 0; border-top: 1px solid var(--line-dark); }

.big404 { font-size: clamp(5rem, 18vw, 11rem); font-weight: 800; letter-spacing: -.06em; color: var(--indigo-2); line-height: 1; margin: 0; }

@media (max-width: 980px) {
  .nav-links a { font-size: .9rem; padding: .5rem .55rem; }
}
@media (max-width: 900px) {
  .hero-grid, .grid-2, .grid-3, .grid-4, .steps, .foot-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .card-art { order: -1; margin-bottom: 1rem; }
  .pcard { transform: none; }
  .pcard-bal { left: 0; bottom: -20px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; margin-left: auto;
    width: 44px; height: 44px; border-radius: 11px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: .6rem 20px 1rem; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .8rem .6rem; border-radius: 10px; }
  .nav-links .btn { margin-top: .6rem; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4, .stats { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media print {
  .site-header, .site-footer, .cta-band, .btn-row, .disclaimer { display: none !important; }
  body { font-size: 12pt; }
}

/* ---------- official outbound button ----------
   Big button label plus a small self-describing second line. The second line is
   inside the anchor on purpose: it keeps the anchor text honest and stops a
   keyword-only anchor from boosting the official site for our target term. */
.btn-official { flex-direction: column; gap: .12rem; line-height: 1.25; padding: .78rem 1.7rem; text-align: center; }
.btn-official .lbl { font-size: 1.02rem; font-weight: 800; }
.btn-official .sub { font-size: .74rem; font-weight: 600; opacity: .78; letter-spacing: .01em; }
.official-note { font-size: .86rem; color: var(--muted); margin: .7rem 0 0; }
.hero .official-note, .section--ink .official-note, .cta-band .official-note { color: #97a3b8; }

/* ---------- footer quick-link strip ----------
   Replaces the old disclaimer band. Descriptive internal anchors here give
   Google clean crawl paths to the money pages; this is the only footer
   content that does anything useful for SEO. Keyword paragraphs would not. */
.quicklinks { background: #070a12; border-top: 1px solid var(--line-dark); padding: 1rem 0; font-size: .86rem; }
.quicklinks .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1.1rem; }
.quicklinks .ql-label { color: #6f7994; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; font-size: .72rem; }
.quicklinks a { color: #aab4c8; text-decoration: none; }
.quicklinks a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 560px) { .quicklinks .wrap { flex-direction: column; align-items: flex-start; gap: .5rem; } }
/* ---------- footer quick-link strip (list version) ----------
   Uses a real <ul>/<li> so the items stay separated even if this stylesheet
   fails to load or is served stale from cache. */
.quicklinks .ql-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.3rem;
}
.quicklinks .ql-list li { margin: 0; position: relative; }
.quicklinks .ql-list li + li::before {
  content: "\00b7"; position: absolute; left: -.72rem; color: #4a5470;
}
@media (max-width: 560px) {
  .quicklinks .ql-list { flex-direction: column; align-items: flex-start; gap: .45rem; }
  .quicklinks .ql-list li + li::before { content: none; }
}

