/* ===== TagioFi additions, extends the Kata Studio design system ===== */

/* --- Nav logo --- */
.nav-logo { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; }
.nav-logo_img { width: 26px; height: 26px; object-fit: contain; display: block; }
.nav-logo_text { font-weight: 700; font-size: 1.06rem; letter-spacing: -0.02em; color: currentColor; font-family: inherit; }

/* --- Wallet button connected state --- */
.button.is-wallet-connected { cursor: default; }
.wallet-address { font-variant-numeric: tabular-nums; }

/* --- Footer watermark --- */
.footer_logo-wrapper { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2rem; padding: 2rem 0 0; }
.footer-logo-word { display: flex; align-items: center; justify-content: center; gap: 1.4rem; color: #f4f3ec; opacity: 0.92; }
.footer-logo-word img { width: clamp(72px, 10vw, 140px); height: auto; }
.footer-logo-word span { display: none; }

/* --- Roadmap --- */
.roadmap_wrap { position: relative; display: flex; flex-direction: column; gap: 1.25rem; max-width: 62rem; margin: 0 auto; padding: 1rem 0 2rem; }
.roadmap_line { position: absolute; left: 27px; top: 12px; bottom: 12px; width: 1px; background: linear-gradient(to bottom, rgba(20,28,20,0.28), rgba(20,28,20,0.06)); }
.roadmap_item { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 1.4rem; align-items: start; }
.roadmap_dot { position: relative; z-index: 2; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #f4f3ec; border: 1px solid rgba(20,28,20,0.18); font-weight: 700; font-size: 0.95rem; color: #141c14; }
.roadmap_item.is-active .roadmap_dot { background: #1c2b1c; color: #f4f3ec; border-color: #1c2b1c; box-shadow: 0 0 0 6px rgba(28,43,28,0.10); }
.roadmap_card { background: rgba(255,255,255,0.72); border: 1px solid rgba(20,28,20,0.10); border-radius: 20px; padding: 1.6rem 1.8rem; backdrop-filter: blur(6px); transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s; }
.roadmap_card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -18px rgba(20,28,20,0.25); }
.roadmap_tag { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.32rem 0.75rem; border-radius: 999px; margin-bottom: 0.8rem; }
.roadmap_tag.is-now { background: #1c2b1c; color: #f4f3ec; }
.roadmap_tag.is-next { background: rgba(28,43,28,0.10); color: #1c2b1c; }
.roadmap_card h5 { margin: 0 0 0.45rem; font-size: 1.28rem; font-weight: 700; letter-spacing: -0.01em; color: #141c14; }
.roadmap_card p { margin: 0; color: rgba(20,28,20,0.62); font-size: 0.98rem; line-height: 1.6; }
.roadmap_pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.roadmap_pills span { font-size: 0.78rem; font-weight: 600; padding: 0.34rem 0.8rem; border-radius: 999px; border: 1px solid rgba(20,28,20,0.16); color: rgba(20,28,20,0.75); background: rgba(255,255,255,0.55); }

/* --- Comparison table polish (roadmap page) --- */
.compare-tagiofi-col { background: rgba(28,43,28,0.06); border-radius: 12px; }

/* --- Docs page --- */
.docs-hero { padding: 9rem 0 3rem; }
.docs-layout { display: grid; grid-template-columns: 240px 1fr; gap: 3.5rem; align-items: start; padding-bottom: 5rem; }
.docs-toc { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 0.35rem; }
.docs-toc a { font-size: 0.88rem; font-weight: 500; color: rgba(20,28,20,0.55); text-decoration: none; padding: 0.42rem 0.8rem; border-radius: 8px; transition: background .2s, color .2s; }
.docs-toc a:hover { background: rgba(28,43,28,0.07); color: #141c14; }
.docs-toc .docs-toc-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(20,28,20,0.4); margin: 0.6rem 0.8rem 0.4rem; }
.docs-body h2 { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.02em; margin: 3.2rem 0 1rem; color: #141c14; scroll-margin-top: 110px; }
.docs-body h2:first-child { margin-top: 0; }
.docs-body h3 { font-size: 1.22rem; font-weight: 700; margin: 2rem 0 0.6rem; color: #141c14; }
.docs-body p, .docs-body li { color: rgba(20,28,20,0.68); line-height: 1.72; font-size: 1rem; }
.docs-body ul, .docs-body ol { padding-left: 1.3rem; margin: 0.7rem 0 1.2rem; }
.docs-body li { margin-bottom: 0.45rem; }
.docs-body table { width: 100%; border-collapse: collapse; margin: 1.2rem 0 1.8rem; font-size: 0.92rem; }
.docs-body th { text-align: left; font-weight: 700; padding: 0.75rem 0.9rem; border-bottom: 2px solid rgba(20,28,20,0.16); color: #141c14; }
.docs-body td { padding: 0.7rem 0.9rem; border-bottom: 1px solid rgba(20,28,20,0.08); color: rgba(20,28,20,0.66); vertical-align: top; }
.docs-body code, .docs-body pre { font-family: 'SF Mono', 'Menlo', 'Consolas', monospace; }
.docs-body code { background: rgba(28,43,28,0.08); padding: 0.12rem 0.42rem; border-radius: 6px; font-size: 0.86em; color: #1c2b1c; }
.docs-body pre { background: #141c14; color: #e8ecdd; border-radius: 14px; padding: 1.2rem 1.4rem; overflow-x: auto; font-size: 0.85rem; line-height: 1.65; margin: 1rem 0 1.6rem; }
.docs-body pre code { background: none; padding: 0; color: inherit; }
.docs-callout { border: 1px solid rgba(20,28,20,0.12); background: rgba(255,255,255,0.6); border-radius: 16px; padding: 1.3rem 1.5rem; margin: 1.4rem 0; }
.docs-callout strong { color: #141c14; }
.docs-kbd-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0 1.4rem; }
.docs-kbd-row span { font-size: 0.78rem; font-weight: 600; padding: 0.34rem 0.8rem; border-radius: 999px; border: 1px solid rgba(20,28,20,0.16); color: rgba(20,28,20,0.75); background: rgba(255,255,255,0.55); }
@media (max-width: 860px) { .docs-layout { grid-template-columns: 1fr; } .docs-toc { position: static; flex-direction: row; flex-wrap: wrap; } }

/* --- FAQ anchor --- */
#faq { scroll-margin-top: 100px; }

/* ===== Dashboard, TagioFi design system (cream / deep green) ===== */
.dash { background: #fbfdf6; color: #0a1d08; min-height: 100vh; font-family: 'Manrope', sans-serif; }
.dash * { box-sizing: border-box; }
.dash-shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.dash-side { border-right: 1px solid rgba(10,29,8,0.09); background: #fbfdf6; padding: 1.5rem 1.1rem; display: flex; flex-direction: column; gap: 0.3rem; position: sticky; top: 0; height: 100vh; }
.dash-brand { display: flex; align-items: center; gap: 0.6rem; padding: 0.3rem 0.6rem 1.4rem; }
.dash-brand img { width: 26px; height: 26px; }
.dash-brand span { font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em; color: #0a1d08; }
.dash-user { display: flex; align-items: center; gap: 0.7rem; padding: 0.75rem 0.6rem 1.3rem; border-bottom: 1px solid rgba(10,29,8,0.09); margin-bottom: 1rem; }
.dash-avatar { width: 38px; height: 38px; border-radius: 50%; background: #203b14; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.8rem; color: #e2f2da; }
.dash-user-name { font-weight: 700; font-size: 0.9rem; }
.dash-user-sub { font-size: 0.72rem; color: #6b7860; font-variant-numeric: tabular-nums; }
.dash-nav-label { font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(10,29,8,0.4); padding: 0.7rem 0.6rem 0.4rem; }
.dash-link { display: flex; align-items: center; gap: 0.7rem; padding: 0.62rem 0.7rem; border-radius: 10px; color: rgba(10,29,8,0.62); text-decoration: none; font-size: 0.88rem; font-weight: 600; transition: background .2s, color .2s; }
.dash-link svg { width: 17px; height: 17px; opacity: 0.8; }
.dash-link:hover { background: rgba(32,59,20,0.06); color: #0a1d08; }
.dash-link.is-active { background: #e2f2da; color: #203b14; }
.dash-link { cursor: pointer; }
.dash-stake { margin-top: auto; border: 1px solid rgba(32,59,20,0.16); border-radius: 16px; padding: 1.1rem; background: radial-gradient(120% 140% at 20% 0%, #e2f2da, #fbfdf6); text-align: center; }
.dash-stake img { width: 34px; margin-bottom: 0.5rem; }
.dash-stake-title { font-weight: 800; font-size: 0.95rem; color: #203b14; }
.dash-stake-sub { font-size: 0.74rem; color: #6b7860; margin-top: 0.25rem; }
.dash-main { padding: 1.6rem 2rem 3rem; }
.dash-top { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.8rem; }
.dash-title { font-size: 1.05rem; font-weight: 700; color: #0a1d08; display: flex; align-items: center; gap: 0.55rem; }
.dash-search { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; background: #ffffff; border: 1px solid rgba(10,29,8,0.10); border-radius: 999px; padding: 0.5rem 1rem; width: min(300px, 34vw); color: #6b7860; font-size: 0.84rem; }
.dash-search input { background: none; border: none; outline: none; color: #0a1d08; width: 100%; font: inherit; }
.dash-wallet-btn { display: inline-flex; align-items: center; gap: 0.5rem; background: #203b14; color: #fbfdf6; border: none; border-radius: 999px; padding: 0.55rem 1.15rem; font-weight: 800; font-size: 0.84rem; cursor: pointer; transition: transform .2s, box-shadow .2s; font-family: inherit; }
.dash-wallet-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(32,59,20,0.5); }
.dash-wallet-btn.is-connected { background: #e2f2da; color: #203b14; border: 1px solid rgba(32,59,20,0.25); }
.dash-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1rem; }
.dash-card { background: #ffffff; border: 1px solid rgba(10,29,8,0.09); border-radius: 18px; padding: 1.25rem 1.35rem; transition: border-color .25s, transform .25s, box-shadow .25s; }
.dash-card:hover { border-color: rgba(32,59,20,0.28); transform: translateY(-2px); box-shadow: 0 16px 34px -22px rgba(10,29,8,0.25); }
.dash-stat-label { font-size: 0.8rem; color: #6b7860; font-weight: 600; }
.dash-stat-value { font-size: 1.55rem; font-weight: 800; letter-spacing: -0.02em; margin-top: 0.45rem; font-variant-numeric: tabular-nums; color: #0a1d08; }
.dash-stat-delta { display: inline-block; font-size: 0.68rem; font-weight: 700; padding: 0.16rem 0.5rem; border-radius: 999px; margin-left: 0.5rem; vertical-align: middle; }
.dash-stat-delta.up { background: #e2f2da; color: #203b14; }
.dash-stat-delta.down { background: rgba(10,29,8,0.06); color: #6b7860; }
.dash-mid { display: grid; grid-template-columns: 1.9fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.dash-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.4rem; }
.dash-card-title { font-weight: 700; font-size: 0.92rem; color: #0a1d08; }
.dash-pill { font-size: 0.72rem; font-weight: 700; color: #203b14; background: #e2f2da; border: 1px solid rgba(32,59,20,0.14); padding: 0.3rem 0.75rem; border-radius: 999px; cursor: pointer; }
.dash-big-number { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: #0a1d08; }
.dash-tabs { display: flex; gap: 0.4rem; margin: 0.9rem 0 0.4rem; }
.dash-tab { font-size: 0.76rem; font-weight: 700; color: #6b7860; padding: 0.34rem 0.85rem; border-radius: 999px; cursor: pointer; border: 1px solid transparent; transition: all .2s; }
.dash-tab.is-active { background: #203b14; color: #fbfdf6; }
.dash-chart { display: flex; align-items: flex-end; gap: 2.2%; height: 190px; padding: 1rem 0.2rem 0; }
.dash-bar { flex: 1; border-radius: 8px 8px 4px 4px; background: rgba(32,59,20,0.16); position: relative; transform-origin: bottom; animation: barGrow 1.1s cubic-bezier(.22,1,.36,1) backwards; }
.dash-bar.is-hot { background: linear-gradient(to top, #203b14, #3f6428); box-shadow: 0 6px 18px -6px rgba(32,59,20,0.55); }
.dash-bar .dash-bar-tip { position: absolute; top: -1.7rem; left: 50%; transform: translateX(-50%); font-size: 0.7rem; font-weight: 800; color: #203b14; opacity: 0; transition: opacity .2s; white-space: nowrap; }
.dash-bar:hover .dash-bar-tip, .dash-bar.is-hot .dash-bar-tip { opacity: 1; }
.dash-chart-months { display: flex; gap: 2.2%; padding: 0.55rem 0.2rem 0; }
.dash-chart-months span { flex: 1; text-align: center; font-size: 0.66rem; color: rgba(10,29,8,0.4); }
@keyframes barGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.dash-list { display: flex; flex-direction: column; }
.dash-list-row { display: flex; align-items: center; gap: 0.85rem; padding: 0.85rem 0.2rem; border-bottom: 1px solid rgba(10,29,8,0.07); }
.dash-list-row:last-child { border-bottom: none; }
.dash-asset-ic { width: 36px; height: 36px; border-radius: 11px; background: #e2f2da; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.68rem; color: #203b14; flex-shrink: 0; }
.dash-list-name { font-weight: 700; font-size: 0.88rem; color: #0a1d08; }
.dash-list-sub { font-size: 0.72rem; color: #6b7860; margin-top: 0.1rem; }
.dash-list-right { margin-left: auto; text-align: right; }
.dash-list-amt { font-weight: 800; font-size: 0.9rem; font-variant-numeric: tabular-nums; color: #0a1d08; }
.dash-status { font-size: 0.68rem; font-weight: 700; color: #203b14; background: #e2f2da; padding: 0.18rem 0.6rem; border-radius: 999px; }
.dash-bottom { display: grid; grid-template-columns: 1fr 1.9fr; gap: 1rem; }
.dash-donut-wrap { display: flex; align-items: center; gap: 1.4rem; }
.dash-donut { transform: rotate(-90deg); }
.dash-donut circle { fill: none; stroke-width: 14; stroke-linecap: round; }
.dash-legend { display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.82rem; }
.dash-legend div { display: flex; align-items: center; gap: 0.55rem; color: rgba(10,29,8,0.7); }
.dash-legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.dash-legend b { margin-left: auto; color: #0a1d08; font-variant-numeric: tabular-nums; }
.dash-tx-head { display: grid; grid-template-columns: 1.6fr 1fr 0.8fr 1fr; gap: 0.6rem; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(10,29,8,0.42); padding: 0 0.2rem 0.6rem; border-bottom: 1px solid rgba(10,29,8,0.09); }
.dash-tx-row { display: grid; grid-template-columns: 1.6fr 1fr 0.8fr 1fr; gap: 0.6rem; align-items: center; padding: 0.8rem 0.2rem; border-bottom: 1px solid rgba(10,29,8,0.05); font-size: 0.85rem; }
.dash-tx-row:last-child { border-bottom: none; }
.dash-tx-who { display: flex; align-items: center; gap: 0.65rem; font-weight: 700; color: #0a1d08; }
.dash-tx-who .dash-avatar { width: 30px; height: 30px; font-size: 0.66rem; }
.dash-muted { color: #6b7860; font-size: 0.8rem; }
.dash-mix-edit { margin-top: 1rem; width: 100%; background: #203b14; color: #fbfdf6; border: none; border-radius: 12px; padding: 0.7rem; font-weight: 800; font-size: 0.84rem; cursor: pointer; font-family: inherit; transition: transform .2s; }
.dash-mix-edit:hover { transform: translateY(-1px); }
@media (max-width: 1080px) {
  .dash-shell { grid-template-columns: 1fr; }
  .dash-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .dash-grid, .dash-mid, .dash-bottom { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .dash-grid, .dash-mid, .dash-bottom { grid-template-columns: 1fr; }
  .dash-search { display: none; }
}

/* --- Roadmap: stretch timeline border-to-border --- */
#roadmap .roadmap_wrap { max-width: none; margin-left: -3rem; margin-right: -3rem; }
#roadmap .roadmap_dot { margin-left: -28px; }
#roadmap .roadmap_line { left: 0; }
@media (max-width: 767px) {
  #roadmap .roadmap_wrap { margin-left: 0; margin-right: 0; }
  #roadmap .roadmap_dot { margin-left: 0; }
  #roadmap .roadmap_line { left: 27px; }
}

/* --- Hide injected "Made in Webflow" badge --- */
.w-webflow-badge { display: none !important; }

/* --- Wallet connect modal --- */
html.wallet-modal-open, html.wallet-modal-open body { overflow: hidden; }
.wallet-modal { position: fixed; inset: 0; z-index: 100000; display: none; align-items: center; justify-content: center; padding: 1.25rem; }
.wallet-modal.is-open { display: flex; }
.wallet-modal_backdrop { position: absolute; inset: 0; background: rgba(12, 20, 8, 0.62); backdrop-filter: blur(6px); }
.wallet-modal_card { position: relative; width: 100%; max-width: 420px; background: #fbfdf6; color: #16240d; border-radius: 22px; padding: 1.9rem 1.6rem 1.4rem; box-shadow: 0 40px 90px -30px rgba(0,0,0,.6); animation: walletPop .22s ease-out; }
@keyframes walletPop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.wallet-modal_close { position: absolute; top: 12px; right: 14px; width: 32px; height: 32px; border: none; border-radius: 50%; background: rgba(32,59,20,.08); color: #203b14; font-size: 1.15rem; line-height: 1; cursor: pointer; }
.wallet-modal_close:hover { background: rgba(32,59,20,.16); }
.wallet-modal_title { margin: 0 0 .35rem; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }
.wallet-modal_sub { margin: 0 0 1.15rem; font-size: .88rem; line-height: 1.45; color: rgba(22,36,13,.7); }
.wallet-modal_list { display: grid; gap: .65rem; }
.wallet-option { display: flex; align-items: center; gap: .85rem; width: 100%; text-align: left; padding: .8rem .9rem; border-radius: 14px; border: 1px solid rgba(32,59,20,.14); background: #fff; cursor: pointer; font-family: inherit; transition: transform .15s, border-color .15s, box-shadow .15s; }
.wallet-option:hover { transform: translateY(-1px); border-color: rgba(32,59,20,.4); box-shadow: 0 14px 28px -18px rgba(32,59,20,.6); }
.wallet-option_logo { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.wallet-option_text { display: flex; flex-direction: column; flex: 1 1 auto; }
.wallet-option_name { font-weight: 800; font-size: .98rem; }
.wallet-option_note { font-size: .76rem; color: rgba(22,36,13,.6); }
.wallet-option_state { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: .3rem .55rem; border-radius: 999px; background: #e2f2da; color: #203b14; }
.wallet-modal_foot { margin: 1.05rem 0 0; font-size: .74rem; line-height: 1.4; color: rgba(22,36,13,.55); text-align: center; }
.wallet-toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 16px); z-index: 100001; background: #16240d; color: #fbfdf6; padding: .7rem 1.1rem; border-radius: 999px; font-size: .84rem; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.wallet-toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* --- Docs hero: neutralize leftover GSAP split-word transform (fixes tagline overlapping pills) --- */
.docs-hero [data-animate] .gsap_split_word { transform: none !important; }
.docs-hero h1 { margin-bottom: 0.7rem; }
