/* ============================================================
   Nest — landing page layout
   ============================================================ */

/* ---- top bar ---- */
.topbar{
  position:sticky; top:0; z-index:50; height:80px;
  background:rgba(250,247,240,.86); backdrop-filter:saturate(1.1) blur(0px);
  transition:border-color .2s ease, backdrop-filter .2s ease, background .2s ease;
  border-bottom:1px solid transparent;
}
.topbar.scrolled{ border-bottom-color:var(--cream-300); backdrop-filter:saturate(1.1) blur(10px); background:rgba(250,247,240,.72); }
.topbar .row{ height:80px; display:flex; align-items:center; justify-content:space-between; }
.topbar nav{ display:flex; align-items:center; gap:30px; }
.topbar nav a.navlink{ color:var(--ink-700); text-decoration:none; font-size:15px; font-weight:500; transition:color .12s ease; }
.topbar nav a.navlink:hover{ color:var(--sage-700); }

/* mobile nav toggle (hidden until phone widths) */
.navtoggle{
  display:none; width:40px; height:40px; padding:0; margin-left:4px;
  align-items:center; justify-content:center; cursor:pointer;
  background:var(--cream-200); border:1px solid var(--cream-300); border-radius:10px;
  color:var(--ink-700); transition:background .12s ease, border-color .12s ease;
}
.navtoggle:hover{ background:var(--cream-300); }
.navtoggle-bars, .navtoggle-bars::before, .navtoggle-bars::after{
  display:block; width:18px; height:2px; border-radius:2px; background:currentColor;
  transition:transform .18s ease, opacity .18s ease;
}
.navtoggle-bars{ position:relative; }
.navtoggle-bars::before{ content:""; position:absolute; left:0; top:-6px; }
.navtoggle-bars::after{ content:""; position:absolute; left:0; top:6px; }
.navtoggle[aria-expanded="true"] .navtoggle-bars{ background:transparent; }
.navtoggle[aria-expanded="true"] .navtoggle-bars::before{ transform:translateY(6px) rotate(45deg); }
.navtoggle[aria-expanded="true"] .navtoggle-bars::after{ transform:translateY(-6px) rotate(-45deg); }

/* mobile dropdown menu */
.navmenu{ display:none; }

/* ---- hero shared ---- */
.hero{ padding:64px 0 0; }
.hero .eyebrow{ margin-bottom:20px; }
.hero h1{ margin-bottom:22px; }
.hero .sub{ color:var(--ink-700); font-size:18px; max-width:480px; line-height:1.6; }
.hero .cta-row{ display:flex; align-items:center; gap:24px; margin-top:32px; }

/* token pills */
.token-pills{ display:flex; flex-wrap:wrap; gap:12px; margin-top:24px; }
.token-pill{
  display:inline-flex; align-items:center; gap:9px;
  padding:7px 16px 7px 8px; border-radius:999px;
  background:var(--cream-200); border:1px solid var(--cream-300);
}
.token-coin{ width:24px; height:24px; border-radius:50%; display:block; object-fit:cover; }
.token-name{ font-family:var(--sans); font-weight:600; font-size:14px; color:var(--sage-700); letter-spacing:.01em; }

/* direction A: two-column */
.heroA .cols{ display:grid; grid-template-columns:58% 42%; align-items:center; gap:32px; }
.heroA .art{ display:flex; justify-content:center; }
.heroA .art .illo{ width:360px; }

/* direction B: centered editorial */
.heroB{ text-align:center; padding-top:40px; }
.heroB .art .illo{ width:240px; margin:0 auto 8px; }
.heroB h1{ margin-left:auto; margin-right:auto; max-width:14ch; }
.heroB .sub{ margin:0 auto; }
.heroB .cta-row{ justify-content:center; }

/* hero switch visibility */
body[data-hero="a"] .heroB{ display:none; }
body[data-hero="b"] .heroA{ display:none; }

/* ---- calculator ---- */
.calc-band{ background:var(--cream-200); border-top:1px solid var(--cream-300); border-bottom:1px solid var(--cream-300); margin-top:72px; }
.calc-band .wrap{ padding-top:64px; padding-bottom:64px; }
.calc-card{ background:var(--cream-200); }
.heroB .calc-band{ margin-top:48px; }

