/* Components. Class names follow block / block-element / modifier in plain words. */

/* ---------- Icons ---------- */
.icon { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; vertical-align: -.15em; }
.icon--fill { fill: currentColor; stroke: none; }

/* ---------- Placeholder values awaiting owner sign-off ---------- */
.ph {
  background: var(--cell-input);
  box-shadow: inset 0 -2px 0 var(--placeholder-rule);
  border-bottom: 1px dashed var(--cell-input-edge);
  padding: 0 .2em;
  cursor: help;
}

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 50px;
  padding: .8rem 1.35rem;
  border: 1.5px solid transparent;
  border-radius: 2px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--white); }
.btn-yellow { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.btn-yellow:hover { background: var(--yellow-hover); border-color: var(--yellow-hover); }
.on-dark .btn-secondary { color: var(--white); border-color: var(--white); }
.on-dark .btn-secondary:hover { background: var(--white); color: var(--ink); }
.btn-sm { min-height: var(--target); padding: .5rem .95rem; font-size: .92rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; }

.text-link { display: inline-flex; align-items: center; gap: .45rem; min-height: var(--target); font-weight: 600; color: var(--blue); }
.text-link .icon { transition: transform .15s; }
.text-link:hover .icon { transform: translateX(3px); }
.on-dark .text-link, .on-dark a { color: var(--white); }
.target { display: inline-flex; align-items: center; min-height: var(--target); }

.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.cta-note { margin: .6rem 0 0; font-size: .98rem; }

/* ---------- Eyebrow, guarantee line, tags, status ---------- */
.eyebrow { display: flex; align-items: center; gap: .6rem; font-size: .92rem; font-weight: 600; color: var(--blue); margin: 0 0 1.25rem; }
.eyebrow::before { content: ""; flex: none; width: .75rem; height: .75rem; background: var(--cell-input); box-shadow: inset 0 0 0 1px var(--cell-input-edge); }
.on-dark .eyebrow { color: var(--yellow); }

.guarantee { display: flex; align-items: flex-start; gap: .55rem; margin: 1rem 0 0; font-size: .95rem; font-weight: 500; color: var(--ink); }
.guarantee .icon { width: 1.15rem; height: 1.15rem; margin-top: .15rem; color: var(--blue); }
.on-dark .guarantee { color: var(--white); }
.on-dark .guarantee .icon { color: var(--yellow); }

.tag { display: inline-flex; align-items: center; font-size: .78rem; font-weight: 600; line-height: 1.3; padding: .18rem .5rem; border: 1px solid currentColor; border-radius: 2px; white-space: nowrap; }
.tag-demo { background: var(--cell-input); color: var(--ink); border-color: var(--cell-input-edge); }
.tag-fiction { background: var(--ink); color: var(--white); border-color: var(--ink); }

.status { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; line-height: 1.3; padding: .22rem .55rem; border-radius: 2px; white-space: nowrap; }
.status::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.status-tested, .status-tested_notes, .status-live { background: var(--ok-bg); color: var(--ok); }
.status-not_tested, .status-not_supported, .status-later { background: var(--muted-bg); color: var(--ink-soft); }
.status-coming { background: var(--cell-input); color: var(--yellow-ink); }

.badges { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1.25rem 0; }
.badge { display: inline-flex; align-items: center; gap: .4rem; font-size: .84rem; font-weight: 500; padding: .3rem .65rem; border: 1px solid var(--ink); border-radius: 2px; background: var(--white); }
.badge .icon { width: .95rem; height: .95rem; color: var(--blue); }
.badge--soon { border-style: dashed; color: var(--ink-soft); }
.badge--soon .icon { color: var(--ink-faint); }
.badges--list { display: grid; gap: .45rem; margin: 0; }
.badges--list .badge { border: 0; padding: 0; background: none; }

/* ---------- Color key ---------- */
.key { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; list-style: none; margin: 0; padding: 0; font-size: .88rem; color: var(--ink); }
.key li { display: flex; align-items: center; }
.swatch { display: inline-block; flex: none; width: 1.15rem; height: .85rem; margin-right: .5rem; }
.swatch-input { background: var(--cell-input); box-shadow: inset 0 0 0 1px var(--cell-input-edge); }
.swatch-formula { background: var(--cell-formula); box-shadow: inset 0 0 0 1px var(--cell-formula-edge); }
.swatch-reference { background: var(--cell-reference); box-shadow: inset 0 0 0 1px var(--cell-formula-edge); }
.key-panel { margin-top: 2.5rem; display: flex; align-items: center; gap: 1.1rem; padding: 1.1rem 1.3rem; border: 1px solid var(--ink); background: var(--white); }
.key-panel p { margin: 0; font-weight: 500; line-height: 1.4; }
.key-cell { flex: none; min-width: 7.5rem; padding: .55rem .8rem; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; background: var(--cell-input); box-shadow: inset 0 0 0 2px var(--cell-input-edge); }
@media (max-width: 540px) { .key-panel { flex-direction: column; align-items: flex-start; } }

/* ---------- Sheet card: typeset Summary extract ---------- */
.sheet-card { margin: 0; background: var(--white); border: 1px solid var(--ink); box-shadow: var(--shadow-card); }
.sheet-card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem 1.1rem; background: var(--deep); color: var(--white); font-size: .88rem; }
.sheet-card-head .tag-demo { border-color: var(--yellow); }
.sheet-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--rule); border-bottom: 1px solid var(--rule); }
.ctl { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .6rem 1.1rem; background: var(--white); font-size: .84rem; color: var(--ink-soft); }
.cell { display: inline-block; padding: .2rem .6rem; font-weight: 600; font-size: .9rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.cell-input { background: var(--cell-input); box-shadow: inset 0 0 0 1px var(--cell-input-edge); }
.sheet-card figcaption { padding: .85rem 1.1rem; border-top: 1px solid var(--rule); }

.ledger-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.ledger-table caption { text-align: left; }
.ledger-table th, .ledger-table td { padding: .62rem .75rem; text-align: left; border-bottom: 1px solid var(--rule); }
.ledger-table thead th { font-weight: 600; font-size: .78rem; line-height: 1.3; color: var(--ink-soft); vertical-align: bottom; border-bottom: 2px solid var(--ink); }
.ledger-table tbody th { font-weight: 500; white-space: nowrap; }
.ledger-table .num { text-align: right; white-space: nowrap; }
.ledger-table thead th.num { white-space: normal; }
.ledger-table td.num { background: var(--cell-formula); border-left: 1px solid var(--cell-formula-edge); }
.ledger-table tfoot th, .ledger-table tfoot td { border-top: 3px double var(--ink); border-bottom: 0; font-weight: 700; }
.ledger-table .neg { color: var(--neg); }
@media (max-width: 540px) {
  .col-cost { display: none; }
  .sheet-controls { grid-template-columns: minmax(0, 1fr); }
  .ledger-table { font-size: .82rem; }
  .ledger-table th, .ledger-table td { padding: .5rem .4rem; }
  .ledger-table tbody th { white-space: normal; }
  .sheet-card-head, .ctl, .sheet-card figcaption { padding-inline: .8rem; }
}

/* ---------- Strip ---------- */
.strip { border-block: 1px solid var(--ink); background: var(--white); }
.strip-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, auto)); justify-content: space-between; }
.strip-list li { display: flex; align-items: center; gap: .55rem; padding: 1.15rem 0; font-size: .92rem; font-weight: 500; white-space: nowrap; }
.strip-list .icon { color: var(--blue); }
@media (max-width: 1060px) {
  .strip-list { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 1.5rem; }
  .strip-list li { padding: .85rem 0; white-space: normal; }
}
@media (max-width: 620px) {
  .strip-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; padding-block: .4rem; }
  .strip-list li { font-size: .88rem; padding: .6rem 0; align-items: flex-start; }
}

