/* PDFBro storefront — industrial chassis around a live window */

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/source-sans-3-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/source-sans-3-cyrillic-400.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/source-sans-3-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/source-sans-3-cyrillic-600.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/source-sans-3-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/source-sans-3-cyrillic-700.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-cyrillic-400.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-cyrillic-500.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --chassis: #16191e;
  --chassis-2: #1c2026;
  --ink: #eceae4;
  --mute: #9a968e;
  --line: rgba(236, 234, 228, 0.11);
  --line-2: rgba(236, 234, 228, 0.2);
  --cta: #73a8a3;
  --cta-hi: #8bbdb8;
  --cta-ink: #101412;
  --r: 5px;
  --font: "Source Sans 3", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --wrap: 1040px;
  --gutter: clamp(1.1rem, 2.8vw, 1.85rem);
  --header-h: 48px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --win-canvas: #1c1f24;
  --win-caption: color-mix(in srgb, var(--win-canvas) 78%, #000 22%);
  --win-shadow: 0 10px 28px rgb(0 0 0 / 0.28);
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  overflow-x: clip;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--chassis);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease);
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--cta); text-underline-offset: 0.15em; }
a:hover { color: var(--cta-hi); }
button { font: inherit; color: inherit; }
.mono { font-family: var(--mono); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 90;
  padding: 0.4rem 0.7rem;
  background: var(--ink);
  color: var(--chassis);
  border-radius: var(--r);
}
.skip:focus { left: var(--gutter); top: 0.35rem; }

:focus-visible {
  outline: 2px solid var(--cta);
  outline-offset: 2px;
}

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: var(--chassis);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.22s var(--ease), border-color 0.22s var(--ease);
}

.header-in {
  height: var(--header-h);
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
}
.wordmark-mark {
  display: block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 5px;
}
.wordmark:hover { color: var(--ink); }

.nav {
  display: flex;
  gap: 1.05rem;
  margin-right: auto;
}
.nav a {
  color: var(--mute);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 560;
}
.nav a:hover { color: var(--ink); }

.header-end { display: flex; align-items: center; gap: 0.55rem; }

.lang {
  display: inline-flex;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--chassis-2);
}
.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--mute);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.52rem;
  cursor: pointer;
  touch-action: manipulation;
}
.lang-btn[aria-pressed="true"] {
  background: var(--ink);
  color: var(--chassis);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-weight: 650;
  font-size: 0.9rem;
  line-height: 1.15;
  padding: 0.62rem 0.98rem;
  border-radius: var(--r);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-sm { padding: 0.36rem 0.7rem; font-size: 0.8rem; }
.btn-primary {
  background: var(--cta);
  color: var(--cta-ink);
}
.btn-primary:hover { background: var(--cta-hi); color: var(--cta-ink); }

.header-cta { display: none; }
@media (min-width: 860px) { .header-cta { display: inline-flex; } }

/* Hero */

.hero {
  position: relative;
  padding: 2.6rem 0 2.8rem;
}

.hero-in {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.85rem;
}

.hero-copy {
  max-width: 36rem;
  text-align: center;
}

.hero-title {
  margin: 0;
  font-size: clamp(1.7rem, 3.1vw, 2.35rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--ink);
  text-wrap: balance;
}

.hero-lead {
  margin: 0.85rem auto 0;
  color: var(--mute);
  font-size: 1.02rem;
  max-width: 38ch;
  text-wrap: pretty;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.hero-stage {
  position: relative;
  width: 100%;
  max-width: 52rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.7rem;
}

.app-window {
  border: 1px solid var(--line-2);
  border-radius: 6px;
  overflow: hidden;
  background: var(--win-canvas);
  box-shadow: var(--win-shadow);
}

.win-caption {
  display: flex;
  align-items: center;
  height: 32px;
  padding-left: 0.7rem;
  background: var(--win-caption);
  border-bottom: 1px solid var(--line);
  transform-origin: top center;
}

.motion .win-caption {
  animation: caption-in 0.48s var(--ease) both;
}

@keyframes caption-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.win-title {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.01em;
  color: var(--mute);
}

.win-controls {
  margin-left: auto;
  display: flex;
  height: 100%;
}

.win-btn {
  width: 46px;
  height: 100%;
  position: relative;
}

.win-min::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 1px;
  background: var(--mute);
  transform: translate(-50%, -50%);
}

.win-max::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border: 1px solid var(--mute);
  transform: translate(-50%, -50%);
}

