/* =====================================================================
   THE PROMPT FORGE — promptforge.ca
   Design system + shared components
   Palette and type pulled directly from the product itself (the game's
   own --electric/--plasma/--gold/--fire/--mint/--rose tokens) so the
   storefront and the thing it sells feel like one continuous world.
   ===================================================================== */

/* ---------- Fonts (self-hosted — no requests to Google or any
   third party on page load) ---------- */
@font-face{
  font-family:'Orbitron';font-style:normal;font-weight:400;font-display:swap;
  src:url('../assets/fonts/orbitron-400.woff2') format('woff2');
}
@font-face{
  font-family:'Orbitron';font-style:normal;font-weight:500;font-display:swap;
  src:url('../assets/fonts/orbitron-500.woff2') format('woff2');
}
@font-face{
  font-family:'Orbitron';font-style:normal;font-weight:700;font-display:swap;
  src:url('../assets/fonts/orbitron-700.woff2') format('woff2');
}
@font-face{
  font-family:'Orbitron';font-style:normal;font-weight:900;font-display:swap;
  src:url('../assets/fonts/orbitron-900.woff2') format('woff2');
}
@font-face{
  font-family:'DM Sans';font-style:normal;font-weight:400;font-display:swap;
  src:url('../assets/fonts/dmsans-400.woff2') format('woff2');
}
@font-face{
  font-family:'DM Sans';font-style:normal;font-weight:500;font-display:swap;
  src:url('../assets/fonts/dmsans-500.woff2') format('woff2');
}
@font-face{
  font-family:'DM Sans';font-style:normal;font-weight:600;font-display:swap;
  src:url('../assets/fonts/dmsans-600.woff2') format('woff2');
}
@font-face{
  font-family:'DM Sans';font-style:normal;font-weight:700;font-display:swap;
  src:url('../assets/fonts/dmsans-700.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root{
  /* surfaces */
  --void:#02030e;
  --deep:#080818;
  --deep-2:#0d0f26;
  --panel:rgba(10,12,32,.72);
  --panel-solid:#0b0d24;
  --border:rgba(255,255,255,.09);
  --border-strong:rgba(255,255,255,.16);

  /* accents — one per "chamber" of meaning across the site */
  --electric:#00f0ff;   /* primary brand / links / flagship */
  --plasma:#b800ff;     /* secondary brand / creative products */
  --gold:#ffc832;       /* price, rank, achievement */
  --fire:#ff5c2b;       /* action gradient partner (buy buttons) */
  --mint:#00ff99;       /* trust / success / included */
  --rose:#ff2d78;       /* badges / new */

  --white:#eef2ff;
  --muted:#8a97bf;
  --muted-2:#5c6690;

  /* the one consistent "this is clickable and it converts" color */
  --action-grad: linear-gradient(95deg, var(--gold), var(--fire));
  --action-grad-hover: linear-gradient(95deg, #ffd35c, #ff7247);

  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --display: 'Orbitron', var(--font);

  --radius-sm:10px;
  --radius-md:16px;
  --radius-lg:24px;
  --radius-full:999px;

  --container:1180px;
  --space-1:.25rem; --space-2:.5rem; --space-3:.75rem; --space-4:1rem;
  --space-5:1.5rem; --space-6:2rem; --space-8:3rem; --space-10:4rem;
  --space-12:5rem; --space-16:7rem;

  --shadow-glow-electric: 0 0 0 1px rgba(0,240,255,.25), 0 0 32px rgba(0,240,255,.18);
  --shadow-glow-gold: 0 8px 30px rgba(255,140,40,.35);
  --ease: cubic-bezier(.16,.84,.44,1);
}

/* ---------- Reset ---------- */
*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *,*::before,*::after{animation-duration:.001ms !important;animation-iteration-count:1 !important;transition-duration:.001ms !important;scroll-behavior:auto !important;}
}
body{
  margin:0;
  background:var(--void);
  color:var(--white);
  font-family:var(--font);
  font-size:16px;
  line-height:1.6;
  min-height:100svh;
  overflow-x:hidden;
}
img,svg{display:block;max-width:100%;}
a{color:inherit;text-decoration:none;}
ul{margin:0;padding:0;list-style:none;}
h1,h2,h3,h4,p,figure{margin:0;}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;}
input,select,textarea{font:inherit;color:inherit;}

/* skip-to-content: hidden until keyboard-focused, then fully visible */
.skip-link{
  position:absolute; left:16px; top:-60px; z-index:200;
  background:var(--electric); color:#02030e; font-weight:700; font-size:14px;
  padding:12px 20px; border-radius:var(--radius-full); transition:top .2s var(--ease);
}
.skip-link:focus{top:16px;}

/* visible keyboard focus everywhere */
:focus-visible{
  outline:2px solid var(--electric);
  outline-offset:3px;
  border-radius:4px;
}

::selection{background:rgba(0,240,255,.28);color:#fff;}

/* scrollbar, matched to the product's own */
html{scrollbar-width:thin;scrollbar-color:rgba(0,240,255,.2) rgba(4,4,15,.6);}
html::-webkit-scrollbar{width:8px;height:8px;}
html::-webkit-scrollbar-track{background:rgba(4,4,15,.8);}
html::-webkit-scrollbar-thumb{background:rgba(0,240,255,.2);border-radius:4px;}
html::-webkit-scrollbar-thumb:hover{background:rgba(0,240,255,.4);}

/* background: gradient wash — the fallback sky. The real sky is the
   #sky canvas (js/starfield.js) layered above this; with JS off or
   reduced motion, this wash keeps the world dark and colored. */
.bg-field{
  position:fixed; inset:0; z-index:-2; pointer-events:none;
  background:
    radial-gradient(60% 50% at 15% -10%, rgba(184,0,255,.16), transparent 60%),
    radial-gradient(50% 40% at 100% 0%, rgba(0,240,255,.12), transparent 60%),
    radial-gradient(70% 60% at 50% 120%, rgba(255,92,43,.10), transparent 60%),
    var(--void);
}
#sky{
  position:fixed; inset:0; z-index:-1; pointer-events:none;
  width:100%; height:100%;
}

