.home {
  flex: 1;
  padding-top: clamp(28px, 8vh, 64px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-title,
.compose-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(42px, 10vw, 68px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 0.98;
}

.lede {
  max-width: 34em;
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 2.4vw, 18px);
  line-height: 1.55;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(24px, 5vh, 40px);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-height: 150px;
  padding: 20px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.card:hover {
  box-shadow: 9px 9px 0 rgba(22, 33, 31, 0.16);
  transform: translate(-2px, -2px);
}

.card:disabled {
  border-style: dashed;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.66;
}

.card:disabled:hover {
  box-shadow: none;
  transform: none;
}

.card-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  place-items: center;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--accent-soft);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

.card-hint {
  color: var(--ink-soft);
  font-size: 14px;
}

.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--accent-ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: clamp(24px, 5vh, 38px) 0 20px;
  color: var(--ink-soft);
  font-size: 13px;
}

.divider::before,
.divider::after {
  flex: 1;
  height: 1px;
  background: color-mix(in srgb, var(--line) 32%, transparent);
  content: "";
}

.pickup {
  scroll-margin-top: 24px;
  text-align: center;
}

.pickup-label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
}

.code-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}

.code-cell {
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 600;
  text-align: center;
}

.code-cell:focus {
  border-color: var(--accent);
  box-shadow: inset 0 -4px 0 var(--accent-soft);
}

.code-cell:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.recent {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1.5px dashed color-mix(in srgb, var(--line) 35%, transparent);
}

.recent-title {
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.recent-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.recent-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 2px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 18%, transparent);
  text-decoration: none;
}

.recent-code {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.12em;
}

.recent-time {
  color: var(--ink-soft);
  font-size: 12px;
}

.privacy {
  margin-top: 30px;
  text-align: center;
}

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

  to {
    opacity: 1;
    transform: none;
  }
}

.hero-title {
  animation: rise-in 420ms ease-out both;
}

.cards {
  animation: rise-in 520ms ease-out both;
}

.home-how {
  margin-top: clamp(40px, 8vh, 64px);
  padding-top: 22px;
  border-top: 2px solid var(--line);
}

.home-how h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(24px, 5vw, 32px);
  line-height: 1.15;
}

.home-how-intro {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.how-step {
  min-width: 0;
  padding: 16px;
  border: 1.5px solid color-mix(in srgb, var(--line) 45%, transparent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--card) 62%, transparent);
}

.how-num {
  display: inline-grid;
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  place-items: center;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
}

.how-step h3 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.how-step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

.home-faq {
  margin-top: clamp(40px, 8vh, 64px);
  padding-top: 22px;
  border-top: 2px solid var(--line);
}

.home-faq h2 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(24px, 5vw, 32px);
  line-height: 1.15;
}

.home-faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.home-faq-item {
  padding: 16px 18px;
  border: 1.5px solid color-mix(in srgb, var(--line) 45%, transparent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--card) 62%, transparent);
}

.home-faq-item h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.home-faq-item p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.compose {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 150px);
}

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

.counter {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 13px;
}

.counter.warn {
  color: var(--accent-ink);
  font-weight: 600;
}

.compose-text {
  flex: 1;
  width: 100%;
  min-height: 46vh;
  padding: 18px;
  resize: vertical;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  font-size: 17px;
  line-height: 1.6;
}

.file-compose {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 150px);
}

.file-limit {
  margin: 0 0 14px;
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.file-row {
  padding: 12px 14px 10px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  text-align: left;
}

.file-row[data-state="failed"] {
  border-color: var(--accent);
}

.file-row-main {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.file-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-size {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
}

.file-progress {
  height: 8px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 16%, transparent);
}

.file-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--ink);
  transition: width 140ms linear;
}

.file-row[data-state="done"] .file-progress-fill {
  background: var(--sage);
}

.file-row[data-state="failed"] .file-progress-fill {
  background: var(--accent);
}

.file-row-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 12px;
}

.file-row-controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.file-retry,
.file-remove {
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.file-retry {
  border-style: dashed;
}

.file-row[data-state="failed"] .file-state-text {
  color: var(--accent-ink);
  font-weight: 600;
}

.file-empty {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 180px;
  padding: 24px;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--card) 55%, transparent);
  color: var(--ink-soft);
  font: inherit;
  cursor: pointer;
}

.file-empty-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  font-size: 26px;
}

.file-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.file-actions .seal {
  flex: 1;
  width: auto;
  margin-top: 0;
}

.drop-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  border: 3px dashed var(--accent);
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  pointer-events: none;
}

.drop-card {
  padding: 26px 30px;
  border: 2px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: center;
}

.drop-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
}

@media (max-width: 380px) {
  .file-row-foot,
  .file-actions {
    flex-wrap: wrap;
  }

  .file-actions .seal {
    flex-basis: 100%;
  }
}

@media (max-width: 640px) {
  .home-faq-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .how-steps {
    grid-template-columns: minmax(0, 1fr);
  }
}
.home-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.home-facts li {
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-align: center;
}

@media (max-width: 759.98px) {
  .home-facts {
    grid-template-columns: 1fr;
  }
}
