/* ppftec.com: one stylesheet, no web fonts, no scripts, no third parties. */

:root {
  color-scheme: light dark;

  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-2: #eef3fa;
  --text: #17202c;
  --text-muted: #4f5d70;
  --border: #d9e1ec;
  --accent: #0b5cd5;
  --accent-strong: #0747a6;
  --accent-soft: #e6effd;
  --code-bg: #eef2f7;
  --focus: #1d7afc;
  --shadow: 0 1px 2px rgb(16 24 40 / 6%), 0 4px 16px rgb(16 24 40 / 6%);

  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 16px;
  --measure: 72ch;
  --page: 1080px;
  --gutter: 16px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f141b;
    --surface: #161d27;
    --surface-2: #1c2531;
    --text: #e6ebf2;
    --text-muted: #a3afbf;
    --border: #2a3544;
    --accent: #7fb2ff;
    --accent-strong: #a9cbff;
    --accent-soft: #1a2a42;
    --code-bg: #1f2935;
    --focus: #7fb2ff;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 4px 16px rgb(0 0 0 / 25%);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--font);
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-strong);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(1.8rem, 1.3rem + 2.2vw, 2.6rem);
}

h2 {
  font-size: 1.45rem;
  margin-top: 2em;
}

h3 {
  font-size: 1.1rem;
  margin-top: 1.6em;
}

p,
ul,
ol,
table,
pre {
  margin: 0 0 1em;
}

li + li {
  margin-top: 0.3em;
}

code,
kbd {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--code-bg);
  border-radius: 4px;
  padding: 0.1em 0.35em;
}

kbd {
  border: 1px solid var(--border);
  border-bottom-width: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: var(--radius-s);
  z-index: 10;
}

.skip-link:focus {
  left: 8px;
}

/* Layout */

.wrap {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  min-height: 64px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand img {
  width: 28px;
  height: 28px;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav li + li {
  margin-top: 0;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

.site-nav a[aria-current="page"] {
  font-weight: 600;
}

main {
  padding: 40px 0 64px;
}

/* Hero */

.hero {
  display: grid;
  gap: 20px;
  align-items: center;
  padding: 16px 0 8px;
}

.hero-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 60ch;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.4em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.button {
  display: inline-block;
  padding: 10px 18px;
  border-radius: var(--radius-s);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #fff;
}

.button.secondary {
  background: transparent;
  color: var(--accent);
}

.button.secondary:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

@media (prefers-color-scheme: dark) {
  .button {
    color: #0f141b;
  }

  .button:hover {
    color: #0f141b;
  }
}

.note {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.actions + .note {
  margin-top: 14px;
}

/* Cards and grids */

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  margin: 24px 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 20px;
  box-shadow: var(--shadow);
}

.card h2,
.card h3 {
  margin-top: 0;
  font-size: 1.15rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.product-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.product-card img {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 12px;
}

.figure {
  margin: 32px 0;
}

.figure img {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow);
}

.figure figcaption {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 10px;
}

.callout {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-s);
  padding: 14px 18px;
  margin: 0 0 1.2em;
}

.callout p:last-child {
  margin-bottom: 0;
}

/* Long-form documents (privacy, terms, support) */

.doc {
  max-width: var(--measure);
}

.doc h2 {
  padding-top: 0.2em;
  scroll-margin-top: 16px;
}

.doc .meta {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 16px 20px;
  margin: 24px 0 8px;
}

.toc h2 {
  font-size: 1rem;
  margin: 0 0 0.5em;
}

.toc ol {
  margin: 0;
  padding-left: 1.3em;
}

.table-scroll {
  overflow-x: auto;
  margin: 0 0 1.2em;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  background: var(--surface);
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 0;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

tr:last-child td {
  border-bottom: 0;
}

th {
  background: var(--surface-2);
  font-weight: 600;
}

td code {
  overflow-wrap: anywhere;
}

dl.faq dt {
  font-weight: 600;
  margin-top: 1.2em;
}

dl.faq dd {
  margin: 0.3em 0 0;
  color: var(--text);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 28px 0 36px;
}

.site-footer p {
  margin: 0 0 0.5em;
}

.site-footer .legal {
  max-width: 80ch;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}

.site-footer li + li {
  margin-top: 0;
}

@media (min-width: 720px) {
  .hero.with-icon {
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 28px;
  }

  .hero.with-icon .hero-icon {
    margin-top: 6px;
  }

  main {
    padding-top: 56px;
  }
}

@media print {
  .site-nav,
  .skip-link {
    display: none;
  }
}