.win-close::before,
.win-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 1px;
  background: var(--mute);
}
.win-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.win-close::after { transform: translate(-50%, -50%) rotate(-45deg); }

.reader-fit {
  --app-w: 1048px;
  --app-h: 560px;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1048 / 560;
  position: relative;
  overflow: hidden;
  container-type: inline-size;
  background: var(--win-canvas);
}

.reader-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--app-w);
  height: var(--app-h);
  border: 0;
  display: block;
  background: var(--win-canvas);
  transform-origin: 0 0;
  transform: scale(calc(100cqw / 1048));
}

.hero-rail {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0.4rem;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  padding: 0.45rem 0 0.55rem;
}

.theme-mini {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28rem;
  cursor: pointer;
  color: var(--mute);
  flex: 0 0 auto;
  transform: translateY(0);
  transition: transform 0.18s var(--ease), color 0.15s ease;
  touch-action: manipulation;
}
.theme-mini:hover { transform: translateY(-3px); color: var(--ink); }
.theme-mini.is-on { color: var(--ink); }
.theme-mini.is-on .tm-win {
  box-shadow: 0 0 0 1px var(--a), 0 2px 5px rgba(0, 0, 0, 0.28);
}

.tm-win {
  width: 72px;
  height: 46px;
  flex-shrink: 0;
  background: var(--c);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hero-rail .theme-mini {
  flex: 1 1 0;
  min-width: 0;
  max-width: 84px;
}
.hero-rail .tm-win {
  width: 100%;
  height: auto;
  aspect-ratio: 84 / 54;
}
.tm-bar {
  height: 8px;
  background: color-mix(in srgb, var(--c) 78%, #000 22%);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: 3px;
  gap: 2px;
}
.tm-bar i {
  display: block;
  width: 5px;
  height: 5px;
  opacity: 0.45;
  background: currentColor;
}
.tm-bar i:nth-child(1) { height: 1px; width: 6px; align-self: center; }
.tm-bar i:nth-child(2) { box-shadow: inset 0 0 0 1px currentColor; background: transparent; }
.tm-bar i:nth-child(3) {
  background: transparent;
  position: relative;
}
.tm-bar i:nth-child(3)::before,
.tm-bar i:nth-child(3)::after {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 5px;
  height: 1px;
  background: currentColor;
}
.tm-bar i:nth-child(3)::before { transform: rotate(45deg); }
.tm-bar i:nth-child(3)::after { transform: rotate(-45deg); }
.tm-body { flex: 1; display: flex; min-height: 0; }
.tm-side {
  width: 14px;
  background: color-mix(in srgb, var(--c) 86%, #000 14%);
  position: relative;
}
.tm-side::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 4px;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--a);
}
.tm-page {
  margin: 3px 3px 3px 2px;
  background: var(--p);
  border-radius: 1px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2.4px;
  padding: 4px 3px;
}
.tm-page b {
  display: block;
  height: 2px;
  background: color-mix(in srgb, var(--i, #2a2e33) 28%, var(--p));
  border-radius: 1px;
}
.tm-page b:nth-child(1) { width: 70%; background: color-mix(in srgb, var(--i, #2a2e33) 72%, var(--p)); }
.tm-page b:nth-child(2) { width: 92%; }
.tm-page b:nth-child(3) { width: 56%; }

.chip-swatch {
  width: 28px;
  height: 18px;
  flex-shrink: 0;
  background: var(--c);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 3px solid var(--a);
  border-radius: 3px;
}

.chip-name {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.01em;
  max-width: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Spec */

#spec,
#download,
#themes,
#faq {
  scroll-margin-top: calc(var(--header-h) + 0.6rem);
}

.spec {
  border-top: 1px solid var(--line);
  padding: 3rem 0;
}

.spec-in {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.spec-list {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}

.spec-row {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 1.1rem 1rem 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.spec-row:nth-child(odd) { padding-right: 1.6rem; }
.spec-row:nth-child(even) { padding-left: 1.6rem; border-left: 1px solid var(--line); }

.spec-row dt {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.spec-row dd {
  margin: 0;
  color: var(--ink);
  text-wrap: pretty;
}

/* Download */

.dl {
  border-top: 1px solid var(--line);
  padding: 3rem 0;
}

.dl-in {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.dl h2,
.pass h2,
.faq h2,
.spec h2 {
  margin: 0 0 1.2rem;
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.dl-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.dl-file {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 0;
}

.dl-name {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
}

.dl-meta {
  color: var(--mute);
  font-size: 0.9rem;
}

.dl-ver {
  margin: 0.7rem 0 0;
  font-size: 0.72rem;
  color: var(--mute);
}

/* Theme Pass */

.pass {
  border-top: 1px solid var(--line);
  padding: 3rem 0;
}

.pass-in {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.pass-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.pass-head h2 { margin: 0 0 0.35rem; }
.pass-head p {
  margin: 0;
  color: var(--mute);
  max-width: 42ch;
}

.price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
}

.price-n {
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.price-s {
  font-size: 0.8rem;
  color: var(--mute);
}

.pass-chart {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.pass-item {
  appearance: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--mute);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.8rem;
  cursor: pointer;
  text-align: left;
  min-width: 0;
  touch-action: manipulation;
}
.pass-item:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.pass-item.is-on { color: var(--ink); }

.pass-item .chip-swatch {
  width: 28px;
  height: 18px;
}

.pass-item .chip-name {
  max-width: none;
  font-size: 0.68rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.chip-free {
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cta);
}

.pass-steps {
  margin: 1.3rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.4rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--mute);
  counter-reset: step;
}

.pass-steps li {
  counter-increment: step;
}
.pass-steps li::before {
  content: counter(step) ".";
  margin-right: 0.35rem;
  color: var(--mute);
}

.pass-cta { margin-top: 1.2rem; }

/* FAQ */

.faq {
  border-top: 1px solid var(--line);
  padding: 3rem 0 4rem;
}

.faq-in {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 0.95rem 1.6rem 0.95rem 0;
  font-weight: 600;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--ink); }
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 0.15rem;
  top: 1.2rem;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--mute);
  border-bottom: 1.5px solid var(--mute);
  transform: rotate(45deg);
  transition: transform 0.22s var(--ease);
}
.faq-list details[open] summary::after,
.faq-list details.is-closing summary::after {
  transform: rotate(225deg);
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s var(--ease);
}
.faq-list details[open] .faq-panel {
  grid-template-rows: 1fr;
}
.faq-panel-inner { overflow: hidden; }

.faq-list p {
  margin: 0 0 1rem;
  max-width: 58ch;
  color: var(--mute);
}

/* Footer */

.footer {
  border-top: 1px solid var(--line);
  padding: 1.1rem 0 1.4rem;
}

.footer-in {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.2rem;
}

.footer .wordmark { font-size: 0.95rem; }
.footer-ver { color: var(--mute); font-size: 0.72rem; }
.footer a {
  color: var(--mute);
  text-decoration: none;
  font-size: 0.88rem;
}
.footer a:hover { color: var(--ink); }
.footer .lang { margin-left: auto; }

/* Breakpoints */

@media (max-width: 980px) {
  .nav { display: none; }
  .hero-stage { max-width: none; }
  .spec-list { grid-template-columns: 1fr; }
  .spec-row:nth-child(odd),
  .spec-row:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
    border-left: 0;
  }
}

@media (max-width: 640px) {
  .spec-row { grid-template-columns: 1fr; gap: 0.25rem; }
  .pass-head { flex-direction: column; align-items: flex-start; }
  .price { align-items: flex-start; }
  .dl-row { align-items: flex-start; }
  .footer .lang { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  body,
  .header { transition: none; }
  .motion .win-caption { animation: none; }
  .theme-mini:hover { transform: none; }
  .faq-panel { transition: none; }
  .faq-list summary::after { transition: none; }
}
