/* ============================================================
   paritor.com

   Built to the same design as the product marketing sites
   (Cognario.Marketing, Vestarios.Marketing), so the company site and
   its products read as one family. Tokens follow the same three-state
   theming pattern, and must keep it:

     :root                                  light, always defined
     @media (prefers-color-scheme: dark)    dark, guarded so an explicit
       :root:not([data-theme="light"])      light choice still wins
     :root[data-theme="dark"]               explicit dark choice

   Palette: Paritor teal (#009CA6 / #03737F from the old site and the
   logo) on cool paper, with the old site's orange (#E58E1A) as a sparing
   accent. --brand is the darker teal so it passes WCAG AA as link text
   on paper (5.4:1); the orange never carries text on light.

   No web fonts: the system stack is fast and private.

   No inline styles anywhere on the site - the Content-Security-Policy
   is style-src 'self', so a style="" attribute would simply not apply.
   ============================================================ */

:root {
  --paper: #F6FAFA;
  --card: #FFFFFF;
  --deep: #0B3B40;
  --deep-2: #124950;
  --ink: #102427;
  --ink-2: #3E5458;
  --ink-3: #5B7074;
  --line: #DBE6E6;
  --line-2: #C2D3D4;
  --brand: #03737F;
  --brand-2: #009CA6;
  --brand-wash: #E2F2F3;
  --accent: #A85A06;
  --accent-2: #E58E1A;
  --accent-wash: #FCEFDD;
  --on-brand: #FFFFFF;
  --on-deep: #EAF6F6;
  --on-deep-2: #A8CACC;
  --note: #8A5A14;
  --note-wash: #FBF2E2;
  --tick: #2F7A4F;

  /* One colour per product, each its own site's brand colour, used for
     the product tiles. White text on every one passes AA. */
  --p-xperios: #0F6380;
  --p-prospario: #2457D6;
  --p-cognario: #26685A;
  --p-vestarios: #B4442A;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 36, 39, 0.06), 0 8px 24px rgba(16, 36, 39, 0.08);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0C1517;
    --card: #122023;
    --deep: #071012;
    --deep-2: #122023;
    --ink: #E6F1F1;
    --ink-2: #B4C9CB;
    --ink-3: #8AA1A4;
    --line: #1F3337;
    --line-2: #2E484D;
    --brand: #4CC3CB;
    --brand-2: #7ED6DC;
    --brand-wash: #0F3236;
    --accent: #F0A64A;
    --accent-2: #F0A64A;
    --accent-wash: #33240F;
    --on-brand: #0C1517;
    --note: #D9A860;
    --note-wash: #2E2416;
    --tick: #7FCB9C;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);

    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #0C1517;
  --card: #122023;
  --deep: #071012;
  --deep-2: #122023;
  --ink: #E6F1F1;
  --ink-2: #B4C9CB;
  --ink-3: #8AA1A4;
  --line: #1F3337;
  --line-2: #2E484D;
  --brand: #4CC3CB;
  --brand-2: #7ED6DC;
  --brand-wash: #0F3236;
  --accent: #F0A64A;
  --accent-2: #F0A64A;
  --accent-wash: #33240F;
  --on-brand: #0C1517;
  --note: #D9A860;
  --note-wash: #2E2416;
  --tick: #7FCB9C;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);

  color-scheme: dark;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(32px, 5.2vw, 54px); font-weight: 800; }
h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 750; }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }

p { margin: 0; }

