/* Refill y club, version 2 (2026-11-09). Tag: clean studio photos, no store photos; the gallons in a side-scrolling bar, since they have their own page.
   Look A follows Aesop: photo beside the line, the two ways as a quiet list on a panel. Look B (?v=b) follows Augustinus Bader: the gallons big on a grey field. Version 4: the two ways as two photos that open (Tag's pick), and what one gallon saves drawn as the gallon filling the bottle, in both looks.
   The two ways (three looks, ?how=), the bar and the reminder are the same in both. The club has its own page, club.html (Tag, 2026-11-09). Version 1 (store photos, gallon rows): refill-v1.html. Spacing tokens: style.css. */
body[data-v="a"] [data-only="b"],body[data-v="b"] [data-only="a"]{display:none!important}
main{padding-top:var(--hd)}
.rf-sec{margin-top:var(--section)}
.rf-sec h2{font-size:clamp(32px,3.6vw,56px);max-width:20ch;text-wrap:balance}
.rf-btns{display:flex;flex-wrap:wrap;gap:12px}
.fine{color:var(--muted);font-size:18px}

/* Opening, A: the line beside a studio photo of a hand on the gallon's pump. */
.rf-hero{display:grid;grid-template-columns:minmax(0,6fr) minmax(0,6fr);align-items:stretch;min-height:min(84svh,820px)}
.rf-hero>img{display:block;width:100%;height:100%;object-fit:cover;object-position:60% 50%}
.rf-hero-txt,.rf-grey-txt{display:flex;flex-direction:column;gap:var(--head);align-items:flex-start;padding:var(--group) var(--pad)}
.rf-hero-txt>:first-child,.rf-grey-txt>:first-child{margin-top:auto}
.rf-hero-txt>:last-child,.rf-grey-txt>:last-child{margin-bottom:auto}
.rf-hero h1,.rf-grey h1{font-size:clamp(44px,5.6vw,92px);max-width:11ch;text-wrap:balance}
.rf-hero .sub,.rf-grey .sub{max-width:40ch;font-size:clamp(20px,1.5vw,24px)}

