/* /kits/ (page-kits.php): the Build & Ship landing page. Phone first: almost
   every visitor comes from a Facebook ad on a phone. Theme tokens only. */

.kp-anchor{scroll-margin-top:90px}
.kp-err{margin:0 0 18px;padding:12px 16px;border-radius:var(--r-sm,8px);background:var(--blush);color:var(--ink);font-weight:600;border-left:4px solid var(--coral)}

/* Hero: words first on a phone, photo beside them on a wide screen. */
.kp-hero{padding:clamp(22px,5vw,64px) 0 clamp(26px,5vw,56px)}
.kp-hero__in{display:grid;gap:18px;align-items:center;grid-template-areas:"top" "kit" "bot"}
.kp-hero__top{grid-area:top}.kp-hero__bot{grid-area:bot}.kp-kit{grid-area:kit}
.kp-hero__bot .lead{margin-top:0}
.kp-hero__copy{text-align:center}
.kp-hero .d1{font-size:calc(clamp(2rem,6.4vw,3.6rem) * var(--dscale));line-height:1.08;margin:.15em 0 0}
.kp-hero .lead{margin:.9em auto 0;max-width:34rem}
.kp-chips{list-style:none;margin:18px 0 0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.kp-chips li{background:var(--paper);border:1px solid var(--line);border-radius:999px;padding:.45em .95em;font-size:.95rem;color:var(--text)}
.kp-chips b{color:var(--coral);font-family:var(--display);font-weight:var(--dw)}
.kp-hero__cta{margin:22px 0 0}
/* What comes in every kit: the plushie tall on the left, the four pieces in a 2 x 2 beside it (as the approved ad). */
.kp-kit{width:100%;max-width:560px;margin:0 auto}
.kp-kit__title{margin:0 0 12px;text-align:center;font-family:var(--display);font-weight:var(--dw);font-size:clamp(1.3rem,4.6vw,1.7rem);color:var(--ink);letter-spacing:-.01em}
.kp-kit__title em{font-style:var(--em-style);color:var(--coral)}
.kp-kit__grid{display:grid;grid-template-columns:1.15fr 1fr 1fr;grid-template-rows:auto auto;gap:10px}
.kp-kit__i{margin:0;display:flex;flex-direction:column;background:var(--paper);border:1px solid var(--sand-deep);border-radius:18px;padding:10px 8px 10px;box-shadow:var(--pop-sm)}
.kp-kit__i--plush{grid-row:1/span 2}
.kp-kit__art{flex:1;display:flex;align-items:center;justify-content:center;min-height:0;aspect-ratio:1/1}
.kp-kit__i--plush .kp-kit__art{aspect-ratio:auto}
.kp-kit__art img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.kp-kit__i--plush .kp-kit__art img{max-height:none;transform:scale(1.45)} /* the photo has a wide white margin */
.kp-kit__i--plush .kp-kit__art{overflow:hidden}
.kp-kit__i figcaption{margin-top:6px;text-align:center;font-family:var(--display);font-weight:var(--dw);font-size:clamp(.82rem,2.9vw,1rem);line-height:1.15;color:var(--ink)}
@media(min-width:880px){
  .kp-hero__in{grid-template-columns:1.05fr .95fr;grid-template-areas:"top kit" "bot kit";gap:0 56px;align-items:end}
  .kp-hero__bot{align-self:start;margin-top:18px}
  .kp-hero__copy{text-align:left}
  .kp-hero .lead{margin-left:0}
  .kp-chips{justify-content:flex-start}
}

/* The shop: two cards a row on a phone, up to five on a wide screen. */
.kp-shop{scroll-margin-top:70px}
.kp-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media(min-width:620px){.kp-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}}
@media(min-width:980px){.kp-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:18px}}
.kp-card{display:flex;flex-direction:column;background:var(--paper);border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:var(--pop-sm);transition:border-color .2s ease,box-shadow .2s ease}
.kp-card.is-picked{border-color:var(--coral);box-shadow:0 0 0 2px var(--coral),var(--pop-sm)}
.kp-card.is-out{opacity:.55}
/* The photo is placed absolutely inside the square: a flex-centred img with width/height 100% would not
   shrink below its 300px size on iPhone Safari and ran off to the right (Meg 11/14). */
