:root {
  --ink: #050505;
  --muted: #555963;
  --line: #d9dce2;
  --nav: 64px;
  --lime: #ddff35;
  --blue: #3178ff;
  --navy: #07093f;
  --soft-blue: #dce7f2;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

html.freedom-scroll-active,
html.freedom-scroll-active body {
  overscroll-behavior: none;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f4f4f4;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

button, a, input, textarea { color: inherit; font: inherit; }
button { border: 0; background: transparent; cursor: pointer; }
a { text-decoration: none; }

.mobile-only { display: none; }

.studio-header {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--nav);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-left: 18px;
  border-bottom: 1px solid #e6e8ed;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 22px;
  height: 22px;
  display: inline-block;
  position: relative;
  background: #050505;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #fff;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: .98rem;
}

.main-nav a,
.nav-trigger {
  height: var(--nav);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  position: relative;
}

.nav-trigger span,
.profile-button i {
  width: 8px;
  height: 8px;
  border-right: 1.4px solid currentColor;
  border-bottom: 1.4px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.nav-trigger.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: #050505;
}

.nav-trigger.active span { transform: rotate(225deg) translateY(-2px); }

.profile-button {
  justify-self: end;
  margin-right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.profile-button span {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 58% 32%, #ddb08f 0 13%, transparent 14%),
    radial-gradient(circle at 50% 39%, #241610 0 28%, transparent 29%),
    radial-gradient(circle at 48% 120%, #966656 0 47%, #ddd3cb 48%);
}

.hero {
  background: #fff;
  padding-top: 72px;
}

.hero-copy {
  min-height: 330px;
  padding: 0 clamp(28px, 4.8vw, 96px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 70px;
  align-items: start;
}

h1, h2, h3, p { margin-top: 0; }

.hero h1 {
  margin-bottom: 0;
  font-size: clamp(4.2rem, 6.45vw, 7.4rem);
  line-height: .96;
  letter-spacing: 0;
  font-weight: 400;
}

.hero-side {
  padding-top: 22px;
  font-size: 1.35rem;
  line-height: 1.32;
}

.hero-actions,
.section-head > div {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
}

.pill {
  min-height: 46px;
  padding: 0 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.pill.dark { color: #fff; background: #050505; }
.pill.dark:hover { background: var(--blue); }

.text-link {
  text-decoration: underline;
  text-underline-offset: 5px;
  font-weight: 500;
  white-space: nowrap;
}

.text-link.light { color: #fff; }

.commerce-stage {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(780px, 3.12fr) minmax(260px, 1fr);
  height: clamp(520px, 32.5vw, 680px);
  overflow: hidden;
  background:
    radial-gradient(circle at 1px 1px, rgba(0,0,0,.1) 1px, transparent 1.4px) 0 0 / 8px 8px,
    #f7fbff;
}

.sales-panel {
  background: linear-gradient(#f8fcff 0 34%, #ffe6d6 34% 100%);
  padding: 30px 18px;
}

.sales-panel small {
  color: #626877;
  display: block;
  font-size: 1rem;
}

.sales-panel small i {
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 7px;
  border-radius: 50%;
  background: #83f2bd;
}

.sales-panel > strong {
  display: block;
  margin-top: 8px;
  font-size: 1.55rem;
}

.sales-panel svg {
  width: 100%;
  height: 130px;
  margin-top: 18px;
}

svg path {
  fill: none;
  stroke-linecap: round;
}

.sales-panel svg path {
  stroke: url(#none);
  stroke: #8de9c6;
  stroke-width: 4;
  filter: drop-shadow(-80px 0 0 #7bb7ff);
}

.payment-card,
.amazon-card,
.shipping-card {
  background: #fff;
  box-shadow: 0 18px 40px rgba(20,30,50,.08);
}

.payment-card {
  width: min(240px, 82%);
  margin: 74px auto 0;
  padding: 28px;
  border-radius: 4px;
  display: grid;
  gap: 16px;
}

.payment-card h3,
.shipping-card h3 { margin: 0 0 10px; color: #596172; }

.payment-card label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: .83rem;
  color: #5e6370;
  border-bottom: 1px solid #e1e3e8;
  padding-bottom: 12px;
}

.payment-card button,
.global-visual button,
.summary button,
.moon-store button,
form button,
.checkout-mini button {
  border: 1px solid #111;
  min-height: 36px;
}

.storefront {
  position: relative;
  background: #fff;
  align-self: stretch;
  min-width: 0;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.05);
}

.commerce-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  background: #fff;
}

.commerce-video ~ * {
  display: none;
}

.shipping {
  height: 24px;
  display: grid;
  place-items: center;
  background: #efff5b;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.store-nav {
  min-height: 86px;
  padding: 14px 20px;
  display: grid;
  grid-template-columns: 100px repeat(3, 115px) 1fr 70px;
  align-items: start;
  gap: 12px;
  font-size: .72rem;
}

.store-nav strong { font-size: 2rem; line-height: .8; }
.store-nav label { justify-self: end; align-self: center; width: 170px; height: 30px; border: 1px solid #aeb4be; border-radius: 999px; }
.store-nav input { width: 100%; height: 100%; border: 0; background: transparent; }

.store-hero {
  position: relative;
  height: 370px;
  margin: 0 18px 18px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(120deg, #f9f7ed, #f0f0e9 62%, #dbd8ce);
  display: grid;
  place-items: center;
}

.store-hero h2 {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  color: #fff;
  font-size: 7rem;
  font-weight: 600;
  letter-spacing: 0;
}

.sofa,
.mini-chair {
  width: 520px;
  height: 175px;
  border-radius: 90px 90px 35px 35px;
  background:
    radial-gradient(circle at 12% 28%, #ffc769 0 15%, transparent 16%),
    radial-gradient(circle at 29% 31%, #ffc463 0 16%, transparent 17%),
    radial-gradient(circle at 48% 32%, #f9b957 0 17%, transparent 18%),
    radial-gradient(circle at 68% 31%, #f6b050 0 16%, transparent 17%),
    radial-gradient(circle at 86% 31%, #f3a64b 0 15%, transparent 16%),
    linear-gradient(#f6b04d, #df8734);
  box-shadow: inset 0 -24px 40px rgba(128,70,20,.24), 0 22px 40px rgba(60,30,10,.18);
}

.sofa::before,
.sofa::after {
  content: "";
  position: absolute;
  width: 82px;
  height: 160px;
  top: 132px;
  border-radius: 42px;
  background: linear-gradient(#f5b24d, #d77f30);
}

.sofa::before { left: calc(50% - 300px); }
.sofa::after { right: calc(50% - 300px); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #111;
}

.product-grid article {
  min-height: 260px;
  position: relative;
  padding: 18px;
  border-right: 1px solid #111;
  border-bottom: 1px solid #111;
  overflow: hidden;
}

.product-grid article:nth-child(3n) { border-right: 0; }
.product-grid span { font-weight: 800; }
.product-grid b { font-weight: 400; }
.product-grid em { position: absolute; right: 18px; top: 18px; color: #60646d; font-style: normal; }
.product-grid i { position: absolute; right: 18px; bottom: 12px; font-size: 2rem; font-style: normal; }
.product-grid .selected { background: #f0f0f7; }

.chair,
.table,
.pouf,
.desk {
  position: absolute;
  left: 50%;
  top: 54%;
  transform: translate(-50%, -50%);
}

.chair.blue { width: 260px; height: 90px; border-radius: 50% 50% 25px 25px; border: 28px solid #5969d9; border-top: 0; transform: translate(-50%, -35%) rotate(-5deg); }
.chair.gray { width: 210px; height: 100px; border: 28px solid #aeb1b2; border-radius: 60px 60px 26px 26px; border-top-width: 44px; }
.table.green { width: 110px; height: 150px; background: radial-gradient(ellipse at top, #559252 0 35%, transparent 36%), linear-gradient(90deg, transparent 0 35%, #559252 36% 64%, transparent 65%), radial-gradient(ellipse at bottom, #4d894b 0 36%, transparent 37%); }
.table.lime { width: 330px; height: 180px; background: #e5ff4d; border-radius: 14px; transform: translate(-45%, -20%) rotate(12deg); box-shadow: 42px 110px 0 -132px transparent; }
.pouf.orange { width: 180px; height: 100px; border-radius: 50px; background: radial-gradient(circle at 30% 40%, #e55b30 0 35%, transparent 36%), radial-gradient(circle at 62% 40%, #f06b38 0 35%, transparent 36%), #db492b; }
.desk { width: 260px; height: 90px; border-radius: 50%; border-bottom: 35px solid rgba(54,92,130,.55); border-top: 8px solid #375a7e; }

.channel-panel {
  background: linear-gradient(#dcefea 0 45%, #fbfbfb 45% 100%);
  padding: 34px 42px;
}

.amazon-card {
  width: 205px;
  margin: 0 auto 74px;
  padding: 14px;
  border-radius: 6px;
}

.amazon-card strong {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
}

.amazon-card span { font-size: .7rem; }
.amazon-card small { display: block; margin-top: 10px; letter-spacing: .12em; }

.mini-product {
  height: 128px;
  margin-top: 10px;
  background:
    radial-gradient(ellipse at center, #7dcf94 0 34%, transparent 35%),
    linear-gradient(135deg, #f1f1ed, #fff);
}

.shipping-card {
  background: transparent;
  box-shadow: none;
}

.shipping-card label {
  display: grid;
  grid-template-columns: 36px 1fr 46px;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
}

.shipping-card input {
  appearance: none;
  width: 44px;
  height: 22px;
  border-radius: 999px;
  background: #a8d2ff;
  position: relative;
}

.shipping-card input::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
}

.shipping-card b { font-weight: 500; }
.shipping-card small { color: #9095a4; }

.freedom,
.ops,
.growth,
.code,
.faq,
.closing {
  background:
    radial-gradient(circle at 1px 1px, rgba(0,0,0,.1) 1px, transparent 1.4px) 0 0 / 8px 8px,
    #fff;
  padding: 96px clamp(28px, 4.8vw, 96px);
}

.freedom.horizontal-scroll {
  --rail-distance: 1800px;
  height: calc(100vh - var(--nav) + var(--rail-distance));
  min-height: 0;
  padding: 0;
}

.freedom-sticky {
  position: sticky;
  top: var(--nav);
  height: calc(100vh - var(--nav));
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: clamp(68px, 8vh, 96px) clamp(28px, 4.8vw, 96px) clamp(0px, 1vh, 14px);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: start;
  margin-bottom: clamp(44px, 6.2vh, 72px);
}

.section-head h2,
.ops h2,
.code > h2,
.faq h2,
.closing h2 {
  margin: 0;
  font-size: clamp(4.15rem, 5.25vw, 6.65rem);
  line-height: 1.03;
  font-weight: 400;
}

.freedom-sticky .section-head h2 {
  max-width: 1500px;
  font-size: clamp(4rem, 4.55vw, 5.7rem);
}

.freedom-viewport {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: flex-start;
  overflow: visible;
  width: 100%;
}

.freedom-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(1180px, 85.5vw, 1752px);
  gap: 54px;
  overflow: visible;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  scrollbar-width: none;
  will-change: transform;
  transform: translate3d(calc(var(--freedom-x, 0) * -1px), 0, 0);
}

.freedom-rail::-webkit-scrollbar { display: none; }

.freedom-card {
  scroll-snap-align: center;
  height: min(700px, calc(100vh - var(--nav) - clamp(300px, 30vh, 340px)));
  min-height: 560px;
  border-radius: 8px;
  background: var(--soft-blue);
  display: grid;
  grid-template-columns: minmax(330px, 390px) minmax(720px, 1fr);
  gap: clamp(66px, 7vw, 126px);
  align-items: center;
  padding: clamp(68px, 7.3vh, 92px) clamp(76px, 5.4vw, 110px);
  box-shadow: 0 18px 48px rgba(68,88,110,.14);
}

.freedom-card h3 {
  font-size: clamp(2rem, 1.9vw, 2.35rem);
  line-height: 1.15;
  font-weight: 400;
}

.freedom-card p {
  color: #2f343b;
  font-size: clamp(1.08rem, 1.08vw, 1.22rem);
  line-height: 1.48;
}

.editor-preview {
  min-height: 360px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 48px rgba(30,40,55,.16);
  overflow: hidden;
  position: relative;
}

.editor-preview {
  min-height: 0;
  max-height: 100%;
  aspect-ratio: 16 / 9;
  background-position: center;
  background-size: cover;
}

.freedom-visual,
.freedom-video {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #edf5ff;
}

.checkout-code .freedom-video {
  object-fit: contain;
  background: #edf5ff;
}

.editor-preview.dark-product > :not(.freedom-visual),
.editor-preview.category > :not(.freedom-visual),
.editor-preview.checkout-code > :not(.freedom-video) {
  display: none;
}

.freedom-card:nth-child(2) { background: #dfe9f4; }
.freedom-card:nth-child(3) { background: #dce7f2; }

@media (max-height: 820px) and (min-width: 1051px) {
  .freedom-sticky {
    padding-top: 52px;
    padding-bottom: 0;
  }

  .freedom-sticky .section-head {
    margin-bottom: 36px;
  }

  .freedom-sticky .section-head h2 {
    font-size: clamp(3.65rem, 4.55vw, 5.45rem);
    line-height: 1;
  }

  .freedom-card {
    height: min(560px, calc(100vh - var(--nav) - 250px));
    min-height: 430px;
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .freedom-card h3 {
    font-size: 1.75rem;
  }

  .freedom-card p {
    font-size: 1rem;
    line-height: 1.38;
  }

  .rail-controls {
    margin-top: 8px;
  }
}

@media (max-height: 700px) and (min-width: 1051px) {
  .freedom-sticky {
    padding-top: 34px;
    padding-bottom: 0;
  }

  .freedom-sticky .section-head {
    margin-bottom: 22px;
  }

  .freedom-sticky .section-head h2 {
    font-size: clamp(3rem, 4.15vw, 4.55rem);
  }

  .freedom-card {
    height: min(450px, calc(100vh - var(--nav) - 205px));
    min-height: 340px;
    padding-top: 28px;
    padding-bottom: 28px;
  }
}

.editor-bar { height: 38px; background: #111826; }

.dark-product {
  display: grid;
  grid-template-columns: 1.15fr .95fr;
  background: #1d1d22;
}

.dark-product .editor-bar { grid-column: 1 / -1; }
.product-photo { margin: 28px; border-radius: 4px; background: linear-gradient(135deg,#d8d8d4,#8f918f); }
.product-detail { padding: 48px 30px; color: #fff; }
.product-detail strong { font-size: 2rem; }
.product-detail button { width: 100%; height: 38px; margin-top: 36px; background: #fff; color: #111; }

.category {
  display: grid;
  grid-template-columns: 180px 1fr;
  padding: 22px;
}

.category aside {
  border-right: 1px solid #e5e8ed;
  display: grid;
  align-content: start;
  gap: 12px;
}

.category aside span { width: 100px; height: 12px; background: #cbd2de; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 0 22px; }
.category-grid i { border-radius: 6px; background: linear-gradient(135deg,#e8e8e8,#bfc6cc); min-height: 125px; }

.checkout-code {
  display: grid;
  grid-template-columns: 1fr 320px;
  background: #fff;
}

pre {
  margin: 0;
  overflow: hidden;
  background: #0b2130;
  color: #d7f8d0;
  padding: 32px;
  font: 500 .94rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.summary {
  padding: 34px;
  display: grid;
  gap: 18px;
  align-content: start;
}

.summary p,
.summary em {
  display: flex;
  justify-content: space-between;
  font-style: normal;
}

.fragile-fee {
  padding: 14px;
  border-radius: 3px;
  box-shadow: 0 5px 18px rgba(0,0,0,.14);
  opacity: 1;
  transform: translateY(0);
  transition: 180ms ease;
}

.checkout-code:not(.with-fee) .fragile-fee {
  opacity: 0;
  transform: translateY(-8px);
}

.rail-controls {
  display: none;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
}

.rail-controls button {
  width: 48px;
  height: 48px;
  border: 1px solid #111;
  border-radius: 50%;
}

.commerce-story {
  --story-progress: 0;
  --story-stage-y: 0px;
  min-height: 220vh;
  background: #000;
  color: #fff;
}

.commerce-story-sticky {
  position: sticky;
  top: var(--nav);
  min-height: calc(100vh - var(--nav));
  display: grid;
  grid-template-columns: 42.3% 57.7%;
  overflow: hidden;
  background: #000;
}

.story-copy {
  position: relative;
  min-height: calc(100vh - var(--nav));
  padding: clamp(62px, 7vh, 88px) clamp(34px, 7vw, 160px) clamp(58px, 7vh, 84px);
}

.story-copy-panel {
  position: absolute;
  inset: clamp(62px, 7vh, 88px) clamp(34px, 7vw, 160px) clamp(58px, 7vh, 84px);
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 520ms ease, transform 520ms ease;
  pointer-events: none;
}

.story-copy-panel.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.story-copy h2 {
  font-size: clamp(3.5rem, 5vw, 5.75rem);
  line-height: 1.04;
  font-weight: 400;
  margin: 0 0 clamp(72px, 9vh, 110px);
}

.story-copy article {
  margin: 0 0 clamp(34px, 4.8vh, 54px);
}

.story-copy h3 {
  margin: 0 0 14px;
  font-size: clamp(1.35rem, 1.45vw, 1.72rem);
  line-height: 1.18;
}

.story-copy h3 span { margin-right: 6px; }

.story-copy p {
  color: rgba(255,255,255,.78);
  font-size: clamp(1rem, 1.05vw, 1.2rem);
  line-height: 1.48;
  max-width: 660px;
}

.story-stage {
  min-height: calc(100vh - var(--nav));
  position: relative;
  overflow: hidden;
  color: #111;
  background:
    radial-gradient(circle at 64% 26%, rgba(188,226,255,.9), transparent 31%),
    linear-gradient(160deg, #eef5ff 0%, #f5eee8 55%, #f7d8b7 100%);
}

.story-visual {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(calc(46px - var(--story-stage-y, 0px)));
  transition: opacity 620ms ease, transform 620ms ease;
  pointer-events: none;
}

.story-visual.active {
  opacity: 1;
  transform: translateY(calc(var(--story-stage-y, 0px) * -0.25));
  pointer-events: auto;
}

.commerce-browser {
  width: min(760px, 68%);
  aspect-ratio: 1.48;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 62px rgba(18,30,50,.2), 0 0 0 1px rgba(255,255,255,.72);
  transform: translateX(-2vw);
}

.commerce-browser img,
.gateway-panel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.market-stack {
  position: absolute;
  right: clamp(34px, 6.4vw, 132px);
  top: 20%;
  display: grid;
  gap: 20px;
}

.market-stack div {
  width: 118px;
  min-height: 92px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.9);
  box-shadow: 0 18px 42px rgba(30,30,30,.08);
  backdrop-filter: blur(12px);
}

.market-stack strong {
  font-size: 1.35rem;
  line-height: 1;
}

.market-stack small {
  display: none;
  color: #4e5b67;
  font-size: .78rem;
}

.story-global {
  grid-template-columns: minmax(300px, 370px) minmax(360px, 430px);
  align-content: center;
  justify-content: center;
  gap: 28px;
  background:
    radial-gradient(circle at 78% 22%, rgba(197,228,255,.92), transparent 34%),
    linear-gradient(160deg, #eaf2ff 0%, #e8f9e3 100%);
}

.payment-panel,
.gateway-panel,
.gateway-logos span {
  border: 1px solid rgba(255,255,255,.8);
  background: rgba(255,255,255,.84);
  box-shadow: 0 20px 54px rgba(30,60,90,.12);
  backdrop-filter: blur(14px);
}

.payment-panel {
  border-radius: 14px;
  padding: 30px;
  display: grid;
  gap: 18px;
}

.payment-panel h3,
.gateway-panel h3 {
  font-size: 1.35rem;
  margin: 0 0 4px;
}

.payment-panel label {
  min-height: 52px;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #dde3e8;
}

.payment-panel b { font-size: .95rem; }

.payment-panel button {
  min-height: 48px;
  border: 1px solid #111;
  background: transparent;
}

.payment-panel button:last-child {
  color: #fff;
  background: #000;
}

.gateway-panel {
  border-radius: 14px;
  padding: 26px;
}

.gateway-panel img {
  height: 260px;
  margin-top: 16px;
  border-radius: 10px;
  object-position: center;
}

.gateway-logos {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 18px;
}

.gateway-logos span {
  min-height: 92px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  font-weight: 800;
}

@media (max-height: 820px) and (min-width: 1051px) {
  .story-copy,
  .story-copy-panel {
    padding-top: 42px;
    padding-bottom: 44px;
  }

  .story-copy-panel {
    inset: 42px clamp(34px, 7vw, 160px) 44px;
  }

  .story-copy h2 {
    font-size: clamp(3rem, 4.35vw, 4.9rem);
    margin-bottom: 50px;
  }

  .story-copy article {
    margin-bottom: 28px;
  }

  .story-copy p {
    font-size: 1rem;
  }

  .commerce-browser {
    width: min(720px, 70%);
  }

  .payment-panel {
    padding: 24px;
    gap: 12px;
  }

  .gateway-panel img {
    height: 220px;
  }
}

.ops {
  background: #fff;
  padding-bottom: 0;
}

.ops-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 90px;
  margin: 72px 0 86px;
}

.ops-grid h3 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.ops-grid p,
.growth-cards li,
.revenue-card p,
.code p {
  font-size: 1.15rem;
  line-height: 1.45;
}

.ops-visual {
  margin: 0 calc(clamp(28px, 4.8vw, 96px) * -1);
  min-height: 460px;
  display: grid;
  grid-template-columns: minmax(300px, 680px) minmax(300px, 680px);
  justify-content: center;
  align-items: center;
  gap: 50px;
  background:
    radial-gradient(circle at 1px 1px, rgba(0,0,0,.12) 1px, transparent 1.4px) 0 0 / 8px 8px,
    #d7e3ef;
}

.ops-visual {
  min-height: clamp(420px, 45vw, 780px);
  background:
    url("../Images/ecommerce-headless-generated.png") center / cover no-repeat,
    #d7e3ef;
}

.ops-visual > * {
  display: none;
}

.catalog-window,
.orders-window {
  min-height: 300px;
  border: 6px solid rgba(255,255,255,.72);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(40,50,70,.12);
}

.catalog-window {
  padding: 24px;
  display: grid;
  grid-template-columns: 90px repeat(3, 1fr);
  gap: 12px;
}

.catalog-window div {
  grid-column: 1 / -1;
  height: 92px;
  border-radius: 5px;
  background: linear-gradient(135deg,#d2d59c,#f2f3e7);
}

.catalog-window span {
  min-height: 145px;
  border-radius: 8px;
  background: linear-gradient(135deg,#f3f3f3,#cfd5dc);
}

.orders-window { padding: 26px; }
.orders-window h3 { font-size: 1.6rem; }
.orders-window p {
  display: grid;
  grid-template-columns: 1fr 70px 94px 70px;
  padding: 14px 0;
  border-bottom: 1px solid #e6ebf0;
}
.orders-window span,
.orders-window b {
  justify-self: start;
  padding: 3px 10px;
  border-radius: 3px;
  background: #d5eaff;
  font-size: .76rem;
}
.orders-window b { background: #f47a32; color: #fff; }

.growth {
  background: #f2f2f2;
}

.growth-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 52px;
}

.growth-cards article {
  min-height: 680px;
  border-radius: 22px;
  padding: 54px 50px 0;
  overflow: hidden;
}

.growth-cards h3 {
  font-size: 1.6rem;
  margin-bottom: 26px;
}

.lime-card { background: var(--lime); }
.sand-card { background: #e6e1dc; }
.aqua-card { background: #c7eaec; }

.promo-ui,
.seo-ui,
.analytics-ui {
  height: 300px;
  margin: 54px -50px 0;
  border-radius: 22px 22px 0 0;
  background: #fff;
}

.promo-ui {
  background:
    radial-gradient(ellipse at center, #f6b75b 0 24%, transparent 25%) 42% 62% / 220px 160px no-repeat,
    linear-gradient(#fff,#fff);
}

.seo-ui {
  background:
    linear-gradient(90deg, transparent 0 8%, #edf1f4 8% 92%, transparent 92%) 0 32px / 100% 44px no-repeat,
    linear-gradient(135deg,#fff,#fff);
}

.analytics-ui { padding: 36px; }
.analytics-ui svg { width: 100%; height: 100%; }
.analytics-ui path:first-child { stroke: #f0b45e; stroke-width: 4; }
.analytics-ui path:last-child { stroke: #2f78ff; stroke-width: 4; }

.revenue-card {
  margin-top: 74px;
  min-height: 470px;
  border-radius: 22px;
  display: grid;
  grid-template-columns: 40% 1fr 260px;
  gap: 36px;
  align-items: center;
  padding: 70px 8%;
  background: linear-gradient(90deg, #fff 0 44%, #dce3f6 44% 100%);
}

.revenue-card h2 {
  font-size: clamp(3rem, 4.4vw, 5.4rem);
  line-height: 1.03;
  font-weight: 400;
}

.earnings {
  border: 2px solid #fff;
  border-radius: 12px;
  padding: 28px;
}
.earnings h3 { display: flex; justify-content: space-between; font-size: 1.45rem; }
.earnings svg { width: 100%; height: 180px; }
.earnings path { stroke: #3f39ff; stroke-width: 4; }
.checkout-mini { background: #fff; border: 8px solid rgba(255,255,255,.6); padding: 16px; box-shadow: 0 12px 28px rgba(20,30,50,.16); }
.mini-chair { width: 100%; height: 130px; border-radius: 20px; transform: none; }
.checkout-mini p { display: flex; justify-content: space-between; font-size: .9rem; }
.checkout-mini button { width: 100%; background: #000; color: #fff; }

.apps {
  min-height: 560px;
  padding: 110px clamp(28px, 4.8vw, 96px) 76px;
  display: grid;
  grid-template-columns: 1.35fr .75fr;
  gap: 70px;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}

.apps h2 { font-size: clamp(3.8rem, 5vw, 6rem); line-height: 1.1; font-weight: 400; }
.apps p { color: rgba(255,255,255,.78); font-size: 1.13rem; line-height: 1.5; }
.logo-marquee {
  grid-column: 1 / -1;
  margin: 58px -96px 0;
  padding: 54px 0 0;
  border-top: 1px solid rgba(255,255,255,.22);
  display: flex;
  gap: 86px;
  color: rgba(255,255,255,.65);
  font-size: 1.5rem;
  font-weight: 800;
  animation: marquee 24s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-360px); }
}

.code {
  background: #fff;
}

.code > h2 {
  margin-bottom: 72px;
}

.api-card,
.headless-card {
  min-height: 540px;
  border-radius: 18px;
  padding: 74px 7%;
  margin-bottom: 46px;
  display: grid;
  grid-template-columns: 280px 1fr 220px;
  gap: 44px;
  align-items: start;
}

.api-card { background: #ded7ce; }
.headless-card { background: #d8ead7; grid-template-columns: 280px 420px 1fr; }
.api-card h3,
.headless-card h3 { font-size: 2.5rem; font-weight: 400; }
.api-card pre,
.headless-card pre { height: 350px; border-radius: 7px; }

.headless-card {
  min-height: clamp(520px, 46vw, 820px);
  background:
    url("../Images/ecommerce-headless-generated.png") center / cover no-repeat,
    #d8ead7;
}

.headless-card > * {
  display: none;
}

.moon-store,
form,
.inventory-table {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 16px 35px rgba(0,0,0,.08);
}

.moon-store div {
  height: 190px;
  background: radial-gradient(circle at center, #fff 0 25%, transparent 26%), linear-gradient(135deg,#c78648,#f3ddbf);
}
.moon-store h4 { font-size: 2rem; margin: 18px 0; }
.moon-store button { width: 100%; background: var(--lime); }
form { display: grid; gap: 18px; }
form input,
form textarea { border: 0; border-bottom: 1px solid #c9c1b8; padding: 12px 0; background: transparent; }
form textarea { min-height: 82px; border: 1px solid #c9c1b8; }
form button { background: #000; color: #fff; }

.inventory-table { grid-column: 3; min-height: 350px; }
.inventory-table h4 { font-size: 1.8rem; margin: 0 0 18px; }
.inventory-table h4 b { color: #8b94a8; }
.inventory-table p {
  display: grid;
  grid-template-columns: 1fr 80px 110px;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid #e5e8ed;
  font-size: .95rem;
}
.inventory-table em { border: 1px solid #d9e1ec; border-radius: 6px; padding: 5px 10px; font-style: normal; color: #52627a; }

.infra {
  padding: 90px clamp(28px, 4.8vw, 96px);
  background:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.16) 1px, transparent 1.5px) 0 0 / 10px 10px,
    #101319;
  color: #fff;
}

.infra h2 {
  font-size: clamp(2.8rem, 3.8vw, 4.3rem);
  font-weight: 400;
  margin-bottom: 110px;
}

.infra-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 46px;
}

.infra-grid article {
  min-height: 620px;
  padding: 58px 46px;
  border-radius: 28px;
  background: #2a303c;
  display: grid;
  align-content: space-between;
}

.infra-grid h3 {
  font-size: clamp(3rem, 4vw, 5rem);
  line-height: 1.08;
  font-weight: 400;
}

.infra-grid p { color: rgba(255,255,255,.78); font-size: 1.12rem; line-height: 1.4; }

.faq {
  background: #fff;
}

.faq h2 {
  margin-bottom: 60px;
}

.faq-list {
  border-top: 1px solid #111;
}

.faq-list button {
  width: 100%;
  min-height: 116px;
  text-align: left;
  border-bottom: 1px solid #111;
  display: grid;
  grid-template-columns: 1fr 40px;
  gap: 20px;
  align-items: center;
}

.faq-list span {
  font-size: clamp(1.5rem, 2vw, 2.2rem);
  font-weight: 500;
}

.faq-list i {
  justify-self: end;
  font-style: normal;
  font-size: 2rem;
}

.faq-list p {
  grid-column: 1 / -1;
  max-width: 900px;
  color: #4d535f;
  font-size: 1.1rem;
  line-height: 1.5;
  max-height: 0;
  overflow: hidden;
  margin: 0;
  transition: max-height 220ms ease, margin 220ms ease;
}

.faq-list button.open p {
  max-height: 160px;
  margin: -18px 0 28px;
}

.closing {
  padding-bottom: 0;
  background:
    radial-gradient(circle at 1px 1px, rgba(0,0,0,.1) 1px, transparent 1.4px) 0 0 / 8px 8px,
    #fbfff2;
}

.closing h2 {
  max-width: 1240px;
  margin-bottom: 270px;
}

.closing a {
  margin: 0 calc(clamp(28px, 4.8vw, 96px) * -1);
  display: grid;
  grid-template-columns: 1fr 220px;
  min-height: 236px;
  background: var(--lime);
  font-size: clamp(4rem, 6.4vw, 8rem);
  line-height: 1;
}

.closing a span {
  display: flex;
  align-items: center;
  padding-left: clamp(28px, 4.8vw, 96px);
}

.closing a i {
  display: grid;
  place-items: center;
  background: #000;
  color: #000;
  font-size: 4.5rem;
  font-style: normal;
  position: relative;
}

.closing a i::before {
  content: "";
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
}

.closing a i { z-index: 1; }
.closing a i::after {
  content: "→";
  position: absolute;
  color: #000;
  z-index: 2;
}

.studio-footer {
  padding: 72px clamp(28px, 5vw, 100px);
  background: #111;
  color: #fff;
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 64px;
}

.studio-footer p {
  max-width: 260px;
  color: #c8c8c8;
  line-height: 1.45;
}

.studio-footer nav {
  display: grid;
  align-content: start;
  gap: 14px;
  color: #c8c8c8;
}

.studio-footer strong { color: #fff; font-size: .8rem; margin-bottom: 18px; }

.mega {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--nav);
  min-height: 520px;
  display: grid;
  grid-template-columns: 63% 37%;
  background: #fff;
  border-top: 1px solid #e4e8ef;
  box-shadow: 0 24px 70px rgba(0,20,50,.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  z-index: 70;
}

.mega.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-left {
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 54px 86px 0;
}

.menu-kicker {
  margin: 0;
  padding-bottom: 24px;
  border-bottom: 1px solid #d9e0e8;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 80px;
  row-gap: 28px;
  padding-top: 42px;
  align-content: start;
}

.menu-grid.compact { grid-template-columns: repeat(3, minmax(150px, 1fr)); }

.menu-item {
  min-height: 74px;
  text-align: left;
  display: grid;
  align-content: start;
  gap: 12px;
}

.menu-item strong { font-size: 1.1rem; line-height: 1.08; }
.menu-item span { max-width: 230px; color: #6a6d76; font-size: 1rem; line-height: 1.34; }
.menu-item.active strong,
.menu-item:hover strong,
.menu-item:focus-visible strong { color: #4020ff; }

.menu-footer {
  min-height: 80px;
  margin: 0 -86px;
  padding: 0 86px;
  border-top: 1px solid #e4e8ef;
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-footer a { text-decoration: underline; text-underline-offset: 5px; }

.mega-right {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: linear-gradient(135deg,#f8fbff,#e9f2ff);
}

.preview {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.preview.active {
  opacity: 1;
  transform: translateY(0);
}

.preview-card {
  width: 76%;
  max-width: 560px;
  padding: 28px;
  border-radius: 10px;
  background: rgba(226,238,255,.9);
  box-shadow: 0 18px 42px rgba(40,70,110,.12);
}

.preview-card img {
  display: block;
  width: 100%;
  border-radius: 6px;
}

@media (max-width: 1050px) {
  .studio-header { grid-template-columns: auto 1fr auto; }
  .main-nav { justify-self: center; gap: 18px; }
  .hero-copy,
  .section-head,
  .split-dark,
  .ops-grid,
  .growth-cards,
  .revenue-card,
  .api-card,
  .headless-card,
  .infra-grid,
  .studio-footer {
    grid-template-columns: 1fr;
  }
  .commerce-story { min-height: auto; }
  .commerce-story-sticky {
    position: relative;
    top: auto;
    grid-template-columns: 1fr;
  }
  .story-copy {
    min-height: auto;
    padding: 70px 34px;
  }
  .story-copy-panel {
    position: relative;
    inset: auto;
    display: none;
  }
  .story-copy-panel.active { display: block; }
  .story-stage {
    min-height: 680px;
  }
  .commerce-browser {
    width: min(720px, 74vw);
    transform: none;
  }
  .market-stack { right: 32px; }
  .story-global {
    grid-template-columns: minmax(280px, 360px) minmax(320px, 410px);
    padding: 34px;
  }
  .commerce-stage { grid-template-columns: 1fr; }
  .storefront { order: -1; }
  .channel-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
  .freedom-rail { grid-auto-columns: minmax(720px, 92vw); }
  .freedom-card { grid-template-columns: 1fr; padding: 50px; }
  .ops-visual { grid-template-columns: 1fr; padding: 50px 28px; }
  .inventory-table { grid-column: auto; }
  .mega { grid-template-columns: 1fr; overflow-y: auto; }
  .mega-right { display: none; }
}

@media (max-width: 720px) {
  :root { --nav: 58px; }
  .studio-header { padding: 0 14px; }
  .main-nav { display: none; }
  .profile-button { margin-right: 0; }
  .hero { padding-top: 46px; }
  .hero-copy {
    width: 100vw;
    max-width: 100vw;
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    min-height: auto;
    padding-left: 28px;
    padding-right: 28px;
  }
  .hero h1,
  .section-head h2,
  .ops h2,
  .code > h2,
  .faq h2,
  .closing h2 {
    font-size: 2.5rem;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .hero-side { padding-top: 0; font-size: 1.08rem; }
  .mobile-only { display: initial; }
  .hero-actions, .section-head > div { flex-wrap: wrap; }
  .store-nav { grid-template-columns: 70px 1fr 1fr; }
  .shipping { font-size: .64rem; letter-spacing: .08em; }
  .store-nav span:nth-of-type(3), .store-nav label, .store-nav small { display: none; }
  .store-hero { height: 300px; }
  .sofa { width: 330px; height: 120px; }
  .store-hero h2 { font-size: 4.4rem; }
  .product-grid { grid-template-columns: 1fr; }
  .channel-panel { grid-template-columns: 1fr; }
  .freedom, .ops, .growth, .code, .faq, .closing { padding-left: 22px; padding-right: 22px; }
  .freedom-rail { grid-auto-columns: 88vw; }
  .freedom-card { padding: 32px; min-height: auto; }
  .editor-preview, .checkout-code, .dark-product { grid-template-columns: 1fr; }
  .checkout-code pre { display: none; }
  .commerce-story-sticky { display: block; }
  .story-copy { padding: 58px 28px 44px; }
  .story-copy h2 { font-size: 3rem; margin-bottom: 42px; }
  .story-copy article { margin-bottom: 30px; }
  .story-stage { min-height: 620px; }
  .commerce-browser { width: 92vw; }
  .market-stack {
    right: 22px;
    top: auto;
    bottom: 30px;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .market-stack div {
    width: 98px;
    min-height: 70px;
  }
  .story-global {
    grid-template-columns: 1fr;
    align-content: start;
    padding: 28px 22px;
    gap: 14px;
  }
  .payment-panel, .gateway-panel { padding: 20px; }
  .gateway-panel img { height: 170px; }
  .gateway-logos {
    grid-column: auto;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .gateway-logos span { min-height: 66px; font-size: 1rem; }
  .ops-visual { margin-left: -22px; margin-right: -22px; }
  .growth-cards article { min-height: 560px; padding: 34px 28px 0; }
  .promo-ui, .seo-ui, .analytics-ui { margin-left: -28px; margin-right: -28px; }
  .revenue-card { padding: 36px 26px; background: #fff; }
  .apps { grid-template-columns: 1fr; padding: 70px 22px; }
  .api-card, .headless-card { padding: 36px 24px; }
  .api-card pre, .headless-card pre { font-size: .76rem; }
  .infra-grid article { min-height: 380px; padding: 34px 28px; }
  .infra-grid h3 { font-size: 2.8rem; }
  .faq-list button { min-height: 92px; }
  .faq-list span { font-size: 1.25rem; }
  .closing h2 { margin-bottom: 120px; }
  .closing a { grid-template-columns: 1fr 104px; min-height: 150px; font-size: 3.3rem; }
  .closing a i::before { width: 78px; height: 78px; }
  .studio-footer { padding: 48px 22px; gap: 30px; }
}

/* Shared generated BUGENCE brand mark. */
.brand-mark,
.bugence-logo::before,
.logo::before {
  width: 34px !important;
  height: 34px !important;
  flex: 0 0 34px !important;
  display: inline-block !important;
  border-radius: 0 !important;
  background: url("../Images/bugence-logo-mark.png") center / cover no-repeat !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.10) !important;
  overflow: hidden !important;
}

.brand-mark::after,
.bugence-logo::after,
.logo::after {
  display: none !important;
  content: none !important;
}

.bugence-logo,
.logo {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
}
.bugence-logo::before,
.logo::before {
  content: "" !important;
}
