/* NaviraTax secure upload: an open page on a slow field of light, no card, no box.
   Brand navy #152E46. Follows the visitor's light/dark setting. */
:root {
  color-scheme: dark light;
  --bg: #04080d; --ink: #f5f7fa; --ink-2: rgba(235, 240, 248, .68); --ink-3: rgba(235, 240, 248, .44);
  --hair: rgba(255, 255, 255, .11); --hair-2: rgba(255, 255, 255, .22);
  --field: rgba(255, 255, 255, .055); --field-hi: rgba(255, 255, 255, .095);
  --accent: #4aa8ff; --accent-soft: rgba(74, 168, 255, .22);
  --green: #30d158; --red: #ff6961; --mark: #f5f7fa;
  --orb-1: rgba(38, 110, 190, .42); --orb-2: rgba(21, 46, 70, .95); --orb-3: rgba(64, 196, 190, .15);
  --torch: rgba(150, 200, 255, .085); --lift: none;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f8fb; --ink: #152e46; --ink-2: rgba(21, 46, 70, .72); --ink-3: rgba(21, 46, 70, .5);
    --hair: rgba(21, 46, 70, .17); --hair-2: rgba(21, 46, 70, .3);
    --field: rgba(255, 255, 255, .82); --field-hi: #fff;
    --lift: 0 1px 2px rgba(21, 46, 70, .05), 0 8px 24px -12px rgba(21, 46, 70, .18);
    --accent: #0a6fd6; --accent-soft: rgba(10, 111, 214, .16);
    --green: #1f8a3b; --red: #d70015; --mark: #152e46;
    --orb-1: rgba(120, 180, 255, .42); --orb-2: rgba(190, 225, 255, .75); --orb-3: rgba(120, 220, 210, .3);
    --torch: rgba(255, 255, 255, .8);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ---------- the light behind everything */
.backdrop { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; background: var(--bg); }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform; }
.orb.one { width: 62vmax; height: 62vmax; left: -18vmax; top: -28vmax; background: radial-gradient(circle, var(--orb-1), transparent 62%); animation: drift-a 34s ease-in-out infinite alternate; }
.orb.two { width: 72vmax; height: 72vmax; right: -30vmax; top: 8vmax; background: radial-gradient(circle, var(--orb-2), transparent 60%); animation: drift-b 44s ease-in-out infinite alternate; }
.orb.three { width: 46vmax; height: 46vmax; left: 18vmax; bottom: -30vmax; background: radial-gradient(circle, var(--orb-3), transparent 60%); animation: drift-c 38s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate3d(9vmax, 7vmax, 0) scale(1.08); } }
@keyframes drift-b { to { transform: translate3d(-8vmax, -6vmax, 0) scale(.94); } }
@keyframes drift-c { to { transform: translate3d(6vmax, -8vmax, 0) scale(1.12); } }
/* a soft pool of light that follows the pointer, a beat behind it */
.torch {
  position: absolute; left: 0; top: 0; width: 760px; height: 760px; margin: -380px 0 0 -380px; border-radius: 50%;
  background: radial-gradient(circle, var(--torch), transparent 62%); opacity: 0; transition: opacity 1s var(--ease); will-change: transform;
}
body.has-pointer .torch { opacity: 1; }

/* ---------- page */
main { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; padding: clamp(28px, 6vh, 60px) 24px 72px; }
.brand { display: flex; align-items: center; gap: 13px; margin-bottom: clamp(44px, 10vh, 96px); }
.mark { flex: none; width: 44px; height: 50px; background: var(--mark); -webkit-mask: url(/logo.svg) center / contain no-repeat; mask: url(/logo.svg) center / contain no-repeat; }
.wordmark { font-size: 31px; font-weight: 700; letter-spacing: -.035em; line-height: 1; }
h1 { margin: 0 0 18px; font-size: clamp(38px, 7.4vw, 60px); line-height: 1.03; letter-spacing: -.038em; font-weight: 700; text-wrap: balance; }
.lede { margin: 0 0 clamp(40px, 7vh, 60px); max-width: 30em; font-size: clamp(17px, 2.5vw, 21px); line-height: 1.42; color: var(--ink-2); text-wrap: pretty; }

fieldset { border: 0; margin: 0 0 38px; padding: 0; min-width: 0; }
fieldset[hidden] { display: none; }
legend { padding: 0; margin-bottom: 14px; font-size: 13px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
label { display: block; margin-bottom: 14px; font-size: 13.5px; color: var(--ink-2); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .row { grid-template-columns: 1fr; gap: 0; } }
input:not([type=file]) {
  display: block; width: 100%; height: 54px; margin-top: 7px; padding: 0 16px; font: inherit; color: var(--ink);
  background: var(--field); border: 1px solid var(--hair); border-radius: 14px; box-shadow: var(--lift);
  -webkit-backdrop-filter: blur(24px) saturate(140%); backdrop-filter: blur(24px) saturate(140%);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
input:not([type=file]):hover { border-color: var(--hair-2); }
input:not([type=file]):focus { outline: none; border-color: var(--accent); background: var(--field-hi); box-shadow: 0 0 0 4px var(--accent-soft); }
input[readonly] { color: var(--ink-2); }
/* browsers paint saved details with their own pale background: keep our field */
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink); caret-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px var(--bg) inset; transition: background-color 99999s;
}

