/* NetSheet.org — content pages (features, pricing, about, legal, guides).
   Builds on site.css. Shared components (.page-head, .steps, .feature-list, .plan-tag, .closing, .prose) live in site.css. */


/* ------------------------------------------------------------ features */

.feature-rows { display: grid; grid-template-columns: minmax(0, 1fr); }
.feature-row {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center; padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--rule);
}
.feature-row:first-child { border-top: 0; padding-top: 0; }
.feature-row:last-child { padding-bottom: 0; }
.feature-row.is-flipped > :first-child { order: 2; }
.feature-row h2 { max-width: 20ch; text-wrap: balance; }
.feature-row h2 + .plan-tag { margin: -0.1rem 0 1rem; }
.feature-row p { color: var(--ink-2); }
.feature-row figure { margin: 0; }
.feature-row figcaption { margin-top: 0.85rem; font-size: var(--step--1); color: var(--muted); }

.plain-list { margin: 0 0 1em; padding: 0; list-style: none; max-width: 60ch; }
.plain-list li { padding: 0.45rem 0 0.45rem 1.25rem; position: relative; color: var(--ink-2); }
.plain-list li::before { content: ""; position: absolute; left: 0.1rem; top: 1.05rem; width: 0.45rem; height: 2px; background: var(--green); }
.plain-list strong { color: var(--ink); font-weight: 600; }

.sheet-demo { max-width: 500px; width: 100%; justify-self: center; }
.sheet-demo .sheet-body { padding-top: 0.25rem; }
.ledger .group td {
  padding-top: 1rem; border-bottom: 1px solid var(--rule); color: var(--muted);
  font-size: 0.8rem; font-weight: 600;
}
.ledger .group:first-child td { padding-top: 0.6rem; }
.ledger .subtle td:last-child, .ledger .group td:last-child { white-space: normal; text-align: left; padding-left: 0; }

.saved-list { list-style: none; margin: 0; padding: 0; }
.saved-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.1rem 1rem; padding: 0.85rem 0; border-bottom: 1px dashed var(--rule); }
.saved-list li:last-child { border-bottom: 0; }
.saved-list .addr { font-weight: 600; }
.saved-list .when { grid-column: 1; color: var(--muted); font-size: var(--step--1); }
.saved-list .amt { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-variant-numeric: tabular-nums; font-weight: 600; }

/* PDF mock: a page, not a card */
.pdf-mock { max-width: 460px; width: 100%; justify-self: center; padding: 1.5rem 1.5rem 1.25rem; }
.pdf-brand { display: flex; align-items: center; gap: 0.9rem; padding-bottom: 1rem; border-bottom: 2px solid var(--ink); }
.pdf-logo {
  flex: none; width: 3.25rem; height: 3.25rem; border-radius: var(--radius-sm);
  border: 1.5px dashed var(--rule-strong); display: grid; place-items: center;
  font-size: 0.7rem; font-weight: 600; line-height: 1.15; text-align: center; color: var(--muted); background: #f7faf8;
}
.pdf-brand p { margin: 0; }
.pdf-agent { font-weight: 650; }
.pdf-office { color: var(--muted); font-size: var(--step--1); }
.pdf-title { margin: 1rem 0 0.1rem; font-weight: 650; }
.pdf-mock .ledger td { padding-block: 0.45rem; font-size: 0.95rem; }
.pdf-mock .ledger .total td { font-size: 1.05rem; }
.pdf-foot { margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--rule); font-size: 0.8rem; color: var(--muted); }

/* Email mock */
.mail-mock { max-width: 480px; width: 100%; justify-self: center; overflow: hidden; }
.mail-fields { margin: 0; padding: 1rem 1.5rem; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.35rem 1rem; font-size: 0.95rem; }
.mail-fields dt { color: var(--muted); }
.mail-fields dd { margin: 0; overflow-wrap: anywhere; }
.mail-body { padding: 1rem 1.5rem; font-size: 0.95rem; color: var(--ink-2); }
.mail-body p { margin: 0 0 0.75rem; }
.mail-attach {
  display: inline-flex; align-items: center; gap: 0.5rem; max-width: 100%;
  border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: 0.45rem 0.7rem; font-size: 0.875rem; color: var(--ink);
}
.mail-attach svg { width: 16px; height: 16px; flex: none; color: var(--green); }
.mail-status { list-style: none; margin: 0; padding: 0.85rem 1.5rem 1rem; background: #f7faf8; border-top: 1px solid var(--rule); display: grid; gap: 0.4rem; font-size: 0.9rem; }
.mail-status li { display: flex; justify-content: space-between; gap: 1rem; }
.mail-status .state { font-weight: 600; }
.mail-status .state::before { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--rule-strong); margin-right: 0.5rem; vertical-align: 0.1em; }
.mail-status .is-done .state::before { background: var(--green); }
.mail-status time { color: var(--muted); font-variant-numeric: tabular-nums; }

