/* ==========================================================================
   UDPP — passport viewer
   A warm, editorial take on the EU Digital Battery Passport.
   ========================================================================== */

:root {
  --bg: #f1efe7;
  --bg-deep: #e9e6dc;
  --surface: #fffdf8;
  --surface-2: #f8f6ef;
  --ink: #171913;
  --ink-2: #4b4f45;
  --muted: #797d71;
  --line: #dedbd0;
  --line-strong: #c9c6b9;
  --lime: #d9ff76;
  --lime-soft: #efffc4;
  --lime-deep: #b4e33c;
  --green: #2d693c;
  --green-soft: #e5f4e5;
  --amber: #8a5a12;
  --amber-soft: #fbf0d8;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgb(23 25 19 / 0.04),
    0 18px 50px -30px rgb(23 25 19 / 0.24);
  --shadow-lift: 0 2px 4px rgb(23 25 19 / 0.05),
    0 30px 70px -36px rgb(23 25 19 / 0.32);
  --font: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", ui-monospace, "Cascadia Code", "Roboto Mono",
    Menlo, Monaco, monospace;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 85% -10%, #e6f7c2 0%, transparent 58%),
    radial-gradient(900px 500px at -10% 12%, #f6e8d8 0%, transparent 55%),
    var(--bg);
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  display: block;
}

h1,
h2,
h3,
h4,
p,
dl,
dd {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--surface);
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.mono {
  font-family: var(--mono);
  font-size: 0.86em;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--lime-deep);
  box-shadow: 0 0 0 4px rgb(180 227 60 / 0.16);
}

/* ---------------------------------------------------------------- topbar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgb(201 198 185 / 0.72);
  background: rgb(241 239 231 / 0.82);
  backdrop-filter: blur(16px) saturate(1.1);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 30px;
  width: min(var(--max), calc(100% - 48px));
  height: 70px;
  margin: 0 auto;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.wordmark-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  background: var(--ink);
  color: var(--lime);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.wordmark-text {
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.wordmark-text span {
  color: var(--muted);
  font-weight: 550;
}

.wordmark-sm .wordmark-mark {
  width: 27px;
  height: 27px;
  border-radius: 8px;
  font-size: 0.8rem;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: auto;
}

.topnav a {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 0.86rem;
  font-weight: 650;
  transition: background 0.16s ease, color 0.16s ease;
}

.topnav a:hover {
  background: rgb(255 253 248 / 0.7);
  color: var(--ink);
}

.topnav a.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgb(23 25 19 / 0.06);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgb(255 253 248 / 0.5);
}

.lang-switch a {
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  line-height: 1;
  transition: background 0.16s ease, color 0.16s ease;
}

.lang-switch a:hover {
  color: var(--ink);
}

.lang-switch a.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgb(23 25 19 / 0.08);
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font-size: 0.86rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease,
    border-color 0.16s ease, box-shadow 0.16s ease;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-sm {
  min-height: 36px;
  padding: 7px 14px;
  font-size: 0.8rem;
}

.btn-dark {
  background: var(--ink);
  color: #f7f5ee;
  box-shadow: 0 1px 2px rgb(23 25 19 / 0.2);
}

.btn-dark:hover {
  background: #2c2f26;
  box-shadow: 0 7px 18px -8px rgb(23 25 19 / 0.5);
}

.btn-ghost {
  border-color: var(--line-strong);
  background: rgb(255 253 248 / 0.5);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--surface);
}

.btn-quiet {
  color: var(--ink-2);
}

.btn-quiet:hover {
  background: rgb(255 253 248 / 0.65);
}

.btn-wide {
  width: 100%;
}

.icon-btn {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.icon-btn svg {
  width: 13px;
  height: 13px;
}

.icon-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* ---------------------------------------------------------------- home */

.home-page,
.passport-page,
.doc-page,
.error-page {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(30px, 5vw, 84px);
  align-items: center;
  min-height: min(720px, calc(100vh - 70px));
  padding: 62px 0 72px;
}