/* The files area has no box: the whole page takes a drop. This is the click target and the prompt. */
#drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 26px 16px 10px; text-align: center; cursor: pointer; color: var(--ink-2); border-radius: 22px;
  transition: opacity .25s;
}
#drop strong { font-size: 22px; font-weight: 600; letter-spacing: -.018em; color: var(--ink); transition: color .2s; }
#drop span { font-size: 15px; }
.dropicon {
  display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 12px; border-radius: 50%;
  color: var(--ink); background: var(--field-hi); border: 1px solid var(--hair-2); box-shadow: var(--lift);
  -webkit-backdrop-filter: blur(24px) saturate(140%); backdrop-filter: blur(24px) saturate(140%);
  transition: transform .3s var(--ease), background-color .25s, color .25s, border-color .25s;
}
#drop:not(.locked):hover .dropicon { transform: translateY(-4px); background: var(--accent); color: #fff; border-color: transparent; }
#drop.locked { cursor: not-allowed; opacity: .5; }
#drop:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* While a file is dragged over the window: a lit frame around the whole page. */
.dropveil {
  position: fixed; inset: 0; z-index: 5; pointer-events: none; opacity: 0; visibility: hidden;
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: opacity .22s var(--ease), visibility 0s linear .22s;
}
body.dragging .dropveil { opacity: 1; visibility: visible; transition: opacity .22s var(--ease), visibility 0s; }
.dropveil .frame {
  position: absolute; inset: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  text-align: center; border-radius: 30px; border: 1.5px solid var(--accent); color: var(--ink-2);
  box-shadow: inset 0 0 0 6px var(--accent-soft), inset 0 0 120px -30px var(--accent);
  transform: scale(.985); transition: transform .3s var(--ease);
}
body.dragging .dropveil .frame { transform: none; }
.dropveil strong { font-size: clamp(30px, 5vw, 46px); font-weight: 700; letter-spacing: -.03em; color: var(--ink); }
.dropveil span { font-size: 17px; }
.dropveil .dropicon { width: 72px; height: 72px; margin-bottom: 14px; background: var(--accent); color: #fff; border-color: transparent; }
.dropveil .wait, body.drag-locked .dropveil .go { display: none; }
body.drag-locked .dropveil .wait { display: block; }
body.drag-locked .dropveil .frame { border-color: var(--hair-2); box-shadow: inset 0 0 0 6px var(--field); }
body.drag-locked .dropveil .dropicon { background: var(--field-hi); color: var(--ink-2); border-color: var(--hair-2); }

.hint { margin: 12px 0 0; font-size: 13px; color: var(--ink-3); }
#hint { text-align: center; }
.error { margin: 10px 0 0; font-size: 14px; color: var(--red); }
.linkbtn { border: 0; background: none; padding: 0; font: inherit; color: var(--accent); cursor: pointer; }

#list { list-style: none; margin: 16px 0 0; padding: 0; }
#list li {
  margin-top: 10px; padding: 14px 16px; border-radius: 16px; background: var(--field); border: 1px solid var(--hair); box-shadow: var(--lift);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
}
.file { display: flex; align-items: baseline; gap: 12px; }
.file .name { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 15.5px; }
.file .meta { font-size: 13px; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.file button { border: 0; background: none; color: var(--accent); font: inherit; font-size: 13px; padding: 0; cursor: pointer; }
.bar { height: 3px; margin-top: 11px; border-radius: 2px; background: var(--hair); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 2px; background: var(--accent); transition: width .25s var(--ease), background-color .3s; }
li.ok .bar i { background: var(--green); }
li.ok .meta { color: var(--green); font-weight: 600; }
li.bad .meta { color: var(--red); }

.status { margin: 18px 0 0; padding: 14px 16px; border-radius: 16px; font-size: 14.5px; color: var(--ink-2); background: var(--field); border: 1px solid var(--hair); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.status.done { color: var(--green); font-weight: 600; border-color: color-mix(in srgb, var(--green) 38%, transparent); background: color-mix(in srgb, var(--green) 11%, transparent); }
.status.warn { color: var(--red); border-color: color-mix(in srgb, var(--red) 38%, transparent); background: color-mix(in srgb, var(--red) 10%, transparent); }

footer { margin-top: 46px; }
.trust { display: flex; gap: 9px; align-items: flex-start; margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink-3); }
.trust svg { flex: none; margin-top: 1px; }

@media (prefers-reduced-motion: no-preference) {
  .brand, .hero, form, footer { animation: rise .8s var(--ease) both; }
  .hero { animation-delay: .07s; }
  form { animation-delay: .14s; }
  footer { animation-delay: .22s; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } }
}
@media (prefers-reduced-motion: reduce) {
  .orb { animation: none; }
  .torch { display: none; }
  .bar i, #drop, .dropicon, .dropveil, .dropveil .frame { transition: none; }
}