/* ---------- Type ---------- */
.eyebrow{
  font-family:var(--display); font-weight:600; font-size:12px;
  letter-spacing:.18em; text-transform:uppercase; color:var(--electric);
  display:inline-flex; align-items:center; gap:.6em;
}
.eyebrow::before{content:'';width:18px;height:2px;background:currentColor;display:inline-block;border-radius:2px;}
.eyebrow.-gold{color:var(--gold);}
.eyebrow.-mint{color:var(--mint);}
.eyebrow.-plasma{color:var(--plasma);}

h1,.h1{
  font-family:var(--display); font-weight:900; letter-spacing:-.01em;
  font-size:clamp(2.4rem, 5.5vw, 4.4rem); line-height:1.04; color:var(--white);
}
h2,.h2{
  font-family:var(--display); font-weight:700; letter-spacing:-.01em;
  font-size:clamp(1.8rem, 3.4vw, 2.7rem); line-height:1.12; color:var(--white);
}
h3,.h3{
  font-family:var(--display); font-weight:700;
  font-size:clamp(1.15rem, 1.8vw, 1.4rem); line-height:1.25; color:var(--white);
}
.lede{ font-size:clamp(1.05rem,1.6vw,1.25rem); color:var(--muted); line-height:1.65; font-weight:400; }
.muted{color:var(--muted);}
.grad-text{
  background:linear-gradient(95deg, var(--electric), var(--plasma) 60%, var(--rose));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}

/* ---------- Layout ---------- */
.container{max-width:var(--container); margin:0 auto; padding:0 24px;}
.section{padding:var(--space-16) 0;}
@media(max-width:768px){ .section{padding:var(--space-10) 0;} }
.section-head{max-width:640px; margin:0 0 var(--space-8);}
.center{text-align:center; margin-left:auto; margin-right:auto;}

.grid{display:grid; gap:var(--space-5);}
.g-2{grid-template-columns:repeat(2,1fr);}
.g-3{grid-template-columns:repeat(3,1fr);}
.g-4{grid-template-columns:repeat(4,1fr);}
@media(max-width:900px){ .g-3{grid-template-columns:repeat(2,1fr);} .g-4{grid-template-columns:repeat(2,1fr);} }
@media(max-width:560px){ .g-2,.g-3,.g-4{grid-template-columns:1fr;} }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.6em;
  padding:15px 28px; border-radius:var(--radius-full);
  font-family:var(--display); font-weight:700; font-size:14px;
  letter-spacing:.03em; white-space:nowrap;
  transition:transform .18s var(--ease), box-shadow .18s var(--ease), filter .18s var(--ease), background .18s var(--ease);
  border:1px solid transparent;
}
.btn:active{transform:translateY(1px) scale(.99);}

.btn-buy{
  background:var(--action-grad); color:#1a0900;
  box-shadow:var(--shadow-glow-gold);
}
.btn-buy:hover{background:var(--action-grad-hover); box-shadow:0 10px 36px rgba(255,140,40,.48); transform:translateY(-1px);}
.btn-buy .price{font-weight:900;}

.btn-ghost{
  background:transparent; color:var(--white); border-color:var(--border-strong);
}
.btn-ghost:hover{border-color:var(--electric); color:var(--electric); box-shadow:var(--shadow-glow-electric);}

.btn-mint{ background:rgba(0,255,153,.12); color:var(--mint); border-color:rgba(0,255,153,.4); }
.btn-mint:hover{ background:rgba(0,255,153,.2); }

.btn-disabled, .btn[disabled]{
  background:rgba(255,255,255,.06); color:var(--muted-2); border-color:var(--border);
  cursor:not-allowed; box-shadow:none;
}
.btn-disabled:hover{transform:none;}

.btn-sm{padding:10px 18px; font-size:12px;}
.btn-block{width:100%;}

/* ---------- Nav ---------- */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(2,3,14,.72); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--border);
}
.nav{display:flex; align-items:center; justify-content:space-between; gap:var(--space-4); padding:14px 0;}
.brand{display:flex; align-items:center; gap:10px; font-family:var(--display); font-weight:700; font-size:15px; letter-spacing:.04em;}
.brand-mark{width:30px; height:30px; flex:none;}
.brand small{display:block; font-family:var(--font); font-weight:500; font-size:9px; letter-spacing:.16em; color:var(--muted); text-transform:uppercase; margin-top:1px;}

.nav-links{display:flex; align-items:center; gap:var(--space-6);}
.nav-links a{font-size:14px; font-weight:500; color:var(--muted); transition:color .15s;}
.nav-links a:hover{color:var(--white);}
.nav-links a.is-active{color:var(--electric);}
.nav-cta{display:flex; align-items:center; gap:var(--space-3);}

.nav-toggle{display:none; padding:8px;}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:''; display:block; width:22px; height:2px; background:var(--white); border-radius:2px; position:relative; transition:.2s;
}
.nav-toggle span::before{position:absolute; top:-7px;}
.nav-toggle span::after{position:absolute; top:7px;}

