/* =========================================================
   GOLDEN HOSTING — design system
   A hallmark/assay mark is the throughline: gold hosting,
   graded like bullion. 10K / 18K / 24K plan tiers, a stamped
   seal as the brand mark, ledger-style specs instead of icon
   tiles. Flat, engraved, precise — not glowing glass.
   ========================================================= */

:root{
  /* --- color --- */
  --ink:        #fcfcfc;   /* page background, warm near-black */
  --panel:      #17130f;   /* card fill */
  --panel-2:    #1c1811;   /* raised card fill */
  --line:       rgba(203,161,74,0.20);   /* hairline rule */
  --line-soft:  rgba(203,161,74,0.10);
  --gold:       #cba14a;   /* working gold — text, rules, icons */
  --gold-bright:#e9cf5e;   /* bullion gold — large fills, the wordmark */
  --bronze:     #6e4f22;   /* deep bronze — borders, recessed edges */
  --bone:       #ece3d1;   /* body copy on dark */
  --muted:      #948a76;   /* secondary text, warm grey */
  --ember:      #b8482f;   /* the brand's red, used once per view */
  --signal:     #5c9a6d;   /* status green — functional only */
  --paper:      #0f0d0a;

  /* --- type --- */
  --f-display: "Fraunces", "Iowan Old Style", serif;
  --f-body:    "IBM Plex Sans", system-ui, sans-serif;
  --f-mono:    "IBM Plex Mono", ui-monospace, monospace;

  --radius: 10px;
  --radius-sm: 6px;
}

*{ margin:0; padding:0; box-sizing:border-box; }

html{ background:var(--ink); }

body{
  background:var(--ink);
  font-family:var(--f-body);
  color:var(--bone);
  line-height:1.55;
  min-height:100vh;
  -webkit-font-smoothing:antialiased;
}



a{ color:inherit; }

.eyebrow{
  font-family:var(--f-mono);
  font-size:0.72rem;
  letter-spacing:0.16em;
  text-transform:uppercase;
  color:var(--gold);
  display:flex;
  align-items:center;
  gap:0.6em;
}
.eyebrow::before{
  content:"";
  width:14px; height:1px;
  background:var(--gold);
  display:inline-block;
}

/* ---------- shell / nav ---------- */

.shell{
  max-width:1180px;
  margin:0 auto;
  padding:0 clamp(1.25rem, 4vw, 3rem);
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:2rem;
  padding:1.6rem 0;
  border-bottom:1px solid var(--line);
  flex-wrap:wrap;
}

.brand-lockup{
  display:flex;
  align-items:center;
  gap:0.85rem;
  text-decoration:none;
}
.brand-mark{ width:34px; height:34px; flex-shrink:0; }
.brand-lockup .wordmark{
  font-family:var(--f-display);
  font-weight:600;
  font-size:1.28rem;
  letter-spacing:-0.01em;
  color:var(--bone);
  line-height:1;
}
.brand-lockup .wordmark em{
  font-style:normal;
  color:var(--gold-bright);
}
.brand-lockup .tag{
  font-family:var(--f-mono);
  font-size:0.62rem;
  letter-spacing:0.12em;
  color:var(--muted);
  text-transform:uppercase;
  display:block;
  margin-top:0.15rem;
}

.nav-actions{
  display:flex;
  align-items:center;
  gap:1.9rem;
  flex-wrap:wrap;
}
.nav-actions a.navlink{
  font-family:var(--f-mono);
  font-size:0.8rem;
  letter-spacing:0.02em;
  text-decoration:none;
  color:var(--muted);
  border-bottom:1px solid transparent;
  padding-bottom:2px;
  transition:color .15s ease, border-color .15s ease;
}
.nav-actions a.navlink:hover{ color:var(--gold-bright); border-color:var(--gold); }

/* ---------- buttons ---------- */

