/* UK Innovator Founder Visa — passport booklet layout (hero + tabs + sections; site nav/footer used) */
.inv {
  --bg: #f5f6f2;
  --paper: #ffffff;
  --ink: #14221f;
  --muted: #5b6a65;
  --line: #dde3dd;
  --cover: #1d4a40;
  --cover-ink: #eef3ef;
  --brass: #a5762a;
  --brass-soft: #f4ead8;
  --ok: #2f7a4f;
  --ok-bg: #e3f2e8;
  --warn: #9a6212;
  --warn-bg: #fbf0dc;
  --bad: #a3392f;
  --bad-bg: #f8e3e0;
  --display: "Bodoni Moda", "Didot", Georgia, serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
}

@media (prefers-color-scheme: dark) {
  .inv {
    --bg: #0f1715;
    --paper: #16211e;
    --ink: #e6ece8;
    --muted: #9aaba4;
    --line: #29372f;
    --cover: #123129;
    --cover-ink: #e6efe9;
    --brass: #d3a656;
    --brass-soft: #2c2618;
    --ok: #7fcf9c;
    --ok-bg: #173126;
    --warn: #e3b166;
    --warn-bg: #33270f;
    --bad: #ec8d82;
    --bad-bg: #3a1a17;
  }
}

.inv a { color: inherit; }
.inv .wrap { max-width: 1160px; margin: 0 auto; padding-inline: 20px; }
.inv h1,
.inv h2,
.inv h3 {
  font-family: var(--display);
  font-weight: 500;
  text-wrap: balance;
  line-height: 1.15;
  margin: 0;
}
.inv h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
.inv h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.inv h3 { font-size: 1.25rem; }
.inv p { margin: 0; }
.inv .eyebrow {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brass);
}
.inv .muted { color: var(--muted); }
.inv :focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.inv .hero { background: var(--cover); color: var(--cover-ink); padding-block: 44px 0; }
.inv .hero .grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: end; }
.inv .lead { font-size: 1.08rem; max-width: 58ch; opacity: .9; margin-top: 16px; }
.inv .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.inv .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  font-family: var(--body);
  font-size: .95rem;
  line-height: 1.2;
}
.inv .btn.gold { background: var(--brass); color: #1b1408 !important; }
.inv .btn.gold:hover { background: #c4923d; color: #1b1408 !important; }
.inv .btn.ghost { border-color: currentColor; background: transparent; color: inherit !important; }
.inv .btn.ghost:hover { background: rgba(255, 255, 255, .08); color: inherit !important; }
.inv .btn.ink { background: var(--cover); color: var(--cover-ink) !important; }
.inv .btn.ink:hover { background: #163c34; color: var(--cover-ink) !important; }
.inv .stamp {
  border: 1.5px solid rgba(255, 255, 255, .25);
  border-radius: 10px;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.inv .stamp b {
  display: block;
  font-family: var(--display);
  font-size: 1.8rem;
  color: var(--brass);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.inv .stamp span { font-size: .8rem; opacity: .8; }
.inv .mrz {
  margin-top: 40px;
  background: rgba(0, 0, 0, .18);
  font-family: var(--mono);
  font-size: clamp(.6rem, 1.4vw, .88rem);
  letter-spacing: .18em;
  padding: 14px 20px;
  overflow-x: auto;
  white-space: nowrap;
  color: rgba(238, 243, 239, .75);
}

.inv .tabs { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: var(--header-h, 72px); z-index: 15; }
.inv .tabs .wrap { display: flex; gap: 2px; overflow-x: auto; }
.inv .tabs a {
  text-decoration: none;
  padding: 14px 14px;
  font-size: .92rem;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  color: var(--muted);
}
.inv .tabs a.on { color: var(--ink); border-color: var(--brass); font-weight: 600; }

.inv section.block { padding-block: 52px; }
.inv .head { margin-bottom: 26px; }
.inv .head p { color: var(--muted); max-width: 64ch; margin-top: 8px; }
.inv .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.inv .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.inv .grid2 > *,
.inv .grid3 > * { min-width: 0; }
.inv .card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.inv .card h3 { margin-bottom: 8px; }
.inv .card p { color: var(--muted); font-size: .95rem; }
.inv ul.ticks { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: .95rem; }
.inv ul.ticks li { padding-left: 20px; position: relative; }
.inv ul.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--brass);
}
.inv .points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper);
}
.inv .points div { padding: 20px; border-right: 1px solid var(--line); }
.inv .points div:last-child { border-right: 0; }
.inv .points b {
  font-family: var(--display);
  font-size: 2.2rem;
  color: var(--brass);
  display: block;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.inv .pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.inv .pillar {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  border-top: 3px solid var(--brass);
}
.inv .notice {
  border: 1px solid var(--warn);
  background: var(--warn-bg);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: .93rem;
}
.inv .notice strong { color: var(--warn); }

.inv .tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.inv table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: .93rem; }
.inv th {
  text-align: left;
  font-family: var(--mono);
  font-weight: 500;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.inv td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.inv tr:last-child td { border-bottom: 0; }
.inv .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.inv tfoot td { font-weight: 700; border-top: 2px solid var(--line); }

.inv .timeline { display: grid; gap: 0; border-left: 2px solid var(--line); margin-left: 10px; }
.inv .stage { position: relative; padding: 0 0 26px 30px; }
.inv .stage::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--brass);
}
.inv .stage .when { font-family: var(--mono); font-size: .75rem; color: var(--brass); letter-spacing: .06em; }
.inv .stage h3 { margin: 2px 0 6px; }
.inv .stage p { color: var(--muted); font-size: .95rem; max-width: 70ch; }
.inv .tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--brass-soft);
  color: var(--brass);
  margin-left: 8px;
  vertical-align: middle;
}

