:root{
  --fp-max:1180px;
  --fp-x:32px;
  --fp-nav-h:78px;
  --fp-nav-gap:72px;
  --fp-section:72px;
  --fp-card-r:22px;
  --fp-line:#d8d8d0;
  --fp-ink:#070b16;
  --fp-muted:#53627a;
  --fp-blue:#0754a6;
}

*{box-sizing:border-box}

html,body{
  margin:0;
  min-height:100%;
  color:var(--fp-ink);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  background:
    radial-gradient(circle at 82% 22%, rgba(197,255,215,.55), transparent 34%),
    radial-gradient(circle at 12% 72%, rgba(255,246,218,.55), transparent 30%),
    linear-gradient(115deg,#fffaf1 0%,#fbfaf5 42%,#effff4 100%);
}

a{color:inherit;text-decoration:none}

.banner{
  width:100%;
  min-height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:8px 16px;
  background:#fff3c4;
  border-bottom:1px solid #e5d17a;
  font-size:13px;
  font-weight:700;
  color:#3a310d;
}

.nav{
  width:100%;
  max-width:var(--fp-max);
  height:var(--fp-nav-h);
  margin:0 auto var(--fp-nav-gap);
  padding:0 var(--fp-x);
  display:flex;
  align-items:center;
  justify-content:space-between;
  position:relative;
}

.brand{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  font-size:20px!important;
  font-weight:850!important;
  line-height:1!important;
}

.brand .bird{font-size:18px;line-height:1}

.nav-mid{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  display:flex;
  align-items:center;
  gap:28px;
}

.nav-right{
  display:flex;
  align-items:center;
  gap:16px;
}

.nav a{
  font-size:14px!important;
  font-weight:850!important;
  line-height:1!important;
  white-space:nowrap!important;
}

main,.page,.wrap,.shell,.container{
  width:100%;
  max-width:var(--fp-max)!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

main,.wrap,.shell,.container{
  padding-left:var(--fp-x)!important;
  padding-right:var(--fp-x)!important;
}

main{
  padding-top:0!important;
  padding-bottom:96px!important;
}

section{
  margin-top:0;
}

.kicker,.track-k{
  letter-spacing:.38em;
  color:var(--fp-blue);
  font-size:13px;
  font-weight:900;
  margin-bottom:16px;
  text-transform:uppercase;
}

h1{
  margin:0 0 24px!important;
  letter-spacing:-.06em;
}

.card,.panel{
  border:1px solid var(--fp-line);
  border-radius:var(--fp-card-r);
  background:rgba(255,255,255,.82);
  box-shadow:0 18px 48px rgba(15,23,42,.06);
}

table{
  width:100%;
  border-collapse:collapse;
  margin-top:20px!important;
  background:rgba(255,255,255,.72);
  border-radius:14px;
  overflow:hidden;
}

th,td{
  padding:14px 12px!important;
  border-bottom:1px solid rgba(7,11,22,.08);
  text-align:left;
}

.footer,footer.footer{
  width:min(var(--fp-max),calc(100% - 64px));
  margin:72px auto 0!important;
  padding:26px 0 70px!important;
  border-top:1px solid var(--fp-line)!important;
  color:var(--fp-muted)!important;
  font-size:13px!important;
  line-height:1.35!important;
  display:flex;
  gap:24px;
  align-items:center;
  flex-wrap:wrap;
}

.footer a{color:var(--fp-muted)!important}

@media(max-width:900px){
  :root{--fp-x:22px;--fp-nav-gap:54px}
  .nav{
    height:auto;
    min-height:78px;
    align-items:flex-start;
    gap:16px;
    flex-wrap:wrap;
    padding-top:26px;
  }
  .nav-mid{
    position:static;
    transform:none;
    order:3;
    width:100%;
    flex-wrap:wrap;
    gap:14px;
  }
  .footer{width:calc(100% - 44px)}
}

/* === PAGE TEMPLATE CONTRACT === */

.fp-landing main,
.fp-product main,
.fp-ledger main,
.fp-doc main{
  max-width:1180px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  padding-left:32px!important;
  padding-right:32px!important;
}

/* Landing keeps narrower hero but same shell position */
.fp-landing .hero{
  max-width:900px;
  margin-left:auto;
  margin-right:auto;
}

/* Product pages get wide working layout */
.fp-product .hero{
  max-width:1180px;
  margin-left:auto;
  margin-right:auto;
}

/* Ledger pages align to same start and card rhythm */
.fp-ledger main,
.fp-ledger .wrap{
  max-width:1180px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  padding-left:32px!important;
  padding-right:32px!important;
}

.fp-ledger h1{
  font-size:44px!important;
  line-height:1!important;
}

.fp-ledger .card{
  padding:28px!important;
  margin-bottom:28px!important;
}

/* Doc pages are intentionally readable/narrow but centered in same shell */
.fp-doc main{
  max-width:860px!important;
  padding-left:32px!important;
  padding-right:32px!important;
}

/* Do not let nested old wrappers shrink landing/product */
.fp-landing .wrap,
.fp-landing .shell,
.fp-product .wrap,
.fp-product .shell{
  max-width:1180px!important;
}

@media(max-width:900px){
  .fp-landing main,
  .fp-product main,
  .fp-ledger main,
  .fp-ledger .wrap,
  .fp-doc main{
    padding-left:22px!important;
    padding-right:22px!important;
  }
}

/* Explorer / tables unified */

.fp-table{
  width:100%;
  border-collapse:collapse;
  background:rgba(255,255,255,.72);
  border-radius:14px;
  overflow:hidden;
}

.fp-table thead tr{
  background:rgba(255,255,255,.6);
}

.fp-table th{
  font-size:13px;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--fp-muted);
}

.fp-table td, .fp-table th{
  padding:14px 12px;
  border-bottom:1px solid var(--fp-line);
}

.fp-table tr:hover{
  background:rgba(0,0,0,.02);
}

/* === GLOBAL BACKGROUND LOCK === */

html, body{
  background:
    linear-gradient(180deg,#eef3f1 0%,#e6efec 100%)!important;
}

/* kill per-page overrides */
.fp-ledger,
.fp-product,
.fp-landing,
.fp-doc{
  background:transparent!important;
}


/* === GLOBAL PAPER BACKGROUND === */

html, body{
  background:#efe6c8!important;
}


/* === GLOBAL WHITE CANVAS === */

html, body{
  background:#f7f7f5!important; /* soft white, not pure #fff */
}

/* kill all page-specific backgrounds */
.fp-ledger,
.fp-product,
.fp-landing,
.fp-doc{
  background:transparent!important;
}

/* make cards actually feel like paper */
.card,
.fp-table{
  background:#ffffff!important;
  box-shadow:0 1px 0 rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.04)!important;
}

/* subtle page contrast */
main{
  padding-top:24px!important;
}


/* === BANNER + SPACING GRID LOCK === */

.fp-banner{
  width:100%;
  min-height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:8px 16px;
  background:#fff7d6;
  border-bottom:1px solid #eadb9a;
  color:#3b2f00;
  font-size:13px;
  font-weight:800;
  text-align:center;
}

.nav{
  margin-top:0!important;
  margin-bottom:72px!important;
}

main{
  padding-top:0!important;
}

section{
  margin-bottom:48px!important;
}

.card{
  margin-bottom:32px!important;
}

.footer{
  margin-top:88px!important;
}


/* === REAL PAGE CTA FLOW FIX === */

.fp-product .track{
  display:none!important;
}

.fp-mini-rail{
  margin-top:14px;
  padding:12px 14px;
  border:1px solid var(--fp-line);
  border-radius:14px;
  background:#fff;
  color:var(--fp-muted);
  font-size:13px;
  line-height:1.35;
}

.fp-mini-rail b{
  color:var(--fp-ink);
}

.fp-mini-rail span{
  display:block;
  margin-top:4px;
  font-weight:800;
  color:var(--fp-ink);
}


/* === HARD HIDE REAL BIG TRACKER === */
#real_track,
section#real_track,
.track#real_track{
  display:none!important;
}