@media(max-width:860px){
  .nav-links{
    position:fixed; inset:64px 0 0 0; background:var(--void);
    flex-direction:column; align-items:flex-start; padding:28px 24px;
    gap:var(--space-5); transform:translateY(-8px); opacity:0; pointer-events:none;
    transition:opacity .2s var(--ease), transform .2s var(--ease);
    border-top:1px solid var(--border);
  }
  .nav-links a{font-size:20px;}
  body.nav-open .nav-links{transform:translateY(0); opacity:1; pointer-events:auto;}
  .nav-toggle{display:block;}
  .nav-cta .btn-ghost{display:none;}
}

/* ---------- Hero ---------- */
.hero{padding:var(--space-12) 0 var(--space-8); position:relative;}
.hero-inner{max-width:760px;}
.hero h1{margin:var(--space-4) 0 var(--space-5);}
.hero-ctas{display:flex; align-items:center; gap:var(--space-4); margin-top:var(--space-6); flex-wrap:wrap;}
.hero-trust{display:flex; align-items:center; gap:var(--space-5); margin-top:var(--space-6); flex-wrap:wrap;}
.trust-item{display:flex; align-items:center; gap:8px; font-size:13px; color:var(--muted);}
.trust-item svg{width:16px; height:16px; color:var(--mint); flex:none;}

/* stat strip */
.stat-strip{border-top:1px solid var(--border); border-bottom:1px solid var(--border); padding:var(--space-6) 0;}
.stat-strip .grid{grid-template-columns:repeat(5,1fr);}
@media(max-width:768px){ .stat-strip .grid{grid-template-columns:repeat(2,1fr);} }
.stat{text-align:center;}
.stat b{display:block; font-family:var(--display); font-weight:900; font-size:clamp(1.5rem,3vw,2.1rem); color:var(--white);}
.stat span{font-size:12px; color:var(--muted); letter-spacing:.03em;}

/* ---------- Signature element: The Rank Ladder ---------- */
.rank-ladder{margin-top:var(--space-10); position:relative;}
.rank-ladder-scroll{
  display:flex; gap:0; overflow-x:auto; padding:var(--space-2) 4px var(--space-4);
  scrollbar-width:none;
}
.rank-ladder-scroll::-webkit-scrollbar{display:none;}
.rank-node{
  flex:0 0 auto; width:108px; text-align:center; position:relative; padding-top:22px;
}
.rank-node::before{ /* the connecting track */
  content:''; position:absolute; top:6px; left:-54px; width:108px; height:2px;
  background:linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.18), rgba(255,255,255,.06));
}
.rank-node:first-child::before{display:none;}
.rank-dot{
  width:11px; height:11px; border-radius:50%; margin:0 auto 10px;
  background:var(--deep-2); border:2px solid var(--border-strong); position:relative; z-index:1;
}
.rank-node:nth-child(10) .rank-dot{
  background:var(--gold); border-color:var(--gold);
  box-shadow:0 0 0 4px rgba(255,200,50,.16), 0 0 22px rgba(255,200,50,.55);
}
.rank-label{
  font-family:var(--display); font-size:10px; font-weight:600; letter-spacing:.06em;
  text-transform:uppercase; color:var(--muted); line-height:1.35; display:block;
}
.rank-node:nth-child(10) .rank-label{color:var(--gold);}
.rank-pulse{
  position:absolute; top:6px; left:0; height:2px; width:70px; border-radius:2px;
  background:linear-gradient(90deg, transparent, var(--electric), var(--mint), transparent);
  filter:blur(.3px);
  animation:rankTravel 7s linear infinite;
}
@keyframes rankTravel{
  0%{ left:0; opacity:0; }
  8%{ opacity:1; }
  92%{ opacity:1; }
  100%{ left:calc(100% - 70px); opacity:0; }
}
@media(prefers-reduced-motion: reduce){ .rank-pulse{animation:none; display:none;} }
@media(max-width:640px){
  .rank-node{width:88px;}
  .rank-node::before{left:-44px; width:88px;}
}

/* ---------- Cards ---------- */
.card{
  background:var(--panel); border:1px solid var(--border); border-radius:var(--radius-lg);
  padding:var(--space-6); backdrop-filter:blur(6px);
}

/* Chamber cards */
.chamber-card{
  background:var(--panel); border:1px solid var(--border); border-radius:var(--radius-lg);
  padding:var(--space-5); position:relative; overflow:hidden;
  transition:transform .25s var(--ease), border-color .25s var(--ease);
}
.chamber-card::before{
  content:''; position:absolute; top:0; left:0; right:0; height:3px;
  background:var(--accent, var(--electric));
}
.chamber-card:hover{ transform:translateY(-4px); border-color:var(--border-strong); }
.chamber-icon{font-size:28px; margin-bottom:var(--space-3); display:block;}
.chamber-card h3{margin-bottom:6px;}
.chamber-card p{font-size:13.5px; color:var(--muted); line-height:1.55;}
.chamber-num{
  position:absolute; top:var(--space-4); right:var(--space-5);
  font-family:var(--display); font-size:11px; color:var(--muted-2); letter-spacing:.05em;
}

/* Pillar / doctrine cards */
.pillar{padding:var(--space-6); border:1px solid var(--border); border-radius:var(--radius-lg); background:var(--panel);}
.pillar-ico{
  width:44px; height:44px; border-radius:12px; display:flex; align-items:center; justify-content:center;
  background:rgba(0,240,255,.1); color:var(--electric); margin-bottom:var(--space-4); font-size:20px;
}
.pillar p{color:var(--muted); font-size:14px; margin-top:8px; line-height:1.6;}

