/* ==========================================================================
   Paycon.in — brand stylesheet
   Implements the Paycon Master Brand Guidelines v1.0 (October 2026).
   Tokens below are the "Suggested design tokens" from the production
   asset checklist; do not recolour them locally.
   ========================================================================== */

:root {
  /* Colour system */
  --paycon-navy: #011f66;
  --paycon-deep: #003297;
  --paycon-blue: #0063de;
  --paycon-cyan: #009ef7;
  --paycon-aqua: #01ddfc;
  --paycon-orange: #f26e01;
  --paycon-amber: #fc8f01;
  --paycon-ink: #07162f;

  /* Neutrals derived from the blue family, kept deliberately cool */
  --surface: #ffffff;
  --surface-alt: #f4f8fe;
  --surface-sunk: #eaf1fc;
  --border: #dce6f5;
  --border-strong: #c3d5ef;
  --text: var(--paycon-ink);
  --text-muted: #4a5a75;
  --text-faint: #5f6e86;
  /* Accessible tint of Action Orange for SMALL text only (5.09:1 on white).
     The brand orange #F26E01 reaches 3.00:1 and is reserved for fills,
     rules and large text, per the accessibility rule in the guidelines. */
  --paycon-orange-text: #b35200;

  /* Core gradient: Navy -> Blue -> Cyan */
  --gradient-core: linear-gradient(115deg, var(--paycon-navy) 0%, var(--paycon-deep) 46%, var(--paycon-blue) 86%, var(--paycon-cyan) 100%);
  /* Signature gradient: Blue -> Orange -> Amber. Campaign/CTA moments only. */
  --gradient-signature: linear-gradient(90deg, var(--paycon-blue) 0%, var(--paycon-orange) 62%, var(--paycon-amber) 100%);

  /* Spacing — 4 px base, 8/12/16/24/32/48/64 steps */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s6: 24px;
  --s8: 32px;
  --s12: 48px;
  --s16: 64px;

  /* Radius — 8–12 px controls/cards, 16–24 px hero panels */
  --r-control: 8px;
  --r-card: 12px;
  --r-panel: 20px;

  --shadow-card: 0 1px 2px rgba(1, 31, 102, 0.04), 0 8px 24px -16px rgba(1, 31, 102, 0.18);
  --shadow-lift: 0 2px 4px rgba(1, 31, 102, 0.06), 0 16px 40px -24px rgba(1, 31, 102, 0.28);

  --max: 1180px;
  --max-prose: 72ch;
}

/* --------------------------------------------------------------- reset -- */

*,
*::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(--surface);
  color: var(--text);
  font-family: Inter, "Aptos", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv05" 1, "ss01" 1;
}

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

a {
  color: var(--paycon-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* ---------------------------------------------------------- typography -- */

h1,
h2,
h3,
h4 {
  margin: 0 0 var(--s4);
  color: var(--paycon-navy);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.display {
  font-size: 38px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.025em;
}

h1 {
  font-size: 32px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 26px;
  line-height: 1.15;
  font-weight: 650;
}

h3 {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 600;
}

h4 {
  font-size: 17px;
  line-height: 1.3;
  font-weight: 600;
}

p {
  margin: 0 0 var(--s4);
}

.lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: var(--max-prose);
}

.caption {
  font-size: 13px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--text-faint);
}

strong,
b {
  font-weight: 600;
  color: var(--paycon-navy);
}

@media (min-width: 768px) {
  body {
    font-size: 16px;
  }
  .display {
    font-size: 56px;
  }
  h1 {
    font-size: 40px;
  }
  h2 {
    font-size: 30px;
  }
  h3 {
    font-size: 22px;
  }
  .lede {
    font-size: 18px;
  }
  .caption {
    font-size: 14px;
  }
}

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--s6);
}

section {
  padding-block: var(--s16);
}

@media (min-width: 768px) {
  section {
    padding-block: 88px;
  }
}

.band-alt {
  background: var(--surface-alt);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: var(--max-prose);
  margin-bottom: var(--s12);
}

/* Eyebrow carries the Orange signature as a short rule — the brand's
   recurring accent, kept subordinate to the blue system. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin: 0 0 var(--s3);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paycon-deep);
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: var(--paycon-orange);
  flex: none;
}

/* ------------------------------------------------------------ buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  padding: 13px var(--s6);
  border: 1px solid transparent;
  border-radius: var(--r-control);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--paycon-blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--paycon-deep);
  color: #fff;
}

/* Accent — conversion/attention, sparingly. One per page at most. */
.btn-accent {
  background: var(--paycon-orange);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  padding: 12px var(--s6);
}