/* === REAL PAGE BLANK SPACE FIX === */

.fp-product .hero{
  align-items:center!important;
  gap:48px!important;
  margin-bottom:44px!important;
}

.fp-product main{
  padding-bottom:72px!important;
}

.fp-product .card{
  margin-bottom:24px!important;
}

.fp-left-trust{
  margin-top:16px;
  padding:14px 16px;
  border:1px solid var(--fp-line);
  border-radius:16px;
  background:#fff;
  box-shadow:0 1px 0 rgba(0,0,0,.04),0 8px 24px rgba(0,0,0,.04);
  color:var(--fp-muted);
  font-size:14px;
  line-height:1.4;
  max-width:520px;
}

.fp-left-trust b{
  display:block;
  color:var(--fp-ink);
  margin-bottom:4px;
}


/* === REAL PAGE CLEANUP AFTER TRACKER REMOVAL === */

.fp-product .hero{
  align-items:start!important;
  margin-bottom:36px!important;
}

.fp-product .upload-grid{
  margin-top:0!important;
}

.fp-product .card{
  margin-bottom:20px!important;
}

.fp-mini-rail{
  margin-top:14px!important;
  margin-bottom:18px!important;
}


/* === REAL PAGE COMPRESSION PASS === */

.fp-product .nav{
  margin-bottom:44px!important;
}

