:root {
  color-scheme: dark;
  --bg: #080906;
  --bg-raised: #10110d;
  --text: #f3f2e9;
  --muted: #a7a89e;
  --dim: #94968c;
  --line: rgba(243, 242, 233, 0.16);
  --line-strong: rgba(243, 242, 233, 0.32);
  --signal: #f4cf42;
  --signal-ink: #171408;
  --content: 1180px;
  --header-height: 78px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 0.65px, transparent 0.65px);
  background-size: 7px 7px;
  content: "";
  pointer-events: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

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

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  transform: translateY(-150%);
  background: var(--text);
  color: var(--bg);
  font-weight: 750;
  transition: transform 180ms ease;
}

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

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  height: var(--header-height);
  border-bottom: 1px solid rgba(243, 242, 233, 0.1);
}

.site-header__inner {
  display: flex;
  width: min(calc(100% - 48px), var(--content));
  height: 100%;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-decoration: none;
}

.wordmark__mark {
  position: relative;
  display: inline-grid;
  width: 26px;
  height: 26px;
  border: 1px solid var(--signal);
  border-radius: 50%;
  place-items: center;
}

.wordmark__mark::after {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 14px rgba(244, 207, 66, 0.85);
  content: "";
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
  color: var(--muted);
  font-size: 0.86rem;
}

