:root {
  --navy-deep: #0B2545;
  --navy-2: #123164;
  --navy-3: #1a3f7a;
  --blue-primary: #1E5FBF;
  --blue-primary-dark: #164a99;
  --cyan-accent: #17B6D4;
  --cyan-glow: rgba(23, 182, 212, 0.35);
  --bg-page: #F1F8FF;
  --bg-alt: #E1F0FF;
  --bg-tint: #E8F4FF;
  --ink: #0F1E33;
  --muted: #5B7089;
  --white: #FFFFFF;
  --border-soft: #DCE6F5;
  --shadow-soft: 0 10px 30px -12px rgba(11, 37, 69, 0.18);
  --shadow-lift: 0 18px 44px -14px rgba(11, 37, 69, 0.28);

  --font-display: 'Inter', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'Inter', 'Segoe UI', sans-serif;

  --radius-md: 12px;
  --radius-lg: 20px;
  --container: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

a { color: inherit; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(241, 248, 255, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--navy-deep);
}

.nav__brand-icon { flex-shrink: 0; }

.nav__links {
  display: flex;
  gap: 28px;
}

.nav__links a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav__links a:hover,
.nav__links a:focus-visible {
  color: var(--blue-primary);
}

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(560px 320px at 78% 20%, var(--cyan-glow), transparent 70%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy-2) 62%, var(--navy-3) 100%);
  color: var(--white);
  padding: 76px 0 84px;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-accent);
  margin: 0 0 18px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.hero__subtitle {
  font-size: 1.05rem;
  color: #C7D9F2;
  max-width: 46ch;
  margin: 0 0 28px;
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: #9DB6DC;
}

.hero__meta-item:first-child {
  background: rgba(23, 182, 212, 0.15);
  color: var(--cyan-accent);
  border: 1px solid rgba(23, 182, 212, 0.35);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.78rem;
}

.hero__visual {
  filter: drop-shadow(var(--shadow-lift));
}

/* ---------- Article shell ---------- */

.article { padding: 68px 0 20px; }

.article__lede {
  max-width: 74ch;
  margin: 0 auto 56px;
  font-size: 1.12rem;
  color: var(--navy-deep);
  font-weight: 500;
  line-height: 1.75;
  padding-left: 20px;
  border-left: 3px solid var(--blue-primary);
}

.section { margin-bottom: 68px; }

.section__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-primary);
  margin: 0 0 10px;
}

.section__eyebrow--light { color: var(--cyan-accent); }

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--navy-deep);
  margin: 0 0 18px;
}

.section__intro {
  color: var(--muted);
  max-width: 62ch;
  margin: 0 0 30px;
  font-size: 1.02rem;
}

/* ---------- Reasons ledger list ---------- */

.reasons-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border-soft);
}

.reason-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 24px;
  padding: 28px 20px;
  border-bottom: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  transition: background 0.25s ease;
}

.reason-item:hover { background: var(--bg-alt); }

.reason-item__number {
  font-family: var(--font-mono);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--cyan-accent);
  letter-spacing: -0.02em;
}

.reason-item__body h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--navy-deep);
}

.reason-item__body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 68ch;
}

/* ---------- Features grid ---------- */

.features-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
  font-weight: 500;
  color: var(--navy-deep);
  font-size: 0.98rem;
}

.feature-card__icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue-primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

/* ---------- Impact panel ---------- */

.impact-panel {
  background: var(--bg-tint);
  border-left: 4px solid var(--blue-primary);
  border-radius: var(--radius-md);
  padding: 32px 34px;
}

.impact-panel p {
  margin: 0;
  font-size: 1.08rem;
  color: var(--navy-2);
  max-width: 68ch;
}

/* ---------- Conclusion ---------- */

.conclusion__panel {
  background: linear-gradient(150deg, var(--navy-deep), var(--navy-3));
  color: #DCE9FB;
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow-lift);
}

.conclusion__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: 800;
  color: var(--white);
  margin: 0 0 16px;
}

.conclusion__panel p {
  max-width: 68ch;
  margin: 0 0 14px;
}

.conclusion__panel p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: #7E97BF;
  padding: 26px 0;
  margin-top: 40px;
}

.footer__row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 340px; margin: 8px auto 0; }
  .features-grid { grid-template-columns: 1fr; }
  .reason-item { grid-template-columns: 52px 1fr; }
}

