/* NEO Product Passport — one look, light and dark, no font or asset loaded from anywhere. */

:root {
  --paper: #f7f6f3;
  --paper-2: #ffffff;
  --ink: #14181f;
  --ink-2: #4a5462;
  --ink-3: #78828f;
  --navy: #1b2a4a;
  --navy-2: #24365d;
  --navy-ink: #e9eaee;
  --gold: #8c6a2f;
  --gold-2: #d9b06a;
  --line: #e0ddd6;
  --line-2: #cfcabf;
  --good: #2f6b46;
  --hold: #8a6d1f;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --w: 1180px;
  --r: 14px;
  --shadow: 0 1px 2px rgba(20, 24, 31, .05), 0 12px 32px -12px rgba(20, 24, 31, .18);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #101319;
    --paper-2: #171b23;
    --ink: #e9eaee;
    --ink-2: #aeb6c2;
    --ink-3: #828b98;
    --navy: #0d1424;
    --navy-2: #16203a;
    --line: #262c38;
    --line-2: #333b49;
    --gold: #d9b06a;
    --good: #5fbf8b;
    --hold: #d9b06a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -16px rgba(0, 0, 0, .7);
  }
}

:root[data-theme="dark"] {
  --paper: #101319;
  --paper-2: #171b23;
  --ink: #e9eaee;
  --ink-2: #aeb6c2;
  --ink-3: #828b98;
  --navy: #0d1424;
  --navy-2: #16203a;
  --line: #262c38;
  --line-2: #333b49;
  --gold: #d9b06a;
  --good: #5fbf8b;
  --hold: #d9b06a;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.62 var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.012em; margin: 0; }
p { margin: 0 0 1em; }
em { font-style: italic; color: var(--gold); }

/* ---------- header ---------- */

.site {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  max-width: var(--w); margin: 0 auto; padding: 22px 16px 10px;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }

.brand-mark {
  width: 26px; height: 26px; border-radius: 7px; background: var(--navy);
  position: relative; flex: none;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 7px 6px;
  background:
    linear-gradient(var(--gold-2), var(--gold-2)) top left / 100% 2.5px no-repeat,
    linear-gradient(var(--gold-2), var(--gold-2)) center left / 100% 2.5px no-repeat,
    linear-gradient(var(--gold-2), var(--gold-2)) bottom left / 62% 2.5px no-repeat;
}

.brand-name { font-family: var(--serif); font-size: 17px; letter-spacing: .01em; }
.brand-name strong { font-weight: 600; }

.products { display: flex; gap: 6px; flex-wrap: wrap; }

.products button {
  font: 500 13px/1 var(--sans); color: var(--ink-2);
  background: none; border: 1px solid transparent; border-radius: 999px;
  padding: 8px 13px; cursor: pointer; transition: .16s;
}
.products button:hover { color: var(--ink); background: var(--paper-2); }
.products button[aria-pressed="true"] {
  color: var(--ink); background: var(--paper-2); border-color: var(--line-2);
  box-shadow: 0 1px 2px rgba(20, 24, 31, .06);
}

/* ---------- hero ---------- */

.hero {
  max-width: var(--w); margin: 0 auto; padding: 36px 16px 20px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 56px; align-items: center;
}

.kicker {
  font: 600 11.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 18px;
}

h1 { font-size: clamp(32px, 4.3vw, 54px); line-height: 1.08; margin: 0 0 20px; }

.lead { font-size: 17.5px; line-height: 1.66; color: var(--ink-2); max-width: 46ch; }
.lead strong { color: var(--ink); font-weight: 600; }

.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }

.btn {
  font: 500 14px/1 var(--sans); color: var(--ink);
  background: var(--paper-2); border: 1px solid var(--line-2); border-radius: 999px;
  padding: 11px 18px; cursor: pointer; transition: .16s;
}
.btn:hover { border-color: var(--ink-3); transform: translateY(-1px); }
.btn.primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn.primary:hover { background: var(--navy-2); }
.btn.tiny { padding: 7px 12px; font-size: 12.5px; }

/* ---------- the passport card ---------- */

.hero-card { display: grid; gap: 14px; }

.passport {
  background: linear-gradient(168deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--navy-ink); border-radius: var(--r); padding: 26px 26px 22px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.passport::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-2), var(--gold) 60%, transparent);
}

