/* Answer-first landing pages (scripts/site/landing_gen.py). Colour only through the site.css tokens. */
.lp-wrap { max-width: 860px; }
.lp-top { padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 4vw, 40px); }
.lp-crumbs { display: flex; gap: 8px; align-items: center; margin-bottom: 20px; font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); }
.lp-crumbs a { color: var(--text-dim); text-decoration: none; }
.lp-crumbs a:hover { color: var(--text-primary); }
.lp-top h1 { font-size: clamp(40px, 6.4vw, 72px); line-height: 1.02; margin-bottom: 22px; }
.lp-answer { font-size: clamp(18px, 1.8vw, 21px); line-height: 1.55; color: var(--text-primary); max-width: 62ch; margin-bottom: 26px; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-meta { margin: 18px 0 0; font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); }
.lp-glance, .lp-toc { margin-top: 28px; padding: 20px 22px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.lp-glance .label, .lp-toc .label { margin: 0 0 12px; }
.lp-glance ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.lp-glance li { padding-left: 18px; position: relative; font-size: 16px; line-height: 1.5; color: var(--text-secondary); }
.lp-glance li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--text-faint); }
.lp-toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: t; }
.lp-toc li { counter-increment: t; font-size: 15px; }
.lp-toc li::before { content: counter(t, decimal-leading-zero); margin-right: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }
.lp-toc a { color: var(--text-secondary); text-decoration: none; }
.lp-toc a:hover { color: var(--text-primary); text-decoration: underline; text-underline-offset: 4px; }

.lp-sec { padding: clamp(36px, 5vw, 64px) 0 0; scroll-margin-top: 84px; }
.lp-sec h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; margin-bottom: 20px; }
.lp-sec h3 { font-size: 19px; font-weight: 600; margin: 30px 0 8px; }
.lp-sec p { margin: 0 0 14px; max-width: 68ch; font-size: 17px; line-height: 1.6; color: var(--text-secondary); }
.lp-sec p strong, .lp-sec li strong { color: var(--text-primary); font-weight: 600; }
.lp-sec a { color: var(--text-primary); text-decoration-color: var(--border-strong); text-underline-offset: 4px; }
.lp-sec a.btn { text-decoration: none; }
.lp-sec ul, .lp-sec ol { margin: 0 0 16px; padding-left: 22px; max-width: 68ch; font-size: 17px; line-height: 1.55; color: var(--text-secondary); }
.lp-sec li { margin: 0 0 8px; padding-left: 4px; }
.lp-sec li::marker { color: var(--text-dim); }

.lp-shot { margin: 26px 0; }
.lp-shot img { width: 100%; height: auto; border: 1px solid var(--border-strong); border-radius: var(--radius-md); box-shadow: var(--shadow-pop); background: var(--surface); }
.lp-shot figcaption { margin-top: 10px; max-width: 68ch; font-size: 14px; line-height: 1.5; color: var(--text-dim); }

.lp-table-wrap { margin: 22px 0; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.lp-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.lp-table caption { text-align: left; padding: 14px 18px 4px; font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); caption-side: top; }
.lp-table th, .lp-table td { padding: 12px 18px; text-align: left; vertical-align: top; border-top: 1px solid var(--border); color: var(--text-secondary); }
.lp-table thead th { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.04em; }
.lp-table tbody th { font-weight: 600; color: var(--text-primary); min-width: 150px; }

.lp-callout { margin: 22px 0; padding: 16px 20px; border-left: 2px solid var(--border-strong); background: var(--surface-2); border-radius: 0 var(--radius-md) var(--radius-md) 0; max-width: 68ch; }
.lp-callout strong { display: block; margin-bottom: 4px; color: var(--text-primary); }
.lp-callout p { margin: 0; font-size: 16px; }