/* Step cards (how it works) */
.steps{counter-reset:step;}
.step{position:relative; padding-left:56px; margin-bottom:var(--space-6);}
.step:last-child{margin-bottom:0;}
.step::before{
  counter-increment:step; content:counter(step);
  position:absolute; left:0; top:0; width:38px; height:38px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-family:var(--display); font-weight:700; font-size:15px;
  background:rgba(0,240,255,.1); color:var(--electric); border:1px solid rgba(0,240,255,.3);
}
.step h3{margin-bottom:4px;}
.step p{color:var(--muted); font-size:14px;}

/* ---------- Product cards (library grid) ---------- */
.product-card{
  background:var(--panel); border:1px solid var(--border); border-radius:var(--radius-lg);
  overflow:hidden; display:flex; flex-direction:column; transition:transform .2s var(--ease), border-color .2s;
}
.product-card:hover{transform:translateY(-3px); border-color:var(--border-strong);}
.product-media{
  aspect-ratio:16/10; display:flex; align-items:center; justify-content:center;
  font-size:56px; position:relative;
  background:
    radial-gradient(120% 120% at 20% 0%, color-mix(in srgb, var(--accent,var(--electric)) 28%, transparent), transparent 60%),
    var(--deep-2);
  border-bottom:1px solid var(--border);
}
.product-sigil{
  width:56px; height:56px;
  color:var(--accent, var(--electric));
  filter:drop-shadow(0 0 14px color-mix(in srgb, var(--accent, var(--electric)) 55%, transparent));
}
.product-badge{
  position:absolute; top:14px; left:14px; font-family:var(--display); font-weight:700;
  font-size:10px; letter-spacing:.08em; text-transform:uppercase; padding:6px 11px; border-radius:var(--radius-full);
  background:rgba(2,3,14,.6); border:1px solid var(--border-strong); color:var(--accent, var(--electric));
}
.product-body{padding:var(--space-5); display:flex; flex-direction:column; gap:10px; flex:1;}
.product-cat{font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted-2); font-weight:600;}
.product-body h3{font-size:1.15rem;}
.product-desc{color:var(--muted); font-size:13.5px; line-height:1.55; flex:1;}
.product-foot{display:flex; align-items:center; justify-content:space-between; gap:var(--space-3); margin-top:var(--space-2);}
.price-tag{font-family:var(--display); font-weight:900; font-size:1.15rem; color:var(--gold);}
.price-tag.-soon{color:var(--muted); font-size:.9rem; font-weight:700;}

/* filter chips */
.filters{display:flex; gap:10px; flex-wrap:wrap; margin-bottom:var(--space-8);}
.chip{
  padding:9px 18px; border-radius:var(--radius-full); border:1px solid var(--border-strong);
  font-size:13px; font-weight:600; color:var(--muted); transition:.15s;
}
.chip.is-active, .chip:hover{ color:var(--void); background:var(--white); border-color:var(--white); }

/* ---------- Pricing / buy box ---------- */
.buybox{
  background:linear-gradient(180deg, rgba(0,240,255,.05), transparent 40%), var(--panel);
  border:1px solid var(--border-strong); border-radius:var(--radius-lg);
  padding:var(--space-8); position:relative; overflow:hidden;
}
.buybox::after{
  content:''; position:absolute; top:-40%; right:-20%; width:60%; height:160%;
  background:radial-gradient(circle, rgba(184,0,255,.18), transparent 65%); pointer-events:none;
}
.price-row{display:flex; align-items:baseline; gap:12px; margin:var(--space-3) 0 var(--space-2);}
.price-big{font-family:var(--display); font-weight:900; font-size:3.2rem; color:var(--gold); line-height:1;}
.price-note{color:var(--muted); font-size:13px;}
.check-list{display:flex; flex-direction:column; gap:12px; margin:var(--space-6) 0;}
.check-item{display:flex; align-items:flex-start; gap:10px; font-size:14.5px;}
.check-item svg{width:18px; height:18px; color:var(--mint); flex:none; margin-top:2px;}
.guarantee{
  margin-top:var(--space-5); padding-top:var(--space-5); border-top:1px solid var(--border);
  font-size:12.5px; color:var(--muted); display:flex; gap:10px; align-items:flex-start;
}

/* sticky mobile buy bar */
.buy-bar{
  position:fixed; left:0; right:0; bottom:0; z-index:60;
  background:rgba(4,5,18,.92); backdrop-filter:blur(10px);
  border-top:1px solid var(--border-strong);
  padding:12px 16px; display:flex; align-items:center; justify-content:space-between; gap:12px;
  transform:translateY(110%); transition:transform .3s var(--ease);
}
.buy-bar.is-visible{transform:translateY(0);}
.buy-bar-price{font-family:var(--display); font-weight:900; color:var(--gold); font-size:1.1rem;}
.buy-bar-name{font-size:12px; color:var(--muted); display:block;}

/* ---------- FAQ ---------- */
.faq-item{border-bottom:1px solid var(--border);}
.faq-item summary{
  padding:var(--space-5) 0; cursor:pointer; list-style:none; display:flex; align-items:center; justify-content:space-between; gap:16px;
  font-family:var(--display); font-weight:600; font-size:15px;
}
.faq-item summary::-webkit-details-marker{display:none;}
.faq-item summary::after{
  content:'+'; font-size:22px; color:var(--muted); font-family:var(--font); font-weight:300; flex:none; transition:transform .2s;
}
.faq-item[open] summary::after{transform:rotate(45deg); color:var(--electric);}
.faq-item p{padding:0 0 var(--space-5); color:var(--muted); font-size:14.5px; max-width:70ch; line-height:1.65;}

