/* ZeroPass site: Home and Schematics.
   Colours and the Oxanium font follow the app (its sepia and dim themes). */

@font-face {
  font-family: "Oxanium";
  src: url("../fonts/Oxanium-wght.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --paper: #f6f1e9;
  --paper-2: #ede5d9;
  --card: #fffaf2;
  --line: #dccfc0;
  --ink: #2f2620;
  --ink-2: #5f5044;
  --muted: #8f7f71;
  --brand: #7d685a;
  --brand-2: #67544c;
  --deep: #3a2f29;
  --on-deep: #f3ebe0;
  --yellow: #d79921;
  --orange: #e0701a;
  --red: #d8402f;
  --green: #8f9a1f;
  --aqua: #5f8f80;
  --pink: #c0708a;
  --part: #c98b5e;
  --code: #5f8f80;
  --sign: #c0708a;
  --shadow: 0 1px 2px rgba(58, 47, 41, .08), 0 8px 24px rgba(58, 47, 41, .08);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1f1b18;
    --paper-2: #27221e;
    --card: #2c2622;
    --line: #453b34;
    --ink: #efe6da;
    --ink-2: #cbbdad;
    --muted: #9c8c7d;
    --brand: #b59a86;
    --brand-2: #9a8172;
    --deep: #151210;
    --on-deep: #efe6da;
    --yellow: #fabd2f;
    --orange: #fe8019;
    --red: #fb4934;
    --green: #b8bb26;
    --aqua: #83a598;
    --pink: #d3869b;
    --part: #e0a070;
    --code: #83a598;
    --sign: #d3869b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Oxanium", "Ubuntu", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 600; text-wrap: balance; }
h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.01em; }
h3 { font-size: 21px; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  color: #fff;
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.nav .wrap { display: flex; align-items: center; gap: 8px; height: 64px; }
.nav.solid {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: 14px; color: inherit; text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: .01em; }
.brand img { width: 26px; height: 31px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  opacity: .86;
}
.nav-links a:hover { opacity: 1; background: color-mix(in srgb, currentColor 12%, transparent); }
.nav-links a[aria-current="page"] { opacity: 1; background: color-mix(in srgb, currentColor 16%, transparent); }
.nav .spacer { flex: 1; }
.nav .hint { font-size: 14px; opacity: .8; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s, background-color .2s, box-shadow .2s;
}
.btn:hover { background: var(--brand-2); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn.light { background: #fff; color: #3a2f29; }
.btn.light:hover { background: #f1e8dc; color: #3a2f29; }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, currentColor 55%, transparent); }
.btn.ghost:hover { background: color-mix(in srgb, currentColor 12%, transparent); color: inherit; }
.btn.small { min-height: 38px; padding: 0 18px; font-size: 15px; }
.btn .ico { font-size: 20px; }

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

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(100vh, 860px);
  padding: 110px 0 80px;
  overflow: hidden;
  background: #4a433d url("../images/hero.svg") center / cover no-repeat;
  color: #fff;
  text-align: center;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 62% 58% at 50% 48%, rgba(38, 30, 25, .86), rgba(38, 30, 25, .5) 62%, rgba(38, 30, 25, .28)),
    linear-gradient(rgba(38, 30, 25, .5), transparent 22%, transparent 70%, rgba(38, 30, 25, .6));
}
.hero .shield { width: 104px; height: auto; filter: drop-shadow(0 8px 22px rgba(0, 0, 0, .45)); }
.hero .wordmark { display: block; width: min(430px, 76vw); height: auto; margin: 18px auto 26px; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .5)); }
.hero h1 { font-size: clamp(32px, 5vw, 58px); font-weight: 700; letter-spacing: -.015em; text-shadow: 0 2px 18px rgba(0, 0, 0, .55); }
.hero .lead { max-width: 660px; margin: 20px auto 30px; font-size: clamp(17px, 1.7vw, 21px); color: #f1e8dc; text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
.hero .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 34px 0 0; padding: 0; list-style: none; font-size: 14px; }
.chips li { display: flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px; background: rgba(255, 255, 255, .13); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.chips .ico { font-size: 16px; }

.hero.small { min-height: 0; padding: 124px 0 54px; }
.hero.small h1 { font-size: clamp(34px, 5vw, 52px); }
.hero.small .lead { margin-bottom: 0; }

/* ---------- sections ---------- */

section { padding: 84px 0; }
section.tint { background: var(--paper-2); }
.eyebrow { margin: 0 0 10px; color: var(--brand); font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.intro { max-width: 720px; margin: 14px 0 0; color: var(--ink-2); font-size: 19px; }
.center { text-align: center; }
.center .intro { margin-inline: auto; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.split.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split .art { display: grid; place-items: center; }
.split .art svg { width: min(100%, 420px); height: auto; }
.split p { color: var(--ink-2); }

.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 44px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 44px; }

.card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--ink-2); font-size: 16px; }
.card p + p { margin-top: .7em; }
.card .pic { display: block; width: 100%; height: auto; margin-bottom: 18px; }
.card .tag { display: inline-block; margin-bottom: 12px; padding: 3px 11px; border-radius: 999px; background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--brand); font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.card .tag.two { background: color-mix(in srgb, var(--orange) 18%, transparent); color: var(--orange); }

.step .num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}

