/* Website discount set piece: the list of what the 10% comes off, and a browser
   window that shows each one (see partials/features/web-builds.php). The default is
   the finished static layout with the website screen showing. .is-pinned (added by
   the script on wide, tall screens with full motion) sets up the pinned scene;
   .is-auto (smaller screens) shows the timer under the active item.
   Everything inside the browser is sized in cqw, so the drawing scales as one. */
.wbd { overflow: clip; padding-block: clamp(3rem, min(7vw, 8vh), 6rem); }
.wbd-in { position: relative; z-index: 1; }
.wbd-head { margin-bottom: clamp(1.4rem, 3vh, 2.4rem); }
.wbd-head .h2 { color: #fff; }

.wbd-grid { display: grid; gap: clamp(2.4rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 980px) {
  .wbd-grid { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(2.4rem, 4.4vw, 4.5rem); }
}

/* ------------------------------------------------------------------ list */
.wbd-side { position: relative; }
.wbd-list { display: grid; gap: .7rem; }
.wbd-item {
  position: relative; overflow: clip;
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 1rem; align-items: start;
  padding: 1rem 1.15rem 1.1rem;
  border-radius: var(--r-md); border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04);
  transition: background-color .35s, border-color .35s;
}
.wbd-item.is-on { background: rgba(255,255,255,.1); border-color: rgba(159,216,180,.55); }
.wbd.is-live .wbd-item { cursor: pointer; }
.wbd.is-live .wbd-item:not(.is-on):hover { background: rgba(255,255,255,.07); }
.wbd-ico {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); transition: background-color .35s;
}
.wbd-ico svg { width: 26px; height: 26px; fill: none; stroke: var(--mint-deep); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke .35s; }
.wbd-item.is-on .wbd-ico { background: var(--tick); }
.wbd-item.is-on .wbd-ico svg { stroke: #fff; }
.wbd-item h3 { margin: .45rem 0 .3rem; font-size: clamp(1.2rem, 1.45vw, 1.4rem); color: #fff; }
.wbd-item p { margin: 0; font-size: 1.0625rem; line-height: 1.5; color: rgba(255,255,255,.8); }

/* the timer under the active item (auto-advancing layouts only) */
.wbd-timer { display: none; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.08); }
.wbd-timer i { display: block; height: 100%; background: var(--mint-deep); transform: scaleX(0); transform-origin: 0 50%; }
.wbd.is-auto .wbd-item.is-on .wbd-timer { display: block; }

/* the progress rail beside the list (pinned scene only) */
.wbd-prog { display: none; position: absolute; left: -22px; top: 10px; bottom: 5.2rem; width: 2px; border-radius: 2px; background: rgba(255,255,255,.14); }
.wbd-prog i { position: absolute; inset: 0; border-radius: 2px; background: var(--mint-deep); transform-origin: 50% 0; }

.wbd-cta { margin: 1.5rem 0 0; }

/* --------------------------------------------------------------- browser */
.wbd-stage { display: grid; justify-items: center; perspective: 1200px; padding: 1.4rem .9rem 0 0; }
.wbd-tilt { position: relative; width: min(100%, 780px); }
@media (min-width: 980px) {
  .wbd-tilt { width: min(100%, 780px, calc((100vh - 360px) * 1.6)); min-width: min(100%, 460px); }
}
/* a second sheet and an offset outline behind the browser */
.wbd-tilt::before, .wbd-tilt::after { content: ""; position: absolute; inset: 0; border-radius: 16px; pointer-events: none; }
.wbd-tilt::before { background: rgba(255,255,255,.08); transform: rotate(2.4deg) translate(14px, 12px); }
.wbd-tilt::after { border: 1px solid rgba(159,216,180,.4); transform: rotate(-2.6deg) translate(-12px, 14px); }

.wbd-browser {
  position: relative; z-index: 1; overflow: clip;
  border-radius: 14px; background: var(--paper); color: var(--ink);
  box-shadow: 0 50px 80px -40px rgba(0,0,0,.75), 0 0 0 1px rgba(12,59,39,.06);
}
.wbd-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #E9F0EB; border-bottom: 1px solid rgba(14,21,18,.08); }
.wbd-dots { display: flex; gap: 6px; flex: none; }
.wbd-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(14,21,18,.16); }
.wbd-dots i:first-child { background: var(--honey); }
.wbd-dots i:nth-child(2) { background: var(--mint-deep); }
.wbd-url {
  flex: 1; min-width: 0; max-width: 78%; margin-inline: auto;
  display: flex; align-items: center; gap: 7px; padding: 5px 12px;
  border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px rgba(14,21,18,.07);
  font-size: .9375rem; line-height: 1.3; color: rgba(14,21,18,.72); white-space: nowrap; overflow: clip;
}
.wbd-url svg { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--tick-dark); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.wbd-url-t { overflow: clip; text-overflow: ellipsis; }