.home-copy h1 {
  max-width: 700px;
  margin: 20px 0 24px;
  font-size: clamp(2.8rem, 5.2vw, 4.2rem);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.home-copy h1 em {
  position: relative;
  display: inline-block;
  isolation: isolate;
  padding: 0 0.06em;
  color: var(--ink);
  font-style: normal;
}

.home-copy h1 em::after {
  position: absolute;
  right: -0.04em;
  bottom: 0.04em;
  left: -0.04em;
  z-index: -1;
  height: 0.32em;
  border-radius: 0.12em;
  background: linear-gradient(92deg, var(--lime) 0%, #ecffab 78%, transparent 100%);
  content: "";
  transform: skewX(-9deg) rotate(-0.5deg);
  transform-origin: left center;
}

.home-lede {
  max-width: 520px;
  color: var(--ink-2);
  font-size: 1.03rem;
  line-height: 1.65;
}

.lookup {
  display: flex;
  gap: 8px;
  max-width: 620px;
  margin-top: 34px;
  padding: 7px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgb(255 253 248 / 0.78);
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lookup:focus-within {
  border-color: var(--ink);
  box-shadow: var(--shadow-lift);
}

.lookup input {
  flex: 1;
  min-width: 0;
  padding: 0 16px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.lookup input::placeholder {
  color: #a3a699;
}

.lookup .btn {
  flex-shrink: 0;
}

.lookup-compact {
  margin-top: 26px;
}

.home-hints {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.78rem;
}

.home-hints a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink-2);
  transition: border-color 0.16s ease, color 0.16s ease;
}

.home-hints a:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.home-hints svg {
  width: 13px;
  height: 13px;
}

.home-visual {
  position: relative;
  display: grid;
  min-height: 560px;
  place-items: center;
  isolation: isolate;
}

.visual-orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgb(201 198 185 / 0.62);
  border-radius: 50%;
}

.orbit-one {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle at 50% 40%, #f5f7df, transparent 67%);
}

.orbit-two {
  width: 610px;
  height: 610px;
  border-style: dashed;
  opacity: 0.55;
}

.preview-passport {
  position: relative;
  display: flex;
  width: min(360px, 88%);
  min-height: 480px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgb(201 198 185 / 0.9);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: 0 40px 100px -45px rgb(23 25 19 / 0.5),
    0 2px 6px rgb(23 25 19 / 0.05);
  transform: rotate(3.2deg);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.5s ease;
}

.preview-passport:hover {
  transform: rotate(0deg) translateY(-8px);
  box-shadow: 0 54px 120px -42px rgb(23 25 19 / 0.55);
}

.preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 12px;
}

.preview-brand {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.preview-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.preview-status svg {
  width: 11px;
  height: 11px;
}

.preview-image {
  position: relative;
  display: grid;
  min-height: 240px;
  margin: 0 14px;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 35%, #f3f4e8, #e6e6da 70%);
}

.preview-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 68%, rgb(23 25 19 / 0.08));
  content: "";
}

.preview-image img {
  width: 88%;
  max-height: 220px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.preview-image > span {
  color: var(--muted);
}

.preview-image svg {
  width: 70px;
  height: 70px;
}

.preview-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 7px;
  padding: 20px 24px 22px;
}

