
/* ============================================================
   COWCARD — wallet.css
   Styles exclusive to wallet.html.
   ============================================================ */

/* ---------- wallet hero grid ---------- */

.wallet-grid{ display:grid; grid-template-columns:1.05fr .95fr; gap:clamp(2rem,5vw,4rem); align-items:center; }
@media (max-width:900px){
  .wallet-grid{ grid-template-columns:minmax(0,1fr); }
  .wallet-grid > *{ min-width:0; max-width:100%; }
  .wallet-grid .phone--full{ width:calc(100% - 10px); }
}
@media (min-width:901px){
  #wallet h2{ white-space:nowrap; font-size:clamp(1.85rem,3.2vw,2.6rem); }
}

/* app section heading */
#app .sec-head{ max-width:none; text-align:center; }
#app .sec-head p{ max-width:44ch; margin-inline:auto; }
@media (min-width:901px){ #app .sec-head h2{ white-space:nowrap; } }

/* ---------- wallet feature bits ---------- */

.wbits{
  display:grid; gap:1px; background:var(--ink-line);
  border:2.5px solid var(--ink) !important; border-radius:var(--radius); overflow:hidden;
  box-shadow:var(--sh) !important;
}
.wbit{ background:var(--white) !important; padding:1.15rem 1.35rem; color:var(--ink) !important; border-radius:0 !important; }
.wbit h3{ font-size:1.05rem; margin-bottom:.3rem; }
.wbit p{ font-size:.88rem; color:var(--gray); }

/* ---------- app gallery (swipeable screenshots) ---------- */

.gallery{
  display:grid; grid-template-columns:repeat(3,minmax(0,290px));
  gap:clamp(1.5rem,4vw,4rem); justify-content:space-between;
}
.shot{ margin:0; min-width:0; }
.shot > img{
  width:100%; height:auto; display:block;
  border:2.5px solid var(--ink) !important; border-radius:18px;
  background:var(--white) !important;
  box-shadow:var(--sh) !important;
}
.shot .mc-logo, .shot .app-hdr img{
  width:auto; border:none !important; box-shadow:none !important;
  background:transparent !important; border-radius:0 !important; padding:0 !important;
}
.shot figcaption{
  font-size:1.02rem; font-weight:600; line-height:1.45; text-align:center; color:var(--pink);
}
.gallery .shot{ display:flex; flex-direction:column; }
.gallery .shot figcaption{ order:-1; margin:0 0 1rem; min-height:calc(2 * 1.45em); }

@media (max-width:820px){
  .gallery{
    width:100%; max-width:100%; min-width:0;
    display:flex; gap:0;
    overflow-x:auto; scroll-snap-type:x mandatory;
    padding-bottom:.4rem; scrollbar-width:none;
    overscroll-behavior-x:contain; contain:inline-size;
    -webkit-overflow-scrolling:touch;
  }
  .gallery::-webkit-scrollbar{ display:none; }
  .gallery .shot{
    flex:0 0 100%; width:0; min-width:100%; max-width:100%;
    scroll-snap-align:start; overflow:hidden;
  }
  .gallery .shot img{ max-width:min(100%, 320px); margin-inline:auto; }
  .gallery .shot figcaption{ font-size:.95rem; }
}
@media (max-width:400px){
  .gallery{
    display:grid; grid-template-columns:minmax(0,1fr); gap:2rem;
    overflow:visible; contain:none; scroll-snap-type:none;
  }
  .gallery .shot{ width:100%; min-width:0; max-width:100%; overflow:visible; }
  .gallery .phone--full{ width:calc(100% - 10px); box-shadow:var(--sh); }
  .gal-dots{ display:none !important; }
}

/* gallery pagination dots */
.gal-dots{ display:none; }
@media (max-width:820px){
  .gal-dots{
    display:flex; justify-content:center; align-items:center; gap:.35rem; margin-top:.9rem;
  }
  .gal-dots button{
    width:30px; height:30px; padding:0; border:0; background:none; cursor:pointer;
    display:flex; align-items:center; justify-content:center;
    -webkit-tap-highlight-color:transparent;
  }
  .gal-dots button::after{
    content:''; display:block; width:7px; height:7px; border-radius:50%;
    background:var(--gray-dim); opacity:.55;
    transition:width .3s var(--ease), background .3s var(--ease), opacity .3s var(--ease);
  }
  .gal-dots button[aria-current="true"]::after{
    width:20px; border-radius:4px; background:var(--pink); opacity:1;
  }
}

/* ---------- in-phone app UI (wallet page phone--full mockup) ---------- */

.app-hdr{ display:flex; align-items:center; justify-content:space-between; padding:.65rem .75rem .55rem; background:var(--white); border-bottom:2px solid var(--ink); flex:none; }
.app-hdr b{ font-family:var(--font-display); font-size:14px; letter-spacing:-.01em; color:var(--ink); }
.app-bal{ padding:1rem .75rem; text-align:center; background:var(--white); border-bottom:2px solid var(--ink); flex:none; }
.app-bal small{ font-size:10px; font-weight:700; color:var(--gray-dim); text-transform:uppercase; letter-spacing:.05em; }
.app-bal-v{ font-family:var(--font-display); font-size:28px; font-weight:700; color:var(--ink); line-height:1.1; margin-top:.2rem; }

.app-acts{ display:flex; gap:.5rem; padding:.75rem; border-bottom:2px solid var(--ink); background:#F4F5F5; flex:none; }
.app-act{ flex:1; background:var(--white); border:2px solid var(--ink); border-radius:10px; padding:.4rem; text-align:center; font-size:9px; font-weight:700; box-shadow:2px 2px 0 var(--ink); }
.app-act-ic{ font-size:14px; margin-bottom:.1rem; color:var(--pink); }

.app-txs{ flex:1; background:var(--white); padding:.75rem; border-top:2px solid var(--ink); overflow-y:auto; }
.app-txs > b{ font-size:11px; font-weight:700; color:var(--gray-dim); text-transform:uppercase; letter-spacing:.05em; display:block; margin-bottom:.6rem; }
.tx-row{ display:flex; align-items:center; gap:.5rem; margin-bottom:.7rem; }
.tx-ic{ width:28px; height:28px; border-radius:50%; border:2px solid var(--ink); display:grid; place-items:center; font-size:12px; font-weight:700; background:var(--pink); color:var(--ink); flex:none; }
.tx-nm{ flex:1; font-size:11px; font-weight:700; }
.tx-nm small{ display:block; font-size:9px; font-weight:600; color:var(--gray-dim); margin-top:.1rem; }
.tx-v{ font-size:11px; font-weight:700; color:var(--ink); }

.app-cards{ padding:.75rem; display:flex; flex-direction:column; gap:.6rem; flex:1; overflow-y:auto; }
.mc-card{
  background:var(--pink); border:2px solid var(--ink); border-radius:14px;
  padding:.75rem; box-shadow:3px 3px 0 var(--ink); color:var(--ink);
  display:flex; flex-direction:column; gap:1rem; position:relative; overflow:hidden; flex:none;
}
.mc-top{ display:flex; align-items:center; gap:.3rem; font-family:var(--font-display); font-size:12px; font-weight:700; }
.mc-logo{ width:18px; height:18px; border:none; }
.mc-mid{ font-size:14px; font-family:monospace; font-weight:700; letter-spacing:.1em; }
.mc-bot{ display:flex; justify-content:space-between; align-items:flex-end; font-size:12px; font-weight:700; }
.mc-bot b{ font-family:var(--font-display); font-size:16px; font-style:normal; transform:skewX(-10deg); }

.single-card-wrap{ padding:.5rem .75rem 0; flex:none; }
.sc-acts{ display:flex; gap:.6rem; padding:0 .75rem .7rem; justify-content:center; border-bottom:2px solid var(--ink); flex:none; }
.sc-btn{ display:flex; flex-direction:column; align-items:center; gap:.3rem; font-size:9px; font-weight:700; }
.sc-ic{ width:28px; height:28px; border-radius:50%; border:2px solid var(--ink); background:var(--white); box-shadow:2px 2px 0 var(--ink); display:grid; place-items:center; font-size:14px; }
.sc-pays{ padding:.7rem .75rem; margin-top:auto; display:flex; flex-direction:column; gap:.5rem; flex:none; }
.sc-pay-btn{ padding:.5rem; border-radius:10px; font-size:11px; font-weight:700; text-align:center; display:flex; align-items:center; justify-content:center; gap:.4rem; border:2px solid var(--ink); box-shadow:2px 2px 0 var(--ink); }
