/* pingferry website styles — aligned with brand/BRAND.md & brand/tokens.css.
   Neutral and professional: white, greys, near-black text, amber as the sole
   accent. Zero blue, zero third-party requests, automatic light/dark mode. */
:root {
  --brand-navy: #16191F;
  --brand-amber: #E59A12;
  --radius-btn: 8px;
  --radius-card: 14px;
  --radius-pill: 999px;
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --fg: #16191F;
  --muted: #5D6573;
  --line: #E4E6EA;
  --soft: #F5F6F8;
  --band: #F4F5F7;
  --navy: #16191F;
  --btn: #16191F;
  --btn-fg: #FFFFFF;
  --accent: #F2A93B;
  --accent-ink: #9A6200;
  --accent-soft: #FDF2DE;
  --ok: #23845A;
  --ok-soft: #E3F3EA;
  --bad: #B9442F;
  --bad-soft: #FBE9E5;
  --tick: #C3C8D0;
  --body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1012;
    --surface: #16181B;
    --fg: #E8EAED;
    --muted: #9BA1AB;
    --line: #2A2D32;
    --soft: #1C1E22;
    --band: #141518;
    --navy: #E8EAED;
    --btn: #E8EAED;
    --btn-fg: #16191F;
    --accent-ink: #F2A93B;
    --accent-soft: #2A1F0E;
    --ok: #5CC48A;
    --ok-soft: #12271C;
    --bad: #F08A76;
    --bad-soft: #2C1713;
    --tick: #3A3E45;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0F1012;
  --surface: #16181B;
  --fg: #E8EAED;
  --muted: #9BA1AB;
  --line: #2A2D32;
  --soft: #1C1E22;
  --band: #141518;
  --navy: #E8EAED;
  --btn: #E8EAED;
  --btn-fg: #16191F;
  --accent-ink: #F2A93B;
  --accent-soft: #2A1F0E;
  --ok: #5CC48A;
  --ok-soft: #12271C;
  --bad: #F08A76;
  --bad-soft: #2C1713;
  --tick: #3A3E45;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 3px; }
a:hover { opacity: .82; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.in {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header navigation */
header.top {
  border-bottom: 1px solid var(--line);
}
header.top .in {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  padding-block: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-badge {
  width: 30px;
  height: 30px;
  display: block;
}
.brand-badge.badge-dark { display: none; }
:root[data-theme="dark"] .brand-badge.badge-light { display: none; }
:root[data-theme="dark"] .brand-badge.badge-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-badge.badge-light { display: none; }
  :root:not([data-theme="light"]) .brand-badge.badge-dark { display: block; }
}
.brand-name {
  font: 600 21px/1 var(--body);
  letter-spacing: -.025em;
  color: var(--fg);
  /* centre the letters' ink on the badge, not the line box */
  transform: translateY(-0.11em);
}
nav.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  font-size: 15px;
}
nav.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
}
nav.nav a:hover, nav.nav a[aria-current="page"] {
  color: var(--fg);
}
nav.nav .lang-link {
  font: 500 12.5px/1 var(--mono);
  letter-spacing: .04em;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
}
nav.nav .lang-link:hover {
  border-color: var(--fg);
  color: var(--fg);
  opacity: 1;
}
nav.nav .nav-signin {
  color: var(--fg);
  font-weight: 500;
}
.region-select {
  font: 500 12.5px/1 var(--mono);
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  background: var(--bg);
  color: var(--fg);
  cursor: pointer;
}
.region-select:hover {
  border-color: var(--fg);
}
.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
}
.theme-btn:hover {
  border-color: var(--fg);
  color: var(--fg);
}
.theme-btn .icon-sun { display: none; }
.theme-btn .icon-moon { display: block; }
:root[data-theme="dark"] .theme-btn .icon-sun { display: block; }
:root[data-theme="dark"] .theme-btn .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .icon-moon { display: none; }
}
nav.nav .nav-cta {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 15px;
  border-radius: var(--radius-btn);
  background: var(--btn);
  color: var(--btn-fg);
  font-weight: 600;
}
nav.nav .nav-cta:hover { color: var(--btn-fg); opacity: .88; }