.pp-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.pp-kind { font: 600 10.5px/1 var(--sans); letter-spacing: .15em; text-transform: uppercase; color: var(--gold-2); }
.pp-name { font-family: var(--serif); font-size: 25px; line-height: 1.16; margin: 7px 0 4px; color: #fff; }
.pp-model { font: 400 13px/1.4 var(--mono); color: #9fb0cd; }
.pp-art { width: 74px; height: 74px; flex: none; opacity: .92; }

.pp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: rgba(255, 255, 255, .08); border-radius: 9px; overflow: hidden; }
.pp-cell { background: rgba(255, 255, 255, .035); padding: 11px 13px; min-height: 60px; }
.pp-cell dt { font: 500 10.5px/1.3 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: #93a3bf; margin-bottom: 4px; }
.pp-cell dd { margin: 0; font-size: 14.5px; line-height: 1.35; color: #fff; }
.pp-cell dd .unit { color: #9fb0cd; font-size: 12.5px; margin-left: 3px; }

.pp-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; font: 400 11.5px/1.5 var(--mono); color: #8fa0bd; flex-wrap: wrap; }
.pp-foot .root { color: var(--gold-2); }

/* ---------- carrier ---------- */

.carrier {
  grid-column: 1 / -1; margin-top: 8px;
  display: flex; gap: 28px; align-items: center;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 24px;
}
.carrier-qr { flex: none; }
.carrier-text { max-width: 52ch; }
.carrier-title { font-size: 19px !important; font-family: var(--serif); }
.carrier-note { font-size: 14.5px !important; }
.carrier-qr svg { width: 100%; height: 100%; display: block; }
.carrier-title { font: 600 14px/1.3 var(--sans); margin: 0 0 4px; }
.carrier-note { font-size: 12.5px; line-height: 1.5; color: var(--ink-2); margin: 0 0 9px; }
.carrier-note code { font: 400 11.5px var(--mono); color: var(--ink); }

/* When the code carries only the seal, the note under it is doing more work than usual. */
body[data-carrier="pointer"] .carrier-note { color: var(--ink); }
body[data-carrier="pointer"] .carrier-note code { background: rgba(217, 176, 106, .18); padding: 1px 4px; border-radius: 3px; }

/* The two roots, side by side. The whole claim of a resolved passport is that they match. */
.hero-roots {
  display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 14px 0 0; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 7px; background: var(--paper-2);
}
.hero-roots span { display: flex; flex-direction: column; gap: 2px; }
.hero-roots b { font: 600 10.5px/1 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.hero-roots code { font: 400 12px/1.4 var(--mono); color: var(--ink); word-break: break-all; }

/* A scanned unit leads with the passport, not with the argument for having one. */
body[data-scanned="true"] .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); }
body[data-scanned="true"] .hero-card { order: -1; }
body[data-scanned="true"] .hero-copy h1 { font-size: clamp(28px, 3.4vw, 42px); }

@media (max-width: 900px) {
  body[data-scanned="true"] .hero { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- bands ---------- */

.band { max-width: var(--w); margin: 0 auto; padding: 60px 16px 10px; }
.band-head { max-width: 62ch; margin-bottom: 26px; }
.band-head h2 { font-size: clamp(24px, 2.7vw, 34px); margin-bottom: 12px; }
.band-head p { color: var(--ink-2); font-size: 16px; }

/* ---------- roles ---------- */

.role-tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 0; }

.role-tabs button {
  font: 500 14px/1 var(--sans); color: var(--ink-2); background: none;
  border: 1px solid transparent; border-bottom: none; border-radius: 10px 10px 0 0;
  padding: 12px 16px; cursor: pointer; position: relative; top: 1px; transition: .16s;
}
.role-tabs button:hover { color: var(--ink); }
.role-tabs button[aria-selected="true"] {
  color: var(--ink); background: var(--paper-2);
  border-color: var(--line); border-bottom: 1px solid var(--paper-2);
}
.role-tabs .count { color: var(--ink-3); font-size: 12px; margin-left: 6px; }

.role-blurb { color: var(--ink-2); font-size: 15px; margin: 16px 0 22px; max-width: 60ch; }

.field-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 26px; align-items: start; }

.fields { display: grid; gap: 22px; }

.group h3 {
  font: 600 11px/1 var(--sans); letter-spacing: .15em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
}

.row {
  display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr); gap: 14px;
  padding: 11px 12px; border: 1px solid transparent; border-radius: 10px;
  cursor: pointer; transition: .12s; align-items: baseline;
}
.row + .row { border-top: 1px solid var(--line); border-radius: 10px; }
.row:hover { background: var(--paper-2); border-color: var(--line); }
.row[aria-current="true"] { background: var(--paper-2); border-color: var(--gold); }
.row dt { color: var(--ink-2); font-size: 14px; }
.row dd { margin: 0; font-size: 15px; color: var(--ink); }
.row dd.mono { font-family: var(--mono); font-size: 13px; }
.row .by { display: block; font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.row .unit { color: var(--ink-3); font-size: 13px; margin-left: 3px; }

.side { display: grid; gap: 16px; position: sticky; top: 16px; }

.withheld, .provenance {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); padding: 18px;
}
.withheld h3, .provenance h3 { font-size: 16px; margin-bottom: 8px; }
.withheld p, .provenance p { font-size: 13.5px; color: var(--ink-2); margin-bottom: 10px; }
.withheld ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.withheld li { font-size: 13px; color: var(--ink-2); padding-left: 16px; position: relative; }
.withheld li::before { content: "—"; position: absolute; left: 0; color: var(--ink-3); }

.prov-line { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 10px; font-size: 13.5px; padding: 6px 0; border-top: 1px solid var(--line); }
.prov-line:first-of-type { border-top: none; }
.prov-line span:first-child { color: var(--ink-3); }
.prov-line code { font: 400 12px/1.5 var(--mono); word-break: break-all; }

.verdict { display: flex; align-items: center; gap: 8px; font-size: 13.5px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); flex: none; }
.verdict strong { font-weight: 600; }

.path { display: grid; gap: 3px; margin-top: 8px; }
.path div { font: 400 11.5px/1.5 var(--mono); color: var(--ink-3); display: flex; gap: 8px; }
.path div b { color: var(--ink-2); font-weight: 500; flex: none; width: 3.4em; }

/* ---------- proof ---------- */

.proof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stat { background: var(--paper-2); padding: 18px; }
.stat .n { font-family: var(--serif); font-size: 27px; line-height: 1.1; display: block; }
.stat .n small { font-size: 14px; color: var(--ink-3); font-family: var(--sans); }
.stat .k { font: 500 11px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-top: 7px; display: block; }
.stat .d { font-size: 12.5px; color: var(--ink-2); margin-top: 7px; line-height: 1.5; }

.invariants { margin-top: 26px; border-left: 2px solid var(--gold); padding-left: 18px; }
.invariants h3 { font-size: 15px; margin-bottom: 8px; }
.invariants ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.invariants li { font-size: 14px; color: var(--ink-2); }
.invariants b { color: var(--ink); font-weight: 600; }

/* ---------- edge ---------- */

.edge-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.edge-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.edge-card h3 { font-size: 17px; margin-bottom: 8px; }
.edge-card p { font-size: 14px; color: var(--ink-2); margin: 0; }
.edge-card .tag { font: 600 10.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 10px; }

/* ---------- footer ---------- */

.site-foot {
  max-width: var(--w); margin: 60px auto 0; padding: 22px 16px 40px;
  border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px;
  font-size: 12.5px; color: var(--ink-3); flex-wrap: wrap;
}
.site-foot p { margin: 0; }
#release-line { font-family: var(--mono); font-size: 11.5px; }

/* ---------- narrow ---------- */

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 24px; }
  .field-layout { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
  .pp-grid { grid-template-columns: minmax(0, 1fr); }
  .row { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .row dt { font-size: 12.5px; }
}

@media (max-width: 620px) {
  .hero-copy h1 br { display: none; }
}

@media (max-width: 540px) {
  .carrier { flex-direction: column; align-items: flex-start; }

  .site { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}

/* ---------- the fixed date ---------- */

.countdown {
  margin: 18px 0 0; padding-left: 14px; border-left: 2px solid var(--gold);
  font-size: 13.5px; line-height: 1.6; color: var(--ink-2); max-width: 52ch;
}
.countdown b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

.carrier-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- the printed card ---------- */
/*
 * A code on a screen is a demonstration; a code on a card is what a data carrier actually is.
 * Two cards to an A4 sheet puts the symbol at 90 mm — wide enough that a phone reads it off
 * paper in room light, with the cut line down the middle.
 */

.print-sheet { display: none; }

@media print {
  @page { size: A4 portrait; margin: 12mm; }

  body { background: #fff; color: #000; }
  body > *:not(.print-sheet) { display: none !important; }

  .print-sheet {
    display: grid; grid-template-rows: 1fr 1fr; gap: 10mm; height: 273mm;
  }

  .print-card {
    break-inside: avoid; border: 0.3mm dashed #999; border-radius: 3mm; padding: 8mm;
    display: grid; grid-template-columns: 90mm 1fr; gap: 10mm; align-items: center;
  }

  .print-code { width: 90mm; height: 90mm; }
  .print-code svg { width: 100%; height: 100%; display: block; }

  .print-text { color: #000; }
  .print-kind {
    font: 600 8pt/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
    color: #6b5420; margin: 0 0 3mm;
  }
  .print-text h2 { font-family: var(--serif); font-size: 20pt; line-height: 1.12; margin: 0 0 2mm; }
  .print-model { font: 400 9pt/1.4 var(--mono); color: #444; margin: 0 0 5mm; }
  .print-line { font: 400 10.5pt/1.5 var(--sans); margin: 0 0 5mm; max-width: 60mm; }
  .print-foot { font: 400 7.5pt/1.5 var(--mono); color: #666; margin: 0; }
}

/* A field the law names but does not yet require: present, named, and plainly not filled in.
   Every competitor's mock-up shows a passport where every line is green. A real one is not. */
.row.waiting { cursor: default; opacity: .72; }
.row.waiting:hover { background: none; border-color: transparent; }
.not-yet {
  font: 500 11px/1 var(--sans); letter-spacing: .07em; text-transform: uppercase;
  color: var(--hold); border: 1px solid currentColor; border-radius: 999px; padding: 4px 8px;
  display: inline-block;
}
