/* Offres: what Webkoa builds, one band per offer. The home's language: fine rules, drawn demos, no cards */

/* page head: the lead on the right, a quiet table of contents in the empty left columns */
.phead--offres{padding-bottom:clamp(64px,7vw,120px)}
.pidx{grid-column:1/4;grid-row:3;align-self:start;margin-top:clamp(24px,3vw,52px);padding-top:.35em}
.pidx__label{font-size:15px;font-weight:500;color:var(--mute);padding-bottom:12px}
.pidx li{border-top:1px solid var(--line)}
.pidx li:last-child{border-bottom:1px solid var(--line)}
.pidx a{display:block;padding:9px 0 10px;font-size:16px;font-weight:500;transition:color .25s}
.pidx a:hover{color:var(--accent)}

/* an offer: a fine rule, its title on four columns, the content on eight */
.offer .split{padding-top:clamp(20px,2vw,32px)}
.offer__lead{font-family:var(--serif);font-weight:380;font-size:clamp(21px,2vw,30px);line-height:1.26;letter-spacing:-.012em;max-width:24em}
.offer__text{margin-top:clamp(14px,1.4vw,22px);max-width:34em;font-size:clamp(17px,1.3vw,19px)}
.offer__more{margin-top:clamp(26px,2.8vw,44px)}

/* creation: each formula drawn as the pages it holds; the koa leaf marks the home page */
.fms{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:var(--g);margin-top:clamp(28px,3.2vw,52px)}
.fm__sheets{position:relative;aspect-ratio:4/3;container-type:inline-size;overflow:hidden;background:color-mix(in srgb,var(--fg) 5%,var(--bg))}
.fm__grid{position:absolute;inset:0;display:grid;place-content:center;grid-template-columns:repeat(var(--c),var(--w));gap:var(--gap)}
.fm__grid i{position:relative;display:block;aspect-ratio:3/4;background:var(--bg);box-shadow:0 0 0 1px var(--line)}
.fm__sheets--1 .fm__grid{--c:1;--w:25cqi;--gap:0}
.fm__sheets--1 .fm__grid i{aspect-ratio:5/9}
.fm__sheets--6 .fm__grid{--c:3;--w:16cqi;--gap:3.6cqi}
.fm__sheets--12 .fm__grid{--c:4;--w:11.6cqi;--gap:2.8cqi}
.fm__leaf{position:absolute;left:27%;top:50%;width:46%;height:46%;margin-top:-23%;fill:var(--accent);overflow:visible}
.fm__sheets--1 .fm__leaf{top:30%}
.fm{display:flex;flex-direction:column}
.fm__body{flex:1;display:flex;flex-direction:column;padding-top:clamp(14px,1.4vw,22px)}
.fm__name{font-family:var(--serif);font-weight:400;font-size:clamp(26px,2.4vw,40px);line-height:1;letter-spacing:-.022em}
.fm__text{margin-top:10px;font-size:clamp(16px,1.2vw,18px);line-height:1.45;max-width:20em}
.fm__price{margin-top:auto;padding-top:clamp(14px,1.4vw,22px);white-space:nowrap;line-height:1}
.fm__amount{font-family:var(--sans);font-weight:500;font-size:clamp(28px,2.6vw,44px);letter-spacing:-.04em;font-variant-numeric:lining-nums tabular-nums}
.fm__unit{font-size:15px;font-weight:500;color:var(--mute)}
.motion .fm__grid i{opacity:0;transform:translateY(16%)}
.motion .fm.is-in .fm__grid i{opacity:1;transform:none;transition:transform .9s var(--ease) calc(var(--d,0s) + .2s + var(--k) * 45ms),opacity .35s linear calc(var(--d,0s) + .2s + var(--k) * 45ms)}
.motion .fm__leaf{transform:scale(0) rotate(-40deg);transform-origin:20% 95%}
.motion .fm.is-in .fm__leaf{transform:none;transition:transform 1s cubic-bezier(.34,1.4,.64,1) calc(var(--d,0s) + .75s)}
.motion .fm__body>*{transform:translateY(24px);opacity:0}
.motion .fm.is-in .fm__body>*{transform:none;opacity:1;transition:transform 1s var(--ease) calc(var(--d,0s) + .3s),opacity .5s linear calc(var(--d,0s) + .3s)}
.motion .fm.is-in .fm__body>.fm__text{transition-delay:calc(var(--d,0s) + .38s)}
.motion .fm.is-in .fm__body>.fm__price{transition-delay:calc(var(--d,0s) + .46s)}