/* Typography & vertical rhythm (BRAND.md: generous 88-104px spacing) */
h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 700;
}
h1 { font-size: clamp(32px, 4.4vw, 46px); max-width: 780px; }
h2 { font-size: clamp(24px, 3vw, 31px); max-width: 740px; }
h3 { font-size: 19px; font-weight: 600; }
h4 { font-size: 15px; font-weight: 600; }

main section { margin-top: 92px; }
main section.first { margin-top: 64px; }

/* BRAND.md: Plex Mono 12px, 500, uppercase, 0.12em tracking, --accent-ink */
.eyebrow {
  font: 500 12px/1.3 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 14px;
}
.tagline {
  margin: 14px 0 0;
  font-size: 19px;
  font-weight: 600;
  color: var(--fg);
  max-width: 680px;
}
.lead {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  max-width: 680px;
}
section > p {
  margin: 14px 0 0;
  color: var(--muted);
  max-width: 680px;
}
.prose {
  max-width: 700px;
}
.prose p {
  margin: 14px 0 0;
  color: var(--muted);
  max-width: none;
}
.prose ul, .prose ol {
  margin: 14px 0 0;
  padding-left: 22px;
  color: var(--muted);
}
.prose li { margin: 7px 0; }
.prose h2 { margin-top: 44px; max-width: none; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 28px; }
.prose strong, section > p strong { color: var(--fg); }
.mut { color: var(--muted); }
.small { font-size: 15px; }
.fine { font-size: 14px; color: var(--muted); }

/* Code blocks: consistent full width of their container (100% of .prose, .card, or section) */
code {
  font-family: var(--mono);
  font-size: .86em;
  background: var(--soft);
  padding: 2px 6px;
  border-radius: 5px;
}
pre {
  font: 13.5px/1.55 var(--mono);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  padding: 16px 18px;
  overflow-x: auto;
  margin: 18px 0 0;
  width: 100%;
}
pre code { background: none; padding: 0; font-size: inherit; }

/* Buttons: uniform height & alignment across primary, secondary, <a>, and <button> */
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  font: 600 15.5px/1.1 var(--body);
  padding: 12px 22px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--btn);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  background: var(--btn);
  color: var(--btn-fg);
  white-space: nowrap;
}
.btn:hover { opacity: .88; }
.btn-sec {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line);
}
.btn-sec:hover { border-color: var(--fg); opacity: 1; }
.linkbtn {
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* Hero split layout + live product visual */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 36px;
  align-items: center;
}
.viz-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  overflow: hidden;
}
.viz-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  font: 500 12px/1 var(--mono);
  color: var(--muted);
}
.viz-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ok);
}
.viz-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
}
.feed-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.feed-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.feed-item:last-child { border-bottom: 0; }
.feed-item.alert { background: var(--bad-soft); }
.feed-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.3;
}
.feed-sub {
  font: 400 12.5px/1.4 var(--mono);
  color: var(--muted);
  margin-top: 3px;
}
.feed-item.alert .feed-sub { color: var(--bad); }
.feed-meta {
  text-align: right;
  flex-shrink: 0;
}
.feed-time {
  font: 400 11.5px/1 var(--mono);
  color: var(--muted);
  margin-top: 6px;
}

/* Section 01: Timeline + SMTP terminal visual */
.change-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 28px;
  align-items: stretch;
}
.timeline {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
}
.tl-item {
  position: relative;
  padding-left: 24px;
}
.tl-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bad);
}
.tl-item.tl-warn::before { background: var(--accent); }
.tl-item:first-child::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 20px;
  bottom: -22px;
  width: 2px;
  background: var(--line);
}
.tl-date {
  font: 500 12px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--fg);
}
.tl-desc {
  margin: 6px 0 0;
  font-size: 14.5px;
  color: var(--muted);
}
.term {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.term-body {
  padding: 18px 18px;
  font: 400 13px/1.7 var(--mono);
  color: var(--muted);
  overflow-x: auto;
  margin: 0;
  border: 0;
  background: transparent;
}
.term-err { color: var(--bad); font-weight: 500; }
.term-ok { color: var(--ok); font-weight: 500; }

/* Card line icons (BRAND.md: 24px, 1.8px stroke, currentColor) */
.card-ico {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-btn);
  background: var(--soft);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  margin-bottom: 14px;
}