/* ---------- Founder note ---------- */
.founder{
  border-left:2px solid var(--plasma); padding-left:var(--space-6);
  max-width:680px;
}
.founder p{font-size:1.05rem; color:var(--white); line-height:1.7; font-style:italic;}
.founder-sig{margin-top:var(--space-4); font-family:var(--display); font-size:13px; color:var(--muted); font-style:normal;}

/* ---------- Product detail layout ---------- */
.product-layout{display:grid; grid-template-columns:1fr 380px; gap:var(--space-10); align-items:flex-start;}
@media(max-width:960px){ .product-layout{grid-template-columns:1fr;} }
.buybox-sticky{position:sticky; top:88px;}
@media(max-width:960px){ .buybox-sticky{position:static;} }

.gallery-hero{
  aspect-ratio:16/9; border-radius:var(--radius-lg); border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center; font-size:110px;
  background:
    radial-gradient(70% 70% at 30% 20%, rgba(0,240,255,.16), transparent 60%),
    radial-gradient(60% 60% at 80% 90%, rgba(184,0,255,.14), transparent 60%),
    var(--deep-2);
  position:relative; overflow:hidden;
}
.feature-row{display:flex; gap:var(--space-4); padding:var(--space-5) 0; border-bottom:1px solid var(--border);}
.feature-row:last-child{border-bottom:0;}
.feature-row .ico{width:40px; height:40px; border-radius:10px; background:rgba(0,240,255,.1); color:var(--electric); display:flex; align-items:center; justify-content:center; flex:none; font-size:18px;}
.feature-row h4{font-family:var(--display); font-size:15px; margin-bottom:4px;}
.feature-row p{color:var(--muted); font-size:14px; line-height:1.6;}

/* ---------- Breadcrumb ---------- */
.crumbs{display:flex; align-items:center; gap:8px; font-size:13px; color:var(--muted-2); margin-bottom:var(--space-6); flex-wrap:wrap;}
.crumbs a{color:var(--muted); transition:color .15s;}
.crumbs a:hover{color:var(--electric);}

/* ---------- Footer ---------- */
.site-footer{border-top:1px solid var(--border); padding:var(--space-10) 0 var(--space-6); margin-top:var(--space-16);}
.footer-grid{display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:var(--space-6);}
@media(max-width:768px){ .footer-grid{grid-template-columns:1fr 1fr;} }
@media(max-width:480px){ .footer-grid{grid-template-columns:1fr;} }
.footer-grid h4{font-family:var(--display); font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted-2); margin-bottom:var(--space-4);}
.footer-grid ul{display:flex; flex-direction:column; gap:10px;}
.footer-grid a{font-size:14px; color:var(--muted); transition:color .15s;}
.footer-grid a:hover{color:var(--white);}
.footer-brand p{color:var(--muted); font-size:13.5px; max-width:34ch; line-height:1.6; margin-top:var(--space-3);}
.footer-bottom{
  margin-top:var(--space-10); padding-top:var(--space-5); border-top:1px solid var(--border);
  display:flex; justify-content:space-between; gap:var(--space-4); flex-wrap:wrap;
  font-size:12.5px; color:var(--muted-2);
}
.legal-mark{max-width:70ch;}

/* ---------- Utility banners / callouts ---------- */
.callout{
  border:1px solid var(--border-strong); border-radius:var(--radius-lg);
  padding:var(--space-8); text-align:center; background:var(--panel);
}

.badge{
  display:inline-flex; align-items:center; gap:6px; padding:5px 12px; border-radius:var(--radius-full);
  font-size:11px; font-weight:700; letter-spacing:.05em; text-transform:uppercase;
  border:1px solid currentColor;
}
.badge.-electric{color:var(--electric);}
.badge.-mint{color:var(--mint);}
.badge.-rose{color:var(--rose);}
.badge.-gold{color:var(--gold);}

/* reveal-on-scroll (progressive enhancement; content visible without JS) */
.reveal{opacity:0; transform:translateY(18px); transition:opacity .6s var(--ease), transform .6s var(--ease);}
.reveal.is-visible{opacity:1; transform:none;}
@media(prefers-reduced-motion: reduce){ .reveal{opacity:1; transform:none;} }
.no-js .reveal{opacity:1; transform:none;}

/* generic content page (privacy/terms) */
.prose{max-width:74ch;}
.prose h2{margin-top:var(--space-8); margin-bottom:var(--space-3); font-size:1.4rem;}
.prose h2:first-child{margin-top:0;}
.prose p{color:var(--muted); margin-bottom:var(--space-4); line-height:1.75;}
.prose ul{margin:0 0 var(--space-4); padding-left:1.2em; list-style:disc; color:var(--muted);}
.prose li{margin-bottom:8px; line-height:1.6;}
.prose a{color:var(--electric); text-decoration:underline; text-underline-offset:3px;}
.updated{color:var(--muted-2); font-size:13px; margin-bottom:var(--space-8);}

/* empty state (honest, no fabricated reviews) */
.empty-state{
  border:1px dashed var(--border-strong); border-radius:var(--radius-lg);
  padding:var(--space-8); text-align:center; color:var(--muted);
}
.empty-state svg{width:32px; height:32px; margin:0 auto var(--space-3); color:var(--muted-2);}

/* status message for checkout config */
.checkout-note{font-size:12.5px; color:var(--muted-2); margin-top:10px; text-align:center;}
.checkout-note.-warn{color:var(--fire);}