/* ---------- How it works steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.step { padding: 1.6rem 1.6rem 1.8rem 0; }
.step + .step { padding-left: 1.6rem; border-left: 1px solid var(--rule); }
.step-num { display: block; font-family: var(--serif); font-size: 3.4rem; font-weight: 400; line-height: 1; color: var(--blue); margin-bottom: 1.1rem; }
.step h3 { margin-bottom: .5rem; }
.step p { color: var(--ink-soft); font-size: 1rem; margin: 0; }
@media (max-width: 760px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step, .step + .step { padding: 1.4rem 0 1.6rem; border-left: 0; }
  .step + .step { border-top: 1px solid var(--rule); }
  .step-num { font-size: 2.6rem; margin-bottom: .7rem; }
}

/* ---------- Video placeholder ---------- */
.video-frame { position: relative; aspect-ratio: 16 / 9; background: var(--deep); border: 1px solid var(--ink); overflow: hidden; display: grid; place-items: center; color: var(--white); }
.video-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 96px 30px;
}
.video-play { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 1rem; background: none; border: 0; color: var(--white); font: inherit; font-weight: 600; cursor: pointer; }
.play-glyph { display: grid; place-items: center; width: clamp(64px, 9vw, 96px); aspect-ratio: 1; border-radius: 50%; background: var(--yellow); color: var(--ink); box-shadow: 0 0 0 10px rgba(245, 201, 68, .18); transition: transform .2s; }
.play-glyph .icon { width: 36%; height: 36%; margin-left: 8%; }
.video-play:hover .play-glyph { transform: scale(1.05); }
.video-caption { margin: 1rem 0 0; max-width: 46rem; font-size: .95rem; color: var(--ink-soft); }
.video-note { margin: .5rem 0 0; font-size: .9rem; font-weight: 600; min-height: 1.4em; }

/* ---------- Workbook window with sheet tabs ---------- */
.workbook { border: 1px solid var(--ink); background: var(--white); box-shadow: var(--shadow-card); }
.workbook-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .65rem 1rem; background: var(--paper); border-bottom: 1px solid var(--rule); }
.workbook-dots { display: flex; gap: 6px; flex: none; }
.workbook-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--rule-strong); }
.workbook-file { display: flex; align-items: center; gap: .55rem; min-width: 0; font-family: var(--mono); font-size: .8rem; color: var(--ink-soft); }
.workbook-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workbook-file .icon { color: var(--blue); }
.sheet-panel[hidden] { display: none; }
.workbook-view { max-height: clamp(300px, 46vw, 540px); overflow: auto; background: var(--white); }
.workbook-view img { width: 100%; min-width: 760px; max-width: none; }
.workbook-view.is-tall img { min-width: 560px; }
.sheet-tabs { display: flex; overflow-x: auto; padding: 0 .4rem; background: var(--paper); border-top: 1px solid var(--rule); }
.sheet-tab { position: relative; flex: none; min-height: 46px; padding: .7rem 1.15rem; border: 0; border-right: 1px solid var(--rule); background: transparent; color: var(--ink-soft); font: inherit; font-size: .9rem; cursor: pointer; white-space: nowrap; }
.sheet-tab:first-child { border-left: 1px solid var(--rule); }
.sheet-tab:hover { background: var(--white); color: var(--ink); }
.sheet-tab[aria-selected="true"], .sheet-tab.is-active { background: var(--white); color: var(--ink); font-weight: 600; }
.sheet-tab[aria-selected="true"]::before, .sheet-tab.is-active::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: var(--blue); }
.sheet-tab:focus-visible { outline-offset: -3px; }
.sheet-notes { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; align-items: flex-start; margin-top: 1.1rem; }
.sheet-notes > div:first-child { flex: 1 1 26rem; min-width: 0; }
.sheet-note { margin: 0; font-size: .95rem; color: var(--ink-soft); max-width: 44rem; }
.sheet-note strong { color: var(--ink); }
[data-sheet-note][hidden] { display: none; }
.sheet-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem 1.2rem; justify-content: flex-end; }
.demo-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.demo-cta .small { margin: 0; max-width: 32rem; }
@media (max-width: 700px) {
  .sheet-meta { justify-content: flex-start; }
  .sheet-tab { padding: .7rem .8rem; font-size: .88rem; }
  .workbook-file { font-size: .72rem; }
  .workbook-dots { display: none; }
}

