/* ===========================================================
   ShopForMe — site chrome & homepage (mobile-first)
   =========================================================== */

/* ---------------- masthead ---------------- */
.mast{
  position:sticky;top:0;z-index:60;background:var(--paper);
  border-bottom:1px solid var(--line);
}
.mast .wrap{display:flex;align-items:center;gap:14px;height:60px}
.brand{display:flex;align-items:center;flex:none}
.brand img{height:22px;width:auto}
.brand-txt{font-weight:900;letter-spacing:-.035em;font-size:1.32rem;line-height:1}
.brand-txt .o{color:var(--orange)}
.mast-nav{display:none}
.mast .mast-cta{display:none}
.burger{
  margin-left:auto;width:44px;height:44px;display:flex;align-items:center;justify-content:center;
  background:none;border:0;cursor:pointer;
}
.burger span{display:block;width:22px;height:2px;background:var(--ink);position:relative}
.burger span::before,.burger span::after{content:"";position:absolute;left:0;width:22px;height:2px;background:var(--ink)}
.burger span::before{top:-7px}.burger span::after{top:7px}

/* mobile drawer */
.mast-nav{
  position:fixed;inset:60px 0 auto 0;background:var(--paper);
  border-bottom:1px solid var(--line);padding:6px var(--gut) 22px;
  flex-direction:column;align-items:stretch;
  box-shadow:0 12px 24px -18px rgba(20,22,26,.4);
}
.mast-nav.open{display:flex}
.mast-nav a{padding:15px 2px;border-bottom:1px solid var(--line);font-size:1.05rem;font-weight:500}
.mast-nav .btn{margin-top:18px;border-bottom:0}

@media (min-width:960px){
  .burger{display:none}
  .mast .wrap{height:74px;gap:30px}
  .brand img{height:26px}
  .mast-nav{
    position:static;display:flex;flex-direction:row;align-items:center;gap:28px;
    margin-inline:auto;padding:0;border:0;box-shadow:none;inset:auto;
  }
  .mast-nav a{
    padding:4px 0;border:0;font-size:.95rem;font-weight:400;color:var(--ink-2);
    border-bottom:2px solid transparent;
  }
  .mast-nav a:hover{color:var(--ink)}
  .mast-nav a[aria-current=page]{color:var(--ink);font-weight:500;border-bottom-color:var(--orange)}
  .mast-nav .btn{display:none}
  .mast .mast-cta{display:inline-flex;min-height:44px;padding:0 22px;font-size:.95rem;flex:none}
}

/* ---------------- hero ---------------- */
.hero{background:var(--sand);padding:30px 0 34px;overflow:hidden}
.hero .display{margin-bottom:16px}
.hero .display .o{color:var(--orange);display:block}
.hero .lede{margin-bottom:18px}
.hero .promise{font-weight:700;font-size:1.05rem;line-height:1.45;letter-spacing:-.015em;margin-bottom:24px;max-width:26ch}
.hero-cta{display:flex;flex-direction:column;gap:11px}
.hero-cta .btn{width:100%}

@media (min-width:560px){
  .hero-cta{flex-direction:row}
  .hero-cta .btn{width:auto;min-width:190px}
}
@media (min-width:960px){
  .hero{padding:56px 0 60px}
  .hero .wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:40px;align-items:center}
  .hero .promise{font-size:1.15rem;margin-bottom:30px}
}
@media (min-width:1120px){
  .hero .wrap{grid-template-columns:minmax(0,1fr) minmax(0,1.12fr);gap:56px}
}

/* ---------------- hero stage (product composition) ---------------- */
.stage{
  position:relative;margin:22px auto 0;width:100%;max-width:430px;
  aspect-ratio:1 / .66;
}
.stage img{position:absolute;height:auto;object-fit:contain}
.stage .s-grocery{right:2%;top:0;width:40%}
.stage .s-group{left:-2%;bottom:0;width:76%}
.stage .phone{display:none}

@media (min-width:560px){
  .stage{max-width:560px;aspect-ratio:1 / .80}
  .stage .phone{
    display:block;position:absolute;left:31%;top:2%;width:37%;z-index:3;
    filter:drop-shadow(0 22px 34px rgba(20,22,26,.24));
  }
  .stage .s-grocery{right:-1%;top:6%;width:38%;z-index:1}
  .stage .s-group{left:-6%;bottom:0;width:50%;z-index:2}
}
@media (min-width:960px){
  .stage{margin:0;max-width:none;aspect-ratio:1 / .84}
  .stage .phone{left:32%;width:35%}
  .stage .s-grocery{width:36%;top:4%}
  .stage .s-group{width:52%;left:-8%}
}

