/* The offer on the garden: the membership pass under the promise, the bar along the bottom,
   the How it works panel and the strip at the top of each sheet. Ported from the 30 October dev mock (concept C), 3 November. */

/* hero: the price sits under the promise, then two buttons */
.m-btn{font:700 12px/1 var(--display);letter-spacing:.14em;text-transform:uppercase;padding:15px 22px;border-radius:99px;cursor:pointer;border:0;text-decoration:none;display:inline-flex;align-items:center;gap:10px}
.m-btn--go{background:#F2F0EB;color:#33302C;box-shadow:0 6px 24px rgba(20,19,17,.35)}
.m-btn--go:hover{background:#fff}
.m-btn--ghost{background:rgba(20,19,17,.28);color:#fff;box-shadow:inset 0 0 0 1px rgba(242,240,235,.55);backdrop-filter:blur(6px)}
.m-btn--ink{background:#33302C;color:#F2F0EB}
.m-btn--ink:hover{background:#4a4640}

/* the bar along the bottom of the garden */
body.m-sheet .m-bar{opacity:0;pointer-events:none}

/* the strip at the top of each vertical's sheet */
.m-strip{margin:8px 0 26px;background:#fff;border-radius:14px;padding:16px 20px;font:500 16px/1.5 var(--display);color:#33302C;box-shadow:0 1px 0 rgba(51,48,44,.06)}
.m-strip b{font-weight:800}
.progs a:not(.is-soon)::after{content:"Start here";font:600 10px/1 var(--display);letter-spacing:.14em;text-transform:uppercase;color:rgba(242,240,235,.72);margin-top:2px}

/* panels: how it works and the join step */
.m-veil{position:fixed;inset:0;z-index:80;background:rgba(20,19,17,.55);backdrop-filter:blur(3px);display:none;align-items:flex-start;justify-content:center;overflow:auto;padding:5vh 16px}
.m-veil.on{display:flex}
.m-pan{background:#F2F0EB;color:#33302C;border-radius:22px;width:min(1040px,100%);padding:clamp(24px,4vw,52px);position:relative;font-family:var(--display);box-shadow:0 30px 80px rgba(20,19,17,.4)}
.m-x{position:absolute;top:18px;right:18px;border:0;background:#E6E2DA;border-radius:99px;width:38px;height:38px;font:600 18px/1 var(--display);cursor:pointer;color:#33302C}
.m-lab{font:600 11px/1 var(--display);letter-spacing:.18em;text-transform:uppercase;color:#6B6B62}
.m-pan h2{font-weight:800;font-size:clamp(30px,4.4vw,52px);line-height:1.04;letter-spacing:-.03em;margin:12px 0 0;text-wrap:balance}
.m-lede{font-size:clamp(16px,1.6vw,19px);line-height:1.5;color:#57534C;margin:14px 0 0;max-width:680px}
.m-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:30px}
.m-step{background:#fff;border-radius:16px;padding:22px 22px 24px}
.m-step .n{font-weight:800;font-size:15px;color:#fff;background:#33302C;border-radius:99px;width:30px;height:30px;display:grid;place-items:center}
.m-step h3{font-weight:800;font-size:22px;letter-spacing:-.02em;margin:16px 0 6px}
.m-step p{font-size:15.5px;line-height:1.5;color:#57534C;margin:0}

/* the ecosystem: one membership in the middle, programmes around it */
.m-eco{display:grid;grid-template-columns:1fr auto 1fr;gap:18px;align-items:center;margin-top:30px;background:#fff;border-radius:16px;padding:26px}
.m-core{text-align:center;padding:0 10px}
.m-core img{height:78px;width:auto;display:block;margin:0 auto 10px}
.m-core b{display:block;font-weight:800;font-size:30px;letter-spacing:-.03em}
.m-core span{font-size:13px;color:#6B6B62}
.m-col{display:grid;gap:8px}
.m-chip{display:flex;align-items:center;justify-content:space-between;gap:10px;border-radius:12px;padding:11px 14px;font-weight:700;font-size:15px;background:var(--t)}
.m-chip i{font-style:normal;font-weight:600;font-size:12px;letter-spacing:.1em;text-transform:uppercase;white-space:nowrap}
.m-chip.inc{box-shadow:inset 0 0 0 2px #33302C}

.m-rules{display:grid;grid-template-columns:repeat(2,1fr);gap:0 28px;margin-top:30px}
.m-rule{border-top:1.5px solid #D4D0C8;padding:14px 0 16px}
.m-rule b{display:block;font-weight:800;font-size:16px}
.m-rule span{display:block;font-size:15px;line-height:1.5;color:#57534C;margin-top:3px}
.m-doors{display:flex;flex-wrap:wrap;gap:10px;margin-top:26px;align-items:center}
.m-door{display:inline-flex;align-items:center;gap:10px;border:0;cursor:pointer;background:var(--t);border-radius:99px;padding:9px 18px 9px 10px;font:700 15px/1 var(--display);color:#33302C}
.m-door img{height:26px;width:auto}


@media (max-width:760px){
  .m-steps,.m-rules{grid-template-columns:1fr}
  .m-eco{grid-template-columns:1fr}
}


/* the offer: one calm card under the promise, price first */
.m-offer{display:inline-flex;align-items:center;gap:22px;margin-top:22px;padding:10px 10px 10px 30px;border-radius:30px;
  background:rgba(28,26,23,.42);backdrop-filter:blur(14px) saturate(1.1);-webkit-backdrop-filter:blur(14px) saturate(1.1);
  box-shadow:inset 0 0 0 1px rgba(242,240,235,.16),0 18px 50px rgba(20,19,17,.28);text-align:left}
.m-fig{font:800 clamp(80px,8.4vw,124px)/.78 var(--display);letter-spacing:-.05em;color:#F2F0EB;display:flex;align-items:flex-start;padding:4px 0}
.m-fig span{font-size:.42em;line-height:1;margin:.12em .06em 0 0;letter-spacing:0;font-weight:700;opacity:.85}
.m-per{display:flex;flex-direction:column;gap:5px;font-family:var(--display);color:#F2F0EB;padding-right:6px}
.m-per b{font-weight:800;font-size:clamp(22px,2vw,30px);line-height:1;letter-spacing:-.01em}
.m-per span{font-weight:500;font-size:clamp(13px,1.05vw,15px);line-height:1.3;color:#DAD6CC;max-width:14em}
.m-btn--big{font-size:13px;padding:22px 30px;align-self:stretch;border-radius:20px}

/* the bar: the three rules, quiet, under the garden */
.m-bar{position:fixed;z-index:20;left:50%;bottom:20px;transform:translateX(-50%);display:flex;align-items:center;
  background:rgba(242,240,235,.9);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);color:#33302C;border-radius:99px;
  padding:6px 6px 6px 8px;font:600 13.5px/1 var(--display);white-space:nowrap;box-shadow:0 10px 36px rgba(20,19,17,.28);transition:opacity .3s}
.m-bar__i{display:flex;align-items:center;gap:8px;padding:0 16px}
.m-bar__i::before{content:"";width:6px;height:6px;border-radius:50%;background:#33302C;flex:none}
.m-bar__i+.m-bar__i{box-shadow:-1px 0 0 rgba(51,48,44,.14)}
.m-bar__how{font:700 11px/1 var(--display);letter-spacing:.14em;text-transform:uppercase;background:#33302C;color:#F2F0EB;border:0;border-radius:99px;padding:12px 18px;margin-left:6px;cursor:pointer}
.m-bar__how:hover{background:#4a4640}
body.m-sheet .m-bar{opacity:0;pointer-events:none}

@media (max-width:760px){
  .m-offer{gap:14px;padding:10px 10px 10px 20px;margin-top:18px;border-radius:24px}
  .m-fig{font-size:72px}
  .m-per b{font-size:20px}
  .m-per span{font-size:12.5px;max-width:8.5em}
  .m-btn--big{padding:16px 14px;font-size:11.5px;border-radius:16px;letter-spacing:.1em}
  .m-bar{left:12px;right:12px;transform:none;bottom:12px;justify-content:space-between;font-size:12px;padding:5px 5px 5px 4px}
  .m-bar .m-hide{display:none}
  .m-bar__i{padding:0 10px}
  .m-bar__i:nth-child(2){display:none}
  .m-bar__how{padding:11px 14px;font-size:10px}
}

/* the subline: a step closer to the promise */
[data-tmp="garden"] .hero p{font-size:clamp(18px,1.7vw,27px)!important}
@media (max-width:760px){[data-tmp="garden"] .hero p{font-size:18px!important}}

/* shared pieces the concepts switch on */
.m-pass{display:none}
.m-chev{display:none;width:22px;height:22px}
.m-chev svg{width:100%;height:100%;display:block}
.m-offer{transition:transform .35s ease,box-shadow .35s ease,background .35s ease}

/* C: a membership pass; the whole card is the way in.
   The hero lets clicks fall through to the doors, so the pass takes them back. */
.m-offer{pointer-events:auto}
html.m-cC .m-offer{cursor:pointer;display:inline-grid;grid-template-columns:auto 1fr auto;grid-template-areas:"fig pass btn" "fig per btn";column-gap:22px;row-gap:6px;align-items:center;padding:12px 14px 12px 28px}
html.m-cC .m-offer:hover{transform:translateY(-2px);background:rgba(28,26,23,.5);box-shadow:inset 0 0 0 1px rgba(242,240,235,.26),0 24px 60px rgba(20,19,17,.32)}
html.m-cC .m-fig{grid-area:fig}
html.m-cC .m-per{grid-area:per;align-self:start}
html.m-cC .m-pass{grid-area:pass;align-self:end;display:flex;align-items:center;gap:8px;font:600 11px/1 var(--display);letter-spacing:.18em;text-transform:uppercase;color:#C9C4B8}
html.m-cC .m-pass img{width:18px;height:auto}
html.m-cC .m-btn--big{grid-area:btn;margin-left:12px;width:58px;height:58px;padding:0;border-radius:50%;justify-content:center;align-self:center;background:rgba(242,240,235,.12);color:#F2F0EB;box-shadow:inset 0 0 0 1.5px rgba(242,240,235,.5)}
html.m-cC .m-offer:hover .m-btn--big{background:#F2F0EB;color:#33302C}
html.m-cC .m-go-t{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
html.m-cC .m-chev{display:block}

@media (max-width:760px){
  html.m-cC .m-btn--big{width:52px;height:52px}
  html.m-cC .m-offer{padding:14px 12px 14px 20px}
}

.m-cx{font-style:normal;display:block}
/* phones: the pass gets the full width and room to breathe */
@media (max-width:760px){
  .m-cx{display:none}
  html.m-cC .m-offer{display:grid;width:calc(100vw - 32px);max-width:420px;box-sizing:border-box;column-gap:16px;row-gap:4px;padding:16px 14px 16px 22px;margin-top:22px;border-radius:24px}
  html.m-cC .m-fig{font-size:76px}
  html.m-cC .m-per b{font-size:22px}
  html.m-cC .m-per span{font-size:14px;max-width:none;line-height:1.35}
  html.m-cC .m-pass{font-size:10.5px}
  html.m-cC .m-btn--big{margin-left:0;width:54px;height:54px}
  .m-bar__i:nth-child(1){display:none}
  .m-bar__cx{display:flex!important}
}
/* small or short phones: keep the pass clear of the doors */
@media (max-width:380px),(max-width:760px) and (max-height:760px){
  [data-tmp="garden"] .hero p{font-size:16px!important}
  html.m-cC .m-offer{margin-top:14px;padding:12px 12px 12px 18px;row-gap:2px}
  html.m-cC .m-fig{font-size:62px}
  html.m-cC .m-per b{font-size:19px}
  html.m-cC .m-per span{display:none}
  html.m-cC .m-btn--big{width:48px;height:48px}
}

/* How it works ends with the picker: a vertical, then its programmes, each straight to the checkout */
.m-picker{margin-top:30px;background:#fff;border-radius:16px;padding:22px 22px 18px}
.m-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.m-tabs .m-door{opacity:.62;transition:opacity .2s,box-shadow .2s}
.m-tabs .m-door:hover{opacity:.85}
.m-tabs .m-door.on{opacity:1;box-shadow:inset 0 0 0 2px #33302C}
.m-progs{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px;padding-top:16px;border-top:1.5px solid #E6E2DA}
.m-progs[hidden]{display:none}
.m-prog{display:inline-flex;align-items:center;gap:10px;padding:11px 14px 11px 16px;border-radius:99px;background:#F2F0EB;color:#33302C;font:600 14.5px/1 var(--display);text-decoration:none;transition:background .2s}
.m-prog i{font-style:normal;opacity:.45;transition:opacity .2s,transform .2s}
.m-prog:hover{background:var(--t)}
.m-prog:hover i{opacity:1;transform:translateX(2px)}
.m-picker .m-small{font-size:13.5px;line-height:1.5;color:#6B6B62;margin:16px 0 0}
@media (max-width:760px){
  .m-picker{padding:18px 16px 14px}
  .m-prog{font-size:14px;padding:10px 12px 10px 14px}
}

/* one sentence to a line, each balanced so no word sits alone */
.m-pan h2 span,.m-lede span{display:block;text-wrap:balance}

/* The pass keeps its proportions at every desktop width. Every size in it comes from one
   unit, so the 5, the words beside it and the button shrink together and never slide against
   each other. Full size from 1476px wide, 84% at 1240px and below. Phones keep their own layout. */
@media (min-width:761px){
  html.m-cC .m-offer{--u:clamp(.84px, calc(100vw / 1476), 1px);
    column-gap:calc(22 * var(--u));row-gap:calc(6 * var(--u));margin-top:calc(22 * var(--u));
    padding:calc(12 * var(--u)) calc(14 * var(--u)) calc(12 * var(--u)) calc(28 * var(--u));border-radius:calc(30 * var(--u))}
  html.m-cC .m-fig{font-size:calc(124 * var(--u));padding:calc(4 * var(--u)) 0}
  html.m-cC .m-per{gap:calc(5 * var(--u));padding-right:calc(6 * var(--u))}
  html.m-cC .m-per b{font-size:calc(30 * var(--u))}
  html.m-cC .m-per span{font-size:calc(15 * var(--u))}
  html.m-cC .m-pass{font-size:calc(11 * var(--u));gap:calc(8 * var(--u))}
  html.m-cC .m-pass img{width:calc(18 * var(--u))}
  html.m-cC .m-btn--big{width:calc(58 * var(--u));height:calc(58 * var(--u));margin-left:calc(12 * var(--u))}
  html.m-cC .m-chev{width:calc(22 * var(--u));height:calc(22 * var(--u))}
}
