/* SkillsCoin — the public face.
 *
 * ── WHY THIS FILE EXISTS ──────────────────────────────────────────────────
 * The landing page used to carry 27KB of CSS inside its own <style> block.
 * That was fine while there was one public page. There are now five, and a
 * second copy of a rule is a copy that will eventually disagree with the
 * first. app.css still dresses the account screens; this dresses the pages
 * anyone can reach.
 *
 * ── THE GRADE ─────────────────────────────────────────────────────────────
 * Violet and blue over near-black indigo. The old palette was gold on white,
 * which read as a bank's annual report. This reads as something being built
 * at night — which is the subject.
 *
 * Violet carries action and ownership. Blue carries verification and record.
 * They are not interchangeable: a button is violet, a proof is blue, and
 * nothing on the page uses one where it means the other.
 *
 * ── WHY THE TOKENS KEEP THEIR OLD NAMES ───────────────────────────────────
 * --gold still exists and now holds violet, because 24 rules across the
 * account screens reference it. Renaming them all to make a variable honest
 * is a large diff for no behaviour, and large diffs for no behaviour are how
 * working pages break. --accent is the name to use from here on; --gold is
 * its alias and should not be used in anything new.
 */

:root{
  /* ground and panels — near-black with indigo in it, never neutral grey */
  --ground:#040208; --ground-2:#07040F;
  /* Surfaces are a wash of white over the ground, not colours of their own.
     A card inside a card therefore reads as deeper rather than as a different
     material, and nesting costs nothing. */
  --panel:rgba(255,255,255,.040); --panel-2:rgba(255,255,255,.065);
  --raise:rgba(255,255,255,.095); --sunk:rgba(0,0,0,.28);
  --rule:rgba(167,139,250,.155); --rule-2:rgba(167,139,250,.075);

  /* ink */
  --ink:#F4F2FB; --ink-2:rgba(221,216,242,.72); --ink-3:rgba(209,203,236,.44);
  --ink-4:rgba(209,203,236,.30);

  /* violet — action, ownership, the brand itself */
  --accent:#A78BFA; --accent-2:#8B5CF6; --accent-deep:#6D28D9;
  --accent-bg:rgba(139,92,246,.13); --accent-pale:#DDD4FE;

  /* blue — verification, the record, anything the platform has checked */
  --blue:#60A5FA; --blue-2:#3B82F6; --blue-bg:rgba(59,130,246,.13);

  /* the one gradient, used sparingly: hero wash, primary button, rules */
  --grad:linear-gradient(135deg,#8B5CF6 0%,#6366F1 45%,#3B82F6 100%);
  --grad-soft:linear-gradient(135deg,rgba(139,92,246,.22),rgba(59,130,246,.18));

  /* state */
  --pos:#34D399; --pos-bg:rgba(52,211,153,.12);
  --warn:#FBBF24; --warn-bg:rgba(251,191,36,.12);
  --neg:#F87171;  --neg-bg:rgba(248,113,113,.12);
  --info:var(--blue); --info-bg:var(--blue-bg);
  --focus:#A78BFA;

  /* aliases kept so the account screens keep working — do not use in new CSS */
  --gold:var(--accent); --gold-dim:var(--accent-2);
  --gold-bg:var(--accent-bg); --gold-pale:var(--accent-pale);

  /* One family. Manrope's tight apertures keep a 9px uppercase label legible,
   and its 800 carries a headline without a second display face. */
  --fd:'Manrope',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --fb:'Manrope',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --fm:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,monospace;

  --r-lg:20px; --r-md:14px; --r-sm:10px;

  --wrap:1180px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;background:var(--ground)}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{margin:0;background:var(--ground);color:var(--ink);font-family:var(--fb);
  font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased;
  font-variant-numeric:tabular-nums;overflow-x:hidden}
h1,h2,h3{font-family:var(--fd);margin:0;letter-spacing:-.032em;line-height:1.09;
  font-weight:700;text-wrap:balance}
p{margin:0}
a{color:inherit;text-decoration:none}
img,video{max-width:100%;display:block}
button{font:inherit;color:inherit;cursor:pointer;border:none;background:none}
:focus-visible{outline:2px solid var(--focus);outline-offset:3px;border-radius:6px}

.wrap{width:100%;max-width:var(--wrap);margin:0 auto;
  padding-left:max(20px,env(safe-area-inset-left,0px));
  padding-right:max(20px,env(safe-area-inset-right,0px))}

/* ─────────────────────────────────────────────────────────── the header ─── */
/* Three destinations and a way in. It carried ten; the three that survived
   are the three questions a first-time reader actually has — what can I back,
   how does this work, what will I hold. */
.top{position:sticky;top:0;z-index:50;
  background:rgba(6,4,15,.72);backdrop-filter:blur(14px) saturate(140%);
  border-bottom:1px solid var(--rule-2)}
.top .wrap{display:flex;align-items:center;gap:28px;height:68px}
.brand{display:flex;align-items:center;gap:10px;font-family:var(--fd);
  font-weight:700;font-size:17px;letter-spacing:-.02em;flex:0 0 auto}
.brand img{width:26px;height:26px;border-radius:7px}
.brand .nm span{color:var(--accent)}
.top nav{display:flex;gap:26px;margin-left:8px;flex:1 1 auto}
.top nav a{font-size:14.5px;color:var(--ink-2);transition:color .15s}
.top nav a:hover{color:var(--ink)}
.top .entry{display:flex;align-items:center;gap:14px;flex:0 0 auto}
.signin{font-size:14.5px;padding:9px 18px;border-radius:999px;
  background:var(--grad);color:#fff;font-weight:600;
  box-shadow:0 6px 20px -8px rgba(139,92,246,.8)}
.navtoggle{display:none}

@media (max-width:860px){
  .top .wrap{height:60px;gap:12px}
  .top nav{position:fixed;inset:60px 0 auto 0;flex-direction:column;gap:0;
    background:var(--ground-2);border-bottom:1px solid var(--rule);
    padding:8px 20px 18px;display:none}
  .top nav a{padding:13px 0;font-size:16px;border-bottom:1px solid var(--rule-2)}
  .top.open nav{display:flex}
  .navtoggle{display:block;order:3;width:40px;height:40px;color:var(--ink-2)}
  .top .entry{margin-left:auto;order:2}
}

/* ───────────────────────────────────────────────────────────── the hero ─── */
/* The video is background, not content: it is muted, it loops, it carries no
   information, and the page reads correctly if it never loads. The poster is
   the first frame, so a slow connection sees the same picture, still. */
.hero{position:relative;min-height:min(92vh,860px);display:flex;align-items:center;
  overflow:hidden;isolation:isolate}
.hero video,.hero .poster{position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;z-index:-2}
.hero::after{content:"";position:absolute;inset:0;z-index:-1;
  background:
    radial-gradient(120% 90% at 50% 0%,rgba(6,4,15,.30),rgba(6,4,15,.86) 70%),
    linear-gradient(180deg,rgba(6,4,15,.55),rgba(6,4,15,.35) 40%,var(--ground) 97%)}
.hero .wrap{padding-top:92px;padding-bottom:64px}
.kicker{display:inline-flex;align-items:center;gap:9px;font-size:12.5px;
  letter-spacing:.14em;text-transform:uppercase;color:var(--accent-pale);
  background:var(--accent-bg);border:1px solid var(--rule);
  padding:7px 15px;border-radius:999px;font-weight:600}
.kicker::before{content:"";width:6px;height:6px;border-radius:50%;
  background:var(--accent);box-shadow:0 0 12px var(--accent)}
.hero h1{font-size:clamp(42px,7.4vw,86px);font-weight:800;margin:26px 0 0;
  max-width:16ch}
.hero h1 em{font-style:normal;background:var(--grad);
  -webkit-background-clip:text;background-clip:text;color:transparent}
.hero .sub{margin-top:22px;font-size:clamp(17px,2.1vw,21px);color:var(--ink-2);
  max-width:56ch;line-height:1.52}
.cta{display:flex;flex-wrap:wrap;gap:14px;margin-top:36px}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;
  padding:14px 26px;border-radius:999px;font-weight:600;font-size:15.5px;
  border:1px solid transparent;transition:transform .15s,box-shadow .15s,background .15s}