/* ---------- Fit lists ---------- */
.fit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.fit-col { padding: 1.5rem 2rem 0 0; }
.fit-col + .fit-col { padding-left: 2rem; border-left: 1px solid var(--rule); }
.fit-col h3, .fit-three h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; letter-spacing: 0; margin-bottom: .75rem; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); gap: .55rem; padding: .8rem 0; border-bottom: 1px solid var(--rule); line-height: 1.5; }
.ticks li::before {
  content: "";
  width: 1.05rem; height: 1.05rem;
  margin-top: .2rem;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect width='20' height='20' fill='%23fff2b3'/%3E%3Crect x='.5' y='.5' width='19' height='19' fill='none' stroke='%238c6d00'/%3E%3Cpath d='M5 10.5l3.2 3L15 6.5' fill='none' stroke='%23142439' stroke-width='2'/%3E%3C/svg%3E");
}
.ticks.no li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect width='20' height='20' fill='%23f3f6fc'/%3E%3Crect x='.5' y='.5' width='19' height='19' fill='none' stroke='%235a6b80'/%3E%3Cpath d='M6 10h8' fill='none' stroke='%23142439' stroke-width='2'/%3E%3C/svg%3E"); }
@media (max-width: 760px) {
  .fit-grid { grid-template-columns: minmax(0, 1fr); }
  .fit-col, .fit-col + .fit-col { padding: 1.4rem 0 0; border-left: 0; }
  .fit-col + .fit-col { margin-top: 1.5rem; border-top: 2px solid var(--ink); }
}
.fit-three { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 2rem; }
.fit-three > div { border-top: 2px solid var(--ink); padding-top: 1.1rem; }
.fit-three .ticks li { font-size: .95rem; }
.fit-three .limits { grid-column: 1 / -1; }
.limits ol { padding: 0; list-style: none; counter-reset: lim; columns: 2; column-gap: 2.5rem; }
.limits li { break-inside: avoid; display: grid; grid-template-columns: 2rem minmax(0, 1fr); padding: .75rem 0; border-bottom: 1px solid var(--rule); font-size: .95rem; counter-increment: lim; }
.limits li::before { content: counter(lim, decimal-leading-zero); font-family: var(--serif); color: var(--blue); font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .fit-three { grid-template-columns: minmax(0, 1fr); } .limits ol { columns: 1; } }

/* ---------- Testing band: figures, rules, test card, pass bar ---------- */
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 2.5rem; border-block: 1px solid var(--on-dark-rule-strong); }
.figure { padding: 1.4rem 1rem 1.4rem 0; }
.figure + .figure { padding-left: 1.4rem; border-left: 1px solid var(--on-dark-rule); }
.figure strong { display: block; font-family: var(--serif); font-size: clamp(2.3rem, 1.6rem + 2.6vw, 3.6rem); font-weight: 400; line-height: 1; color: var(--white); }
.figure.accent strong { color: var(--yellow); }
.figure span { display: block; margin-top: .55rem; font-size: .88rem; color: var(--on-dark-soft); }
@media (max-width: 700px) {
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figure:nth-child(3) { padding-left: 0; border-left: 0; }
  .figure:nth-child(n+3) { border-top: 1px solid var(--on-dark-rule); }
}
.testing-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 1000px) { .testing-grid { grid-template-columns: minmax(0, 1fr); } }
.rules { list-style: none; padding: 0; margin: 0 0 2rem; max-width: 48rem; }
.rules li { padding: 1rem 0 1rem 2.2rem; border-bottom: 1px solid var(--on-dark-rule); position: relative; color: var(--on-dark-strong); }
.rules li:first-child { border-top: 1px solid var(--on-dark-rule); }
.rules li::before { content: ""; position: absolute; left: 0; top: 1.45rem; width: 1.2rem; height: 2px; background: var(--yellow); }

.test-card { background: var(--white); color: var(--ink); border: 1px solid var(--ink); padding: clamp(1.25rem, 3vw, 1.75rem); --focus: var(--blue); }
.test-card a { color: var(--blue); }
.test-card-score { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem 1rem; }
.test-card-big { font-family: var(--serif); font-size: clamp(2.8rem, 2rem + 3vw, 4rem); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.test-card-meta { font-size: .9rem; color: var(--ink-soft); }
.passbar { display: flex; gap: 3px; margin: 1.1rem 0 1.25rem; }
.passbar i { flex: 1 1 0; min-width: 0; height: 10px; background: var(--muted-bg); }
.passbar i.is-pass { background: var(--ok); }
.env-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.env-list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--rule); font-size: .92rem; }