/* Visual architecture flow diagram */
.arch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1.1fr) 28px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin-top: 28px;
}
.arch-node {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 20px;
  background: var(--surface);
  height: 100%;
}
.arch-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.arch-tag {
  font: 500 11.5px/1 var(--mono);
  color: var(--accent-ink);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px;
}
.arch-node h3 { font-size: 16.5px; margin-bottom: 6px; }
.arch-node p { margin: 0; font-size: 14px; color: var(--muted); }
.mail-card {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-btn);
  background: var(--soft);
  border: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.5;
}
.mail-card .m-row { color: var(--muted); }
.mail-card .m-row strong { color: var(--fg); }

/* Visual scan preview bar */
.scan-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.scan-stat {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  background: var(--surface);
}
.scan-num {
  font: 700 24px/1.1 var(--body);
  color: var(--fg);
}
.scan-lbl {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  margin-top: 6px;
}
.scan-ex {
  font: 400 12px/1.4 var(--mono);
  color: var(--muted);
  margin-top: 4px;
}
.scan-preview.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.scan-stat.s-bad { border-left: 3px solid var(--bad); }

/* Status-tinted icon badges (status semantics only, BRAND.md) */
.card-ico.ico-bad { color: var(--bad); background: var(--bad-soft); border-color: transparent; }
.card-ico.ico-ok { color: var(--ok); background: var(--ok-soft); border-color: transparent; }

/* Native accessible FAQ accordions (zero JS) */
.faq-group { margin-top: 40px; }
.faq-group:first-of-type { margin-top: 32px; }
.faq-list { margin-top: 16px; border-top: 1px solid var(--line); }
details.faq-item {
  margin: 0;
  border-bottom: 1px solid var(--line);
}
details.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font: 600 17px/1.35 var(--body);
  color: var(--fg);
  cursor: pointer;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+";
  font: 400 22px/1 var(--mono);
  color: var(--muted);
  flex-shrink: 0;
}
details.faq-item[open] summary::after {
  content: "−";
  color: var(--accent-ink);
}
details.faq-item p {
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 680px;
}

/* Numbered doc step divider */
.doc-step {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.doc-step .eyebrow { margin-bottom: 8px; }

/* Trust strip */
.strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--muted);
  list-style: none;
  padding-left: 0;
}
.strip li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  margin-right: 8px;
  vertical-align: 1px;
}

/* Strict equal-column grids (no awkward 3+1 orphans) */
.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}
.flow-step {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 22px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
}
.flow-step .step-n {
  font: 500 12px/1 var(--mono);
  color: var(--accent-ink);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 10px;
}
.flow-step h3 { font-size: 17px; margin-bottom: 8px; }
.flow-step p { margin: 0; font-size: 14.5px; color: var(--muted); }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.plan-all { font-size: 14px; color: var(--muted); max-width: none; margin: 18px 0 0; }
.plan-all strong { color: var(--fg); }
.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

/* Cards: uniform height, uniform full-width bottom buttons */
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.rec-tag {
  font: 500 11px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-ink);
  white-space: nowrap;
}
.card h3 { margin: 0; }
.card p { margin: 10px 0 0; font-size: 15px; color: var(--muted); }
.card ul {
  margin: 16px 0 0;
  padding-left: 18px;
  font-size: 14.5px;
  color: var(--muted);
}
.card li { margin: 6px 0; }
.card .card-foot {
  margin-top: auto;
  padding-top: 22px;
}
.card .card-foot .btn {
  width: 100%;
}

