:root { --landing-mast-height: 80px; }
#top { --hero-pixel-spread: clamp(64px, 7.7vw, 116px); }
.mast.mast--matrix { background: var(--sb-graphite); color: var(--sb-white); }
body:has(.hero--pixel.pixel-gradient-ready) .mast.mast--matrix { background: transparent; }
.mast.mast--matrix .nav-upload { background: transparent; color: var(--sb-orange); }
.mast.mast--matrix .nav-upload:hover { background: #ffffff0d; color: var(--sb-orange); }
.mast.mast--matrix :is(a, button):focus-visible { outline-color: var(--sb-orange); }

.hero--pixel {
  background: linear-gradient(var(--sb-graphite), #4d3027 29%, #823a21 64%, #9e4622);
  color: var(--sb-white);
}
.hero--pixel .lead, .hero--pixel #limits {
  color: var(--sb-white);
  text-shadow: none;
}
.hero--pixel .receipt { color: var(--text-primary); }
.hero--pixel .product-pixel-bg {
  top: calc(-1 * var(--landing-mast-height));
  height: calc(100% + var(--landing-mast-height) + var(--hero-pixel-spread));
}
.hero--pixel + .product-method {
  padding-top: max(clamp(56px, 8vw, 110px), var(--hero-pixel-spread));
}
@media (max-width: 600px) {
  :root { --landing-mast-height: 72px; }
}

.product-method {
  position: relative;
  isolation: isolate;
  padding-block: clamp(56px, 8vw, 110px) clamp(60px, 8vw, 116px);
}
.product-method .product-pixel-bg { color: var(--sb-orange); }
.product-method h2, .service-scope h2, .workspace-intro h2, .product-footer h2 {
  font-size: clamp(30px, 4vw, 56px);
  font-weight: var(--sb-weight-semibold);
  line-height: 1.08;
  letter-spacing: -.044em;
  text-wrap: balance;
}
.product-method h2, .service-scope h2 {
  font-size: clamp(29px, 3.3vw, 46px);
  color: var(--sb-graphite);
}
.product-method h2 { margin: 0 0 clamp(18px, 2.6vw, 34px); }
.product-method-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr);
  gap: clamp(28px, 6vw, 92px);
  align-items: start;
  max-width: 1050px;
  margin-inline: auto;
}
.product-method .price-method-copy {
  max-width: 47ch;
  color: var(--sb-text-secondary);
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.56;
}
.product-method .price-method-copy strong { color: var(--sb-graphite); }
.product-method .price-method-copy p + p { margin-top: 1em; }
.product-method-cta { margin-top: clamp(20px, 3vw, 28px); }
.method-demo { display: grid; justify-items: center; }
.method-demo iframe {
  display: block;
  width: min(95%, 302px);
  height: auto;
  aspect-ratio: 438 / 914;
  border: 0;
}

.service-scope > .wrap {
  max-width: 1050px;
  padding-block: clamp(24px, 3.2vw, 44px) clamp(28px, 3.6vw, 48px);
  border-top: 1px solid var(--sb-border);
}
.service-scope h2 {
  margin-bottom: clamp(18px, 2vw, 28px);
}
.service-scope-copy {
  max-width: 75ch;
  color: var(--sb-text-secondary);
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.56;
}
.service-scope-copy ul { margin: 0 0 1.2em; padding-inline-start: 1.15em; }
.service-scope-copy li + li { margin-top: .65em; }
.service-scope-copy li::marker { color: var(--sb-orange-deep); }
.service-scope-copy strong { color: var(--sb-graphite); }