.calc{ display:grid; grid-template-columns:1fr auto; align-items:end; gap:40px; }
.calc .label{ grid-column:1 / -1; margin-bottom:4px; }
.calc .inputs{ display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.calc .field{
  display:flex; align-items:center; gap:6px; background:var(--cream-100);
  border:1px solid var(--cream-300); border-radius:10px; padding:12px 16px; width:240px;
}
.calc .field:focus-within{ border-color:var(--sage-500); }
.calc .field .pfx{ font-family:var(--mono); font-size:22px; color:var(--ink-500); }
.calc .field input{
  border:0; outline:0; background:transparent; width:100%; font-family:var(--mono);
  font-size:24px; color:var(--ink-900); font-feature-settings:"tnum" 1,"lnum" 1;
}
.calc select{
  font-family:var(--sans); font-size:15px; color:var(--ink-900); background:var(--cream-100);
  border:1px solid var(--cream-300); border-radius:10px; padding:13px 16px; cursor:pointer;
}
.calc select:focus{ outline:0; border-color:var(--sage-500); }
.calc .out{ text-align:right; display:flex; flex-direction:column; gap:14px; }
.calc .out .orow{ display:grid; grid-template-columns:auto auto; gap:28px; align-items:baseline; justify-content:end; }
.calc .out .olabel{ font-family:var(--mono); font-size:12.5px; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-500); }
.calc .out .oval{ font-family:var(--mono); font-size:32px; font-feature-settings:"tnum" 1,"lnum" 1; letter-spacing:-0.01em; min-width:170px; text-align:right; }
.calc .out .oval.sage{ color:var(--sage-500); }
.calc .out .oval.honey{ color:var(--honey-500); }
.calc-foot{ margin-top:22px; }
.heroB .calc{ text-align:left; }

/* ---- section header block ---- */
.sec-head h2{ margin-bottom:18px; }
.sec-head .sub{ color:var(--ink-700); font-size:17px; max-width:640px; }

/* ---- backed-by two col ---- */
.backed{ display:grid; grid-template-columns:60% 40%; gap:48px; align-items:start; margin-top:44px; }
.backed .bowl{ width:280px; margin-bottom:32px; }

/* ---- treasury composition bar (interactive) ---- */
.treasury{ position:relative; }
.tbar{ display:flex; gap:3px; transform-origin:left center; }
@media (prefers-reduced-motion:no-preference){
  .tbar.grow{ animation:tGrow .95s cubic-bezier(.32,0,.2,1) both; }
}
@keyframes tGrow{ from{ transform:scaleX(0); } to{ transform:scaleX(1); } }
.tseg{ height:52px; border-radius:5px; cursor:default; transition:filter .15s ease, opacity .15s ease, transform .15s ease; }
.tseg:first-child{ border-top-left-radius:9px; border-bottom-left-radius:9px; }
.tseg:last-child{ border-top-right-radius:9px; border-bottom-right-radius:9px; }
.treasury.dim .tseg{ opacity:.4; }
.treasury.dim .tseg.hot{ opacity:1; transform:translateY(-2px); filter:saturate(1.15) brightness(.98); }
.tlabels{ display:flex; gap:3px; margin-top:12px; }
.tlab{ display:flex; flex-direction:column; min-width:0; transition:opacity .15s ease; }
.tlab .tk{ font-family:var(--mono); font-size:12px; color:var(--ink-900); letter-spacing:.02em; white-space:nowrap; }
.tlab .pc{ font-family:var(--mono); font-size:12px; color:var(--ink-500); }
.treasury.dim .tlab{ opacity:.4; }
.treasury.dim .tlab.hot{ opacity:1; }
.treasury.dim .tlab.hot .pc{ color:var(--sage-700); }
.ttip{ position:absolute; transform:translate(-50%,-100%); background:var(--ink-900); color:var(--cream-100); border-radius:9px; padding:9px 13px; font-family:var(--mono); font-size:12px; line-height:1.45; white-space:nowrap; opacity:0; pointer-events:none; transition:opacity .14s ease; z-index:6; }
.ttip.show{ opacity:1; }
.ttip .ttip-name{ color:var(--cream-300); font-size:11px; }
.ttip .ttip-val{ color:var(--cream-100); }
.ttip .ttip-val b{ color:#9FD0AE; font-weight:500; }
.ttip::after{ content:""; position:absolute; left:50%; bottom:-5px; transform:translateX(-50%) rotate(45deg); width:9px; height:9px; background:var(--ink-900); border-radius:1px; }
.live-panel .ptitle{ font-family:var(--mono); font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-500); margin-bottom:18px; display:flex; align-items:center; gap:8px; }
.live-panel .ptitle::before{ content:""; width:7px; height:7px; border-radius:999px; background:var(--sage-500); box-shadow:0 0 0 0 rgba(107,155,122,.5); }
@media (prefers-reduced-motion:no-preference){
  .live-panel .ptitle::before{ animation:livePulse 2.4s ease-out infinite; }
}
@keyframes livePulse{ 0%{ box-shadow:0 0 0 0 rgba(107,155,122,.45); } 70%{ box-shadow:0 0 0 7px rgba(107,155,122,0); } 100%{ box-shadow:0 0 0 0 rgba(107,155,122,0); } }
.statrow{ display:flex; align-items:baseline; justify-content:space-between; gap:16px; padding:13px 0; border-top:1px solid var(--cream-300); }
.statrow:first-of-type{ border-top:0; }
.statrow .k{ font-size:14px; color:var(--ink-700); white-space:nowrap; }
.statrow .v{ font-family:var(--mono); font-size:15px; color:var(--ink-900); font-feature-settings:"tnum" 1; white-space:nowrap; }
.statrow .v.honey{ color:var(--honey-500); }