/* ---------- Product card ---------- */
.product-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--ink); background: var(--white); }
.product-media { display: flex; flex-direction: column; justify-content: center; gap: .9rem; padding: clamp(1.25rem, 3vw, 2.5rem); background: var(--paper); border-right: 1px solid var(--ink); }
.crop { position: relative; overflow: hidden; aspect-ratio: 16 / 11; background: var(--white); border: 1px solid var(--rule); box-shadow: var(--shadow-soft); }
.crop img { width: 172%; max-width: none; }
.crop-label { position: absolute; bottom: .7rem; right: .7rem; }
.product-media .crop { flex: 1 1 auto; aspect-ratio: auto; min-height: 300px; }
.product-media .crop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.product-body { padding: clamp(1.5rem, 3.5vw, 3rem); }
.product-body h2, .product-body h3.product-name { font-size: clamp(1.8rem, 1.4rem + 1.3vw, 2.5rem); margin-bottom: .45em; }
.product-body > p { color: var(--ink-soft); }
.product-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; margin-top: 1.5rem; }
@media (max-width: 900px) {
  .product-card { grid-template-columns: minmax(0, 1fr); }
  .product-media { border-right: 0; border-bottom: 1px solid var(--ink); }
}
.price-block { margin: 1.5rem 0 1.1rem; padding: 1.1rem 0; border-block: 1px solid var(--rule); }
.price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .75rem; margin: 0; }
.price { font-family: var(--serif); font-size: 2.7rem; font-weight: 600; line-height: 1; letter-spacing: -.01em; }
.price-terms { font-size: .92rem; color: var(--ink-soft); }
.aud-estimate { margin: .6rem 0 0; font-size: .88rem; color: var(--ink-soft); }
.aud-estimate[hidden] { display: none; }

/* Compact card in the catalog */
.tool-card { display: flex; flex-direction: column; gap: .6rem; padding: 1.25rem 0 1.4rem; border-top: 2px solid var(--ink); }
.tool-card[hidden] { display: none; }
.tool-card h3 { margin: 0; font-size: 1.3rem; }
.tool-card h3 a { display: inline-flex; align-items: center; min-height: var(--target); color: var(--ink); text-decoration: none; }
.tool-card h3 a:hover { text-decoration: underline; }
.tool-card p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.tool-card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: auto; padding-top: .4rem; }
.tool-card .price { font-size: 1.6rem; }

/* ---------- Coming next and lite capture ---------- */
.next-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
@media (max-width: 900px) { .next-grid { grid-template-columns: minmax(0, 1fr); } }
.tool-list { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.tool-list li { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: .1rem 1rem; padding: 1.3rem 0; border-bottom: 1px solid var(--rule); }
.tool-idx { grid-row: span 2; font-family: var(--serif); font-size: 1.25rem; color: var(--blue); line-height: 1.3; }
.tool-list p { margin: 0; color: var(--ink-soft); }
.tool-list strong { color: var(--ink); }
.tool-list .status { margin-top: .6rem; justify-self: start; grid-column: 2; }

.capture { background: var(--paper); border: 1px solid var(--rule); border-top: 4px solid var(--yellow); padding: clamp(1.5rem, 3vw, 2.25rem); }
.capture h2, .capture h3 { font-size: clamp(1.35rem, 1.2rem + .6vw, 1.7rem); }
.capture > p { color: var(--ink-soft); font-size: 1rem; }
.capture > .capture-link { margin: .25rem 0 0; }

.field { margin: 0 0 1rem; }
.field label { display: block; margin-bottom: .4rem; font-size: .92rem; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--ink-faint); }
.field input, .field select, .field textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: .7rem .85rem;
  border: 1px solid var(--cell-input-edge);
  border-radius: 2px;
  background: var(--yellow-soft);
  color: var(--ink);
  font: inherit;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input::placeholder { color: var(--placeholder-ink); opacity: 1; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 1px; background: var(--cell-input); }
.field [aria-invalid="true"] { border: 2px solid var(--neg); }
.field-hint { margin: 0 0 .4rem; font-size: .88rem; color: var(--ink-faint); }
.field-error { margin: .35rem 0 0; font-size: .88rem; font-weight: 500; color: var(--neg); }
.field-error:empty { display: none; }
.field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
@media (max-width: 600px) { .field-pair { grid-template-columns: minmax(0, 1fr); } }
.consent { margin: 1rem 0 0; font-size: .86rem; line-height: 1.55; color: var(--ink-faint); }
.form-status { margin: 1rem 0 0; font-weight: 500; min-height: 1.5em; }
.form-success { padding: 1.25rem 1.25rem 1.25rem 1.1rem; background: var(--white); border-left: 4px solid var(--blue); }
.form-success[hidden] { display: none; }
.form-success:focus { outline: none; }
.form-success:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.form-success p { margin: 0; }
.form-success-title { display: flex; align-items: center; gap: .55rem; font-weight: 700; margin-bottom: .5rem !important; }
.form-success-title .icon { color: var(--blue); }

/* ---------- FAQ accordion ---------- */
.faq-list { border-top: 2px solid var(--ink); max-width: 52rem; }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.25rem 0;
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.06rem;
  line-height: 1.45;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 1.4rem; height: 1.4rem;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='%231745da' stroke-width='2'/%3E%3C/svg%3E");
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--blue); }
.faq-answer { margin: 0 0 1.4rem; max-width: 46rem; color: var(--ink-soft); }
.faq-answer p:last-child { margin-bottom: 0; }