/* Billing toggle & pricing typography */
.billing-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
}
.billing-toggle {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  background: var(--soft);
  gap: 4px;
}
.bt-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 14.5px/1 var(--body);
  padding: 10px 16px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.bt-btn[aria-pressed="true"] {
  background: var(--bg);
  color: var(--fg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}
.save-pill {
  font: 500 11px/1 var(--mono);
  padding: 3px 7px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.price {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-top: 16px;
  color: var(--fg);
  line-height: 1.15;
}
.price-sub {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 6px;
  min-height: 2.6em;
}

/* Callout / note: quiet grey panel, marked with the amber ping square */
.callout {
  position: relative;
  margin-top: 24px;
  padding: 18px 20px 18px 42px;
  border-radius: var(--radius-card);
  background: var(--soft);
  border: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
  width: 100%;
}
.callout::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 26px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--brand-amber);
}
.callout strong { color: var(--fg); }

/* Status badges: Plex Mono 12px, pill shape, dot before label, zero blue */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 500 12px/1 var(--mono);
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.b-basic { background: var(--bad-soft); color: var(--bad); }
.b-oauth { background: var(--ok-soft); color: var(--ok); }
.b-partial { background: var(--accent-soft); color: var(--accent-ink); }
.b-oem { background: var(--soft); color: var(--fg); border: 1px solid var(--line); }
.b-noinfo { background: var(--soft); color: var(--muted); border: 1px solid var(--line); }

/* Tables */
.tw { overflow-x: auto; margin-top: 28px; width: 100%; }
table { width: 100%; border-collapse: collapse; }
th {
  font: 500 12px/1.3 var(--mono);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  text-align: left;
  padding: 0 14px 12px 0;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 15px 14px 15px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 15px;
}
th.num, td.num { text-align: right; white-space: nowrap; width: 130px; }
td .sub { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; margin-top: 4px; }
.ok-txt { color: var(--ok); font-weight: 600; }
.bad-txt { color: var(--bad); font-weight: 600; }
.no-caps { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--fg); }

/* Scannable comparison table cells: crisp tick / cross / partial marker */
.cmp {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}
.cmp::before {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 700 11px/1 var(--mono);
}
.cmp-yes { color: var(--fg); font-weight: 500; }
.cmp-yes::before { content: "✓"; background: var(--ok-soft); color: var(--ok); }
.cmp-no { color: var(--muted); }
.cmp-no::before { content: "×"; background: var(--bad-soft); color: var(--bad); font-size: 13px; }
.cmp-part { color: var(--muted); }
.cmp-part::before { content: "–"; background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; }

/* Panel footer bar for anchored links (no orphaned buttons under tables) */
.viz-gap { margin-top: 24px; }
.viz-panel .tw { margin-top: 0; }
.viz-panel table { margin: 0; }
.viz-panel th, .viz-panel td { padding: 13px 16px; }
.viz-panel tbody tr:last-child td { border-bottom: 0; }
.viz-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  padding: 13px 16px;
  background: var(--soft);
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  font-weight: 500;
}
.viz-foot a { text-decoration: none; color: var(--fg); }
.viz-foot a:hover { text-decoration: underline; opacity: 1; }

/* Category pills on /devices */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.pill {
  font: 500 13px/1 var(--mono);
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  text-decoration: none;
  color: var(--muted);
}
.pill:hover { border-color: var(--fg); color: var(--fg); opacity: 1; }