.btn{
  font-family:var(--f-mono);
  font-size:0.8rem;
  letter-spacing:0.03em;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:0.55rem;
  padding:0.75rem 1.35rem;
  border-radius:var(--radius-sm);
  cursor:pointer;
  transition:transform .12s ease, background .15s ease, border-color .15s ease;
  white-space:nowrap;
}
.btn-primary{
  background:var(--gold);
  color:#161008;
  border:1px solid var(--gold);
  font-weight:600;
}
.btn-primary:hover{ background:var(--gold-bright); border-color:var(--gold-bright); }
.btn-primary:disabled{
  background:var(--panel);
  border-color:var(--line);
  color:var(--muted);
  cursor:not-allowed;
}
.btn-primary:disabled:hover{ background:var(--panel); border-color:var(--line); }
.btn-line{
  background:transparent;
  border:1px solid var(--bronze);
  color:var(--bone);
}
.btn-line:hover{ border-color:var(--gold); color:var(--gold-bright); }
.btn-block{ width:100%; justify-content:center; }
.btn .arrow{ transition:transform .15s ease; }
.btn:hover .arrow{ transform:translateX(3px); }

.back-link{
  display:inline-flex;
  align-items:center;
  gap:0.5rem;
  font-family:var(--f-mono);
  font-size:0.76rem;
  color:var(--muted);
  text-decoration:none;
  letter-spacing:0.02em;
}
.back-link:hover{ color:var(--gold-bright); }
.back-link .arrow{ transition:transform .15s ease; }
.back-link:hover .arrow{ transform:translateX(-3px); }

/* ---------- hero ---------- */

.hero{
  display:grid;
  grid-template-columns:1.15fr 0.85fr;
  gap:3rem;
  align-items:center;
  padding:4.2rem 0 3.4rem;
  border-bottom:1px solid var(--line);
}

.hero h2{
  font-family:var(--f-display);
  font-weight:600;
  font-size:clamp(2.6rem, 5vw, 3.9rem);
  line-height:1.02;
  letter-spacing:-0.015em;
  color:var(--bone);
  margin:1rem 0 1.3rem;
}
.hero h2 em{
  font-style:italic;
  font-weight:500;
  color:var(--gold-bright);
}

.hero p.lede{
  max-width:34rem;
  font-size:1.06rem;
  color:var(--muted);
  border-left:2px solid var(--gold);
  padding-left:1.1rem;
}

.hero-actions{
  display:flex;
  gap:1rem;
  margin-top:2.1rem;
  flex-wrap:wrap;
}

.seal-wrap{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:1.4rem;
}
.seal-wrap svg{ width:100%; max-width:260px; height:auto; }

.ticker{
  font-family:var(--f-mono);
  font-size:0.72rem;
  letter-spacing:0.04em;
  color:var(--muted);
  text-align:center;
  border-top:1px solid var(--line);
  padding-top:0.9rem;
  width:100%;
  max-width:300px;
}
.ticker .dot{
  display:inline-block;
  width:6px; height:6px;
  border-radius:50%;
  background:var(--signal);
  margin-right:0.5em;
}
.ticker span.sep{ color:var(--bronze); margin:0 0.55em; }

/* ---------- plans / ingot cards ---------- */

.plans-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:1.5rem;
  padding-top:3.6rem;
  flex-wrap:wrap;
}
.plans-head h3{
  font-family:var(--f-display);
  font-size:1.9rem;
  font-weight:600;
  margin-top:0.6rem;
}
.plans-head p{ color:var(--muted); font-size:0.92rem; max-width:24rem; }

.plans-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
  gap:1.4rem;
  margin:2.4rem 0 1rem;
}

.ingot{
  position:relative;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:1.7rem 1.6rem 1.9rem;
  display:flex;
  flex-direction:column;
  transition:border-color .15s ease, transform .15s ease, background .15s ease;
}
.ingot:hover{ border-color:var(--gold); background:var(--panel-2); }
.ingot.featured{ border-color:var(--gold); background:var(--panel-2); }