.wbd-screen { position: relative; aspect-ratio: 16 / 10; container-type: inline-size; overflow: clip; background: #fff; }
.wbd-scr { position: absolute; inset: 0; padding: 3cqw 3.4cqw; opacity: 0; visibility: hidden; background: #fff; }
.wbd-scr.is-on { opacity: 1; visibility: visible; }

/* the price tag */
.wbd-tag {
  position: absolute; z-index: 3; top: -1.3rem; right: -.9rem;
  display: grid; justify-items: center; gap: .15rem;
  padding: .75rem 1.1rem .7rem 1.6rem; border-radius: 12px;
  background: var(--honey); color: var(--ink);
  transform: rotate(7deg);
  box-shadow: 0 18px 30px -14px rgba(0,0,0,.55);
}
.wbd-tag::before { content: ""; position: absolute; left: .55rem; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--pine); box-shadow: inset 0 1px 2px rgba(0,0,0,.4); }
.wbd-tag b { font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 2.8vw, 2.5rem); line-height: 1; letter-spacing: -.035em; }
.wbd-tag span { font-weight: 700; font-size: .875rem; line-height: 1.1; white-space: nowrap; }

/* ---------------------------------------------------- the drawn screens */
.wb { display: block; height: 1.15cqw; width: var(--w, 100%); border-radius: 1cqw; background: rgba(14,21,18,.12); }
.wb-ink { background: rgba(14,21,18,.7); }
.wb-h { height: 2.9cqw; border-radius: .8cqw; background: var(--pine); }
.wb-g { background: var(--tick); }
.wb-big { height: 2.5cqw; border-radius: .7cqw; background: var(--pine); }
.wm-photo {
  display: block; border-radius: 1.2cqw;
  background: url("../../img/hero-web-1200.webp") var(--p, 55% 18%) / var(--z, 800%) auto no-repeat, var(--mint);
}
.wm-btn { display: block; flex: none; width: 12cqw; height: 3.6cqw; border-radius: 3cqw; }
.wm-btn-g { background: var(--tick); }
.wm-btn-o { box-shadow: inset 0 0 0 .3cqw var(--pine); }
.wm-btn-l { width: 15cqw; }

.wm-nav { display: flex; align-items: center; gap: 3cqw; padding-bottom: 2.2cqw; border-bottom: 1px solid rgba(14,21,18,.08); }
.wm-logo { display: flex; align-items: center; gap: 1.2cqw; }
.wm-logo i { width: 3.2cqw; height: 3.2cqw; border-radius: 50%; background: var(--tick); }
.wm-logo .wb { width: 12cqw; }
.wm-links { display: flex; gap: 2.4cqw; margin-left: auto; }
.wm-links .wb { width: 6cqw; }

/* website */
.wm-hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 3.4cqw; align-items: center; margin-top: 3cqw; }
.wm-hero-copy { display: grid; gap: 1.3cqw; }
.wm-btns { display: flex; gap: 1.4cqw; margin-top: 1.4cqw; }
.wm-photo-hero { height: 23cqw; --z: 230%; --p: 62% 26%; }
.wm-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4cqw; margin-top: 3cqw; }
.wm-card { display: grid; gap: 1.1cqw; }
.wm-card .wm-photo { height: 10cqw; --z: 520%; }

