/* ==========================================================================
   SecureID — site stylesheet

   BRAND TOKENS ARE ALL IN THE :root BLOCK BELOW. Nothing else in this file
   hard-codes a brand colour.

   Colours are taken from the supplied brand artwork:
     #001A99  the blue of the "ID" block in "Secure ID logo COLOUR"
     #20396E  the navy of the alternate print logo, used for deep sections
   Both were sampled from the artwork rather than approximated.
   ========================================================================== */

:root {
  /* ---- BRAND ---- */
  --brand: #001a99;
  --brand-dark: #001270;
  --brand-hover: #0022c4;
  --brand-ink: #ffffff;
  --brand-deep: #101c4a;
  --brand-navy: #20396e;
  --brand-tint: #e9ecf9;
  --ring: #8f9ce0;

  /* ---- Neutrals ---- */
  --ink: #0f172a;
  --ink-muted: #475569;
  --ink-subtle: #64748b;
  --surface: #ffffff;
  --surface-sunken: #f8fafc;
  --surface-inset: #f1f5f9;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  --ok: #047857;
  --ok-bg: #ecfdf5;

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, monospace;

  --maxw: 1140px;
  --maxw-prose: 46rem;
  --radius: 0.75rem;
  --shadow: 0 1px 2px rgb(15 23 42 / 0.04), 0 8px 24px rgb(15 23 42 / 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.35rem);
  font-weight: 800;
}
h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.25rem);
  font-weight: 750;
}
h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

p {
  margin: 0 0 1.15em;
  text-wrap: pretty;
}

a {
  color: var(--brand-dark);
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--brand);
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

/* ---------- Skip link ---------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: var(--brand-ink);
  padding: 0.75rem 1.15rem;
  z-index: 100;
  border-radius: 0 0 var(--radius) 0;
}
.skip:focus {
  left: 0;
}

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
.section--sunken {
  background: var(--surface-sunken);
  border-block: 1px solid var(--border);
}
.section--deep {
  background: var(--brand-deep);
  color: #e2e8f0;
}
.section--deep h2,
.section--deep h3 {
  color: #fff;
}
.section--deep a {
  color: #aab6ec;
}

.prose {
  max-width: var(--maxw-prose);
}

.lede {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  color: var(--ink-muted);
  line-height: 1.55;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: 0.9rem;
}
.section--deep .eyebrow {
  color: #aab6ec;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

/* Nine items including two buttons is a lot to fit. The header is allowed to
   wrap to a second row rather than clip, and padding-block replaces a fixed
   height so a wrapped row is never cut off. */
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 0.9rem 1.25rem;
  flex-wrap: wrap;
  padding-block: 0.85rem;
}

/* The supplied artwork is a complete wordmark — "Secure" plus the ID block —
   so it is used on its own rather than sitting beside repeated HTML text. */
.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.logo img {
  display: block;
  height: 2.3rem;
  width: auto;
}
.site-footer .logo img {
  height: 2.5rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.6rem 1.05rem;
  margin-left: auto;
  flex-wrap: wrap;
}
.nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 550;
  white-space: nowrap;
}

/* Narrow screens: the links become one horizontally scrollable row so they
   never stack into a wall of text above the fold. */
@media (max-width: 60rem) {
  .site-header .wrap {
    gap: 0.75rem;
  }
  .nav {
    width: 100%;
    margin-left: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 0.15rem;
  }
  .nav::-webkit-scrollbar {
    display: none;
  }
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--brand-dark);
}

/* `.nav a` is more specific than `.btn--primary`, so without these the two
   header buttons inherit the muted link colour — which put grey text on the
   navy call-to-action and failed contrast on the most important control here. */
.nav a.btn--primary,
.nav a.btn--primary:hover {
  color: var(--brand-ink);
}
.nav a.btn--ghost,
.nav a.btn--ghost:hover {
  color: var(--ink);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.3rem;
  border-radius: 0.6rem;
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: filter 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--brand);
  color: var(--brand-ink);
}
.btn--primary:hover {
  filter: brightness(1.08);
  color: var(--brand-ink);
}
.btn--ghost {
  border-color: var(--border-strong);
  color: var(--ink);
  background: var(--surface);
}
.btn--ghost:hover {
  background: var(--surface-inset);
  color: var(--ink);
}
.btn--light {
  background: #fff;
  color: var(--brand-deep);
}
.btn--light:hover {
  color: var(--brand-deep);
  filter: brightness(0.96);
}
.btn--sm {
  padding: 0.5rem 0.95rem;
  font-size: 0.92rem;
}

