/* Self-hosted fonts (latin subsets) */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-400-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-500-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-600-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-400-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-500-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/ibm-plex-sans-600-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/newsreader-500-italic.woff2) format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/newsreader-600-italic.woff2) format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/newsreader-500-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/newsreader-600-normal.woff2) format('woff2');
}

/* CGI Web Services — shared design system
   Concept: the postmark. A stamp is a small object that makes an
   otherwise unverifiable claim ("this was posted, on this date, for
   this much") into a fact — engraved, franked, dated, impossible to
   fake without effort. This site borrows that grammar: verification
   marks instead of marketing badges, denomination-style numerals for
   real numbers, perforated dividers as real structure, and proof
   presented the way a first-day cover presents a stamp — dated,
   cancelled, undeniable. Isle of Man postal design is internationally
   known for exactly this kind of confident, saturated, engraved craft.
*/

:root {
  --paper: #FAFAF7;
  --paper-2: #F1F0EA;
  --ink: #1A1D1B;
  --muted: #62615A;
  --line: #D9D6CC;

  --post-blue: #16375E;
  --post-blue-deep: #0E2540;
  --post-blue-tint: #E4EAF1;
  --frank-red: #A82A1F;
  --frank-red-deep: #7C1E16;
  --frank-red-tint: #F4E3E0;

  --white: #FFFFFF;
  --max: 1120px;

  --panel: var(--paper-2);
  --amber-ink: #F0B84C;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'IBM Plex Sans', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.mono {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}

h1, h2, h3, .display {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.04;
  margin: 0;
}

/* ---------- perforation: the signature structural device ---------- */
/* A real perforated edge, not a decorative flourish — used everywhere
   a plain rule would otherwise sit, so the "torn from a sheet" grammar
   carries the whole page rather than living in one hero graphic. */
.perf {
  height: 14px;
  background:
    radial-gradient(circle 5.5px at 14px 0, transparent 5.4px, var(--paper) 5.5px) top / 28px 14px repeat-x,
    radial-gradient(circle 5.5px at 14px 14px, transparent 5.4px, var(--paper) 5.5px) bottom / 28px 14px repeat-x;
}
.perf-line {
  border: none;
  border-top: 1.5px dashed var(--line);
  margin: 0;
}

/* ---------- postmark: the verification seal ---------- */
/* Replaces every "eyebrow" label on the old site. A real circular
   cancellation mark — concentric rings, rim text, a date line through
   the centre — used only to mark something genuinely checkable. */
.postmark {
  --pm-size: 76px;
  width: var(--pm-size);
  height: var(--pm-size);
  border-radius: 50%;
  border: 2px solid currentColor;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.postmark::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.55;
}
.postmark .pm-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.25;
}
.postmark svg.pm-rim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* .eyebrow: legacy label class, still used on pages not yet migrated
   to .postmark. Kept styled (not removed) so those pages don't render
   with unstyled, uncoloured labels. */
.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--post-blue);
  margin-bottom: 10px;
}
.hero .eyebrow { color: color-mix(in srgb, var(--white) 82%, transparent); }

/* ---------- header / nav ---------- */
header.site {
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 30;
}
header.site .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 20px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.plate {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0;
  border: 1.5px solid var(--ink);
  padding: 3px 10px 4px;
  border-radius: 3px;
  line-height: 1;
  font-variant: small-caps;
}
.wordmark .name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.wordmark .name b {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 600;
  font-size: 15px;
}
.wordmark .name span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}
nav.main {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}
nav.main a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 3px;
}
nav.main a:hover, nav.main a[aria-current="page"] { background: var(--paper-2); }
nav.main a.cta {
  background: var(--post-blue);
  color: var(--white);
  font-weight: 600;
}
nav.main a.cta:hover { background: var(--post-blue-deep); }

.nav-toggle { display: none; }

@media (max-width: 760px) {
  nav.main { display: none; width: 100%; order: 3; }
  nav.main.open { display: flex; flex-direction: column; gap: 0; padding-top: 8px; }
  nav.main a { padding: 12px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  header.site .bar { flex-wrap: wrap; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1.5px solid var(--ink);
    border-radius: 3px;
    padding: 8px 12px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    color: var(--ink);
  }
}

/* ---------- hero: a first-day cover ---------- */
/* The hero is framed as an envelope: postmark top-right (where a real
   stamp sits), address-block-style meta line, the claim as the letter
   itself. This is the whole "prove, don't claim" thesis rendered as
   the literal object that proves things — a cancelled stamp. */
.hero {
  background: var(--post-blue);
  color: var(--white);
  padding: 0;
}
.hero .cover {
  padding: 48px 0 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}
.hero .postmark { color: var(--white); }
.hero h1 {
  color: var(--white);
  font-size: clamp(38px, 6.4vw, 72px);
  max-width: 16ch;
  font-weight: 500;
}
.hero h1 em {
  font-style: italic;
  font-weight: 600;
}
.hero .lede {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 18px;
  color: color-mix(in srgb, var(--white) 84%, transparent);
  max-width: 56ch;
  margin: 22px 0 32px;
  line-height: 1.6;
}
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 3px;
  border: 1.5px solid currentColor;
}
.btn-primary { background: var(--white); color: var(--post-blue-deep); border-color: var(--white); }
.btn-primary:hover { background: var(--paper-2); }
.hero .btn-secondary { color: var(--white); }
.hero .btn-secondary:hover { background: color-mix(in srgb, var(--white) 12%, transparent); }
.btn-secondary { background: transparent; color: var(--ink); }
.btn-secondary:hover { background: var(--paper-2); }