/* ---------- Product page parts ---------- */
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0 .3rem; list-style: none; padding: 0; margin: 0 0 1.5rem; font-size: .88rem; color: var(--ink-soft); }
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb li + li::before { content: "/"; margin-right: .3rem; color: var(--ink-mute); }
.breadcrumb a { display: inline-flex; align-items: center; min-height: var(--target); color: var(--ink-soft); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 500; }
.who-for { font-size: clamp(1.05rem, 1rem + .3vw, 1.22rem); max-width: 36rem; margin-bottom: .6rem; }
.subtitle { display: inline-block; font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--ink-soft); padding-top: .7rem; border-top: 1px solid var(--ink); margin: .5rem 0 0; }
.shot { margin: clamp(2rem, 4vw, 3rem) 0 0; }
.shot .workbook-view { max-height: 440px; }
.shot figcaption { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .25rem 1.5rem; margin-top: .6rem; font-size: .9rem; color: var(--ink-soft); }

.buybox { position: sticky; top: calc(var(--header-h) + 24px); margin-top: clamp(2rem, 4vw, 3rem); margin-bottom: 3rem; background: var(--white); border: 1px solid var(--ink); box-shadow: var(--shadow-card); }
.buybox-head { padding: 1.1rem 1.4rem; background: var(--deep); color: var(--white); }
.buybox-head p { margin: 0; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; line-height: 1.25; }
.buybox-head span { display: block; margin-top: .2rem; font-size: .86rem; color: var(--on-dark-soft); }
.buybox-body { padding: 1.4rem; }
.buybox .price { font-size: 3rem; }
.buybox .price-line { flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.buybox .guarantee { font-size: .92rem; margin: .8rem 0 1.1rem; }
.buybox .btn-secondary { margin-bottom: .4rem; }
.buybox-links { text-align: center; margin: 0 0 .8rem; font-size: .95rem; }
.buybox .small { padding-top: 1rem; border-top: 1px solid var(--rule); margin: 0; }
.buybox-badges { padding: 1rem 1.4rem 1.2rem; border-top: 1px solid var(--rule); background: var(--paper); font-size: .88rem; }
@media (max-width: 1023px) {
  .buybox { position: static; margin: 1.25rem 0 0; max-width: 34rem; }
  .buybox-head { display: none; }
  .buybox-body { padding: 1.1rem 1.2rem; }
  .buybox .price { font-size: 2.4rem; }
  .buybox .price-line { flex-direction: row; margin-bottom: .8rem; }
}

.questions { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.questions li { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
.q-num { font-family: var(--serif); font-size: 2.3rem; line-height: 1; color: var(--blue); }
.questions h3 { margin-bottom: .4rem; }
.questions p { margin: 0; color: var(--ink-soft); }

.demo-block + .demo-block { margin-top: clamp(2.5rem, 5vw, 3.5rem); }

.sheets-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 2rem; }
.sheet-entry { border-top: 2px solid var(--ink); padding-top: 1.1rem; }
.sheet-entry .crop { aspect-ratio: 16 / 8; margin-bottom: 1.2rem; }
.sheet-entry .crop img { width: 150%; }
.sheet-entry .crop.is-tall img { width: 100%; }
.sheet-entry h3 { margin-bottom: .5rem; }
.sheet-entry p { font-size: .98rem; color: var(--ink-soft); }
.sheet-entry p:last-child { margin: 0; }
@media (max-width: 700px) { .sheets-grid { grid-template-columns: minmax(0, 1fr); } }

.setup { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.setup li { display: grid; grid-template-columns: 3rem minmax(0, 1fr) 11.5rem; gap: 1rem; align-items: baseline; padding: 1.3rem 0; border-bottom: 1px solid var(--rule); }
.s-num { font-family: var(--serif); font-size: 1.8rem; line-height: 1; color: var(--blue); }
.setup p { margin: 0; }
.s-time { text-align: right; font-size: .92rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.time-note { display: flex; align-items: center; gap: .75rem; margin: 1.5rem 0 0; padding: 1rem 1.2rem; background: var(--paper); border-left: 3px solid var(--ink); font-weight: 500; }
.time-note .icon { color: var(--blue); }
@media (max-width: 600px) {
  .setup li { grid-template-columns: 2.4rem minmax(0, 1fr); }
  .s-time { grid-column: 2; text-align: left; color: var(--ink-soft); }
}

.example-label { margin: 0 0 1.25rem; }
.example-text { font-family: var(--serif); font-size: clamp(1.1rem, 1rem + .35vw, 1.28rem); line-height: 1.6; max-width: 42rem; }
.example-figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin: 2rem 0 1.25rem; }
.example-figures .ledger-table { border-top: 2px solid var(--ink); }
.example-figures caption { padding: .6rem 0; font-size: .84rem; font-weight: 600; color: var(--ink-soft); caption-side: top; }
@media (max-width: 700px) { .example-figures { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Data tables: tested-on matrix and file inventory ---------- */
.table-wrap { border-top: 2px solid var(--ink); }
.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.data-table th, .data-table td { padding: .85rem .75rem .85rem 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); line-height: 1.45; }
.data-table thead th { font-size: .8rem; font-weight: 600; color: var(--ink-soft); border-bottom: 1px solid var(--ink); vertical-align: bottom; }
.data-table tbody th { font-weight: 600; }
.data-table .num { text-align: right; padding-right: 0; white-space: nowrap; }
.data-table .dash { color: var(--ink-faint); }
.matrix td:nth-child(3) { white-space: nowrap; }
.matrix td:last-child { color: var(--ink-soft); }
.matrix tr.is-tested > * { background: var(--ok-row); }
.matrix tr.is-tested > th { box-shadow: inset 3px 0 0 var(--ok); padding-left: .75rem; }
.fname { display: inline-flex; align-items: flex-start; gap: .55rem; font-family: var(--mono); font-size: .84rem; font-weight: 500; }
.fname > span:last-child { min-width: 0; }
.ext { flex: none; display: inline-block; min-width: 2.9rem; padding: .05rem .35rem; border: 1px solid var(--ink-soft); border-radius: 2px; font-family: var(--sans); font-size: .72rem; font-weight: 700; text-align: center; text-transform: lowercase; color: var(--ink-soft); background: var(--white); }
.ext--xlsx { border-color: var(--ok); color: var(--ok); background: var(--ok-bg); }
.ext--zip { border-color: var(--ink); color: var(--ink); background: var(--cell-input); }
.after-table { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1rem; }

@media (max-width: 760px) {
  .data-table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data-table--stack, .data-table--stack tbody, .data-table--stack tr, .data-table--stack th, .data-table--stack td { display: block; width: 100%; }
  .data-table--stack tr { padding: 1rem 0 .6rem; border-bottom: 1px solid var(--rule); }
  .data-table--stack th, .data-table--stack td { padding: 0 0 .5rem; border: 0; }
  .data-table--stack tbody th { font-size: 1rem; padding-bottom: .6rem; }
  .data-table--stack td[data-label] { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .75rem; }
  .data-table--stack td[data-label]::before { content: attr(data-label); font-size: .8rem; color: var(--ink-faint); padding-top: .1em; }
  .data-table--stack td[data-label] > * { justify-self: start; }
  .data-table--stack td.dash { display: none; }
  .data-table--stack .num { text-align: left; white-space: normal; }
  .data-table--stack.matrix td:nth-child(3) { white-space: normal; }
  .matrix tr.is-tested { box-shadow: inset 3px 0 0 var(--ok); padding-left: .8rem; background: var(--ok-row); }
  .matrix tr.is-tested > th { box-shadow: none; padding-left: 0; }
}

/* ---------- Spec block ---------- */
.spec { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; }
.spec li { padding: .8rem 0; border-bottom: 1px solid var(--rule); font-size: .95rem; }
.spec strong { font-weight: 600; }
.spec--single { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 700px) { .spec { grid-template-columns: minmax(0, 1fr); } }
.alias { margin: 1.5rem 0 0; padding: .9rem 1.1rem; background: var(--paper); border-left: 3px solid var(--blue); font-size: .95rem; }

/* ---------- License tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--ink); }
.tier { padding: clamp(1.25rem, 3vw, 2rem); display: flex; flex-direction: column; }
.tier + .tier { border-left: 1px solid var(--ink); }
.tier--single { background: var(--white); box-shadow: inset 0 4px 0 var(--yellow); }
.tier--agency { background: var(--paper); }
.tier h3 { margin-bottom: .2rem; }
.tier-price { margin: 0 0 1rem; font-size: .98rem; font-weight: 600; color: var(--blue); }
.tier dl { margin: 0 0 1.5rem; }
.tier dt { margin-top: 1rem; font-size: .84rem; font-weight: 700; }
.tier dd { margin: .3rem 0 0; font-size: .95rem; color: var(--ink-soft); }
.tier .btn { margin-top: auto; align-self: flex-start; }
.tier-cta { margin-top: auto; }
.tier-cta .btn { margin-top: 0; }
.tier-cta .guarantee { margin-top: .75rem; font-size: .9rem; }
.tiers-foot { margin-top: 1rem; }
@media (max-width: 700px) {
  .tiers { grid-template-columns: minmax(0, 1fr); }
  .tier + .tier { border-left: 0; border-top: 1px solid var(--ink); }
}

/* ---------- Guarantee box ---------- */
.guarantee-box { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.5rem; padding: clamp(1.5rem, 3.5vw, 2.5rem); border: 4px double var(--ink); background: var(--white); }
.seal { display: grid; place-items: center; width: 5.5rem; height: 5.5rem; border-radius: 50%; background: var(--yellow); color: var(--ink); font-family: var(--serif); font-size: 2.2rem; font-weight: 600; line-height: 1; box-shadow: 0 0 0 4px var(--white), 0 0 0 5px var(--ink); }
.guarantee-box h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem); }
.guarantee-box p { margin: 0; color: var(--ink-soft); }
@media (max-width: 560px) {
  .guarantee-box { grid-template-columns: minmax(0, 1fr); }
  .seal { width: 4.5rem; height: 4.5rem; font-size: 1.8rem; }
}

/* ---------- Related, bundle, closing ---------- */
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; list-style: none; padding: 0; margin: 0; }
.related li { border-top: 2px solid var(--ink); padding-top: 1.1rem; }
.related h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.related h3 a { display: inline-flex; align-items: center; min-height: var(--target); color: var(--ink); text-decoration: none; }
.related h3 a:hover { text-decoration: underline; }
.related p { margin: .6rem 0 0; font-size: .96rem; color: var(--ink-soft); }
.bundle-teaser { margin: 2rem 0 0; padding: 1rem 1.2rem; border: 1px dashed var(--ink-mute); font-size: .96rem; color: var(--ink-soft); max-width: 52rem; }
.closing-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: clamp(3rem, 6vw, 4.5rem); }
.buy-again { background: var(--ink); color: var(--white); padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; }
.buy-again-name { margin: 0; font-family: var(--serif); font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); font-weight: 600; line-height: 1.2; }
.buy-again .price { color: var(--white); font-size: 3rem; display: block; margin-top: .6rem; }
.buy-again .btn { align-self: flex-start; }
@media (max-width: 900px) {
  .related { grid-template-columns: minmax(0, 1fr); }
  .closing-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Phone buy bar ---------- */
.buybar {
  position: fixed;
  z-index: 60;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom));
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow-bar);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform .25s ease, visibility 0s linear .25s;
}
.buybar.is-visible { transform: none; visibility: visible; transition: transform .25s ease, visibility 0s; }
.buybar-info { min-width: 0; margin: 0; font-size: .82rem; line-height: 1.35; color: var(--on-dark-soft); }
.buybar-info strong { display: block; font-size: .95rem; color: var(--white); }
.buybar .btn { margin-left: auto; flex: none; min-height: 46px; }
@media (min-width: 1024px) { .buybar { display: none; } }