.btn-accent:hover {
  background: #d96100;
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: var(--paycon-navy);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--paycon-blue);
  color: var(--paycon-deep);
}

.btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-top: var(--s8);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--paycon-blue);
}

.link-arrow::after {
  content: "→";
  transition: transform 0.15s ease;
}

.link-arrow:hover::after {
  transform: translateX(3px);
}

/* ------------------------------------------------------------- header -- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--s6);
  min-height: 72px;
  padding-block: var(--s3);
}

/* Clear space: at least 1X around the complete logo, X = height of the
   lowercase "p" counter. The padding below reserves it. */
.logo {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 6px 0;
}

.logo img {
  width: 132px;
  height: auto;
}

@media (min-width: 768px) {
  .logo img {
    width: 164px;
  }
}

/* "AI" / product descriptors sit outside the protected logo area. */
.header-nav {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: var(--s6);
}

.header-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--paycon-navy);
}

.header-nav a:hover {
  color: var(--paycon-blue);
  text-decoration: none;
}

.header-nav a[aria-current="page"] {
  color: var(--paycon-deep);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 0 var(--paycon-orange);
}

.header-cta {
  display: none;
}

@media (min-width: 900px) {
  .header-nav,
  .header-cta {
    display: flex;
  }
  .header-cta .btn {
    padding: 10px var(--s4);
    font-size: 15px;
  }
}

.nav-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 9px var(--s3);
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-control);
  color: var(--paycon-navy);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: #fff;
  padding-block: var(--s4);
}

.mobile-nav[data-open="true"] {
  display: block;
}

@media (min-width: 900px) {
  .mobile-nav[data-open="true"] {
    display: none;
  }
}

.mobile-nav a {
  display: block;
  padding: 11px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--paycon-navy);
  border-bottom: 1px solid var(--surface-sunk);
}

.mobile-nav .btn {
  margin-top: var(--s4);
  width: 100%;
}

/* --------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  padding-block: var(--s16);
}

@media (min-width: 768px) {
  .hero {
    padding-block: 96px 104px;
  }
}

/* The ribbon motif is decoration: it lives to the right of the measure and
   fades out before it reaches running text. */
.hero-motif {
  position: absolute;
  inset: 0 0 0 54%;
  pointer-events: none;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 30%);
  mask-image: linear-gradient(to right, transparent 0%, #000 30%);
}

.hero-motif svg {
  position: absolute;
  top: 50%;
  right: -4%;
  width: 600px;
  transform: translateY(-50%);
  opacity: 0.6;
}

@media (min-width: 1280px) {
  .hero-motif svg {
    width: 680px;
    opacity: 0.65;
  }
}

@media (max-width: 1023px) {
  .hero-motif svg {
    right: -30%;
    width: 520px;
    opacity: 0.22;
  }
}

/* The hero keeps the page grid (.wrap) and constrains its own copy, so the
   headline starts on the same left edge as every section below it. */
.hero-inner {
  position: relative;
}

.hero-inner > .eyebrow,
.hero-inner > h1,
.hero-inner > .btn-row {
  max-width: 720px;
}

.hero .lede {
  max-width: 62ch;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s4) var(--s6);
  margin-top: var(--s12);
  padding-top: var(--s8);
  border-top: 1px solid var(--border-strong);
  max-width: 640px;
}

@media (min-width: 768px) {
  .hero-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.hero-facts dt {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paycon-deep);
}

.hero-facts dd {
  margin: var(--s1) 0 0;
  font-size: 15px;
  color: var(--text-muted);
}

/* -------------------------------------------------------------- cards -- */

.grid {
  display: grid;
  gap: var(--s6);
}

.grid-2 {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  display: flex;
  flex-direction: column;
  padding: var(--s8);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
}

.card h3 {
  margin-bottom: var(--s3);
}

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

.card-link {
  margin-top: auto;
  padding-top: var(--s6);
}

/* Feature icon tile — 2 px optical stroke, rounded joins, navy/blue default */
.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: var(--s6);
  border-radius: 10px;
  background: var(--surface-sunk);
  color: var(--paycon-deep);
  flex: none;
}

.icon-tile svg {
  width: 24px;
  height: 24px;
}

/* Selective highlight state uses Cyan; accent tiles use Orange sparingly. */
.icon-tile.is-accent {
  background: #fdf0e4;
  color: #b85300;
}