/* ---------- results strip: rendered as a rate table ---------- */
.results {
  background: var(--ink);
  color: var(--paper);
}
.results .row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.results .cell {
  padding: 20px 24px;
  border-left: 1px solid color-mix(in srgb, var(--paper) 18%, transparent);
}
.results .cell:first-child { border-left: none; }
.results .k {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: color-mix(in srgb, var(--paper) 65%, transparent);
}
.results .l {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 19px;
  font-weight: 500;
  margin-top: 6px;
}

/* ---------- sections ---------- */
section.block { padding: 64px 0; }
section.block.tight { padding: 40px 0; }
section.block.alt { background: var(--paper-2); }
.section-head { margin-bottom: 36px; max-width: 68ch; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 500; }
.section-head p { color: var(--muted); font-size: 16.5px; margin-top: 14px; }

/* ---------- cover card: proof presented as a first-day cover ---------- */
.cover-card {
  position: relative;
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  padding: 24px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cover-card .cc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.cover-card .postmark { --pm-size: 58px; color: var(--post-blue); }
.cover-card .cc-status {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 2px;
  background: var(--post-blue-tint);
  color: var(--post-blue-deep);
  align-self: flex-start;
}
.cover-card .cc-status.pending { background: var(--frank-red-tint); color: var(--frank-red-deep); }
.cover-card h3 { font-size: 23px; font-weight: 600; }
.cover-card p { color: var(--muted); margin: 0; font-size: 15px; }
.cover-card .meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-top: 1.5px dashed var(--line);
  padding-top: 12px;
  margin-top: 4px;
}
.cover-card a.tlink {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  text-decoration: none;
  color: var(--post-blue);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cover-card a.tlink:hover { text-decoration: underline; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }

/* ---------- comparison table ---------- */
.vs-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.vs-table th, .vs-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.vs-table th { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); border-bottom: 2px solid var(--ink); }
.vs-table td.no { color: var(--muted); }
.vs-table td.yes { font-weight: 600; }
.vs-table td.yes::before { content: "✓ "; color: var(--post-blue); }
.vs-table td.no::before { content: "— "; }
.vs-table tr.total td { border-top: 2px solid var(--ink); border-bottom: none; background: var(--paper-2); font-family: 'IBM Plex Mono', monospace; font-weight: 600; }
.vs-table tr.total td:first-child { text-transform: uppercase; letter-spacing: 0.04em; font-size: 12.5px; color: var(--muted); }

/* ---------- pricing: denomination panel ---------- */
.price-card {
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.price-card.feat { border-color: var(--post-blue); border-width: 2px; }
.price-card .tier-name { font-family: 'IBM Plex Mono', monospace; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.price-card .denom {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  padding: 10px 16px 8px;
  align-self: flex-start;
}
.price-card .amount { font-family: 'Newsreader', Georgia, serif; font-weight: 600; font-size: 38px; line-height: 1; }
.price-card .amount span { font-family: 'IBM Plex Mono', monospace; font-size: 14px; font-weight: 500; color: var(--muted); text-transform: none; letter-spacing: 0; }
.price-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.price-card li { font-size: 14.5px; padding-left: 20px; position: relative; }
.price-card li::before { content: "—"; position: absolute; left: 0; color: var(--muted); }

/* ---------- process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.step { padding: 22px 20px; border-left: 1px solid var(--line); background: var(--white); }
.step:first-child { border-left: none; }
.step .num { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--post-blue); font-weight: 600; }
.step h3 { font-size: 18px; margin-top: 8px; font-weight: 600; }
.step p { color: var(--muted); font-size: 13.5px; margin-top: 6px; }

/* ---------- form ---------- */
form.ticket-form { display: flex; flex-direction: column; gap: 18px; max-width: 640px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: 'IBM Plex Mono', monospace; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.field input, .field textarea, .field select {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px;
  padding: 12px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  background: var(--white);
  color: var(--ink);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus,
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--frank-red);
  outline-offset: 2px;
}
button.btn { cursor: pointer; }
.form-note { font-size: 13px; color: var(--muted); }
.alert { border: 1.5px solid var(--post-blue); background: var(--post-blue-tint); color: var(--post-blue-deep); padding: 14px 16px; border-radius: 4px; font-size: 14.5px; }
.alert.error { border-color: var(--frank-red); background: var(--frank-red-tint); color: var(--frank-red-deep); }

/* ---------- footer ---------- */
footer.site {
  border-top: 2px solid var(--ink);
  background: var(--paper-2);
  padding: 32px 0;
  margin-top: 0;
}
footer.site .row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}
footer.site a { text-decoration: none; }
footer.site a:hover { color: var(--ink); }
footer.site .flinks { display: flex; gap: 18px; flex-wrap: wrap; }
footer.site .fmono { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; }

.legal-body { max-width: 74ch; }
.legal-body h2 { font-size: 22px; font-weight: 600; margin-top: 32px; }
.legal-body p, .legal-body li { color: var(--muted); font-size: 15px; }