/* online store */
.wm-basket { position: relative; width: 3.6cqw; height: 3.6cqw; }
.wm-basket svg { width: 100%; height: 100%; fill: none; stroke: var(--pine); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wm-count {
  position: absolute; top: -1cqw; right: -1.3cqw; min-width: 2.5cqw; height: 2.5cqw; border-radius: 2cqw;
  background: var(--honey); color: var(--ink); text-align: center;
  font: 800 1.5cqw/2.5cqw var(--display);
}
.wm-shop { display: grid; grid-template-columns: 16cqw minmax(0, 1fr); gap: 3cqw; margin-top: 3cqw; }
.wm-filters { display: grid; gap: 1.7cqw; align-content: start; padding: 2cqw; border-radius: 1.2cqw; background: var(--chalk); }
.wm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.2cqw 2.4cqw; }
.wm-prod { display: grid; gap: 1cqw; }
.wm-prod .wm-photo { height: 11.5cqw; --z: 640%; }
.wm-buy { display: flex; align-items: center; justify-content: space-between; }
.wm-add { width: 3cqw; height: 3cqw; border-radius: 50%; background: var(--pine); color: #fff; text-align: center; font: 700 2.2cqw/3cqw var(--body); }
.wm-toast {
  position: absolute; right: 2.4cqw; top: 8.6cqw; /* drops from the basket, over the first product photo */
  display: flex; align-items: center; gap: 1.2cqw; padding: 1.4cqw 2.4cqw 1.4cqw 1.4cqw;
  border-radius: 1.4cqw; background: var(--pine); color: #fff;
  font: 600 1.8cqw/1 var(--body); white-space: nowrap;
  box-shadow: 0 2cqw 4cqw -1.5cqw rgba(0,0,0,.45);
}
.wm-ok { width: 3cqw; height: 3cqw; border-radius: 50%; display: grid; place-items: center; background: var(--tick); }
.wm-ok .tick { width: 1.9cqw; height: 1.9cqw; color: #fff; }

/* dashboard */
.wbd-dash { display: grid; grid-template-columns: 7cqw minmax(0, 1fr); padding: 0; }
/* the sidebar icons are painted as one strip: the first one lit */
.wm-side { background: var(--pine); }
.wm-side::before {
  content: ""; display: block; width: 2.8cqw; height: 24.4cqw; margin: 3cqw auto 0;
  background:
    linear-gradient(var(--mint-deep), var(--mint-deep)) top / 100% 2.8cqw no-repeat,
    repeating-linear-gradient(rgba(255,255,255,.2) 0 2.8cqw, transparent 2.8cqw 5.4cqw);
}
.wm-main { display: grid; gap: 2.2cqw; align-content: start; padding: 3cqw 3.4cqw; background: var(--chalk); }
.wm-top { display: flex; align-items: center; justify-content: space-between; }
.wm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqw; }
.wm-stat { position: relative; display: grid; gap: 1.4cqw; padding: 2cqw; border-radius: 1.2cqw; background: #fff; box-shadow: 0 0 0 1px rgba(14,21,18,.06); }
.wm-trend { position: absolute; right: 2cqw; top: 1.8cqw; width: 2.4cqw; height: 2cqw; }
.wm-trend-up { background: var(--tick); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.wm-trend-due { background: var(--honey); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.wm-chart { height: 15cqw; padding: 1.6cqw 2cqw; border-radius: 1.2cqw; background: #fff; box-shadow: 0 0 0 1px rgba(14,21,18,.06); }
/* the chart is two clipped shapes (the area and the trace), revealed left to right */
.wm-graph { position: relative; display: block; width: 100%; height: 100%; }
.wm-fill, .wm-trace { position: absolute; inset: 0; }
.wm-fill { background: linear-gradient(rgba(20,155,68,.2), rgba(20,155,68,.04)); clip-path: polygon(0% 86.7%, 10% 77.8%, 20% 80.0%, 30% 64.4%, 40% 68.9%, 50% 48.9%, 60% 55.6%, 70% 37.8%, 80% 42.2%, 90% 22.2%, 100% 15.6%, 100% 100%, 0% 100%); }
.wm-trace { background: var(--tick); clip-path: polygon(0% 84.3%, 10% 75.4%, 20% 77.6%, 30% 62.0%, 40% 66.5%, 50% 46.5%, 60% 53.2%, 70% 35.4%, 80% 39.8%, 90% 19.8%, 100% 13.2%, 100% 18.0%, 90% 24.6%, 80% 44.6%, 70% 40.2%, 60% 58.0%, 50% 51.3%, 40% 71.3%, 30% 66.8%, 20% 82.4%, 10% 80.2%, 0% 89.1%); }
.wm-rows { display: grid; gap: 1cqw; }
.wm-row { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 2cqw; align-items: center; padding: 1.3cqw 2cqw; border-radius: 1cqw; background: #fff; box-shadow: 0 0 0 1px rgba(14,21,18,.05); }
.wm-pill { padding: .7cqw 1.5cqw; border-radius: 2cqw; font: 700 1.5cqw/1 var(--body); }
.wm-pill-g { background: var(--mint); color: var(--tick-dark); }
.wm-pill-h { background: #FFF5DD; color: #7A5200; }

/* ------------------------------------------------ pinned scene (desktop) */
@media (min-width: 1200px) {
  .wbd.is-pinned { min-height: 100vh; display: grid; align-items: center; padding-block: 92px 28px; }
  .wbd.is-pinned .wbd-prog { display: block; }
  .wbd.is-pinned .wbd-item:not(.is-on) > div { opacity: .6; transition: opacity .4s; }
  .wbd.is-pinned .wbd-item.is-on > div { opacity: 1; transition: opacity .4s; }
}

@media (max-width: 560px) {
  .wbd-stage { padding: 1.1rem .5rem 0 0; }
  .wbd-tag { top: -1rem; right: -.4rem; padding: .55rem .8rem .5rem 1.3rem; }
  .wbd-tag::before { left: .45rem; width: 8px; height: 8px; margin-top: -4px; }
  .wbd-bar { padding: 8px 10px; gap: 8px; }
  .wbd-url { font-size: .875rem; padding: 4px 10px; }
  .wbd-item { grid-template-columns: 42px minmax(0, 1fr); gap: .85rem; padding: .9rem .95rem 1rem; }
  .wbd-ico { width: 42px; height: 42px; border-radius: 12px; }
}