/* Pillar cards — the two things Paycon does */
.pillar {
  position: relative;
  padding: var(--s8);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}

.pillar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--gradient-core);
}

.pillar.is-signature::before {
  background: var(--gradient-signature);
}

@media (min-width: 768px) {
  .pillar {
    padding: var(--s12);
  }
}

/* ---------------------------------------------------------- list bits -- */

.ticks {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding-left: 28px;
  margin-bottom: var(--s3);
  color: var(--text-muted);
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--paycon-blue);
}

.ticks li:last-child {
  margin-bottom: 0;
}

.ticks strong {
  display: block;
  color: var(--paycon-navy);
  font-weight: 600;
}

/* Numbered process — orange step markers as the signature accent */
.steps {
  counter-reset: step;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--s6);
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.steps li {
  counter-increment: step;
  padding-top: var(--s6);
  border-top: 2px solid var(--border-strong);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: var(--s3);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--paycon-orange-text);
}

.steps h3 {
  font-size: 18px;
  margin-bottom: var(--s2);
}

.steps p {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
}

/* Spec tables — tabular numerals, borders over elevation */
.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.spec caption {
  text-align: left;
  padding-bottom: var(--s3);
  color: var(--text-faint);
  font-size: 14px;
}

.spec th,
.spec td {
  text-align: left;
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.spec thead th {
  background: var(--paycon-navy);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
}

.spec thead th:first-child {
  border-top-left-radius: var(--r-control);
}

.spec thead th:last-child {
  border-top-right-radius: var(--r-control);
}

.spec tbody tr:nth-child(even) {
  background: var(--surface-alt);
}

.spec td:first-child {
  font-weight: 600;
  color: var(--paycon-navy);
  white-space: nowrap;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
}

/* Tech chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 6px var(--s3);
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--paycon-navy);
}

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

.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--gradient-core);
  color: #fff;
  border: 0;
}

.cta-band h2,
.cta-band h3 {
  color: #fff;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.86);
  max-width: var(--max-prose);
}

.cta-band .eyebrow {
  color: #fff;
}

.cta-band .eyebrow::before {
  background: var(--paycon-amber);
}

.cta-inner {
  position: relative;
  display: grid;
  gap: var(--s8);
  align-items: center;
}

@media (min-width: 880px) {
  .cta-inner {
    grid-template-columns: 1.4fr auto;
    gap: var(--s16);
  }
  .cta-inner .btn-row {
    margin-top: 0;
  }
}

/* --------------------------------------------------------------- form -- */

.form-grid {
  display: grid;
  gap: var(--s4);
}

@media (min-width: 720px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .form-grid .full {
    grid-column: 1 / -1;
  }
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--paycon-navy);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px var(--s3);
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-control);
  font: inherit;
  font-size: 16px;
  color: var(--text);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--paycon-blue);
}

.field .hint {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--text-faint);
}

.form-note {
  margin-top: var(--s4);
  font-size: 14px;
  color: var(--text-faint);
}

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

.site-footer {
  background: var(--paycon-navy);
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer a:hover {
  color: #fff;
}

.footer-top {
  display: grid;
  gap: var(--s12);
  padding-block: var(--s16) var(--s12);
}

@media (min-width: 880px) {
  .footer-top {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: var(--s8);
  }
}

.footer-brand img {
  width: 170px;
  height: auto;
  margin-bottom: var(--s4);
}

.footer-brand p {
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.7);
}

.site-footer h4 {
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--s4);
}

.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-list li {
  margin-bottom: var(--s3);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3) var(--s6);
  padding-block: var(--s6);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom .spacer {
  margin-left: auto;
}

/* Thin signature rule above the footer */
.footer-rule {
  height: 3px;
  background: var(--gradient-signature);
}

/* --------------------------------------------------------- utilities -- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: var(--s3) var(--s4);
  background: var(--paycon-navy);
  color: #fff;
  border-radius: 0 0 var(--r-control) 0;
}

.skip-link:focus {
  left: 0;
}

.prose h2 {
  margin-top: var(--s12);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: var(--s8);
}

.prose p,
.prose li {
  color: var(--text-muted);
  max-width: var(--max-prose);
}

.prose ul {
  padding-left: var(--s6);
}

.prose li {
  margin-bottom: var(--s2);
}

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

.center {
  text-align: center;
}

.center .lede,
.center .section-head {
  margin-inline: auto;
}

.center .eyebrow {
  justify-content: center;
}

.stack-sm > * + * {
  margin-top: var(--s4);
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}