.preview-kicker {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.preview-info strong {
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.preview-metrics {
  display: flex;
  gap: 16px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.68rem;
}

.preview-metrics b {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 700;
}

.preview-corner {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
}

.preview-corner svg {
  width: 15px;
  height: 15px;
}

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid rgb(255 255 255 / 0.75);
  border-radius: 999px;
  background: rgb(255 253 248 / 0.84);
  color: var(--ink-2);
  box-shadow: 0 12px 30px -18px rgb(23 25 19 / 0.45);
  backdrop-filter: blur(10px);
  font-size: 0.7rem;
  font-weight: 650;
  animation: float 7s ease-in-out infinite;
}

.float-chip svg {
  width: 14px;
  height: 14px;
  color: var(--ink);
}

.chip-one {
  top: 1%;
  right: 2%;
}

.chip-two {
  bottom: 2%;
  left: 2%;
  animation-delay: -3.4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

.home-section {
  padding: 64px 0 20px;
}

.home-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.home-section h2,
.doc-hero h1 {
  margin-top: 8px;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  color: var(--ink-2);
  font-size: 0.8rem;
  font-weight: 650;
  white-space: nowrap;
}

.text-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.16s ease;
}

.text-link:hover svg {
  transform: translateX(3px);
}

.passport-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.passport-card {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
}

a.passport-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lift);
}

.passport-card-media {
  position: relative;
  display: grid;
  min-height: 190px;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #f4f5e8, #e9e9dc 75%);
}

.passport-card-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgb(23 25 19 / 0.06));
  content: "";
}

.passport-card-media img {
  width: 76%;
  max-height: 175px;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

a.passport-card:hover .passport-card-media img {
  transform: scale(1.045);
}

.card-placeholder svg,
.empty-media svg {
  width: 58px;
  height: 58px;
  color: var(--muted);
}

.card-status {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgb(255 253 248 / 0.86);
  color: var(--green);
  font-size: 0.6rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.card-status svg {
  width: 11px;
  height: 11px;
}

.passport-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 22px;
}

.card-brand {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.card-brand span {
  padding: 0 4px;
}

.passport-card-body h3 {
  margin: 7px 0 5px;
  font-size: 1.18rem;
  font-weight: 680;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.passport-card-body p {
  color: var(--muted);
  font-size: 0.8rem;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
}

.card-open {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink);
  font-weight: 650;
}

.card-open svg {
  width: 14px;
  height: 14px;
  transition: transform 0.16s ease;
}

a.passport-card:hover .card-open svg {
  transform: translateX(3px);
}

.passport-card-empty {
  border-style: dashed;
  background: rgb(255 253 248 / 0.45);
  box-shadow: none;
}

.empty-media {
  display: grid;
  min-height: 190px;
  place-items: center;
  color: var(--muted);
}

.home-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 80px 0 90px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.value-card {
  padding: 30px;
  background: var(--surface);
}

.value-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background: var(--lime-soft);
  color: var(--ink);
}

.value-icon svg {
  width: 18px;
  height: 18px;
}

.value-card h3 {
  margin: 18px 0 7px;
  font-size: 1rem;
  font-weight: 680;
  letter-spacing: -0.02em;
}

.value-card p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

/* ---------------------------------------------------------------- passport */

.passport-page {
  padding: 24px 0 80px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 2px 20px;
  color: var(--muted);
  font-size: 0.74rem;
}

.breadcrumb a {
  color: var(--ink-2);
  font-weight: 600;
}

.breadcrumb a:hover {
  color: var(--ink);
}

.breadcrumb span[aria-current] {
  color: var(--ink);
}

.passport-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 4vw, 58px);
  align-items: center;
  padding: 18px 0 46px;
}

.hero-media {
  min-width: 0;
}

