/* PowerVFD — shared foundation for the marketing site and the docs portal.
   Design tokens mirror powertally.co.tz (the sister Powercomputers product) so
   both sites read as one family: IBM Plex Sans + IBM Plex Mono, brand red
   #D6303F, crimson headings/dark sections, cool ink greys, paper #F6F7FB,
   amber accent, pill buttons and crimson-tinted card shadows. */

:root {
  /* Ink scale */
  --ink: #12141c;          /* ink-900 */
  --ink-2: #33374a;        /* ink-700 */
  --muted: #5b6072;        /* ink-500 */
  --faint: #9ba0b2;        /* ink-300 */
  --line: #e1e4ee;
  --line-strong: #cdd1de;

  /* Surfaces */
  --paper: #ffffff;
  --tray: #f6f7fb;         /* PowerTally "paper" */

  /* Brand */
  --red: #d6303f;          /* brand-red: buttons, links, accents (4.8:1 on white) */
  --red-ink: #d6303f;
  --red-ink-hover: #7a1220;/* crimson-900 */
  --red-light: #e6535f;    /* brand-red-light, for red text on dark */
  --red-wash: #fbeaec;
  --heading: #230609;      /* crimson-950 */
  --crimson-900: #7a1220;
  --crimson-950: #230609;
  --amber: #dd8a2e;
  --amber-600: #c4741e;
  --amber-50: #fdf5ea;
  --emerald: #059669;

  /* Dark (crimson) sections */
  --night: #230609;
  --night-2: #2f0a0e;
  --night-line: rgba(255, 255, 255, 0.1);
  --night-text: #ffffff;
  --night-muted: rgba(255, 255, 255, 0.64);

  --shadow-card: 0 1px 2px #7a12200f, 0 8px 24px -8px #7a12201f;
  --shadow-lift: 0 4px 6px #7a122014, 0 20px 40px -12px #7a122040;

  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --radius: 8px;
  --radius-card: 16px;
  --wrap: 1240px;
  --gutter: 20px;
}

@media (min-width: 640px) {
  :root { --gutter: 32px; }
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--red-ink); text-underline-offset: 3px; }
a:hover { color: var(--red-ink-hover); }

h1, h2, h3, h4 { line-height: 1.15; margin: 0; font-weight: 700; letter-spacing: -0.025em; color: var(--heading); }
p { margin: 0; }

code, kbd, pre { font-family: var(--font-mono); }

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

.wrap {
  width: 100%;
  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-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--heading); color: #fff; padding: 8px 14px; border-radius: var(--radius);
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* "PowerVFD is part of Powercomputers" strip ----------------------------- */
.parent-strip {
  height: 32px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center;
}
.parent-strip a {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--muted); text-decoration: none;
}
.parent-strip a:hover { color: var(--heading); }
.parent-strip img { height: 20px; width: auto; }

/* Wordmark: Powercomputers swoosh + italic "power" + VFD ------------------- */
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; line-height: 1;
}
.brand-mark { width: 34px; height: 34px; flex: none; }
.wordmark { font-size: 26px; font-style: italic; letter-spacing: -0.02em; white-space: nowrap; }
.wordmark .wm-power { color: var(--red); font-weight: 500; }
.wordmark .wm-vfd { color: var(--heading); font-weight: 700; }
.brand small {
  font-family: var(--font-mono); font-style: normal; font-weight: 500; font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  border-left: 1px solid var(--line-strong); padding-left: 10px; margin-left: 4px;
}
.brand-light .wordmark .wm-power { color: var(--red-light); }
.brand-light .wordmark .wm-vfd { color: #fff; }

/* Buttons (pills) ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 12px 28px;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1.2 var(--font-sans); text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-sm { min-height: 40px; padding: 8px 20px; font-size: 14px; }
.btn-primary { background: var(--red); color: #fff; box-shadow: var(--shadow-card); }
.btn-primary:hover { background: var(--crimson-900); color: #fff; }
.btn-secondary { background: #fff; color: var(--heading); border-color: var(--line); box-shadow: var(--shadow-card); }
.btn-secondary:hover { border-color: var(--red); color: var(--red); }
.btn-amber { background: var(--amber); color: var(--heading); box-shadow: var(--shadow-card); }
.btn-amber:hover { background: var(--amber-600); color: var(--heading); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.btn-outline-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.06); }

/* Mono eyebrow (PowerTally "tag-mono") -------------------------------------- */
.label {
  font-family: var(--font-mono); font-size: 12px; line-height: 1rem; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--red);
}
.label-chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 6px 12px; color: var(--muted);
}
