/* The look of the neutral file-transfer site (front, sign-in, invite, upload). Loaded after style.css. */
:root {
  --bg: #faf6f2; --surface: #ffffff; --text: #231c18; --muted: #6e625a; --line: #eadfd6; --field: #ffffff;
  --accent: #c2410c; --accent-text: #ffffff; --accent-soft: #fde8dc;
  --ink: #2a211c; --ink-text: #fbeee6;
  --clean: #2f6f8f; --clean-soft: #e3f0f6;
  --shadow: 0 1px 2px rgb(60 30 10 / 6%), 0 8px 24px rgb(60 30 10 / 8%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #171210; --surface: #211a17; --text: #f3e9e2; --muted: #b5a59a; --line: #3a2e28; --field: #1a1412;
    --accent: #fb8c4e; --accent-text: #1d0e05; --accent-soft: #3d2216;
    --ink: #0f0b09; --ink-text: #f6e6db;
    --clean: #7cc0e0; --clean-soft: #16303c;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 35%);
  }
}

body { background: var(--bg); }

/* header: dark band with the mark */
header.top { background: var(--ink); border-bottom: 3px solid var(--accent); padding: 12px 20px; }
header.top .brand { color: var(--ink-text); display: inline-flex; align-items: center; gap: 10px; letter-spacing: .01em; }
header.top .muted { color: color-mix(in srgb, var(--ink-text) 70%, transparent); }
header.top a:not(.brand):not(.button) { color: var(--ink-text); }
header.top button.secondary, header.top .button.secondary { color: var(--ink-text); border-color: color-mix(in srgb, var(--ink-text) 45%, transparent); }
.mark {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, #f97316, #b91c1c); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .02em;
}

/* cards and controls */
section.card { border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 22px; }
button, .button { border-radius: 8px; padding: 9px 18px; transition: transform .08s ease, filter .15s ease; }
button:not(:disabled):hover, .button:hover { filter: brightness(1.08); }
button:not(:disabled):active, .button:active { transform: translateY(1px); }
input[type=text], input[type=email], input[type=password], textarea { border-radius: 8px; padding: 10px 12px; }
input:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 1px; border-color: var(--accent); }
h2 { font-size: 20px; }