.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4rem); }
.split > :first-child p { color: var(--ink-2); }

@media (max-width: 900px) {
  .feature-row, .split { grid-template-columns: minmax(0, 1fr); }
  .feature-row.is-flipped > :first-child { order: 0; }
  .sheet-demo, .pdf-mock, .mail-mock { justify-self: stretch; max-width: none; }
}
@media (max-width: 560px) {
  .sheet-demo .sheet-head, .sheet-demo .sheet-body, .mail-fields, .mail-body, .mail-status { padding-inline: 1rem; }
  .pdf-mock { padding: 1.1rem 1rem 1rem; }
  .sheet-demo .sheet-head { flex-direction: column; gap: 0.25rem; }
}

/* ------------------------------------------------------------- pricing */

.billing { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-bottom: 1.75rem; }
.billing-label { font-weight: 600; font-size: 0.95rem; color: var(--ink-2); }
.toggle {
  display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--rule-strong);
}
.toggle button {
  font: inherit; font-size: 0.95rem; font-weight: 600; color: var(--ink-2);
  border: 0; background: transparent; border-radius: 999px; padding: 0.5rem 1.1rem; min-height: 40px; cursor: pointer;
}
.toggle button:hover { color: var(--ink); background: rgba(30, 91, 66, 0.07); }
.toggle button[aria-pressed="true"] { background: var(--green); color: #fff; }
.billing-note { font-size: var(--step--1); color: var(--muted); margin: 0; }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; }
.plan {
  display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 1.5rem; position: relative;
}
.plan.is-featured { border-color: var(--green); box-shadow: inset 0 3px 0 var(--green), var(--shadow-sheet); }
.plan-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; }
.plan h2 { font-size: var(--step-2); margin: 0; }
.plan-for { color: var(--muted); margin: 0.35rem 0 0; font-size: 0.975rem; line-height: 1.45; min-height: 2.9em; }
.plan-price { margin: 1.25rem 0 0; display: flex; align-items: baseline; gap: 0.4rem; flex-wrap: wrap; }
.plan-price .amount {
  font-size: 2.75rem; font-weight: 650; line-height: 1; letter-spacing: -0.02em;
  font-stretch: 82%; font-variation-settings: "wdth" 82; font-variant-numeric: tabular-nums;
}
.plan-price .per { color: var(--muted); font-size: 0.975rem; }
.plan-save { margin: 0.4rem 0 0; min-height: 1.6em; font-size: var(--step--1); color: var(--ink-2); }
.plan-save .mark { background: var(--green-soft); color: var(--green); font-weight: 600; border-radius: 4px; padding: 0.05rem 0.4rem; }
.plan .btn { margin-top: 1.25rem; }
.plan-trial { margin: 0.6rem 0 0; font-size: var(--step--1); color: var(--muted); min-height: 1.6em; }
.plan-features { list-style: none; margin: 1.25rem 0 0; padding: 1.1rem 0 0; border-top: 1px solid var(--rule); display: grid; gap: 0.55rem; }
.plan-features li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 0.6rem; font-size: 0.975rem; color: var(--ink-2); line-height: 1.45; }
.plan-features li svg { width: 18px; height: 18px; margin-top: 0.1rem; color: var(--green); }
.plan-features .lead-in { display: block; grid-column: 1 / -1; font-weight: 600; color: var(--ink); }
.plan-features .is-no { color: var(--muted); }
.plan-features .is-no svg { color: var(--muted); }

@media (max-width: 960px) {
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 34rem; }
}

