/* 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; }

/* ---------- service cards (home) ---------- */

.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); }

/* ---------- 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; }

/* ---------- 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; }

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.contact-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.contact-item .eyebrow { margin-bottom: 0.5rem; }
.contact-item a { font-weight: 700; text-decoration: none; font-size: 1.05rem; }

/* ---------- 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); }

/* ---------- software pages ---------- */

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

.software-card {
  display: flex;
  flex-direction: column;
  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;
}

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

.software-card .kicker {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

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

.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);
}

.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); }
}

.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);
}

/* Below ~320px each, stack instead of squeezing further -- the wrap
   from .screenshot-frame's flex-wrap kicks in once an image can't
   shrink to its flex-basis, at which point let it take the full row. */
@media (max-width: 620px) {
  .screenshot-frame img {
    max-width: 100%;
  }
}

.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; }

.software-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* ---------- owner bio ---------- */

.owner-bio {
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.owner-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-lift);
  border: 3px solid var(--surface);
  flex-shrink: 0;
}

.owner-bio-text { flex: 1; min-width: 16rem; }

/* ---------- homepage stats/credibility band ---------- */

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

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.stat-num {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--accent);
  word-break: break-word;
}

.stat-label {
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.stat-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
}

/* ---------- fillable agreements ---------- */

.agreement-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  font: inherit;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}

.field textarea { resize: vertical; min-height: 5rem; }
.field.field-wide { grid-column: 1 / -1; }

.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.sig-block {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2rem;
  margin-top: 1.75rem;
}

.sig-block h4 {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.sig-line {
  border-bottom: 1px solid var(--text-muted);
  min-height: 2.1rem;
  margin-bottom: 0.35rem;
}

.sig-row { display: flex; gap: 1.5rem; margin-top: 0.9rem; }
.sig-row > div { flex: 1; }
.sig-caption { font-size: 0.78rem; color: var(--text-muted); margin: 0; }

.print-only { display: none; }
.print-letterhead { display: none; }

.print-letterhead-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #3b4951;
  padding: 14px 20px;
  border-bottom: 3px solid #8a5e22;
}

.print-letterhead-band img { height: 36px; display: block; }

.print-letterhead-band .contact {
  text-align: right;
  color: #f3f5f6;
  font-size: 10px;
  line-height: 1.5;
}

.print-letterhead h1 { font-size: 20px; margin: 1rem 0 0.25rem; color: #000; }

/* ---------- in-development software card ---------- */

.badge-soon {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 0.2em 0.6em;
  border-radius: 999px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.software-card-soon { cursor: default; }
.software-card-soon:hover, .software-card-soon:focus-visible { transform: none; box-shadow: var(--shadow); border-color: var(--border); }
.software-card-soon .arrow { color: var(--text-muted); }

@media print {
  @page { margin: 0.5in; }
  .site-header, footer, .page-hero, .no-print { display: none !important; }
  .print-only { display: block; }
  .print-letterhead { display: block; }
  html {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    color-adjust: exact;
  }
  body { background: #fff; font-size: 8.5pt; line-height: 1.35; }
  main { max-width: 100%; }
  section { border-bottom: none; padding: 0.3rem 0; }
  .band-alt { margin: 0; padding-left: 0; padding-right: 0; background: #f3f4f6; }
  h2 { font-size: 11pt; margin: 0.5rem 0 0.2rem; }
  h3 { font-size: 9.5pt; margin: 0 0 0.2rem; }
  p, li, .lead-para { font-size: 8.5pt; }
  ul.plain { margin: 0.2rem 0; padding-left: 1rem; }
  ul.plain li { margin: 0.1rem 0; }
  .agreement-meta { gap: 0.4rem; margin-top: 0.5rem; }
  .field label { font-size: 6.5pt; margin-bottom: 0.1rem; }
  .field input, .field select, .field textarea {
    font-size: 8.5pt;
    border: none;
    background: transparent;
    padding: 0;
    font-weight: 600;
    color: #000;
    appearance: none;
    -webkit-appearance: none;
  }
  .field textarea { min-height: 0; }
  .field input[type="date"]::-webkit-calendar-picker-indicator { display: none; }
  .info-card { padding: 0.4rem 0.6rem; margin-top: 0.35rem; }
  .info-card h3 { margin-bottom: 0.15rem; }
  .price-list li { padding: 0.1rem 0; font-size: 8pt; }
  .sig-block { margin-top: 0.6rem; gap: 1rem; }
  .sig-block h4 { font-size: 7pt; margin-bottom: 0.25rem; }
  .sig-line { min-height: 1.2rem; margin-bottom: 0.1rem; }
  .sig-row { margin-top: 0.3rem; gap: 0.75rem; }
  .sig-caption { font-size: 6.5pt; }
  .print-letterhead-band { padding: 7px 12px; }
  .print-letterhead-band img { height: 24px; }
  .print-letterhead-band .contact { font-size: 7pt; }
  .print-letterhead h1 { font-size: 13pt; margin: 0.5rem 0 0.15rem; }
  a { color: inherit; text-decoration: none; }
}
