@font-face {
  font-family: "Geist";
  src: url("assets/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("assets/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* The product's own palette: harbour navy, chart paper, and the yellow Q flag as the only accent.
   Green, amber and red only ever mean cleared, held and refused. */
:root {
  --navy: #101c2c;
  --navy-2: #172639;
  --navy-line: #2a3c53;
  --paper: #eef2f7;
  --paper-2: #e2e8f0;
  --ink: #101c2c;
  --slate: #51667f;
  --mist: #aebaca;
  --flag: #f2c200;
  --cleared: #2e8b62;
  --held: #d9a21b;
  --refused: #d1453b;
  --white: #ffffff;

  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* A modular scale (1.25) on a 17px base. */
  --s-1: 0.8rem;
  --s0: 1rem;
  --s1: 1.25rem;
  --s2: 1.5625rem;
  --s3: 1.953rem;
  --s4: 2.441rem;
  --s5: clamp(2.441rem, 4.6vw, 3.815rem);

  --gutter: clamp(16px, 4vw, 40px);
  --measure: 66ch;
}

* { box-sizing: border-box; }
html { font-size: 17px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--s0);
  line-height: 1.55;
  font-feature-settings: "ss01", "tnum" 0;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
code, pre { font-family: var(--mono); font-size: 0.9em; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--flag); outline-offset: 3px; border-radius: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--flag); color: var(--navy); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { width: min(1180px, 100%); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { width: min(760px, 100%); }
.small { font-size: var(--s-1); color: var(--slate); }

/* The Q flag: a plain yellow rectangle, as flown. */
.qflag {
  display: inline-block;
  width: 1.15em;
  height: 0.85em;
  background: var(--flag);
  vertical-align: -0.05em;
  margin-right: 0.5em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.1rem;
  border-radius: 3px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-flag { background: var(--flag); color: var(--navy); }
.btn-flag:hover { background: #ffd21f; text-decoration: none; }
.btn-line { border-color: currentColor; background: transparent; }
.btn-line:hover { background: rgb(255 255 255 / 0.08); text-decoration: none; }

/* Header */
.top { background: var(--navy); color: var(--paper); border-bottom: 1px solid var(--navy-line); position: sticky; top: 0; z-index: 5; }
.top-row { display: flex; align-items: center; gap: 2rem; min-height: 64px; }
.brand { font-weight: 650; font-size: var(--s1); text-decoration: none; letter-spacing: -0.02em; display: inline-flex; align-items: center; }
.top nav { display: flex; gap: 1.5rem; margin-left: auto; }
.top nav a { text-decoration: none; color: var(--mist); }
.top nav a:hover { color: var(--paper); }
.top .btn { min-height: 38px; }

/* Hero */
.hero { background: var(--navy); color: var(--paper); padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 9vw, 112px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.definition { color: var(--mist); font-size: var(--s-1); margin-bottom: 1.5rem; max-width: 46ch; }
.definition dfn { font-style: italic; color: var(--paper); font-weight: 600; }
.definition span { font-style: italic; }
.hero h1 { font-size: var(--s5); line-height: 1.06; letter-spacing: -0.035em; max-width: 14ch; }
.lede { margin-top: 1.5rem; font-size: var(--s1); line-height: 1.5; color: var(--paper-2); max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.ecos { margin-top: 1.25rem; color: var(--mist); font-size: var(--s-1); }

/* The manifest: the one memorable thing on the page. */
.manifest {
  margin: 0;
  background: var(--navy-2);
  border: 1px solid var(--navy-line);
  border-left: 6px solid var(--flag);
  padding: 1.25rem 1.25rem 1rem;
}
.manifest figcaption { display: flex; justify-content: space-between; gap: 1rem; font-weight: 600; padding-bottom: 0.9rem; border-bottom: 1px solid var(--navy-line); }
.manifest .clock { color: var(--mist); font-weight: 400; font-size: var(--s-1); }
.rows { list-style: none; margin: 0; padding: 0; }
.row {
  display: grid;
  grid-template-columns: 5.2rem minmax(0, 1fr) auto;
  grid-template-areas: "reg pkg stamp" "reg why stamp";
  column-gap: 0.9rem;
  padding: 0.8rem 0;
  border-bottom: 1px dashed var(--navy-line);
}
.row:last-child { border-bottom: 0; }
.row .reg { grid-area: reg; color: var(--mist); font-size: var(--s-1); padding-top: 0.15rem; }
.row code { grid-area: pkg; color: var(--white); font-size: 0.92rem; overflow-wrap: anywhere; }
.row .why { grid-area: why; color: var(--mist); font-size: var(--s-1); }
.stamp {
  grid-area: stamp;
  align-self: center;
  font-weight: 700;
  font-size: var(--s-1);
  letter-spacing: 0.02em;
  padding: 0.3rem 0.6rem;
  border: 2px solid currentColor;
  border-radius: 3px;
  transform: rotate(-4deg);
}
.row[data-status="cleared"] .stamp { color: #4fc08d; }
.row[data-status="held"] .stamp { color: var(--held); }
.row[data-status="refused"] .stamp { color: #f0675d; }
.row[data-status="private"] .stamp { color: var(--mist); }
.manifest-foot { margin-top: 0.75rem; color: var(--mist); font-size: var(--s-1); }

/* One orchestrated moment: rows arrive, then each is stamped. Pure CSS, so the rows always end visible. */
@keyframes arrive { from { opacity: 0; transform: translateY(8px); } }
@keyframes stamp { from { opacity: 0; transform: rotate(-4deg) scale(1.7); } }
@media (prefers-reduced-motion: no-preference) {
  .row:nth-child(1) { --i: 0; } .row:nth-child(2) { --i: 1; } .row:nth-child(3) { --i: 2; }
  .row:nth-child(4) { --i: 3; } .row:nth-child(5) { --i: 4; } .row:nth-child(6) { --i: 5; }
  .row { animation: arrive 0.4s ease both; animation-delay: calc(var(--i) * 0.5s + 0.3s); }
  .row .stamp { animation: stamp 0.25s cubic-bezier(0.2, 1.6, 0.4, 1) both; animation-delay: calc(var(--i) * 0.5s + 0.65s); }
}

/* Evidence strip */
.log { background: var(--paper-2); border-bottom: 1px solid #d3dbe6; }
.log-list { list-style: none; margin: 0; padding: 2rem 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.log-list li { color: var(--slate); font-size: 0.95rem; }
.log-list strong { display: block; color: var(--ink); font-size: var(--s3); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 0.35rem; }
.log-list a { font-size: var(--s-1); color: var(--slate); }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section h2 { font-size: var(--s4); line-height: 1.12; letter-spacing: -0.03em; }
.two-col { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.col-intro { position: sticky; top: 96px; }
.col-intro p { margin-top: 1rem; max-width: 44ch; color: var(--slate); }
.col-intro p.small { font-size: var(--s-1); }

/* The checks are a real sequence, so they are numbered. */
.steps { list-style: none; margin: 0 0 0 1rem; padding: 0; counter-reset: step; border-left: 2px solid var(--ink); }
.steps li { counter-increment: step; position: relative; padding: 0 0 2rem 2.25rem; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute; left: -1rem; top: -0.1rem;
  width: 2rem; height: 2rem;
  display: grid; place-items: center;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 50%;
  font-weight: 700; font-size: var(--s-1);
}
.steps h3 { font-size: var(--s1); line-height: 1.3; }
.steps p { margin-top: 0.35rem; color: var(--slate); max-width: 52ch; }
.out { display: inline-block; margin-top: 0.6rem; font-size: var(--s-1); font-weight: 600; padding-left: 0.9rem; position: relative; }
.out::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; }
.out.cleared { color: var(--cleared); }
.out.held { color: #a87a0a; }
.out.refused { color: var(--refused); }

/* Features: three lists, not a card grid. */
.features { background: var(--white); }
.feature-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); margin-top: 2.5rem; }
.group h3 { font-size: var(--s1); padding-bottom: 0.75rem; border-bottom: 3px solid var(--ink); }
.group dl { margin: 0; }
.group dt { font-weight: 600; margin-top: 1.25rem; }
.group dd { margin: 0.25rem 0 0; color: var(--slate); }

/* Gateway */
.gateway { background: var(--navy); color: var(--paper); }
.gateway .col-intro p { color: var(--paper-2); }
.gateway .col-intro p.small { color: var(--mist); }
.routes { border: 1px solid var(--navy-line); background: var(--navy-2); }
.route { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; padding: 0.95rem 1.25rem; border-bottom: 1px solid var(--navy-line); position: relative; }
.route:last-child { border-bottom: 0; }
.route.head { color: var(--mist); font-size: var(--s-1); padding-top: 0.75rem; padding-bottom: 0.75rem; }
.route code:first-child { color: var(--mist); }
.route code:last-child { color: var(--white); }
.route:not(.head) code:last-child::before { content: ""; display: inline-block; width: 0.55rem; height: 0.42rem; background: var(--flag); margin-right: 0.5rem; vertical-align: 0.1em; }

/* Comparison */
.table-scroll { overflow-x: auto; margin-top: 2rem; border: 1px solid #d3dbe6; background: var(--white); }
table { border-collapse: collapse; width: 100%; min-width: 760px; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--paper-2); vertical-align: top; }
thead th { font-weight: 600; color: var(--slate); font-size: var(--s-1); }
thead th:nth-child(2) { color: var(--ink); }
tbody th { font-weight: 500; }
td { color: var(--slate); }
td.yes { color: var(--ink); font-weight: 600; background: #fffbe6; }
thead th:nth-child(2) { background: #fff3b8; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

/* Pricing */
.pricing-head p { margin-top: 0.75rem; color: var(--slate); max-width: 60ch; }
.calc { margin-top: 2rem; padding: 1.25rem; background: var(--white); border: 1px solid #d3dbe6; max-width: 640px; }
.calc > label:first-child { font-weight: 600; }
.calc-row { display: flex; align-items: center; gap: 1rem; margin: 0.5rem 0 0.75rem; }
.calc input[type="range"] { flex: 1; accent-color: var(--ink); min-height: 32px; }
.calc output { font-family: var(--mono); font-size: var(--s2); font-weight: 600; min-width: 3ch; text-align: right; }
.check { display: inline-flex; gap: 0.5rem; align-items: center; color: var(--slate); }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 2rem; border: 1px solid #d3dbe6; background: var(--white); }
.plan { padding: 1.75rem; display: flex; flex-direction: column; border-right: 1px solid #d3dbe6; position: relative; }
.plan:last-child { border-right: 0; }
.plan h3 { font-size: var(--s1); }
.price { margin-top: 0.75rem; color: var(--slate); }
.price .amount { font-size: var(--s4); font-weight: 650; letter-spacing: -0.04em; color: var(--ink); margin-right: 0.2rem; }
.for { margin-top: 0.5rem; color: var(--slate); min-height: 3.1em; }
.plan ul { list-style: none; padding: 0; margin: 1.25rem 0; }
.plan li { padding: 0.35rem 0 0.35rem 1.4rem; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 0.65rem; height: 2px; background: var(--ink); }
.total { margin-top: auto; padding: 0.9rem 0 1.1rem; border-top: 1px dashed #d3dbe6; font-variant-numeric: tabular-nums; min-height: 3.2em; color: var(--slate); }
.total strong { color: var(--ink); font-size: var(--s1); }
.plan .btn { align-self: flex-start; color: var(--ink); }
.plan .btn-line:hover { background: var(--paper); }
.plan.fits { background: #fffbe6; box-shadow: inset 0 6px 0 var(--flag); }
.plan.fits .btn-line { background: var(--flag); border-color: var(--flag); }
.plan.unavailable .total { color: var(--slate); }
.addon { margin-top: 1.25rem; color: var(--slate); max-width: 70ch; }
.addon strong { color: var(--ink); }

/* FAQ */
.faq { background: var(--paper); }
.pricing { background: var(--white); }
.pricing .calc { background: var(--paper); }
.faq h2 { margin-bottom: 1.5rem; }
details { border-top: 1px solid var(--paper-2); }
details:last-of-type { border-bottom: 1px solid var(--paper-2); }
summary { cursor: pointer; list-style: none; padding: 1.1rem 2rem 1.1rem 0; font-weight: 600; font-size: 1.05rem; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.95rem; font-size: 1.4rem; font-weight: 400; color: var(--slate); }
details[open] summary::after { content: "−"; }
details p { padding: 0 0 1.25rem; color: var(--slate); max-width: var(--measure); }

/* Start */
.start { background: var(--navy); color: var(--paper); }
.start p { margin-top: 0.75rem; color: var(--paper-2); }
.start .small { color: var(--mist); }
.cmd { margin: 1.75rem 0 1.25rem; background: var(--navy-2); border: 1px solid var(--navy-line); border-left: 6px solid var(--flag); padding: 1.25rem; }
.cmd pre { margin: 0 0 1rem; overflow-x: auto; color: var(--white); line-height: 1.6; }

/* Footer */
.foot { background: var(--navy); color: var(--mist); border-top: 1px solid var(--navy-line); padding: 2rem 0 2.5rem; }
.foot-row { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 2rem; align-items: baseline; }
.foot .brand { color: var(--paper); font-size: var(--s0); }
.foot .small { grid-column: 2; color: var(--slate); }

/* Narrow screens */
@media (max-width: 960px) {
  .hero-grid, .two-col { grid-template-columns: 1fr; }
  .col-intro { position: static; }
  .feature-groups { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .plan { border-right: 0; border-bottom: 1px solid #d3dbe6; }
  .plan:last-child { border-bottom: 0; }
  .top nav { display: none; }
  .top .btn { margin-left: auto; }
}
@media (max-width: 640px) {
  .log-list { grid-template-columns: 1fr; gap: 1.25rem; }
  .row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "reg stamp" "pkg stamp" "why why"; }
  .foot-row { grid-template-columns: 1fr; }
  .foot .small { grid-column: 1; }
}
