/* Shared look for John's pages: the same livery colours and type as the demo
   site, so it all feels like one thing. */
@font-face {
  font-family: 'Figtree';
  src: url('figtree-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}
:root {
  --navy: #243c8a;
  --navy-deep: #1b2d6b;
  --aqua: #66ccf0;
  --bright: #24a8e4;
  --ink-link: #1a62a8;
  --paper: #ffffff;
  --tint: #f1f8fd;
  --tint-2: #e3f2fb;
  --line: #d3e3f0;
  --ink: #14213d;
  --ink-soft: #3b4866;
  --ink-faint: #56627d;
  --good: #1f6f43;
  --good-bg: #e7f3ec;
  --warn: #8a4b00;
  --warn-bg: #fff4d6;
  --warn-line: #e6c766;
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink-link); text-underline-offset: 0.18em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--ink-link); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: 820px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px) { .wrap { padding-inline: 32px; } }

h1, h2, h3 { color: var(--navy); line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 1.25rem + 1.2vw, 2.1rem); font-weight: 800; margin-bottom: 0.75rem; }
h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.4rem; }
p + p, p + ul, ul + p, p + ol, ol + p, p + .table-wrap, .table-wrap + p, p + h3, ul + h3 { margin-top: 0.9rem; }
ul, ol { padding-left: 1.3rem; }
li + li { margin-top: 0.35rem; }
strong { font-weight: 700; }
.lede { font-size: 1.2rem; color: var(--ink-soft); }
.small { font-size: 0.95rem; color: var(--ink-faint); }
.eyebrow { display: block; font-weight: 700; font-size: 0.95rem; color: var(--navy); margin-bottom: 0.5rem; }

/* The livery stripe */
.stripe { height: 6px; background: linear-gradient(90deg, var(--navy) 0 55%, var(--bright) 55% 82%, var(--aqua) 82%); }
.rule { width: 4.5rem; height: 4px; border: 0; border-radius: 4px; margin: 1rem 0 1.25rem;
  background: linear-gradient(90deg, var(--navy) 0 40%, var(--bright) 40% 72%, var(--aqua) 72%); }

section { padding-block: 2.5rem; }
section + section { border-top: 1px solid var(--line); }
.tinted { background: var(--tint); }

.hero { padding-block: 2rem 2.5rem; background: var(--tint); }
.hero img { border-radius: var(--radius); margin-top: 1.5rem; box-shadow: 0 10px 30px rgb(27 45 107 / 0.15); }

.note {
  background: var(--tint-2); border-radius: var(--radius); padding: 1.25rem 1.4rem; margin-top: 1.25rem;
}
.note--warm { background: var(--warn-bg); border: 1px solid var(--warn-line); color: #4a3800; }
.note--warm a { color: #4a3800; font-weight: 700; }
.note--good { background: var(--good-bg); color: #123d26; }
.note h3 { color: inherit; }

.card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; background: var(--paper);
}
.cards { display: grid; gap: 0.9rem; margin-top: 1.25rem; }
@media (min-width: 640px) { .cards--2 { grid-template-columns: 1fr 1fr; } }
.card h3 { font-size: 1.1rem; }
.card p { color: var(--ink-soft); }

.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 1.8rem; }
.ticks li::before {
  content: ''; position: absolute; left: 0.1rem; top: 0.55em; width: 0.75rem; height: 0.4rem;
  border-left: 3px solid var(--bright); border-bottom: 3px solid var(--bright); transform: rotate(-45deg);
}

.table-wrap { overflow-x: auto; margin-top: 1rem; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 0.7rem 0.85rem; border-bottom: 1px solid var(--line); }
th { background: var(--tint); color: var(--navy); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
td.you { color: var(--warn); font-weight: 700; white-space: nowrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: var(--ink-link); color: #fff; text-decoration: none; font-weight: 700;
  padding: 0.85rem 1.4rem; border-radius: 100px; min-height: 3.2rem; margin-top: 1rem;
}
.btn:hover { background: var(--navy); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); }
.btn--ghost:hover { background: var(--tint); color: var(--ink); }

.chain { counter-reset: step; list-style: none; padding: 0; margin-top: 1rem; display: grid; gap: 0.6rem; }
.chain li { counter-increment: step; position: relative; padding: 0.85rem 1rem 0.85rem 3.2rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin: 0; }
.chain li::before {
  content: counter(step); position: absolute; left: 0.85rem; top: 0.8rem; width: 1.7rem; height: 1.7rem;
  border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; font-size: 0.9rem;
  display: grid; place-items: center;
}

footer { padding-block: 2rem 3rem; background: var(--navy-deep); color: #c9dbef; }
footer a { color: #fff; }

@media print {
  .no-print { display: none !important; }
  body { font-size: 11pt; }
  section { padding-block: 1rem; break-inside: avoid-page; }
  .hero { background: none; }
  .hero img { display: none; }
  a { color: inherit; }
  footer { background: none; color: inherit; }
}
