/* Shared cart: header button + drawer. Loaded by index.html, about.html and shop.html. */
/* ═══════════════ CART BUTTON ═══════════════ */
.cart-btn{
  position:relative;display:inline-flex;align-items:center;justify-content:center;
  width:2.6rem;height:2.6rem;padding:0;flex:none;
  border:1px solid var(--hairline);border-radius:999px;background:#fff;color:var(--ink);cursor:pointer;
  transition:border-color .15s var(--ease),background .15s var(--ease);
}
.cart-btn:hover{border-color:var(--blue);color:var(--blue)}
.cart-btn:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.cart-btn__count{
  position:absolute;top:-.35rem;right:-.35rem;
  min-width:1.15rem;height:1.15rem;padding:0 .28rem;
  display:grid;place-items:center;border-radius:999px;
  background:var(--yellow);color:var(--blue-ink);
  font-size:.65rem;font-weight:800;line-height:1;font-variant-numeric:tabular-nums;
  box-shadow:0 2px 6px rgba(11,43,74,.25);
}
.cart-btn__count[hidden]{display:none}
.cart-btn.is-bump{animation:cart-bump .4s var(--ease)}
@keyframes cart-bump{0%{transform:scale(1)}40%{transform:scale(1.12)}100%{transform:scale(1)}}
@media (prefers-reduced-motion:reduce){.cart-btn.is-bump{animation:none}}

