/*
 * ProofPay theme — restrained fintech register.
 * Flat surfaces, hairline borders, editorial typography (Inter for UI,
 * IBM Plex Mono for money and IDs). No gradients, glow, blur or novelty
 * animation; motion is limited to short state transitions.
 * Presentation only: re-skins the app's markup via its own CSS variables
 * and styles the hero flow and stepper added by fx.js.
 */

:root{
  --navy:#0d1622;
  --blue:#2470ac;
  --blue-dark:#1b5a8c;
  --bg:#0c1118;
  --card:#121a26;
  --ink:#e8edf4;
  --muted:#8b98ab;
  --line:#232f42;
  --green:#3f9e63;
  --green-bg:rgba(63,158,99,.12);
  --amber:#c9a227;
  --amber-bg:rgba(201,162,39,.12);
  --red:#d9534f;
  --red-bg:rgba(217,83,79,.12);
  --cyan:#5b8fc4;
  --mono:"IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
}

/* ---------- backdrop ---------- */
body{
  background:var(--bg);
  color:var(--ink);
  letter-spacing:-0.011em;
  -webkit-font-smoothing:antialiased;
}
body::before{ content:none; }
.wrap, .site-header, footer{ position:relative; z-index:1; }

/* ---------- header ---------- */
.site-header{
  background:#0d1622;
  border-bottom:1px solid var(--line);
  box-shadow:none;
  backdrop-filter:none;
}
.logo{
  background:#1f6fb4;
  color:#fff;
  box-shadow:none;
  border-radius:6px;
}
.brand-name{ text-shadow:none; font-weight:700; letter-spacing:-0.02em; }
.brand-tag{ color:var(--muted); }
.sandbox-badge{
  box-shadow:none;
  background:transparent;
  border:1px solid var(--amber);
  color:var(--amber);
  font-weight:600;
  letter-spacing:.04em;
  text-transform:uppercase;
  font-size:11px;
}