a { color: var(--brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

code {
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--brand-wash);
  padding: 1px 5px;
  border-radius: 5px;
}

:focus-visible {
  outline: 3px solid var(--brand-2);
  outline-offset: 3px;
  border-radius: 4px;
}

.lab {
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-3);
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

section { padding: 88px 0; }
section.tight { padding: 60px 0; }
section.banded {
  background: var(--card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stack > * + * { margin-top: 40px; }
.stack-tight > * + * { margin-top: 28px; }

.sec-lab { display: block; margin-bottom: 12px; color: var(--brand); }
.dek { margin-top: 16px; color: var(--ink-2); font-size: 18px; }
.note-line { color: var(--ink-3); font-size: 15px; }
.more { font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }

/* ---------- skip link ---------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: var(--on-brand);
  padding: 12px 18px;
  z-index: 100;
  border-radius: 0 0 6px 0;
  font-weight: 600;
}
.skip:focus { left: 0; }

/* ---------- pre-launch banner ---------- */
.prelaunch {
  background: var(--note-wash);
  color: var(--note);
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  padding: 12px 0;
}
.prelaunch ul { margin: 6px 0 0; padding-left: 20px; }
.prelaunch code { background: transparent; padding: 0; }

/* ---------- nav ---------- */
nav.top {
  background: var(--deep);
  color: var(--on-deep);
  padding: 16px 0;
}
nav.top .wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 24px;
}
.brandmark { display: inline-flex; color: inherit; text-decoration: none; border-radius: 6px; }
nav.top .brandmark { color: var(--on-deep); }
.wordmark { display: block; height: 30px; width: auto; }
.wm-frame { stroke: var(--brand-2); }
.wm-tile { fill: var(--brand-2); }
.wm-p { stroke: #FFFFFF; }
/* The nav is always dark: the tile keeps the logo's teal, the frame lightens. */
nav.top .wm-frame { stroke: #7ED6DC; }
nav.top .wm-tile { fill: #009CA6; }

/* Source order is brand, actions, links - so a wrapping row drops the links
   to a second line and keeps the actions beside the brand. On a wide screen
   `order` puts them back in reading order. */
nav.top .links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 15px;
  order: 1;
  margin-left: auto;
}
nav.top .actions {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 15px;
  order: 2;
}
nav.top a { color: var(--on-deep-2); text-decoration: none; }
nav.top a:hover, nav.top a[aria-current="page"] { color: var(--on-deep); }
nav.top a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
nav.top :focus-visible { outline-color: #7ED6DC; }

@media (max-width: 860px) {
  nav.top .actions { order: 1; margin-left: auto; }
  nav.top .links { order: 2; margin-left: 0; width: 100%; }
}

/* ---------- theme switch ---------- */
.theme-switch {
  background: none;
  border: 0;
  padding: 4px;
  cursor: pointer;
  border-radius: 999px;
}
.theme-switch-track {
  display: block;
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: var(--deep-2);
  border: 1px solid #2E484D;
}
.theme-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #EAF6F6;
  transition: transform 0.15s ease;
}
.theme-switch[aria-checked="true"] .theme-switch-thumb { transform: translateX(18px); background: #7ED6DC; }

/* ---------- buttons ---------- */
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 28px; }
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 650;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid transparent;
  line-height: 1.2;
}
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); }
.cta-note { color: var(--ink-3); font-size: 15px; }

.pill {
  display: inline-block;
  font-size: 13px;
  font-weight: 650;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-wash);
  color: var(--accent);
}

