/* Dark-mode only, deliberately -- JPPS branding doesn't have a light
   variant. See jpps/brand's brand.css for the canonical token source;
   this collapses what used to be a light :root + prefers-color-scheme:
   dark override into one set of values (2026-08). */
:root {
  color-scheme: dark;
  --bg: #14181b;
  --surface: #1c2226;
  --surface-alt: #202a2f;
  --text: #e7eaec;
  --text-muted: #9aa5ab;
  --accent: #d9ad6b;
  --accent-contrast: #1e2429;
  --dark: #10161a;
  --dark-2: #0b1013;
  --dark-text: #f3f5f6;
  --dark-text-muted: #b7c1c7;
  --border: #2a3237;
  --shadow: 0 1px 3px rgb(0 0 0 / 40%);
  --shadow-lift: 0 14px 28px -14px rgb(0 0 0 / 60%);
  --radius: 12px;
  --max-width: 60rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

h1, h2, h3 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 700;
  line-height: 1.25;
}

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

/* ---------- site header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--dark);
  border-bottom: 1px solid var(--dark-2);
}

.site-header-inner {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  height: 40px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  gap: 1.35rem;
  flex-wrap: wrap;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  color: var(--dark-text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.3rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--dark-text);
  border-bottom-color: var(--accent);
}

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

.site-nav a.btn {
  margin-left: 0.25rem;
  color: var(--accent-contrast);
  padding: 0.55rem 1.1rem;
  border-bottom: none;
}

.site-nav a.btn:hover,
.site-nav a.btn:focus-visible {
  color: var(--accent-contrast);
}

.site-nav a.btn[aria-current="page"] {
  color: var(--accent-contrast);
  border-bottom-color: transparent;
}

@media (max-width: 720px) {
  .site-header-inner { justify-content: center; text-align: center; }
  .site-nav { justify-content: center; gap: 0.85rem 1.1rem; width: 100%; }
}

/* ---------- hero (home) ---------- */

.hero {
  text-align: center;
  padding: 4.5rem 1.25rem 4rem;
  background:
    radial-gradient(65% 100% at 50% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent),
    var(--dark);
  color: var(--dark-text);
}

.hero h1 {
  max-width: 46rem;
  margin: 0 auto 1rem;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.hero p.lead {
  max-width: 36rem;
  margin: 0 auto;
  color: var(--dark-text-muted);
  font-size: 1.05rem;
}

.hero .tag {
  display: inline-block;
  margin-bottom: 1.1rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
}

.btn-secondary {
  background: transparent;
  color: var(--dark-text);
  border: 1px solid color-mix(in srgb, var(--dark-text) 35%, transparent);
}

.btn:hover, .btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lift);
}

/* ---------- sub-page hero ---------- */

.page-hero {
  text-align: center;
  padding: 3.25rem 1.25rem 2.75rem;
  background: var(--dark);
  color: var(--dark-text);
}

.page-hero h1 { margin: 0 0 0.6rem; font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.page-hero p { max-width: 34rem; margin: 0 auto; color: var(--dark-text-muted); }

.eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

/* ---------- layout ---------- */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.band { padding: 3rem 0; }

section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

section:last-of-type { border-bottom: none; }

.band-alt {
  background: var(--surface-alt);
  margin: 0 calc(-50vw + 50%);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
}

h2 { font-size: 1.5rem; margin-top: 0; }
h3 { font-size: 1.1rem; margin: 0 0 0.4rem; font-family: inherit; font-weight: 700; }

p { color: var(--text); }
.lead-para { font-size: 1.05rem; color: var(--text-muted); }

ul.plain { padding-left: 1.2rem; }
ul.plain li { margin: 0.4rem 0; }

/* ---------- feature/service cards ---------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.1rem;
  margin-top: 2rem;
}

.service-card {
  display: block;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.service-card:hover, .service-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: var(--accent);
}

.service-card h3 { color: var(--text); }
.service-card p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }
.service-card .arrow { display: inline-block; margin-top: 0.75rem; font-weight: 700; font-size: 0.85rem; color: var(--accent); }

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-list li {
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
}

.feature-list strong { display: block; color: var(--text); }
.feature-list span { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- pricing / info cards ---------- */

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  margin-top: 1.25rem;
}

.info-card h3 { margin-bottom: 0.6rem; }

.price-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.price-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.95rem;
}

.price-list li:last-child { border-bottom: none; }
.price-list .amount { font-weight: 700; color: var(--accent); white-space: nowrap; }

/* ---------- flow diagram ---------- */

.flow-diagram {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0 0.5rem;
}

.flow-box {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
  text-align: center;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-alt);
  font-weight: 700;
}

.flow-box span {
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.flow-box--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast, #1e2429);
}

.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent);
  flex: 0 0 auto;
  padding: 0 0.25rem;
}

@media (max-width: 640px) {
  .flow-diagram { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); }
}

/* ---------- screenshots ---------- */

.screenshot-frame {
  margin-top: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lift);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  background: var(--surface-alt);
  padding: 1rem;
}

/* Both shown together -- dark first (left), light second (right) --
   rather than switched by prefers-color-scheme. A media-query toggle
   depends on the viewer's browser correctly matching (and not serving
   a stale cached stylesheet from before this rule existed), which
   isn't reliable enough for a marketing page a visitor sees exactly
   once; showing both deterministically avoids that class of bug
   entirely. */
.screenshot-frame img {
  display: block;
  flex: 1 1 320px;
  min-width: 0;
  max-width: calc(50% - 0.5rem);
  height: auto;
  border-radius: calc(var(--radius) - 4px);
}

@media (max-width: 620px) {
  .screenshot-frame img {
    max-width: 100%;
  }
}

.tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0 0;
}

.tech-chip {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* ---------- comparison table ---------- */

/* Wraps every .compare-table (and .docs-content table, see the docs
   page template) so a narrow viewport scrolls the table horizontally
   instead of squeezing every column down to single-word-per-line --
   confirmed as a real bug via an actual mobile-width screenshot of
   the Compare page, not just a guess. */
.table-scroll {
  overflow-x: auto;
  margin-top: 1.5rem;
  border-radius: var(--radius);
}

.compare-table {
  min-width: 640px;
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.compare-table th, .compare-table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  vertical-align: top;
}

.compare-table th {
  background: var(--surface-alt);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.compare-table tr:last-child td { border-bottom: none; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--dark);
  color: var(--dark-text);
  text-align: center;
}

.cta-band h2 { color: var(--dark-text); }
.cta-band p { color: var(--dark-text-muted); max-width: 34rem; margin: 0.5rem auto 0; }

/* ---------- footer ---------- */

footer {
  background: var(--dark);
  color: var(--dark-text-muted);
  padding: 2.5rem 1.25rem 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-brand img { height: 34px; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.85rem; max-width: 20rem; }

.footer-nav { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav a { color: var(--dark-text-muted); text-decoration: none; font-size: 0.9rem; }
.footer-nav a:hover { color: var(--dark-text); }

.footer-contact { font-size: 0.9rem; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-contact a { color: var(--dark-text-muted); text-decoration: none; }
.footer-contact a:hover { color: var(--dark-text); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--dark-2);
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom a { color: var(--dark-text-muted); }