/* ---------- cards / forms ---------- */
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:10px;
  box-shadow:0 1px 2px rgba(0,0,0,.25);
  backdrop-filter:none;
}
.step-num{
  background:#1f6fb4;
  box-shadow:none;
  border-radius:6px;
  font-family:var(--mono);
  font-weight:600;
}
.card h2{ color:#fff; font-weight:700; letter-spacing:-0.02em; }
.intro{ color:var(--muted); font-size:15px; line-height:1.65; }
label{ color:#c3cedd; font-weight:500; }
input[type=text],input[type=email],input[type=number],input[type=url],textarea{
  background:#0d141f; color:var(--ink); border-color:var(--line); border-radius:8px;
}
input:focus,textarea:focus{ outline:none; border-color:#3d6a99; background:#0d141f; box-shadow:0 0 0 3px rgba(36,112,172,.25); }
::placeholder{ color:#5f6d82; }

.btn{
  background:#2470ac;
  box-shadow:none;
  border-radius:8px;
  font-weight:600;
  letter-spacing:-0.01em;
  transition:background .15s;
}
.btn:hover{ background:#2b7bbb; box-shadow:none; transform:none; }
.btn:active{ transform:none; }
.btn:disabled{ background:#2a3648; box-shadow:none; color:#7d8ca1; }
.btn.ghost{ background:transparent; color:#b9c8dc; border:1px solid var(--line); box-shadow:none; }
.btn.ghost:hover{ background:#182233; }
.btn.green{ background:#2e7d4f; box-shadow:none; }
.btn.green:hover{ background:#35915c; }

.notice{ border-radius:8px; }
.notice.warn{ border-color:rgba(201,162,39,.5); }
.notice.ok{ border-color:rgba(63,158,99,.5); }
.notice.err{ border-color:rgba(217,83,79,.5); }
.notice.info{ background:rgba(36,112,172,.12); color:#b9d2ea; border-color:rgba(91,143,196,.4); }
code{ color:#9fc3e8; font-family:var(--mono); font-size:.92em; }

/* ---------- milestones ---------- */
.milestone-card{ background:#0f1723; border-color:var(--line); transition:border-color .2s; border-radius:10px; }
.milestone-card:hover{ border-color:#33465f; transform:none; }
.milestone-card.active{ border-color:#3d6a99; box-shadow:none; }
.pill{
  border:1px solid var(--line);
  font-size:11px; font-weight:600; letter-spacing:.05em; text-transform:uppercase;
  border-radius:999px;
}
.pill.draft{ background:transparent; color:var(--muted); }
.pill.funded{ background:rgba(36,112,172,.14); color:#8fc1ec; border-color:rgba(91,143,196,.45); box-shadow:none; }
.pill.released{ background:var(--green-bg); color:#6fce93; border-color:rgba(63,158,99,.45); box-shadow:none; }
.crit-badge{ background:var(--amber-bg); color:var(--amber); }
.ms-ids{ color:var(--muted); font-family:var(--mono); font-size:12px; }
.total-row{ color:#fff; font-family:var(--mono); }

/* ---------- verification ---------- */
.score-num{ color:#fff; font-size:36px; font-family:var(--mono); font-weight:600; text-shadow:none; }
.bar{ background:#1c2839; box-shadow:none; border-radius:4px; }
.bar>div{ transition:width .6s ease; box-shadow:none; background:#3f9e63; }
table.verify th{ color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:.05em; }
table.verify td{ border-color:var(--line); }
.banner{ border-radius:8px; }
.banner.release{ border-color:rgba(63,158,99,.55); box-shadow:none; }
.banner.revise{ border-color:rgba(201,162,39,.55); box-shadow:none; }
a.linklike{ color:#8fc1ec; }

/* ---------- ledger ---------- */
#ledger-grid.ag-theme-quartz{
  --ag-background-color:#0e1622;
  --ag-header-background-color:#131e2d;
  --ag-foreground-color:#d5dee9;
  --ag-header-foreground-color:#9fb0c3;
  --ag-border-color:#232f42;
  --ag-row-hover-color:rgba(91,143,196,.07);
  --ag-odd-row-background-color:rgba(255,255,255,.015);
  --ag-font-family:"Inter",-apple-system,"Segoe UI",Roboto,sans-serif;
  border-radius:8px; overflow:hidden;
}
table.ledger td, table.ledger th{ border-color:var(--line); }
table.ledger td{ font-family:var(--mono); font-size:12.5px; }

/* ================================================================
   HERO — money flow: Client → Vault → AI Gate → Freelancer
   ================================================================ */
.fx-hero{
  border:1px solid var(--line); border-radius:10px; padding:18px; margin-bottom:18px;
  background:var(--card);
  box-shadow:0 1px 2px rgba(0,0,0,.25);
}
.fx-flow{ display:flex; align-items:stretch; gap:6px; }
.fx-node{
  flex:0 1 168px; min-width:0; text-align:left; padding:12px 14px; border-radius:8px;
  border:1px solid var(--line); background:#0f1723; color:var(--muted);
  transition:border-color .3s;
}
.fx-node-ico{
  display:block; font-family:var(--mono); font-size:12px; font-weight:600;
  color:#5f748f; letter-spacing:.08em; line-height:1.2; filter:none; transition:none;
}
.fx-node-label{ display:block; font-weight:600; font-size:13.5px; color:#dbe4ef; margin-top:4px; }
.fx-node-sub{ display:block; font-size:11.5px; margin-top:2px; line-height:1.35; }
.fx-amount{ display:block; font-family:var(--mono); font-size:20px; font-weight:600; color:#e8edf4; text-shadow:none; margin-top:4px; }
.fx-node.lit{ color:#aebccf; }
#fx-node-vault.lit{ border-color:#3d6a99; box-shadow:none; }
#fx-node-gate.lit{ border-color:rgba(63,158,99,.6); box-shadow:none; }
#fx-node-gate.blocked{ border-color:rgba(201,162,39,.6); box-shadow:none; }
#fx-node-free.lit{ border-color:rgba(63,158,99,.6); box-shadow:none; }
#fx-node-client.lit{ border-color:#3d6a99; box-shadow:none; }
.fx-node.pulse{ animation:none; }
.fx-link{ flex:1 1 30px; position:relative; align-self:center; height:1px; min-width:18px;
  background:#2a3a52; border-radius:0; }
.fx-dot{ display:none; }
.fx-hero-note{ text-align:left; color:var(--muted); font-size:12.5px; margin:14px 0 0; }
.fx-hero-note strong{ color:#dbe4ef; font-weight:600; }

/* ================================================================
   STEPPER — Brief → Fund → Submit → Verify → Release
   ================================================================ */
.fx-stepper{
  list-style:none; display:flex; gap:0; margin:0 0 18px; padding:14px 16px;
  border:1px solid var(--line); border-radius:10px; background:var(--card);
  box-shadow:0 1px 2px rgba(0,0,0,.25);
}
.fx-stepper li{
  flex:1; display:flex; align-items:center; gap:9px; color:var(--muted);
  font-size:13px; font-weight:500; position:relative; min-width:0;
}
.fx-stepper li:not(:last-child)::after{
  content:""; flex:1; height:1px; margin:0 10px;
  background:#2a3a52; transition:background .3s;
}
.fx-step-dot{
  width:26px; height:26px; flex:none; border-radius:50%; display:inline-flex; align-items:center; justify-content:center;
  font-family:var(--mono); font-size:12px; font-weight:600; background:transparent; color:var(--muted);
  border:1px solid var(--line); transition:all .3s;
}
.fx-stepper li.done{ color:#6fce93; }
.fx-stepper li.done .fx-step-dot{ background:#2e7d4f; color:#fff; border-color:transparent; box-shadow:none; }
.fx-stepper li.done:not(:last-child)::after{ background:rgba(63,158,99,.55); box-shadow:none; }
.fx-stepper li.current{ color:#fff; }
.fx-stepper li.current .fx-step-dot{
  background:#2470ac; color:#fff; border-color:transparent;
  box-shadow:none; animation:none;
}
.fx-stepper li span.fx-step-name{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* ================================================================
   VERIFICATION — no scan/stamp/shake theatre; states simply appear
   ================================================================ */
#verify-report{ position:relative; overflow:hidden; border-radius:8px; }
#verify-report table.verify tbody tr{ transition:none; }
#verify-report table.verify tbody tr.fx-row-hidden{ opacity:1; transform:none; }
#verify-report table.verify tbody tr.fx-row-in{ animation:none; }
.fx-stamp{ display:inline-block; animation:none; }
ul.missing li.fx-gap{
  background:var(--red-bg); border:1px solid rgba(217,83,79,.4); border-radius:8px;
  padding:5px 9px; margin-bottom:6px; list-style:none; margin-left:-20px;
  animation:none;
}

/* confetti retired */
#fx-confetti{ display:none; }

/* ---------- responsive ---------- */
@media (max-width:720px){
  .fx-node{ flex-basis:0; padding:10px; }
  .fx-node-sub{ display:none; }
  .fx-node-ico{ font-size:11px; }
  .fx-amount{ font-size:15px; }
  .fx-node-label{ font-size:11.5px; }
  .fx-stepper{ padding:12px 10px; overflow-x:auto; }
  .fx-stepper li{ font-size:11.5px; gap:6px; }
  .fx-stepper li:not(:last-child)::after{ margin:0 5px; }
  .fx-step-dot{ width:23px; height:23px; font-size:11px; }
  .score-num{ font-size:30px; }
}

/* ================================================================
   RESTRAINED GLOW — soft ambience and state glow, kept quiet:
   a gentle backdrop wash, depth on cards, a lit ring on active
   flow nodes, travelling pulses on the connectors, soft emphasis
   on scores and verdict banners. No confetti, sound or theatre.
   ================================================================ */
body{
  background:
    radial-gradient(900px 480px at 85% -120px, rgba(36,112,172,.14), transparent 60%),
    radial-gradient(700px 420px at -10% 30%, rgba(27,90,140,.12), transparent 60%),
    var(--bg);
  background-attachment:fixed;
}
.site-header{
  background:linear-gradient(120deg, #0d1622, #10233a 60%, #123152);
  box-shadow:0 4px 24px rgba(0,0,0,.35);
}
.logo{ box-shadow:0 2px 10px rgba(31,111,180,.45); }
.card{ box-shadow:0 2px 6px rgba(0,0,0,.3), 0 14px 34px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.04); }
.btn{ box-shadow:0 2px 10px rgba(36,112,172,.35); }
.btn:hover{ box-shadow:0 4px 16px rgba(36,112,172,.45); }
.btn.green{ box-shadow:0 2px 10px rgba(46,125,79,.35); }
.fx-hero{ box-shadow:0 2px 6px rgba(0,0,0,.3), 0 14px 34px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.04); }
.fx-node{ transition:border-color .4s, box-shadow .4s; }
#fx-node-client.lit{ box-shadow:0 0 18px rgba(36,112,172,.28); }
#fx-node-vault.lit{ box-shadow:0 0 22px rgba(36,112,172,.38); }
#fx-node-gate.lit{ box-shadow:0 0 22px rgba(63,158,99,.32); }
#fx-node-gate.blocked{ box-shadow:0 0 20px rgba(201,162,39,.3); }
#fx-node-free.lit{ box-shadow:0 0 22px rgba(63,158,99,.38); }
.fx-amount{ text-shadow:0 0 14px rgba(91,143,196,.35); }
.fx-link{ background:linear-gradient(90deg, rgba(91,143,196,.12), rgba(91,143,196,.45), rgba(91,143,196,.12)); height:2px; }
.fx-dot{
  display:block; position:absolute; top:50%; left:0; width:7px; height:7px; margin-top:-3.5px;
  border-radius:50%; background:#8fc1ec; box-shadow:0 0 10px 2px rgba(91,143,196,.5);
  animation:fxTravel 3.2s linear infinite;
}
.fx-link .fx-dot.d2{ animation-delay:1.6s; background:#6fce93; box-shadow:0 0 10px 2px rgba(63,158,99,.45); }
@keyframes fxTravel{ 0%{ left:0; opacity:0; } 12%{ opacity:1; } 88%{ opacity:1; } 100%{ left:calc(100% - 7px); opacity:0; } }
.fx-stepper li.current .fx-step-dot{ box-shadow:0 0 14px rgba(36,112,172,.5); }
.fx-stepper li.done .fx-step-dot{ box-shadow:0 0 10px rgba(63,158,99,.35); }
.score-num{ text-shadow:0 0 18px rgba(91,143,196,.3); }
.bar>div{ box-shadow:0 0 10px rgba(63,158,99,.35); }
.banner.release{ box-shadow:0 0 20px rgba(63,158,99,.16); }
.banner.revise{ box-shadow:0 0 20px rgba(201,162,39,.14); }
.pill.funded{ box-shadow:0 0 10px rgba(36,112,172,.25); }
.pill.released{ box-shadow:0 0 10px rgba(63,158,99,.25); }
.milestone-card.active{ box-shadow:0 0 0 3px rgba(61,106,153,.25), 0 0 20px rgba(36,112,172,.14); }

/* ================================================================
   DEVPOST MATCH — re-skin to the PayPal AI Hackathon identity:
   deep navy #101354, mint #48FF8B, PayPal cyan #35A6FF, chunky
   Archivo headings (the banner's grotesque register). Structure,
   spacing and behaviour are unchanged from the mature theme.
   ================================================================ */
:root{
  --navy:#101354;
  --blue:#35a6ff;
  --blue-dark:#1b7fd4;
  --bg:#0b0d45;
  --card:#151861;
  --ink:#f2f4ff;
  --muted:#a6abde;
  --line:#2b2f7d;
  --green:#48ff8b;
  --green-bg:rgba(72,255,139,.13);
  --cyan:#35a6ff;
}
body{
  background:
    radial-gradient(900px 480px at 88% -120px, rgba(53,166,255,.16), transparent 60%),
    radial-gradient(760px 460px at -10% 108%, rgba(72,255,139,.09), transparent 60%),
    var(--bg);
  background-attachment:fixed;
}
.site-header{
  background:linear-gradient(120deg, #101354, #1b1e6e 55%, #14418f);
  border-bottom:1px solid rgba(72,255,139,.25);
  box-shadow:0 4px 24px rgba(0,0,0,.4);
}
.logo{ background:#48ff8b; color:#101354; box-shadow:0 2px 12px rgba(72,255,139,.45); }
.brand-name, .card h2, .fx-node-name{
  font-family:"Archivo","Inter",-apple-system,"Segoe UI",Roboto,sans-serif;
  font-weight:800; letter-spacing:-0.015em;
}
.card{ background:var(--card); box-shadow:0 2px 6px rgba(0,0,0,.35), 0 14px 34px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.05); }
.btn{ background:#48ff8b; color:#101354; box-shadow:0 2px 12px rgba(72,255,139,.3); }
.btn:hover{ background:#6bffa3; box-shadow:0 4px 16px rgba(72,255,139,.4); }
.btn:disabled{ background:#23265e; color:#7a7fb8; box-shadow:none; }
.btn.ghost{ background:transparent; color:#cfd4ff; border:1px solid var(--line); box-shadow:none; }
.btn.ghost:hover{ background:#1b1e6e; }
.btn.green{ background:#2bde77; color:#0b0d45; box-shadow:0 2px 12px rgba(72,255,139,.3); }
.btn.green:hover{ background:#48ff8b; }
input[type=text],input[type=email],input[type=number],input[type=url],textarea{
  background:#0d1050; border-color:var(--line); color:var(--ink);
}
input:focus,textarea:focus{ border-color:#48ff8b; background:#0d1050; box-shadow:0 0 0 3px rgba(72,255,139,.22); }
::placeholder{ color:#6e73b8; }
.milestone-card{ background:#10134e; }
code{ color:#8fd0ff; }
.notice.info{ background:rgba(53,166,255,.12); color:#bcd9ff; border-color:rgba(53,166,255,.4); }
.notice.ok{ border-color:rgba(72,255,139,.5); }
#ledger-grid.ag-theme-quartz{
  --ag-background-color:#10134e;
  --ag-header-background-color:#181c66;
  --ag-foreground-color:#dde1ff;
  --ag-header-foreground-color:#a6abde;
  --ag-border-color:#2b2f7d;
  --ag-row-hover-color:rgba(72,255,139,.06);
}
#fx-node-client.lit{ box-shadow:0 0 18px rgba(53,166,255,.3); }
#fx-node-vault.lit{ box-shadow:0 0 22px rgba(53,166,255,.42); }
#fx-node-gate.lit{ box-shadow:0 0 22px rgba(72,255,139,.38); }
#fx-node-free.lit{ box-shadow:0 0 22px rgba(72,255,139,.42); }
.fx-amount{ text-shadow:0 0 14px rgba(72,255,139,.3); }
.fx-dot{ background:#7dffb2; box-shadow:0 0 10px 2px rgba(72,255,139,.5); }
.fx-link .fx-dot.d2{ background:#7cc4ff; box-shadow:0 0 10px 2px rgba(53,166,255,.45); }
.fx-stepper li.current .fx-step-dot{ box-shadow:0 0 14px rgba(72,255,139,.5); }
.bar>div{ background:#48ff8b; box-shadow:0 0 10px rgba(72,255,139,.4); }
.banner.release{ box-shadow:0 0 20px rgba(72,255,139,.18); }
.milestone-card.active{ box-shadow:0 0 0 3px rgba(72,255,139,.22), 0 0 20px rgba(72,255,139,.12); }
.fx-node{ background:#0d1050; }
.step-num{ background:#48ff8b; color:#101354; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration:.01ms !important; animation-iteration-count:1 !important;
    transition-duration:.01ms !important; scroll-behavior:auto !important;
  }
}