.site-nav a {
  text-decoration: none;
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.site-nav__fallback {
  color: var(--signal) !important;
  font-weight: 720;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  position: absolute;
  inset: 0 0 0 50%;
  z-index: -2;
  background:
    linear-gradient(90deg, var(--bg), transparent 30%),
    radial-gradient(circle at 60% 48%, rgba(244, 207, 66, 0.095), transparent 46%);
  content: "";
}

.hero__inner {
  display: grid;
  width: min(calc(100% - 48px), var(--content));
  min-height: 100svh;
  margin: 0 auto;
  padding: calc(var(--header-height) + 56px) 0 64px;
  align-items: center;
  grid-template-columns: minmax(0, 1.16fr) minmax(340px, 0.84fr);
  gap: clamp(44px, 7vw, 110px);
}

.hero__copy {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.eyebrow {
  display: flex;
  margin: 0 0 22px;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 18px rgba(244, 207, 66, 0.82);
  content: "";
}

.brand-title {
  margin: 0 0 12px;
  color: var(--text);
  font-size: clamp(5.2rem, 13.5vw, 11rem);
  font-weight: 900;
  letter-spacing: -0.095em;
  line-height: 0.72;
  text-indent: -0.07em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 680px;
  margin: 38px 0 18px;
  font-size: clamp(2rem, 4.3vw, 4.35rem);
  font-weight: 680;
  letter-spacing: -0.052em;
  line-height: 0.98;
}

.hero__lead {
  max-width: 520px;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.hero__state {
  max-width: 610px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  position: relative;
  display: inline-flex;
  min-height: 54px;
  padding: 0 22px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 760;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
  border-color: var(--text);
  transform: translateY(-2px);
}

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

.button--primary {
  min-width: 184px;
  border-color: var(--signal);
  background: var(--signal);
  color: var(--signal-ink);
}

.button--primary:hover {
  border-color: #ffe36f;
  background: #ffe36f;
}

.button--small {
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.84rem;
}

.button[disabled],
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.button__arrow {
  font-size: 1.18em;
  transition: transform 180ms ease;
}

.button:hover .button__arrow {
  transform: translateX(3px);
}

.plan-line {
  margin: 17px 0 0;
  color: var(--dim);
  font-size: 0.82rem;
  letter-spacing: 0.035em;
}

.loading-dots {
  display: inline-flex;
  gap: 4px;
}

.loading-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  animation: blink 1s ease-in-out infinite;
}

.loading-dots i:nth-child(2) {
  animation-delay: 160ms;
}

.loading-dots i:nth-child(3) {
  animation-delay: 320ms;
}

.beacon {
  position: relative;
  display: grid;
  width: min(42vw, 520px);
  aspect-ratio: 1;
  place-items: center;
  justify-self: end;
}

.beacon__ring,
.beacon__sweep,
.beacon__core {
  position: absolute;
  border-radius: 50%;
}

.beacon__ring {
  inset: 0;
  border: 1px solid rgba(244, 207, 66, 0.18);
  opacity: 0;
  animation: beacon-in 1.3s var(--ease) forwards, breathe 4.8s ease-in-out 1.4s infinite;
}

.beacon__ring--two {
  inset: 16%;
  border-color: rgba(244, 207, 66, 0.3);
  animation-delay: 140ms, 1.7s;
}

.beacon__ring--three {
  inset: 31%;
  border-color: rgba(244, 207, 66, 0.52);
  animation-delay: 260ms, 2s;
}

.beacon__sweep {
  inset: 4%;
  overflow: hidden;
  animation: rotate 13s linear infinite;
}

.beacon__sweep::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 1px;
  background: linear-gradient(90deg, rgba(244, 207, 66, 0.86), transparent);
  box-shadow: 0 0 20px rgba(244, 207, 66, 0.28);
  content: "";
  transform-origin: left center;
}

.beacon__core {
  display: grid;
  width: 18%;
  aspect-ratio: 1;
  place-items: center;
  background: var(--signal);
  box-shadow: 0 0 50px rgba(244, 207, 66, 0.25), 0 0 140px rgba(244, 207, 66, 0.12);
  color: var(--signal-ink);
  font-size: clamp(1rem, 2.5vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.08em;
}

.beacon__coordinate {
  position: absolute;
  right: 4%;
  bottom: 13%;
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.key-panel,
.error-panel {
  max-width: 610px;
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}

.key-panel__head {
  display: flex;
  margin-bottom: 22px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.key-panel__head h2,
.error-panel h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.7vw, 2.15rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.status-chip {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  color: var(--signal);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-chip::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
  content: "";
}

.key-panel__body {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 24px;
}

.qr-frame {
  display: grid;
  width: 132px;
  height: 132px;
  overflow: hidden;
  padding: 8px;
  place-items: center;
  border-radius: 3px;
  background: #fff;
  color: #111;
}

.qr-frame img,
.qr-frame svg {
  width: 100%;
  height: 100%;
}

.qr-placeholder {
  max-width: 90px;
  font-size: 0.68rem;
  line-height: 1.25;
  text-align: center;
}

.key-stats {
  display: grid;
  margin: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px 20px;
}

.key-stats div {
  min-width: 0;
}

.key-stats dt {
  margin-bottom: 3px;
  color: var(--dim);
  font-size: 0.68rem;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.key-stats dd {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 680;
}

.key-link {
  width: 100%;
  height: 42px;
  margin: 20px 0 12px;
  padding: 0 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.key-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.key-panel__more {
  display: flex;
  margin-top: 18px;
  padding-top: 16px;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.83rem;
}

.text-button {
  padding: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  color: var(--text);
  cursor: pointer;
  font-weight: 680;
}

.plan-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.plan-note a {
  color: var(--signal);
  font-weight: 720;
}

.error-panel p {
  max-width: 490px;
  margin: 12px 0 22px;
  color: var(--muted);
}

.section {
  position: relative;
  width: min(calc(100% - 48px), var(--content));
  margin: 0 auto;
  padding: clamp(84px, 12vw, 160px) 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section__head {
  display: grid;
  margin-bottom: clamp(46px, 7vw, 80px);
  grid-template-columns: minmax(0, 0.68fr) minmax(300px, 1fr);
  gap: 48px;
  align-items: end;
}

.section__index {
  margin: 0 0 14px;
  color: var(--signal);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.section h2 {
  margin: 0;
  font-size: clamp(2.3rem, 6.2vw, 5.5rem);
  font-weight: 720;
  letter-spacing: -0.065em;
  line-height: 0.96;
}

.section__intro {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.23rem);
}

.steps {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.steps li {
  display: grid;
  min-height: 118px;
  padding: 25px 0;
  align-items: center;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 90px minmax(200px, 0.72fr) minmax(280px, 1fr);
  gap: 24px;
}

.step-number {
  color: var(--signal);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
}

.steps h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  letter-spacing: -0.035em;
}

.steps p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.instructions {
  display: grid;
  grid-template-columns: minmax(210px, 0.42fr) minmax(0, 1fr);
  gap: clamp(40px, 8vw, 110px);
}

.tabs {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border-top: 1px solid var(--line);
}

.tab {
  padding: 17px 2px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 680;
  text-align: left;
  transition: color 160ms ease, padding-left 220ms var(--ease);
}

.tab:hover,
.tab[aria-selected="true"] {
  padding-left: 12px;
  color: var(--text);
}

.tab[aria-selected="true"]::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 11px;
  border-radius: 50%;
  background: var(--signal);
  content: "";
  vertical-align: 0.08em;
}

.tab-panel h3 {
  max-width: 610px;
  margin: 0 0 24px;
  font-size: clamp(1.9rem, 4vw, 3.5rem);
  letter-spacing: -0.052em;
  line-height: 1;
}

.instruction-list {
  margin: 0 0 30px;
  padding: 0;
  counter-reset: instruction;
  list-style: none;
}

.instruction-list li {
  position: relative;
  max-width: 650px;
  min-height: 44px;
  padding: 9px 0 9px 44px;
  color: var(--muted);
  counter-increment: instruction;
}

.instruction-list li::before {
  position: absolute;
  top: 10px;
  left: 0;
  color: var(--signal);
  content: "0" counter(instruction);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
}

.referral-section {
  display: grid;
  width: 100%;
  min-height: 430px;
  padding: clamp(76px, 9vw, 120px) max(24px, calc((100vw - var(--content)) / 2));
  align-items: end;
  background: var(--signal);
  color: var(--signal-ink);
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
}

.referral-section__copy {
  max-width: 850px;
}

.referral-section .section__index {
  color: rgba(23, 20, 8, 0.64);
}

.referral-section h2 {
  margin: 0 0 20px;
  font-size: clamp(3rem, 8.8vw, 8.5rem);
  font-weight: 860;
  letter-spacing: -0.082em;
  line-height: 0.8;
}

.referral-section p {
  max-width: 600px;
  margin: 0;
  color: rgba(23, 20, 8, 0.68);
  font-size: 1.05rem;
}

.referral-section .button {
  border-color: var(--signal-ink);
  color: var(--signal-ink);
}

.referral-section .button:hover {
  background: var(--signal-ink);
  color: var(--signal);
}

.account-main .key-panel {
  width: min(calc(100% - 48px), 1000px);
  margin: 0 auto;
}

.account-main progress {
  display: block;
  width: 100%;
  height: 5px;
  margin: 16px 0;
  accent-color: var(--signal);
}

.account-main progress::-webkit-progress-value {
  background: var(--signal);
  transition: width 350ms ease;
}

.account-referrals .section__intro {
  max-width: 720px;
  margin: 24px 0;
}

.account-exit {
  width: min(calc(100% - 48px), var(--content));
  margin: 0 auto 48px;
}

.invite-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: min(calc(100% - 48px), var(--content));
  margin: auto;
  gap: 40px;
}

.invite-hero .document-hero {
  width: 100%;
}

.invite-art {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
}

@media (max-width: 720px) {
  .invite-hero { grid-template-columns: 1fr; gap: 0; }
  .invite-art { max-height: 400px; object-fit: cover; }
}

@media (prefers-reduced-motion: reduce) {
  .account-main progress::-webkit-progress-value { transition: none; }
}

.site-footer {
  width: min(calc(100% - 48px), var(--content));
  margin: 0 auto;
  padding: 48px 0 38px;
}

.site-footer__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 34px;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer__links a:hover {
  color: var(--text);
}

.site-footer__note {
  max-width: 420px;
  margin: 45px 0 0;
  color: var(--dim);
  font-size: 0.72rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.document-page .site-header,
.open-page .site-header {
  position: relative;
}

.document-page main {
  width: min(calc(100% - 48px), 900px);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 132px) 0 110px;
}

.document-hero {
  margin-bottom: 70px;
  padding-bottom: 55px;
  border-bottom: 1px solid var(--line-strong);
}

.document-hero h1 {
  max-width: 820px;
  margin: 0 0 24px;
  font-size: clamp(3.1rem, 9vw, 7.6rem);
  font-weight: 850;
  letter-spacing: -0.078em;
  line-height: 0.86;
}

.document-hero p {
  max-width: 610px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.24rem);
}

.prose {
  max-width: 760px;
}

.prose section + section {
  margin-top: 64px;
}

.prose h2 {
  margin: 0 0 20px;
  font-size: clamp(1.65rem, 3.5vw, 2.55rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.prose h3 {
  margin: 30px 0 10px;
  font-size: 1.08rem;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose strong {
  color: var(--text);
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 10px;
}

.prose a {
  color: var(--signal);
}

.notice {
  margin: 36px 0;
  padding: 24px 0 24px 28px;
  border-left: 2px solid var(--signal);
  color: var(--text) !important;
}

.faq-list {
  border-top: 1px solid var(--line-strong);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 23px 48px 23px 0;
  cursor: pointer;
  color: var(--text);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 680;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 21px;
  right: 3px;
  color: var(--signal);
  content: "+";
  font-size: 1.35rem;
  font-weight: 400;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  max-width: 660px;
  margin: 0 0 24px;
  color: var(--muted);
}

.open-page main {
  display: grid;
  width: min(calc(100% - 48px), 760px);
  min-height: calc(100svh - var(--header-height));
  margin: 0 auto;
  padding: 64px 0 80px;
  place-items: center;
}

.open-status {
  width: 100%;
  text-align: center;
}

.open-status__pulse {
  display: grid;
  width: 104px;
  height: 104px;
  margin: 0 auto 42px;
  border: 1px solid rgba(244, 207, 66, 0.42);
  border-radius: 50%;
  place-items: center;
}

.open-status__pulse::before {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 36px rgba(244, 207, 66, 0.48);
  content: "";
  animation: pulse 1.8s ease-in-out infinite;
}

.open-status h1 {
  margin: 0 0 16px;
  font-size: clamp(2.4rem, 7vw, 5.4rem);
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.open-status p {
  max-width: 510px;
  margin: 0 auto 26px;
  color: var(--muted);
}

.open-status .button-row {
  justify-content: center;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  max-width: min(360px, calc(100vw - 36px));
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  background: var(--text);
  color: var(--bg);
  font-size: 0.84rem;
  font-weight: 680;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  animation: toast-in 320ms var(--ease) both;
}

.clipboard-fallback {
  position: fixed;
  opacity: 0;
  pointer-events: none;
}

@keyframes beacon-in {
  from { opacity: 0; transform: scale(0.82); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes breathe {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.025); }
}

@keyframes rotate {
  to { transform: rotate(1turn); }
}

@keyframes pulse {
  0%, 100% { transform: scale(0.82); opacity: 0.68; }
  50% { transform: scale(1); opacity: 1; }
}

@keyframes blink {
  0%, 100% { opacity: 0.28; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 880px) {
  :root {
    --header-height: 68px;
  }

  .site-header__inner,
  .hero__inner,
  .section,
  .site-footer,
  .document-page main,
  .open-page main {
    width: min(calc(100% - 34px), var(--content));
  }

  .site-nav a:not(.site-nav__fallback) {
    display: none;
  }

  .hero__inner {
    min-height: auto;
    padding-top: calc(var(--header-height) + 64px);
    grid-template-columns: 1fr;
  }

  .hero__copy {
    max-width: 680px;
  }

  .brand-title {
    font-size: clamp(5.25rem, 21vw, 9.6rem);
  }

  .beacon {
    position: absolute;
    top: 86px;
    right: -17vw;
    z-index: -1;
    width: min(72vw, 520px);
    opacity: 0.54;
  }

  .beacon__coordinate {
    display: none;
  }

  .hero::before {
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 9, 6, 0.98) 10%, rgba(8, 9, 6, 0.7) 72%, transparent);
  }

  .section__head,
  .instructions {
    grid-template-columns: 1fr;
  }

  .section__head {
    gap: 25px;
  }

  .steps li {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .steps p {
    grid-column: 2;
  }

  .tabs {
    flex-direction: row;
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
  }

  .tab {
    flex: 0 0 auto;
    padding: 13px 16px 13px 0;
    border-bottom: 0;
  }

  .tab:hover,
  .tab[aria-selected="true"] {
    padding-left: 0;
    color: var(--text);
  }

  .tab[aria-selected="true"]::before {
    display: none;
  }

  .referral-section {
    min-height: 390px;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .wordmark {
    font-size: 0.77rem;
  }

  .site-nav {
    font-size: 0.78rem;
  }

  .hero__inner {
    padding-top: calc(var(--header-height) + 58px);
    padding-bottom: 50px;
  }

  .eyebrow {
    margin-bottom: 18px;
    font-size: 0.68rem;
  }

  .brand-title {
    font-size: clamp(4.3rem, 22vw, 7rem);
  }

  .hero h1 {
    margin-top: 28px;
  }

  .hero__lead {
    margin-bottom: 25px;
  }

  .button-row .button {
    width: 100%;
  }

  .key-panel__head {
    display: block;
  }

  .status-chip {
    margin-top: 12px;
  }

  .key-panel__body {
    grid-template-columns: 1fr;
  }

  .qr-frame {
    width: 118px;
    height: 118px;
  }

  .key-stats {
    grid-template-columns: 1fr 1fr;
  }

  .key-panel__actions .button {
    width: 100%;
  }

  .section {
    padding: 78px 0;
  }

  .steps li {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
  }

  .site-footer__row {
    display: block;
  }

  .site-footer__links {
    margin-top: 28px;
  }

  .document-page main {
    padding-top: 62px;
  }

  .document-hero {
    margin-bottom: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