.btn-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  background:
    radial-gradient(1100px 480px at 78% -8%, var(--brand-tint) 0%, transparent 62%),
    var(--surface);
}
.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 62rem) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

/* ---------- Cards & grids ---------- */
.grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 40rem) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 62rem) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.card h3 {
  margin-bottom: 0.4rem;
}
.card p:last-child {
  margin-bottom: 0;
}
.card__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.55rem;
  background: var(--brand-tint);
  color: var(--brand-dark);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}
.section--deep .card {
  background: rgb(255 255 255 / 0.05);
  border-color: rgb(255 255 255 / 0.14);
  box-shadow: none;
  color: #cbd5e1;
}

/* ---------- Feature list ---------- */
.ticks {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: grid;
  gap: 0.7rem;
}
.ticks li {
  padding-left: 1.9rem;
  position: relative;
  color: var(--ink-muted);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 1.1rem;
  height: 0.55rem;
  border-left: 2.5px solid var(--brand);
  border-bottom: 2.5px solid var(--brand);
  transform: rotate(-45deg);
}
.ticks strong {
  color: var(--ink);
  font-weight: 650;
}
.section--deep .ticks li {
  color: #cbd5e1;
}
.section--deep .ticks strong {
  color: #fff;
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3.4rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-ink);
  display: grid;
  place-items: center;
  font-weight: 750;
  font-size: 0.98rem;
}
.steps h3 {
  margin-bottom: 0.25rem;
}
.steps p {
  margin-bottom: 0;
  color: var(--ink-muted);
}

/* ---------- Interactive walkthrough ---------- */
.demo {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.demo__tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  background: var(--surface-sunken);
}
.demo__tab {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0.95rem 1.25rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.demo__tab[aria-selected="true"] {
  color: var(--brand-dark);
  border-bottom-color: var(--brand);
  background: var(--surface);
}
.demo__panel {
  padding: clamp(1.5rem, 4vw, 2.25rem);
}
.demo__panel[hidden] {
  display: none;
}
.demo__panel h3 {
  margin-top: 0;
}
.demo__layout {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}
@media (min-width: 52rem) {
  .demo__layout {
    grid-template-columns: 1fr 1fr;
  }
}

/* Card mock */
.idcard {
  width: 100%;
  max-width: 21rem;
  aspect-ratio: 1.586;
  border-radius: 0.85rem;
  background: linear-gradient(150deg, var(--brand-deep), var(--brand-navy));
  color: #fff;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 12px 32px rgb(15 30 46 / 0.28);
  position: relative;
  overflow: hidden;
}
.idcard::after {
  content: "";
  position: absolute;
  inset: auto -30% -55% auto;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: rgb(0 26 153 / 0.45);
}
.idcard__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
  position: relative;
  z-index: 1;
}
.idcard__body {
  display: flex;
  gap: 0.9rem;
  align-items: flex-end;
  margin-top: auto;
  position: relative;
  z-index: 1;
}
.idcard__photo {
  width: 4.2rem;
  height: 5.2rem;
  border-radius: 0.35rem;
  background: linear-gradient(180deg, #8f9ce0, #001a99);
  flex-shrink: 0;
  display: grid;
  place-items: end center;
  overflow: hidden;
}
.idcard__name {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.25;
}
.idcard__meta {
  font-size: 0.75rem;
  opacity: 0.85;
  font-family: var(--font-mono);
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  gap: 1.5rem;
  text-align: center;
}
@media (min-width: 40rem) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
}
.stat__num {
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat__label {
  color: var(--ink-muted);
  font-size: 0.98rem;
  margin-top: 0.4rem;
}
.section--deep .stat__num {
  color: #aab6ec;
}
.section--deep .stat__label {
  color: #cbd5e1;
}

/* ---------- Breadcrumbs ---------- */
.crumbs {
  font-size: 0.88rem;
  color: var(--ink-subtle);
  padding-top: 1.5rem;
}
.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
}
.crumbs li::after {
  content: "›";
  margin-left: 0.5rem;
  color: var(--border-strong);
}
.crumbs li:last-child::after {
  content: "";
}
.crumbs a {
  color: var(--ink-muted);
  text-decoration: none;
}
.crumbs a:hover {
  text-decoration: underline;
}

/* ---------- FAQ ---------- */
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 1.15rem 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 1.08rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--brand);
  font-weight: 400;
  flex-shrink: 0;
}
.faq details[open] summary::after {
  content: "−";
}
.faq details p {
  margin: 0.85rem 0 0;
  color: var(--ink-muted);
  max-width: var(--maxw-prose);
}