/* ---------- heroes ---------- */
.hero, .page-hero {
  padding: 72px 0 80px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 420px at 88% -10%, var(--brand-wash), transparent 70%),
    radial-gradient(500px 260px at 0% 110%, var(--accent-wash), transparent 70%),
    var(--paper);
}
.page-hero { padding: 64px 0; }
.hero h1, .page-hero h1 { margin-top: 14px; max-width: 18ch; }
.page-hero h1 { max-width: 24ch; }
.sub { margin-top: 20px; font-size: 19px; color: var(--ink-2); max-width: 60ch; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

/* The hero's picture: the four products around one wallet. */
.constellation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.tile {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
}
.tile:hover { border-color: var(--line-2); }
.tile-band { display: flex; align-items: center; gap: 10px; padding: 12px 16px; color: #FFFFFF; font-weight: 700; letter-spacing: 0.02em; }
.tile-mark { width: 28px; height: 28px; flex-shrink: 0; border-radius: 7px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28); }
.tile-body { display: block; padding: 14px 16px 18px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.tile-xperios .tile-band { background: var(--p-xperios); }
.tile-prospario .tile-band { background: var(--p-prospario); }
.tile-cognario .tile-band { background: var(--p-cognario); }
.tile-vestarios .tile-band { background: var(--p-vestarios); }
.wallet {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--deep);
  color: var(--on-deep);
  text-decoration: none;
}
.wallet:hover strong { text-decoration: underline; }
.wallet strong { font-size: 16px; }
.wallet span { color: var(--on-deep-2); font-size: 14px; }
.wallet-chip {
  flex-shrink: 0;
  width: 38px;
  height: 26px;
  border-radius: 6px;
  background: linear-gradient(135deg, #E58E1A, #F5C27A);
}

/* ---------- content blocks ---------- */
.grid-2, .grid-3, .grid-4 {
  display: grid;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: minmax(0, 1fr); } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
section.banded .card { background: var(--paper); }
.card h3 { margin-top: 6px; }
.card p { margin-top: 10px; color: var(--ink-2); }
.card .more { display: inline-block; margin-top: 14px; }

/* A product card: its own colour as a rule along the top. */
.product { border-top: 5px solid var(--line-2); display: flex; flex-direction: column; }
.product .more { margin-top: auto; padding-top: 14px; }
.product-xperios { border-top-color: var(--p-xperios); }
.product-prospario { border-top-color: var(--p-prospario); }
.product-cognario { border-top-color: var(--p-cognario); }
.product-vestarios { border-top-color: var(--p-vestarios); }
.product .lab { color: var(--ink-3); }
.product-head { display: flex; align-items: center; gap: 16px; }
.product-head h3 { margin-top: 2px; }
.product-mark { width: 52px; height: 52px; flex-shrink: 0; border-radius: 12px; box-shadow: 0 0 0 1px var(--line-2); }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.45em;
  width: 12px;
  height: 7px;
  border-left: 2.5px solid var(--tick);
  border-bottom: 2.5px solid var(--tick);
  transform: rotate(-45deg);
}

.strip {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
@media (max-width: 820px) { .strip { grid-template-columns: minmax(0, 1fr); padding: 24px; } }
.strip h2 { font-size: clamp(22px, 2.8vw, 28px); }
.strip p { margin-top: 12px; color: var(--ink-2); }
.strip-aside { border-left: 3px solid var(--accent-2); padding-left: 20px; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; }
@media (max-width: 720px) { .facts { grid-template-columns: minmax(0, 1fr); } }
.facts div { border-left: 3px solid var(--brand-2); padding-left: 16px; }
.facts dt { font-size: 15px; color: var(--ink-3); }
.facts dd { margin: 4px 0 0; font-size: 20px; font-weight: 700; }

/* ---------- Paritor Credits ---------- */
.packs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 980px) { .packs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .packs { grid-template-columns: minmax(0, 1fr); } }
.pack { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.pack-head { padding: 12px 18px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #FFFFFF; background: var(--p-cognario); }
.pack:nth-child(2) .pack-head { background: #1F7A6B; }
.pack:nth-child(3) .pack-head { background: var(--p-xperios); }
.pack:nth-child(4) .pack-head { background: var(--deep-2); }
.pack-body { padding: 20px 18px; }
.pack-price { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; }
.pack-vat { font-size: 14px; font-weight: 500; color: var(--ink-3); }
.pack-rate { margin-top: 6px; color: var(--ink-2); font-size: 15px; }

/* ---------- tables (pricing matrix, legal) ---------- */
.table-wrap { overflow-x: auto; }
table.grid {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15.5px;
}
table.grid th, table.grid td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.grid thead th { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
table.grid tbody tr:last-child td, table.grid tbody tr:last-child th { border-bottom: 0; }
table.grid td.yes { color: var(--tick); font-weight: 700; }
table.grid td.no { color: var(--ink-3); }

/* ---------- long-form text ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 24px; margin-top: 44px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 28px; }
.prose p, .prose ul, .prose ol, .prose dl, .prose .table-wrap { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose dt { font-weight: 700; margin-top: 18px; }
.prose dd { margin: 4px 0 0; color: var(--ink-2); }
.updated { color: var(--ink-3); font-size: 15px; margin-top: 14px; }

.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.doc-list a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}
.doc-list a:hover { border-color: var(--brand); }
.doc-list span { color: var(--ink-3); font-weight: 500; font-size: 15px; }

.callout {
  border-radius: 10px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  background: var(--brand-wash);
}

/* ---------- closing call to action ---------- */
section.close {
  background: var(--deep);
  color: var(--on-deep);
}
section.close h2 { max-width: 24ch; }
section.close p { margin-top: 14px; max-width: 62ch; color: var(--on-deep-2); font-size: 18px; }
section.close .btn-primary { background: #7ED6DC; color: #071012; }
section.close .cta-note { color: var(--on-deep-2); }
section.close .cta-note a { color: var(--on-deep); }
section.close :focus-visible { outline-color: #7ED6DC; }

/* ---------- footer ---------- */
footer.site {
  background: var(--card);
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  font-size: 15px;
  color: var(--ink-2);
}
footer.site .brandmark { color: var(--ink); }
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}
@media (max-width: 820px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }
.foot-blurb { margin-top: 14px; max-width: 34ch; }
.foot-col h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  font-weight: 700;
}
.foot-col ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.foot-col a { color: var(--ink-2); text-decoration: none; }
.foot-col a:hover { color: var(--brand); text-decoration: underline; }
.foot-legal {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-3);
}
.foot-legal p + p { margin-top: 6px; }

/* ---------- small screens ---------- */
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  section { padding: 64px 0; }
  section.tight { padding: 44px 0; }
  .hero, .page-hero { padding: 48px 0 56px; }
  .sub { font-size: 17.5px; }
  .card, .strip { padding: 20px; }
  .constellation { grid-template-columns: minmax(0, 1fr); }
}

/* Text for screen readers only. */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- photography (from the old paritor.com) ---------- */
.photo-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
@media (max-width: 860px) { .photo-band { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.photo-band img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); display: block; box-shadow: var(--shadow); }
.photo-band p { margin-top: 14px; color: var(--ink-2); }
/* Head-and-shoulders portraits across the top of each team card (4:5). */
.card:has(> .team-photo) { padding-top: 0; overflow: hidden; }
.team-photo { width: calc(100% + 48px); height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; display: block; margin: 0 -24px 18px; }
@media (max-width: 480px) { .team-photo { width: calc(100% + 40px); margin: 0 -20px 16px; } }