/* CTA banner */
.cta {
  text-align: center;
  margin-top: 92px;
  padding: 56px 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta h2 { margin: 0 auto; }
.cta p { margin: 12px auto 0; max-width: 580px; color: var(--muted); }
.cta .actions { justify-content: center; margin-top: 28px; }
.cta .fine { margin-top: 16px; }

/* CSV scan & pilot form (compatible with scan/web/csv-page.js and quote.js) */
.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
.step { border: 1px solid var(--line); border-radius: var(--radius-card); padding: 24px; background: var(--surface); }
.step h3 { margin-bottom: 12px; }
.step ol { margin: 0; padding-left: 20px; color: var(--muted); }
.step li { margin: 6px 0; }
.drop { border: 1px dashed var(--muted); border-radius: var(--radius-btn); padding: 26px 16px; text-align: center; }
.drop.over { border-color: var(--fg); background: var(--soft); }
.drop input { position: absolute; left: -9999px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin-top: 12px; color: var(--muted); font-size: 15px; }
select { font: inherit; padding: 9px 12px; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: var(--radius-btn); }
.row select { padding: 3px 8px; }
.trust { font-size: 15px; color: var(--muted); margin-top: 20px; max-width: 680px; }
.err { color: var(--bad); font-weight: 500; }
.notes { margin-top: 44px; font-size: 15px; color: var(--muted); }
.notes p { margin: 0 0 12px; max-width: 680px; }

form { max-width: 640px; margin-top: 24px; }
form .f { display: grid; gap: 6px; margin: 0 0 18px; }
form label { font-weight: 500; font-size: 15px; }
form .chk label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-weight: 400; }
form .chk input { margin-top: 4px; }
form input[type=email], form input[type=text], form input[type=number], form textarea, form select, .fill-grid input {
  font: inherit;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  background: var(--bg);
  color: var(--fg);
  width: 100%;
}
form textarea { min-height: 96px; }
.hp { position: absolute; left: -9999px; }
details { margin: 0 0 14px; }
summary { cursor: pointer; color: var(--muted); font-size: 15px; }
.okmsg { color: var(--ok); font-weight: 600; }

/* Breadcrumb */
.crumb { font: 500 13px/1.3 var(--mono); color: var(--muted); margin: 0 0 16px; }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.status-row { margin: 0 0 14px; }

/* Footer */
footer.foot {
  margin-top: 92px;
  border-top: 1px solid var(--line);
  padding: 44px 0 52px;
  font-size: 14px;
  color: var(--muted);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(140px, 1fr));
  gap: 28px 24px;
}
.foot h4 {
  font: 500 12px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--fg);
  margin-bottom: 12px;
}
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 7px 0; }
.foot li a { text-decoration: none; color: var(--muted); }
.foot li a:hover { color: var(--fg); }
.foot-tag { margin: 0; max-width: 280px; }
.foot-mail { margin: 10px 0 0; }
.foot-base {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  font-size: 13.5px;
}
.foot-ctl {
  flex-shrink: 0;
}