/* ═══════════════ CART DRAWER ═══════════════ */
.cart{position:fixed;inset:0;z-index:120;display:flex;justify-content:flex-end}
.cart[hidden]{display:none}
.cart__overlay{position:absolute;inset:0;background:rgba(11,26,43,.55);opacity:0;transition:opacity .25s var(--ease);}
.cart.is-open .cart__overlay{opacity:1}
.cart__panel{
  position:relative;width:min(23rem,100vw);height:100%;background:#fff;
  display:flex;flex-direction:column;
  box-shadow:-20px 0 60px rgba(11,43,74,.28);
  transform:translateX(100%);transition:transform .3s var(--ease);
}
.cart.is-open .cart__panel{transform:none}
@media (prefers-reduced-motion:reduce){.cart__overlay,.cart__panel{transition:none}}
.cart__head{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.25rem;background-color:var(--night);background-image:var(--grad-night);color:#fff;}
.cart__head h2{margin:0;font-size:1rem;font-weight:900;color:#fff;letter-spacing:-.01em}
.cart__close{
  width:2rem;height:2rem;padding:0;border:0;border-radius:999px;cursor:pointer;
  background:rgba(255,255,255,.12);color:#fff;font-size:1.25rem;line-height:1;
  display:grid;place-items:center;transition:background .15s var(--ease);
}
.cart__close:hover{background:rgba(255,255,255,.24)}
.cart__close:focus-visible{outline:2px solid var(--yellow);outline-offset:2px}
.cart__body{flex:1;overflow-y:auto;padding:1rem 1.25rem;background:var(--surface)}
.cart__empty{margin:2.5rem 0;text-align:center;color:var(--muted);font-size:.9rem;line-height:1.6;}
.cart__empty b{display:block;color:var(--ink);font-size:1rem;font-weight:700;margin-bottom:.35rem}
.cart__item{display:flex;gap:.875rem;align-items:flex-start;padding:.9rem 1rem;background:#fff;border:1px solid var(--hairline);border-radius:var(--radius);margin-bottom:.6rem;}
.cart__item-info{flex:1;min-width:0}
.cart__item-info b{display:block;font-size:.9rem;font-weight:700;color:var(--ink)}
.cart__item-info span{display:block;font-size:.8rem;color:var(--muted);line-height:1.45;margin-top:.15rem}
.cart__item-right{display:flex;flex-direction:column;align-items:flex-end;gap:.25rem;flex:none;text-align:right}
.cart__item-right strong{font-size:.9rem;font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums}
.cart__unit{font-size:.72rem;color:var(--muted);font-variant-numeric:tabular-nums}
.cart__remove{
  border:0;background:none;cursor:pointer;color:var(--muted);
  font-size:.72rem;font-weight:700;padding:.3rem 0;
  text-decoration:underline;text-underline-offset:2px;
}
.cart__remove:hover{color:#b23c0c}
.cart__remove:focus-visible{outline:2px solid var(--blue);outline-offset:1px;border-radius:2px}
.cart__qty{display:inline-flex;align-items:center;margin-top:.5rem;border:1px solid var(--hairline);border-radius:999px;background:#fff;}
.cart__qty button{
  width:1.8rem;height:1.8rem;border:0;background:none;cursor:pointer;
  font-size:.9rem;font-weight:800;color:var(--ink);display:grid;place-items:center;line-height:1;
  border-radius:999px;transition:background .15s var(--ease);
}
.cart__qty button:hover{background:var(--surface)}
.cart__qty button:disabled{color:#cbd4dd;cursor:not-allowed;background:none}
.cart__qty button:focus-visible{outline:2px solid var(--blue);outline-offset:0}
.cart__qty output{min-width:1.5rem;text-align:center;font-size:.85rem;font-weight:700;font-variant-numeric:tabular-nums;color:var(--ink);}
.cart__foot{padding:1rem 1.25rem 1.25rem;background:#fff;border-top:1px solid var(--hairline);}
.cart__foot[hidden]{display:none}
.cart__total{display:flex;justify-content:space-between;align-items:baseline;font-size:.9rem;color:var(--muted);margin-bottom:.35rem;}
.cart__total strong{font-size:1.35rem;color:var(--blue-ink);font-weight:900;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.cart__fine{margin:0 0 .875rem;font-size:.75rem;color:var(--muted);line-height:1.5}
.cart__checkout{width:100%;justify-content:center}
.cart__clear{
  display:block;width:100%;margin-top:.5rem;border:0;background:none;cursor:pointer;
  color:var(--muted);font:inherit;font-size:.78rem;
  text-decoration:underline;text-underline-offset:3px;padding:.5rem;
}
.cart__clear:hover{color:var(--ink)}
@media (max-width:32rem){.cart__panel{width:100vw}}

/* The invitation request at the foot of the cart (replaces "Checkout by email") */
.cart__invite{margin-top:.85rem;padding-top:1rem;border-top:1px solid var(--hairline)}
.cart__invite-kicker{display:flex;align-items:center;gap:.6rem;margin:0;font-size:.68rem;font-weight:700;letter-spacing:.2em;text-transform:uppercase;color:var(--blue)}
.cart__invite-kicker::after{content:"";flex:1;height:1px;background:var(--hairline)}
.cart__invite-title{margin:.55rem 0 0;font-size:1.05rem;font-weight:800;letter-spacing:-.01em;color:var(--blue-ink)}
.cart__invite-text{margin:.35rem 0 .85rem;font-size:.82rem;line-height:1.55;color:var(--muted)}
.cart__form{display:flex;flex-direction:column;gap:.5rem}
.cart__names{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}
.cart__form input{font:inherit;font-size:.95rem;padding:.7rem .85rem;border:1px solid rgba(11,26,43,.18);border-radius:10px;background:var(--surface);color:var(--ink);width:100%;box-sizing:border-box}
.cart__form input:focus-visible{outline:2px solid var(--blue);outline-offset:1px;background:#fff}
.cart__form input[aria-invalid="true"]{border-color:#b42318;box-shadow:0 0 0 3px rgba(180,35,24,.15)}
.cart__form .cart__checkout{margin-top:.15rem}
.cart__msg{margin:0;min-height:1em;font-size:.8rem;font-weight:700;color:var(--blue-ink)}
.cart__msg:empty{display:none}
.cart__invite .cart__fine{margin:.6rem 0 0}
.cart__fine a{color:inherit;text-underline-offset:2px}
/* A field people never see; it catches form-filling scripts. */
.form-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}


/* ═══════════════ SHARED HEADER: small screens ═══════════════
   Logo, menu, cart and the Packages button share one row on a phone. */
@media (max-width:60rem){
  .nav__toggle{flex:none}
  .nav__logo{flex:0 1 auto;min-width:0}
  .nav__logo img{max-width:100%;height:auto;max-height:1.35rem}
}
@media (max-width:26rem){
  .nav__inner{gap:.45rem}
  .nav__ctas{gap:.4rem}
  .nav__ctas .btn--primary{padding:0 .85rem}
}

/* Cart items open their details pop-up in the shop */
.cart__item-name{display:block;font-weight:800;color:var(--ink);text-decoration:none}
.cart__item-name:hover{color:var(--blue);text-decoration:underline;text-underline-offset:3px}
.cart__details{display:inline-block;margin-top:.25rem;font-size:.78rem;font-weight:700;color:var(--blue);text-underline-offset:3px}
.cart__item{cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease}
.cart__item:hover{border-color:var(--blue);box-shadow:0 4px 14px rgba(11,43,74,.08)}
.cart__item button{cursor:pointer}
/* Packages (Starter, Mid-Tier, Premium): how they're paid for, and a note when nothing is paid for twice */
.cart__item--pkg{flex-wrap:wrap}
.cart__item-plan{flex:1 0 100%;min-width:0}
.cart__plan{display:flex;flex-direction:column;gap:.3rem;margin:0;cursor:default}
.cart__plan span{margin:0;font-size:.72rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--blue-ink)}
.cart__plan select{width:100%;max-width:100%;font:inherit;font-size:.82rem;font-weight:600;padding:.45rem .6rem;border:1px solid var(--hairline-strong,rgba(11,43,74,.24));border-radius:10px;background:#fff;color:var(--ink);cursor:pointer}
.cart__plan select:focus-visible{outline:2px solid var(--blue);outline-offset:1px}
.cart__plan-note{display:block;margin-top:.3rem;font-size:.74rem;line-height:1.4;color:var(--muted)}
.cart__note{margin:0 0 .7rem;padding:.65rem .8rem;border-radius:12px;background:#ecfdf3;border:1px solid #abefc6;color:#14532d;font-size:.8rem;line-height:1.45;font-weight:600}

/* Compact footer, so more of the cart shows */
.cart__foot{padding:.75rem 1.25rem .9rem}
.cart__invite{margin-top:.6rem;padding-top:.6rem}
.cart__invite-kicker,.cart__invite-text{display:none}
.cart__invite-title{margin:0 0 .5rem;font-size:.95rem}
.cart__invite .cart__fine{margin:.4rem 0 0;font-size:.72rem}
.cart__clear{margin-top:.4rem}

/* The link to everything in the cart, at the bottom */
.cart__share{margin-top:.7rem;padding-top:.7rem;border-top:1px solid var(--hairline)}
.cart__share-label{margin:0 0 .35rem;font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.cart__share-row{display:flex;gap:.45rem}
.cart__share-row input{flex:1;min-width:0;font:inherit;font-size:.78rem;padding:.5rem .6rem;border:1px solid var(--hairline);border-radius:8px;background:var(--surface);color:var(--ink)}
.cart__share-row .btn{flex:none;padding:.5rem .9rem;font-size:.8rem}

/* Expand: a wide cart */
.cart__expand{margin-left:auto;margin-right:.5rem;border:1px solid var(--hairline);background:#fff;border-radius:999px;padding:.3rem .8rem;font:inherit;font-size:.78rem;font-weight:700;color:var(--blue-ink);cursor:pointer}
.cart--wide .cart__panel{width:min(60rem,100vw);max-width:100vw}
.cart--wide .cart__body{padding:1.25rem 2rem}
/* The length of the AI system, at the end of the items */
.cart__length{margin:.8rem 0 0;padding:.75rem .9rem;border-radius:10px;background:#fff;border:1px dashed var(--hairline);font-size:.85rem;display:grid;gap:.15rem}
.cart__length b{font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
/* Download quote */
.cart__quote{width:100%;margin-top:.5rem;justify-content:center;font-size:.85rem}

/* More of the cart: the items take up to 80% of the screen; your name, email, the discovery call request,
   the link and the quote sit below in their own scrollable area, with the total kept in view at its top. */
.cart__body{flex:0 0 auto;max-height:min(70vh,calc(100vh - 9rem));min-height:0}
.cart__foot{flex:1 1 auto;min-height:5rem;overflow-y:auto;overscroll-behavior:contain;padding-top:0}
.cart__foot .cart__total{position:sticky;top:0;z-index:1;background:#fff;padding:.75rem 0 .5rem;margin:0;border-bottom:1px solid var(--hairline)}

/* The discovery call: the bottom 30% of the screen, as an accordion (open at first; close it for more of the cart) */
.cart__foot{min-height:min(30vh,14rem)}
.cart__invite>summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:.6rem}
.cart__invite>summary::-webkit-details-marker{display:none}
.cart__invite>summary::after{content:"\25BE";font-size:.9rem;color:var(--muted);transition:transform .2s ease}
.cart__invite:not([open])>summary::after{transform:rotate(-90deg)}
.cart__invite[open]>summary{margin-bottom:.5rem}

/* "Your quote": an accordion above the discovery call */
.cart__quotebox{border-top:0;padding-top:.5rem;margin-top:.4rem}
.cart__quotebox .cart__quote{margin:0 0 .6rem}
.cart__quotebox .cart__share-label{margin-top:.2rem}

/* The quote form: who is it for */
.cart__quoteform{display:grid;gap:.5rem;margin:.5rem 0 .7rem}
.cart__quoteform[hidden]{display:none}
.cart__quoteform input{font:inherit;padding:.6rem .75rem;border:1px solid rgba(11,26,43,.2);border-radius:8px;width:100%;box-sizing:border-box}
.cart__quoteform input[aria-invalid="true"]{border-color:#b42318}
.cart__quoteform .cart__names{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}
