/* Inner-page blocks in the v5 homepage style (Nov 2026).
   Loaded after kindlewood-v4.css on pages that use kb- classes.
   Motion draws, slides or fills. Nothing fades in. Every block starts from its
   finished state, so the page reads fine with no JS or with reduced motion. */

.kb { --kb-ease: cubic-bezier(.16, 1, .3, 1); --kb-card: 24px; --kb-green: var(--green-ink, #0B7A55); }
.kb h1, .kb h2, .kb h3 { text-wrap: balance; }
.kb p, .kb li { text-wrap: pretty; }
.kb-sec { padding: var(--sec, clamp(4.5rem, 8vw, 7rem)) 0; }
.kb-sec-tight { padding: var(--sec-tight, clamp(3rem, 5vw, 4.5rem)) 0; }
.kb-sec-paper { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kb-head { max-width: 46rem; margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }
.kb-title { font-family: var(--font-display, 'Geist', system-ui, sans-serif); font-weight: 750; font-size: clamp(1.9rem, 3.4vw, 2.9rem) !important; letter-spacing: -.035em; line-height: 1.06 !important; color: var(--ink); margin: 0 !important; text-align: left !important; max-width: 20em; }
.kb-lede { margin: 1rem 0 0; color: var(--ink-2); font-size: 1.05rem; line-height: 1.65; max-width: 40rem; }
.kb-lede a, .kb-inline a { color: var(--ink); font-weight: 550; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.kb-lede a:hover, .kb-inline a:hover { color: var(--accent-ink, #A84E14); }

/* drawn tick, shared */
.kb-tick { width: 16px; height: 16px; flex: none; overflow: visible; }
.kb-tick path { fill: none; stroke: var(--kb-green); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset .5s var(--kb-ease); transition-delay: calc(var(--i, 0) * 120ms + 120ms); }
.js [data-kb-view]:not(.is-in) .kb-tick path { stroke-dashoffset: 1; }

/* ---------- hero: copy left, object right ---------- */
.kb-hero-inner { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.kb-hero { margin-top: -78px; padding: calc(78px + clamp(2.75rem, 6vw, 5rem)) 0 clamp(3rem, 6vw, 4.75rem); background: var(--paper); border-bottom: 1px solid var(--line); }
.kb-h1 { font-family: var(--font-display, 'Geist', system-ui, sans-serif) !important; font-weight: 750 !important; font-size: clamp(2.5rem, 5vw, 4.3rem) !important; letter-spacing: -.045em !important; line-height: 1 !important; color: var(--ink); margin: 0 !important; text-align: left; max-width: 12em; }
.kb-hero-sub { margin: 1.4rem 0 0; font-size: clamp(1.05rem, 1.35vw, 1.18rem); color: var(--ink-2); line-height: 1.65; max-width: 34rem; }
.kb-hero-sub strong { color: var(--ink); font-weight: 650; }
.kb-pen { position: relative; white-space: nowrap; }
.kb-pen svg { position: absolute; left: -2%; bottom: -.16em; width: 104%; height: .3em; overflow: visible; pointer-events: none; }
.kb-pen path { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset .9s var(--kb-ease) .3s; }
.js [data-kb-view]:not(.is-in) .kb-pen path { stroke-dashoffset: 1; }
.kb-jump { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.9rem; padding: 0; list-style: none; }
.kb-jump a { display: inline-flex; align-items: baseline; gap: .55rem; padding: .7rem 1.05rem; border: 1px solid var(--line-2, rgba(11,22,51,.18)); border-radius: 14px; background: var(--surface); color: var(--ink); font-weight: 600; text-decoration: none; transition: border-color .2s, transform .25s var(--kb-ease); }
.kb-jump a span { font-family: var(--font-mono); font-size: .82rem; font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.kb-jump a:hover { border-color: var(--ink); transform: translateY(-2px); }
.kb-facts { display: flex; flex-wrap: wrap; gap: .7rem 1.5rem; margin: 2rem 0 0; padding: 1.3rem 0 0; border-top: 1px solid var(--line); list-style: none; }
.kb-facts li { display: inline-flex; align-items: center; gap: .5rem; font-size: .93rem; font-weight: 500; color: var(--ink); }

/* three real covers that slide out into a fan */
.kb-fan { position: relative; aspect-ratio: 1 / .92; max-width: 30rem; width: 100%; margin-left: auto; }
.kb-fan img { position: absolute; left: 50%; top: 6%; width: 46%; height: auto; border-radius: 8px; border: 1px solid var(--line); background: #fff; box-shadow: 0 18px 40px rgba(11,22,51,.16), 0 2px 6px rgba(11,22,51,.08); transform-origin: 50% 120%; transition: transform .9s var(--kb-ease); }
.kb-fan img:nth-child(1) { transform: translateX(-50%) translateX(-50%) rotate(-8deg); transition-delay: .15s; }
.kb-fan img:nth-child(2) { transform: translateX(-50%) translateX(50%) rotate(8deg); transition-delay: .25s; }
.kb-fan img:nth-child(3) { transform: translateX(-50%) translateY(-3%); z-index: 2; }
.js [data-kb-view]:not(.is-in) .kb-fan img { transform: translateX(-50%); }

/* ---------- chooser table (a real table, so it reads well to people and machines) ---------- */
.kb-tablewrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--kb-card); overflow: hidden; }
.kb-pick { width: 100%; border-collapse: collapse; font-size: 1rem; }
.kb-pick th, .kb-pick td { padding: 1.05rem 1.5rem; text-align: left; vertical-align: baseline; line-height: 1.5; }
.kb-pick thead th { font-size: .85rem; font-weight: 600; color: var(--ink-3); padding-top: 1.25rem; padding-bottom: .9rem; }
.kb-pick tbody tr + tr > * { border-top: 1px solid var(--line); }
.kb-pick tbody th[scope="row"] { font-weight: 650; color: var(--ink); width: 30%; }
.kb-pick tbody th[scope="row"] a { color: inherit; text-decoration: none; }
.kb-pick tbody th[scope="row"] a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.kb-pick td { color: var(--ink-2); }
.kb-pick .kb-num { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); white-space: nowrap; width: 1%; }
.kb-pick .kb-num s { position: relative; text-decoration: none; font-weight: 500; color: var(--ink-3); margin-right: .55rem; }
.kb-pick .kb-go { white-space: nowrap; width: 1%; text-align: right; }
.kb-go a { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .93rem; color: var(--ink); text-decoration: none; }
.kb-go a svg { width: 14px; height: 14px; transition: transform .3s var(--kb-ease); }
.kb-go a:hover svg { transform: translateY(3px); }
.kb-pick .kb-pick-group th { background: var(--ink); color: #fff; font-size: .85rem; font-weight: 650; letter-spacing: .01em; padding: .6rem 1.5rem; border-top: 0; }
.kb-pick .kb-best th[scope="row"]::after { content: "Best value"; display: inline-block; margin-left: .6rem; font-family: var(--font-mono); font-size: .72rem; font-weight: 500; color: var(--accent-ink, #A84E14); }

/* the crossed-out old price: a pen line drawn across it */
.kb-was { position: relative; text-decoration: none; color: var(--ink-3); font-weight: 500; white-space: nowrap; }
.kb-was::after, .kb-pick .kb-num s::after { content: ""; position: absolute; left: -3px; right: -3px; top: 52%; height: 2px; border-radius: 2px; background: var(--accent); transform-origin: left; transition: transform .55s var(--kb-ease) .25s; }
.js [data-kb-view]:not(.is-in) .kb-was::after, .js [data-kb-view]:not(.is-in) .kb-num s::after { transform: scaleX(0); }

/* ---------- product rows ---------- */
.kb-notes { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--kb-card); overflow: hidden; }
.kb-note { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) 13rem; gap: 1.25rem clamp(1.25rem, 3vw, 2.5rem); align-items: start; padding: clamp(1.4rem, 2.6vw, 2.1rem); scroll-margin-top: 110px; }
.kb-note + .kb-note { border-top: 1px solid var(--line); }
.kb-note-cover img { display: block; width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line); background: #fff; box-shadow: 0 8px 18px rgba(11,22,51,.10); transition: transform .45s var(--kb-ease); }
.kb-note:hover .kb-note-cover img { transform: translateY(-4px) rotate(-1.5deg); }
.kb-note h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; color: var(--ink); margin: 0; }
.kb-note-sub { margin: .3rem 0 0; font-family: var(--font-mono); font-size: .8rem; color: var(--ink-3); }
.kb-note-desc { margin: .7rem 0 0; color: var(--ink-2); line-height: 1.6; max-width: 36rem; }
.kb-note-list { list-style: none; margin: .9rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem 1.5rem; max-width: 38rem; }
.kb-note-list li { position: relative; padding-left: 1.05rem; font-size: .95rem; color: var(--ink); line-height: 1.45; }
.kb-note-list li::before { content: ""; position: absolute; left: 0; top: .58em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.kb-note-list .kb-wide { grid-column: 1 / -1; color: var(--ink-2); }
.kb-note-buy { display: flex; flex-direction: column; align-items: stretch; gap: .65rem; }
.kb-price { margin: 0; display: flex; align-items: baseline; gap: .6rem; font-variant-numeric: tabular-nums; }
.kb-price b { font-size: 1.9rem; font-weight: 750; letter-spacing: -.035em; color: var(--ink); line-height: 1; }
.kb-save { margin: -.2rem 0 0; font-size: .9rem; font-weight: 600; color: var(--kb-green); }
.kb-note-buy .btn { justify-content: center; width: 100%; }
.kb-note-fine { margin: 0; font-size: .82rem; color: var(--ink-3); text-align: center; }
.kb-note-bundle { background: var(--ink); }
.kb-note-bundle h3, .kb-note-bundle .kb-price b, .kb-note-bundle .kb-note-list li { color: #fff; }
.kb-note-bundle .kb-note-desc, .kb-note-bundle .kb-note-sub, .kb-note-bundle .kb-note-fine, .kb-note-bundle .kb-was { color: rgba(255,255,255,.72); }
.kb-note-bundle .kb-save { color: #7BD3B0; }
.kb-note-bundle .kb-note-list .kb-wide { color: rgba(255,255,255,.72); }
.kb-note-bundle .kb-note-cover img { border-color: rgba(255,255,255,.14); }
.kb-note-bundle .btn.btn-primary { background: #fff !important; color: var(--ink) !important; box-shadow: none !important; }
.kb-note-bundle .btn.btn-primary:hover { background: var(--paper, #F4F5F8) !important; }

/* ---------- three steps on one ruled line ---------- */
.kb-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-2, rgba(11,22,51,.18)); counter-reset: kb; }
.kb-steps li { counter-increment: kb; padding: 1.4rem 1.75rem 0 0; position: relative; }
.kb-steps li + li { padding-left: 1.75rem; border-left: 1px solid var(--line); }
.kb-steps li::before { content: counter(kb, decimal-leading-zero); display: block; font-family: var(--font-mono); font-size: .85rem; color: var(--accent-ink, #A84E14); margin-bottom: .6rem; }
.kb-steps li::after { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: var(--ink); transform-origin: left; transition: transform .8s var(--kb-ease); transition-delay: calc(var(--i, 0) * 220ms); }
.js [data-kb-view]:not(.is-in) .kb-steps li::after, .js .kb-steps[data-kb-view]:not(.is-in) li::after { transform: scaleX(0); }
.kb-steps b { display: block; font-size: 1.12rem; font-weight: 700; letter-spacing: -.015em; color: var(--ink); }
.kb-steps p { margin: .4rem 0 0; color: var(--ink-2); line-height: 1.55; font-size: .98rem; }

/* ---------- key facts: question on the left, straight answer on the right ---------- */
.kb-keyfacts { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--kb-card); overflow: hidden; }
.kb-keyfacts > div { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: .4rem 2rem; padding: 1.1rem clamp(1.25rem, 2.5vw, 1.9rem); }
.kb-keyfacts > div + div { border-top: 1px solid var(--line); }
.kb-keyfacts dt { font-weight: 650; color: var(--ink); }
.kb-keyfacts dd { margin: 0; color: var(--ink-2); line-height: 1.6; }
.kb-keyfacts dd strong { color: var(--ink); font-weight: 650; }

/* ---------- results ledger (same idea as the homepage) ---------- */
.kb-split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.kb-ledger { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--kb-card); }
.kb-ledger li { display: grid; grid-template-columns: 1fr auto; gap: .8rem 2rem; align-items: center; padding: 1.4rem clamp(1.25rem, 2.5vw, 2rem); }
.kb-ledger li + li { border-top: 1px solid var(--line); }
.kb-who { display: flex; flex-direction: column; gap: .15rem; }
.kb-who b { font-weight: 650; color: var(--ink); }
.kb-who span { font-size: .88rem; color: var(--ink-3); }
.kb-change { display: flex; align-items: center; gap: .9rem; font-variant-numeric: tabular-nums; }
.kb-change .kb-was { font-size: 1.05rem; }
.kb-ledger .kb-was::after { transition-delay: calc(var(--i, 0) * 140ms + 150ms); }
.kb-change svg { width: 18px; height: 18px; color: var(--ink-3); flex: none; transition: transform .5s var(--kb-ease); transition-delay: calc(var(--i, 0) * 140ms + 300ms); }
.js [data-kb-view]:not(.is-in) .kb-change svg { transform: translateX(-8px); }
.kb-now { font-size: clamp(1.4rem, 2vw, 1.75rem); font-weight: 750; letter-spacing: -.03em; color: var(--ink); white-space: nowrap; }

/* ---------- comparison table with our column filled in ---------- */
.kb-compare { width: 100%; border-collapse: collapse; }
.kb-compare th, .kb-compare td { padding: 1.1rem 1.5rem; text-align: left; vertical-align: top; line-height: 1.5; }
.kb-compare thead th { font-size: .85rem; font-weight: 600; color: var(--ink-3); }
.kb-compare tbody tr > * { border-top: 1px solid var(--line); }
.kb-compare tbody th { font-weight: 650; color: var(--ink); width: 24%; }
.kb-compare td { color: var(--ink-2); }
.kb-compare .kb-us { background: var(--ink); color: #fff; font-weight: 500; border-top-color: rgba(255,255,255,.1) !important; }
.kb-compare thead .kb-us { color: #fff; font-weight: 700; font-size: .95rem; }
.kb-compare .kb-us .kb-tick { display: inline-block; vertical-align: -2px; margin-right: .5rem; }
.kb-compare .kb-us .kb-tick path { stroke: #7BD3B0; }
.kb-source { margin: .9rem 0 0; font-size: .85rem; color: var(--ink-3); }

/* ---------- a marked essay, for the essay marker block ---------- */
.kb-marked { background: var(--surface); border: 1px solid var(--line); border-radius: var(--kb-card); padding: clamp(1.4rem, 2.6vw, 2rem); }
.kb-marked-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.kb-marked-top b { font-size: 2.4rem; font-weight: 750; letter-spacing: -.04em; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.kb-marked-top b small { font-size: 1rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.kb-marked-top span { font-family: var(--font-mono); font-size: .8rem; color: var(--ink-3); }
.kb-bars { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: .8rem; }
.kb-bars li { display: grid; grid-template-columns: 9.5rem 1fr 2.6rem; gap: .9rem; align-items: center; font-size: .92rem; color: var(--ink); }
.kb-bars i { display: block; height: 8px; border-radius: 8px; background: var(--paper-2, #EAEDF3); overflow: hidden; }
.kb-bars i::after { content: ""; display: block; height: 100%; width: var(--w, 50%); background: var(--ink); border-radius: 8px; transform-origin: left; transition: transform .9s var(--kb-ease); transition-delay: calc(var(--i, 0) * 140ms + 150ms); }
.js [data-kb-view]:not(.is-in) .kb-bars i::after { transform: scaleX(0); }
.kb-bars em { font-style: normal; font-family: var(--font-mono); font-size: .85rem; color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; }
.kb-marked-note { margin: 1.1rem 0 0; padding: .8rem 1rem; border-left: 3px solid var(--accent); background: var(--accent-soft, rgba(201,97,31,.10)); border-radius: 0 10px 10px 0; font-size: .93rem; color: var(--ink); line-height: 1.55; }
.kb-example { margin: .8rem 0 0; font-size: .82rem; color: var(--ink-3); }

.kb-compare td a, .kb-keyfacts dd a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.kb-compare td a:hover, .kb-keyfacts dd a:hover { color: var(--accent-ink, #A84E14); }

.kb-steps p a, .kb-source a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.kb-texts tbody th, .kb-texts2 tbody th[scope="row"] { width: 36%; }
.kb-texts2 .kb-go { color: var(--ink-2); font-weight: 400; text-align: left; white-space: normal; width: auto; }
.kb-source em { font-style: normal; font-weight: 600; color: var(--ink-2); }
.kb-keyfacts dd em { font-style: normal; font-weight: 600; color: var(--ink); }
/* ---------- price table and the call to action under a block ---------- */
.kb-rowsub { display: block; font-weight: 400; font-size: .88rem; color: var(--ink-3); margin-top: .1rem; }
.kb-prices td strong { color: var(--ink); font-weight: 700; font-size: 1.08rem; }
.kb-prices td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.kb-after { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.5rem; margin-top: 1.75rem; }
.kb-after p { margin: 0; color: var(--ink-2); max-width: 30rem; }
@media (max-width: 720px) { .kb-prices td { white-space: normal; } .kb-after .btn { width: 100%; justify-content: center; } }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .kb-hero-inner, .kb-split { grid-template-columns: 1fr; }
  .kb-fan { margin: 0 auto; max-width: 24rem; }
  .kb-note { grid-template-columns: 6.5rem minmax(0, 1fr); }
  .kb-note-buy { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: .6rem 1.25rem; }
  .kb-note-buy .btn { width: auto; flex: 1 1 12rem; }
  .kb-note-fine { text-align: left; }
  .kb-keyfacts > div { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .kb-pick thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .kb-pick, .kb-pick tbody { display: block; }
  .kb-pick tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .15rem 1rem; padding: 1rem 1.15rem; border-top: 1px solid var(--line); }
  .kb-pick tbody tr > * { padding: 0; border: 0 !important; width: auto !important; }
  .kb-pick tbody tr.kb-pick-group { display: block; padding: 0; border-top: 0; }
  .kb-pick .kb-pick-group th { display: block; padding: .55rem 1.15rem; }
  .kb-pick tbody th[scope="row"] { grid-column: 1; }
  .kb-pick .kb-num { grid-column: 2; grid-row: 1; text-align: right; }
  .kb-pick td:not(.kb-num):not(.kb-go) { grid-column: 1 / -1; font-size: .95rem; }
  .kb-pick .kb-go { grid-column: 1 / -1; text-align: left; margin-top: .35rem; }
  .kb-note-list { grid-template-columns: 1fr; }
  .kb-steps { grid-template-columns: 1fr; border-top: 0; }
  .kb-steps li, .kb-steps li + li { padding: 1.2rem 0 1.3rem; border-left: 0; border-top: 1px solid var(--line-2, rgba(11,22,51,.18)); }
  .kb-ledger li { grid-template-columns: 1fr; }
  .kb-compare, .kb-compare tbody, .kb-compare tr, .kb-compare th, .kb-compare td { display: block; width: auto !important; }
  .kb-compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .kb-compare tbody tr { padding: .4rem 0 .9rem; border-top: 1px solid var(--line); }
  .kb-compare tbody tr > * { border: 0 !important; padding: .55rem 1.15rem; }
  .kb-compare tbody th { padding-top: 1rem; font-size: .88rem; color: var(--ink-3); }
  .kb-compare td::before { content: attr(data-label) ": "; font-weight: 600; color: var(--ink); }
  .kb-compare td.kb-us { margin: .3rem .75rem 0; border-radius: 12px; }
  .kb-compare td.kb-us::before { content: none; }
  .kb-bars li { grid-template-columns: 7.2rem 1fr 2.4rem; gap: .6rem; }
  .kb-texts tbody tr > td { padding: .12rem 1.15rem; font-size: .93rem; }
  .kb-texts tbody th { padding-top: .9rem; padding-bottom: .2rem; font-size: 1rem; color: var(--ink); }
  .kb-texts tbody tr { padding: 0 0 .8rem; }
}
@media (max-width: 720px) {
  .kb-hero { padding-top: calc(78px + 3.25rem); overflow: hidden; }
  .kb-fan { max-width: 19rem; }
  .kb-fan img:nth-child(1) { transform: translateX(-50%) translateX(-40%) rotate(-7deg); }
  .kb-fan img:nth-child(2) { transform: translateX(-50%) translateX(40%) rotate(7deg); }
}
@media (max-width: 460px) {
  .kb-note { grid-template-columns: 5rem minmax(0, 1fr); gap: 1rem; }
  .kb-jump a { flex: 1 1 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .kb *, .kb *::before, .kb *::after { transition: none !important; }
}
