/* Home hero, theme-editor version (Leo, 17 Nov 2026): the idea of the Shopify page's hero on powercommerce.com, drawn
   as a Shopline theme. Markup: build.mjs editorHero() · copy: data/site.json hero.editor · behaviour:
   assets/js/editor-hero.js. Loaded on the home page only, after refresh-v2.css. Cool grays, no beige. */

/* the hero around it: more room for the window, a headline sized for four lines */
.hero3--editor .hero3__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 3.6vw, 52px); }
.hero3--editor .proof { gap: 8px 22px; }   /* the four proof items and the three CTAs each stay on one line at 1280+ */
.hero3--editor .display { font-size: clamp(40px, 4.3vw, 64px); text-wrap: balance; }
.hero3--editor .lede { max-width: 46ch; }

.ste-stage { --acc: #FF6B6B; position: relative; padding: 58px 0 54px 28px; }

/* two number cards on the window's corners */
.ste-chip {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  max-width: 270px; padding: 12px 16px;
  border-radius: 12px; background: #FFFFFF;
  box-shadow: inset 0 0 0 1px rgba(31, 31, 31, .1), 0 18px 36px -18px rgba(31, 31, 31, .35);
  animation: ste-float 7s ease-in-out infinite;
}
.ste-chip b { flex: none; font-family: var(--font-serif); font-size: 38px; font-weight: 400; line-height: .9; letter-spacing: -.03em; color: #1F1F1F; }
.ste-chip b .from { margin-right: 6px; font-size: .55em; color: #686A70; text-decoration: line-through; text-decoration-color: #FF6B6B; }
.ste-chip > span { font-size: 13px; line-height: 1.3; color: var(--text-secondary); }
/* the cards rotate through their numbers (editor-hero.js): a fixed width so the card doesn't resize; the number and its
   text fade up and out, then come in from below */
.ste-chip[data-ste-chip] { width: 280px; max-width: 280px; }
.ste-chip b, .ste-chip > span { transition: opacity .25s ease, transform .25s ease; }
.ste-chip > span { transition-delay: .04s; }
.ste-chip.is-out b, .ste-chip.is-out > span { opacity: 0; transform: translateY(-6px); }
.ste-chip.is-in b, .ste-chip.is-in > span { opacity: 0; transform: translateY(6px); transition: none; }
.ste-stats { display: none; }
.ste-chip--1 { left: 0; top: 2px; }
.ste-chip--2 { right: -12px; bottom: 0; animation-delay: -3.5s; }
@keyframes ste-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* the window */
.ste-win {
  position: relative; z-index: 1;
  border-radius: 14px; background: #FFFFFF; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(31, 31, 31, .1), 0 40px 80px -36px rgba(31, 31, 31, .38), 0 6px 16px -8px rgba(31, 31, 31, .12);
  font-family: var(--font-display); color: #1F1F1F; text-align: left;
  user-select: none; -webkit-user-select: none;
}
.ste-bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-bottom: 1px solid rgba(31, 31, 31, .1); background: #FAFAFB; }
.ste-dots { display: flex; gap: 6px; }
.ste-dots i { width: 9px; height: 9px; border-radius: 50%; background: #DFE2E7; }
.ste-bar__title { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; font-weight: 600; }
.ste-devices { display: flex; gap: 4px; }
.ste-devices i { width: 22px; height: 18px; border-radius: 5px; box-shadow: inset 0 0 0 1px rgba(31, 31, 31, .12); }
.ste-devices i.is-on { background: #ECEEF1; }
.ste-save { padding: 5px 12px; border-radius: 999px; background: #1F1F1F; color: #FFFFFF; font-size: 11px; font-weight: 600; }

.ste-body { display: grid; grid-template-columns: 34% 66%; min-height: 420px; }

/* the sections panel */
.ste-side { padding: 12px 10px 14px; border-right: 1px solid rgba(31, 31, 31, .1); font-size: 12px; }
.ste-side__page { display: flex; justify-content: space-between; margin-bottom: 10px; padding: 7px 10px; border-radius: 7px; box-shadow: inset 0 0 0 1px rgba(31, 31, 31, .12); font-weight: 600; }
.ste-side__page span { color: var(--text-secondary); }
.ste-group { margin: 10px 8px 4px; font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #9A9CA2; }
.ste-item { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 7px; font-weight: 500; cursor: default; transition: background-color .25s, color .25s; }
.ste-item.is-on { background: #ECE6F7; color: #5F46A7; }
.ste-ico { flex: none; width: 14px; height: 12px; border-radius: 3px; box-shadow: inset 0 0 0 1.5px currentColor; opacity: .75; }
.ste-ico--bar { height: 6px; }
.ste-ico--grid { background: linear-gradient(currentColor, currentColor) 50% 0 / 1.5px 100% no-repeat, linear-gradient(currentColor, currentColor) 0 50% / 100% 1.5px no-repeat; }
.ste-ico--star { border-radius: 50%; }
.ste-ico--mail { height: 10px; }
.ste-blocks { margin: 2px 0 4px 22px; padding-left: 10px; border-left: 1px solid rgba(31, 31, 31, .1); }
.ste-block { display: flex; align-items: center; gap: 7px; padding: 4px 6px; border-radius: 6px; color: var(--text-secondary); transition: background-color .25s, color .25s; }
.ste-block i { width: 8px; height: 8px; border-radius: 2px; box-shadow: inset 0 0 0 1.5px currentColor; }
.ste-block.is-on { background: #F4F1FA; color: #5F46A7; }
.ste-add { padding: 5px 8px; color: #5F46A7; font-weight: 600; }
.ste-add--section { margin-top: 2px; }
.ste-theme { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; padding: 10px 8px 4px; border-top: 1px solid rgba(31, 31, 31, .1); border-radius: 0 0 7px 7px; transition: background-color .25s; }
.ste-theme.is-on { background: #F4F1FA; }
.ste-theme__label { font-weight: 600; }
.ste-swatches { display: flex; align-items: center; gap: 6px; }
.ste-swatches i { width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 3px transparent; transition: box-shadow .25s; }
.ste-swatches i.is-on { box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 3.5px #5F46A7; }
.ste-swatches b { margin-left: 4px; font-family: var(--font-serif); font-size: 18px; font-weight: 400; }

/* the store preview */
.ste-prev { position: relative; padding: 14px; background: #F2F3F6; overflow: hidden; }
.ste-store { position: relative; border-radius: 8px; background: #FFFFFF; box-shadow: 0 1px 3px rgba(31, 31, 31, .08); overflow: hidden; font-size: 11px; }
.ste-zone { position: relative; cursor: default; }
.ste-ann { padding: 6px 10px; background: #1F1F1F; color: #FFFFFF; font-size: 10px; letter-spacing: .04em; text-align: center; }
.ste-nav { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid #EEF0F3; }
.ste-logo { font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.ste-links { display: flex; gap: 10px; margin-left: auto; color: var(--text-secondary); }
.ste-links i { font-style: normal; }
.ste-icons { display: flex; gap: 6px; }
.ste-icons i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #1F1F1F; }

.ste-hero { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 150px; background: linear-gradient(120deg, #F4F1FA 0%, #FFF0EE 100%); }
.ste-hero__copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 7px; padding: 16px 16px 16px 18px; }
.ste-kicker { font-size: 9px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-secondary); }
.ste-h { min-height: 1.1em; font-size: 22px; font-weight: 600; line-height: 1.05; letter-spacing: -.03em; }
.ste-h.is-typing::after { content: ""; display: inline-block; width: 2px; height: .9em; margin-left: 2px; background: #5F46A7; vertical-align: -.1em; animation: ste-caret .8s steps(1) infinite; }
@keyframes ste-caret { 50% { opacity: 0; } }
.ste-p { color: var(--text-secondary); }
.ste-button { margin-top: 4px; padding: 6px 12px; border-radius: 999px; background: var(--acc); color: #FFFFFF; font-size: 10px; font-weight: 700; transition: background-color .45s; }
.ste-button--sm { margin: 0; padding: 5px 10px; }

/* banner art: two snack bars and a box in the accent colour */
.ste-hero__art { position: relative; }
.ste-glow { position: absolute; left: 50%; top: 50%; width: 130px; height: 130px; margin: -65px 0 0 -65px; border-radius: 50%; background: radial-gradient(circle, var(--acc) 0%, rgba(255, 255, 255, 0) 68%); opacity: .3; filter: blur(4px); transition: background .45s; }
.ste-bar-pack { position: absolute; z-index: 1; width: 86px; height: 30px; border-radius: 5px; background: linear-gradient(180deg, #FFFFFF, #E8EAEE); box-shadow: 0 10px 18px -10px rgba(31, 31, 31, .45), inset 0 0 0 1px rgba(31, 31, 31, .08); }
.ste-bar-pack::before { content: ""; position: absolute; left: 20px; right: 20px; top: 6px; bottom: 6px; border-radius: 3px; background: var(--acc); transition: background .45s; }
.ste-bar-pack::after {
  content: ""; position: absolute; inset: 0; border-radius: 5px;
  background:
    repeating-linear-gradient(90deg, rgba(31, 31, 31, .16) 0 1px, transparent 1px 3px) left / 9px 100% no-repeat,
    repeating-linear-gradient(90deg, rgba(31, 31, 31, .16) 0 1px, transparent 1px 3px) right / 9px 100% no-repeat;
}
.ste-bar-pack--1 { left: 8%; top: 24%; transform: rotate(-12deg); }
.ste-bar-pack--2 { left: 16%; top: 52%; transform: rotate(7deg); background: linear-gradient(180deg, #2A2A2E, #1F1F1F); }
.ste-bar-pack--2::after { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .2) 0 1px, transparent 1px 3px) left / 9px 100% no-repeat, repeating-linear-gradient(90deg, rgba(255, 255, 255, .2) 0 1px, transparent 1px 3px) right / 9px 100% no-repeat; }
.ste-box { position: absolute; z-index: 1; right: 10%; bottom: 14%; width: 52px; height: 58px; border-radius: 6px; background: #FFFFFF; box-shadow: 0 8px 16px -8px rgba(31, 31, 31, .32); }
.ste-box::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px; border-radius: 6px 6px 0 0; background: #EEF0F3; }
.ste-box::after { content: ""; position: absolute; left: 9px; right: 9px; top: 24px; height: 14px; border-radius: 3px; background: var(--acc); transition: background .45s; }

.ste-coll { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 14px 6px; }
.ste-coll b { font-size: 13px; font-weight: 600; letter-spacing: -.01em; }
.ste-coll span { color: var(--text-secondary); text-decoration: underline; }
.ste-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 0 14px 12px; }
.ste-card { display: flex; flex-direction: column; gap: 3px; min-width: 0; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.ste-card i { display: block; aspect-ratio: 1; border-radius: 6px; background: var(--g); }
.ste-card span { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ste-card em { font-style: normal; color: var(--text-secondary); }
.ste-card--1 { --g: linear-gradient(140deg, #E8EAEE, #CFD3DA); }
.ste-card--2 { --g: linear-gradient(140deg, #F4F1FA, #D9CFF0); }
.ste-card--3 { --g: linear-gradient(140deg, #FFF0EE, #FFC9C5); }
.ste-card--4 { --g: linear-gradient(140deg, #EEF0F3, #DFE2E7); }

.ste-rev { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid #EEF0F3; }
.ste-stars { display: flex; gap: 2px; }
.ste-stars i { width: 10px; height: 10px; background: #DFE2E7; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); transition: background-color .3s; }
.ste-stars i.is-on { background: #1F1F1F; }
.ste-quote { font-style: italic; color: var(--text-secondary); }
.ste-mail { display: flex; align-items: center; gap: 8px; padding: 10px 14px 14px; background: #FAFAFB; }
.ste-mail > span:first-child { flex: 1; min-width: 0; font-weight: 600; }
.ste-field { padding: 5px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(31, 31, 31, .12); color: #9A9CA2; background: #FFFFFF; }

/* the selection: an outline with its section's name, moved onto the active part of the store */
.ste-sel {
  position: absolute; z-index: 2; left: 0; top: 0; width: 0; height: 0;
  border-radius: 6px; box-shadow: 0 0 0 2px #5F46A7, 0 0 0 6px rgba(95, 70, 167, .14);
  pointer-events: none; opacity: 0;
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), width .45s cubic-bezier(.2, .7, .2, 1), height .45s cubic-bezier(.2, .7, .2, 1), opacity .3s;
}
.ste-sel.is-on { opacity: 1; }
/* the section's name never covers what is being edited: on a short row (reviews, newsletter, whose button sits at the
   right) it sits above the outline's top-left corner; on tall parts and at the top of the preview (is-in, set by the
   JS) it sits inside, top-right, clear of the logo */
.ste-sel__tag { position: absolute; left: -2px; bottom: 100%; margin-bottom: 5px; padding: 3px 8px; border-radius: 5px; background: #5F46A7; color: #FFFFFF; font-size: 10px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.ste-sel.is-in .ste-sel__tag { left: auto; right: 4px; bottom: auto; top: 4px; margin: 0; }

@media (max-width: 1100px) {
  .hero3--editor .hero3__grid { grid-template-columns: minmax(0, 1fr); }
  .hero3--editor .hero3__copy { max-width: 720px; }
  .ste-stage { max-width: 760px; }
}
@media (max-width: 743px) {
  .ste-stage { padding: 56px 0 50px; }
  .ste-chip, .ste-chip[data-ste-chip] { width: 230px; max-width: 230px; padding: 10px 12px; }
  .ste-chip b { font-size: 30px; }
  .ste-chip > span { font-size: 12px; }
  .ste-chip--1 { left: 0; top: 0; }
  .ste-chip--2 { right: 0; bottom: 0; }
  .ste-body { grid-template-columns: 1fr; min-height: 0; }
  .ste-side, .ste-devices, .ste-links { display: none; }
  .ste-bar__title { font-size: 11px; }
  .ste-prev { padding: 10px; }
  .ste-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ste-card--3, .ste-card--4 { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ste-chip { animation: none; }
  .ste-sel, .ste-card, .ste-button, .ste-item, .ste-block { transition: none; }
  .ste-h.is-typing::after { animation: none; }
}