@media (max-width: 1040px) {
  .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .grid-4, .flow, .scan-preview.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .arch { grid-template-columns: 1fr; gap: 12px; }
  .arch-arrow { transform: rotate(90deg); height: 22px; }
}
@media (max-width: 820px) {
  .grid-3, .change-grid, .scan-preview { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .scan-preview.cols-4 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .grid-2, .steps { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid-4, .grid-5, .flow { grid-template-columns: 1fr; }
  th.num, td.num { width: auto; }
  main section { margin-top: 60px; }
  main section.first { margin-top: 42px; }
  .cta { margin-top: 64px; padding: 44px 12px; }
  .foot-grid { grid-template-columns: 1fr; }
}

/* Secondary actions inside cards are links; plan cards on the pricing page use buttons. */
.card .card-foot a.more {
  font-weight: 600;
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Mobile menu: one button instead of wrapped links */
.menu { display: none; position: relative; }
.menu summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; height: 2px; background: var(--fg); border-radius: 1px; }
.menu-panel {
  position: absolute;
  right: 0;
  top: 44px;
  z-index: 20;
  min-width: 200px;
  display: grid;
  padding: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
nav.nav .menu-panel a { padding: 10px 12px; color: var(--fg); }
.ctl { display: inline-flex; align-items: center; gap: 12px; }
.menu-ctl { display: none; }
/* Switch to the menu before the header would wrap (German labels need ~960 px). */
@media (max-width: 980px) {
  nav.nav { flex-wrap: nowrap; gap: 10px; }
  nav.nav > a:not(.nav-cta), .nav-ctl { display: none; }
  .menu { display: block; }
  .menu-ctl { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; padding: 12px 12px 4px; border-top: 1px solid var(--line); }
  .menu-ctl .lang-link { padding: 6px 10px; }
}
nav.nav .nav-cta { white-space: nowrap; }
@media (max-width: 480px) {
  .brand-name { display: none; }
  nav.nav .nav-cta { padding: 0 12px; font-size: 14px; }
}

/* Highlighted box (BRAND.md "Highlights"): a warm amber edge that fades
   into the normal border, a faint amber wash at the top and a soft lifted
   shadow. Same look for every highlighted box: featured cards, the
   pingferry step, the scan result. */
.card.hi, .arch-node.mid, .scan-stat.s-pf {
  position: relative;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, var(--hi-wash) 0, transparent 160px) padding-box,
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(165deg, var(--brand-amber) 0%, var(--hi-edge) 38%, var(--line) 75%) border-box;
  box-shadow: var(--hi-shadow);
}
:root {
  --hi-wash: rgba(229, 154, 18, .07);
  --hi-edge: rgba(229, 154, 18, .45);
  --hi-shadow: 0 1px 2px rgba(22, 25, 31, .05), 0 14px 34px -14px rgba(229, 154, 18, .35), 0 28px 56px -28px rgba(22, 25, 31, .22);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --hi-wash: rgba(229, 154, 18, .09);
    --hi-edge: rgba(229, 154, 18, .5);
    --hi-shadow: 0 0 0 1px rgba(229, 154, 18, .06), 0 16px 44px -16px rgba(229, 154, 18, .30), 0 28px 56px -28px rgba(0, 0, 0, .6);
  }
}
:root[data-theme="dark"] {
  --hi-wash: rgba(229, 154, 18, .09);
  --hi-edge: rgba(229, 154, 18, .5);
  --hi-shadow: 0 0 0 1px rgba(229, 154, 18, .06), 0 16px 44px -16px rgba(229, 154, 18, .30), 0 28px 56px -28px rgba(0, 0, 0, .6);
}

/* Boxes side by side in one row share one height. */
.grid-2 > *, .grid-3 > *, .grid-4 > *, .grid-5 > *, .steps > *, .change-grid > * { margin-top: 0; }
.steps > .step { display: flex; flex-direction: column; }

/* Copy button on code blocks (copy.js) */
.code-wrap { position: relative; }
.code-wrap pre { padding-right: 84px; }
.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font: 600 13px/1 var(--body);
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--fg);
  cursor: pointer;
}
.copy-btn:hover { border-color: var(--fg); }

/* Numbered how-to steps (scan script, setup guide) */
.howto { list-style: none; counter-reset: howto; padding: 0; margin: 24px 0 0; }
.howto > li { counter-increment: howto; position: relative; padding-left: 44px; margin: 0 0 26px; }
.howto > li::before {
  content: counter(howto);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 600 14px/1 var(--body);
  color: var(--fg);
}
.howto h3 { margin: 2px 0 6px; font-size: 17px; }
.howto p { margin: 6px 0 0; color: var(--muted); }
.howto .actions { margin-top: 14px; }

/* Setup guide: fields that fill the commands in */
.fill-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.fill-grid label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.fill-grid input { width: 100%; }
.shot { margin: 16px 0 0; }
.shot img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius-btn); display: block; }
.shot figcaption { font-size: 13.5px; color: var(--muted); margin-top: 8px; }