.btn:hover{transform:translateY(-1px)}
.btn.pri{background:var(--grad);color:#fff;
  box-shadow:0 12px 34px -14px rgba(139,92,246,.95)}
.btn.pri:hover{box-shadow:0 16px 40px -14px rgba(139,92,246,1)}
.btn.ghost{background:rgba(255,255,255,.04);border-color:var(--rule);color:var(--ink)}
.btn.ghost:hover{background:rgba(255,255,255,.08)}

/* the four-step rail under the hero headline */
.rail{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;margin-top:56px;
  background:var(--rule-2);border:1px solid var(--rule-2);border-radius:var(--r-lg);
  overflow:hidden;backdrop-filter:blur(6px)}
.rail .cell{background:rgba(16,12,36,.62);padding:18px 20px}
.rail .k{font-family:var(--fm);font-size:11px;letter-spacing:.08em;
  text-transform:uppercase;color:var(--accent)}
.rail .v{font-family:var(--fd);font-weight:600;font-size:17px;margin-top:7px}
.rail .n{font-size:13.5px;color:var(--ink-3);margin-top:5px;line-height:1.45}
@media (max-width:860px){
  .rail{grid-template-columns:repeat(2,1fr)}
  .hero{min-height:auto}
  .hero .wrap{padding-top:72px;padding-bottom:52px}
}
@media (max-width:460px){.rail{grid-template-columns:1fr}}