/* ---- product cards ---- */
.cards3{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-top:44px; }
.pcard{ display:flex; flex-direction:column; gap:14px; border-radius:16px; transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.pcard:hover{ transform:translateY(-3px); border-color:var(--sage-500); box-shadow:0 12px 30px -14px rgba(74,117,89,.32); }
.pcard .spot{ width:64px; color:var(--sage-500); transition:transform .25s ease; }
.pcard:hover .spot{ transform:translateY(-2px) rotate(-3deg); }
.pcard h3{ font-size:24px; }
.pcard .desc{ font-size:15px; color:var(--ink-700); flex:1; }
.pcard .big{ font-family:var(--mono); font-size:22px; color:var(--sage-500); font-feature-settings:"tnum" 1; }
.pcard .foot{ margin-top:4px; }

/* ---- how it works ---- */
.steps{ display:flex; flex-direction:column; gap:64px; margin-top:56px; }
.step{ display:grid; grid-template-columns:200px 1fr; gap:56px; align-items:center; }
.step.flip{ grid-template-columns:1fr 200px; }
.step.flip .stp-art{ order:2; }
.step .stp-art .illo{ width:180px; }
.step .num{ font-family:var(--mono); font-size:14px; color:var(--sage-500); margin-bottom:10px; letter-spacing:.06em; }
.step h3{ font-size:28px; margin-bottom:14px; max-width:18ch; }
.step p{ color:var(--ink-700); font-size:17px; max-width:52ch; }

/* ---- comparison ---- */
.cmp{ width:100%; border-collapse:separate; border-spacing:0; margin-top:40px; }
.cmp.cmp2{ max-width:860px; }
.cmp.cmp2 thead th.colnest,.cmp.cmp2 thead th:last-child,
.cmp.cmp2 tbody td:nth-child(2),.cmp.cmp2 tbody td:last-child{ width:32%; }
.cmp th,.cmp td{ text-align:left; padding:18px 20px; vertical-align:middle; }
.cmp thead th{ font-family:var(--mono); font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-500); font-weight:400; border-bottom:1px solid var(--cream-300); }
.cmp tbody td{ border-bottom:1px solid var(--cream-300); font-size:15px; color:var(--ink-900); }
.cmp tbody td:first-child{ color:var(--ink-700); font-weight:500; }
/* nUSD column lifted as a recommended card */
.cmp .colnest{ background:var(--cream-200); border-left:1px solid var(--cream-300); border-right:1px solid var(--cream-300); }
.cmp thead th.colnest{ background:var(--sage-500); border-color:var(--sage-500); border-top-left-radius:14px; border-top-right-radius:14px; color:var(--cream-100); text-transform:none; font-family:var(--serif); font-size:18px; letter-spacing:0; padding:16px 20px; }
.cmp tbody tr:last-child .colnest{ border-bottom:1px solid var(--cream-300); border-bottom-left-radius:14px; border-bottom-right-radius:14px; }
.cmp .cn-head{ display:inline-flex; align-items:center; gap:9px; }
.cmp .cn-coin{ width:18px; height:18px; border-radius:999px; background:var(--cream-100); flex:none; position:relative; }
.cmp .cn-coin::after{ content:""; position:absolute; inset:3.5px; border-radius:999px; border:1.4px solid var(--sage-500); border-top-color:transparent; }
.cmp td .num{ font-size:14px; }
.cmp .yes{ color:var(--sage-700); }
.cmp .chk{ display:inline-flex; width:17px; height:17px; border-radius:999px; background:var(--sage-500); margin-right:8px; vertical-align:-3px; position:relative; }
.cmp .chk::after{ content:""; position:absolute; left:5px; top:4px; width:4px; height:7px; border:1.6px solid var(--cream-100); border-top:0; border-left:0; transform:rotate(42deg); }
.cmp .chk.muted{ background:var(--cream-300); }
.cmp .chk.muted::after{ border-color:var(--ink-500); }

/* ---- safety ---- */
.safety{ display:grid; grid-template-columns:1fr 280px; gap:56px; align-items:start; margin-top:44px; }
.safety .art .illo{ width:220px; margin-left:auto; }
.safety .blocks{ display:flex; flex-direction:column; gap:28px; }
.safety .blk h3{ font-size:20px; margin-bottom:8px; }
.safety .blk p{ color:var(--ink-700); font-size:16px; }
.safety .blk .ll{ margin-top:6px; display:inline-block; }