.kp-card__art{position:relative;aspect-ratio:1/1;background:#fff}
.kp-card__art img{position:absolute;top:8%;left:8%;width:84%;height:84%;object-fit:contain}
.kp-card__body{padding:10px 12px 12px;display:flex;flex-direction:column;gap:6px;flex:1}
.kp-card__top{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.kp-card__name{margin:0;min-width:0;font-family:var(--display);font-weight:var(--dw);font-size:1.02rem;line-height:1.2;color:var(--ink)}
.kp-card__price{flex:none;font-weight:700;color:var(--coral-deep);font-variant-numeric:tabular-nums}
.kp-card__left{margin:-2px 0 0;font-size:.8rem;font-weight:700;color:var(--coral-deep)}
.kp-step{margin-top:auto}
.kp-step__add{width:100%;min-height:44px;border:0;border-radius:999px;background:var(--coral);color:#fff;font:700 1rem/1 var(--body);cursor:pointer;transition:background-color .15s ease,transform .1s ease}
.kp-step__add:hover{background:var(--coral-deep)}
.kp-step__add:active,.kp-step__btn:active{transform:scale(.97)}
.kp-step__qty{display:flex;align-items:center;justify-content:space-between;min-height:44px;border:2px solid var(--coral);border-radius:999px;padding:2px}
.kp-step__qty[hidden],.kp-step__add[hidden]{display:none}
.kp-step__btn{width:40px;height:40px;border:0;border-radius:50%;background:var(--blush);color:var(--coral-deep);font:700 1.35rem/1 var(--body);cursor:pointer}
.kp-step__btn:disabled{opacity:.35;cursor:not-allowed}
.kp-step__n{font:700 1.1rem/1 var(--display);color:var(--ink);font-variant-numeric:tabular-nums;min-width:2ch;text-align:center}
.kp-step__add:focus-visible,.kp-step__btn:focus-visible{outline:3px solid var(--pine);outline-offset:2px}
@media(prefers-reduced-motion:reduce){.kp-step__add,.kp-step__btn,.kp-card{transition:none}}
.kp-sub{margin:clamp(30px,5vw,48px) 0 14px;text-align:center;font-family:var(--display);font-weight:var(--dw);font-size:1.35rem;color:var(--ink)}
.kp-sub span{font-family:var(--body);font-weight:500;font-size:1rem;color:var(--muted)}
.kp-grid--acc .kp-card__art img{top:12%;left:12%;width:76%;height:76%}

/* How it works */
.kp-steps{list-style:none;margin:0 auto;padding:0;display:grid;gap:14px;max-width:62rem;counter-reset:kp}
@media(min-width:760px){.kp-steps{grid-template-columns:repeat(3,1fr);gap:22px}}
.kp-steps li{counter-increment:kp;background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:20px 20px 22px;text-align:center}
.kp-steps li::before{content:counter(kp);display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;background:var(--coral);color:#fff;font:700 1.2rem/1 var(--display);margin-bottom:10px}
.kp-steps b{display:block;font-family:var(--display);font-weight:var(--dw);font-size:1.25rem;color:var(--ink)}
.kp-steps span{display:block;margin-top:6px;color:var(--text)}

/* Made for: birthdays first and biggest. */
.kp-uses__list{list-style:none;margin:0 auto;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:52rem}
.kp-uses__list li{background:var(--paper);border-radius:16px;padding:16px;text-align:center;font-family:var(--display);font-weight:var(--dw);font-size:1.08rem;color:var(--ink);display:flex;align-items:center;justify-content:center;min-height:64px}
.kp-uses__list li.is-big{grid-column:1/-1;flex-direction:column;gap:8px;padding:22px 20px;font-size:1.5rem;border:2px solid var(--coral)}
.kp-uses__list li.is-big span{font-family:var(--body);font-weight:400;font-size:1rem;color:var(--text);max-width:36rem;line-height:1.5}
@media(min-width:760px){.kp-uses__list{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Shipping */
.kp-ship__list{list-style:none;margin:0 auto;padding:0;display:grid;gap:12px;max-width:56rem}
@media(min-width:760px){.kp-ship__list{grid-template-columns:repeat(2,1fr);gap:16px}}
.kp-ship__list li{background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:16px 18px}
.kp-ship__list b{display:block;font-family:var(--display);font-weight:var(--dw);font-size:1.15rem;color:var(--ink)}
.kp-ship__list span{display:block;margin-top:4px;color:var(--text)}
.kp-end{text-align:center}

/* The tiny bar along the bottom (every screen size), up once something is picked. */
.kp-bar{position:fixed;left:50%;bottom:calc(12px + env(safe-area-inset-bottom));z-index:80;display:flex;align-items:center;gap:12px;
  width:min(560px,calc(100% - 24px));padding:8px 8px 8px 18px;border-radius:999px;background:var(--ink);color:#fff;box-shadow:var(--pop-up);
  transform:translate(-50%,140%);transition:transform .32s cubic-bezier(.23,1,.32,1)}
.kp-bar.is-up{transform:translate(-50%,0)}
.kp-bar[hidden]{display:none}
.kp-bar__sum{flex:1;min-width:0;line-height:1.2;font-variant-numeric:tabular-nums;text-align:left}
.kp-bar__sum b{font-family:var(--display);font-weight:var(--dw);font-size:1.05rem;color:#fff} /* the theme makes every <b> ink */
.kp-bar__sum span{font-weight:700;margin-left:6px}
.kp-bar__sum small{display:block;font-size:.8rem;color:rgba(255,255,255,.78);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kp-bar__go{flex:none;min-height:46px;padding:.7em 1.3em;border-radius:999px}
.kp-bar__go:disabled{opacity:.55;cursor:not-allowed}
@media(prefers-reduced-motion:reduce){.kp-bar{transition:none}}
body.has-kp-bar{padding-bottom:calc(84px + env(safe-area-inset-bottom))}
/* The theme's own phone bar would sit under ours: hide it on this page. */
body.page-kits .mbar{display:none}
