/* Product pages (/product/*.html). Loaded after /styles.css; reuses its tokens and components
   (hero, hero-card, card, mrow, ptable, feature, faq, final) and adds only what those pages need. */

/* ---------- hero ---------- */
.p-hero .hero-copy .display { font-size: clamp(2.4rem, 1.3rem + 3.8vw, 3.9rem); }
.p-hero .lede { max-width: 36rem; }
.hc-row .sub { color: var(--hc-ink-3); font-weight: 500; }

/* product switcher: the five product pages, current one filled */
.p-nav { margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; padding: 1.25rem 0 0; border-top: 1px solid var(--band-line); display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.p-nav-label { margin: 0; font-size: .8rem; font-weight: 700; color: var(--band-ink-3); }
.p-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.p-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1rem; border: 1px solid #3a3a37; border-radius: 999px; color: var(--band-ink-2); font-size: .9rem; font-weight: 600; text-decoration: none; }
.p-nav a:hover { border-color: var(--band-ink-3); color: var(--band-ink); }
.p-nav a[aria-current="page"] { background: var(--accent); border-color: transparent; color: var(--accent-ink); }

/* ---------- copy + figure sections ---------- */
.p-split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 960px) {
  .p-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 4rem; }
  .p-split.flip > :first-child { order: 2; }
}
.p-copy { min-width: 0; max-width: 38rem; }
.p-copy h2 { margin-bottom: 1rem; font-size: clamp(1.9rem, 1.3rem + 2vw, 2.75rem); font-weight: 800; letter-spacing: -0.04em; text-wrap: balance; }
.p-copy p { color: var(--ink-2); }
.p-copy > :last-child { margin-bottom: 0; }
.p-copy a, .p-note a, .faq a { color: var(--accent-strong); font-weight: 600; text-underline-offset: 3px; }
.p-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .55rem; }
.p-list li { position: relative; padding-left: 1.6rem; color: var(--ink-2); }
.p-list li::before { content: ""; position: absolute; left: .2rem; top: .62em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--accent); }

