/* lpfr.apptlysoft.rs – the colours are the ApptlySoft LPFR web panel's
   (internal/ui/webui/static/style.css); type is IBM Plex, like the receipts. */
:root {
  --ink: #1d2330;
  --muted: #4f5869;
  --faint: #6b7380;
  --line: #d9dde4;
  --line-strong: #b9c0cb;
  --paper: #ffffff;
  --soft: #f4f5f7;
  --blue: #1f5fae;
  --blue-dark: #174a8b;
  --blue-soft: #eaf1fa;
  --ok: #1d7a3a;
  --warn: #9a6200;
  --night: #1d2330;
  --night-2: #262d3b;
  --night-line: #3a4252;
  --night-text: #e6e8ec;
  --night-muted: #9aa3b2;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --mono: "IBM Plex Mono", Consolas, "Cascadia Mono", "DejaVu Sans Mono", Menlo, monospace;
  --wrap: 1120px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font: 400 16px/1.6 var(--sans);
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { font-weight: 600; line-height: 1.2; margin: 0; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--mono); font-size: .9em; }
code { background: var(--soft); border: 1px solid var(--line); border-radius: 3px; padding: .05em .35em; overflow-wrap: anywhere; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  font: 600 15px/1 var(--sans); text-decoration: none;
  border: 1px solid var(--blue); border-radius: 3px;
  background: var(--blue); color: #fff; cursor: pointer;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn-line { background: transparent; color: var(--blue); border-color: var(--line-strong); }
.btn-line:hover { background: var(--blue-soft); color: var(--blue-dark); border-color: var(--blue); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.copy {
  font: 500 12px/1 var(--mono); color: var(--blue);
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 3px;
  padding: 6px 8px; cursor: pointer; white-space: nowrap;
}
.copy:hover { border-color: var(--blue); }
.copy.done { color: var(--ok); border-color: var(--ok); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 17px; white-space: nowrap; }
.brand img { width: auto; height: 36px; flex: none; }
.brand .product { color: var(--muted); font-weight: 400; padding-left: 10px; border-left: 1px solid var(--line-strong); line-height: 22px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.site-nav ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 21px 0 19px; border-bottom: 2px solid transparent; }
.site-nav ul a:hover { color: var(--ink); }
.site-nav ul a.active { color: var(--ink); border-bottom-color: var(--blue); }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 3px; background: var(--paper); cursor: pointer; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 2px; background: var(--ink); margin: 0 auto; position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }

/* Hero */
.hero { padding: 56px 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; align-items: start; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font: 400 13px/1.5 var(--mono); color: var(--muted); margin: 0 0 22px; }
.hero-meta .status { color: var(--warn); }
.hero-meta .status::before { content: ""; display: inline-block; width: 8px; height: 8px; background: currentColor; margin-right: 8px; vertical-align: 1px; }
.hero h1 { font-size: clamp(34px, 4.4vw, 50px); line-height: 1.08; letter-spacing: -.015em; margin: 0 0 22px; }
.hero h1 span { display: block; color: var(--blue); font-size: .52em; line-height: 1.3; letter-spacing: 0; margin-top: 10px; }
.lead { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 36em; margin: 0 0 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 36px; }
.keyfacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); }
.keyfacts div { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
.keyfacts div:nth-child(odd) { border-right: 1px solid var(--line); }
.keyfacts div:nth-child(even) { padding-left: 16px; }
.keyfacts dt { font: 400 12px/1.4 var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 4px; }
.keyfacts dd { margin: 0; font-weight: 600; font-size: 15px; line-height: 1.4; }

.hero-art { margin: 0; background: var(--soft); border: 1px solid var(--line); border-radius: 4px; padding: 36px 24px 20px; display: flex; flex-direction: column; align-items: center; }
.hero-art figcaption { margin-top: 18px; text-align: center; }
.receipt { width: 300px; max-width: 100%; filter: drop-shadow(0 1px 1px rgba(29, 35, 48, .22)) drop-shadow(0 8px 18px rgba(29, 35, 48, .14)); }
.receipt-crop {
  height: 566px; overflow: hidden; background: #fff; padding-top: 14px;
  clip-path: polygon(0 0, 100% 0, 100% 97%, 95% 100%, 90% 97%, 85% 100%, 80% 97%, 75% 100%, 70% 97%, 65% 100%, 60% 97%, 55% 100%, 50% 97%, 45% 100%, 40% 97%, 35% 100%, 30% 97%, 25% 100%, 20% 97%, 15% 100%, 10% 97%, 5% 100%, 0 97%);
}
.receipt-crop img { width: 100%; margin-top: -30px; }

/* Strip of facts under the hero */
.strip { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip li { padding: 18px 20px 18px 0; }
.strip li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.strip strong { display: block; font-size: 15px; }
.strip span { font-size: 14px; color: var(--muted); }

/* Sections */
.section { padding: 88px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-soft { background: var(--soft); }
.section-night { background: var(--night); color: var(--night-text); border-top: 0 !important; }
.section-night + .section { border-top: 0; }
.head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; margin: 0 0 44px; align-items: end; }
.head h2 { font-size: clamp(28px, 3.2vw, 38px); }
.head p { margin: 0; color: var(--muted); font-size: 17px; max-width: 40em; }
.section-night .head p { color: var(--night-muted); }
.label { display: block; font: 500 13px/1 var(--mono); color: var(--blue); margin: 0 0 14px; }
.section-night .label { color: #8db8ec; }

/* Features: a two-column list */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; margin: 0; }
.features div { padding: 22px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 20px; }
.features dt { font-weight: 600; font-size: 17px; line-height: 1.35; }
.features dd { margin: 0; color: var(--muted); font-size: 15px; }

/* How it works */
.steps { list-style: none; margin: 0 0 48px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.steps li { padding: 22px 28px 0 0; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.steps .n { display: block; font: 500 14px/1 var(--mono); color: var(--blue); margin: 0 0 14px; }
.steps h3 { font-size: 19px; margin: 0 0 10px; }
.steps p { color: var(--muted); font-size: 15px; }
.url { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 8px; }
.url code { font-size: 14px; padding: 6px 10px; background: var(--paper); }
.figure-box { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 24px; }
.figure-box img { width: 100%; }
figcaption { font-size: 14px; color: var(--faint); margin-top: 12px; }
.audit { display: grid; gap: 24px; margin-top: 24px; }
.audit .figure-box { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: 32px; align-items: center; }
.audit .figure-box h3 { font-size: 19px; margin: 0 0 8px; }
.audit .figure-box p { color: var(--muted); font-size: 15px; margin: 0; }

/* Integrators (dark band) */
.int-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: start; }
.ticks { list-style: none; padding: 0; margin: 0 0 28px; }
.ticks li { position: relative; padding: 0 0 0 22px; margin: 0 0 12px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 10px; height: 2px; background: var(--blue); }
.section-night .ticks li::before { background: #8db8ec; }
.section-night code { background: var(--night-2); border-color: var(--night-line); color: var(--night-text); }
.section-night a { color: #8db8ec; }
.code {
  margin: 0; background: #12161e; border: 1px solid var(--night-line); border-radius: 4px;
  font: 400 13px/1.6 var(--mono); color: #d7dbe2; overflow-x: auto;
}
.code-head { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--night-line); color: var(--night-muted); font-size: 12px; }
.code pre { margin: 0; padding: 16px; font: inherit; white-space: pre; }
.code .k { color: #8db8ec; }
.code .s { color: #b9d99b; }
.code .c { color: #7d8697; }
.endpoints { width: 100%; border-collapse: collapse; margin-top: 40px; font-size: 15px; }
.endpoints th, .endpoints td { text-align: left; padding: 11px 16px 11px 0; border-bottom: 1px solid var(--night-line); vertical-align: top; }
.endpoints th { font: 400 12px/1.4 var(--mono); color: var(--night-muted); text-transform: uppercase; letter-spacing: .04em; }
.endpoints td:first-child { white-space: nowrap; }
.endpoints td + td { color: var(--night-muted); }

/* Specification */
.spec { width: 100%; border-collapse: collapse; font-size: 16px; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec tr:first-child th, .spec tr:first-child td { border-top: 2px solid var(--ink); }
.spec th { width: 32%; font-weight: 400; color: var(--muted); padding-right: 24px; }

/* Price */
.price-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; }
.price-main { border-top: 2px solid var(--blue); padding-top: 24px; }
.amount { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 0 0 18px; }
.amount b { font-size: 72px; line-height: 1; font-weight: 600; letter-spacing: -.02em; }
.amount span { font-size: 17px; color: var(--muted); }
.year { font-size: 17px; margin: -6px 0 18px; }
.price-side > div { border-top: 1px solid var(--line); padding: 24px 0; }
.price-side > div:last-child { border-bottom: 1px solid var(--line); }
.price-side h3 { font-size: 19px; margin: 0 0 8px; }
.price-side p { color: var(--muted); margin: 0 0 10px; }
.note { font-size: 15px; color: var(--muted); margin: 28px 0 0; }

/* Downloads */
.table-scroll { overflow-x: auto; }
.downloads { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--paper); border: 1px solid var(--line); }
.downloads th, .downloads td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.downloads thead th { font: 400 12px/1.4 var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: .04em; background: var(--soft); }
.downloads thead th + th, .downloads td { width: 36%; }
.downloads td + td { border-left: 1px solid var(--line); }
.downloads tbody th { font-weight: 400; }
.downloads tbody th strong { display: block; font-weight: 600; }
.dl-variant { display: block; font-size: 13px; color: var(--muted); }
.dl-file { font-family: var(--mono); font-size: 14px; overflow-wrap: anywhere; }
.dl-note { font-size: 15px; color: var(--muted); margin: 14px 0 0; }
.checksums { margin-top: 28px; font-size: 14px; color: var(--muted); }
.checksums summary { cursor: pointer; display: inline-block; font-size: 14px; color: var(--muted); }
.checksums summary::-webkit-details-marker { display: none; }
.checksums summary::before { content: "+"; display: inline-block; width: 1.1em; font-family: var(--mono); color: var(--blue); }
.checksums[open] summary::before { content: "−"; }
.checksums summary:hover { color: var(--blue); }
.checksums p { margin: 12px 0; }
.sums { border-collapse: collapse; width: 100%; font: 400 12.5px/1.5 var(--mono); }
.sums td { padding: 6px 20px 6px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.sums td:first-child { white-space: nowrap; color: var(--ink); }
.sums code { font: inherit; background: none; border: 0; padding: 0; overflow-wrap: anywhere; user-select: all; }

/* Documents */
.docs { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.docs li { border-bottom: 1px solid var(--line); }
.docs a { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 22px 0; color: var(--ink); text-decoration: none; }
.docs a:hover h3 { color: var(--blue); }
.docs .type { font: 500 12px/1 var(--mono); color: var(--blue); border: 1px solid var(--blue); border-radius: 3px; padding: 6px 0; text-align: center; }
.docs h3 { font-size: 19px; margin: 0 0 4px; }
.docs p { margin: 0; color: var(--muted); font-size: 15px; }
.docs .meta { font: 400 13px/1.4 var(--mono); color: var(--faint); white-space: nowrap; }

/* FAQ */
.faq { border-top: 2px solid var(--ink); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font: 400 24px/1 var(--mono); color: var(--blue); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 0 0 20px; max-width: 46em; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.contact-grid h2 { font-size: clamp(28px, 3.2vw, 38px); margin: 0 0 14px; }
.contact-grid > div > p { color: var(--muted); font-size: 17px; }
.company { font-style: normal; border-top: 2px solid var(--ink); padding-top: 18px; line-height: 1.7; }
.company strong { display: block; margin: 0 0 6px; }
.company span { display: block; color: var(--muted); }
.contact-grid .company { margin-top: 28px; }
.contact-form { border-top: 2px solid var(--blue); padding-top: 24px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field.wide { grid-column: 1 / -1; }
.field label { display: block; font-size: 14px; font-weight: 600; margin: 0 0 6px; }
.field .opt { font-weight: 400; color: var(--faint); margin-left: 4px; }
.field input, .field select, .field textarea {
  display: block; width: 100%; min-height: 44px; padding: 10px 12px;
  font: 400 16px/1.4 var(--sans); color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 3px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 22px; }
.form-foot p { margin: 0; }
.btn[disabled] { opacity: .6; cursor: progress; }
.form-status { margin: 16px 0 0; font-size: 15px; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: #a12a2a; }

/* Footer */
.site-footer { background: var(--night); color: var(--night-muted); font-size: 14px; padding: 48px 0 28px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.footer-logo { width: 150px; margin: 0 0 16px; }
.site-footer a { color: var(--night-text); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-title { color: var(--night-text); font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .05em; margin: 4px 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 8px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid var(--night-line); margin-top: 36px; padding-top: 20px; }
.footer-bottom p { margin: 0; }

/* Responsive */
@media (max-width: 1080px) {
  .site-nav ul { gap: 16px; }
  .site-nav ul a { font-size: 14px; }
}
@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav ul a.active { border-bottom-color: var(--line); color: var(--blue); }
  .site-nav .btn { margin-top: 16px; }
  .hero-grid, .head, .int-grid, .price-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .head { align-items: start; gap: 14px; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  body { font-size: 15px; }
  .hero { padding-top: 36px; }
  .lead { font-size: 17px; }
  .section { padding: 60px 0; }
  .receipt-crop { height: 420px; }
  .keyfacts { grid-template-columns: minmax(0, 1fr); }
  .keyfacts div:nth-child(odd) { border-right: 0; }
  .keyfacts div:nth-child(even) { padding-left: 0; }
  .features div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li, .steps li + li { padding: 20px 0 4px; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--line); }
  .audit .figure-box { grid-template-columns: minmax(0, 1fr); }
  .audit .figure-box { gap: 14px; }
  .figure-box { padding: 14px; }
  .amount b { font-size: 56px; }
  .docs a { grid-template-columns: 52px minmax(0, 1fr); }
  .docs .meta { grid-column: 2; white-space: normal; }
  .spec th { width: 38%; }
  .endpoints thead { display: none; }
  .endpoints tr, .endpoints td { display: block; }
  .endpoints tr { border-bottom: 1px solid var(--night-line); padding: 10px 0; }
  .endpoints td { border: 0; padding: 2px 0; }
  .endpoints td:first-child { white-space: normal; }
  .endpoints code { overflow-wrap: normal; }
  .code pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; }
  /* Download tables as stacked rows */
  .downloads thead { display: none; }
  .downloads, .downloads tbody, .downloads tr, .downloads th, .downloads td { display: block; width: 100%; }
  .downloads tr { border-bottom: 1px solid var(--line); padding: 12px 14px; }
  .downloads th, .downloads td, .downloads td + td { border: 0; padding: 3px 0; }
  .downloads td::before { content: attr(data-label); display: block; margin-top: 6px; font: 400 12px/1.4 var(--mono); color: var(--faint); text-transform: uppercase; }
  .sums, .sums tbody, .sums tr, .sums td { display: block; }
  .sums tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .sums td { border: 0; padding: 0; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .strip { grid-template-columns: minmax(0, 1fr); }
  .strip li, .strip li + li { padding: 14px 0; border-left: 0; }
  .strip li + li { border-top: 1px solid var(--line); }
}
