  :root {
    --paper: #f7faf8;
    --card: #ffffff;
    --ink: #16241d;
    --ink-soft: #47584f;
    --ink-faint: #5c6c63;
    --green: #2f7d5b;
    --green-strong: #2f7d5b; /* solid fills that carry white text (AA in both themes) */
    --green-deep: #1d5540;
    --green-wash: #e7f1ec;
    --rule: #d8e4dd;
    --margin-red: #b23a2e;
    --shadow: 0 10px 34px rgba(22, 55, 42, .10);
    --ok: #2f7d5b;
  }
  @media (prefers-color-scheme: dark) {
    :root {
      --paper: #0f1a15;
      --card: #172620;
      --ink: #e9f1ec;
      --ink-soft: #b6c6bd;
      --ink-faint: #8ba095;
      --green: #4aa87c;
      --green-strong: #2f7d5b;
      --green-deep: #123829;
      --green-wash: #1b3229;
      --rule: #26382f;
      --margin-red: #d06055;
      --shadow: 0 10px 34px rgba(0, 0, 0, .45);
      --ok: #4aa87c;
    }
  }
  :root[data-theme="dark"] {
    --paper: #0f1a15; --card: #172620; --ink: #e9f1ec; --ink-soft: #b6c6bd;
    --ink-faint: #8ba095; --green: #4aa87c; --green-strong: #2f7d5b;
    --green-deep: #123829; --green-wash: #1b3229; --rule: #26382f;
    --margin-red: #d06055; --shadow: 0 10px 34px rgba(0,0,0,.45); --ok: #4aa87c;
  }
  :root[data-theme="light"] {
    --paper: #f7faf8; --card: #ffffff; --ink: #16241d; --ink-soft: #47584f;
    --ink-faint: #5c6c63; --green: #2f7d5b; --green-strong: #2f7d5b;
    --green-deep: #1d5540; --green-wash: #e7f1ec; --rule: #d8e4dd;
    --margin-red: #b23a2e; --shadow: 0 10px 34px rgba(22,55,42,.10); --ok: #2f7d5b;
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0; background: var(--paper); color: var(--ink);
    font: 16px/1.65 "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
  }
  h1, h2, h3 { font-family: Charter, "Bitstream Charter", Cambria, Georgia, serif; line-height: 1.15; text-wrap: balance; margin: 0; }
  .wrap { max-width: 1500px; margin: 0 auto; padding: 0 40px; }
  a { color: var(--green); }
  .num { font-variant-numeric: tabular-nums; }

  /* Ledger-rule section divider: a fine rule with the classic red margin tick */
  .ledger-rule { border: 0; height: 1px; background: var(--rule); position: relative; margin: 0; }
  .ledger-rule::before {
    content: ""; position: absolute; left: 24px; top: -7px;
    width: 2px; height: 15px; background: var(--margin-red); opacity: .75;
  }

  /* ---------------- nav ---------------- */
  header.site {
    position: sticky; top: 0; z-index: 50;
    /* Solid (not semi-transparent): a see-through header let the tall French /
       Spanish headline ghost through it while scrolling, which read as a bug. */
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
  }
  .nav { display: flex; align-items: center; gap: 20px; padding: 14px 40px; max-width: 1500px; margin: 0 auto; flex-wrap: wrap; row-gap: 10px; }
  .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: .2px; color: var(--ink); text-decoration: none; }
  .brand-mark {
    width: 30px; height: 30px; border-radius: 8px; background: var(--green-strong);
    display: inline-flex; align-items: center; justify-content: center; color: #fff;
  }
  /* Left group: brand + Canadian badge + the menu links, all pulled left.
     Right group (.nav-right): language switcher + trial button, pushed right. */
  .nav-links { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; row-gap: 8px; }
  .nav-right { display: flex; gap: 14px; align-items: center; margin-left: auto; flex-wrap: wrap; row-gap: 8px; justify-content: flex-end; }
  /* These must never shrink or the language switcher becomes unclickable when
     longer (French) nav text competes for width. They wrap as whole units
     instead of overflowing off-screen. */
  .nav .btn, .ca-badge, .lang-switch, .nav-right { flex-shrink: 0; }
  /* Phone exception: a .nav-right that can never shrink also never wraps
     internally, so the trial button rides off-screen below ~480px (worst in
     French). Give the group its own full row and let the button flex-wrap
     under the switcher instead. */
  @media (max-width: 560px) {
    .nav { padding-left: 20px; padding-right: 20px; }
    .nav-right { width: 100%; flex-shrink: 1; min-width: 0; }
    .nav-right .lang-switch { margin-left: 0; }
    .nav .btn { flex: 1 1 auto; min-width: 0; text-align: center; }
  }
  .nav-links a { color: var(--ink-soft); text-decoration: none; font-size: 14.5px; font-weight: 600; }
  .nav-links a:hover { color: var(--green); }
  .btn {
    display: inline-block; background: var(--green-strong); color: #fff !important;
    padding: 11px 22px; border-radius: 10px; font-weight: 700; font-size: 15px;
    text-decoration: none; border: 0; cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease;
  }
  a:focus-visible, .btn:focus-visible, summary:focus-visible {
    outline: 2.5px solid var(--green); outline-offset: 2px; border-radius: 4px;
  }
  .btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(47,125,91,.35); }
  .btn.ghost { background: transparent; color: var(--green) !important; border: 1.5px solid var(--green); }
  @media (max-width: 820px) { .nav-links a:not(.btn) { display: none; } }

  /* "Canadian Software" badge: maple leaf + the red dot on Winnipeg */
  .ca-badge {
    display: flex; align-items: center; gap: 9px;
    padding: 6px 13px; border: 1px solid var(--rule); border-radius: 10px;
    background: var(--card); line-height: 1.25; white-space: nowrap;
  }
  .ca-badge svg { width: 21px; height: 21px; fill: #d52b1e; flex: 0 0 auto; }
  .ca-badge .ca-top {
    display: block; font-size: 11.5px; font-weight: 800;
    letter-spacing: .09em; color: var(--ink);
  }
  .ca-badge .ca-sub { display: block; font-size: 11.5px; color: var(--ink-soft); }
  .ca-badge .ca-dot {
    display: inline-block; width: 7px; height: 7px; border-radius: 50%;
    background: #d52b1e; margin-right: 5px; vertical-align: 1px;
  }
  @media (max-width: 980px) { .ca-badge { display: none; } }

  /* ---------------- hero ---------------- */
  .hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 72px 0 84px; }
  @media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding: 48px 0 56px; } }
  .eyebrow {
    display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: var(--green); margin-bottom: 18px;
  }
  .hero h1 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 700; }
  .hero h1 em { font-style: normal; color: var(--green); }
  .hero p.lede { font-size: 18.5px; color: var(--ink-soft); max-width: 34em; margin: 22px 0 30px; }
  .hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
  .hero-note { font-size: 13.5px; color: var(--ink-faint); margin-top: 16px; }

  /* the balancing ledger card */
  .ledger-card {
    background: var(--card); border: 1px solid var(--rule); border-radius: 16px;
    box-shadow: var(--shadow); overflow: hidden; position: relative;
  }
  .ledger-card::before { /* red margin line down the card, like a real ledger page */
    content: ""; position: absolute; top: 0; bottom: 0; left: 44px;
    width: 1px; background: var(--margin-red); opacity: .35;
  }
  .ledger-head {
    background: linear-gradient(120deg, var(--green-deep), var(--green-strong) 75%);
    color: #fff; padding: 14px 20px; font-weight: 700; font-size: 14.5px;
    display: flex; justify-content: space-between; align-items: center;
  }
  .ledger-head span:last-child { opacity: .8; font-weight: 600; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; }
  table.ledger { width: 100%; border-collapse: collapse; font-size: 14px; }
  table.ledger td { padding: 9px 20px 9px 56px; border-bottom: 1px solid var(--rule); color: var(--ink-soft); }
  table.ledger td + td { text-align: right; padding-left: 8px; padding-right: 20px; white-space: nowrap; color: var(--ink); }
  table.ledger tr { opacity: 0; transform: translateY(4px); }
  table.ledger tr.show { opacity: 1; transform: none; transition: opacity .45s ease, transform .45s ease; }
  .ledger-total {
    display: flex; justify-content: space-between; align-items: center;
    padding: 13px 20px 13px 56px; font-weight: 700; font-size: 14.5px;
  }
  .ledger-total .badge {
    opacity: 0; transition: opacity .5s ease .2s;
    background: var(--green-wash); color: var(--ok); border-radius: 999px;
    padding: 4px 13px; font-size: 13px; font-weight: 700;
  }
  .ledger-total.show .badge { opacity: 1; }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    table.ledger tr, .ledger-total .badge { opacity: 1 !important; transform: none !important; transition: none !important; }
  }

  /* ---------------- fact strip ---------------- */
  .facts { display: flex; flex-wrap: wrap; gap: 10px 12px; padding: 26px 0 30px; }
  .fact {
    font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
    background: var(--card); border: 1px solid var(--rule); border-radius: 999px; padding: 7px 16px;
  }
  .fact b { color: var(--green); font-weight: 700; }

  /* ---------------- sections ---------------- */
  section { padding: 72px 0; }
  .kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--margin-red); margin-bottom: 14px; }
  section h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; max-width: 22em; }
  section p.sub { color: var(--ink-soft); font-size: 17px; max-width: 40em; margin: 16px 0 0; }

  .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
  @media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }
  .card {
    background: var(--card); border: 1px solid var(--rule); border-radius: 14px;
    padding: 24px 22px;
  }
  .card svg { width: 30px; height: 30px; stroke: var(--green); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
  .card h3 { font-size: 17.5px; margin-bottom: 8px; font-family: "Segoe UI", system-ui, sans-serif; font-weight: 700; }
  .card p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }

  /* ---------------- switch table ---------------- */
  .switch-flex { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; margin-top: 40px; align-items: start; }
  @media (max-width: 860px) { .switch-flex { grid-template-columns: 1fr; } }
  .switch-copy p { color: var(--ink-soft); font-size: 15.5px; }
  .switch-copy p b { color: var(--ink); }
  .tbl-scroll { overflow-x: auto; border: 1px solid var(--rule); border-radius: 14px; background: var(--card); }
  table.cmp { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 420px; }
  table.cmp th {
    text-align: left; padding: 13px 18px; font-size: 12.5px; letter-spacing: .08em;
    text-transform: uppercase; color: var(--ink-faint); border-bottom: 1px solid var(--rule);
  }
  table.cmp th:last-child, table.cmp td:last-child { text-align: center; }
  table.cmp td { padding: 11px 18px; border-bottom: 1px solid var(--rule); color: var(--ink-soft); }
  table.cmp tr:last-child td { border-bottom: 0; }
  table.cmp td:last-child { color: var(--ok); font-weight: 700; }

  /* ---------------- practice / security ---------------- */
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; margin-top: 40px; }
  @media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
  .split ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
  .split li { display: flex; gap: 12px; font-size: 15px; color: var(--ink-soft); }
  .split li::before { content: "✓"; color: var(--green); font-weight: 800; flex: 0 0 auto; }
  .split li b { color: var(--ink); }

  /* ---------------- FAQ ---------------- */
  details {
    background: var(--card); border: 1px solid var(--rule); border-radius: 12px;
    padding: 4px 20px; margin-top: 12px;
  }
  details summary { cursor: pointer; font-weight: 700; font-size: 15.5px; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
  details summary::after { content: "+"; color: var(--green); font-size: 20px; font-weight: 400; }
  details[open] summary::after { content: "–"; }
  details p { margin: 0 0 16px; color: var(--ink-soft); font-size: 14.5px; max-width: 60em; }

  /* ---------------- legal ---------------- */
  #legal .card { padding: 32px; margin-top: 36px; }
  #legal h3 { font-size: 15.5px; font-family: "Segoe UI", system-ui, sans-serif; font-weight: 700; margin: 22px 0 6px; }
  #legal h3:first-child { margin-top: 0; }
  #legal p { font-size: 14px; color: var(--ink-soft); margin: 0 0 6px; max-width: 72em; }

  /* ---------------- CTA band + footer ---------------- */
  .cta-band { background: linear-gradient(120deg, var(--green-deep), var(--green-strong) 80%); color: #fff; border-radius: 18px; padding: 52px 44px; display: flex; flex-wrap: wrap; gap: 26px; align-items: center; justify-content: space-between; }
  .cta-band h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); }
  .cta-band p { margin: 10px 0 0; opacity: .85; font-size: 15.5px; }
  .cta-band .btn { background: #fff; color: var(--green-deep) !important; }
  footer.site { border-top: 1px solid var(--rule); padding: 36px 0 48px; margin-top: 72px; }
  footer.site .wrap { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; font-size: 13.5px; color: var(--ink-faint); }
  footer.site a { color: var(--ink-faint); text-decoration: none; }
  footer.site a:hover { color: var(--green); }
  .tm { font-size: 12px; color: var(--ink-faint); max-width: 72em; margin-top: 14px; line-height: 1.6; }
  .shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 40px; }
  @media (max-width: 900px) { .shots { grid-template-columns: 1fr; } }
  .shots figure { margin: 0; }
  .shots img { width: 100%; height: auto; display: block; border: 1px solid var(--rule); border-radius: 10px; }
  .shots figcaption { font-size: 13.5px; color: var(--ink-soft); margin-top: 8px; text-align: center; }
  .legal-tab summary { cursor: pointer; font-weight: 700; font-size: 15px; padding: 12px 18px; border: 1px solid var(--rule); border-radius: 10px; background: var(--card); list-style: none; text-align: center; }
  .legal-tab summary::-webkit-details-marker { display: none; }
  .legal-tab[open] summary { border-radius: 10px 10px 0 0; }
  footer.site .wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
  .shots figure { cursor: zoom-in; }
  .lightbox { position: fixed; inset: 0; background: rgba(10, 18, 14, .88); display: none; align-items: center; justify-content: center; z-index: 90; }
  .lightbox.open { display: flex; }
  .lightbox img { max-width: min(1500px, 93vw); max-height: 84vh; border-radius: 10px; background: #fff; display: block; }
  .lightbox figcaption { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: #fff; font-size: 15px; }
  .lb-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, .16); color: #fff; border: none; font-size: 34px; line-height: 1; width: 54px; height: 54px; border-radius: 50%; cursor: pointer; }
  .lb-btn:hover { background: rgba(255, 255, 255, .3); }
  .lb-prev { left: 18px; }
  .lb-next { right: 18px; }
  .lb-close { top: 18px; right: 22px; transform: none; font-size: 28px; width: 46px; height: 46px; }
  a.fact { text-decoration: none; cursor: pointer; }
  #features h3 { scroll-margin-top: 110px; }
  .card-flash { outline: 2px solid var(--green-strong); outline-offset: 3px; }
  .lang-switch { display: inline-flex; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
  .lang-switch button { flex: 0 0 auto; background: var(--card); color: var(--ink-soft); border: 0; padding: 7px 12px; min-width: 40px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; border-left: 1px solid var(--rule); }
  .lang-switch button:first-child { border-left: 0; }
  .lang-switch button:hover { color: var(--green); }
  .lang-switch button[aria-pressed="true"] { background: var(--green-strong); color: #fff; }
  @media (max-width: 820px) { .lang-switch { margin-left: auto; } }

  /* ================= multi-page additions (Sep 2026) ================= */
  /* Phones: keep the section links reachable instead of hiding them; they
     scroll sideways as one row under the brand. */
  @media (max-width: 820px) {
    .nav-links a:not(.btn) { display: inline-block; }
    .nav-links { width: 100%; order: 3; overflow-x: auto; flex-wrap: nowrap; gap: 16px; padding-bottom: 2px; scrollbar-width: none; }
    .nav-links::-webkit-scrollbar { display: none; }
    .nav-links a { white-space: nowrap; }
  }
  .nav-links a[aria-current="page"] { color: var(--green); }
  .lang-switch a { flex: 0 0 auto; background: var(--card); color: var(--ink-soft); padding: 7px 12px; min-width: 40px; font-size: 13px; font-weight: 700; text-decoration: none; text-align: center; border-left: 1px solid var(--rule); }
  .lang-switch a:first-child { border-left: 0; }
  .lang-switch a:hover { color: var(--green); }
  .lang-switch a[aria-current="true"] { background: var(--green-strong); color: #fff; }

  /* breadcrumbs */
  .crumbs { font-size: 13.5px; color: var(--ink-faint); padding: 22px 0 0; }
  .crumbs a { color: var(--ink-faint); text-decoration: none; }
  .crumbs a:hover { color: var(--green); }
  .crumbs span[aria-current] { color: var(--ink-soft); }

  /* page hero: copy on the left, one real screenshot on the right */
  .page-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; padding: 36px 0 60px; }
  @media (max-width: 900px) { .page-hero { grid-template-columns: 1fr; padding: 28px 0 44px; } }
  .page-hero h1 { font-size: clamp(28px, 3.2vw, 42px); font-weight: 700; }
  .page-hero h1 em { font-style: normal; color: var(--green); }
  .page-hero p.lede { font-size: 18px; color: var(--ink-soft); max-width: 34em; margin: 20px 0 28px; }
  .page-shot { margin: 0; }
  .page-shot img { width: 100%; height: auto; display: block; border: 1px solid var(--rule); border-radius: 12px; box-shadow: var(--shadow); background: #fff; }
  .page-shot figcaption { font-size: 13.5px; color: var(--ink-soft); margin-top: 8px; text-align: center; }

  /* long-form sections */
  .wrap.narrow { max-width: 900px; }
  section.prose { padding: 56px 0 24px; }
  section.prose h2 { font-size: clamp(22px, 2.6vw, 30px); margin-top: 40px; max-width: 26em; }
  section.prose h2:first-child { margin-top: 0; }
  section.prose p { color: var(--ink-soft); font-size: 16.5px; max-width: 42em; margin: 14px 0 0; }
  section.prose p b { color: var(--ink); }
  ul.checks { margin: 18px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; max-width: 42em; }
  ul.checks li { display: flex; gap: 12px; font-size: 15.5px; color: var(--ink-soft); }
  ul.checks li::before { content: "✓"; color: var(--green); font-weight: 800; flex: 0 0 auto; }
  ul.checks li b { color: var(--ink); }
  section.faq-block { padding: 40px 0 56px; }

  /* linked cards (features hub, related pages, home grid) */
  a.card { display: block; text-decoration: none; color: inherit; transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
  a.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--green); }
  a.card h3 { color: var(--ink); }
  a.card .more { display: inline-block; margin-top: 12px; font-size: 13.5px; font-weight: 700; color: var(--green); }
  .hub { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 36px; }
  @media (max-width: 860px) { .hub { grid-template-columns: 1fr; } }
  .hub a.card { padding: 0; overflow: hidden; }
  .hub a.card img { width: 100%; height: auto; display: block; border-bottom: 1px solid var(--rule); }
  .hub a.card .hub-body { padding: 20px 22px 22px; }
  .hub a.card h3 { font-size: 19px; }
  section.related { padding: 40px 0 8px; }
  section.related .grid { margin-top: 22px; }

  /* footer with real columns: every page reachable from every page */
  footer.site .foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: left; align-items: start; width: 100%; }
  @media (max-width: 860px) { footer.site .foot-cols { grid-template-columns: repeat(2, 1fr); } }
  footer.site .foot-cols h4 { margin: 0 0 10px; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); font-family: "Segoe UI", system-ui, sans-serif; }
  footer.site .foot-cols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
  footer.site .foot-cols a { font-size: 14px; }
  footer.site .foot-base { margin-top: 30px; border-top: 1px solid var(--rule); padding-top: 22px; width: 100%; }

  /* FAQ page groups */
  .faq-group { margin-top: 44px; }
  .faq-group h2 { font-size: clamp(20px, 2.4vw, 26px); }
  #legal.page .card { padding: 32px; margin-top: 8px; }
  #legal.page h2 { font-size: 17px; font-family: "Segoe UI", system-ui, sans-serif; font-weight: 700; margin: 26px 0 6px; max-width: none; }
  #legal.page h2:first-child { margin-top: 0; }
  #legal.page p { font-size: 15px; color: var(--ink-soft); margin: 0 0 6px; max-width: 72em; }