/* ───────────────────────────────────────────────────────────── sections ─── */
section{padding:clamp(72px,9vw,124px) 0;position:relative}
.sh{max-width:62ch;margin-bottom:46px}
.lbl{font-family:var(--fd);font-size:9px;font-weight:800;letter-spacing:.14em;
  text-transform:uppercase;color:var(--accent);margin-bottom:18px}
.sh h2{font-size:clamp(30px,4.3vw,47px);font-weight:700}
.sh p{margin-top:18px;font-size:17.5px;color:var(--ink-2);line-height:1.6}
.sh p b{color:var(--ink);font-weight:600}

/* a band that separates itself from the one above without a hard line */
.band{background:
  radial-gradient(90% 60% at 50% 0%,rgba(139,92,246,.09),transparent 72%),
  var(--ground-2)}
.band-blue{background:
  radial-gradient(90% 60% at 50% 0%,rgba(59,130,246,.10),transparent 72%),
  var(--ground-2)}

/* generic card grid */
.cards{display:grid;gap:18px;grid-template-columns:repeat(auto-fit,minmax(248px,1fr))}
.card{background:var(--panel);border:1px solid var(--rule-2);border-radius:var(--r-lg);
  padding:28px 26px;position:relative;overflow:hidden;transition:border-color .2s,background .2s}
.card:hover{border-color:var(--rule);background:var(--panel-2)}
.card .n{font-family:var(--fd);font-size:9px;font-weight:800;color:var(--accent);
  letter-spacing:.14em;text-transform:uppercase}
.card h3{font-size:19px;font-weight:600;margin-top:12px}
.card p{margin-top:10px;font-size:14.8px;color:var(--ink-3);line-height:1.56}

/* a quiet inline link that still looks clickable */
.more{display:inline-flex;align-items:center;gap:8px;margin-top:30px;
  font-weight:600;font-size:15px;color:var(--accent);
  border-bottom:1px solid var(--accent-bg);padding-bottom:3px}