/* ---------- Form ---------- */
.form {
  display: grid;
  gap: 1.15rem;
}
@media (min-width: 40rem) {
  .form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem;
  }
}
.field label {
  display: block;
  font-weight: 620;
  font-size: 0.94rem;
  margin-bottom: 0.35rem;
}
.field .hint {
  display: block;
  font-weight: 400;
  font-size: 0.86rem;
  color: var(--ink-subtle);
  margin-top: 0.15rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.68rem 0.8rem;
  border: 1px solid var(--border-strong);
  border-radius: 0.5rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
}
.field textarea {
  min-height: 8rem;
  resize: vertical;
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 1px;
  border-color: var(--brand);
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form__status {
  padding: 1rem 1.15rem;
  border-radius: 0.6rem;
  font-weight: 550;
}
.form__status[data-state="ok"] {
  background: var(--ok-bg);
  color: var(--ok);
  border: 1px solid #a7f3d0;
}
.form__status[data-state="error"] {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* ---------- CTA band ---------- */
.cta {
  background: var(--brand-deep);
  color: #e2e8f0;
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.25rem);
  text-align: center;
}
.cta h2 {
  color: #fff;
  margin-bottom: 0.5rem;
}
.cta p {
  color: #cbd5e1;
  max-width: 38rem;
  margin-inline: auto;
}
.cta .btn-row {
  justify-content: center;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand-deep);
  color: #94a3b8;
  padding-block: 3.5rem 2rem;
  font-size: 0.94rem;
}
.site-footer a {
  color: #cbd5e1;
  text-decoration: none;
}
.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.site-footer h3 {
  color: #fff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 1rem;
}
.footer__grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 48rem) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}
.footer__grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}
.footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.88rem;
}

/* ---------- Utilities ---------- */
.center {
  text-align: center;
}
.mx-auto {
  margin-inline: auto;
}
.mt-0 {
  margin-top: 0;
}
.tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 650;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--brand-dark);
  border: 1px solid var(--ring);
}
.table-scroll {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.96rem;
}
th,
td {
  text-align: left;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  font-weight: 680;
  background: var(--surface-sunken);
}

/* ==========================================================================
   Design examples — ID card and wallet pass mockups

   These mirror what the platform actually produces, so the shapes are not
   invented. A card design is elements of type shape / text / photo / barcode /
   qr laid out on a CR-80 face. A wallet pass uses Apple's field slots —
   header, primary, secondary, auxiliary, back — which is why the mockup is
   built from those same slots rather than from a free-form layout.
   ========================================================================== */

.designs {
  display: grid;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 50rem) {
  .designs--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}
.design-figure {
  margin: 0;
}
.design-figure figcaption {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
}
.design-figure figcaption strong {
  color: var(--ink);
  display: block;
  font-size: 0.98rem;
  margin-bottom: 0.15rem;
}