@media (max-width: 640px) {
  .nav__links { display: none; }
  .article__lede { padding-left: 14px; }
  .conclusion__panel { padding: 32px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Accessibility ---------- */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cyan-accent);
  outline-offset: 3px;
}

/* =========================================================
   Appendable block — comparison layout
   (used by manual-vs-software.html; reuses tokens + header/
   hero/section/conclusion rules already defined above)
   ========================================================= */

.vs-wrap { position: relative; }

.compare-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.vs-badge {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translate(-50%, 0);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--cyan-accent);
  color: var(--navy-deep);
  border: 5px solid var(--bg-page);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-lift);
  z-index: 2;
}

.compare-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  box-shadow: var(--shadow-soft);
}

.compare-card--highlight {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 1px var(--blue-primary), var(--shadow-lift);
  background: linear-gradient(180deg, var(--white) 0%, var(--bg-tint) 100%);
}

.compare-card__tag {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--blue-primary);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}

.compare-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.compare-card__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg-alt);
  color: var(--navy-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.compare-card__icon--accent {
  background: var(--blue-primary);
  color: var(--white);
}

.compare-card__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-deep);
}

.compare-list-label {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.compare-list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.compare-list:last-child { margin-bottom: 0; }

.compare-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--navy-2);
}

.compare-list__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

.compare-list--pro .compare-list__icon {
  background: var(--blue-primary);
  color: var(--white);
}

.compare-list--con .compare-list__icon {
  background: var(--bg-alt);
  color: var(--muted);
  border: 1px solid var(--border-soft);
}

.compare-list--con li { color: var(--muted); }

@media (max-width: 860px) {
  .compare-grid { grid-template-columns: 1fr; gap: 44px; }
  .vs-badge { top: -26px; }
}

/* =========================================================
   Appendable block — benefit bullets + workflow stepper
   (used by cheque-preview.html; reuses .reasons-list /
   .reason-item and .section rules already defined above)
   ========================================================= */

.reason-item__body ul {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.reason-item__body ul li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 68ch;
}

.reason-item__body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-accent);
}

.workflow-panel {
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 40px 34px 30px;
}

.workflow-list {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.workflow-list::before {
  content: '';
  position: absolute;
  top: 21px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: var(--border-soft);
  z-index: 0;
}

.workflow-step {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.workflow-step__circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--blue-primary);
  color: var(--blue-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

.workflow-step__circle--done {
  background: var(--cyan-accent);
  border-color: var(--cyan-accent);
  color: var(--navy-deep);
}

.workflow-step__title {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy-deep);
  max-width: 130px;
}

.workflow-step__title small {
  display: block;
  margin-top: 2px;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.78rem;
}

@media (max-width: 700px) {
  .workflow-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
  }
  .workflow-list::before {
    top: 0;
    bottom: 0;
    left: 21px;
    right: auto;
    width: 2px;
    height: auto;
  }
  .workflow-step {
    flex-direction: row;
    text-align: left;
    align-items: center;
  }
  .workflow-step__title { max-width: none; }
}

/* =========================================================
   Appendable block — history table + status pills
   (used by cheque-history.html; reuses .section /
   .reasons-list rules already defined above)
   ========================================================= */

.history-table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.history-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.history-table thead th {
  background: var(--navy-deep);
  color: var(--white);
  text-align: left;
  padding: 15px 20px;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.history-table tbody td {
  padding: 15px 20px;
  border-top: 1px solid var(--border-soft);
  color: var(--navy-2);
  white-space: nowrap;
}

.history-table tbody tr:nth-child(even) td {
  background: var(--bg-page);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 13px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.status-pill::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-pill--cleared {
  background: rgba(30, 95, 191, 0.12);
  color: var(--blue-primary-dark);
}
.status-pill--cleared::before { background: var(--blue-primary); }

.status-pill--pending {
  background: rgba(23, 182, 212, 0.14);
  color: var(--navy-2);
}
.status-pill--pending::before { background: var(--cyan-accent); }

.status-pill--cancelled {
  background: var(--bg-alt);
  color: var(--muted);
}
.status-pill--cancelled::before { background: var(--muted); }

.table-note {
  margin: 14px 4px 0;
  font-size: 0.9rem;
  color: var(--muted);
}

@media (max-width: 640px) {
  .history-table tbody td,
  .history-table thead th { padding: 12px 16px; }
}