/* illustrative figure card: homepage mini-card rows on a white card */
.p-fig { margin: 0; padding: 1.25rem; min-width: 0; display: flex; flex-direction: column; gap: .5rem; }
@media (max-width: 559.98px) { .p-fig { padding: 1rem .85rem; } }
.p-fig-title { margin: 0 0 .25rem; font-size: .8rem; font-weight: 600; color: var(--ink-3); }
.p-fig .mrow { background: var(--card-2); }
.p-fig .mrow-total { background: #111; }
:root[data-theme="dark"] .p-fig .mrow-total { background: #050505; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .p-fig .mrow-total { background: #050505; } }
.p-fig .mrow span { min-width: 0; }
.p-fig figcaption { margin-top: .5rem; font-size: .8rem; color: var(--ink-3); }
.mrow .sub { display: block; font-size: .78rem; color: var(--ink-3); }
.mrow-total .sub { color: #b9b9b3; }
.mrow-elim { background: var(--elim-soft) !important; color: var(--elim); }
.mrow-gap { margin-top: .35rem; }
.p-fig .ptable { font-size: .78rem; }
@media (min-width: 560px) { .p-fig .ptable { font-size: .88rem; } .p-fig .ptable th, .p-fig .ptable td { padding: .6rem .55rem; } }

.p-two-col { display: grid; gap: 1rem; min-width: 0; }

/* small status chips */
.conf { display: inline-flex; align-items: center; padding: .2rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.conf-high, .st-ok { background: var(--accent-soft); color: var(--accent-strong); }
.conf-med, .st-trip { background: var(--elim-soft); color: var(--elim); }
.p-fig .conf { background-color: var(--card); }
.p-fig .conf-high { color: var(--accent-strong); }

/* elimination suggestions */
.sugg { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem 1rem; padding: .85rem .9rem; border-radius: 12px; background: var(--card-2); font-size: .9rem; }
.sugg-sides { display: grid; gap: .3rem; min-width: 0; }
.sugg-sides span { display: flex; justify-content: space-between; gap: .75rem; }
.sugg-sides b { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sugg-sides small { color: var(--ink-3); }
.sugg-meta { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: .5rem; }
.fake-btn { display: inline-flex; align-items: center; padding: .3rem .7rem; border-radius: 999px; background: var(--ink); color: var(--card); font-size: .75rem; font-weight: 700; white-space: nowrap; }
@media (max-width: 419.98px) { .sugg { grid-template-columns: 1fr; } .sugg-meta { flex-direction: row; align-items: center; } }

/* tabs row, e.g. the Excel worksheet sheets */
.tabs { display: flex; flex-wrap: wrap; gap: .35rem; margin: .25rem 0; }
.tabs span { padding: .35rem .7rem; border-radius: 8px; background: var(--card-2); font-size: .78rem; font-weight: 600; color: var(--ink-2); }
.tabs span:first-child { background: var(--accent-soft); color: var(--accent-strong); }

/* 13-week bar chart: --h is the bar height as a % of 420 ('000) */
.weeks-wrap { position: relative; margin: .5rem 0 0; }
.weeks { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); align-items: end; gap: 4px; height: 10rem; margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line-strong); }
.weeks li { position: relative; height: calc(var(--h) * 1%); border-radius: 6px 6px 2px 2px; background: var(--ink); opacity: .85; }
.weeks li.below { background: var(--elim-dark); opacity: 1; }
.weeks li.low { background: var(--neg); opacity: 1; }
.weeks-min { position: absolute; left: 0; right: 0; bottom: calc(200 / 420 * 100%); border-top: 2px dashed var(--accent-strong); pointer-events: none; }
.weeks-min span { position: absolute; right: 0; bottom: .2rem; padding: 0 .3rem; border-radius: 6px; background: var(--card); font-size: .7rem; font-weight: 700; color: var(--accent-strong); }
.weeks-axis { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 4px; margin: .3rem 0 .25rem; font-size: .66rem; font-weight: 600; color: var(--ink-3); text-align: center; font-variant-numeric: tabular-nums; }

/* method pills (rolling forecast) */
.pills { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.pills li { padding: .35rem .8rem; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); font-size: .82rem; font-weight: 700; color: var(--ink-2); }

/* board pack contents */
.pages { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); counter-reset: page; }
.pages li { counter-increment: page; position: relative; padding: 1.4rem 1.4rem 1.3rem; }
.pages li::before { content: counter(page, decimal-leading-zero); display: block; margin-bottom: .8rem; font: 800 1.6rem/1 var(--font-display); letter-spacing: -0.05em; color: var(--accent-strong); }
.pages h3 { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: .4rem; }
.pages p { margin: 0; font-size: .92rem; color: var(--ink-2); }
.pages .if { display: inline-block; margin-top: .6rem; }

/* two-up cards (Tally agent modes, ledger cards) */
.p-two { display: grid; gap: 1rem; }
@media (min-width: 760px) { .p-two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.p-two > .card, .ledger { padding: 1.6rem; min-width: 0; }
.p-two h3, .ledger h3 { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: .5rem; }
.p-two p { color: var(--ink-2); }
.p-two > .card > :last-child { margin-bottom: 0; }

/* ledger cards on the integrations page */
.ledgers { display: grid; gap: 1rem; }
@media (min-width: 760px) { .ledgers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ledger { display: flex; flex-direction: column; gap: 1rem; }
.ledger h3 { margin: 0; }
.ledger dl { margin: 0; display: grid; gap: .85rem; }
.ledger dt { font-size: .78rem; font-weight: 700; color: var(--ink-3); }
.ledger dd { margin: .15rem 0 0; color: var(--ink-2); font-size: .95rem; }
.ledger .limit dd { color: var(--elim); }

/* sent / not sent lists */
.flow { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.flow li { display: flex; gap: .75rem; align-items: baseline; padding: .7rem .9rem; border-radius: 12px; background: var(--card-2); font-size: .92rem; }
.flow li::before { content: "→"; flex: none; font-weight: 700; color: var(--accent-strong); }
.flow li.no { background: var(--elim-soft); color: var(--elim); }
.flow li.no::before { content: "×"; color: var(--elim); }

.ledger .logo-plate { align-self: flex-start; }
.feature code { padding: .1rem .35rem; border-radius: 6px; background: #2a2a27; color: var(--band-ink); font-size: .88em; overflow-wrap: anywhere; }
.dark .flow li { background: #242422; color: var(--band-ink); }
.dark .flow li::before { color: var(--accent); }
.dark .flow li.no { background: #2a1d0f; color: var(--elim-dark); }
.dark .flow li.no::before { color: var(--elim-dark); }

/* not supported yet */
.nope { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.nope li { padding: .35rem .8rem; border-radius: 999px; border: 1px dashed var(--line-strong); color: var(--ink-3); font-size: .85rem; font-weight: 600; }

/* plain notes, e.g. Division I */
.p-note { margin-top: 1.25rem; padding: 1.2rem 1.4rem; border-radius: 18px; background: var(--elim-soft); color: var(--ink-2); }
.p-note strong { color: var(--elim); }
.p-note > :last-child { margin-bottom: 0; }
.dark .p-note { background: #2a1d0f; color: var(--band-ink-2); }
.dark .p-note strong { color: var(--elim-dark); }

/* cross-links to the other product pages */
.p-links { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.p-links a { display: flex; flex-direction: column; gap: .4rem; min-height: 100%; padding: 1.4rem; text-decoration: none; color: var(--ink); }
.p-links h3 { display: flex; justify-content: space-between; gap: 1rem; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.03em; }
.p-links h3::after { content: "→"; color: var(--accent-strong); transition: transform .2s; }
.p-links p { margin: 0; font-size: .92rem; color: var(--ink-2); }
@media (hover: hover) {
  .p-links a { transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
  .p-links a:hover { transform: translateY(-4px); }
  .p-links a:hover h3::after { transform: translateX(4px); }
}

/* feature cards inside a dark band can hold a figure table */
.feature .ptable { font-size: .78rem; }
.feature .ptable th, .feature .ptable td { border-color: var(--band-line); }
.feature .ptable thead th { color: var(--band-ink-3); }

/* Long text values in figure rows wrap on the narrowest phones instead of widening the page */
@media (max-width: 400px) { .mrow b { white-space: normal; text-align: right; } }