.karat{
  position:absolute;
  top:-1px; right:-1px;
  font-family:var(--f-mono);
  font-size:0.68rem;
  font-weight:600;
  letter-spacing:0.04em;
  color:#161008;
  background:var(--gold-bright);
  padding:0.3rem 0.6rem;
  border-radius:0 var(--radius) 0 var(--radius-sm);
}

.plan-name{
  font-family:var(--f-display);
  font-size:1.45rem;
  font-weight:600;
  color:var(--bone);
}
.plan-price{
  font-family:var(--f-mono);
  font-size:2.05rem;
  font-weight:600;
  color:var(--gold-bright);
  margin:0.5rem 0 1.1rem;
}
.plan-price small{ font-family:var(--f-body); font-size:0.85rem; font-weight:400; color:var(--muted); }

.plan-features{
  list-style:none;
  margin:0 0 1.6rem;
  flex-grow:1;
}
.plan-features li{
  font-family:var(--f-mono);
  font-size:0.84rem;
  color:var(--bone);
  padding:0.52rem 0;
  border-bottom:1px solid var(--line-soft);
  display:flex;
  justify-content:space-between;
}
.plan-features li span.k{ color:var(--muted); }
.plan-features li:last-child{ border-bottom:none; }

/* ---------- spec ledger ---------- */

.ledger{
  margin:3.6rem 0 3rem;
  padding-top:2rem;
  border-top:1px solid var(--line);
}
.ledger-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(230px, 1fr));
  gap:0;
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
}
.ledger-row{
  padding:1.4rem 1.5rem;
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.ledger-row:nth-last-child(-n+2){ border-bottom:none; }
.ledger-grid > .ledger-row:last-child,
.ledger-grid > .ledger-row:nth-child(4n){ border-right:none; }
.ledger-row .num{
  font-family:var(--f-mono);
  font-size:0.7rem;
  color:var(--bronze);
  display:block;
  margin-bottom:0.6rem;
}
.ledger-row h4{
  font-family:var(--f-display);
  font-size:1.05rem;
  font-weight:600;
  color:var(--bone);
  margin-bottom:0.3rem;
}
.ledger-row p{ font-size:0.82rem; color:var(--muted); }

/* ---------- footer ---------- */

.gold-footer{
  margin-top:2.6rem;
  padding:1.6rem 0 3rem;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:1rem;
  font-family:var(--f-mono);
  font-size:0.76rem;
  color:var(--muted);
}
.gold-footer .social{ display:flex; gap:1.4rem; }
.gold-footer .social a{ text-decoration:none; color:var(--muted); }
.gold-footer .social a:hover{ color:var(--gold-bright); }

/* ---------- single-purpose ledger-slip pages ---------- */

.slip-stage{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:2.5rem 1.5rem;
}

.slip{
  position:relative;
  max-width:460px;
  width:100%;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius);
}

