/* Track My Stack public site, October 2026 redesign.
   Loads after public.css and public-monochrome.css. Colors come only from the
   four appearance palettes; gold and silver mark assets, red marks negatives. */
:root {
  --site-font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --site-bg: var(--appearance-bg, #090909);
  --site-surface: var(--appearance-surface, #141414);
  --site-raised: var(--appearance-raised, #1d1d1d);
  --site-ink: var(--appearance-ink, #f2f2f2);
  --site-muted: var(--appearance-muted, #aaaaaa);
  --site-line: var(--appearance-line, #303030);
  --site-control: var(--appearance-control, #727272);
  --site-action: var(--appearance-action, #efefef);
  --site-action-ink: var(--appearance-action-ink, #101010);
  --site-gold: var(--appearance-gold, #d6b974);
  --site-silver: var(--appearance-silver, #c6c9cd);
  --site-negative: var(--appearance-negative, #f19a94);
  --site-header: var(--appearance-header, #0b0b0bf5);
  --site-radius: 10px;
  --site-wrap: 1180px;
}
html, body { background: var(--site-bg); color: var(--site-ink); }
body { font-family: var(--site-font); font-size: 15px; line-height: 1.6; font-feature-settings: "tnum" 0; }
.site-wrap, .wrap { width: min(var(--site-wrap), calc(100% - 48px)); margin-inline: auto; }
:is(h1, h2, h3) { font-family: var(--site-font); color: var(--site-ink); letter-spacing: -.02em; }
.num, .tabular { font-variant-numeric: tabular-nums; }
.negative { color: var(--site-negative) !important; }
a { color: var(--site-ink); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--site-gold); outline-offset: 3px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--site-header); border-bottom: 1px solid var(--site-line); backdrop-filter: blur(10px); box-shadow: none; }
.site-header .header-inner { display: flex; align-items: center; gap: 28px; min-height: 60px; padding: 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--site-ink); text-decoration: none; font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.brand svg { width: 22px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.brand small { display: block; margin-top: 1px; color: var(--site-muted); font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.public-nav { display: flex; gap: 4px; margin-left: auto; }
.public-nav a, .header-actions a:not(.button) { padding: 8px 12px; border-radius: 7px; color: var(--site-muted); font-size: 14px; font-weight: 550; text-decoration: none; }
.public-nav a:hover, .header-actions a:not(.button):hover { color: var(--site-ink); background: var(--site-raised); }
.public-nav a[aria-current="page"] { color: var(--site-ink); box-shadow: inset 0 -2px 0 var(--site-gold); border-radius: 0; }
.header-actions { display: flex; align-items: center; gap: 6px; }

/* Buttons: one primary, one secondary, one quiet link style everywhere. */
.button, a.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border: 1px solid var(--site-action); border-radius: 8px; background: var(--site-action); color: var(--site-action-ink); font: 650 14px/1 var(--site-font); text-decoration: none; box-shadow: none; transition: filter .15s, background .15s; }
.button:hover { filter: brightness(1.06); }
.button.secondary { background: transparent; color: var(--site-ink); border-color: var(--site-control); }
.button.secondary:hover { background: var(--site-raised); filter: none; }
.button.small { min-height: 36px; padding: 0 14px; font-size: 13px; }
.text-link { color: var(--site-ink); font-weight: 650; font-size: 14px; text-decoration: none; border-bottom: 1px solid var(--site-control); }
.text-link:hover { border-color: var(--site-gold); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.eyebrow { margin: 0 0 12px; color: var(--site-muted); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow .dot { display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--site-gold); vertical-align: 2px; }

/* Shared compact page hero for inner pages. */
.page-hero { max-width: 760px; padding: 44px 0 24px; }
.page-hero h1 { margin: 0; font-size: clamp(32px, 4vw, 44px); line-height: 1.08; font-weight: 750; }
.page-hero h1 br { display: none; }
.page-hero .intro { margin: 14px 0 0; max-width: 640px; color: var(--site-muted); font-size: 17px; line-height: 1.6; }
.page-content { padding-bottom: 56px; }

/* Home */
.home-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 470px); gap: 56px; align-items: center; min-height: min(calc(100svh - 125px), 640px); padding: 32px 0; }
.home-hero h1 { margin: 0; font-size: clamp(40px, 5.2vw, 64px); line-height: 1.02; font-weight: 780; letter-spacing: -.035em; }
.home-hero h1 em { display: block; font-style: normal; color: var(--site-muted); }
.home-hero .lede { max-width: 520px; margin: 20px 0 26px; color: var(--site-muted); font-size: 18px; line-height: 1.55; }
.home-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--site-muted); font-size: 13px; }
.home-facts li::before { content: "✓"; margin-right: 7px; color: var(--site-gold); }

.asset-band { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-block: 1px solid var(--site-line); }
.asset-band div { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 0 18px; border-left: 1px solid var(--site-line); }
.asset-band div:first-child { border-left: 0; padding-left: 0; }
.asset-band strong { display: block; font-size: 14px; }
.asset-band small { color: var(--site-muted); font-size: 11px; letter-spacing: .06em; }

.chip { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border: 1px solid var(--site-line); border-radius: 7px; background: var(--site-raised); color: var(--site-silver); font-size: 11px; font-weight: 750; }
.chip.gold, .chip.btc { color: var(--site-gold); border-color: color-mix(in srgb, var(--site-gold) 45%, var(--site-line)); }
.chip.silver { color: var(--site-silver); }

/* Fictional ledger sample used on the home page. */
.sample-ledger { margin: 0; border: 1px solid var(--site-line); border-radius: 14px; background: var(--site-surface); overflow: hidden; }
.sample-ledger header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--site-line); font-size: 13px; font-weight: 700; }
.sample-tag { padding: 3px 8px; border: 1px solid var(--site-line); border-radius: 5px; color: var(--site-muted); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.sample-total { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 18px 18px 14px; }
.sample-total p { margin: 0; color: var(--site-muted); font-size: 12px; }
.sample-total strong { font-size: 34px; line-height: 1.1; font-weight: 760; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.sample-total dl { display: grid; grid-template-columns: auto auto; gap: 2px 14px; margin: 0; align-self: end; text-align: right; font-size: 12px; }
.sample-total dt { color: var(--site-muted); }
.sample-total dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.alloc { display: flex; height: 6px; gap: 2px; margin: 0 18px 12px; border-radius: 3px; overflow: hidden; }
.alloc span { display: block; }
.alloc .au { background: var(--site-gold); } .alloc .ag { background: var(--site-silver); }
.alloc .pt { background: color-mix(in srgb, var(--site-silver) 70%, var(--site-bg)); } .alloc .pd { background: color-mix(in srgb, var(--site-silver) 45%, var(--site-bg)); }
.sample-rows { margin: 0; padding: 0; list-style: none; }
.sample-rows li { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; padding: 9px 18px; border-top: 1px solid var(--site-line); font-size: 13px; }
.sample-rows small { display: block; color: var(--site-muted); font-size: 11px; }
.sample-rows .val { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.sample-rows .chg { min-width: 62px; font-size: 12px; font-variant-numeric: tabular-nums; text-align: right; }
.sample-rows .btc-row { background: color-mix(in srgb, var(--site-gold) 5%, transparent); }
.sample-ledger figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 11px 18px; border-top: 1px solid var(--site-line); color: var(--site-muted); font-size: 11px; }
.sample-ledger figcaption a { color: var(--site-ink); font-weight: 650; text-decoration: none; }

.site-section { padding: 56px 0; border-top: 1px solid var(--site-line); }
.site-section:first-of-type { border-top: 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.section-head h2 { margin: 0; font-size: clamp(26px, 3vw, 34px); line-height: 1.12; font-weight: 740; }
.section-head p { max-width: 420px; margin: 0; color: var(--site-muted); font-size: 15px; }

.capability-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--site-line); border-radius: var(--site-radius); background: var(--site-surface); }
.capability-grid article { padding: 22px 22px 20px; border-left: 1px solid var(--site-line); }
.capability-grid article:first-child { border-left: 0; }
.capability-grid h3 { margin: 0 0 8px; font-size: 16px; font-weight: 720; }
.capability-grid p { margin: 0 0 14px; color: var(--site-muted); font-size: 14px; line-height: 1.55; }
.capability-grid ul { margin: 0; padding: 0; list-style: none; font-size: 13px; }
.capability-grid li { padding: 5px 0; border-top: 1px solid var(--site-line); }
.capability-grid .k { display: block; margin-bottom: 14px; color: var(--site-gold); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.fact-list { margin: 0; display: grid; gap: 0; }
.fact-list div { display: grid; grid-template-columns: 170px 1fr; gap: 18px; padding: 14px 0; border-top: 1px solid var(--site-line); }
.fact-list div:first-child { border-top: 0; padding-top: 0; }
.fact-list dt { font-weight: 700; font-size: 14px; }
.fact-list dd { margin: 0; color: var(--site-muted); font-size: 14px; }

.faq details { border-top: 1px solid var(--site-line); }
.faq details:last-child { border-bottom: 1px solid var(--site-line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; cursor: pointer; list-style: none; font-weight: 650; font-size: 15px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--site-muted); font-weight: 400; font-size: 18px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 16px; color: var(--site-muted); font-size: 14px; }

.cta-strip { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 auto 56px; padding: 24px 28px; border: 1px solid var(--site-line); border-radius: 12px; background: var(--site-surface); }
.cta-strip h2 { margin: 0; font-size: 22px; font-weight: 720; }
.cta-strip p { margin: 4px 0 0; color: var(--site-muted); font-size: 14px; }

/* Pricing */
.price-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--site-line); border-radius: 12px; background: var(--site-surface); overflow: hidden; }
.price-panel > section { padding: 28px 30px; }
.price-panel > section + section { border-left: 1px solid var(--site-line); }
.price-amount { display: flex; align-items: baseline; gap: 12px; margin: 0 0 6px; }
.price-amount strong { font-size: 56px; line-height: 1; font-weight: 780; letter-spacing: -.04em; }
.price-amount span { color: var(--site-muted); font-size: 15px; }
.price-panel h2 { margin: 0 0 14px; font-size: 18px; font-weight: 720; }
.check-list { margin: 18px 0 24px; padding: 0; list-style: none; columns: 2; column-gap: 24px; font-size: 14px; }
.check-list li { break-inside: avoid; padding: 6px 0 6px 22px; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--site-gold); }
.limit-list { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.limit-list li { display: flex; justify-content: space-between; gap: 18px; padding: 10px 0; border-top: 1px solid var(--site-line); }
.limit-list li:first-child { border-top: 0; }
.limit-list span { color: var(--site-muted); }
.limit-list strong { text-align: right; font-weight: 650; }
.small-note { margin: 14px 0 0; color: var(--site-muted); font-size: 13px; }

/* Security summary */
.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0 0 40px; border: 1px solid var(--site-line); border-radius: 12px; background: var(--site-surface); }
.summary-grid div { padding: 18px 20px; border-left: 1px solid var(--site-line); border-top: 1px solid var(--site-line); }
.summary-grid div:nth-child(3n+1) { border-left: 0; }
.summary-grid div:nth-child(-n+3) { border-top: 0; }
.summary-grid dt { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.summary-grid dt::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--site-silver); }
.summary-grid dt.no::before { background: var(--site-negative); }
.summary-grid dt.yes::before { background: var(--site-gold); }
.summary-grid dd { margin: 6px 0 0; color: var(--site-muted); font-size: 13.5px; line-height: 1.55; }

/* Inner prose pages */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 56px; align-items: start; }
.prose { max-width: 720px; font-size: 15px; }
.prose h2 { margin: 36px 0 10px; font-size: 21px; font-weight: 720; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: color-mix(in srgb, var(--site-ink) 78%, var(--site-bg)); }
.prose strong { color: var(--site-ink); }
.toc { position: sticky; top: 84px; order: 2; padding: 16px 18px; border: 1px solid var(--site-line); border-radius: var(--site-radius); background: var(--site-surface); box-shadow: none; }
.toc a { display: block; padding: 4px 0; color: var(--site-muted); font-size: 13px; text-decoration: none; }
.toc a:hover { color: var(--site-ink); }
:is(.callout, .note, blockquote) { border-left: 2px solid var(--site-gold) !important; background: var(--site-surface) !important; border-radius: 0 8px 8px 0; }
.formula { padding: 12px 16px; border: 1px solid var(--site-line); border-radius: 8px; background: var(--site-surface); font-variant-numeric: tabular-nums; }
.help-card { border: 1px solid var(--site-line) !important; border-radius: var(--site-radius) !important; background: var(--site-surface) !important; box-shadow: none !important; }
:is(input, select, textarea) { font-family: var(--site-font); }

/* Footer */
.site-footer { margin-top: 0; padding: 36px 0 24px; border-top: 1px solid var(--site-line); background: var(--site-bg); }
.site-footer .footer-top { display: flex; justify-content: space-between; gap: 40px; padding-bottom: 24px; }
.footer-brand p { margin: 10px 0 0; color: var(--site-muted); font-size: 13px; }
.footer-links { display: grid; grid-template-columns: repeat(3, auto); gap: 8px 40px; }
.footer-links a { color: var(--site-muted); font-size: 13px; text-decoration: none; }
.footer-links a:hover { color: var(--site-ink); }
.site-footer .footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; border-top: 1px solid var(--site-line); color: var(--site-muted); font-size: 12px; }

@media (max-width: 1080px) {
  .capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capability-grid article:nth-child(3) { border-left: 0; }
  .capability-grid article:nth-child(n+3) { border-top: 1px solid var(--site-line); }
}
@media (max-width: 900px) {
  .home-hero { grid-template-columns: 1fr; gap: 32px; min-height: 0; max-height: none; padding: 32px 0 40px; }
  .two-col, .price-panel, .article-layout { grid-template-columns: 1fr; gap: 28px; }
  .price-panel > section + section { border-left: 0; border-top: 1px solid var(--site-line); }
  .toc { position: static; order: 0; }
  .asset-band { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .asset-band div:nth-child(4) { border-left: 0; padding-left: 0; }
  .asset-band div:nth-child(n+4) { border-top: 1px solid var(--site-line); }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .summary-grid div { border-left: 1px solid var(--site-line) !important; border-top: 1px solid var(--site-line) !important; }
  .summary-grid div:nth-child(odd) { border-left: 0 !important; }
  .summary-grid div:nth-child(-n+2) { border-top: 0 !important; }
}
@media (max-width: 760px) {
  .wrap, .site-wrap { width: calc(100% - 32px); }
  .public-nav { display: none; }
  .header-actions { margin-left: auto; }
  .brand small { display: none; }
  .section-head { flex-direction: column; align-items: start; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-grid article { border-left: 0 !important; border-top: 1px solid var(--site-line); }
  .capability-grid article:first-child { border-top: 0; }
  .fact-list div { grid-template-columns: 1fr; gap: 4px; }
  .check-list { columns: 1; }
  .summary-grid { grid-template-columns: 1fr; }
  .summary-grid div { border-left: 0 !important; border-top: 1px solid var(--site-line) !important; }
  .summary-grid div:first-child { border-top: 0 !important; }
  .cta-strip { flex-direction: column; align-items: start; }
  .site-footer .footer-top, .site-footer .footer-bottom { flex-direction: column; align-items: start; }
  .footer-links { grid-template-columns: repeat(2, auto); gap: 8px 28px; }
  .site-section { padding: 40px 0; }
  .price-panel > section { padding: 22px 20px; }
  .sample-rows li { grid-template-columns: auto 1fr auto; }
  .sample-rows .chg { display: none; }
}
@media (max-width: 420px) {
  .header-actions a:not(.button) { display: none; }
  .asset-band { grid-template-columns: 1fr 1fr; }
  .asset-band div { border-left: 0 !important; padding-left: 0 !important; border-top: 1px solid var(--site-line); }
  .asset-band div:nth-child(-n+2) { border-top: 0; }
  .sample-total { grid-template-columns: 1fr; }
  .sample-total dl { text-align: left; }
}
.faq details { margin: 0; padding: 0; background: none; border-radius: 0; }
.faq details > summary { min-height: 0; padding: 13px 0 !important; margin: 0; }
.home-hero h1 span { white-space: nowrap; }
@media (max-width: 760px) { .capability-grid ul { display: none; } .capability-grid p { margin-bottom: 0; } .home-hero h1 { font-size: 38px; } }
@media (max-width: 760px) { .toc { display: none; } }