/* ---------- CR-80 ID card ---------- */
.mcard {
  width: 100%;
  max-width: 23rem;
  aspect-ratio: 1.586;          /* CR-80 */
  border-radius: 0.8rem;
  overflow: hidden;
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgb(15 23 42 / 0.14);
  font-size: clamp(0.5rem, 1.55vw, 0.66rem);
  color: var(--ink);
}
.mcard__band {
  height: 26%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1em;
  gap: 0.5em;
}
.mcard__org {
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 1.35em;
  line-height: 1.1;
}
.mcard__type {
  font-size: 0.92em;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.9;
}
.mcard__body {
  display: flex;
  gap: 1em;
  padding: 0.9em 1em;
  height: 74%;
}
.mcard__photo {
  width: 30%;
  aspect-ratio: 35 / 45;        /* the ICAO portrait crop */
  border-radius: 0.25em;
  background: linear-gradient(170deg, #c7cdea 0%, #8f9ce0 55%, #5568c4 100%);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
/* A suggestion of a head-and-shoulders portrait, not a real person. */
.mcard__photo::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 21%;
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.55);
  transform: translateX(-50%);
}
.mcard__photo::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6%;
  width: 68%;
  height: 40%;
  border-radius: 50% 50% 0 0;
  background: rgb(255 255 255 / 0.55);
  transform: translateX(-50%);
}
.mcard__fields {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}
.mcard__field .k {
  display: block;
  font-size: 0.82em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  line-height: 1.3;
}
.mcard__field .v {
  display: block;
  font-weight: 650;
  font-size: 1.12em;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mcard__foot {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.6em;
}
.mcard__barcode {
  display: flex;
  align-items: flex-end;
  gap: 1px;
  height: 2.1em;
}
.mcard__barcode i {
  display: block;
  width: 1px;
  height: 100%;
  background: var(--ink);
}
.mcard__barcode i:nth-child(3n) { width: 2px; }
.mcard__barcode i:nth-child(4n) { height: 78%; }
.mcard__barcode i:nth-child(7n) { width: 3px; }
.mcard__qr {
  width: 3.4em;
  height: 3.4em;
  flex-shrink: 0;
}
/* Back of the card */
.mcard--back .mcard__stripe {
  height: 22%;
  background: #16181d;
  margin-top: 8%;
}
.mcard--back .mcard__backbody {
  padding: 0.9em 1em;
  display: flex;
  gap: 1em;
  align-items: flex-start;
}
.mcard--back .terms {
  font-size: 0.92em;
  line-height: 1.45;
  color: var(--ink-muted);
}

/* ---------- Wallet passes ---------- */
.mpass {
  width: 100%;
  max-width: 19rem;
  border-radius: 0.9rem;
  overflow: hidden;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 34px rgb(15 23 42 / 0.22);
  font-size: clamp(0.62rem, 1.5vw, 0.74rem);
}
.mpass__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75em;
  padding: 0.95em 1.1em 0.4em;
}
.mpass__brand {
  display: flex;
  align-items: center;
  gap: 0.55em;
  font-weight: 700;
  font-size: 1.02em;
}
.mpass__logo {
  width: 1.75em;
  height: 1.75em;
  border-radius: 0.3em;
  background: #fff;
  color: var(--brand);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 0.8em;
  letter-spacing: -0.04em;
}
.mpass__hdr {
  text-align: right;
  line-height: 1.2;
}
.mpass__k {
  display: block;
  font-size: 0.8em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.72;
}
.mpass__v {
  display: block;
  font-weight: 650;
}
.mpass__strip {
  display: flex;
  align-items: flex-end;
  gap: 0.9em;
  padding: 0.5em 1.1em 0.9em;
}
.mpass__photo {
  width: 3.6em;
  aspect-ratio: 35 / 45;
  border-radius: 0.3em;
  background: linear-gradient(170deg, #dfe3f6, #8f9ce0);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.mpass__photo::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 20%;
  width: 36%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.62);
  transform: translateX(-50%);
}
.mpass__photo::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8%;
  width: 72%;
  height: 42%;
  border-radius: 50% 50% 0 0;
  background: rgb(255 255 255 / 0.62);
  transform: translateX(-50%);
}
.mpass__primary .mpass__v {
  font-size: 1.5em;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.mpass__row {
  display: flex;
  gap: 1.2em;
  padding: 0 1.1em 0.85em;
}
.mpass__row > div {
  min-width: 0;
}
.mpass__code {
  background: #fff;
  /* The QR is drawn with currentColor, and .mpass sets color:#fff for the
     coloured pass body — so without this the code is white on white. */
  color: var(--ink);
  padding: 0.9em;
  display: grid;
  place-items: center;
  gap: 0.45em;
}
.mpass__code svg {
  width: 5.4em;
  height: 5.4em;
}
.mpass__code span {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
}

/* Google Wallet presents rows rather than Apple's field slots. */
.mpass--google {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border);
}
.mpass--google .mpass__head {
  background: var(--brand);
  color: #fff;
  padding: 0.95em 1.1em;
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-weight: 700;
}
.mpass--google .mpass__title {
  padding: 0.95em 1.1em 0.35em;
}
.mpass--google .mpass__title .mpass__v {
  font-size: 1.45em;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.mpass--google .mpass__rows {
  padding: 0 1.1em 0.9em;
  display: grid;
  gap: 0.75em;
}
.mpass--google .mpass__k {
  opacity: 1;
  color: var(--ink-subtle);
}
.mpass--google .mpass__code {
  border-top: 1px solid var(--border);
}

/* Phone bezel, so a pass reads as something on a device */
.phone {
  width: 100%;
  max-width: 21.5rem;
  border-radius: 2rem;
  padding: 0.75rem;
  background: #1b1f2a;
  box-shadow: 0 18px 44px rgb(15 23 42 / 0.3);
}
.phone__screen {
  background: #eef1f8;
  border-radius: 1.35rem;
  padding: 1rem 0.9rem;
  display: grid;
  gap: 0.9rem;
}
.phone__bar {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--ink-subtle);
  padding: 0 0.35rem;
}