.bunker {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
  margin-top: 22px;
  padding: 26px 30px;
  border-radius: 22px;
  background: var(--deep);
  color: var(--on-deep);
}
.bunker .ico { font-size: 46px; color: var(--yellow); }
.bunker h3 { margin-bottom: 6px; }
.bunker p { margin: 0; color: color-mix(in srgb, var(--on-deep) 82%, transparent); font-size: 16px; }

.facts { display: grid; gap: 14px; margin: 26px 0 0; padding: 0; list-style: none; }
.facts li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; color: var(--ink-2); }
.facts .ico { margin-top: 2px; font-size: 24px; color: var(--brand); }
.facts b { color: var(--ink); font-weight: 600; }

/* ---------- platforms ---------- */

.dark { background: var(--deep); color: var(--on-deep); }
.dark .eyebrow { color: #c9b39c; }
.dark .intro { color: color-mix(in srgb, var(--on-deep) 80%, transparent); }
.plat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 42px; }
.plat > div { padding: 24px; border-radius: 20px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09); text-align: left; }
.plat h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 18px; }
.plat h3 .ico { font-size: 24px; color: #c9b39c; }
.plat ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; font-size: 16px; }
.plat li { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plat em { padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-style: normal; font-weight: 600; letter-spacing: .04em; white-space: nowrap; }
.plat .now { background: rgba(184, 187, 38, .2); color: #d5d95a; }
.plat .later { background: rgba(255, 255, 255, .09); color: rgba(243, 235, 224, .62); }

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

footer { padding: 56px 0 40px; background: var(--brand-2); color: #fff; }
@media (prefers-color-scheme: dark) { footer { background: #2c2420; } }
footer .quote { margin: 0 0 34px; font-size: clamp(20px, 2.4vw, 27px); font-weight: 600; text-align: center; }
footer .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .2); }
footer .copy { margin: 0; font-size: 15px; opacity: .8; }
.social { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.social a { display: flex; align-items: center; gap: 9px; padding: 9px 15px; border-radius: 999px; color: #fff; text-decoration: none; font-weight: 500; }
.social a:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.social svg { width: 22px; height: 22px; fill: currentColor; }

/* ---------- schematics ---------- */

.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 30px; padding: 6px; border-radius: 20px; background: var(--paper-2); }
.tabs button {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.tabs button:hover { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.panel { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px; align-items: start; }
.panel[hidden] { display: none; }
.panel .text h2 { margin-bottom: 16px; font-size: clamp(26px, 2.8vw, 34px); }
.panel .text p, .panel .text li { color: var(--ink-2); font-size: 16.5px; }
.panel .text ul, .panel .text ol { margin: 0 0 1em; padding-left: 1.2em; }
.panel .text li { margin-bottom: .45em; }
.panel .text b { color: var(--ink); font-weight: 600; }
.panel figure { position: sticky; top: 84px; margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); box-shadow: var(--shadow); }
.panel figure svg { display: block; width: 100%; height: auto; }

/* The drawings: everything takes its colour from the page's variables. */
.dg { font-family: "Oxanium", "Ubuntu", sans-serif; font-size: 15px; fill: var(--ink); }
.dg .t-h { font-size: 17px; font-weight: 700; }
.dg .t-s { font-size: 13px; fill: var(--ink-2); }
.dg .t-x { font-size: 12px; fill: var(--muted); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.dg .t-w { fill: #fff; font-weight: 600; }
.dg .mid { text-anchor: middle; }
.dg .end { text-anchor: end; }
.dg .box { fill: var(--paper); stroke: var(--line); stroke-width: 1.5; }
.dg .box2 { fill: var(--paper-2); stroke: none; }
.dg .deep { fill: var(--deep); }
.dg .on-deep { fill: var(--on-deep); }
.dg .on-deep-2 { fill: var(--on-deep); opacity: .7; font-size: 13px; }
.dg .ic { fill: none; stroke: var(--brand); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.dg .ic-w { fill: none; stroke: var(--on-deep); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.dg .ln { fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; }
.dg .ln-d { fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-dasharray: 2 7; stroke-linecap: round; }
.dg .ln-p { fill: none; stroke: var(--part); stroke-width: 2.6; stroke-linecap: round; }
.dg .ln-c { fill: none; stroke: var(--code); stroke-width: 2.6; stroke-linecap: round; }
.dg .ln-s { fill: none; stroke: var(--sign); stroke-width: 2.6; stroke-linecap: round; }
.dg .ln-r { fill: none; stroke: var(--red); stroke-width: 2.6; stroke-linecap: round; }
.dg .f-p { fill: var(--part); }
.dg .f-c { fill: var(--code); }
.dg .f-s { fill: var(--sign); }
.dg .f-y { fill: var(--yellow); }
.dg .f-r { fill: var(--red); }
.dg .f-g { fill: var(--green); }
.dg .f-b { fill: var(--brand); }
.dg .f-m { fill: var(--muted); }
.dg .ring { fill: var(--card); stroke: var(--part); stroke-width: 2.4; }
.dg .ring-c { fill: var(--card); stroke: var(--code); stroke-width: 2.4; }
.dg .ring-s { fill: var(--card); stroke: var(--sign); stroke-width: 2.4; }
.dg .ring-0 { fill: none; stroke: var(--line); stroke-width: 2; stroke-dasharray: 4 5; }
.dg .no { stroke: var(--red); stroke-width: 3; stroke-linecap: round; fill: none; }

.more { margin-top: 70px; padding: 34px; border-radius: 22px; background: var(--paper-2); text-align: center; }
.more p { max-width: 640px; margin: 0 auto 20px; color: var(--ink-2); }

/* ---------- small screens ---------- */

@media (max-width: 900px) {
  section { padding: 60px 0; }
  .split, .split.flip, .panel { grid-template-columns: 1fr; gap: 30px; }
  .split.flip .art { order: -1; }
  .grid3, .grid2, .plat { grid-template-columns: 1fr; }
  .panel figure { position: static; }
  .nav .hint { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .nav .wrap { gap: 2px; }
  .brand span { display: none; }
  .brand { margin-right: 4px; }
  .nav-links a { padding: 8px 9px; font-size: 14.5px; }
  .nav .btn { display: none; }
  .bunker { grid-template-columns: 1fr; padding: 24px; }
  .tabs button { flex: 1 1 40%; }
  /* Diagrams keep a readable size and scroll sideways inside their card. */
  .panel figure { overflow-x: auto; padding: 12px; -webkit-overflow-scrolling: touch; }
  .panel figure svg { min-width: 600px; }
  footer .row { flex-direction: column; text-align: center; }
  .social { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .nav { transition: none; }
}