/* =====================================================================
   PHASE 1 & 2 — THE WORLD AROUND THE SHOPPER
   Glow typography, the Transmission hero, chamber sigils, the Doorstep
   Trial, the anvil comparison, the Forgemaster's letter, the token.
   ===================================================================== */

/* ---------- Glow typography — the game's own treatment ---------- */
.mono-label{
  font-family:var(--display); font-weight:700; font-size:11px;
  letter-spacing:.42em; text-transform:uppercase;
}
.glow-electric{ color:rgba(0,240,255,.92); text-shadow:0 0 10px rgba(0,240,255,.5); }
.glow-plasma{ color:rgba(184,0,255,.92); text-shadow:0 0 10px rgba(184,0,255,.5); }
.glow-gold{ color:rgba(255,200,50,.95); text-shadow:0 0 10px rgba(255,200,50,.5); }
.glow-mint{ color:rgba(0,255,153,.92); text-shadow:0 0 10px rgba(0,255,153,.5); }
.glow-rose{ color:rgba(255,45,120,.92); text-shadow:0 0 10px rgba(255,45,120,.5); }
.glow-white{ color:var(--white); text-shadow:0 0 24px rgba(160,200,255,.35); }

/* ---------- The Transmission (hero) ---------- */
.transmission{
  min-height:88svh; display:flex; align-items:center;
  padding:var(--space-10) 0 var(--space-8); position:relative;
}
.transmission-inner{ max-width:720px; margin:0 auto; text-align:center; }

.tx-chapter{
  font-family:var(--display); font-weight:600; font-size:10px;
  letter-spacing:.5em; text-transform:uppercase; color:rgba(0,240,255,.45);
  margin-bottom:var(--space-6);
}
.tx-line-1{
  font-size:clamp(1.15rem, 2.2vw, 1.45rem); font-style:italic;
  color:rgba(255,255,255,.88); line-height:1.9; margin-bottom:var(--space-4);
}
.tx-line-2{
  font-size:clamp(.95rem, 1.6vw, 1.1rem); color:rgba(200,220,255,.7);
  line-height:1.9; margin-bottom:var(--space-6);
}
.tx-line-2 em{ color:rgba(0,240,255,.85); font-style:italic; }
.tx-title{
  font-family:var(--display); font-weight:900;
  font-size:clamp(2rem, 5vw, 3.6rem); line-height:1.08; letter-spacing:.01em;
  color:var(--white); text-shadow:0 0 40px rgba(0,240,255,.25);
  margin-bottom:var(--space-5);
}
.tx-title .grad-text{ text-shadow:none; }
.tx-anchor{
  font-size:clamp(1rem, 1.5vw, 1.15rem); color:var(--muted);
  line-height:1.7; max-width:52ch; margin:0 auto var(--space-6);
}
.tx-anchor strong{ color:var(--white); font-weight:600; }

.tx-stats{
  display:flex; gap:var(--space-5) var(--space-6); justify-content:center; flex-wrap:wrap;
  margin-bottom:var(--space-8);
}
.tx-stat{
  font-family:var(--display); font-weight:700; font-size:12.5px;
  letter-spacing:.12em; display:flex; align-items:center; gap:8px;
}
.tx-stat .sigil{ width:16px; height:16px; }

.tx-ctas{ display:flex; gap:var(--space-4); justify-content:center; flex-wrap:wrap; }
.tx-trust{
  margin-top:var(--space-6); display:flex; gap:var(--space-4) var(--space-5);
  justify-content:center; flex-wrap:wrap;
}

/* staggered cinematic entrance — paced like the game's lore screen but
   compressed for a storefront; instant when reduced-motion or no JS */
@keyframes txReveal{ from{opacity:0; transform:translateY(14px);} to{opacity:1; transform:none;} }
.tx-seq{ opacity:0; animation:txReveal 1.4s var(--ease) forwards; }
.tx-seq.-d1{ animation-delay:.15s; }
.tx-seq.-d2{ animation-delay:.7s; }
.tx-seq.-d3{ animation-delay:1.3s; }
.tx-seq.-d4{ animation-delay:2s; }
.tx-seq.-d5{ animation-delay:2.5s; }
.tx-seq.-d6{ animation-delay:2.9s; }
.tx-seq.-d7{ animation-delay:3.2s; }
@media (prefers-reduced-motion: reduce){ .tx-seq{ opacity:1; animation:none; } }
.no-js .tx-seq{ opacity:1; animation:none; }

.tx-divider{
  width:64px; height:1px; margin:0 auto var(--space-6);
  background:linear-gradient(90deg, transparent, rgba(0,240,255,.35), transparent);
}

/* ---------- Chamber sigils (inline SVG symbols) ---------- */
.sigil{ width:34px; height:34px; display:block; }
.sigil use, .sigil path, .sigil circle, .sigil rect, .sigil line, .sigil polyline, .sigil polygon, .sigil ellipse{
  vector-effect:non-scaling-stroke;
}
.chamber-sigil{
  width:38px; height:38px; margin-bottom:var(--space-4);
  color:var(--accent, var(--electric));
  filter:drop-shadow(0 0 8px color-mix(in srgb, var(--accent, var(--electric)) 60%, transparent));
}
.chamber-master{
  font-family:var(--display); font-size:10px; font-weight:600;
  letter-spacing:.22em; text-transform:uppercase;
  color:color-mix(in srgb, var(--accent, var(--electric)) 75%, var(--white));
  opacity:.85; margin-bottom:8px; display:block;
}
.chamber-card.-archive{
  background:linear-gradient(180deg, rgba(2,3,10,.9), rgba(8,8,20,.85));
  border-color:rgba(255,200,50,.14);
}
.chamber-card.-archive .chamber-sigil{ filter:drop-shadow(0 0 10px rgba(255,180,60,.7)); }
.chamber-card.-archive p{ color:rgba(200,190,160,.6); }