.more:hover{border-bottom-color:var(--accent)}
.more::after{content:"→";transition:transform .15s}
.more:hover::after{transform:translateX(3px)}

/* ──────────────────────────────────────────────────── the business grid ─── */
/* These class names are load-bearing: the marketplace script writes this
   markup, and it is the same sc_marketplace() call the marketplace page
   makes, so the two cannot disagree about what is raising. */
.projs{display:grid;gap:18px;grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}
.pj{background:var(--panel);border:1px solid var(--rule-2);border-radius:var(--r-lg);
  display:flex;flex-direction:column;overflow:hidden;transition:border-color .2s}
.pj:hover{border-color:var(--rule)}
.pj-h{padding:24px 24px 18px}
.pj-top{display:flex;justify-content:space-between;gap:12px}
.pj h3{font-size:19px;font-weight:600}
.pj .dom{font-size:13px;color:var(--ink-3);margin-top:4px}
.pj-h p{margin-top:14px;font-size:14.6px;color:var(--ink-2);line-height:1.55}
.pj-meta{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--rule-2);
  border-block:1px solid var(--rule-2)}
.pj-meta>div{background:var(--panel);padding:14px 24px}
.pj-meta .k{font-family:var(--fm);font-size:10.5px;letter-spacing:.09em;
  text-transform:uppercase;color:var(--ink-3)}
.pj-meta .v{font-size:15px;font-weight:600;margin-top:4px}
.pj-cta{display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:18px 24px;margin-top:auto}
.pj-cta .why{font-size:13px;color:var(--ink-3)}
.pj-cta .btn{padding:10px 18px;font-size:14px}

/* ─────────────────────────────────────────────────────────── the ledger ─── */
/* The Ownership Record shown as what it is: rows. Blue, because this is the
   verification side of the palette, not the action side. */
.ledger{border:1px solid var(--rule);border-radius:var(--r-lg);overflow:hidden;
  background:var(--panel);font-family:var(--fm);font-size:13.5px}
.ledger .row{display:grid;grid-template-columns:104px 1fr auto;gap:16px;
  padding:14px 20px;border-bottom:1px solid var(--rule-2);align-items:center}
.ledger .row:last-child{border-bottom:none}
.ledger .row.head{background:var(--raise);color:var(--ink-3);font-size:11px;
  letter-spacing:.09em;text-transform:uppercase}
.ledger .amt{text-align:right;font-weight:600}
.ledger .amt.in{color:var(--pos)}
.ledger .tag{font-family:var(--fb);font-size:12px;padding:3px 10px;border-radius:999px;
  background:var(--blue-bg);color:var(--blue);border:1px solid var(--rule)}
.note{margin-top:14px;font-size:13px;color:var(--ink-3)}
@media (max-width:560px){
  .ledger .row{grid-template-columns:1fr auto;gap:8px}
  .ledger .row>:nth-child(2){display:none}
}

/* ──────────────────────────────────────────────────────────── the gates ─── */
.gates{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px}
.gate{font-family:var(--fm);font-size:12.5px;padding:9px 15px;border-radius:999px;
  border:1px solid var(--rule);background:var(--accent-bg);color:var(--accent-pale)}

/* a plain statement that must not be missed — the regulatory position */
.statement{margin-top:40px;border-left:2px solid var(--accent);
  background:var(--grad-soft);border-radius:0 14px 14px 0;padding:24px 28px}
.statement p{font-size:16px;color:var(--ink);max-width:62ch}
.statement p+p{margin-top:12px;color:var(--ink-2);font-size:14.5px}

/* ───────────────────────────────────────────────────────── closing band ─── */
.close{text-align:center;background:
  radial-gradient(70% 120% at 50% 100%,rgba(139,92,246,.18),transparent 70%),
  var(--ground-2)}
.close h2{font-size:clamp(32px,5vw,56px);font-weight:800;max-width:18ch;
  margin:0 auto}