.slip-head{
  padding:1.6rem 1.9rem;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.slip-head .brand-lockup .wordmark{ font-size:1rem; }
.slip-head .brand-mark{ width:26px; height:26px; }
.slip-num{ font-family:var(--f-mono); font-size:0.68rem; color:var(--bronze); letter-spacing:0.06em; }

.slip-body{ padding:2.4rem 1.9rem 2rem; }
.slip-body .eyebrow{ margin-bottom:1rem; }
.slip-body h1{
  font-family:var(--f-display);
  font-weight:600;
  font-size:2.1rem;
  letter-spacing:-0.01em;
  color:var(--bone);
  margin-bottom:0.7rem;
}
.slip-body p.desc{ color:var(--muted); font-size:0.95rem; margin-bottom:1.9rem; max-width:32rem; }

.slip-foot{
  padding:1.1rem 1.9rem 1.5rem;
  border-top:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  flex-wrap:wrap;
}
.owned-by{
  font-family:var(--f-mono);
  font-size:0.7rem;
  letter-spacing:0.04em;
  color:var(--muted);
}

/* dashboard readout */
.readout{
  font-family:var(--f-mono);
  font-size:0.78rem;
  color:var(--gold-bright);
  background:var(--panel-2);
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  padding:0.85rem 1rem;
  margin-bottom:1.8rem;
  display:flex;
  align-items:center;
  gap:0.6rem;
}
.readout .dot{ width:6px; height:6px; border-radius:50%; background:var(--signal); flex-shrink:0; }
.readout.warn .dot{ background:var(--ember); }
.readout a{ color:var(--gold-bright); text-decoration:underline; }

.action-row{ display:flex; gap:0.9rem; flex-wrap:wrap; }

/* ---------- github connect panel ---------- */

.gh-icon{ width:16px; height:16px; flex-shrink:0; }

.connect-card{
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--panel-2);
  padding:1.3rem 1.4rem;
  margin-bottom:1.6rem;
}
.connect-card .connect-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  flex-wrap:wrap;
}
.connect-card .connect-label{
  display:flex;
  align-items:center;
  gap:0.65rem;
  font-family:var(--f-mono);
  font-size:0.84rem;
  color:var(--bone);
  flex:1 1 240px;
  min-width:0;
}
.connect-card .connect-label small{
  display:block;
  font-size:0.72rem;
  color:var(--muted);
  margin-top:0.15rem;
}

.gh-status{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  flex-wrap:wrap;
  padding-bottom:1.1rem;
  margin-bottom:1.1rem;
  border-bottom:1px solid var(--line);
}
.gh-status .who{
  font-family:var(--f-mono);
  font-size:0.78rem;
  color:var(--gold-bright);
  display:flex;
  align-items:center;
  gap:0.55rem;
}
.gh-status .who .dot{ width:6px; height:6px; border-radius:50%; background:var(--signal); }
.gh-disconnect{
  font-family:var(--f-mono);
  font-size:0.72rem;
  color:var(--muted);
  background:none;
  border:none;
  text-decoration:underline;
  cursor:pointer;
  padding:0;
}
.gh-disconnect:hover{ color:var(--ember); }

.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:0.9rem; margin-bottom:1.1rem; }
.field label{
  display:block;
  font-family:var(--f-mono);
  font-size:0.68rem;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--muted);
  margin-bottom:0.45rem;
}
.field select{
  width:100%;
  background:var(--panel);
  border:1px solid var(--line);
  color:var(--bone);
  font-family:var(--f-mono);
  font-size:0.82rem;
  padding:0.6rem 0.7rem;
  border-radius:var(--radius-sm);
  appearance:none;
  -webkit-appearance:none;
  background-image:linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position:calc(100% - 16px) center, calc(100% - 11px) center;
  background-size:5px 5px, 5px 5px;
  background-repeat:no-repeat;
}
.field select:focus{ outline:none; border-color:var(--gold); }

.deploy-log{
  font-family:var(--f-mono);
  font-size:0.76rem;
  color:var(--muted);
  margin-top:1rem;
  padding-top:0.9rem;
  border-top:1px solid var(--line);
  display:none;
}
.deploy-log.show{ display:block; }
.deploy-log .dot{ width:6px; height:6px; border-radius:50%; background:var(--signal); display:inline-block; margin-right:0.5em; }

.upload-alt{
  font-family:var(--f-mono);
  font-size:0.76rem;
  color:var(--muted);
  text-align:center;
  margin-top:1rem;
}
.upload-alt a{ color:var(--gold); text-decoration:underline; }

@media (max-width:820px){
  .hero{ grid-template-columns:1fr; padding-top:3rem; }
  .seal-wrap{ order:-1; }
}
@media (max-width:480px){
  .topbar{ gap:1rem; }
  .nav-actions{ gap:1.1rem; }
}