/* redesign: one measure at the start, one before the launch. The first dial is measuring (no invented score) */
.dials{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:var(--g);margin-top:clamp(26px,3vw,48px);padding:clamp(24px,2.6vw,44px) clamp(20px,2.6vw,44px) clamp(20px,2.2vw,34px);background:color-mix(in srgb,var(--fg) 5%,var(--bg))}
.dials__svg{width:100%;max-width:360px;height:auto;overflow:visible}
.dials__goal{font:500 19px var(--sans);fill:var(--accent)}
.dials__goal2{font:400 14px var(--sans);fill:var(--mute)}
.dials__m{display:none}
.dials__track{fill:none;stroke:color-mix(in srgb,var(--fg) 16%,var(--bg));stroke-width:12}
.dials__arc{fill:none;stroke:var(--fg);stroke-width:12;stroke-dasharray:100;stroke-dashoffset:10}
.dials__svg--wait .dials__arc{stroke-dasharray:16 84;stroke-dashoffset:58}
.dials__mark{fill:none;stroke:var(--accent);stroke-width:3.5}
.dials__label{margin-top:12px;font-family:var(--serif);font-weight:400;font-size:clamp(20px,1.7vw,27px);line-height:1.1;letter-spacing:-.015em}
.dials__sub{margin-top:4px;font-size:15px;line-height:1.4;color:var(--mute);max-width:17em}
.motion .dials .dials__svg--goal .dials__arc{stroke-dashoffset:100}
.motion .dials.is-in .dials__svg--goal .dials__arc{stroke-dashoffset:10;transition:stroke-dashoffset 1.8s cubic-bezier(.2,.7,.2,1) .5s}
.motion .dials.is-in .dials__svg--wait .dials__arc{animation:psiWait 1.9s cubic-bezier(.5,0,.5,1) infinite}
.motion .dials__mark,.motion .dials__goal,.motion .dials__goal2{opacity:0}
.motion .dials.is-in .dials__mark,.motion .dials.is-in .dials__goal,.motion .dials.is-in .dials__goal2{opacity:1;transition:opacity .3s linear 2.1s}
.motion .dials>*{transform:translateY(24px);opacity:0}
.motion .dials.is-in>*{transform:none;opacity:1;transition:transform 1s var(--ease) .15s,opacity .5s linear .15s}
.motion .dials.is-in>*+*{transition-delay:.25s}


/* hosting and follow-up: the home's rows, then the domain note and the link */
.offer__foot{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--g);margin-top:clamp(22px,2.4vw,38px)}
.offer__foot>*{grid-column:5/13}
.offer__note{font-size:clamp(17px,1.3vw,19px);color:var(--mute);max-width:34em}
.offer__foot .offer__more{margin-top:clamp(14px,1.6vw,24px)}

/* options: two by two */
.opts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:var(--g)}
.opt{position:relative;display:flex;flex-direction:column;padding:clamp(18px,1.8vw,28px) 0 clamp(30px,3vw,50px)}
.opt__name{font-family:var(--serif);font-weight:400;font-size:clamp(25px,2.4vw,38px);line-height:1.04;letter-spacing:-.02em}
.opt__text{margin-top:10px;max-width:24em;font-size:clamp(16px,1.25vw,18px);line-height:1.45}
.opt__price{margin-top:auto;padding-top:clamp(16px,1.6vw,26px);font-family:var(--sans);font-weight:500;font-size:clamp(26px,2.4vw,38px);line-height:1;letter-spacing:-.04em;white-space:nowrap;font-variant-numeric:lining-nums tabular-nums}
.opt__unit{font-size:15px;letter-spacing:0;color:var(--mute);margin-right:6px}
.opt__unit--after{margin:0 0 0 4px}
/* the payment terms under the formulas */
.offer__pay{margin-top:clamp(22px,2.4vw,36px);font-size:clamp(17px,1.3vw,19px);max-width:34em}
.motion .opt>:not(.rule){transform:translateY(26px);opacity:0}
.motion .opt.is-in>:not(.rule){transform:none;opacity:1;transition:transform 1s var(--ease) calc(var(--d,0s) + .1s),opacity .5s linear calc(var(--d,0s) + .1s)}
.motion .opt.is-in>.opt__text{transition-delay:calc(var(--d,0s) + .18s)}
.motion .opt.is-in>.opt__price{transition-delay:calc(var(--d,0s) + .26s)}

/* tablets: titles above their content, everything on twelve columns */
@media (max-width:1000px){
  .pidx{grid-column:1/-1;grid-row:auto;margin-top:clamp(36px,5vw,52px);max-width:none}
  .pidx__list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:var(--g)}
  .pidx li:nth-last-child(2){border-bottom:1px solid var(--line)}
  .offer__foot>*{grid-column:1/-1}
}
@media (max-width:760px){
  .pidx__list{display:block}
  .pidx li:nth-last-child(2){border-bottom:0}
  .fms{grid-template-columns:1fr;row-gap:22px}
  .fm{display:grid;grid-template-columns:40% minmax(0,1fr);column-gap:16px;align-items:start}
  .fm__sheets{aspect-ratio:1/1.05}
  .fm__sheets--1 .fm__grid{--w:30cqi}
  .fm__sheets--6 .fm__grid{--w:21cqi;--gap:4.4cqi}
  .fm__sheets--12 .fm__grid{--w:16.5cqi;--gap:3.4cqi}
  .fm__body{padding-top:0}
  .fm__name{font-size:26px}
  .fm__text{font-size:15px;margin-top:6px}
  .fm__amount{font-size:28px}
  .dials{padding:20px 16px 18px;column-gap:14px}
  .dials__label{font-size:19px}
  .dials__sub{font-size:14px}
  .dials__goal,.dials__goal2{display:none}
  .dials__m{display:inline}
  .opts{grid-template-columns:1fr}
  .opt{padding-bottom:28px}
  .opt__name{font-size:26px}
  .opt__price{font-size:28px}
}