.close p{margin:20px auto 0;max-width:52ch;color:var(--ink-2);font-size:17.5px}
.close .cta{justify-content:center}

/* ─────────────────────────────────────────────────────────────── footer ─── */
/* Everything that used to be a tab lives here. A footer is where a reader
   looks for the thing they could not find in the header, which is exactly
   what these are. */
footer{border-top:1px solid var(--rule-2);padding:60px 0 44px;background:var(--ground)}
.fcols{display:grid;gap:36px;grid-template-columns:1.6fr repeat(3,1fr)}
.fcols h4{font-family:var(--fm);font-size:11px;letter-spacing:.14em;
  text-transform:uppercase;color:var(--ink-3);margin:0 0 16px;font-weight:500}
.fcols a{display:block;font-size:14.5px;color:var(--ink-2);padding:5px 0}
.fcols a:hover{color:var(--accent)}
.fcols .about p{font-size:14px;color:var(--ink-3);margin-top:14px;max-width:34ch}
.fbot{margin-top:44px;padding-top:26px;border-top:1px solid var(--rule-2);
  display:flex;flex-wrap:wrap;gap:14px;justify-content:space-between;
  font-size:13px;color:var(--ink-3)}

/* The disclaimer, in the footer and nowhere else.
 *
 * It sits on its own line rather than beside the copyright: at 92 characters
 * it would otherwise force the flex row to wrap at most widths, which puts
 * half a sentence on each side of the page. Quiet by design — a warning set
 * in the same size as the page's body copy reads as a sales objection being
 * handled, and this is not that. It is the standing fact under everything
 * above it. */
.fdisc{flex:1 1 100%;order:2;max-width:92ch;
  font-size:12.5px;line-height:1.65;color:var(--ink-3)}
@media (min-width:860px){
  .fdisc{flex:0 1 auto;order:0;text-align:right;max-width:58ch}
}
@media (max-width:760px){.fcols{grid-template-columns:1fr 1fr}}

/* ──────────────────────────────────────────────────── inner page header ─── */
/* The sub-pages that now hold what the home page used to say. Same furniture,
   no video — a reader who clicked through wants the detail, not the drama. */
.phead{padding:clamp(72px,10vw,128px) 0 clamp(36px,5vw,56px);
  background:radial-gradient(80% 100% at 50% 0%,rgba(139,92,246,.14),transparent 70%)}
.phead h1{font-size:clamp(36px,5.6vw,62px);font-weight:800;max-width:18ch}
.phead .sub{margin-top:20px;font-size:18px;color:var(--ink-2);max-width:60ch}
.prose{max-width:68ch}
.prose h2{font-size:clamp(24px,3.2vw,34px);font-weight:700;margin:52px 0 16px}
.prose h3{font-size:19px;font-weight:600;margin:32px 0 10px}
.prose p{margin-top:14px;color:var(--ink-2);font-size:16.5px;line-height:1.68}
.prose p b,.prose li b{color:var(--ink);font-weight:600}
.prose ul{margin:16px 0 0;padding-left:22px;color:var(--ink-2)}
.prose li{margin-top:9px;line-height:1.6}
.back{display:inline-flex;gap:8px;align-items:center;font-size:14.5px;
  color:var(--ink-3);margin-bottom:26px}
.back:hover{color:var(--accent)}
.back::before{content:"←"}

/* ─────────────────────────────────────────────────────── anchored links ───
   The header is sticky, so an in-page link would otherwise land with its
   heading hidden underneath it. */
section[id]{scroll-margin-top:92px}

/* ───────────────────────────────────────────────────────────── SKLZ chat ───
   A bubble bottom-right, a panel that grows out of it. Violet, because this
   is something you act with; the record stays blue. */