/* the phone mock-up — built in markup so it stays crisp and responsive */
.phone{
  background:var(--ink);border-radius:13.5% / 9.5%;padding:2.6% 2.4%;
  aspect-ratio:1 / 2.06;
}
.phone-screen{
  background:var(--paper);border-radius:11.5% / 5.6%;height:100%;overflow:hidden;
  display:flex;flex-direction:column;padding:7% 7% 6%;container-type:inline-size;
}
.ps-bar{display:flex;justify-content:space-between;align-items:center;font-size:5.6cqw;color:var(--ink-3);margin-bottom:6%}
.ps-brand{font-weight:900;letter-spacing:-.04em;font-size:7.6cqw;color:var(--ink)}
.ps-brand .o{color:var(--orange)}
.ps-q{font-weight:700;font-size:8.4cqw;line-height:1.2;letter-spacing:-.03em;margin-bottom:2.5%}
.ps-sub{font-size:6cqw;color:var(--ink-3);margin-bottom:7%}
.ps-thumbs{display:grid;grid-template-columns:repeat(3,1fr);gap:4%;margin-bottom:6%}
.ps-thumbs span{
  display:block;aspect-ratio:1;background:var(--sand);border:1px solid var(--line);
  border-radius:9%;overflow:hidden;
}
.ps-thumbs img{width:100%;height:100%;object-fit:contain;position:static}
.ps-go{
  margin-top:auto;background:var(--orange);color:#fff;text-align:center;font-weight:700;
  font-size:7cqw;padding:6.5% 0;border-radius:7%;
}
.ps-foot{
  margin-top:4%;display:flex;align-items:center;justify-content:center;gap:2.5%;
  background:var(--sand);border-radius:7%;padding:4.5% 3%;font-size:5.4cqw;color:var(--ink-2);
}
.ps-foot svg{width:6cqw;height:6cqw;flex:none;position:static}

/* ---------------- trust strip ---------------- */
.trust-wrap{background:var(--sand);padding-bottom:34px}
.trust{
  background:var(--paper);border:1px solid var(--line);border-radius:var(--r);
  display:grid;grid-template-columns:1fr 1fr;
}
.trust div{
  display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;
  padding:18px 10px;font-size:.84rem;font-weight:500;color:var(--ink-2);line-height:1.3;
}
.trust div:nth-child(odd){border-right:1px solid var(--line)}
.trust div:nth-child(-n+2){border-bottom:1px solid var(--line)}
.trust svg{width:24px;height:24px;stroke:var(--ink);stroke-width:1.5;fill:none}
@media (min-width:760px){
  .trust{grid-template-columns:repeat(4,1fr)}
  .trust div{border-right:1px solid var(--line);border-bottom:0;padding:22px 12px;font-size:.9rem}
  .trust div:last-child{border-right:0}
}

/* ---------------- generic section ---------------- */
.sec{padding:34px 0}
.sec-sand{background:var(--sand)}
@media (min-width:960px){ .sec{padding:52px 0} }

/* ---------------- category tiles ---------------- */
.cats{
  display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;
  padding-bottom:4px;margin-inline:calc(var(--gut) * -1);padding-inline:var(--gut);
  scrollbar-width:none;
}
.cats::-webkit-scrollbar{display:none}
.cat{
  flex:none;width:118px;scroll-snap-align:start;
  background:var(--paper);border:1px solid var(--line);border-radius:var(--r);
  padding:14px 8px 11px;text-align:center;transition:border-color .14s ease;
}
.cat:hover{border-color:var(--ink-4)}
.cat figure{height:58px;display:flex;align-items:center;justify-content:center;margin-bottom:10px}
.cat img{max-height:58px;width:auto;object-fit:contain}
.cat span{display:block;font-size:.82rem;font-weight:500;line-height:1.3;color:var(--ink-2);
          white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cat-more figure{color:var(--ink-4);font-size:1.5rem;letter-spacing:.1em}
@media (min-width:760px){
  .cats{display:grid;grid-template-columns:repeat(7,1fr);gap:12px;overflow:visible;
        margin-inline:0;padding-inline:0}
  .cat{width:auto;padding:20px 10px 16px}
  .cat figure{height:74px;margin-bottom:12px}
  .cat img{max-height:74px}
  .cat span{font-size:.88rem;white-space:normal}
}

/* ---------------- product cards (shared with the shop) ---------------- */
.pgrid{
  display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;
  margin-inline:calc(var(--gut) * -1);padding:0 var(--gut) 4px;scrollbar-width:none;
}
.pgrid::-webkit-scrollbar{display:none}
.pgrid > .card{flex:none;width:158px;scroll-snap-align:start}
@media (min-width:620px){
  .pgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;overflow:visible;
         margin-inline:0;padding:0}
  .pgrid > .card{width:auto}
}
@media (min-width:900px){ .pgrid{grid-template-columns:repeat(4,1fr)} }