/* ---- roadmap ---- */
.road{ display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-top:44px; }
.rcard{ background:var(--cream-200); border:1px solid var(--cream-300); border-radius:16px; padding:32px; display:flex; flex-direction:column; gap:14px; }
.rcard .spot{ width:60px; color:var(--sage-500); }
.rcard h3{ font-size:22px; }
.rcard .desc{ font-size:15px; color:var(--ink-700); }
.rcard .notify{ display:flex; gap:10px; margin-top:8px; }
.rcard .notify input{ flex:1; border:1px solid var(--cream-300); background:var(--cream-100); border-radius:9px; padding:12px 14px; font-family:var(--sans); font-size:14px; outline:0; }
.rcard .notify input:focus{ border-color:var(--sage-500); }

/* ---- footer ---- */
.footer{ background:var(--cream-200); border-top:1px solid var(--cream-300); margin-top:96px; }
.footer .wrap{ padding-top:72px; padding-bottom:40px; }
.fcols{ display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:48px; }
.footer .tag{ color:var(--ink-700); font-size:15px; margin:16px 0 18px; max-width:30ch; }
.footer .fbird{ width:120px; }
.footer .fcol h4{ font-family:var(--mono); font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-500); font-weight:400; margin:0 0 16px; }
.footer .fcol a{ display:block; color:var(--ink-700); text-decoration:none; font-size:15px; padding:6px 0; transition:color .12s; }
.footer .fcol a:hover{ color:var(--sage-700); }
.footer .fbottom{ display:flex; align-items:center; justify-content:space-between; margin-top:48px; padding-top:24px; border-top:1px solid var(--cream-300); }
.footer .fbottom .cp{ font-family:var(--mono); font-size:12px; color:var(--ink-500); }
.footer .fbottom .care{ font-style:italic; color:var(--ink-700); font-size:15px; }

/* ---- hero switcher control ---- */
.hero-switch{
  position:fixed; left:24px; bottom:24px; z-index:80; display:flex; align-items:center; gap:0;
  background:var(--cream-100); border:1px solid var(--cream-300); border-radius:999px; padding:4px;
  box-shadow:0 6px 20px rgba(31,31,31,.08); font-family:var(--mono); font-size:12px;
}
.hero-switch button{ border:0; background:transparent; cursor:pointer; padding:7px 14px; border-radius:999px; color:var(--ink-500); font-family:var(--mono); font-size:12px; letter-spacing:.03em; }
.hero-switch button.on{ background:var(--sage-500); color:var(--cream-100); }
.hero-switch .hs-label{ padding:0 10px 0 12px; color:var(--ink-500); }

/* ---- responsive ---- */
@media (max-width:920px){
  .d64{ font-size:46px; } .d48{ font-size:34px; } .d36{ font-size:30px; }
  .heroA .cols{ grid-template-columns:1fr; } .heroA .art{ order:-1; }
  .heroA .art .illo{ width:280px; }
  .backed,.safety,.cards3,.road,.fcols{ grid-template-columns:1fr; }
  .step,.step.flip{ grid-template-columns:1fr; gap:20px; }
  .step.flip .stp-art{ order:0; }
  .calc{ grid-template-columns:1fr; } .calc .out{ text-align:left; } .calc .out .orow{ justify-content:start; }
  .topbar nav .navlink{ display:none; }
  .navtoggle{ display:inline-flex; }
  .navmenu{
    display:block; overflow:hidden; max-height:0;
    border-top:1px solid transparent;
    background:rgba(250,247,240,.96); backdrop-filter:saturate(1.1) blur(10px);
    transition:max-height .24s ease, border-color .2s ease;
  }
  .navmenu.open{ max-height:260px; border-top-color:var(--cream-300); }
  .navmenu .wrap{ display:flex; flex-direction:column; padding:6px 0 14px; }
  .navmenu-link{
    color:var(--ink-700); text-decoration:none; font-size:16px; font-weight:500;
    padding:13px 2px; border-bottom:1px solid var(--cream-300); transition:color .12s ease;
  }
  .navmenu-link:last-child{ border-bottom:0; }
  .navmenu-link:hover{ color:var(--sage-700); }
}

@media (max-width:600px){
  /* tighten the comparison table so 3 columns fit without page scroll */
  .cmp th,.cmp td{ padding:13px 12px; }
  .cmp thead th{ font-size:11px; }
  .cmp tbody td,.cmp td .num{ font-size:13.5px; }
  .cmp thead th.colnest{ font-size:16px; padding:13px 12px; }
}