.sc-bubble{position:fixed;right:max(20px,env(safe-area-inset-right,0px));
  bottom:max(20px,env(safe-area-inset-bottom,0px));z-index:80;
  display:inline-flex;align-items:center;gap:10px;
  padding:13px 20px 13px 17px;border-radius:999px;
  background:var(--grad);color:#fff;font-weight:600;font-size:14.5px;
  box-shadow:0 14px 40px -12px rgba(139,92,246,.9);
  transition:transform .18s,opacity .18s}
.sc-bubble:hover{transform:translateY(-2px)}
.sc-bubble.hid{opacity:0;pointer-events:none;transform:translateY(10px)}

.sc-chat{position:fixed;right:max(16px,env(safe-area-inset-right,0px));
  bottom:max(16px,env(safe-area-inset-bottom,0px));z-index:81;
  width:min(394px,calc(100vw - 32px));height:min(620px,calc(100vh - 32px));
  display:none;flex-direction:column;overflow:hidden;
  background:var(--panel);border:1px solid var(--rule);border-radius:18px;
  box-shadow:0 30px 80px -24px rgba(0,0,0,.85)}
.sc-chat.open{display:flex;animation:scIn .18s ease-out}
@keyframes scIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}

.sc-chat-head{display:flex;align-items:center;justify-content:space-between;
  padding:15px 16px;border-bottom:1px solid var(--rule-2);
  background:var(--grad-soft)}
.sc-who{display:flex;align-items:center;gap:11px}
.sc-who strong{display:block;font-family:var(--fd);font-size:15.5px;letter-spacing:-.01em}
.sc-sub{display:block;font-size:11.5px;color:var(--ink-3)}
.sc-dot{width:9px;height:9px;border-radius:50%;background:var(--accent);
  box-shadow:0 0 0 4px var(--accent-bg)}
.sc-x{font-size:22px;line-height:1;color:var(--ink-3);padding:0 4px}
.sc-x:hover{color:var(--ink)}

.sc-log{flex:1 1 auto;overflow-y:auto;padding:16px;display:flex;
  flex-direction:column;gap:12px}
.sc-msg{max-width:86%;font-size:14.5px;line-height:1.55;border-radius:14px;
  padding:11px 14px;white-space:pre-wrap;overflow-wrap:anywhere}
.sc-msg p+p{margin-top:9px}
.sc-msg.sklz{background:var(--raise);border:1px solid var(--rule-2);
  align-self:flex-start;border-bottom-left-radius:5px}
.sc-msg.me{background:var(--grad);color:#fff;align-self:flex-end;
  border-bottom-right-radius:5px}
.sc-msg.thinking{color:var(--ink-3);letter-spacing:.18em}

.sc-chips{display:flex;flex-direction:column;gap:8px;align-items:flex-start;
  margin-top:2px}
.sc-chip{text-align:left;font-size:13.5px;color:var(--accent-pale);
  background:var(--accent-bg);border:1px solid var(--rule);
  padding:9px 14px;border-radius:999px;line-height:1.35}
.sc-chip:hover{border-color:var(--accent)}

.sc-foot{display:flex;gap:9px;align-items:flex-end;padding:12px 12px 8px;
  border-top:1px solid var(--rule-2)}
.sc-field{flex:1 1 auto;resize:none;font:inherit;font-size:14.5px;
  background:var(--ground-2);color:var(--ink);border:1px solid var(--rule);
  border-radius:12px;padding:11px 13px;max-height:132px;line-height:1.45}
.sc-field::placeholder{color:var(--ink-3)}
.sc-field:focus{outline:none;border-color:var(--accent)}
.sc-send{flex:0 0 auto;width:40px;height:40px;border-radius:11px;
  background:var(--grad);color:#fff;display:grid;place-items:center}
.sc-send:disabled{opacity:.45}
.sc-note{padding:0 14px 12px;font-size:11px;color:var(--ink-3);text-align:center}

@media (max-width:460px){
  .sc-chat{right:8px;left:8px;width:auto;height:min(76vh,560px)}
  .sc-bubble span{display:none}
  .sc-bubble{padding:15px;border-radius:50%}
}
