/* CGI Web Services — shared design system
   Concept: the timing sheet. Isle of Man TT culture runs on one rule —
   your time is your time, verified, on the board, no argument. This site
   borrows that language (tickets, splits, verified stamps, tabular data)
   to make a plain claim: real work, checked and dated, beats a "concept". */

:root {
  --ink: #14181B;
  --paper: #EEF0EA;
  --panel: #E2E5DC;
  --panel-2: #D7DBCC;
  --line: #C7CBBE;
  --green: #1B5E3F;
  --green-ink: #0F3D29;
  --amber: #F0AE1F;
  --amber-ink: #7A5405;
  --muted: #5B6058;
  --white: #FCFDFB;
  --max: 1120px;
}

* { 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: 'Big Shoulders Display', sans-serif;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 0.98;
  margin: 0;
}

/* ---------- 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: 'Big Shoulders Display', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.04em;
  background: var(--ink);
  color: var(--paper);
  padding: 4px 10px 2px;
  border-radius: 3px;
  line-height: 1;
}
.wordmark .name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.wordmark .name b {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: 0.03em;
}
.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;
}
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(--panel); }
nav.main a.cta {
  background: var(--green);
  color: var(--white);
  font-weight: 600;
}
nav.main a.cta:hover { background: var(--green-ink); }

.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: 2px 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 ---------- */
.hero {
  padding: 72px 0 56px;
  border-bottom: 2px solid var(--ink);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green-ink);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  display: inline-block;
}
.hero h1 {
  font-size: clamp(40px, 7vw, 84px);
  max-width: 15ch;
}
.hero h1 .seg {
  display: inline-block;
  padding: 0 0.15em;
}
.hero h1 .seg + .seg {
  border-left: 1px solid color-mix(in srgb, var(--amber) 45%, transparent);
  margin-left: 0.02em;
}
.hero .lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 56ch;
  margin: 24px 0 32px;
}
.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: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 3px;
  border: 2px solid var(--ink);
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--green-ink); border-color: var(--green-ink); }
.btn-secondary { background: transparent; color: var(--ink); }
.btn-secondary:hover { background: var(--panel); }

/* ---------- results strip ---------- */
.results {
  border-bottom: 2px solid var(--ink);
  background: var(--panel);
}
.results .row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.results .cell {
  padding: 22px 24px;
  border-left: 1px solid var(--line);
}
.results .cell:first-child { border-left: none; }
.results .k {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 34px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.results .l {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 4px;
}

/* ---------- sections ---------- */
section.block { padding: 64px 0; }
section.block.tight { padding: 40px 0; }
section.block + section.block { border-top: 1px solid var(--line); }
.section-head { margin-bottom: 36px; max-width: 68ch; }
.section-head .eyebrow { margin-bottom: 12px; }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); }
.section-head p { color: var(--muted); font-size: 16.5px; margin-top: 14px; }

/* ---------- verified ticket (signature element) ---------- */
.ticket {
  position: relative;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 22px 24px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ticket::before {
  content: "";
  position: absolute;
  left: -2px; top: 0; bottom: 0;
  width: 3px;
  background-image: linear-gradient(var(--ink) 60%, transparent 0%);
  background-size: 3px 12px;
  background-repeat: repeat-y;
}
.ticket .stamp {
  align-self: flex-start;
  background: var(--green);
  color: var(--white);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 2px;
}
.ticket .stamp.pending { background: var(--amber); color: var(--amber-ink); }
.ticket h3 { font-size: 24px; }
.ticket p { color: var(--muted); margin: 0; font-size: 15px; }
.ticket .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: 1px dashed var(--line);
  padding-top: 12px;
  margin-top: 4px;
}
.ticket a.tlink {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  text-decoration: none;
  color: var(--green-ink);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ticket 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(--green); }
.vs-table td.no::before { content: "— "; }

/* ---------- pricing ---------- */
.price-card {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.price-card.feat { border-color: var(--green); box-shadow: 4px 4px 0 var(--green); }
.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 .amount { font-family: 'Big Shoulders Display', sans-serif; font-weight: 800; font-size: 44px; }
.price-card .amount span { font-family: 'IBM Plex Mono', monospace; font-size: 15px; 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 (real sequence) ---------- */
.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(--green-ink); font-weight: 600; }
.step h3 { font-size: 18px; margin-top: 8px; text-transform: none; font-weight: 700; }
.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: 2px 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(--amber);
  outline-offset: 2px;
}
button.btn { cursor: pointer; }
.form-note { font-size: 13px; color: var(--muted); }
.alert { border: 2px solid var(--green); background: #E7F0EA; color: var(--green-ink); padding: 14px 16px; border-radius: 4px; font-size: 14.5px; }
.alert.error { border-color: #A33; background: #F6E7E5; color: #7A241C; }

/* ---------- footer ---------- */
footer.site {
  border-top: 2px solid var(--ink);
  background: var(--panel);
  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; text-transform: none; font-weight: 700; margin-top: 32px; }
.legal-body p, .legal-body li { color: var(--muted); font-size: 15px; }