.workspace-demo {
  padding-bottom: clamp(34px, 4.5vw, 68px);
  background: var(--sb-white);
}
.workspace-intro { margin: 0 auto clamp(24px, 4vw, 46px); }
.workspace-intro h2 { font-size: clamp(28px, 3.15vw, 46px); }
.workspace-intro p {
  margin: 12px 0 0;
  color: var(--sb-text-secondary);
  font-size: clamp(15px, 1.6vw, 19px);
}
.workspace-visual {
  position: relative;
  background:
    radial-gradient(ellipse at 79% 28%, #ffae74 0%, transparent 56%),
    linear-gradient(var(--sb-off-white), #f8c39e 34%, #fff4ec 68%, var(--sb-white) 100%);
}
.workspace-art-stage {
  position: relative;
  width: min(100%, 1536px);
  margin-inline: auto;
}
.workspace-art {
  position: relative;
  mask-image: linear-gradient(transparent 0%, #000 16%, #000 91%, transparent 100%);
}
@media (min-width: 1537px) {
  .workspace-art {
    mask-image:
      linear-gradient(transparent 0%, #000 16%, #000 91%, transparent 100%),
      linear-gradient(90deg, transparent, #000 7% 93%, transparent);
    mask-composite: intersect;
  }
}
.workspace-motion-phone {
  display: none;
  position: absolute;
  z-index: 1;
  top: 35.7%;
  left: 77.1%;
  width: 18.05%;
  height: 55.4%;
  padding: clamp(3px, .42vw, 7px);
  overflow: hidden;
  border-radius: 16% / 8%;
  background: var(--sb-graphite);
  box-shadow: 0 12px 32px #20262e25;
  pointer-events: none;
}
.workspace-motion-phone img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}
.workspace-art img { display: block; width: 100%; height: auto; }
.workspace-max {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px clamp(16px, 3vw, 42px);
  margin-top: clamp(26px, 4.5vw, 64px);
  scroll-margin-top: clamp(88px, 13vw, 180px);
}
.workspace-max-phone {
  position: relative;
  display: block;
  width: clamp(62px, 10vw, 128px);
  height: auto;
}
.workspace-max-shell { display: block; width: 100%; height: auto; }
.workspace-max-mascot {
  position: absolute;
  top: 46.5%;
  left: 49.5%;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  transform: translate(-50%, -50%) matrix(.36, .113, -.22, .312, 0, 0);
}
.workspace-max h3 {
  font-size: clamp(18px, 2.1vw, 26px);
  font-weight: var(--sb-weight-semibold);
  line-height: 1.2;
  letter-spacing: -.025em;
}
.workspace-max p { margin-top: 7px; color: var(--sb-text-secondary); font-size: clamp(14px, 1.5vw, 17px); }
.workspace-max-qr {
  display: block;
  width: clamp(104px, 12vw, 134px);
  padding: 6px;
  border: 1px solid var(--sb-border);
  border-radius: 12px;
  background: var(--sb-white);
}
.workspace-max-qr img { display: block; width: 100%; height: auto; }
.workspace-max-qr:hover { border-color: var(--sb-orange-deep); }

.product-footer {
  --footer-pixel-spread: clamp(28px, 2.15vw, 32px);
  display: block;
  padding: clamp(94px, 10vw, 150px) 0 0;
  border: 0;
  background: linear-gradient(
    var(--sb-white), #e0a17e clamp(40px, 4.5vw, 68px), #9e4622 clamp(94px, 10vw, 150px),
    #823a21 40%, #4d3027 69%, var(--sb-graphite)
  );
  color: var(--sb-white);
}
.product-footer-call {
  padding-bottom: clamp(24px, 3.4vw, 48px);
  border-bottom: 1px solid #ffffff60;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 20px 32px;
}
.product-footer-call h2 { font-size: clamp(25px, 3vw, 40px); }
.product-footer-call p { margin-top: 7px; font-size: clamp(15px, 1.5vw, 17px); }
.product-footer .product-footer-cta { background: var(--sb-graphite); }
.product-footer .product-footer-cta:hover { background: var(--sb-dark-surface); }
.product-footer :is(a, button):focus-visible { outline-color: var(--sb-white); }

.application-dialog {
  --application-inline: 32px;
  --application-width: 540px;
  width: min(var(--application-width), calc(100% - 32px));
  padding: 0;
  overflow: hidden;
}
.application-dialog[open] { display: flex; flex-direction: column; }
.application-dialog-header {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 20px var(--application-inline) 8px;
}
.application-dialog h2 { padding: 0; }
.application-dialog h2:focus { outline: none; }
.application-dialog .dialog-close {
  position: static;
  flex: 0 0 auto;
  margin-inline-end: -10px;
}
.application-dialog-body { min-height: 0; padding: 0 var(--application-inline) 28px; overflow: auto; overscroll-behavior: contain; }
:is(#contact-help, #supplier-help) { margin: 0 0 20px; font-size: 14px; color: var(--text-secondary); }
.pilot-dialog { --application-width: 480px; }
.pilot-dialog .application-dialog-body { padding-bottom: 4px; }
.pilot-dialog-actions {
  display: flex;
  flex-shrink: 0;
  justify-content: end;
  padding: 12px var(--application-inline) 20px;
}
.pilot-dialog-actions #send { margin: 0; }
#contact-draft:not(:empty) { margin-bottom: 18px; }
#contact-draft #limits { text-align: left; }
#contact-draft .composer textarea { min-height: 72px; }
#contact-draft #message:not(:empty) { margin-top: 8px; }
.supplier-contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.supplier-contact-grid .dialog-field { min-width: 0; margin: 0; }
.supplier-contact-grid input { width: 100%; }
.supplier-dialog .supplier-contact-grid .error:not(:empty) { margin-top: 6px; }
.supplier-message-field { margin-top: 18px; }
.supplier-message-field > label { display: block; margin-bottom: 8px; font-size: 14px; }
.supplier-message-field > label small { margin-left: 5px; color: var(--text-secondary); }
:is(.supplier-dialog, #contact-draft) .composer { padding: 10px 12px; }
.supplier-dialog .composer textarea { min-height: 64px; }
:is(.supplier-dialog, #contact-draft) .composer-toolbar { margin-top: 4px; }
:is(.supplier-dialog, #contact-draft) .attach-file { background: transparent; color: var(--text-secondary); }
:is(.supplier-dialog, #contact-draft) .attach-file:hover:not(:disabled) { background: var(--background); color: var(--text-primary); }
#supplier-limits { display: block; margin-top: 7px; color: var(--text-secondary); font-size: 12px; }
.application-dialog .application-submit { display: flex; width: fit-content; margin: 20px 0 0 auto; }
.application-receipt p { color: var(--text-secondary); overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .application-dialog { --application-inline: 22px; }
  .application-dialog-header { padding-block: 12px 6px; }
  .application-dialog-body { padding-bottom: 20px; }
  :is(#contact-help, #supplier-help) { margin-bottom: 16px; }
}
@media (max-width: 420px) {
  .supplier-contact-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
.product-wordmark { overflow: clip; margin-block: clamp(24px, 6.5vw, 92px) clamp(14px, 3vw, 40px); }
.product-wordmark img { display: block; width: 100%; height: auto; }
@media (prefers-reduced-motion: no-preference) {
  .product-wordmark.motion-visible img { animation: smeta-wordmark-rise 620ms cubic-bezier(.22, .68, .2, 1) both; }
}
@keyframes smeta-wordmark-rise { from { transform: translateY(93%); opacity: .55; } }
.product-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 14px;
  border-top: 1px solid #ffffff60;
  font-size: 12px;
  line-height: 1.55;
  color: var(--sb-white);
}
.product-legal nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.product-legal a:hover { text-decoration-thickness: 2px; }
@media (min-width: 1024px) and (max-width: 1120px) {
  .product-legal { column-gap: 16px; font-size: 11px; }
  .product-legal nav { column-gap: 16px; }
}
.try-max {
  display: flex;
  width: max-content;
  margin: clamp(24px, 4vw, 48px) auto 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: calc(44px + env(safe-area-inset-bottom, 0px));
  max-width: calc(100% - 24px);
  padding: 7px 25px calc(7px + env(safe-area-inset-bottom, 0px));
  border: 0;
  border-radius: 19px 19px 0 0;
  background: var(--sb-graphite);
  color: var(--sb-white);
  font-size: 13px;
  font-weight: var(--sb-weight-semibold);
  white-space: nowrap;
  text-decoration: none;
}
.try-max img { display: block; flex: none; }
.try-max:hover { background: var(--sb-dark-surface); }
.try-max:focus-visible { outline: 2px solid var(--sb-white); outline-offset: -4px; }
@media (max-width: 760px) {
  .product-method-layout { grid-template-columns: 1fr; max-width: 530px; margin-inline: auto; }
  .product-method .price-method-copy { max-width: none; }
  .service-scope > .wrap { max-width: 530px; }
}
@media (max-width: 600px) {
  .workspace-demo {
    background: linear-gradient(var(--sb-off-white), #ffe4d1 16%, #fff8f4 46%, var(--sb-white) 68%);
  }
  .workspace-visual { background: none; }
  .workspace-demo.pixel-gradient-ready .workspace-art-stage { margin-block: -16% -4%; }
  .workspace-max { gap: 10px; }
  .workspace-max-phone { width: clamp(52px, 15vw, 70px); }
  .workspace-max-qr { width: clamp(88px, 24vw, 114px); }
}

@media (max-width: 480px) {
  .method-demo iframe { max-width: 257px; }
}
.workspace-art-base { display: block; width: 100%; height: auto; }
.workspace-art .workspace-art-wordmark {
  position: absolute;
  top: 35.15%;
  left: 7.65%;
  width: 9.4%;
}
.workspace-art .workspace-art-chat {
  position: absolute;
  top: 36.85%;
  left: 77.69%;
  width: 16.81%;
  height: 53.51%;
  border-radius: 15% / 7%;
  object-fit: cover;
}
@media (max-width: 719px) {
  .workspace-intro { padding-top: clamp(36px, 8vw, 62px); }
}
@media (min-width: 720px) {
  .workspace-intro {
    position: absolute;
    z-index: 2;
    top: 10.5%;
    inset-inline: 0;
    margin: 0 auto;
  }
  .workspace-intro p { color: var(--sb-graphite); }
}
@media (min-width: 720px) and (max-width: 900px) {
  .workspace-intro { top: 8.5%; }
}
.heading-motion :is(.heading-word, .heading-letter) {
  display: inline-block;
  color: inherit;
  font-weight: inherit;
}

@media (prefers-reduced-motion: no-preference) {
  .heading-motion .heading-letter {
    opacity: 0;
    transform: translateY(.42em);
  }
  .heading-motion.motion-visible .heading-letter {
    animation: smeta-letter-enter 470ms cubic-bezier(.2, .65, .26, 1) var(--letter-delay) both;
  }
  .workspace-intro h2.heading-motion + p { opacity: 0; }
  .workspace-intro h2.motion-visible + p {
    animation: smeta-workspace-copy-enter 380ms ease-out 240ms both;
  }
  .workspace-visual.workspace-motion .workspace-art {
    opacity: calc(.15 + var(--scene-progress, 1) * .85);
    transform: translateY(calc(43px * (1 - var(--scene-progress, 1))));
  }
  .workspace-visual.workspace-motion .workspace-motion-phone {
    display: block;
    opacity: var(--phone-opacity, 0);
    transform:
      translate(
        calc(-87% * (1 - var(--phone-travel, 1))),
        calc(43px * (1 - var(--scene-progress, 1)) - 23% * (1 - var(--phone-travel, 1)))
      )
      scale(calc(1 + .22 * (1 - var(--phone-travel, 1))));
  }
}
@keyframes smeta-workspace-copy-enter { to { opacity: 1; } }
@keyframes smeta-letter-enter {
  to { opacity: 1; transform: translateY(0); }
}

.workspace-demo, .product-footer { position: relative; isolation: isolate; }
.product-pixel-bg {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  pointer-events: none;
}
.product-footer .product-pixel-bg {
  top: calc(-1 * var(--footer-pixel-spread));
  height: calc(100% + var(--footer-pixel-spread));
}
.workspace-demo.pixel-gradient-ready .workspace-visual { background: transparent; }
.workspace-demo.pixel-gradient-ready .workspace-art {
  mask-image: none;
  clip-path: polygon(
    5.62% 31.1%, 5.82% 30.0%, 6.1% 29.25%, 7.1% 28.5%,
    83.3% 28.5%, 84.2% 29.15%, 84.65% 30.1%, 84.85% 31.35%,
    84.85% 35.8%, 92.1% 35.8%, 93.4% 36.5%, 94.35% 37.5%,
    95.05% 39.2%, 95.5% 42.0%, 95.5% 86.1%, 95.2% 88.1%,
    94.6% 89.55%, 93.4% 90.65%, 92.1% 91.25%, 80.2% 91.25%,
    79.1% 90.78%, 7.15% 90.78%, 6.1% 89.9%, 5.68% 88.55%
  );
}
.workspace-demo.pixel-gradient-ready .workspace-art-stage { filter: drop-shadow(0 16px 24px #73371929); }

@media (prefers-reduced-motion: no-preference) {
  .product-footer .product-pixel-bg {
  top: calc(-1 * var(--footer-pixel-spread));
  height: calc(100% + var(--footer-pixel-spread));
}
.workspace-demo.pixel-gradient-ready .workspace-visual.workspace-motion .workspace-art {
    mask-image: linear-gradient(90deg, #000 75%, rgba(0, 0, 0, var(--phone-dock, 1)) 78%);
  }
}
