.home-extras {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 64px;
  align-items: start;
}

.file-card {
  --receive-box-width: 40px;
  --receive-box-gap: 10px;
  --receive-box-height: 63px;
  padding: 32px 30px 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  scroll-margin-top: 96px;
}

.file-card h2 {
  margin: 0 0 28px;
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: -.04em;
  font-weight: 620;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.receive-code-entry {
  position: relative;
  display: block;
  width: min(100%, calc(6 * var(--receive-box-width) + 5 * var(--receive-box-gap)));
  margin: 0;
  cursor: text;
}

.receive-input {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  font-size: 16px;
  cursor: text;
}

.receive-digits {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--receive-box-gap);
  pointer-events: none;
}

.receive-digit {
  position: relative;
  display: grid;
  place-items: center;
  height: var(--receive-box-height);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--input);
  color: var(--text);
  font: 500 1.8rem ui-monospace, SFMono-Regular, Consolas, monospace;
  transition: border-color 120ms ease, background 120ms ease;
}

.receive-digit.is-active {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.receive-digit.is-selected { background: var(--raised); }
.receive-digit.is-active:empty::after {
  content: "";
  width: 1px;
  height: 25px;
  background: var(--primary);
  animation: receive-caret 1s step-end infinite;
}

.file-card[data-state="checking"] .receive-digit { border-color: var(--sage); }
.file-card[data-state="error"] .receive-digit { border-color: var(--terracotta); }
.receive-status {
  min-height: 1.5em;
  margin: 15px 0 0;
  color: var(--terracotta);
  font-size: .75rem;
  line-height: 1.5;
}

.receive-row {
  display: grid;
  grid-template-columns: minmax(0, 290px) 0;
  gap: 0;
  width: 100%;
  max-width: 358px;
  align-items: center;
  transition: grid-template-columns 380ms cubic-bezier(.6, 0, .3, 1), gap 380ms ease;
}
.receive-row .receive-code-entry { width: 100%; min-width: 0; }
.receive-row.has-permission { grid-template-columns: minmax(0, 290px) 56px; gap: 12px; }
.receive-action { position: relative; width: 56px; height: 44px; }
.receive-action[hidden], .receive-tip[hidden] { display: none; }
.receive-check {
  position: absolute;
  inset: 6px 12px;
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--sage);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transform: scale(.8);
  transition: opacity 300ms ease, transform 300ms ease;
}
.receive-check path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.receive-action[data-state="success"] .receive-check { opacity: 1; transform: scale(1); }
.receive-action[data-state="success"] .receive-check path { animation: receive-check 650ms cubic-bezier(.6, 0, .3, 1) forwards; }
.receive-retry {
  width: 56px;
  min-height: 44px;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  transform: scale(.9);
  pointer-events: none;
  transition: opacity 300ms ease, transform 300ms ease;
}
.receive-action[data-state="retry"] .receive-retry { opacity: 1; transform: scale(1); pointer-events: auto; }
.receive-retry:disabled { background: transparent; color: var(--muted); }
.receive-retry-icon {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.receive-retry:hover:not(:disabled) { background: transparent; }
.receive-tip { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.receive-status:empty { min-height: 0; margin: 0; }
@keyframes receive-check { to { stroke-dashoffset: 0; } }

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, .7fr) minmax(130px, .45fr);
  gap: 60px;
  width: min(1120px, 90vw);
  margin: 0 auto;
  padding: 40px 0 56px;
  border-top: 1px solid var(--line);
}

.site-footer a { width: fit-content; color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer a:focus-visible { outline: 2px solid var(--mustard); outline-offset: 4px; }
.site-footer .footer-brand { color: var(--text); font-size: 1rem; font-weight: 680; }
.site-footer nav { display: grid; align-content: start; gap: 12px; font-size: .78rem; }
.site-footer h2 { margin: 0 0 6px; color: var(--text); font-size: .78rem; font-weight: 650; }

@keyframes receive-caret { 50% { opacity: 0; } }
@media (max-width: 780px) {
  .home-extras { grid-template-columns: 1fr; gap: 36px; }
  .file-card { width: min(420px, 100%); justify-self: end; }
  .site-footer { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .file-card { padding: 26px 22px 18px; }
  .receive-digit { font-size: 1.5rem; }
}
@media (max-width: 360px) {
  .receive-row.has-permission {
    --receive-box-gap: 6px;
    grid-template-columns: minmax(0, 290px) 44px;
    gap: 8px;
  }
  .receive-action, .receive-retry { width: 44px; }
  .receive-check { left: 6px; right: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .receive-digit { transition: none; }
  .receive-digit.is-active:empty::after { animation: none; }
  .receive-row, .receive-check, .receive-retry { transition: none; }
}