/* ---------- The Anvil Comparison (before / after) ---------- */
.anvil-compare{
  display:grid; grid-template-columns:1fr auto 1fr; gap:var(--space-5);
  align-items:stretch; max-width:920px; margin:0 auto;
}
@media(max-width:760px){
  .anvil-compare{ grid-template-columns:1fr; }
  .anvil-arrow{ transform:rotate(90deg); margin:0 auto; }
}
.anvil-col{
  border:1px solid var(--border); border-radius:var(--radius-lg);
  padding:var(--space-6); background:var(--panel); position:relative;
  display:flex; flex-direction:column; gap:var(--space-4);
}
.anvil-col.-before{ border-color:rgba(255,255,255,.08); }
.anvil-col.-after{
  border-color:rgba(0,240,255,.3);
  box-shadow:0 0 30px rgba(0,240,255,.08), inset 0 0 30px rgba(0,240,255,.03);
}
.anvil-label{
  font-family:var(--display); font-weight:700; font-size:10px; letter-spacing:.35em;
}
.anvil-col.-before .anvil-label{ color:var(--muted-2); }
.anvil-col.-after .anvil-label{ color:rgba(0,240,255,.9); text-shadow:0 0 8px rgba(0,240,255,.4); }
.anvil-prompt{
  font-family:ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size:13.5px; line-height:1.6; color:var(--white);
  background:rgba(2,3,14,.6); border:1px solid var(--border);
  border-radius:var(--radius-sm); padding:var(--space-4);
}
.anvil-col.-before .anvil-prompt{ color:var(--muted); }
.anvil-result{ font-size:13px; line-height:1.6; }
.anvil-col.-before .anvil-result{ color:var(--muted-2); }
.anvil-col.-after .anvil-result{ color:var(--mint); }
.anvil-arrow{
  align-self:center; font-size:26px; color:rgba(0,240,255,.6);
  text-shadow:0 0 12px rgba(0,240,255,.5);
}

/* ---------- The Doorstep Trial ---------- */
/* Orange border + inline badge — the exact visual language the game
   uses for its inverted trials, of which this is one. */
.trial-card{
  max-width:820px; margin:0 auto;
  border:1px solid rgba(255,140,50,.4); border-radius:var(--radius-lg);
  background:linear-gradient(180deg, rgba(255,120,40,.05), transparent 30%), var(--panel);
  padding:var(--space-8); position:relative;
  transition:border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.trial-card.is-sealed{
  border-color:rgba(255,200,50,.6);
  box-shadow:0 0 40px rgba(255,190,50,.12);
}
@media(max-width:560px){ .trial-card{ padding:var(--space-5); } }
.trial-badge{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--display); font-weight:700; font-size:10px; letter-spacing:.3em;
  text-transform:uppercase; color:rgba(255,150,60,.95);
  border:1px solid rgba(255,140,50,.4); border-radius:var(--radius-full);
  padding:6px 14px; margin-bottom:var(--space-5);
  text-shadow:0 0 8px rgba(255,140,50,.4);
}
.trial-card h3{ font-size:clamp(1.3rem, 2.2vw, 1.7rem); margin-bottom:var(--space-2); }
.trial-brief{ color:var(--muted); font-size:14.5px; line-height:1.65; max-width:58ch; margin-bottom:var(--space-6); }

.trial-output{
  border:1px solid var(--border-strong); border-radius:var(--radius-md);
  background:rgba(2,3,14,.7); padding:var(--space-5); margin-bottom:var(--space-6);
  position:relative;
}
.trial-output-label{
  position:absolute; top:-9px; left:16px; padding:0 10px;
  background:var(--panel-solid);
  font-family:var(--display); font-size:9px; font-weight:700;
  letter-spacing:.3em; color:var(--muted);
}
.trial-output pre{
  margin:0; white-space:pre-wrap;
  font-family:ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size:13.5px; line-height:1.7; color:rgba(220,235,255,.9);
}

.trial-question{
  font-family:var(--display); font-weight:600; font-size:13px;
  letter-spacing:.06em; margin-bottom:var(--space-4); color:var(--white);
}
.trial-options{ display:flex; flex-direction:column; gap:var(--space-3); }
.trial-option{
  text-align:left; width:100%;
  border:1px solid var(--border-strong); border-radius:var(--radius-md);
  background:rgba(255,255,255,.02); padding:var(--space-4) var(--space-5);
  font-family:ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size:13px; line-height:1.65; color:rgba(220,230,250,.85);
  display:flex; gap:14px; align-items:flex-start;
  transition:border-color .2s, background .2s, transform .15s;
  cursor:pointer;
}
.trial-option:hover:not(:disabled){
  border-color:rgba(255,150,60,.5); background:rgba(255,140,50,.05);
  transform:translateX(3px);
}
.trial-option:disabled{ cursor:default; }
.trial-option .opt-rune{
  flex:none; font-family:var(--display); font-weight:700; font-size:12px;
  width:26px; height:26px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  border:1px solid var(--border-strong); color:var(--muted); margin-top:1px;
}
.trial-option.is-wrong{
  border-color:rgba(255,45,120,.5); background:rgba(255,45,120,.05);
  opacity:.6;
}
.trial-option.is-wrong .opt-rune{ border-color:rgba(255,45,120,.6); color:var(--rose); }
.trial-option.is-correct{
  border-color:rgba(255,200,50,.7); background:rgba(255,200,50,.07);
  box-shadow:0 0 24px rgba(255,200,50,.12);
}
.trial-option.is-correct .opt-rune{ border-color:var(--gold); color:var(--gold); }
.trial-option.is-dimmed{ opacity:.35; }