.inv .plan { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.inv .inst {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.inv .inst .amt {
  font-family: var(--display);
  font-size: 2.6rem;
  color: var(--brass);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.inv .inst .due { font-size: .9rem; font-weight: 600; }
.inv .total {
  margin-top: 18px;
  background: var(--cover);
  color: var(--cover-ink);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.inv .total b {
  font-family: var(--display);
  font-size: 2rem;
  color: var(--brass);
  font-weight: 500;
}

.inv .calc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.inv label { display: grid; gap: 6px; font-size: .85rem; color: var(--muted); }
.inv input,
.inv select,
.inv textarea {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  width: 100%;
}
.inv textarea { min-height: 96px; resize: vertical; }
.inv fieldset {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  margin: 0;
  background: var(--paper);
}
.inv legend { font-family: var(--display); font-size: 1.15rem; padding: 0 8px; }
.inv .fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.inv .fgrid .full { grid-column: 1 / -1; }
.inv .q { display: grid; gap: 8px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.inv .q:last-child { border-bottom: 0; }
.inv .q .lbl { font-size: .95rem; color: var(--ink); font-weight: 500; }
.inv .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.inv .opts label {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--ink);
  cursor: pointer;
  font-size: .88rem;
}
.inv .opts input { width: auto; margin: 0; }
.inv .opts label:has(input:checked) {
  background: var(--cover);
  color: var(--cover-ink);
  border-color: var(--cover);
}
.inv .check { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-size: .9rem; }
.inv .check input { width: auto; margin-top: 5px; }
.inv .formwrap { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.inv .formwrap > * { min-width: 0; }
.inv .result {
  position: sticky;
  top: calc(var(--header-h, 72px) + 70px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  display: grid;
  gap: 14px;
}
.inv .meter { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; }
.inv .meter i { display: block; height: 100%; background: var(--brass); width: 0; transition: width .3s; }
.inv .score {
  font-family: var(--display);
  font-size: 2.6rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.inv .band {
  display: inline-block;
  font-weight: 700;
  font-size: .82rem;
  padding: 4px 10px;
  border-radius: 999px;
}
.inv .band.ok { background: var(--ok-bg); color: var(--ok); }
.inv .band.warn { background: var(--warn-bg); color: var(--warn); }
.inv .band.bad { background: var(--bad-bg); color: var(--bad); }
.inv .brk { display: grid; gap: 6px; font-size: .86rem; }
.inv .brk div { display: flex; justify-content: space-between; gap: 10px; }
.inv .okmsg { background: var(--ok-bg); color: var(--ok); border-radius: 8px; padding: 12px 14px; font-size: .92rem; }
.inv .errmsg { background: var(--bad-bg); color: var(--bad); border-radius: 8px; padding: 12px 14px; font-size: .92rem; }
.inv .hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.inv pre.summary {
  white-space: pre-wrap;
  font-family: var(--mono);
  font-size: .8rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  max-height: 260px;
  overflow: auto;
  margin: 0;
}
.inv details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.inv summary { cursor: pointer; font-weight: 600; }
.inv details p { color: var(--muted); margin-top: 8px; max-width: 75ch; }
.inv .disc {
  font-size: .8rem;
  opacity: .75;
  margin: 0;
  max-width: 110ch;
  padding: 28px 0 40px;
  color: var(--muted);
}

html:has(.inv) { scroll-padding-top: 160px; }
.inv #inv-app { scroll-margin-top: 160px; }

@media (max-width: 900px) {
  .inv .hero .grid,
  .inv .grid2,
  .inv .grid3,
  .inv .pillars,
  .inv .plan,
  .inv .formwrap { grid-template-columns: 1fr; }
  .inv .points { grid-template-columns: 1fr; }
  .inv .points div { border-right: 0; border-bottom: 1px solid var(--line); }
  .inv .points div:last-child { border-bottom: 0; }
  .inv .calc { grid-template-columns: 1fr 1fr; }
  .inv .result { position: static; }
}
@media (max-width: 520px) {
  .inv .fgrid,
  .inv .calc { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .inv * { transition: none !important; }
}