/* ---------- Live demo ---------- */
.demo-panel { border: 1px solid var(--ink); background: var(--white); }
.demo-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem 1rem; background: var(--deep); color: var(--white); font-size: .88rem; }
.demo-panel-head .tag-demo { border-color: var(--yellow); }
.demo-controls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--rule); border-bottom: 1px solid var(--rule); }
.demo-control { background: var(--white); padding: .8rem 1rem; min-width: 0; }
.demo-control label { display: block; margin-bottom: .35rem; font-size: .8rem; font-weight: 500; line-height: 1.3; color: var(--ink-soft); }
.demo-control select, .demo-control input {
  width: 100%;
  min-height: var(--target);
  padding: .4rem .6rem;
  border: 1px solid var(--cell-input-edge);
  border-radius: 2px;
  background: var(--cell-input);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.demo-control input[aria-invalid="true"] { border: 2px solid var(--neg); background: var(--neg-bg); }
.demo-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--rule); border-bottom: 1px solid var(--rule); }
.demo-stat { background: var(--cell-formula); padding: .9rem 1rem; min-width: 0; }
.demo-stat span { display: block; font-size: .8rem; line-height: 1.3; color: var(--ink-soft); }
.demo-stat strong { display: block; margin-top: .35rem; font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem); font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.demo-stat strong.neg { color: var(--neg); }
.demo-table-wrap { overflow-x: auto; }
.demo-panel .status-cell { white-space: nowrap; }
.row-status { font-size: .78rem; font-weight: 700; padding: .12rem .45rem; border-radius: 2px; background: var(--ok-bg); color: var(--ok); }
.row-status.review { background: var(--neg-bg); color: var(--neg); }
.demo-message { margin: 0; padding: .8rem 1rem; border-top: 1px solid var(--rule); font-size: .92rem; font-weight: 500; }
.demo-message:empty { display: none; }
.demo-message.is-review { background: var(--neg-bg); color: var(--neg); }
.demo-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem 1.5rem; padding: .85rem 1rem; border-top: 1px solid var(--rule); font-size: .88rem; color: var(--ink-soft); }
.demo-caption { margin: .9rem 0 0; font-size: .95rem; color: var(--ink-soft); }
.demo-rates-inline { display: contents; }
.demo-rates { padding: 1rem; border-top: 1px solid var(--rule); }
.demo-rates .data-table { max-width: 34rem; }
.demo-rates .data-table td, .demo-rates .data-table th { vertical-align: middle; }
.demo-rates input { max-width: 9rem; min-height: var(--target); padding: .3rem .5rem; border: 1px solid var(--cell-input-edge); background: var(--cell-input); font: inherit; font-weight: 600; font-variant-numeric: tabular-nums; }
.demo-rates input[readonly] { background: var(--cell-reference); border-color: var(--cell-formula-edge); }
.demo-rates input[aria-invalid="true"] { border: 2px solid var(--neg); background: var(--neg-bg); }
@media (max-width: 760px) { .demo-controls, .demo-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Catalog ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem 1.5rem; padding: 1.1rem 1.25rem; margin-bottom: 2.5rem; background: var(--paper); border: 1px solid var(--rule); }
.filters .field { margin: 0; min-width: 11rem; flex: 1 1 11rem; }
.filters .btn { flex: none; }
.filters-status { flex-basis: 100%; margin: 0; font-size: .9rem; color: var(--ink-soft); }
.shelf { padding-block: 2rem; border-top: 1px solid var(--rule); }
.shelf[hidden] { display: none; }
.shelf-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1rem; }
.shelf-head h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); margin: 0; }
.shelf-head p { margin: 0; color: var(--ink-soft); }
.shelf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 900px) { .shelf-grid { grid-template-columns: minmax(0, 1fr); } }
.empty-state { padding: 1.25rem; border: 1px dashed var(--ink-mute); color: var(--ink-soft); }
.empty-state[hidden] { display: none; }