.lp-fit { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px 0; }
.lp-fit > div { padding: 18px 20px 6px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.lp-fit h3 { margin-top: 0; }
.lp-fit ul { font-size: 16px; }
@media (max-width: 700px) { .lp-fit { grid-template-columns: 1fr; } }

.lp-sec .faq { max-width: none; }
.lp-end { padding-bottom: clamp(48px, 7vw, 96px); }
.lp-closing { padding: clamp(24px, 4vw, 40px); margin-top: clamp(36px, 5vw, 64px); }
.lp-closing h2 { font-size: clamp(28px, 3.6vw, 40px); }
.lp-closing p { margin-bottom: 20px; }
.lp-rel-h { margin-top: clamp(36px, 5vw, 56px); font-size: 24px !important; }
.lp-related { list-style: none; padding: 0 !important; display: grid; gap: 0; border-top: 1px solid var(--border); max-width: none !important; }
.lp-related li { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: 4px 20px; padding: 14px 0; margin: 0 !important; border-bottom: 1px solid var(--border); font-size: 15px; }
.lp-related a { font-weight: 500; }
.lp-related span { color: var(--text-dim); }
@media (max-width: 600px) { .lp-related li { grid-template-columns: 1fr; } }

/* Phones: each table row becomes a small card, column name before each value */
@media (max-width: 700px) {
  .lp-table-wrap { border: 0; background: none; overflow: visible; }
  .lp-table, .lp-table tbody, .lp-table tr, .lp-table th, .lp-table td, .lp-table caption { display: block; }
  .lp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .lp-table caption { padding: 0 0 10px; }
  .lp-table tr { margin-bottom: 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); overflow: hidden; }
  .lp-table tbody th { min-width: 0; padding: 12px 16px; border-top: 0; background: var(--surface-2); }
  .lp-table td { padding: 10px 16px; }
  .lp-table td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-dim); }
}

/* Free invoice maker (scripts/site/landing_tool.py + invoice-tool.js). Tokens only. */
.inv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin: 22px 0 8px; align-items: start; }
.inv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inv-h { margin: 22px 0 10px !important; }
.inv-lines { display: grid; gap: 8px; margin-bottom: 10px; }
.inv-line { display: grid; grid-template-columns: minmax(0, 1fr) 64px 84px 34px; gap: 6px; align-items: center; }
.inv-line .input { width: 100%; min-width: 0; }
.inv-x { height: 34px; width: 34px; padding: 0; }
.inv-note { margin-top: 14px; }
.inv-sheet { background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-md); padding: 22px; font-size: 14px; line-height: 1.5; color: var(--text-primary); }
.inv-sheet h4 { font-family: var(--font-display, 'Bebas Neue'); font-size: 30px; margin: 0 0 10px; letter-spacing: 0.02em; }
.inv-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.inv-dim { color: var(--text-dim); }
.inv-mono, .inv-sheet td.n, .inv-sheet th.n { font-family: var(--font-mono); text-align: right; white-space: nowrap; }
.inv-sheet table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.inv-sheet th, .inv-sheet td { padding: 7px 4px; border-top: 1px solid var(--border); text-align: left; vertical-align: top; }
.inv-sheet thead th { font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--text-dim); text-transform: uppercase; }
.inv-tot { margin-left: auto; width: min(260px, 100%); }
.inv-tot div { display: flex; justify-content: space-between; padding: 3px 0; font-family: var(--font-mono); }
.inv-tot .big { border-top: 1px solid var(--border-strong); margin-top: 4px; padding-top: 8px; font-size: 17px; }
.inv-actions { margin-top: 14px; }
.inv-fine { margin: 10px 0 0 !important; font-size: 13px !important; color: var(--text-dim) !important; }
@media (max-width: 860px) { .inv { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .inv-grid { grid-template-columns: 1fr; } .inv-line { grid-template-columns: minmax(0, 1fr) 56px 76px 34px; } }
@media print {
  body * { visibility: hidden !important; }
  #i-sheet, #i-sheet * { visibility: visible !important; }
  #i-sheet { position: absolute; left: 0; top: 0; width: 100%; border: 0; background: #fff !important; color: #000 !important; }
}