/* Opening, B: the gallons big on the photo's own grey (Bader). The text panel carries the same grey, and the photo's left edge fades into it. */
.rf-grey{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);align-items:stretch;min-height:min(84svh,820px);background:linear-gradient(180deg,#cdcccc 0%,#dadad9 55%,#ebeae9 100%)}
.rf-grey>img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 60%;-webkit-mask-image:linear-gradient(90deg,transparent,#000 14%);mask-image:linear-gradient(90deg,transparent,#000 14%)}
.rf-grey .crumbs{color:#3f3d39}

/* The two ways to refill: two photos side by side (Tag's pick of three, 2026-11-09; the other two are in refill-v3). */
.wo>h2{margin:0 var(--pad) var(--group)}

/* 1: two photos side by side; the open one widens and shows its steps (Bader's category strip). */
.wo-row{display:flex;gap:var(--grid);height:clamp(520px,64vh,700px);margin:0 var(--pad)}
.wo-p{position:relative;flex:1 1 0;min-width:0;overflow:hidden;transition:flex-grow .7s cubic-bezier(.2,.8,.2,1)}
.wo-p[data-open="true"]{flex-grow:1.9}
.wo-p>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 40%}
/* The in-store panel's photo is a studio shot of one bottle, upright. Filling the wide panel cut off its pump and its base (Tag, 2026-11-27: "Yes, fix it").
   It now keeps its own shape at the panel's full height, on the right, clear of the text; the panel carries the photo's own grey (measured at its edges) and the photo fades into it at the sides. */
.wo-p:first-child{background:#dcd9d4}
.wo-p:first-child>img{inset:0 0 0 auto;width:auto;aspect-ratio:4/5;-webkit-mask-image:linear-gradient(90deg,transparent,#000 16%,#000 84%,transparent);mask-image:linear-gradient(90deg,transparent,#000 16%,#000 84%,transparent)}
.wo-txt{position:absolute;left:clamp(12px,1.6vw,24px);right:clamp(12px,1.6vw,24px);bottom:clamp(12px,1.6vw,24px);display:grid;gap:4px;padding:clamp(16px,1.8vw,28px);background:rgba(244,243,239,.94);max-width:520px}
.wo-txt h3 button{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:48px;padding:0;border:0;background:none;color:inherit;font:500 clamp(28px,2.6vw,44px)/1 var(--d);text-align:left;cursor:pointer}
.wo-txt h3 button::after{content:"";width:14px;height:14px;flex:none;border-right:2px solid currentColor;border-bottom:2px solid currentColor;rotate:-45deg;transition:rotate .4s}
.wo-p[data-open="true"] h3 button::after{rotate:45deg}
/* A closed panel's steps are hidden from view and from the tab order; visibility waits for the fold to close. */
.wo-body{display:grid;grid-template-rows:0fr;visibility:hidden;transition:grid-template-rows .6s cubic-bezier(.2,.8,.2,1),visibility 0s .6s}
.wo-p[data-open="true"] .wo-body{grid-template-rows:1fr;visibility:visible;transition-delay:0s}
.wo-body>div{overflow:hidden;display:grid;gap:12px;justify-items:start}
.wo-steps{list-style:none;counter-reset:w;display:grid;gap:6px;margin:12px 0 0;padding:0}
.wo-steps li{counter-increment:w;display:grid;grid-template-columns:28px minmax(0,1fr);align-items:baseline;font-size:clamp(19px,1.4vw,22px)}
.wo-steps li::before{content:counter(w);font:500 22px/1 var(--d);color:var(--calendula)}
.wo-body a{display:inline-flex;align-items:center;min-height:44px;color:var(--ink);font-weight:600;text-underline-offset:3px}

/* Version 6 (2026-11-09): the bottles traced from the product photos, the number in calendula; version 5 (calmer fill, three pickers) kept as refill-v5.css, version 4 as refill-v4.css.
   What one gallon saves, drawn (both looks): the 3.5 L gallon empties into your bottle once per fill; a small bottle is ticked for each. Liquid colour per product: --liq, set by the script. */
.save{display:grid;grid-template-columns:minmax(0,6fr) minmax(0,6fr);gap:clamp(24px,5vw,96px);align-items:center;margin:0 var(--pad)}
.pour{display:grid;gap:18px;margin:0;padding:clamp(20px,3vw,44px) clamp(16px,2.4vw,36px);background:var(--panel)}
.pour svg{display:block;width:100%;height:auto;overflow:visible}
.p-glass{fill:#f7f6f2}
#bot-glass{fill:var(--glass,#f7f6f2)}
.p-pump{fill:#fbfaf7;stroke:var(--ink);stroke-width:3;stroke-linejoin:round}
.p-press{transition:translate .32s cubic-bezier(.3,.7,.3,1)}
.p-press.down{translate:0 10px}
.pour svg{transition:opacity .22s}
.pour svg.swap{opacity:0}
.p-liquid{fill:var(--liq,#d9a033);transition:fill .3s}
.p-line{fill:none;stroke:var(--ink);stroke-width:3;stroke-linejoin:round;stroke-linecap:round}
.p-cap{fill:var(--ink)}
.p-label{fill:#fff;opacity:.9}
.p-label-l{fill:none;stroke:var(--ink);stroke-width:2;stroke-linecap:round;opacity:.45}
.p-stream{fill:none;stroke:var(--liq,#d9a033);stroke-width:6;stroke-dasharray:1 1;stroke-dashoffset:1}
.pour-row{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 6px;min-height:34px;padding-top:6px}
.pour-row i{display:block;height:32px}
.pour-row svg{display:block;height:100%;width:auto;overflow:visible}
.pour-row path{fill:transparent;stroke:var(--ink);stroke-width:1.5;stroke-linejoin:round;vector-effect:non-scaling-stroke;transition:fill .3s}
.pour-row i.on path{fill:var(--liq,#d9a033)}
.save-txt{display:grid;gap:var(--head);justify-items:start}
.save-big{display:flex;align-items:flex-end;gap:16px;flex-wrap:wrap}
.save-big b{min-width:1.1ch;color:var(--calendula);font:500 clamp(120px,15vw,240px)/1 var(--d);letter-spacing:-.04em;font-variant-numeric:tabular-nums}
.save-big span{padding-bottom:.35em;font:500 clamp(26px,2.4vw,38px)/1.1 var(--d);max-width:17ch}
.save-txt p{max-width:46ch}
@media (prefers-reduced-motion:reduce){.p-press,.pour svg,.p-liquid,.pour-row path{transition:none}}

/* The product picker: the product photos (Tag picked b of three, 2026-11-09; a and c are in refill-v5.css). Name and bottle size on every one; the chosen one in ink, the others muted. */
.pick{display:flex;flex-wrap:wrap;gap:12px clamp(14px,1.6vw,24px)}
.pk{display:grid;justify-items:start;align-content:start;gap:2px;min-height:44px;padding:0;border:0;background:none;color:var(--muted);font:inherit;text-align:left;cursor:pointer;transition:color .2s}
.pk b{font-weight:500;font-size:18px;line-height:1.25}
.pk small{font-size:15px}
.pk[aria-pressed=true]{color:var(--ink)}
.pk:hover{color:var(--ink)}
/* b: the clean product photos, the chosen one framed */
.pk-ph{display:block;width:clamp(92px,7.4vw,116px);aspect-ratio:3/4;margin-bottom:10px;overflow:hidden;background:#e7e4df;outline:1.5px solid transparent;outline-offset:4px;transition:outline-color .2s}
.pk-ph img{display:block;width:100%;height:100%;object-fit:cover;scale:1.3;transition:scale .5s cubic-bezier(.2,.8,.2,1)}
.pick-b .pk:hover .pk-ph img{scale:1.36}
.pick-b .pk[aria-pressed=true] .pk-ph{outline-color:var(--ink)}
.pick-b .pk:not([aria-pressed=true]) .pk-ph img{opacity:.7;transition:opacity .2s,scale .5s cubic-bezier(.2,.8,.2,1)}
.pick-b .pk{width:clamp(92px,7.4vw,116px)}

/* The bar: the home page's rail and cards, with big square photos. The scroll bar is drawn so it shows before anyone scrolls. */
#galones .sec-head{align-items:end}
.gal-sub{margin-top:var(--stack);max-width:52ch;color:var(--muted)}
.gal-nav{display:flex;align-items:center;gap:8px;flex:none}
.gal-nav a{display:inline-flex;align-items:center;min-height:44px;margin-right:16px;font-weight:600;font-size:18px;text-underline-offset:3px}
.arrow{display:grid;place-items:center;width:48px;height:48px;border:1px solid var(--ink);border-radius:50%;background:none;color:var(--ink);cursor:pointer}
.arrow::before{content:"";width:10px;height:10px;border-top:2px solid currentColor;border-right:2px solid currentColor;rotate:45deg;translate:-2px 0}
.arrow[data-dir="-1"]::before{rotate:-135deg;translate:2px 0}
.arrow:hover:not(:disabled){background:var(--ink);color:var(--on-dark)}
.arrow:disabled{opacity:.3;cursor:default}
.gal{scrollbar-width:none;padding-bottom:4px}
.gal::-webkit-scrollbar{display:none}
.gal>li{flex-basis:clamp(272px,28vw,420px);display:flex;flex-direction:column}
/* Tall hit area, thin line. */
.gal-bar{position:relative;height:28px;margin:12px var(--pad) 0;cursor:pointer;touch-action:none}
.gal-bar::before{content:"";position:absolute;inset:12px 0;background:var(--line)}
.gal-bar span{position:absolute;top:11px;height:6px;background:var(--ink)}
.gal .ph{display:block;aspect-ratio:1;background:#fff;overflow:hidden}
.gal .ph img{display:block;width:100%;height:100%;object-fit:cover}
.gal h3{margin-top:16px}
.gal .line{min-height:0}
.gal .unit{font-size:18px;margin-top:6px}
.gal .opts{display:grid;gap:8px;margin:12px 0 14px;justify-items:start}
.gal .btn{margin-top:auto}
.szs{display:flex;flex-wrap:wrap;gap:6px}
.sz{min-width:64px;min-height:44px;padding:0 12px;border:1px solid var(--line-strong);background:none;color:inherit;font:inherit;font-size:18px;cursor:pointer}
.sz:hover{border-color:var(--ink)}
.sz[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:var(--on-dark);box-shadow:inset 0 -3px 0 var(--calendula)}
.sz-one{display:inline-flex;align-items:center;min-height:44px;font-size:18px;font-weight:600}
.pump{position:relative;display:inline-flex;align-items:center;gap:10px;min-height:44px;font-size:18px;cursor:pointer}
/* Same as the analysis consent: the real checkbox is 44px and invisible, the drawn box 22px. */
.pump input{position:absolute;left:-11px;top:0;width:44px;height:44px;margin:0;opacity:0;cursor:pointer}
.pump-box{display:grid;place-items:center;flex:none;width:22px;height:22px;border:1.5px solid currentColor}
.pump input:checked+.pump-box{background:var(--ink)}
.pump input:checked+.pump-box::after{content:"";width:11px;height:5px;border-left:2px solid var(--on-dark);border-bottom:2px solid var(--on-dark);rotate:-45deg;translate:0 -1px}
.pump input:focus-visible+.pump-box{outline:2px solid var(--focus);outline-offset:2px}

/* Reminder. */
.remind{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:clamp(24px,5vw,96px);align-items:start;margin:var(--section) var(--pad)}
.remind h2{font-size:clamp(32px,3.6vw,56px);max-width:14ch}
.remind>div>p{margin-top:var(--stack);max-width:40ch;color:var(--muted)}
.remind form{display:grid;gap:var(--stack);max-width:620px}
.remind label{display:grid;gap:6px;font-weight:600;font-size:18px}
.remind :is(select,.dd-btn),.remind input{min-height:52px;padding:0 14px;border:1px solid var(--line-strong);background:var(--bg);color:var(--ink);font:inherit}
.remind .dd-btn{padding-right:40px;background:var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23111110' stroke-width='1.6'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E") right 16px center/12px 8px no-repeat}
.remind .btn{justify-self:start}
.remind .fine a{color:inherit}

@media (max-width:1000px){
}
@media (max-width:760px){
  .rf-hero,.rf-grey,.save,.remind{grid-template-columns:1fr}
  .rf-hero,.rf-grey{min-height:0}
  .rf-hero>img{order:-1;aspect-ratio:1;height:auto;max-height:60svh}
  .rf-grey{background:#ebeae9}
  .rf-grey>img{order:-1;aspect-ratio:3/2;height:auto;-webkit-mask-image:none;mask-image:none}
  .wo-row{flex-direction:column;height:auto}
  .wo-p{display:grid;flex:none}
  .wo-p>img{position:static;aspect-ratio:4/3;height:auto}
  .wo-p:first-child>img{width:100%;object-fit:contain;-webkit-mask-image:none;mask-image:none} /* the whole bottle, with the panel's grey beside it */
  .wo-txt{position:static;max-width:none;background:var(--panel)}
  .wo-body{grid-template-rows:1fr;visibility:visible}
  .wo-txt h3 button{pointer-events:none}
  .wo-txt h3 button::after{display:none}
  #galones .sec-head{flex-direction:column;align-items:flex-start}
  .gal-nav .arrow{display:none}
}
.p-txt{font:500 30px var(--d);fill:var(--ink)}