.hero-image-wrap {
  position: relative;
  display: grid;
  min-height: clamp(330px, 38vw, 480px);
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 35%, #f8f9ee, #e7e7da 72%),
    var(--surface-2);
  box-shadow: var(--shadow);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(rgb(23 25 19 / 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgb(23 25 19 / 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, #000 20%, transparent 78%);
}

.hero-image {
  position: relative;
  z-index: 1;
  width: 82%;
  max-height: clamp(280px, 34vw, 430px);
  object-fit: contain;
  mix-blend-mode: multiply;
  animation: rise-in 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-placeholder {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  place-items: center;
  color: var(--muted);
  font-size: 0.8rem;
}

.hero-placeholder svg {
  width: 80px;
  height: 80px;
}

.verified-float {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid rgb(255 255 255 / 0.8);
  border-radius: 999px;
  background: rgb(255 253 248 / 0.88);
  color: var(--green);
  box-shadow: 0 10px 26px -18px rgb(23 25 19 / 0.45);
  backdrop-filter: blur(8px);
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.verified-float svg {
  width: 12px;
  height: 12px;
}

.media-credit {
  padding: 9px 4px 0;
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.4;
}

.hero-content {
  min-width: 0;
  animation: rise-in 0.65s 0.08s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes rise-in {
  from {
    transform: translateY(14px);
  }
  to {
    transform: translateY(0);
  }
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-2);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.brand-dot {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0;
}

.kicker-sep {
  color: var(--line-strong);
}

.hero-kicker .mono {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0;
}

.hero-title-block {
  margin: 18px 0 20px;
}

.hero-category {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px 6px 10px;
  border: 1px solid rgb(23 25 19 / 0.08);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  box-shadow: 0 6px 18px -16px rgb(23 25 19 / 0.5);
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.hero-category svg {
  width: 13px;
  height: 13px;
  color: var(--green);
}

.hero-title {
  position: relative;
  max-width: 760px;
  margin: 14px 0 0;
  font-size: clamp(2.5rem, 5.2vw, 4.7rem);
  font-weight: 660;
  line-height: 0.99;
  letter-spacing: -0.058em;
  text-wrap: balance;
}

.hero-title-brand {
  position: relative;
  display: inline-block;
  isolation: isolate;
  padding: 0 0.06em;
}

.hero-title-brand::after {
  position: absolute;
  right: -0.04em;
  bottom: 0.04em;
  left: -0.04em;
  z-index: -1;
  height: 0.32em;
  border-radius: 0.12em;
  background: linear-gradient(92deg, var(--lime) 0%, #ecffab 78%, transparent 100%);
  content: "";
  transform: skewX(-9deg) rotate(-0.5deg);
  transform-origin: left center;
}

.hero-title-spec {
  font-variant-numeric: tabular-nums;
  font-weight: 760;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgb(255 253 248 / 0.55);
  color: var(--ink-2);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.035em;
}

.badge svg {
  width: 12px;
  height: 12px;
}

.badge-lime {
  border-color: #c7e37d;
  background: var(--lime-soft);
  color: #405312;
}

.badge-status {
  border-color: #bddcbf;
  background: var(--green-soft);
  color: var(--green);
}

.hero-lede {
  max-width: 610px;
  margin-top: 20px;
  color: var(--ink-2);
  font-size: 0.96rem;
  line-height: 1.65;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgb(255 253 248 / 0.5);
}

.metric {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
  padding: 16px 16px 15px;
  border-right: 1px solid var(--line);
  transition: background-color 0.2s ease;
}

.metric::before {
  position: absolute;
  top: 0;
  left: 16px;
  width: 22px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: var(--lime-deep);
  content: "";
  opacity: 0.85;
}

.metric:hover {
  background: rgb(255 253 248 / 0.9);
}

.metric:last-child {
  border-right: 0;
}

.metric-label {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.metric-value {
  font-size: 1.24rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  white-space: nowrap;
}

.metric-unit {
  margin-left: 3px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

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

.passport-main {
  min-width: 0;
}

.tabs {
  display: flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 253 248 / 0.55);
  width: fit-content;
  max-width: 100%;
  box-shadow: 0 1px 2px rgb(23 25 19 / 0.03);
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease,
    box-shadow 0.16s ease;
}

.tab:hover {
  color: var(--ink);
}

.tab.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgb(23 25 19 / 0.08),
    0 6px 16px -12px rgb(23 25 19 / 0.3);
}

.tab-count {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  place-items: center;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 0.62rem;
  font-weight: 750;
}

.tab-panel {
  padding-top: 28px;
}

.tab-panel[hidden] {
  display: none;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 0 2px 20px;
}

.section-head h2 {
  margin-top: 7px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.section-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.67rem;
  line-height: 1.35;
  text-align: right;
}

.section-count {
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 650;
  letter-spacing: -0.04em;
}

.group-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.group-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.group-head::-webkit-details-marker {
  display: none;
}

.group-head:hover {
  background: var(--surface-2);
}

.group-number {
  display: grid;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
}

.group-heading {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.group-title {
  font-size: 1.02rem;
  font-weight: 680;
  letter-spacing: -0.025em;
}

.group-subtitle {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-count {
  display: inline-grid;
  min-width: 27px;
  height: 24px;
  padding: 0 8px;
  place-items: center;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 650;
}

.group-chevron {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.group-chevron svg {
  width: 16px;
  height: 16px;
  transform: rotate(90deg);
}

.group[open] .group-chevron svg {
  transform: rotate(-90deg);
}

.group-fields {
  padding: 0 20px 6px;
}

.field {
  display: grid;
  grid-template-columns: minmax(190px, 34%) minmax(0, 1fr);
  gap: 24px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.field-label {
  padding-top: 1px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 550;
  line-height: 1.5;
}

.field-value {
  min-width: 0;
  font-size: 0.86rem;
  font-weight: 550;
  line-height: 1.55;
  overflow-wrap: break-word;
}

.field-value p {
  color: var(--ink-2);
}

.copy {
  max-width: 640px;
  color: var(--ink-2);
  font-size: 0.83rem;
  line-height: 1.65;
}

.copy p + p {
  margin-top: 8px;
}

.measure {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px;
}

.measure-value {
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.measure-unit {
  color: var(--ink-2);
  font-size: 0.78rem;
  font-weight: 600;
}

.measure-note {
  color: var(--muted);
  font-size: 0.71rem;
}

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

.chip {
  display: inline-flex;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 0.72rem;
  font-weight: 600;
}

.boolean {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.boolean svg {
  width: 12px;
  height: 12px;
}

.boolean.is-yes {
  background: var(--green-soft);
  color: var(--green);
}

.boolean.is-no {
  background: var(--amber-soft);
  color: var(--amber);
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.16s ease;
}

.inline-link:hover {
  text-decoration-color: var(--ink);
}

.inline-link svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  color: var(--muted);
}

.doc-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.doc-link:hover {
  border-color: var(--ink);
  background: var(--surface);
}

.doc-link > svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: var(--muted);
}

.doc-icon {
  display: inline-grid;
  height: 22px;
  padding: 0 6px;
  place-items: center;
  border-radius: 5px;
  background: #f4e3dc;
  color: #8c3e26;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.doc-note {
  padding-left: 8px;
  border-left: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 500;
}

.subfields {
  display: grid;
  gap: 9px;
}

.subfield {
  display: grid;
  grid-template-columns: minmax(150px, 0.44fr) minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
}

.subfield dt {
  color: var(--muted);
  font-size: 0.71rem;
  line-height: 1.45;
}

.subfield dd {
  min-width: 0;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 550;
  line-height: 1.5;
  overflow-wrap: break-word;
}

/* ---------------------------------------------------------------- aside */

.passport-aside {
  position: sticky;
  top: 94px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card-head {
  padding: 18px 20px 0;
}

.card-head h3 {
  margin-top: 5px;
  font-size: 1rem;
  font-weight: 680;
  letter-spacing: -0.025em;
}

.card-head h3 svg {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 4px;
  vertical-align: -2px;
}

.qr-card {
  padding-bottom: 16px;
  text-align: center;
}

.qr-frame {
  width: min(184px, 62%);
  margin: 16px auto 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px -18px rgb(23 25 19 / 0.35);
}

.qr-svg {
  width: 100%;
  height: auto;
  shape-rendering: crispEdges;
}

.qr-copy {
  max-width: 230px;
  margin: 0 auto 14px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.qr-card .btn {
  width: calc(100% - 32px);
}

.trust-card {
  padding-bottom: 8px;
}

.trust-list {
  padding: 12px 20px 10px;
}

.trust-list > div,
.mini-list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
}

.trust-list > div:first-child,
.mini-list > div:first-child {
  border-top: 0;
}

.trust-list dt,
.mini-list dt {
  color: var(--muted);
  font-size: 0.7rem;
}

.trust-list dd,
.mini-list dd {
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 650;
  text-align: right;
}

.carriers-card {
  padding-bottom: 16px;
}

.carrier-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 14px 0 0;
  padding: 0 20px;
  list-style: none;
}

.carrier-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-2);
}

.carrier {
  flex: 1;
  overflow: hidden;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 0.62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.carrier-actions {
  display: flex;
  gap: 3px;
  flex-shrink: 0;
}

.carrier-actions .icon-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.micro {
  padding: 10px 20px 0;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.5;
}

/* ---------------------------------------------------------------- life */

.life-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 14px;
  align-items: start;
}

.timeline-card {
  padding-bottom: 14px;
}

.timeline {
  margin: 18px 0 0;
  padding: 0 20px;
  list-style: none;
}

.timeline-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
}

.timeline-rail {
  position: relative;
  display: flex;
  justify-content: center;
}

.timeline-rail::after {
  position: absolute;
  top: 28px;
  bottom: -1px;
  left: 50%;
  width: 1px;
  background: var(--line);
  content: "";
}

.timeline-item:last-child .timeline-rail::after {
  display: none;
}

.timeline-dot {
  position: relative;
  z-index: 1;
  display: grid;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-2);
}

.timeline-dot svg {
  width: 12px;
  height: 12px;
}

.timeline-product-transfer {
  border-color: #c7e37d;
  background: var(--lime-soft);
  color: #405312;
}

.timeline-passport-create {
  border-color: #bddcbf;
  background: var(--green-soft);
  color: var(--green);
}

.timeline-card {
  padding: 0 0 20px;
}

.timeline-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.timeline-type {
  font-size: 0.86rem;
  font-weight: 680;
  letter-spacing: -0.01em;
}

.timeline-top time {
  color: var(--muted);
  font-size: 0.68rem;
  white-space: nowrap;
}

.timeline-card > p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.63rem;
}

.dot-sep {
  color: var(--line-strong);
}

.hash {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 0.58rem;
}

.life-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-card,
.integrity-card {
  padding-bottom: 18px;
}

.about-card > p,
.integrity-card > p {
  padding: 12px 20px 4px;
  color: var(--ink-2);
  font-size: 0.78rem;
  line-height: 1.6;
}

.mini-list {
  padding: 10px 20px 0;
}

.hash-block {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 12px 20px 0;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-2);
}

.hash-block span {
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hash-block code {
  overflow: hidden;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 0.6rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.integrity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 20px 0;
  color: var(--muted);
  font-size: 0.68rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.62rem;
  font-weight: 700;
}

.status-pill svg {
  width: 11px;
  height: 11px;
}

/* ---------------------------------------------------------------- secured strip */

.secured-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 26px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(100deg, #1b1e17, #292d22);
  color: #f4f2e9;
  box-shadow: var(--shadow);
}

.secured-left {
  display: flex;
  align-items: center;
  gap: 13px;
}

.secured-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background: rgb(217 255 118 / 0.12);
  color: var(--lime);
}

.secured-mark svg {
  width: 19px;
  height: 19px;
}

.secured-left div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.secured-left strong {
  font-size: 0.82rem;
  font-weight: 650;
}

.secured-left span {
  color: rgb(244 242 233 / 0.55);
  font-size: 0.69rem;
}

.secured-urn {
  max-width: 44%;
  overflow: hidden;
  padding: 7px 11px;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.05);
  color: var(--lime);
  font-family: var(--mono);
  font-size: 0.63rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------------------------------------------------------------- docs / error */

.doc-page {
  padding: 64px 0 100px;
}

.doc-hero {
  max-width: 760px;
  padding-bottom: 40px;
}

.doc-hero h1 {
  margin: 12px 0 16px;
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.doc-hero p {
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.65;
}

.doc-section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.doc-section h2 {
  margin-bottom: 18px;
  font-size: 1.2rem;
  font-weight: 680;
  letter-spacing: -0.03em;
}

.endpoint-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.endpoint {
  display: grid;
  grid-template-columns: 54px minmax(220px, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: baseline;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.endpoint code {
  font-family: var(--mono);
  font-size: 0.79rem;
}

.endpoint p {
  color: var(--muted);
  font-size: 0.78rem;
}

.method {
  display: inline-grid;
  width: fit-content;
  padding: 3px 7px;
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.method.get {
  background: var(--green-soft);
  color: var(--green);
}

.code-block {
  overflow-x: auto;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #1b1e17;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.doc-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.75rem;
}

.doc-note code {
  font-family: var(--mono);
  color: var(--ink-2);
}

.error-page {
  display: flex;
  max-width: 720px;
  min-height: calc(100vh - 70px);
  flex-direction: column;
  justify-content: center;
  padding: 70px 0 100px;
}

.error-code {
  color: var(--line-strong);
  font-size: clamp(5rem, 14vw, 9rem);
  font-weight: 650;
  line-height: 0.8;
  letter-spacing: -0.08em;
}

.error-page h1 {
  margin: 18px 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.error-page > p {
  color: var(--ink-2);
  font-size: 0.95rem;
}

.error-page code {
  font-family: var(--mono);
  font-size: 0.82em;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

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

.footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: rgb(255 253 248 / 0.35);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 40px;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 46px 0 36px;
}

.footer-brand p {
  max-width: 280px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 0.78rem;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.footer-cols > div {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-cols h4 {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-cols a,
.footer-cols span {
  width: fit-content;
  color: var(--muted);
  font-size: 0.75rem;
}
.footer-cols p {
  margin: 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.55;
}

.footer-cols a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 16px 0 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.68rem;
}

.footer-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-align: right;
}

.footer-note svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* ---------------------------------------------------------------- toast */

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 17px;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 999px;
  background: #1b1e17;
  color: #f4f2e9;
  box-shadow: 0 18px 40px -18px rgb(23 25 19 / 0.55);
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast svg {
  width: 15px;
  height: 15px;
  color: var(--lime);
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  .passport-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
  }

  .passport-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-hero {
    gap: 34px;
  }

  .orbit-two {
    width: 520px;
    height: 520px;
  }
}

@media (max-width: 880px) {
  .topnav {
    display: none;
  }

  .topbar-actions {
    margin-left: auto;
  }

  .home-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 48px;
  }

  .home-visual {
    min-height: 500px;
    margin-top: 10px;
  }

  .home-copy h1 {
    max-width: 620px;
  }

  .passport-hero {
    grid-template-columns: 1fr;
  }

  .hero-image-wrap {
    min-height: 380px;
  }

  .passport-layout {
    grid-template-columns: 1fr;
  }

  .passport-aside {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qr-card {
    grid-row: span 2;
  }

  .life-grid {
    grid-template-columns: 1fr;
  }

  .home-values {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .home-page,
  .passport-page,
  .doc-page,
  .error-page,
  .topbar-inner,
  .footer-inner,
  .footer-bottom {
    width: calc(100% - 32px);
  }

  .topbar-inner {
    height: 62px;
    gap: 12px;
  }

  .topbar-actions {
    gap: 5px;
  }

  .topbar-actions .btn-ghost span {
    display: none;
  }

  .topbar-actions .btn-ghost {
    width: 36px;
    padding: 0;
  }

  .home-hero {
    padding: 34px 0 44px;
  }

  .home-copy h1 {
    font-size: clamp(2.3rem, 9vw, 3.1rem);
  }

  .lookup {
    flex-wrap: wrap;
    border-radius: 18px;
  }

  .lookup input {
    flex-basis: 100%;
    min-height: 42px;
  }

  .lookup .btn {
    width: 100%;
  }

  .home-visual {
    min-height: 430px;
  }

  .preview-passport {
    width: 86%;
    min-height: 430px;
  }

  .orbit-one {
    width: 380px;
    height: 380px;
  }

  .orbit-two {
    width: 460px;
    height: 460px;
  }

  .float-chip {
    display: none;
  }

  .passport-grid {
    grid-template-columns: 1fr;
  }

  .passport-page {
    padding-top: 16px;
  }

  .hero-image-wrap {
    min-height: 290px;
    border-radius: 20px;
  }

  .hero-image {
    width: 88%;
    max-height: 270px;
  }

  .hero-title-block {
    margin-top: 16px;
  }

  .hero-title {
    font-size: clamp(2.3rem, 9.8vw, 3.2rem);
    line-height: 1.02;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric:nth-child(2) {
    border-right: 0;
  }

  .metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .passport-aside {
    grid-template-columns: 1fr;
  }

  .qr-card {
    grid-row: auto;
  }

  .section-head {
    align-items: flex-start;
  }

  .section-meta {
    display: none;
  }

  .group-head {
    gap: 10px;
    padding: 15px 14px;
  }

  .group-subtitle {
    display: none;
  }

  .group-number {
    width: 29px;
    height: 29px;
    font-size: 0.6rem;
  }

  .group-fields {
    padding: 0 14px 4px;
  }

  .field {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 13px 0;
  }

  .field-label {
    font-size: 0.7rem;
  }

  .subfield {
    grid-template-columns: 1fr;
    gap: 1px;
    padding: 7px 0;
    border-top: 1px dashed var(--line);
  }

  .subfield:first-child {
    border-top: 0;
    padding-top: 0;
  }

  .secured-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .secured-urn {
    width: 100%;
    max-width: 100%;
  }

  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .footer-note {
    text-align: left;
  }

  .endpoint {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .doc-page {
    padding-top: 40px;
  }
}

@media (max-width: 380px) {
  .topbar-actions .btn-label {
    display: none;
  }

  .topbar-actions .btn-sm {
    padding-left: 11px;
    padding-right: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------------------------------------------------------------- print */

@media print {
  @page {
    margin: 14mm;
  }

  body {
    background: #fff;
    font-size: 10.5pt;
  }

  .topbar,
  .footer,
  .passport-aside,
  .hero-actions,
  .tabs,
  .verified-float,
  .media-credit,
  .secured-strip {
    display: none !important;
  }

  .home-page,
  .passport-page {
    width: 100%;
  }

  .passport-page {
    padding: 0;
  }

  .passport-hero {
    grid-template-columns: 150px 1fr;
    gap: 24px;
    padding: 0 0 20px;
  }

  .hero-image-wrap {
    min-height: 150px;
  }

  .hero-image {
    width: 100%;
    max-height: 140px;
  }

  .hero-title {
    font-size: 24pt;
  }

  .hero-category {
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
  }

  .hero-title-brand::after {
    display: none;
  }

  .hero-lede {
    margin-top: 8px;
    font-size: 9pt;
  }

  .metric-grid {
    margin-top: 12px;
  }

  .passport-layout {
    display: block;
  }

  .tab-panel[hidden] {
    display: none !important;
  }

  .group {
    break-inside: avoid;
    box-shadow: none;
  }

  .group-head {
    padding: 10px 12px;
  }

  .field {
    break-inside: avoid;
    grid-template-columns: 34% 1fr;
  }

  .field-value {
    font-size: 9pt;
  }

  .section-head h2 {
    font-size: 20pt;
  }
}
