/* donaldjdean.com — one stylesheet, no framework. Mobile-first. */
:root {
  --bg: #0d1117;
  --bg-2: #11161d;
  --card: #161b22;
  --card-2: #1c2330;
  --line: #2a313c;
  --text: #e6edf3;
  --muted: #9aa4b2;
  --dim: #6b7685;
  --green: #2ecc71;
  --gold: #f5b301;
  --pink: #ff4f8b;
  --red: #ff5c5c;
  --blue: #3b82f6;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 12px;
  --wrap: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #ffd04d; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 6vw, 3rem); }
h2 { font-size: clamp(1.35rem, 4vw, 1.8rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap.wide { max-width: 1240px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: #000; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* Header / nav */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(13, 17, 23, .92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding-top: 10px; padding-bottom: 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-family: var(--mono); font-size: 1rem; padding: 4px 0; }
.brand:hover { color: var(--text); }
.brand svg { width: 26px; height: 26px; flex: none; }
.nav { width: 100%; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.nav::-webkit-scrollbar { display: none; }
.nav ul { display: flex; flex-wrap: wrap; gap: 0 2px; list-style: none; margin: 0 -8px; padding: 0; white-space: nowrap; }
.nav a { display: block; padding: 8px 8px 10px; color: var(--muted); text-decoration: none; font-size: .92rem; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--gold); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  background: var(--green); color: #04150b;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  border-radius: 10px; border: 0;
  box-shadow: 0 0 0 1px rgba(46, 204, 113, .4), 0 8px 24px rgba(46, 204, 113, .18);
  transition: transform .08s ease, background .15s ease;
}
.btn:hover { background: #3ee07f; color: #04150b; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: .88rem; box-shadow: none; }
.cta { margin: 28px 0 8px; text-align: center; }
.cta .btn { width: 100%; max-width: 360px; }
.fallback { display: block; margin-top: 10px; font-size: .9rem; color: var(--muted); }
.fallback a { color: var(--muted); }
.fallback a:hover { color: var(--text); }

/* Sections */
main { display: block; }
.section { padding: 40px 0; }
.section + .section { border-top: 1px solid var(--line); }
.hero { padding: 48px 0 32px; }
.eyebrow { font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.lede { font-size: 1.12rem; color: #c9d1d9; max-width: 640px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.grid { display: grid; gap: 16px; }

/* Level legend chips */
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.chip::before { content: ""; width: 14px; height: 3px; border-radius: 2px; background: currentColor; }
.chip.ceiling { color: var(--gold); }
.chip.flip { color: var(--blue); }
.chip.floor { color: var(--pink); }
.chip.target { color: var(--green); }

/* Proof stat */
.proof { display: grid; gap: 6px; padding: 24px; border-left: 3px solid var(--green); }
.proof .big { font-family: var(--mono); font-size: clamp(1.6rem, 6vw, 2.4rem); font-weight: 700; line-height: 1.15; }
.proof .big b { color: var(--green); }
.proof .range { font-family: var(--mono); color: var(--muted); }
.proof.empty { border-left-color: var(--dim); }

/* Receipts table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table.receipts { width: 100%; border-collapse: collapse; font-size: .88rem; }
.receipts th, .receipts td { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.receipts thead th { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--bg-2); font-weight: 600; white-space: nowrap; }
.receipts tbody tr:last-child td { border-bottom: 0; }
.receipts .tk { font-family: var(--mono); font-weight: 700; color: var(--text); white-space: nowrap; }
.receipts td.lvl { white-space: normal; min-width: 150px; }
.receipts td.oc { min-width: 120px; }
.receipts td.src { white-space: nowrap; }
.receipts .lvl, .receipts .dt { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.receipts .lvl .t { color: var(--gold); }
.receipts .note { display: block; color: var(--dim); font-size: .8rem; margin-top: 2px; white-space: normal; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-family: var(--mono); font-size: .78rem; font-weight: 700; white-space: nowrap; border: 1px solid currentColor; }
.badge.hit { color: var(--green); background: rgba(46, 204, 113, .1); }
.badge.miss { color: var(--pink); background: rgba(255, 79, 139, .1); }
.badge.testing { color: var(--pink); background: transparent; border-style: dashed; }
.badge.open { color: var(--blue); background: rgba(59, 130, 246, .1); }
.badge.nofill { color: var(--muted); }
.empty-state { padding: 28px 20px; text-align: center; color: var(--muted); }

/* Mobile: table rows become cards */
@media (max-width: 719px) {
  table.receipts thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.receipts, .receipts tbody, .receipts tr, .receipts td { display: block; width: 100%; }
  .receipts tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .receipts tbody tr:last-child { border-bottom: 0; }
  .receipts td { padding: 0; border: 0; margin-top: 4px; }
  .receipts td[data-label] { display: grid; grid-template-columns: 84px 1fr; align-items: baseline; gap: 8px; }
  .receipts td[data-label]::before { content: attr(data-label); color: var(--dim); font-family: var(--sans); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
  .receipts td.tk { font-size: 1.1rem; margin-top: 0; }
  .receipts td.lvl, .receipts td.dt { white-space: normal; }
  .receipts td.blank { display: none; }
  .receipts td.dt .note { display: block; margin: 0; }
  .receipts td.oc { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 6px 0 8px; }
  .receipts td.oc .note { display: inline; margin: 0; font-size: .82rem; color: var(--muted); }
}

/* Filter buttons (receipts) */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.filters button { font: inherit; font-size: .85rem; font-family: var(--mono); color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; min-height: 36px; }
.filters button[aria-pressed="true"] { color: var(--text); border-color: var(--gold); }

/* Feature list */
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.features li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.features h3 { margin-bottom: .3em; }
.features p { margin: 0; color: #c9d1d9; }
.features .k { font-family: var(--mono); font-size: .75rem; color: var(--gold); letter-spacing: .06em; text-transform: uppercase; display: block; margin-bottom: 4px; }

/* Sample figure */
figure.sample { margin: 0; }
figure.sample img { border-radius: var(--radius); border: 1px solid var(--line); }
figure.sample figcaption { margin-top: 10px; font-size: .88rem; color: var(--muted); }
.aged { display: inline-block; font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: #000; background: var(--gold); padding: 2px 8px; border-radius: 4px; margin-right: 6px; }

/* Method diagram */
.ladder { font-family: var(--mono); font-size: .9rem; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ladder div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-left: 4px solid; background: var(--card); }
.ladder div + div { border-top: 1px solid var(--line); }
.ladder .c { border-left-color: var(--gold); }
.ladder .s { border-left-color: var(--text); background: var(--card-2); }
.ladder .f { border-left-color: var(--blue); }
.ladder .p { border-left-color: var(--pink); }
.ladder b { font-weight: 700; }
.ladder .c b { color: var(--gold); } .ladder .f b { color: var(--blue); } .ladder .p b { color: var(--pink); }
.path { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--mono); margin: 12px 0 16px; }
.path span { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; background: var(--card); text-align: center; line-height: 1.25; }
.path span small { display: block; color: var(--muted); font-size: .72rem; }
.path span.tgt { border-color: var(--gold); color: var(--gold); }
.path i { color: var(--dim); font-style: normal; }

/* FAQ */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 18px; }
.faq details + details { margin-top: 10px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--gold); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 16px; color: #c9d1d9; }
.faq details > div p:last-child { margin-bottom: 0; }
ol.steps { padding-left: 1.3em; }
ol.steps li { margin-bottom: .5em; }

/* About */
.about-grid { display: grid; gap: 24px; align-items: start; }
.photo-ph { aspect-ratio: 1 / 1; width: 100%; max-width: 240px; border-radius: 50%; border: 2px dashed var(--line); display: grid; place-items: center; text-align: center; color: var(--dim); font-family: var(--mono); font-size: .8rem; padding: 20px; background: var(--card); }
.placeholder { border: 1px dashed var(--gold); border-radius: var(--radius); padding: 16px 18px; background: rgba(245, 179, 1, .06); }
.placeholder .tag { font-family: var(--mono); font-size: .75rem; color: var(--gold); font-weight: 700; letter-spacing: .05em; display: block; margin-bottom: 6px; }
.stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.stats li { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.stats b { font-family: var(--mono); font-size: 1.2rem; display: block; color: var(--text); }
.stats span { font-size: .8rem; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 28px 0 40px; color: var(--muted); font-size: .88rem; background: var(--bg-2); }
.site-footer .disclaimer { color: var(--text); font-weight: 600; margin-bottom: 10px; }
.site-footer nav ul { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; padding: 0; margin: 0 0 12px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

@media (min-width: 720px) {
  .wrap { padding: 0 28px; }
  .site-header .wrap { flex-wrap: nowrap; padding-top: 0; }
  .nav { width: auto; order: 2; }
  .nav ul { flex-wrap: nowrap; margin: 0; }
  .nav a { padding: 20px 10px 18px; }
  .brand { margin-right: auto; }
  .section { padding: 56px 0; }
  .hero { padding: 72px 0 40px; }
  .cta .btn { width: auto; }
  .features { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 240px 1fr; }
  .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
[hidden] { display: none !important; }
.table-wrap + p { margin-top: 10px; }
.receipts .num { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.receipts td.blank { color: var(--dim); }
.receipts td.dt .note { white-space: nowrap; }
.pledge { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.pledge li { padding: 10px 14px; border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 8px; background: var(--card); }
.todo { font-family: var(--mono); font-size: .7rem; vertical-align: middle; color: #000; background: var(--gold); padding: 2px 8px; border-radius: 4px; letter-spacing: .05em; }
.receipts.hashes td { white-space: normal; }

/* ===== Chart-first layout ===== */
.hero-tight { padding: 28px 0 16px; }
.hero-tight h1 { font-size: clamp(1.6rem, 5vw, 2.5rem); margin-bottom: .3em; }
.hero-tight .lede { font-size: 1rem; margin: 0; }
.gallery-sec { padding: 8px 0 32px; }
.shot { margin: 0 0 14px; break-inside: avoid; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.shot a.zoom { display: block; background: #0b0e13; cursor: zoom-in; }
.shot img { width: 100%; height: auto; transition: transform .2s ease; }
.shot a.zoom:hover img { transform: scale(1.02); }
.shot figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 8px 10px; font-size: .8rem; color: var(--muted); }
.shot figcaption .d { margin-left: auto; font-family: var(--mono); font-size: .72rem; color: var(--dim); white-space: nowrap; }
.shot figcaption .d a { color: var(--dim); }
.kind { font-family: var(--mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; padding: 2px 7px; border-radius: 4px; border: 1px solid currentColor; }
.k-tv { color: var(--text); } .k-heatmap { color: var(--green); } .k-4week { color: var(--blue); }
.k-pricepath { color: var(--gold); } .k-board { color: var(--pink); } .k-call { color: var(--pink); }
.shot.feature { margin-bottom: 14px; }
.gallery { columns: 2; column-gap: 12px; }
.gallery .shot { margin-bottom: 12px; display: inline-block; width: 100%; }
.gallery .shot figcaption span:not(.kind):not(.d) { display: none; }
.grid-2 { display: grid; gap: 14px; }
.tag-free, .tag-subs { font-family: var(--mono); font-size: .75rem; vertical-align: middle; padding: 3px 9px; border-radius: 4px; margin-right: 6px; }
.tag-free { background: rgba(46, 204, 113, .15); color: var(--green); }
.tag-subs { background: rgba(245, 179, 1, .15); color: var(--gold); }
.product { display: grid; gap: 14px; padding: 22px 0; border-top: 1px solid var(--line); }
.product:first-of-type { border-top: 0; }
.ptext h3 { font-size: 1.2rem; }
.ptext p { color: #c9d1d9; margin-bottom: .6em; }
.pmedia .shot { margin-bottom: 10px; }
.slot { border: 1px dashed var(--line); border-radius: var(--radius); padding: 28px 18px; text-align: center; color: var(--dim); font-size: .9rem; }
ul.tight { padding-left: 1.2em; margin: 0 0 12px; } ul.tight li { margin-bottom: 4px; }
.oneline { margin: 8px 0; }
.oneline .btn { max-width: 520px; }

/* Receipt cards (home teaser) */
.rcards { display: grid; gap: 12px; margin-top: 16px; }
.rcard { display: grid; grid-template-columns: 1fr; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rcard .rthumb { display: block; background: #0b0e13; cursor: zoom-in; }
.rcard .rthumb img { width: 100%; height: auto; }
.rcard .rthumb.none { display: grid; place-items: center; color: var(--dim); font-size: .8rem; min-height: 80px; cursor: default; }
.rcard .rbody { padding: 12px 14px; display: grid; gap: 4px; }
.rcard .rtop { display: flex; justify-content: space-between; align-items: center; }
.rcard .tk { font-family: var(--mono); font-weight: 700; font-size: 1.05rem; }
.rcard .lvl .t { color: var(--gold); }

/* Ledger chart thumbs */
.receipts td.ch { width: 200px; }
.receipts td.ch a.thumb { display: block; width: 180px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); cursor: zoom-in; }
.receipts td.ch img { width: 100%; height: auto; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 50; background: rgba(5, 7, 10, .94); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; }
.lb[hidden] { display: none !important; }
.lb img { max-width: 100%; max-height: calc(100vh - 90px); width: auto; height: auto; border-radius: 8px; }
.lb .lb-cap { color: var(--muted); font-size: .85rem; margin-top: 10px; text-align: center; }
.lb button { position: absolute; top: 10px; right: 12px; font: 600 1rem var(--mono); color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; cursor: pointer; }

@media (max-width: 719px) {
  .receipts td.ch { width: auto; }
  .receipts td.ch[data-label] { display: block; }
  .receipts td.ch[data-label]::before { display: none; }
  .receipts td.ch a.thumb { width: 100%; margin: 8px 0 6px; }
}
@media (min-width: 720px) {
  .hero-tight { padding: 40px 0 20px; }
  .gallery { columns: 3; column-gap: 14px; }
  .gallery .shot { margin-bottom: 14px; }
  .gallery .shot figcaption span:not(.kind):not(.d) { display: inline; }
  .grid-2 { grid-template-columns: 1fr 1fr; align-items: start; }
  .product { grid-template-columns: 1fr 1.6fr; align-items: center; gap: 28px; }
  .rcard { grid-template-columns: minmax(260px, 1.3fr) 1fr; align-items: center; }
  .rcards { gap: 14px; }
}
@media (max-width: 719px) {
  .gallery .shot figcaption { padding: 5px 7px; }
  .gallery .shot figcaption .d { display: none; }
  .gallery .kind { font-size: .58rem; padding: 1px 5px; }
  .hero-tight h1 { font-size: 1.5rem; }
}
.shot.tall { max-width: 460px; }
.receipts td.ch { width: 230px; } .receipts td.ch a.thumb { width: 210px; }
@media (max-width: 719px) { .receipts td.ch { width: auto; } .receipts td.ch a.thumb { width: 100%; } }
/* Charts lead: media first in each product block */
.product .pmedia { order: -1; }
@media (min-width: 720px) {
  .product { grid-template-columns: 1.6fr 1fr; }
  .grid-2 { display: block; columns: 2; column-gap: 14px; }
  .grid-2 .shot { display: inline-block; width: 100%; margin-bottom: 14px; }
}

/* Crypto tile, options strip (10/03) */
.tile { display: inline-block; width: 100%; margin: 0 0 12px; break-inside: avoid; background: var(--card); border: 1px solid var(--gold); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); }
.tile img { width: 100%; height: auto; opacity: .9; transition: opacity .2s ease; }
.tile:hover img { opacity: 1; }
.tile-t { display: block; padding: 10px 12px 0; font-weight: 700; font-size: 1.15rem; color: var(--gold); }
.tile-s { display: block; padding: 2px 12px 12px; color: var(--muted); font-size: .85rem; }
.strip { display: grid; gap: 14px; }
.strip-media .shot { margin: 0; }
.strip-text .rcards { margin-top: 0; }
.optnote { padding: 16px 18px; line-height: 1.5; }
.contract { color: var(--gold); font-size: .9rem; margin-left: 4px; }
@media (min-width: 720px) {
  .strip { grid-template-columns: 1.2fr 1fr; align-items: center; }
  .tile { margin-bottom: 14px; }
}
.gallery.g3 { columns: auto; display: grid; grid-template-columns: 1fr; gap: 12px; align-items: start; }
.gallery.g3 .shot { margin: 0; }
.shot.feature.mnav { max-width: 980px; margin-left: auto; margin-right: auto; }
@media (min-width: 720px) { .gallery.g3 { grid-template-columns: repeat(3, 1fr); gap: 14px; } .shot.feature.mnav { margin-bottom: 18px; } }
