/* Avail app pages: landing, sign-in, job status, My reports, Settings, errors. Tokens come from base.css. */
[hidden] { display: none !important; }
.page.narrow { max-width: 30rem; }
.page.wide { max-width: 56rem; }
.page.center { text-align: center; justify-items: center; }
.center-row { justify-content: center; }
.row.between { justify-content: space-between; }
.row.tight, .stack.tight { gap: .4rem; }
.stack.tight { display: grid; }

/* Landing */
.hero { background: linear-gradient(135deg, #202124 0%, #2d1a3a 50%, #3a1530 100%); color: #f7f2f1; border-bottom: 1px solid var(--border); }
.hero-in { padding-block: clamp(2.5rem, 8vw, 5rem); display: grid; gap: 1.1rem; max-width: 46rem; margin-inline: auto; }
.hero h1 { color: #fff; }
.hero .lede { font-size: 1.1rem; color: #dcd6d5; max-width: 38rem; }
.hero .muted, .hero .trial { color: #dcd6d5; }
.hero a { color: #ff8aa0; }
.hero input[type="url"] { background: rgba(0,0,0,.35); border-color: rgba(255,255,255,.28); color: #fff; }
.hero input[type="url"]::placeholder { color: #a9a4a3; }
.hero .form-error { color: #ff8aa0; }
.url-form { display: grid; gap: .5rem; margin-top: .4rem; }
.url-form .inline-form > input { flex: 1 1 18rem; }
.key-panel { display: grid; gap: .5rem; color: var(--text); justify-items: start; }
.key-panel a.btn { color: var(--on-accent); } /* beats .hero a */
.key-panel a.btn:hover { color: #fff; }
.section { padding-block: 2.5rem 0; display: grid; gap: 1rem; }
.section:last-of-type { padding-bottom: 4rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.step { position: relative; }
.step-n { width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; background: var(--tint-o); color: var(--orange); font: 700 1rem/1 var(--head); }
.includes { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.includes li { padding-left: 1rem; border-left: 3px solid var(--purple); }

/* Sign in */
.divider { text-align: center; margin: .2rem 0; }

/* Job status */
.video-head { display: grid; gap: 1rem; grid-template-columns: minmax(0, 11rem) 1fr; align-items: center; }
.thumb { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: var(--surface2); }
.vt { font-size: clamp(1.3rem, 4vw, 1.9rem); overflow-wrap: anywhere; }
@media (max-width: 30rem) { .video-head { grid-template-columns: 1fr; } }
.stages { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
.stage { display: flex; align-items: center; gap: .75rem; padding: .5rem .25rem; color: var(--dim); font-weight: 500; }
.stage .dot { width: .9rem; height: .9rem; border-radius: 50%; border: 2px solid var(--border2); flex: none; }
.stage.done { color: var(--muted); }
.stage.done .dot { background: var(--pass); border-color: var(--pass); }
.stage.current { color: var(--text); font-weight: 700; }
.stage.current .dot { border-color: var(--orange); background: var(--orange); box-shadow: 0 0 0 0 var(--tint-o); animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 .5rem transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.status-msg { font-weight: 600; }
.job .meta { font-variant-numeric: tabular-nums; }

/* My reports */
.report-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.report-row { display: grid; grid-template-columns: 8rem minmax(0, 1fr) auto; gap: 1rem; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: .75rem; }
.rr-body { display: grid; gap: .35rem; min-width: 0; }
.rr-title { font-size: 1.05rem; overflow-wrap: anywhere; }
.rr-title a { color: var(--text); text-decoration: none; }
.rr-title a:hover { color: var(--coral); text-decoration: underline; }
@media (max-width: 36rem) {
  .report-row { grid-template-columns: 6rem minmax(0, 1fr); }
  .report-row .btn { grid-column: 1 / -1; justify-self: start; }
}
.empty { justify-items: start; }

/* Settings */
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.25rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 30rem) { .kv { grid-template-columns: 1fr; gap: 0; } .kv dd { margin-bottom: .6rem; } }
.guide { margin: 0; padding-left: 1.25rem; display: grid; gap: .4rem; }
.danger-zone { border-color: color-mix(in srgb, var(--fail) 40%, var(--border)); }
code { background: var(--surface2); padding: .1em .4em; border-radius: 4px; }

/* Legal */
.legal { gap: .9rem; }
.legal h2 { margin-top: 1rem; font-size: 1.35rem; }
.legal ul { margin: 0; padding-left: 1.25rem; display: grid; gap: .5rem; }