/* front page */
.hero { background: radial-gradient(1200px 400px at 85% -10%, #f97316 0%, transparent 60%), linear-gradient(160deg, #2a211c 0%, #4a2414 60%, #7c2d12 100%); color: #fbeee6; }
.hero .inner { max-width: 880px; margin: 0 auto; padding: 72px 20px 80px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.hero .eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 700; color: #fdba74; margin: 0 0 10px; }
.hero h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.1; margin: 0 0 14px; }
.hero p.lead { font-size: 18px; max-width: 560px; margin: 0; color: #f3d9c9; }
.front-card { max-width: 880px; margin: -56px auto 48px; padding: 0 20px; }
.front-card section.card { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.front-card section.card h2 { margin-top: 0; }
.front-card section.card p { margin-bottom: 0; }
.points { max-width: 880px; margin: 48px auto 64px; padding: 0 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.points div { border-left: 3px solid var(--accent); padding: 4px 0 4px 14px; }
.points strong { display: block; margin-bottom: 2px; }
@media (max-width: 640px) { .front-card section.card { grid-template-columns: 1fr; } .hero .inner { padding: 40px 16px 56px; grid-template-columns: 1fr; justify-items: center; text-align: center; } .hero p.lead { margin: 0 auto; } }

/* sign-in and invite */
.narrow { margin-top: 64px; }
.narrow section.card { border-top: 4px solid var(--accent); }

/* upload page: each box has its own colour so the two sets are never confused */
.drops { gap: 20px; }
.dropbox { --tone: var(--accent); --tone-soft: var(--accent-soft); }
.dropbox.clean { --tone: var(--clean); --tone-soft: var(--clean-soft); }
.dropbox h3 { color: var(--tone); display: flex; align-items: center; gap: 8px; }
.dropbox h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--tone); }
.drop { border-color: color-mix(in srgb, var(--tone) 40%, var(--line)); background: color-mix(in srgb, var(--tone-soft) 55%, var(--field)); border-radius: 12px; min-height: 160px; transition: background .15s ease, border-color .15s ease; }
.drop::before {
  content: ""; width: 40px; height: 40px; margin-bottom: 6px; background: var(--tone);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4m0 0L7 9m5-5 5 5'/%3E%3Cpath d='M4 15v3a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-3'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4m0 0L7 9m5-5 5 5'/%3E%3Cpath d='M4 15v3a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.drop strong { color: var(--tone); }
.drop:hover, .drop:focus-visible, .drop.over { border-color: var(--tone); }
.drop.over { background: var(--tone-soft); border-style: solid; }
ul.files li { border-bottom-color: var(--line); }
ul.files progress { accent-color: var(--tone); }
.dropbox ul.files li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--tone); }
.sent-ok { background: color-mix(in srgb, var(--ok) 12%, var(--surface)); border: 1px solid var(--ok); color: var(--ok); border-radius: 10px; padding: 10px 14px; font-weight: 600; }

/* earnings tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.tile { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.tile .label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.tile strong { font-size: 24px; font-variant-numeric: tabular-nums; }
.tile.owing { background: linear-gradient(135deg, #f97316, #b91c1c); border-color: transparent; color: #fff; }
.tile.owing .label { color: rgb(255 255 255 / 85%); }
.earnings .small { margin: 12px 0 0; }
td:last-child { font-variant-numeric: tabular-nums; }

/* the confirmation asked for every project */
.authority { margin-top: 16px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 0; padding: 10px 14px; background: var(--bg); }
.authority p { margin: 0 0 8px; }

/* check results */
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.pill.checking { background: var(--clean-soft); color: var(--clean); }
.pill.ok { background: color-mix(in srgb, var(--ok) 15%, var(--surface)); color: var(--ok); }
.pill.bad { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); color: var(--danger); }
tr.reasons td { background: color-mix(in srgb, var(--danger) 6%, var(--surface)); border-left: 3px solid var(--danger); }
tr.reasons ul { margin: 6px 0 2px; padding-left: 20px; }
tr.reasons li { margin: 3px 0; }

/* front page: the glowing mark. Decoration only; says nothing about the work. */
.orb { position: relative; width: clamp(200px, 30vw, 300px); aspect-ratio: 1; }
.orb > span { position: absolute; border-radius: 50%; }
.orb .ring { border: 1px solid rgb(253 186 116 / 22%); }
.orb .r1 { inset: 0; }
.orb .r2 { inset: 13%; border-color: rgb(253 186 116 / 30%); border-style: dashed; animation: spin 40s linear infinite reverse; }
.orb .r3 { inset: 26%; border-color: rgb(253 186 116 / 40%); }
.orb .arc {
  inset: -1px;
  background: conic-gradient(from 0deg, transparent 0 62%, rgb(253 186 116 / 0%) 62%, #fdba74 92%, #fff7ed 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  animation: spin 7s linear infinite;
}
.orb .orbit { inset: 13%; animation: spin 14s linear infinite; }
.orb .o2 { inset: 0; animation-duration: 22s; animation-direction: reverse; }
.orb .orbit::after {
  content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%;
  background: #fff7ed; box-shadow: 0 0 12px 3px rgb(253 186 116 / 80%);
}
.orb .o2::after { width: 6px; height: 6px; top: -3px; margin-left: -3px; background: #fdba74; }
.orb .core {
  inset: 34%; display: grid; place-items: center; color: #fff; font-weight: 800; letter-spacing: .02em;
  font-size: clamp(22px, 3.4vw, 34px);
  background: radial-gradient(circle at 35% 30%, #fdba74 0%, #f97316 38%, #b91c1c 100%);
  box-shadow: 0 0 40px 6px rgb(249 115 22 / 45%), inset 0 -6px 18px rgb(127 29 29 / 45%);
  animation: breathe 4.5s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { box-shadow: 0 0 34px 4px rgb(249 115 22 / 40%), inset 0 -6px 18px rgb(127 29 29 / 45%); }
                     50% { box-shadow: 0 0 64px 14px rgb(249 115 22 / 60%), inset 0 -6px 18px rgb(127 29 29 / 45%); } }
@media (prefers-reduced-motion: reduce) { .orb * { animation: none !important; } }
