/* Shared by the home page and the two form pages. Plain CSS, no build step —
   editing it is deploying it (nginx serves this directory straight from the
   repo). */

:root {
  color-scheme: dark;
  --amber: #f59e0b;
  --amber-bright: #fbbf24;
  --ink: #0b0d12;
  --text: #f2f3f5;
  --muted: #b1b6bf;
  --subtle: #7a808a;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body {
  background: #000;
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 20px; border: 0; border-radius: 9999px; text-decoration: none; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 600; color: var(--ink);
  background: var(--amber); transition: transform .12s ease, background .12s ease, opacity .12s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--amber-bright); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.btn svg { width: 18px; height: 18px; }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px #2b2f37; }
.btn.ghost:hover { background: #14161b; }

/* ---- home ---- */
.home {
  display: flex; align-items: center; justify-content: center;
  min-height: 100dvh; padding: 24px; text-align: center;
}
.wrap { max-width: 520px; width: 100%; }
img.logo {
  width: 300px; height: 300px; max-width: 72vw;
  border-radius: 9999px; object-fit: cover; box-shadow: 0 8px 40px rgba(0,0,0,.5);
}
p.lead { margin: 24px auto 0; max-width: 34ch; color: var(--muted); line-height: 1.6; font-size: 16px; }
.actions { margin-top: 24px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.socials { margin-top: 22px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.foot { margin-top: 36px; font-size: 12px; color: var(--subtle); }
.foot a { color: var(--amber); text-decoration: none; }

/* ---- form pages ----
   No panel and no card: the form sits straight on the black page, so the
   fields and the type are the whole design. Hence the generous scale. */
.page { max-width: 640px; margin: 0 auto; padding: 40px 28px 80px; }
.head { text-align: left; }
.head h2 { margin: 26px 0 0; font-size: 30px; font-weight: 800; letter-spacing: -.3px; }
.head p { margin: 10px 0 0; max-width: 46ch; font-size: 15px; color: var(--subtle); line-height: 1.6; }
.back {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; margin-left: -12px;
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  transition: color .12s ease, transform .12s ease;
}
.back svg { width: 34px; height: 34px; }
.back:hover { color: var(--amber); transform: translateX(-3px); }

form { padding: 34px 0 0; text-align: left; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 24px; }
.full { grid-column: 1 / -1; }
label {
  display: block; margin-bottom: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--subtle);
}
label .req { color: var(--amber); }

/* Just a yellow rule under each field — no box, no radius, no fill. */
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%; padding: 8px 0 12px;
  border: 0; border-bottom: 2px solid var(--amber); border-radius: 0;
  background: transparent; color: var(--text);
  font-family: inherit; font-size: 18px;
  transition: border-color .12s ease;
}
input:focus, textarea:focus { outline: none; border-bottom-color: var(--amber-bright); }
textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #4e535c; font-size: 16px; }
/* Chrome paints autofilled inputs with a solid pale box; keep them flat. */
input:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px #000 inset;
}

/* file picker — same underline language as the inputs */
.file { display: block; cursor: pointer; }
.file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop {
  display: flex; align-items: center; gap: 12px; padding: 12px 0 14px;
  border-bottom: 2px solid var(--amber);
  font-size: 16px; color: #4e535c;
  transition: color .12s ease;
}
.file:hover .drop, .file input:focus-visible + .drop { color: var(--muted); }
.drop svg { width: 20px; height: 20px; flex: none; color: var(--amber); }
.drop .picked.has-file { color: var(--text); }

/* the honeypot: off-screen, never announced, no human ever fills it in */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.foot-row {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap; margin-top: 36px;
}
.foot-row .btn { padding: 15px 30px; font-size: 15px; }
.note { font-size: 12px; color: var(--subtle); line-height: 1.5; }
.msg { margin-top: 16px; font-size: 14px; line-height: 1.5; }
.msg.err { color: #f87171; }

/* ---- upload overlay ----
   A big file on a home connection takes a minute to send. Without this the
   page just sits there and reads as broken. */
.overlay {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 26px; padding: 24px;
  background: rgba(0,0,0,.94); backdrop-filter: blur(6px);
  opacity: 0; animation: fade-in .18s ease forwards;
}
@keyframes fade-in { to { opacity: 1; } }

.ring { position: relative; width: 168px; height: 168px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { stroke: #1b1e24; }
.ring .bar {
  stroke: var(--amber); stroke-linecap: round;
  transition: stroke-dashoffset .25s ease;
}
.ring .pct {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 800; letter-spacing: -.5px;
  font-variant-numeric: tabular-nums;
}
/* Once the bytes are all sent, the server is still storing them — the ring is
   full but the job isn't done, so it breathes instead of sitting frozen. */
.overlay.finishing .bar { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.overlay .label { font-size: 16px; font-weight: 600; }
.overlay .sub {
  margin-top: 6px; font-size: 13px; color: var(--subtle);
  max-width: 34ch; text-align: center; line-height: 1.5;
}
.overlay .cancel {
  margin-top: 4px; border: 0; background: transparent; cursor: pointer;
  font-family: inherit; font-size: 13px; color: var(--subtle); text-decoration: underline;
}
.overlay .cancel:hover { color: var(--text); }

.done { padding: 80px 0 40px; text-align: center; }
.done .tick {
  width: 62px; height: 62px; margin: 0 auto 22px; display: grid; place-items: center;
  border-radius: 9999px; background: rgba(245,158,11,.14); color: var(--amber);
}
.done .tick svg { width: 30px; height: 30px; }
.done h3 { margin: 0 0 10px; font-size: 24px; font-weight: 800; }
.done p { margin: 0 auto 24px; max-width: 38ch; font-size: 15px; color: var(--subtle); line-height: 1.7; }

@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; gap: 26px; }
  .page { padding: 26px 20px 60px; }
  .head h2 { font-size: 25px; }
}
