/* The guest page: one card at a time, on the site's tokens (site.css). */
.g { min-height: 100vh; display: flex; flex-direction: column; }
.card-wrap { flex: 1; width: min(480px, 100% - 32px); margin: 24px auto 64px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 36px 32px 32px;
  box-shadow: 0 30px 80px -40px rgba(97, 0, 255, .35);
}
.card h1 { font-size: clamp(26px, 5vw, 32px); line-height: 1.12; letter-spacing: -.035em; max-width: none; }
.card > p { margin: 12px 0 0; color: var(--text-sec); }
.card .center { text-align: center; }
.muted { color: var(--text-sec); font-size: 14px; }

form { margin-top: 24px; }
input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font: 600 20px/1.3 var(--font);
  letter-spacing: -.01em;
}
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.error { min-height: 1.4em; margin: 8px 0 0; font-size: 14px; color: #E5484D; }

button {
  font: 600 16px/1 var(--font);
  letter-spacing: -.01em;
  border-radius: var(--radius-sm);
  padding: 15px 22px;
  cursor: pointer;
  border: 1px solid transparent;
}
.primary { width: 100%; margin-top: 18px; color: #fff; background: linear-gradient(135deg, var(--violet), #8A3DFF); box-shadow: 0 10px 24px -10px rgba(97, 0, 255, .6); }
.primary:hover { filter: brightness(1.08); }
.secondary { color: var(--text); background: transparent; border-color: var(--border); }
.secondary:hover { border-color: var(--accent); }
#retry { margin-top: 22px; }
.actions { display: flex; gap: 10px; margin-top: 24px; }
.actions button { flex: 1; margin: 0; }

.code-line { margin-top: 20px !important; font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--text) !important; }

.files { list-style: none; margin: 20px 0 10px; padding: 0; border-top: 1px solid var(--border); }
.files li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.files span, .files a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.files a { color: var(--accent); text-decoration: none; }
.files small { flex: none; color: var(--text-sec); font-size: 14px; }
.note { font-size: 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(245, 165, 36, .14); color: var(--text) !important; }

.meter { height: 6px; margin-top: 26px; border-radius: 6px; background: var(--border); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--violet), var(--mint)); transition: width .2s linear; }
.row { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px !important; }
.row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.spinner {
  width: 28px; height: 28px; margin: 8px auto 0;
  border-radius: 50%;
  border: 2.5px solid var(--border);
  border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.app-pitch { display: flex; gap: 14px; align-items: flex-start; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); }
.app-pitch p { margin: 0; font-size: 14px; color: var(--text-sec); }
.app-pitch a { color: var(--accent); font-weight: 600; }
.files + .app-pitch { border-top: 0; padding-top: 6px; }

.fine { margin: 22px 8px 0; font-size: 13px; color: var(--text-muted); text-align: center; }

@media (max-width: 520px) {
  .card { padding: 28px 22px 24px; border-radius: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 2.4s; }
  .meter i { transition: none; }
}