/* Billing controls & MSP partner band on /pricing/ */
.billing-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.msp-band {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--soft);
}
.msp-band-main {
  flex: 1 1 420px;
  min-width: 0;
}
.msp-band-main h3 {
  margin: 0;
  font-size: 19px;
}
.msp-band-main p {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--muted);
  max-width: 660px;
}
.msp-band-points {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  font-size: 14px;
  color: var(--fg);
}
.msp-band-points li::before {
  content: "✓ ";
  color: var(--ok);
  font-weight: 700;
}
.msp-band-act {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
@media (max-width: 720px) {
  .msp-band-act {
    align-items: stretch;
    width: 100%;
  }
  .msp-band-act .btn {
    width: 100%;
  }
}

/* Trial sign-up: plan picker */
.plan-pick { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.plan-pick legend { font-weight: 600; margin-bottom: 10px; padding: 0; }
.plan-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.plan-opt { position: relative; display: block; border: 1px solid var(--line); border-radius: var(--radius-btn); padding: 12px 14px; cursor: pointer; background: var(--surface); }
.plan-opt input { position: absolute; opacity: 0; pointer-events: none; }
.plan-opt .po-name { display: block; font-weight: 600; color: var(--fg); }
.plan-opt .po-price { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }
.plan-opt:has(input:checked) { border-color: transparent; background: linear-gradient(180deg, var(--hi-wash) 0, transparent 80px) padding-box, linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(165deg, var(--brand-amber) 0%, var(--hi-edge) 38%, var(--line) 75%) border-box; box-shadow: var(--hi-shadow); }
/* Fifth option (MSP partner) gets its own full row, read as one line. */
.plan-opt:nth-child(5):last-child { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.plan-opt:nth-child(5):last-child .po-price { margin-top: 0; }
.plan-opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.plan-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.plan-meta label { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; }
.convert-note { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.msp-chk { margin: 4px 0 0; }
.msp-chk label { color: var(--muted); font-size: 14.5px; }
.free-mail-note { font-size: 13.5px; color: var(--accent-ink); margin: 2px 0 0; }
.side-note { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
@media (max-width: 560px) {
  .plan-opts { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .fill-grid { grid-template-columns: 1fr; }
}
.fill-grid.fill-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.doc-step details { border: 1px solid var(--line); border-radius: var(--radius-btn); padding: 12px 16px; margin: 12px 0 0; }
.doc-step details summary { cursor: pointer; font-weight: 600; }
.doc-step details[open] summary { margin-bottom: 8px; }
@media (max-width: 900px) { .fill-grid.fill-2 { grid-template-columns: 1fr; } }
/* Device pages: one clear next step under the flow */
.next-step { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 24px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--soft); }
.next-step p { margin: 0; font-weight: 600; color: var(--fg); }
.code-wrap pre[data-copy] { padding-right: 84px; white-space: pre-wrap; overflow-wrap: anywhere; }
.howto h3 { color: var(--fg); }
.prose ol.howto { padding-left: 0; margin-top: 24px; }
.prose .howto > li { margin: 0 0 26px; }
.prose .howto h3 { margin-top: 2px; }
main section#formSec { margin-top: 36px; }

/* Trial page: form on the left, what happens next on the right */
.trial { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 0 64px; align-items: start; }
.trial-main { min-width: 0; }
.trial-side { position: sticky; top: 96px; margin-top: 64px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--soft); }
.trial-side h2 { font-size: 18px; margin: 0 0 16px; }
.next-list { list-style: none; margin: 0; padding: 0; }
.next-list li { position: relative; padding: 0 0 16px 22px; display: grid; gap: 2px; font-size: 14.5px; color: var(--muted); }
.next-list li::before { content: ""; position: absolute; left: 0; top: 5px; width: 9px; height: 9px; border-radius: 2px; background: var(--fg); }
.next-list li:first-child::before { background: var(--brand-amber); }
.next-list li::after { content: ""; position: absolute; left: 4px; top: 18px; bottom: 2px; width: 1px; background: var(--line); }
.next-list li:last-child::after { display: none; }
.next-list .nl-when { font-family: var(--mono, "IBM Plex Mono", monospace); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg); }
.trust-list { list-style: none; margin: 8px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.trust-list li { position: relative; padding-left: 22px; margin: 0 0 8px; }
.trust-list li::before { content: "✓"; position: absolute; left: 2px; top: 0; color: var(--ok); font-weight: 700; }
.side-scan { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.trial .hint { font-size: 13.5px; color: var(--muted); }
.trial input[aria-invalid="true"] { border-color: var(--danger, #C2412D); }
.plan-sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-btn); background: var(--surface); font-size: 15px; }
.plan-sum .ps-label { color: var(--muted); font-size: 14px; }
.plan-sum .ps-val { color: var(--fg); }
.plan-sum .ps-val span { color: var(--muted); }
.linkbtn { margin-left: auto; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; color: var(--fg); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
details.more { margin: 0 0 18px; }
details.more summary { cursor: pointer; font-size: 14.5px; color: var(--muted); }
details.more[open] summary { margin-bottom: 14px; }
.send-row { margin: 22px 0 0; }
.send-row .btn { min-width: 220px; }
.ok-panel { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.ok-panel h2 { font-size: 22px; margin: 0 0 8px; }
.ok-panel h2:focus { outline: none; }
.ok-panel p { margin: 0 0 10px; }
.ok-panel .ok-wait { font-weight: 600; color: var(--fg); margin-top: 14px; }
.ok-list { margin: 0; padding-left: 20px; color: var(--muted); }
.ok-list li { margin: 0 0 6px; }
@media (max-width: 900px) {
  .trial { grid-template-columns: 1fr; }
  .trial-side { position: static; margin-top: 36px; }
  .send-row .btn { width: 100%; }
}
.cta-note { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); }

/* Comparison table that stacks into one card per row on phones. */
table.stack tbody th { font: inherit; font-size: 15px; color: inherit; text-transform: none; letter-spacing: 0; vertical-align: top; }
.viz-panel table.stack tbody tr:last-child th { border-bottom: 0; }
@media (max-width: 640px) {
  table.stack thead { display: none; }
  table.stack, table.stack tbody, table.stack tr, table.stack th, table.stack td { display: block; width: 100%; }
  table.stack tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  table.stack tr:last-child { border-bottom: 0; }
  table.stack tbody th, table.stack td { padding: 0; border: 0; }
  table.stack tbody th { font-weight: 600; margin-bottom: 8px; }
  table.stack td { margin-top: 6px; }
  table.stack td[data-label="pingferry"]::before { text-transform: none; }
  table.stack td::before { content: attr(data-label); display: block; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 2px; }
}

/* Home: equipment cards with an example alert line */
.equip .card { display: flex; flex-direction: column; }
.alert-ex {
  margin-top: 14px;
  padding: 8px 10px;
  border-radius: var(--radius-btn);
  background: var(--soft);
  border: 1px solid var(--line);
  font: 400 12.5px/1.4 var(--mono);
  color: var(--fg);
  overflow-wrap: anywhere;
}
.alert-ex::before { content: "✉ "; color: var(--muted); }
.card p.brands {
  margin-top: auto;
  padding-top: 12px;
  font: 400 12px/1.4 var(--mono);
  color: var(--muted);
}

/* Home: numbered setup steps with durations */
.steps-list { display: flex; flex-direction: column; gap: 22px; }
.tl-step { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; align-items: start; }
.tl-num {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: var(--surface);
  font: 600 14px/1 var(--body); color: var(--fg);
}
.tl-step h3 { font-size: 17px; margin: 4px 0 0; }
.tl-step p { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.dur {
  display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px;
  background: var(--soft); border: 1px solid var(--line);
  font: 500 11.5px/1.4 var(--mono); color: var(--muted); vertical-align: 2px; white-space: nowrap;
}

/* Key/value settings table inside a viz panel */
.viz-panel .tw { margin-top: 0; }
table.kv th { width: 34%; font-weight: 500; color: var(--muted); text-align: left; white-space: nowrap; }
table.kv td { overflow-wrap: anywhere; }
.chg {
  display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink);
  font: 500 11px/1.5 var(--mono); vertical-align: 1px;
}

/* Tick list */
ul.ticks { list-style: none; padding: 0; margin: 16px 0 0; }
ul.ticks li { position: relative; padding-left: 26px; margin: 8px 0; color: var(--fg); }
ul.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ok-soft); color: var(--ok); font-size: 11px; font-weight: 700;
}
@media (max-width: 560px) {
  table.kv th { white-space: normal; width: 38%; }
}

/* Home: dashboard preview */
.dash-pills { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 18px 4px; }