/* comparison table */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); }
.table-scroll:focus-visible { outline-offset: 3px; }
.compare { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.975rem; }
.compare caption { text-align: left; padding: 1rem 1.25rem; color: var(--muted); font-size: var(--step--1); caption-side: bottom; border-top: 1px solid var(--rule); }
.compare th, .compare td { padding: 0.8rem 1rem; border-bottom: 1px solid var(--rule); text-align: center; vertical-align: middle; }
.compare thead th { font-weight: 650; font-size: 1rem; background: #f7faf8; border-bottom: 1px solid var(--rule-strong); }
.compare thead th small { display: block; white-space: nowrap; font-weight: 500; color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.compare th[scope="row"] { text-align: left; font-weight: 500; color: var(--ink); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare .col-feature { width: 40%; }
.compare .is-featured-col { background: rgba(227, 238, 232, 0.45); }
.compare thead .is-featured-col { background: var(--green-soft); }
.compare .group-row th { text-align: left; font-size: 0.85rem; font-weight: 600; color: var(--muted); background: #fafcfb; padding-block: 0.6rem; }
.compare svg { width: 20px; height: 20px; margin-inline: auto; }
.compare .yes { color: var(--green); }
.compare .no { color: #a9b7ae; }
.compare .text { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.compare th[scope="row"], .compare thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--paper); }
.compare thead th:first-child { background: #f7faf8; }
.compare .group-row th { position: sticky; left: 0; }
.scroll-hint { display: none; margin: 0 0 0.6rem; font-size: var(--step--1); color: var(--muted); }
@media (max-width: 640px) {
  .compare { min-width: 0; font-size: 0.9rem; }
  .compare .col-feature { width: auto; }
  .compare th, .compare td { padding: 0.65rem 0.35rem; }
  .compare th[scope="row"] { padding-left: 0.75rem; position: static; }
  .compare thead th:first-child, .compare .group-row th { position: static; }
  .compare .group-row th { padding-left: 0.75rem; }
  .compare thead th { font-size: 0.8rem; padding-inline: 0.2rem; }
  .compare thead th small { font-size: 0.72rem; }
  .compare svg { width: 18px; height: 18px; }
  .compare .text { font-size: 0.8rem; }
  .compare caption { padding: 0.85rem 0.75rem; }
}
@media (max-width: 340px) { .compare { min-width: 320px; } .scroll-hint { display: block; } }

/* FAQ */
.faq { max-width: 48rem; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 0; font-weight: 600; font-size: 1.1rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px; margin-right: 0.25rem;
  border-right: 2px solid var(--green); border-bottom: 2px solid var(--green);
  transform: rotate(45deg) translateY(-3px); transition: transform 0.15s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq summary:hover { color: var(--green); }
.faq .answer { padding: 0 0 1.25rem; color: var(--ink-2); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- about */

.facts { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-block: 1px solid var(--rule); }
.facts > div { padding: 1.25rem 1.5rem 1.25rem 0; }
.facts > div + div { border-left: 1px solid var(--rule); padding-left: 1.5rem; }
.facts dt { font-size: var(--step--1); color: var(--muted); margin-bottom: 0.2rem; }
.facts dd { margin: 0; font-weight: 600; font-size: 1.1rem; }
@media (max-width: 720px) {
  .facts { grid-template-columns: 1fr; }
  .facts > div { padding: 1rem 0; }
  .facts > div + div { border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; }
}

.prose-rows { display: grid; grid-template-columns: minmax(0, 1fr); }
.prose-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 1rem clamp(2rem, 5vw, 4rem); padding-block: 2rem; border-top: 1px solid var(--rule); }
.prose-row:first-child { border-top: 0; padding-top: 0; }
.prose-row h2 { font-size: var(--step-2); margin: 0; }
.prose-row p, .prose-row li { color: var(--ink-2); }
.prose-row > div > :last-child { margin-bottom: 0; }
@media (max-width: 760px) { .prose-row { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------- long-form docs */

.doc-layout { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.toc { position: sticky; top: 5.5rem; font-size: 0.95rem; }
.toc h2 { font-size: 0.95rem; font-stretch: 100%; font-variation-settings: "wdth" 100; letter-spacing: 0; color: var(--muted); margin-bottom: 0.6rem; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); }
.toc a { display: block; padding: 0.3rem 0 0.3rem 0.9rem; margin-left: -1px; color: var(--ink-2); text-decoration: none; border-left: 2px solid transparent; line-height: 1.35; }
.toc a:hover { color: var(--green); border-left-color: var(--green); }


@media (max-width: 900px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem 1.25rem; }
  .toc ol { border-left: 0; columns: 2; column-gap: 1.5rem; }
  .toc li { break-inside: avoid; }
  .toc a { padding-left: 0; border-left: 0; }
}
@media (max-width: 480px) { .toc ol { columns: 1; } }

/* ---------------------------------------------------------- how-to guide */

.guide-steps { list-style: none; margin: 1.25rem 0 1.5rem; padding: 0; counter-reset: gstep; }
.guide-steps > li { counter-increment: gstep; position: relative; padding: 0 0 1.25rem 3rem; margin: 0; }
.guide-steps > li::before {
  content: counter(gstep); position: absolute; left: 0; top: -0.1rem;
  width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--green-soft); color: var(--green); font-weight: 650; font-size: 0.95rem; font-variant-numeric: tabular-nums;
}
.guide-steps > li:not(:last-child)::after { content: ""; position: absolute; left: calc(1rem - 1px); top: 2.2rem; bottom: 0.3rem; width: 2px; background: var(--rule); }
.guide-steps h3 { font-size: 1.1rem; margin: 0 0 0.3rem; font-stretch: 100%; font-variation-settings: "wdth" 100; }
.guide-steps p { margin: 0 0 0.35rem; }
.guide-steps ul { margin: 0.25rem 0 0.35rem; }

.callout { border-left: 3px solid var(--green); background: var(--paper); padding: 0.9rem 1.1rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 0 0 1.25rem; }
.callout p { margin: 0; color: var(--ink); }
.callout-warn { border-left-color: #c9a227; background: #fdf8e2; }
.done { font-weight: 600; color: var(--green) !important; }