.fp-product .hero{
  align-items:center!important;
  gap:42px!important;
  margin-bottom:34px!important;
}

.fp-product h1{
  font-size:56px!important;
  line-height:.92!important;
  max-width:640px!important;
}

.fp-product .lede{
  max-width:620px!important;
}

.fp-product .upload-grid{
  gap:34px!important;
}

.fp-product .card{
  padding:24px!important;
}

.fp-product .footer{
  margin-top:64px!important;
}

/* hide ugly sticky cost bar if present */
body.fp-product > div:last-child{
  display:none!important;
}


/* === SAFE HIDE REAL STICKY COST BAR ONLY === */
body.real > div[style*="position:fixed"],
body.fp-product > div[style*="position:fixed"],
body.real > div[style*="bottom"],
body.fp-product > div[style*="bottom"]{
  display:none!important;
}


/* === ACCOUNT PAGE POLISH === */

.fp-account-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:28px;
  align-items:start;
}

.fp-account-card{
  padding:30px!important;
}

.fp-account-balance{
  font-size:44px;
  line-height:1;
  letter-spacing:-.05em;
  font-weight:950;
  margin:10px 0 8px;
}

.fp-account-muted{
  color:var(--fp-muted);
  font-size:14px;
}

.fp-account-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:18px;
}

.fp-account-list{
  display:grid;
  gap:12px;
  margin-top:18px;
}

.fp-account-row{
  padding:14px 16px;
  border:1px solid var(--fp-line);
  border-radius:16px;
  background:#fff;
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:center;
}

.fp-account-row b{
  font-size:14px;
}

.fp-account-row span{
  color:var(--fp-muted);
  font-size:13px;
}

@media(max-width:900px){
  .fp-account-grid{grid-template-columns:1fr}
  .fp-account-balance{font-size:36px}
}


/* === NAV COLLISION FIX === */
.nav{
  display:grid!important;
  grid-template-columns:auto minmax(360px,1fr) auto!important;
  gap:24px!important;
}

.nav-mid{
  position:static!important;
  transform:none!important;
  justify-self:center!important;
  display:flex!important;
  gap:24px!important;
}

.nav-right{
  justify-self:end!important;
  gap:12px!important;
  white-space:nowrap!important;
}

.nav-auth b{
  display:inline-block!important;
  max-width:140px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  vertical-align:bottom!important;
}

@media(max-width:980px){
  .nav{
    grid-template-columns:1fr!important;
  }
  .nav-mid,.nav-right{
    justify-self:start!important;
    flex-wrap:wrap!important;
  }
}

/* === NAV COLLISION FIX === */
.nav{
  display:grid!important;
  grid-template-columns:auto minmax(360px,1fr) auto!important;
  gap:24px!important;
}

.nav-mid{
  position:static!important;
  transform:none!important;
  justify-self:center!important;
  display:flex!important;
  gap:24px!important;
}

.nav-right{
  justify-self:end!important;
  gap:12px!important;
  white-space:nowrap!important;
}

.nav-auth b{
  display:inline-block!important;
  max-width:140px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  vertical-align:bottom!important;
}

@media(max-width:980px){
  .nav{grid-template-columns:1fr!important}
  .nav-mid,.nav-right{
    justify-self:start!important;
    flex-wrap:wrap!important;
  }
}