.trial-verdict{ margin-top:var(--space-6); }
.trial-seal-banner{
  font-family:var(--display); font-weight:900; font-size:clamp(1.1rem, 2vw, 1.5rem);
  letter-spacing:.2em; color:var(--gold); text-shadow:0 0 18px rgba(255,200,50,.55);
  margin-bottom:var(--space-4);
  animation:sealPop .6s var(--ease);
}
@keyframes sealPop{ from{ transform:scale(.6); opacity:0; } to{ transform:scale(1); opacity:1; } }
@media(prefers-reduced-motion: reduce){ .trial-seal-banner{ animation:none; } }
.trial-teach{
  color:rgba(220,230,250,.85); font-size:14.5px; line-height:1.7; max-width:60ch;
  border-left:2px solid rgba(255,200,50,.5); padding-left:var(--space-4);
}
.trial-teach.-wrong{ border-left-color:rgba(255,45,120,.5); }
.trial-retry{ color:var(--muted-2); font-size:13px; margin-top:var(--space-3); font-style:italic; }
.trial-aftermath{ color:var(--muted); font-size:14.5px; margin:var(--space-5) 0; max-width:56ch; }
.trial-aftermath strong{ color:var(--gold); }
.trial-cta{ margin-top:var(--space-2); }

/* ---------- The Forgemaster's letter ---------- */
.archive-letter{
  max-width:640px; margin:0 auto; position:relative;
  border:1px solid rgba(255,200,50,.16); border-radius:4px;
  background:linear-gradient(180deg, rgba(20,16,8,.5), rgba(10,9,5,.6));
  padding:var(--space-8);
  box-shadow:inset 0 0 60px rgba(255,180,60,.04);
}
.archive-letter::before{
  content:'🕯'; position:absolute; top:-16px; left:50%; transform:translateX(-50%);
  font-size:22px; filter:drop-shadow(0 0 12px rgba(255,180,60,.6));
}
.letter-heading{
  font-family:var(--display); font-size:10px; font-weight:600; letter-spacing:.4em;
  text-transform:uppercase; color:rgba(255,200,50,.55); text-align:center;
  margin-bottom:var(--space-5);
}
.archive-letter p{
  color:rgba(235,225,200,.85); font-size:15px; line-height:1.85; font-style:italic;
  margin-bottom:var(--space-4);
}
.letter-sig{
  font-family:var(--display); font-size:12px; letter-spacing:.12em;
  color:rgba(255,200,50,.6); font-style:normal; text-align:right; margin-top:var(--space-5);
}

/* ---------- The Token (buy box, in-world) ---------- */
.token-chip{
  display:flex; align-items:center; gap:10px;
  font-family:ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size:13px; letter-spacing:.05em;
  border:1px solid rgba(255,200,50,.3); border-radius:var(--radius-sm);
  background:rgba(255,200,50,.05); padding:10px 14px;
  color:rgba(255,220,120,.9); margin:var(--space-4) 0;
}
.token-chip .tok-dot{
  width:7px; height:7px; border-radius:50%; background:var(--gold);
  box-shadow:0 0 8px rgba(255,200,50,.8); flex:none;
  animation:tokPulse 2.4s ease-in-out infinite;
}
@keyframes tokPulse{ 0%,100%{opacity:.5;} 50%{opacity:1;} }
@media(prefers-reduced-motion: reduce){ .token-chip .tok-dot{ animation:none; } }

/* section eyebrow variant, centered mono */
.rite-label{
  font-family:var(--display); font-weight:600; font-size:10px;
  letter-spacing:.45em; text-transform:uppercase; text-align:center; display:block;
  margin-bottom:var(--space-4);
}

/* ---------- "Carry the Forge" — mobile install nudge ----------
   A single quiet, in-world line inviting home-screen install.
   Shown only on small screens, only when NOT already installed
   (js/install-hint.js gates it), and dismissible. */
.forge-travels{
  display:none;
  margin:var(--space-8) auto 0; max-width:520px;
  border:1px solid rgba(255,200,50,.22); border-radius:var(--radius-lg);
  background:linear-gradient(180deg, rgba(255,180,60,.05), transparent 60%), var(--panel);
  padding:var(--space-5) var(--space-5) var(--space-5); position:relative;
  text-align:center;
}
.forge-travels.is-shown{ display:block; animation:txReveal .8s var(--ease); }
.forge-travels .ft-flame{
  width:30px; height:30px; margin:0 auto var(--space-3);
  filter:drop-shadow(0 0 10px rgba(255,140,50,.6));
}
.forge-travels h3{
  font-size:1.05rem; margin-bottom:6px;
}
.forge-travels p{
  color:var(--muted); font-size:13.5px; line-height:1.6; max-width:44ch; margin:0 auto;
}
.forge-travels .ft-how{
  margin-top:var(--space-4); font-size:12px; color:var(--muted-2);
  font-family:ui-monospace, 'SF Mono', Menlo, Consolas, monospace; line-height:1.7;
}
.forge-travels .ft-how strong{ color:rgba(255,200,50,.8); font-weight:400; }
.forge-travels .ft-dismiss{
  position:absolute; top:10px; right:12px; width:28px; height:28px;
  color:var(--muted-2); font-size:18px; line-height:1; border-radius:50%;
}
.forge-travels .ft-dismiss:hover{ color:var(--white); background:rgba(255,255,255,.06); }
