/* Layout: one centered column, bands of content separated by hairlines; product hero pairs copy with a PO-to-payment trace. */
:root {
  --paper: #F4F6FB;
  --surface: #FFFFFF;
  --ink: #01102B;
  --muted: #4A5774;
  --line: #D7DDEA;
  --accent: #0045FC;
  --accent-ink: #FFFFFF;
  --accent-soft: #E6EDFF;
  --flag: #A34A0C;
  --flag-soft: #FBECDF;
  --ok: #2B7038;
  --font-display: "Sora", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1120px;
  --measure: 66ch;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #070E1F;
    --surface: #0F1A33;
    --ink: #E8EEFA;
    --muted: #A0ACC6;
    --line: #22304E;
    --accent: #7097FF;
    --accent-ink: #03102E;
    --accent-soft: #14244D;
    --flag: #F0A262;
    --flag-soft: #3A2616;
    --ok: #7FCB8B;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #070E1F;
  --surface: #0F1A33;
  --ink: #E8EEFA;
  --muted: #A0ACC6;
  --line: #22304E;
  --accent: #7097FF;
  --accent-ink: #03102E;
  --accent-soft: #14244D;
  --flag: #F0A262;
  --flag-soft: #3A2616;
  --ok: #7FCB8B;
  color-scheme: dark;
}

:root {
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: 0; }
p { margin: 0; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.band { padding-block: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); }
.band--first { border-top: 0; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: var(--measure); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
}
.muted { color: var(--muted); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}
.brand small {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0;
}
.brand svg { flex: none; }
.logo { display: block; height: 32px; width: auto; }
#product-title .logo { height: 40px; }
.logo--company { height: 44px; }
.logo--dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo--light { display: none; }
  :root:not([data-theme="light"]) .logo--dark { display: block; }
}
:root[data-theme="dark"] .logo--light { display: none; }
:root[data-theme="dark"] .logo--dark { display: block; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.95rem; padding-block: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { color: var(--accent-ink); filter: brightness(1.08); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.nav .btn { padding: 8px 16px; min-height: 40px; color: var(--accent-ink); }
.nav .btn:hover { color: var(--accent-ink); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero > * { min-width: 0; }
@media (max-width: 880px) { .hero { grid-template-columns: minmax(0, 1fr); } }

/* PO trace: the product's core record, PO to payment */
.trace {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px 18px;
  font-variant-numeric: tabular-nums;
}
.trace__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.trace__tag { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.trace ol { list-style: none; margin: 0; padding: 6px 0 0; }
.trace li {
  display: grid;
  grid-template-columns: 14px minmax(0, 7.5rem) minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.95rem;
}
.trace li:last-child { border-bottom: 0; }
.trace .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); align-self: center; }
.trace .step { font-weight: 600; }
.trace .detail { color: var(--muted); }
.trace .mono { font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink); }
.trace li.is-flag { background: var(--flag-soft); margin-inline: -12px; padding-inline: 12px; border-radius: 8px; border-bottom-color: transparent; }
.trace li.is-flag .dot { background: var(--flag); }
.trace li.is-flag .step, .trace li.is-flag .detail strong { color: var(--flag); }
.trace figcaption { margin-top: 12px; font-size: 0.8rem; color: var(--muted); }

/* Sections */
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; max-width: var(--measure); }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 48px; }
@media (max-width: 860px) { .cols-3, .cols-2 { grid-template-columns: minmax(0, 1fr); } }
.point { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 2px solid var(--ink); }
.point p { color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; margin: 0; }
@media (max-width: 760px) { .features { grid-template-columns: minmax(0, 1fr); } }
.feature { padding: 22px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.feature dt { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.feature dd { margin: 0; color: var(--muted); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 8px; }
.steps li::before {
  content: "Step " counter(step);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.steps p { color: var(--muted); }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; }
.checks svg { margin-top: 4px; color: var(--accent); }

.panel {
  background: var(--accent-soft);
  border-radius: 14px;
  padding: clamp(28px, 5vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 32px;
  align-items: start;
}
@media (max-width: 860px) { .panel { grid-template-columns: minmax(0, 1fr); } }
.contact-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 1rem;
  word-break: break-all;
}

.product {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(24px, 4vw, 40px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}
@media (max-width: 860px) { .product { grid-template-columns: minmax(0, 1fr); } }

.faq { display: grid; gap: 0; max-width: 820px; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style-position: outside; }
.faq details p { margin-top: 10px; color: var(--muted); max-width: var(--measure); }

.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 24px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
@media (max-width: 520px) { .facts { grid-template-columns: minmax(0, 1fr); gap: 2px; } .facts dd { margin-bottom: 10px; } }

/* Legal pages */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); }
.legal h2 { font-size: 1.35rem; margin-top: 40px; margin-bottom: 12px; }
.legal p, .legal li { color: var(--ink); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 1.2em; display: grid; gap: 6px; margin: 12px 0; }
.legal .note {
  background: var(--flag-soft);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.95rem;
  margin-top: 20px;
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px; font-size: 0.9rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-direction: column; gap: 16px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Home: example product screen */
.app {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}
.app__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.95rem;
}
.app__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.app__stats div { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; }
.app__stats div + div { border-left: 1px solid var(--line); }
.app__stats strong { font-family: var(--font-display); font-size: 1.8rem; line-height: 1.1; }
.app__stats div:first-child strong { color: var(--flag); }
.app__stats span { font-size: 0.85rem; color: var(--muted); }
.inbox { list-style: none; margin: 0; padding: 6px 0; }
.inbox li {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  gap: 12px;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.inbox li:last-child { border-bottom: 0; }
.inbox li.is-done .inbox__text { color: var(--muted); }
.inbox .mono { font-family: var(--font-mono); font-size: 0.82rem; }
.inbox__action {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 10px;
}
@media (max-width: 520px) {
  .inbox li { grid-template-columns: minmax(0, 1fr) max-content; }
  .inbox li .chip { grid-column: 1 / -1; justify-self: start; }
}
.chip {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.chip--flag { background: var(--flag-soft); color: var(--flag); }
.chip--info { background: var(--accent-soft); color: var(--accent); }
.chip--ok { background: var(--paper); color: var(--ok); border: 1px solid var(--line); }

/* Home: five-stage flow */
.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  counter-reset: stage;
}
.flow li {
  counter-increment: stage;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 20px 4px 0;
  border-top: 3px solid var(--accent);
  position: relative;
}
.flow li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.flow li::before {
  content: counter(stage);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
}
.flow p { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 960px) {
  .flow { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .flow li, .flow li + li { padding: 18px 0 18px 18px; border-top: 0; border-left: 3px solid var(--accent); }
}

/* Home: before and after table */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.compare { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 0.97rem; }
.compare th, .compare td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
.compare tbody th { font-weight: 600; white-space: nowrap; }
.compare td:nth-child(2) { color: var(--muted); }
.compare td:nth-child(3) { color: var(--ink); }
.compare thead th:nth-child(3) { color: var(--accent); }