.card{
  background:var(--paper);border:1px solid var(--line);border-radius:var(--r);
  display:flex;flex-direction:column;position:relative;overflow:hidden;
  transition:border-color .14s ease;
}
.card:hover{border-color:var(--ink-4)}
.card .thumb{display:block;aspect-ratio:1;background:var(--paper);overflow:hidden;padding:8px}
/* lifestyle photography fills its tile instead of floating in white */
.card .thumb.cover{padding:0}
.card .thumb.cover img{object-fit:cover}
.card .thumb img{width:100%;height:100%;object-fit:contain}
/* neutral category marks stand in until a product is photographed */
.card .thumb img[src*='/assets/img/ph/']{width:52%;height:52%;margin:auto;opacity:.55}
.card .info{padding:11px 12px 13px;display:flex;flex-direction:column;flex:1;gap:5px}
.card .title{
  font-size:.88rem;line-height:1.35;color:var(--ink-2);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  min-height:2.7em;
}
.card .title:hover{color:var(--orange)}
.card .price{font-weight:700;font-size:1rem;letter-spacing:-.02em;line-height:1.2}
.card .was{font-size:.78rem;color:var(--ink-4);text-decoration:line-through;margin-left:6px;font-weight:400}
.card .flag{
  position:absolute;top:9px;left:9px;z-index:2;
  background:var(--orange);color:#fff;font-size:.7rem;font-weight:700;padding:3px 8px;border-radius:var(--r-xs);
}
.card .off{
  position:absolute;top:9px;right:9px;z-index:2;
  background:var(--ink);color:#fff;font-size:.7rem;font-weight:700;padding:3px 7px;border-radius:var(--r-xs);
}
.card .ship{font-size:.75rem;color:var(--green);font-weight:500}
.card .cta-row{margin-top:auto;padding-top:9px}
.card .add{
  width:100%;min-height:38px;border:1px solid var(--line-2);background:var(--paper);color:var(--ink);
  border-radius:var(--r-sm);font-size:.83rem;font-weight:700;cursor:pointer;transition:.14s;
}
.card .add:hover{background:var(--ink);border-color:var(--ink);color:#fff}
.card .add.in{background:var(--green);border-color:var(--green);color:#fff}
@media (min-width:620px){
  .card .info{padding:13px 14px 15px}
  .card .title{font-size:.92rem}
  .card .price{font-size:1.06rem}
  .card .add{min-height:42px;font-size:.88rem}
}

/* ---------------- "can't find it" band ---------------- */
.findit{
  background:var(--sand);border:1px solid var(--line);border-radius:var(--r);
  padding:20px;display:flex;flex-direction:column;gap:16px;
}
.findit h3{font-weight:700;font-size:1.12rem;letter-spacing:-.02em;margin-bottom:5px}
.findit p{font-size:.94rem;color:var(--ink-2);max-width:46ch}
.findit .btn{width:100%}
@media (min-width:700px){
  .findit{flex-direction:row;align-items:center;justify-content:space-between;padding:26px 28px;gap:28px}
  .findit .btn{width:auto;flex:none}
}

/* ---------------- how it works ---------------- */
.steps{display:grid;gap:0;border-top:1px solid var(--line)}
.step{display:grid;grid-template-columns:44px minmax(0,1fr);gap:14px;padding:20px 0;border-bottom:1px solid var(--line)}
.step-n{font-weight:900;font-size:1.15rem;color:var(--orange);letter-spacing:-.02em;line-height:1.4}
.step h3{font-weight:700;letter-spacing:-.02em;font-size:1.05rem;margin-bottom:5px}
.step p{color:var(--ink-2);font-size:.95rem}
@media (min-width:900px){
  .steps{grid-template-columns:repeat(4,1fr);border-top:0;gap:24px}
  .step{display:block;padding:0;border-bottom:0;border-top:2px solid var(--ink);padding-top:16px}
  .step-n{font-size:.9rem;margin-bottom:8px}
}

/* ---------------- ways to use ---------------- */
.ways{display:grid;gap:14px}
.way{background:var(--paper);border:1px solid var(--line);border-radius:var(--r);padding:18px}
.way q{display:block;font-size:1.02rem;font-weight:500;letter-spacing:-.015em;quotes:"“" "”";line-height:1.4}
.way p{margin-top:8px;font-size:.9rem;color:var(--ink-3)}
@media (min-width:760px){ .ways{grid-template-columns:1fr 1fr;gap:16px} }

/* ---------------- closing band ---------------- */
.band{background:var(--ink);color:#fff;padding:44px 0}
.band .h1{color:#fff}
.band .h1 .o{color:var(--orange)}
.band p{color:#a8aeb9;margin-top:14px;font-size:1.02rem;max-width:46ch}
.band .actions{display:flex;flex-direction:column;gap:11px;margin-top:26px}
.band .btn-ghost{color:#fff;border-color:rgba(255,255,255,.3);background:transparent}
.band .btn-ghost:hover{background:rgba(255,255,255,.08);border-color:#fff}
@media (min-width:560px){ .band .actions{flex-direction:row} .band .actions .btn{min-width:180px} }
@media (min-width:960px){ .band{padding:72px 0} }

/* ---------------- footer ---------------- */
.foot{background:var(--ink);color:#8f96a3;padding:40px 0 26px;border-top:1px solid rgba(255,255,255,.1)}
.foot-grid{display:grid;grid-template-columns:1fr 1fr;gap:26px}
.foot-grid > :first-child{grid-column:1/-1}
.foot .brand-txt{color:#fff;font-size:1.35rem}
.foot h4{font-weight:700;font-size:.9rem;color:#fff;margin-bottom:11px}
.foot li{padding:5px 0;font-size:.92rem}
.foot a:hover{color:#fff}
.foot-note{
  margin-top:34px;padding-top:18px;border-top:1px solid rgba(255,255,255,.1);
  display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;font-size:.85rem;
}
@media (min-width:820px){
  .foot{padding:56px 0 30px}
  .foot-grid{grid-template-columns:minmax(0,1.6fr) repeat(3,minmax(0,1fr));gap:34px}
  .foot-grid > :first-child{grid-column:auto}
}

/* ---------------- faq ---------------- */
.faq{border-top:1px solid var(--line)}
.faq details{border-bottom:1px solid var(--line)}
.faq summary{
  list-style:none;cursor:pointer;padding:18px 40px 18px 0;position:relative;
  font-weight:500;font-size:1.02rem;letter-spacing:-.015em;
}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{
  content:"";position:absolute;right:8px;top:50%;width:11px;height:11px;
  border-right:2px solid var(--ink-3);border-bottom:2px solid var(--ink-3);
  transform:translateY(-70%) rotate(45deg);transition:transform .16s ease;
}
.faq details[open] summary::after{transform:translateY(-20%) rotate(225deg)}
.faq .a{padding:0 0 20px;color:var(--ink-2);max-width:70ch}

/* ---------------- interior page header ---------------- */
.phead{padding:28px 0 22px;border-bottom:1px solid var(--line)}
.phead .lede{margin-top:14px}
@media (min-width:900px){ .phead{padding:48px 0 38px} }

/* ---------------- toast ---------------- */
.toast{
  position:fixed;left:50%;bottom:22px;transform:translateX(-50%) translateY(140%);
  background:var(--ink);color:#fff;padding:13px 20px;border-radius:var(--r-sm);
  font-size:.92rem;z-index:300;max-width:calc(100% - 28px);
  opacity:0;visibility:hidden;pointer-events:none;
  transition:transform .22s cubic-bezier(.2,.8,.3,1), opacity .18s ease, visibility 0s linear .2s;
}
.toast.show{transform:translateX(-50%) translateY(0);opacity:1;visibility:visible;transition-delay:0s}