/* ---------- Lists of articles and changelog ---------- */
.link-list { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.link-list li { padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.link-list a { font-weight: 600; font-size: 1.1rem; }
.link-list p { margin: .3rem 0 0; color: var(--ink-soft); font-size: .96rem; }
.release { padding-block: 1.75rem; border-top: 2px solid var(--ink); }
.release-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1rem; }
.release-head h3 { margin: 0; }
.release ul { padding-left: 1.2rem; margin: .8rem 0; }
.release li { margin-bottom: .35rem; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.card { border-top: 2px solid var(--ink); padding-top: 1rem; }
.card h2, .card h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.card p { color: var(--ink-soft); font-size: .96rem; }
@media (max-width: 900px) { .card-grid { grid-template-columns: minmax(0, 1fr); } }

.h-sans { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; letter-spacing: 0; }

.notice { padding: 1rem 1.2rem; background: var(--yellow-soft); border: 1px solid var(--cell-input-edge); border-left-width: 4px; }
.notice p:last-child { margin: 0; }

/* article/prose */
.prose > :first-child { margin-top: 0; }
/* Long source URLs wrap inside the text column instead of running past it (and being clipped on phones). */
.prose a { overflow-wrap: anywhere; }
/* A list item that is only a link (marked at build time) gets a full-size tap target. */
.prose li.link-item { margin-bottom: 0; }
.prose li.link-item > a { display: inline-flex; align-items: center; min-height: var(--target); }
.prose img { margin: 1.5rem 0; border: 1px solid var(--rule); }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }
.prose pre { overflow-x: auto; padding: 1rem 1.1rem; background: var(--paper); border: 1px solid var(--rule); font-size: .9rem; line-height: 1.5; }
.prose :not(pre) > code { padding: .05em .3em; background: var(--paper-2); border-radius: 2px; }
.prose table { display: block; overflow-x: auto; }
.article-meta { margin: 1.1rem 0 0; }
.article-toc h2, .article-product .h-sans { margin: 0 0 .5rem; }
.article-toc a { display: inline-block; min-height: 24px; padding-block: .1rem; text-decoration: none; }
.article-toc a:hover { text-decoration: underline; }
.article-toc + .article-product { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.article-product .btn { margin-top: .4rem; }
.article-product .guarantee { font-size: .88rem; }
.article-product .text-link { margin-top: .5rem; }

/* ---------- Content pages: guides, help center, policies, support ---------- */
/* Eyebrow that links back to its section (guide pages link to /guides/). */
.eyebrow-link { display: inline-flex; align-items: center; min-height: var(--target); color: inherit; text-decoration: none; }
.eyebrow-link:hover { text-decoration: underline; }

/* Guide titles are long sentences: a smaller heading than the default page head. */
.page-head--guide h1 { font-size: clamp(2rem, 1.35rem + 2.5vw, 3.25rem); max-width: 26ch; }

/* Links between the pages of one section, under the page head (help center, policies). */
.subnav { margin-top: 1.75rem; }
.subnav ul { display: flex; flex-wrap: wrap; gap: 0 1.5rem; list-style: none; margin: 0; padding: .25rem 0 0; border-top: 1px solid var(--rule); }
.subnav a { display: inline-flex; align-items: center; justify-content: center; min-height: var(--target); min-width: var(--target); color: var(--ink); font-size: .95rem; font-weight: 500; text-decoration: none; border-bottom: 2px solid transparent; }
.subnav a:hover { border-bottom-color: var(--rule-strong); }
.subnav a[aria-current="page"] { font-weight: 600; border-bottom-color: var(--yellow); }

/* Keep a line break written inside a Markdown paragraph, e.g. a bold question with its answer on the next line.
   Opt-in on the prose wrapper; list items that hold blocks keep normal white space. */
.prose-lines p { white-space: pre-line; }
.prose-lines li:not(:has(> p, > ul, > ol)) { white-space: pre-line; }

/* Article aside: a tool in progress, listed after the product box. */
.article-toc + .article-coming,
.article-product + .article-coming { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.article-coming-status { margin: 0 0 .5rem; }

/* Questions after a guide, then the way back to the list. */
.guide-faq { max-width: 42rem; margin-top: 3rem; }
.guide-faq h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); }
.guide-more { max-width: 42rem; margin: 2.5rem 0 0; padding-top: .75rem; border-top: 1px solid var(--rule); }
.guide-faq + .guide-more { padding-top: 0; border-top: 0; }

/* A Buy button inside policy prose, with the guarantee line under it. */
.policy-buy { margin: 1.5rem 0 2rem; }
.policy-buy p { margin: 0; }
.policy-buy .guarantee { margin-top: .75rem; }

/* A checklist in prose: an empty box on each line for the reader to tick mentally. No form controls. */
.prose .checklist { list-style: none; padding-left: 0; }
.prose .checklist li { position: relative; padding-left: 1.9rem; }
.prose .checklist li::before { content: ""; position: absolute; left: 0; top: .28em; width: 1.05rem; height: 1.05rem; background: var(--cell-input); box-shadow: inset 0 0 0 1px var(--cell-input-edge); }

/* Guide, help, policy and doc templates (.article-grid--doc). Phones: the contents list is a closed disclosure above the text,
   and the aside (buy box, tool in progress) follows the text. Wide screens: the sticky aside never runs past the
   bottom of the window; it scrolls on its own when it is taller. */
.doc-body { min-width: 0; }
.toc-drawer { margin: 0 0 2rem; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); font-size: .95rem; }
.toc-drawer summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: var(--target); padding: .45rem 0; font-weight: 700; list-style: none; cursor: pointer; }
.toc-drawer summary::-webkit-details-marker { display: none; }
.toc-drawer summary::after {
  content: "";
  flex: none;
  width: 1.2rem; height: 1.2rem;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='%231745da' stroke-width='2'/%3E%3C/svg%3E");
  transition: transform .2s;
}
.toc-drawer details[open] summary::after { transform: rotate(45deg); }
.toc-drawer ol { list-style: none; margin: 0; padding: 0 0 .75rem; }
.toc-drawer li { padding: 0; }
.toc-drawer a { display: flex; align-items: center; min-height: var(--target); padding: .2rem 0; line-height: 1.4; text-decoration: none; }
.toc-drawer a:hover { text-decoration: underline; }
.article-grid--doc .article-toc li { padding: .25rem 0; line-height: 1.45; }
@media (min-width: 901px) {
  .toc-drawer { display: none; }
  .article-grid--doc > .article-aside { max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; margin-inline: -.35rem; padding-inline: .35rem; }
}
@media (max-width: 900px) {
  .article-grid--doc > .article-aside { order: 1; max-width: 34rem; }
  .article-grid--doc > .article-aside > .article-toc { display: none; }
  .article-grid--doc > .article-aside > .article-toc + .article-product { margin-top: 0; padding-top: 0; border-top: 0; }
  .article-grid--doc > .article-aside--toc-only { display: none; }
}
