/* humanity.llc — iOS grouped UI, light. #DB1B43 · #000 · #fff · #b8b8b8 */

:root {
  --red: #db1b43;
  --black: #000000;
  --white: #ffffff;
  --grey: #b8b8b8;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui,
    sans-serif;
  --radius: 20px;
  --radius-lg: 26px;
  --radius-pill: 100px;
  --pad: 20px;
}

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

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

body {
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.35;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

.page {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100dvh;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom)
    env(safe-area-inset-left);
  background: var(--white);
}

/* Header */
.top {
  padding: 14px var(--pad) 6px;
}

.top-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--black);
}

.top-brand img {
  width: 28px;
  height: 28px;
}

/* Content */
.screen {
  padding: 0 var(--pad) 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.hero h1 {
  font-size: clamp(30px, 8vw, 38px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--black);
}

.hero-line {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--grey);
}

/* Pass card — scan-page fields per docs (handle, manifesto, trust, status, warning) */
.pass-inner {
  background: var(--white);
  color: var(--black);
  border-radius: var(--radius-lg);
  padding: 18px;
  border: 1px solid var(--grey);
}

.pass-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.pass-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--grey);
}

.pass-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}

.pass-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--red);
  padding: 4px 9px;
  border: 1px solid var(--red);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.pass-body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.pass-main {
  flex: 1;
  min-width: 0;
}

.pass-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 4px;
}

.pass-manifesto {
  font-size: 13px;
  font-weight: 500;
  color: var(--black);
  line-height: 1.35;
  margin-bottom: 6px;
}

.pass-since {
  font-size: 11px;
  font-weight: 500;
  color: var(--grey);
  margin-bottom: 10px;
}

.pass-trust {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pass-trust li {
  font-size: 11px;
  font-weight: 600;
  color: var(--grey);
  letter-spacing: 0.01em;
}

.pass-trust li::before {
  content: "○ ";
}

.pass-trust .trust-on {
  color: var(--red);
}

.pass-trust .trust-on::before {
  content: "● ";
}

/* QR — bottom-right, tight rounded frame on white */
.pass-qr {
  flex-shrink: 0;
  line-height: 0;
  border: 1px solid var(--grey);
  border-radius: 12px;
  overflow: hidden;
}

.pass-qr img {
  width: 96px;
  height: 96px;
  display: block;
}

.pass-foot {
  font-size: 11px;
  font-weight: 500;
  color: var(--grey);
  line-height: 1.4;
  border-top: 1px solid var(--grey);
  padding-top: 10px;
}

/* Primary action */
.dock {
  display: block;
}

.dock-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  border-radius: var(--radius-pill);
  border: 1px solid var(--grey);
  color: var(--black);
  background: var(--white);
}

.dock-btn:active {
  opacity: 0.7;
}

.dock-btn-primary {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* Promise feature cell */
.feature {
  padding: 16px 16px 16px 18px;
  background: var(--white);
  border: 1px solid var(--grey);
  border-radius: var(--radius);
  border-left: 3px solid var(--red);
}

.feature-lead {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--black);
  margin-bottom: 6px;
}

.feature-sub {
  font-size: 14px;
  font-weight: 400;
  color: var(--grey);
  line-height: 1.4;
}

/* Build status dots inline */
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: 0.05em;
}

.status-dot.live {
  background: var(--red);
}

.status-dot.wait {
  border: 1.5px solid var(--grey);
  background: transparent;
}

/* iOS grouped lists — solid, no blur (low bandwidth / old phones) */
.group-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey);
  margin: 0 0 8px 14px;
}

.list {
  list-style: none;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--grey);
}

.list li {
  padding: 14px 16px;
  border-bottom: 1px solid var(--grey);
}

.list li:last-child {
  border-bottom: none;
}

.list-title {
  display: block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--black);
}

.list-sub {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 400;
  color: var(--grey);
}

.list-row .list-title {
  font-weight: 500;
}

.list-action a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 12px;
}

.list-action a .list-sub {
  grid-column: 1;
}

.list-action a .list-chevron {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

.list-action .list-title {
  color: var(--red);
  font-weight: 600;
}

.list-chevron {
  font-size: 20px;
  font-weight: 300;
  color: var(--grey);
}

@media (min-width: 500px) {
  .page {
    margin-top: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--grey);
    border-radius: 32px;
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dock-btn:active {
    opacity: 1;
  }
}
