/* EstateSail showcase pages: /estate-sale-app/, /how-to-run-an-estate-sale/, /estate-sale-marketing/.
   Loaded after preview.css through `extra_css`. Motion lives in showcase.js and is off for
   prefers-reduced-motion. Every class starts with sc- so nothing here leaks into other pages. */

:root {
  --sc-night: #06111d;
  --sc-ink: #0b1f33;
  --sc-ink-2: #12304d;
  --sc-blue: #2563eb;
  --sc-sky: #7cb6ff;
  --sc-ice: #dbeafe;
  --sc-mint: #34d399;
  --sc-gold: #f2b544;
  --sc-coral: #ff7a59;
  --sc-paper: #f6f8fb;
  --sc-text-dim: rgba(255, 255, 255, 0.72);
  --sc-glass: rgba(255, 255, 255, 0.07);
  --sc-glass-line: rgba(255, 255, 255, 0.14);
  --sc-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sc-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sc {
  overflow-x: clip;
  background: var(--sc-paper);
  color: var(--sc-ink);
}

.sc img {
  display: block;
}

.sc-wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.sc-narrow {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
}

.sc-dark {
  background: var(--sc-night);
  color: #fff;
}

.sc-ink-bg {
  background: var(--sc-ink);
  color: #fff;
}

.sc-white {
  background: #fff;
}

.sc-section {
  padding: clamp(80px, 12vw, 150px) 0;
  position: relative;
}

.sc-section-tight {
  padding: clamp(56px, 8vw, 96px) 0;
}

/* ---------- Type ---------- */

.sc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sc-blue);
  margin-bottom: 18px;
}

.sc-dark .sc-eyebrow,
.sc-ink-bg .sc-eyebrow,
.sc-hero .sc-eyebrow {
  color: var(--sc-sky);
}

.sc-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.sc-display {
  font-size: clamp(2.8rem, 7.6vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-weight: 400;
  text-wrap: balance;
}

.sc-h2 {
  font-size: clamp(2.3rem, 5.4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  font-weight: 400;
  text-wrap: balance;
  max-width: 16ch;
}

.sc-h2-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.sc-serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.sc-grad {
  background: linear-gradient(100deg, #7cb6ff 0%, #c4b5fd 45%, #f2b544 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sc-grad-ink {
  background: linear-gradient(100deg, #2563eb 0%, #7c3aed 55%, #d97706 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sc-lede {
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  line-height: 1.55;
  color: #3a4b5e;
  max-width: 38rem;
  margin-top: 22px;
}

.sc-dark .sc-lede,
.sc-ink-bg .sc-lede,
.sc-hero .sc-lede {
  color: var(--sc-text-dim);
}

.sc-center {
  text-align: center;
}

.sc-center .sc-lede {
  margin-left: auto;
  margin-right: auto;
}

.sc p + p {
  margin-top: 14px;
}

/* ---------- Buttons ---------- */

.sc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}

.sc-center .sc-actions {
  justify-content: center;
}

.sc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: transform 0.35s var(--sc-ease), background-color 0.2s ease, box-shadow 0.35s var(--sc-ease), color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.sc-btn:active {
  transform: scale(0.97);
}

.sc-btn-primary {
  background: var(--sc-blue);
  color: #fff;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.sc-btn-primary:hover {
  background: #1d4ed8;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.sc-btn-light {
  background: #fff;
  color: var(--sc-ink);
}

.sc-btn-light:hover {
  color: var(--sc-ink);
  transform: translateY(-2px);
}

.sc-btn-glass {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.sc-btn-glass:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.sc-btn-outline {
  background: transparent;
  color: var(--sc-ink);
  border: 1px solid rgba(11, 31, 51, 0.22);
}

.sc-btn-outline:hover {
  color: var(--sc-ink);
  border-color: var(--sc-ink);
}

.sc-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.35s var(--sc-ease);
}

.sc-btn:hover svg {
  transform: translateX(3px);
}

.sc-link {
  font-weight: 600;
  text-decoration: none;
  color: var(--sc-blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sc-dark .sc-link,
.sc-ink-bg .sc-link {
  color: var(--sc-sky);
}

.sc-link::after {
  content: "\203A";
  font-size: 1.3em;
  line-height: 1;
  transition: transform 0.3s var(--sc-ease);
}

.sc-link:hover::after {
  transform: translateX(4px);
}

/* ---------- Hero ---------- */

.sc-hero {
  position: relative;
  background: var(--sc-night);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(64px, 9vw, 120px) 0 0;
}

.sc-aurora {
  position: absolute;
  inset: -20% -10% auto;
  height: 120%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.9;
}

.sc-aurora span {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  will-change: transform;
  animation: sc-drift 18s ease-in-out infinite alternate;
}

.sc-aurora span:nth-child(1) {
  width: 52vw;
  height: 52vw;
  max-width: 760px;
  max-height: 760px;
  left: 8%;
  top: -12%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.75), transparent 65%);
}

.sc-aurora span:nth-child(2) {
  width: 44vw;
  height: 44vw;
  max-width: 640px;
  max-height: 640px;
  right: 2%;
  top: 4%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.55), transparent 65%);
  animation-duration: 22s;
  animation-delay: -6s;
}

.sc-aurora span:nth-child(3) {
  width: 36vw;
  height: 36vw;
  max-width: 520px;
  max-height: 520px;
  left: 38%;
  top: 30%;
  background: radial-gradient(circle, rgba(242, 181, 68, 0.38), transparent 65%);
  animation-duration: 26s;
  animation-delay: -12s;
}

@keyframes sc-drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(4vw, 3vh, 0) scale(1.08); }
  100% { transform: translate3d(-3vw, -2vh, 0) scale(0.96); }
}

.sc-grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 3px 3px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
}

.sc-hero-copy {
  text-align: center;
  position: relative;
  z-index: 2;
}

.sc-hero-copy .sc-lede {
  margin-left: auto;
  margin-right: auto;
}

.sc-hero-copy .sc-actions {
  justify-content: center;
}

.sc-hero h1 {
  max-width: 13ch;
  margin: 0 auto;
}

.sc-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  border: 1px solid var(--sc-glass-line);
  background: var(--sc-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 26px;
}

.sc-pill b {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--sc-blue);
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

/* Word reveal for headlines. Hidden only until showcase.js has split the words. */
.sc-motion .sc-words:not([data-split]) {
  opacity: 0;
}

.sc-words .sc-w {
  display: inline-block;
  white-space: pre;
}

.sc-motion .sc-words .sc-w {
  opacity: 0;
  transform: translate3d(0, 0.55em, 0) rotate(2deg);
  filter: blur(8px);
  animation: sc-word 0.9s var(--sc-ease) forwards;
  animation-delay: calc(var(--i, 0) * 70ms + 120ms);
}

@keyframes sc-word {
  to { opacity: 1; transform: none; filter: blur(0); }
}

.sc-motion .sc-fade-in {
  opacity: 0;
  animation: sc-fade-up 1s var(--sc-ease) forwards;
  animation-delay: var(--d, 0.5s);
}

@keyframes sc-fade-up {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to { opacity: 1; transform: none; }
}

/* Hero stage with devices */
.sc-stage {
  position: relative;
  margin: clamp(48px, 7vw, 84px) auto 0;
  height: clamp(440px, 62vw, 720px);
  max-width: 1100px;
  perspective: 1600px;
}

.sc-stage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40%;
  background: linear-gradient(to bottom, transparent, var(--sc-night) 92%);
  z-index: 6;
  pointer-events: none;
}

.sc-stage .sc-phone {
  position: absolute;
  left: 50%;
  top: 0;
  width: clamp(230px, 27vw, 330px);
  transform: translateX(-50%);
  z-index: 4;
}

.sc-stage .sc-phone.sc-left,
.sc-stage .sc-phone.sc-right {
  width: clamp(190px, 22vw, 270px);
  top: 9%;
  z-index: 3;
  opacity: 0.92;
}

.sc-stage .sc-phone.sc-left {
  left: 22%;
  transform: translateX(-50%) rotate(-8deg);
}

.sc-stage .sc-phone.sc-right {
  left: 78%;
  transform: translateX(-50%) rotate(8deg);
}

.sc-motion .sc-stage .sc-phone {
  animation: sc-rise-dev 1.3s var(--sc-ease) both;
  animation-delay: 0.45s;
}

.sc-motion .sc-stage .sc-phone.sc-left {
  animation-name: sc-rise-left;
  animation-delay: 0.7s;
}

.sc-motion .sc-stage .sc-phone.sc-right {
  animation-name: sc-rise-right;
  animation-delay: 0.8s;
}

@keyframes sc-rise-dev {
  from { opacity: 0; transform: translateX(-50%) translateY(120px) rotateX(18deg); }
  to { opacity: 1; transform: translateX(-50%); }
}

@keyframes sc-rise-left {
  from { opacity: 0; transform: translateX(-30%) translateY(140px) rotate(0deg); }
  to { opacity: 0.92; transform: translateX(-50%) rotate(-8deg); }
}

@keyframes sc-rise-right {
  from { opacity: 0; transform: translateX(-70%) translateY(140px) rotate(0deg); }
  to { opacity: 0.92; transform: translateX(-50%) rotate(8deg); }
}

/* Floating glass chips */
.sc-chip {
  position: absolute;
  z-index: 7;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 16px;
  background: rgba(13, 30, 50, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.sc-chip small {
  display: block;
  font-weight: 500;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.66);
}

.sc-chip i {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 0.95rem;
  background: var(--sc-blue);
  flex: none;
}

.sc-chip i.sc-g { background: #10b981; }
.sc-chip i.sc-o { background: #f59e0b; }
.sc-chip i.sc-v { background: #7c3aed; }

.sc-chip svg {
  width: 16px;
  height: 16px;
}

.sc-motion .sc-chip {
  opacity: 0;
  animation: sc-pop 0.9s var(--sc-ease-spring) forwards;
  animation-delay: var(--d, 1.2s);
}

@keyframes sc-pop {
  from { opacity: 0; transform: translate3d(0, 16px, 0) scale(0.85); }
  to { opacity: 1; transform: none; }
}

.sc-float {
  animation: sc-bob 6s ease-in-out infinite;
}

@keyframes sc-bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

/* ---------- Device frames ---------- */

.sc-phone {
  position: relative;
  /* Sized so the screen inside (inset 3.2% of the width on every side) keeps the 720 x 1564 screenshot ratio. */
  aspect-ratio: 47683 / 100000;
  border-radius: 15% / 7%;
  background: linear-gradient(145deg, #2a3442, #0d1117 40%, #1b232e);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 2px 0 rgba(255, 255, 255, 0.1) inset,
    0 50px 100px -20px rgba(0, 0, 0, 0.55),
    0 30px 60px -30px rgba(37, 99, 235, 0.35);
}

.sc-phone::before {
  content: "";
  position: absolute;
  top: 2.9%;
  left: 50%;
  width: 29%;
  height: 3.4%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
  z-index: 2;
}

.sc-phone-screen {
  position: absolute;
  top: 1.526%;
  bottom: 1.526%;
  left: 3.2%;
  right: 3.2%;
  border-radius: 12.4% / 5.8%;
  overflow: hidden;
  background: #f2f4f7;
}

.sc-phone-screen > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.sc-light-dev .sc-phone {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 40px 80px -24px rgba(11, 31, 51, 0.35),
    0 20px 40px -20px rgba(11, 31, 51, 0.25);
}

.sc-tablet {
  position: relative;
  aspect-ratio: 1100 / 1467;
  border-radius: 5.5% / 4.1%;
  background: linear-gradient(145deg, #2a3442, #0d1117 40%, #1b232e);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 50px 100px -30px rgba(11, 31, 51, 0.45);
}

.sc-tablet .sc-phone-screen {
  inset: 3%;
  border-radius: 3% / 2.2%;
}

.sc-browser {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 50px 100px -30px rgba(11, 31, 51, 0.45), 0 0 0 1px rgba(11, 31, 51, 0.08);
}

.sc-browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  background: #eef1f5;
  border-bottom: 1px solid rgba(11, 31, 51, 0.08);
}

.sc-browser-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}

.sc-browser-bar i:nth-child(2) { background: #febc2e; }
.sc-browser-bar i:nth-child(3) { background: #28c840; }

.sc-browser-bar span {
  margin-left: 12px;
  flex: 1;
  max-width: 340px;
  height: 22px;
  border-radius: 7px;
  background: #fff;
  font-size: 0.72rem;
  color: #66788c;
  display: flex;
  align-items: center;
  padding: 0 10px;
}

.sc-browser img {
  width: 100%;
  height: auto;
}

/* ---------- Reveal on scroll ---------- */

.sc-motion [data-reveal] {
  opacity: 0;
  transition: opacity 1s var(--sc-ease), transform 1.1s var(--sc-ease), filter 1s var(--sc-ease);
  transition-delay: var(--rd, 0ms);
  will-change: opacity, transform;
}

.sc-motion [data-reveal="up"] { transform: translate3d(0, 44px, 0); }
.sc-motion [data-reveal="scale"] { transform: scale(0.92); }
.sc-motion [data-reveal="blur"] { filter: blur(14px); transform: translate3d(0, 20px, 0); }
.sc-motion [data-reveal="left"] { transform: translate3d(-50px, 0, 0); }
.sc-motion [data-reveal="right"] { transform: translate3d(50px, 0, 0); }

.sc-motion [data-reveal].is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ---------- Statement: words light up as you scroll ---------- */

.sc-statement {
  font-size: clamp(1.9rem, 4.6vw, 3.9rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 600;
  max-width: 22ch;
  margin: 0 auto;
  text-align: center;
  text-wrap: balance;
}

.sc-statement .sc-s {
  transition: color 0.4s ease;
}

.sc-motion .sc-statement .sc-s {
  color: rgba(255, 255, 255, 0.16);
}

.sc-motion .sc-white .sc-statement .sc-s,
.sc-motion .sc-statement-light .sc-s {
  color: rgba(11, 31, 51, 0.14);
}

.sc-motion .sc-statement .sc-s.is-lit {
  color: #fff;
}

.sc-motion .sc-white .sc-statement .sc-s.is-lit,
.sc-motion .sc-statement-light .sc-s.is-lit {
  color: var(--sc-ink);
}

.sc-statement .sc-s.sc-accent.is-lit,
.sc-statement .sc-accent {
  color: var(--sc-sky) !important;
}

.sc-white .sc-statement .sc-accent,
.sc-statement-light .sc-accent {
  color: var(--sc-blue) !important;
}

.sc-motion .sc-statement .sc-s.sc-accent:not(.is-lit) {
  color: rgba(124, 182, 255, 0.2) !important;
}

/* ---------- Sticky scrollytelling ---------- */

.sc-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}

.sc-story-steps {
  display: grid;
  gap: 0;
}

.sc-story-step {
  padding: 32px 0;
}

.sc-story-step h3 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  max-width: 15ch;
}

.sc-story-step p {
  margin-top: 16px;
  font-size: 1.1rem;
  color: #3a4b5e;
  max-width: 32rem;
}

.sc-dark .sc-story-step p,
.sc-ink-bg .sc-story-step p {
  color: var(--sc-text-dim);
}

.sc-story-num {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sc-blue);
  margin-bottom: 14px;
}

.sc-dark .sc-story-num,
.sc-ink-bg .sc-story-num {
  color: var(--sc-sky);
}

.sc-story-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  max-width: 32rem;
}

.sc-story-list li {
  position: relative;
  padding-left: 30px;
  font-size: 1rem;
  color: #3a4b5e;
}

.sc-dark .sc-story-list li,
.sc-ink-bg .sc-story-list li {
  color: rgba(255, 255, 255, 0.78);
}

.sc-story-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.sc-dark .sc-story-list li::before,
.sc-ink-bg .sc-story-list li::before {
  background-color: rgba(124, 182, 255, 0.16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237cb6ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

.sc-story-inline {
  margin-top: 28px;
  max-width: 280px;
}

.sc-story-device {
  display: none;
}

@media (min-width: 900px) {
  .sc-story {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    gap: 72px;
    align-items: start;
  }

  .sc-story-step {
    min-height: 88vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    opacity: 0.25;
    transition: opacity 0.6s var(--sc-ease);
  }

  .sc-story-step.is-active {
    opacity: 1;
  }

  .sc-story-inline {
    display: none;
  }

  .sc-story-device {
    display: block;
    position: sticky;
    top: calc(var(--header) + 4vh);
    height: calc(100vh - var(--header) - 8vh);
    min-height: 560px;
  }

  .sc-story-device .sc-phone {
    height: 100%;
    max-height: 760px;
    width: auto;
    margin: 0 auto;
  }

  .sc-story-device .sc-phone-screen > img {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.7s var(--sc-ease), transform 1.2s var(--sc-ease);
  }

  .sc-story-device .sc-phone-screen > img.is-on {
    opacity: 1;
    transform: none;
  }

  .sc-story-device .sc-glow {
    position: absolute;
    inset: 10% 0;
    z-index: -1;
    background: radial-gradient(closest-side, rgba(37, 99, 235, 0.35), transparent);
    filter: blur(30px);
  }

  .sc-story-progress {
    position: absolute;
    right: -26px;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    gap: 10px;
  }

  .sc-story-progress i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(11, 31, 51, 0.2);
    transition: transform 0.4s var(--sc-ease), background-color 0.4s ease;
  }

  .sc-dark .sc-story-progress i,
  .sc-ink-bg .sc-story-progress i {
    background: rgba(255, 255, 255, 0.25);
  }

  .sc-story-progress i.is-on {
    background: var(--sc-blue);
    transform: scale(1.6);
  }

  .sc-dark .sc-story-progress i.is-on,
  .sc-ink-bg .sc-story-progress i.is-on {
    background: var(--sc-sky);
  }
}

/* ---------- Bento ---------- */

.sc-bento {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 56px;
}

@media (min-width: 760px) {
  .sc-bento {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .sc-b-2 { grid-column: span 2; }
  .sc-b-3 { grid-column: span 3; }
  .sc-b-4 { grid-column: span 4; }
  .sc-b-6 { grid-column: span 6; }
  .sc-b-tall { grid-row: span 2; }
}

.sc-card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: clamp(24px, 3vw, 36px);
  background: #fff;
  border: 1px solid rgba(11, 31, 51, 0.07);
  box-shadow: 0 1px 2px rgba(11, 31, 51, 0.04), 0 24px 60px -30px rgba(11, 31, 51, 0.18);
  transition: transform 0.5s var(--sc-ease), box-shadow 0.5s var(--sc-ease);
  isolation: isolate;
}

.sc-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(37, 99, 235, 0.09), transparent 60%);
}

.sc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1px 2px rgba(11, 31, 51, 0.04), 0 40px 80px -36px rgba(11, 31, 51, 0.28);
}

.sc-card:hover::before {
  opacity: 1;
}

.sc-dark .sc-card,
.sc-ink-bg .sc-card,
.sc-card-dark {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.6);
}

.sc-dark .sc-card::before,
.sc-ink-bg .sc-card::before,
.sc-card-dark::before {
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(124, 182, 255, 0.16), transparent 60%);
}

.sc-card-blue {
  background: linear-gradient(150deg, #1d4ed8, #1e3a8a 65%, #172554);
  color: #fff;
  border: 0;
}

.sc-card-blue::before {
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.18), transparent 60%);
}

.sc-card h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.sc-card p {
  margin-top: 10px;
  color: #2c3e52;
  font-size: 1.03rem;
  line-height: 1.55;
}

/* Card subheadlines must read clearly on every card: at least WCAG AA 4.5:1. */
.sc-dark .sc-card p,
.sc-ink-bg .sc-card p,
.sc-card-dark p {
  color: rgba(255, 255, 255, 0.86);
}

.sc-card-blue p,
.sc-card-blue li {
  color: rgba(255, 255, 255, 0.95);
}

.sc-card-blue p {
  font-weight: 500;
}

.sc-card-blue .sc-eyebrow {
  color: rgba(255, 255, 255, 0.94);
}

.sc-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--sc-blue);
}

.sc-dark .sc-card-icon,
.sc-ink-bg .sc-card-icon,
.sc-card-dark .sc-card-icon {
  background: rgba(124, 182, 255, 0.14);
  color: var(--sc-sky);
}

.sc-card-blue .sc-card-icon {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.sc-card-icon svg {
  width: 24px;
  height: 24px;
}

.sc-card-media {
  margin: 26px -6px -60px;
}

.sc-card-media .sc-phone {
  width: min(250px, 78%);
  margin: 0 auto;
}

.sc-big-num {
  font-size: clamp(3rem, 7vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.sc-big-num small {
  font-size: 0.45em;
  letter-spacing: -0.02em;
}

/* ---------- Label printer animation ---------- */

.sc-printer {
  position: relative;
  width: min(360px, 90%);
  margin: 40px auto 0;
  padding-top: 8px;
}

.sc-printer-body {
  position: relative;
  z-index: 2;
  height: 92px;
  border-radius: 26px 26px 18px 18px;
  background: linear-gradient(180deg, #f9fafb, #dfe4ea);
  box-shadow: inset 0 2px 0 #fff, inset 0 -6px 12px rgba(11, 31, 51, 0.08), 0 30px 60px -20px rgba(0, 0, 0, 0.5);
}

.sc-printer-body::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 22px;
  width: 54px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 8px;
  background: #c8d0d9;
  box-shadow: inset 0 2px 3px rgba(11, 31, 51, 0.2);
}

.sc-printer-body::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 30px;
  width: 6px;
  height: 6px;
  margin-left: 40px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 12px #10b981;
}

.sc-printer-slot {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 10px;
  height: 6px;
  border-radius: 6px;
  background: #1f2937;
}

.sc-printer-out {
  position: relative;
  z-index: 1;
  width: 84%;
  margin: -14px auto 0;
  height: 230px;
  overflow: hidden;
}

.sc-printer-out img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.45);
  transform: translateY(0);
}

.sc-motion .sc-printer-out img {
  transform: translateY(-105%);
}

.sc-motion .sc-printer.is-in .sc-printer-out img {
  animation: sc-print 5.5s var(--sc-ease) infinite;
}

@keyframes sc-print {
  0% { transform: translateY(-105%); }
  8% { transform: translateY(-105%); }
  40% { transform: translateY(6%); }
  80% { transform: translateY(6%); opacity: 1; }
  92% { transform: translateY(22%); opacity: 0; }
  100% { transform: translateY(-105%); opacity: 0; }
}

/* ---------- Label marquee ---------- */

.sc-marquee {
  position: relative;
  overflow: hidden;
  padding: 10px 0 30px;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.sc-marquee-track {
  display: flex;
  gap: 22px;
  width: max-content;
  animation: sc-marquee 42s linear infinite;
}

.sc-marquee:hover .sc-marquee-track {
  animation-play-state: paused;
}

.sc-marquee img {
  width: 260px;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 18px 40px -20px rgba(11, 31, 51, 0.35);
  transform: rotate(var(--r, 0deg));
}

@keyframes sc-marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Live checkout demo ---------- */

.sc-register {
  width: min(420px, 100%);
  margin: 0 auto;
  border-radius: 28px;
  background: #fff;
  color: var(--sc-ink);
  padding: 22px;
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.sc-register-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.sc-register-head span {
  font-size: 0.78rem;
  font-weight: 600;
  color: #10b981;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sc-register-head span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: sc-blink 1.4s ease-in-out infinite;
}

@keyframes sc-blink {
  50% { opacity: 0.25; }
}

.sc-register ul {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  min-height: 232px;
}

.sc-register li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(11, 31, 51, 0.07);
  font-size: 0.95rem;
}

.sc-register li b {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

.sc-register li i {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 9px;
  background: var(--sc-ice);
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 1rem;
}

.sc-motion .sc-register li {
  opacity: 0;
  transform: translateX(-16px);
}

.sc-register li.is-scanned {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s var(--sc-ease), transform 0.5s var(--sc-ease);
  animation: sc-beep 0.9s ease;
}

@keyframes sc-beep {
  0% { background: rgba(37, 99, 235, 0.14); }
  100% { background: transparent; }
}

.sc-register-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 16px;
  font-weight: 600;
}

.sc-register-total strong {
  font-size: 2.1rem;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.sc-register-pay {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.sc-register-pay span {
  text-align: center;
  padding: 11px 6px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  background: #f1f4f8;
}

.sc-register-pay span:first-child {
  background: var(--sc-blue);
  color: #fff;
}

.sc-scanline {
  position: relative;
  height: 3px;
  margin-top: 10px;
  border-radius: 3px;
  background: rgba(37, 99, 235, 0.12);
  overflow: hidden;
}

.sc-scanline::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 30%;
  background: linear-gradient(90deg, transparent, var(--sc-blue), transparent);
  animation: sc-scan 1.6s ease-in-out infinite;
}

@keyframes sc-scan {
  from { transform: translateX(-100%); }
  to { transform: translateX(340%); }
}

/* ---------- Stats ---------- */

.sc-stats {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 60px;
}

@media (min-width: 860px) {
  .sc-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.sc-stat {
  padding-top: 20px;
  border-top: 1px solid rgba(11, 31, 51, 0.12);
}

.sc-dark .sc-stat,
.sc-ink-bg .sc-stat {
  border-top-color: rgba(255, 255, 255, 0.16);
}

.sc-stat strong {
  display: block;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.sc-stat span {
  display: block;
  margin-top: 10px;
  font-size: 0.98rem;
  color: #3a4b5e;
  max-width: 22ch;
}

.sc-dark .sc-stat span,
.sc-ink-bg .sc-stat span {
  color: var(--sc-text-dim);
}

/* ---------- Split rows ---------- */

.sc-split {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .sc-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 80px;
  }
  .sc-split-flip > :first-child {
    order: 2;
  }
}

.sc-split-media {
  position: relative;
}

.sc-split-media .sc-phone {
  width: min(300px, 70%);
  margin: 0 auto;
}

.sc-halo::before {
  content: "";
  position: absolute;
  inset: 8% 4%;
  z-index: 0;
  background: radial-gradient(closest-side, rgba(37, 99, 235, 0.28), transparent);
  filter: blur(40px);
}

.sc-halo > * {
  position: relative;
  z-index: 1;
}

/* ---------- Guide: chapters ---------- */

.sc-guide {
  display: grid;
  gap: 40px;
}

@media (min-width: 1000px) {
  .sc-guide {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 72px;
    align-items: start;
  }
}

.sc-toc {
  display: none;
}

@media (min-width: 1000px) {
  .sc-toc {
    display: block;
    position: sticky;
    top: calc(var(--header) + 32px);
  }
}

.sc-toc p {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #66788c;
  margin-bottom: 14px;
}

.sc-toc ol {
  list-style: none;
  margin: 0;
  padding: 0 0 0 18px;
  position: relative;
  counter-reset: toc;
}

.sc-toc ol::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: rgba(11, 31, 51, 0.1);
}

.sc-toc-bar {
  position: absolute;
  left: 0;
  top: 6px;
  width: 2px;
  height: calc(100% - 12px);
  border-radius: 2px;
  background: linear-gradient(var(--sc-blue), #7c3aed);
  transform-origin: top;
  transform: scaleY(var(--p, 0));
}

.sc-toc li {
  counter-increment: toc;
}

.sc-toc ol a {
  display: block;
  padding: 7px 0;
  font-size: 0.93rem;
  line-height: 1.35;
  color: #4b5d70;
  text-decoration: none;
  transition: color 0.25s ease, transform 0.35s var(--sc-ease);
}

.sc-toc ol a::before {
  content: counter(toc, decimal-leading-zero) "  ";
  font-variant-numeric: tabular-nums;
  color: #9aa9b8;
  font-weight: 600;
  font-size: 0.8rem;
}

.sc-toc ol a:hover,
.sc-toc ol a.is-active {
  color: var(--sc-ink);
}

.sc-toc ol a.is-active {
  transform: translateX(4px);
  font-weight: 600;
}

.sc-toc ol a.is-active::before {
  color: var(--sc-blue);
}

.sc-mobile-toc {
  display: block;
  margin: 0 0 8px;
  padding: 18px 20px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(11, 31, 51, 0.08);
}

.sc-mobile-toc summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
}

.sc-mobile-toc summary::-webkit-details-marker {
  display: none;
}

.sc-mobile-toc summary::after {
  content: "+";
  font-size: 1.3rem;
  line-height: 1;
  color: var(--sc-blue);
}

.sc-mobile-toc[open] summary::after {
  content: "\2212";
}

.sc-mobile-toc ol {
  margin: 14px 0 0;
  padding-left: 22px;
  display: grid;
  gap: 8px;
}

.sc-mobile-toc a {
  color: var(--sc-ink);
}

@media (min-width: 1000px) {
  .sc-mobile-toc {
    display: none;
  }
}

.sc-chapter {
  position: relative;
  padding: clamp(48px, 7vw, 88px) 0;
  border-bottom: 1px solid rgba(11, 31, 51, 0.08);
  scroll-margin-top: calc(var(--header) + 16px);
}

.sc-chapter:last-child {
  border-bottom: 0;
}

.sc-chapter-head {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.sc-chapter-n {
  flex: none;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff;
  background: linear-gradient(145deg, var(--sc-blue), #7c3aed);
  box-shadow: 0 14px 30px -12px rgba(37, 99, 235, 0.6);
  font-variant-numeric: tabular-nums;
}

.sc-chapter h2 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  max-width: 20ch;
}

.sc-chapter-kicker {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #66788c;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.sc-prose {
  margin-top: 26px;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #24384d;
  max-width: 44rem;
}

.sc-prose p + p,
.sc-prose p + ul,
.sc-prose ul + p,
.sc-prose p + ol,
.sc-prose ol + p {
  margin-top: 16px;
}

.sc-prose h3 {
  margin-top: 34px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--sc-ink);
}

.sc-prose h3 + p {
  margin-top: 10px;
}

.sc-prose ul,
.sc-prose ol {
  padding-left: 1.3em;
}

.sc-prose li + li {
  margin-top: 8px;
}

.sc-prose strong {
  color: var(--sc-ink);
}

.sc-tip {
  margin-top: 30px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(150deg, #0b1f33, #13355a);
  color: #fff;
  max-width: 44rem;
  box-shadow: 0 30px 60px -36px rgba(11, 31, 51, 0.6);
}

.sc-tip img {
  width: 42px;
  height: 42px;
  border-radius: 11px;
}

.sc-tip b {
  display: block;
  font-size: 1.02rem;
  margin-bottom: 4px;
}

.sc-tip p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.98rem;
  line-height: 1.55;
}

.sc-tip a {
  color: var(--sc-sky);
}

.sc-figure {
  margin: 34px 0 0;
  max-width: 44rem;
}

.sc-figure-row {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  max-width: 44rem;
  margin-top: 34px;
}

.sc-figure-row .sc-phone {
  width: 100%;
}

.sc-figure figcaption,
.sc-figure-row figcaption {
  margin-top: 12px;
  font-size: 0.88rem;
  color: #66788c;
}

.sc-checks {
  list-style: none;
  padding: 0 !important;
  margin: 20px 0 0;
  display: grid;
  gap: 10px;
  max-width: 44rem;
}

.sc-checks li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(11, 31, 51, 0.07);
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 !important;
}

.sc-checks li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 7px;
  border: 2px solid var(--sc-blue);
  background: rgba(37, 99, 235, 0.06);
  transition: background-color 0.3s ease;
}

.sc-checks li.is-in::before,
html:not(.sc-motion) .sc-checks li::before {
  background: var(--sc-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Timeline (the sale week) */
.sc-week {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  max-width: 44rem;
}

@media (min-width: 640px) {
  .sc-week {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.sc-week div {
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(11, 31, 51, 0.07);
}

.sc-week b {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sc-blue);
}

.sc-week strong {
  display: block;
  margin-top: 6px;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.sc-week span {
  display: block;
  margin-top: 6px;
  font-size: 0.9rem;
  color: #4b5d70;
  line-height: 1.45;
}

/* Discount ladder */
.sc-ladder {
  margin-top: 28px;
  display: grid;
  gap: 10px;
  max-width: 44rem;
}

.sc-ladder div {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(11, 31, 51, 0.07);
  font-weight: 600;
  isolation: isolate;
}

.sc-ladder div::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  width: var(--w, 100%);
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.16), rgba(124, 58, 237, 0.12));
  transform-origin: left;
  transition: transform 1.2s var(--sc-ease);
}

.sc-motion .sc-ladder div::before {
  transform: scaleX(0);
}

.sc-motion .sc-ladder.is-in div::before {
  transform: scaleX(1);
}

.sc-ladder span {
  font-weight: 500;
  color: #4b5d70;
  font-size: 0.94rem;
}

/* ---------- Checklist / ideas grid ---------- */

.sc-ideas {
  display: grid;
  gap: 14px;
  margin-top: 56px;
  counter-reset: idea;
}

@media (min-width: 700px) {
  .sc-ideas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .sc-ideas {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.sc-idea {
  counter-increment: idea;
  position: relative;
  padding: 28px 26px 26px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(11, 31, 51, 0.07);
  transition: transform 0.45s var(--sc-ease), box-shadow 0.45s var(--sc-ease), border-color 0.3s ease;
}

.sc-idea:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 30px 60px -36px rgba(11, 31, 51, 0.35);
}

.sc-idea::before {
  content: counter(idea, decimal-leading-zero);
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--sc-blue);
  margin-bottom: 14px;
}

.sc-idea h3 {
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.sc-idea p {
  margin-top: 10px;
  font-size: 0.98rem;
  color: #3a4b5e;
  line-height: 1.55;
}

.sc-idea .sc-tag {
  display: inline-flex;
  margin-top: 16px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(37, 99, 235, 0.09);
  color: var(--sc-blue);
}

/* ---------- Funnel ---------- */

.sc-funnel {
  display: grid;
  gap: 16px;
  margin-top: 56px;
}

@media (min-width: 900px) {
  .sc-funnel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.sc-funnel-col {
  position: relative;
  padding: 34px 30px;
  border-radius: 28px;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sc-funnel-col h3 {
  font-size: 1.6rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.sc-funnel-col > p {
  margin-top: 10px;
  color: var(--sc-text-dim);
}

.sc-funnel-col ul {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.sc-funnel-col li {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
}

.sc-funnel-badge {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-weight: 600;
  background: linear-gradient(145deg, var(--sc-blue), #7c3aed);
}

.sc-funnel-col:nth-child(2) .sc-funnel-badge {
  background: linear-gradient(145deg, #7c3aed, #db2777);
}

.sc-funnel-col:nth-child(3) .sc-funnel-badge {
  background: linear-gradient(145deg, #d97706, #f2b544);
}

/* Orbit: buyer list building */
.sc-orbit {
  position: relative;
  width: min(460px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
}

.sc-orbit-core {
  position: absolute;
  inset: 34%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background: radial-gradient(circle at 30% 25%, #3b82f6, #1e3a8a);
  box-shadow: 0 0 0 12px rgba(37, 99, 235, 0.12), 0 0 0 26px rgba(37, 99, 235, 0.06), 0 30px 60px -20px rgba(37, 99, 235, 0.6);
  color: #fff;
  z-index: 2;
}

.sc-orbit-core strong {
  display: block;
  font-size: clamp(1.6rem, 4.6vw, 2.3rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.sc-orbit-core span {
  display: block;
  font-size: 0.72rem;
  margin-top: 4px;
  opacity: 0.85;
}

.sc-orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(11, 31, 51, 0.16);
  animation: sc-spin 60s linear infinite;
}

.sc-orbit-ring.sc-r2 {
  inset: 14%;
  animation-duration: 42s;
  animation-direction: reverse;
}

.sc-orbit-ring span {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 12px 30px -12px rgba(11, 31, 51, 0.35);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  animation: sc-spin 60s linear infinite reverse;
}

.sc-orbit-ring.sc-r2 span {
  animation-duration: 42s;
  animation-direction: normal;
}

.sc-orbit-ring span i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 0.7rem;
  color: #fff;
  background: var(--sc-blue);
}

@keyframes sc-spin {
  to { transform: rotate(360deg); }
}

/* ---------- FAQ ---------- */

.sc-faq {
  margin-top: 48px;
  display: grid;
  gap: 12px;
}

.sc-faq details {
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(11, 31, 51, 0.08);
  transition: box-shadow 0.35s var(--sc-ease), border-color 0.3s ease;
}

.sc-faq details[open] {
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: 0 24px 50px -34px rgba(11, 31, 51, 0.35);
}

.sc-faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

.sc-faq summary::-webkit-details-marker {
  display: none;
}

.sc-faq summary::after {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform 0.4s var(--sc-ease);
}

.sc-faq details[open] summary::after {
  transform: rotate(45deg);
}

.sc-faq details p {
  padding: 0 24px 22px;
  color: #3a4b5e;
  line-height: 1.65;
  max-width: 46rem;
}

/* ---------- Closing CTA ---------- */

.sc-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  background: var(--sc-night);
  color: #fff;
  padding: clamp(90px, 13vw, 170px) 0;
}

.sc-cta::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1200px;
  height: 1200px;
  transform: translate(-50%, -38%);
  z-index: -1;
  border-radius: 50%;
  background: conic-gradient(from 180deg, #2563eb, #7c3aed, #db2777, #f2b544, #2563eb);
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
  animation: sc-spin 30s linear infinite;
}

.sc-cta h2 {
  margin: 0 auto;
  max-width: 14ch;
}

.sc-cta .sc-lede {
  margin-left: auto;
  margin-right: auto;
}

.sc-cta .sc-actions {
  justify-content: center;
}

.sc-cta-fine {
  margin-top: 22px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.sc-cta-fine a {
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- Related links ---------- */

.sc-related {
  display: grid;
  gap: 14px;
  margin-top: 40px;
}

@media (min-width: 760px) {
  .sc-related {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.sc-related a {
  display: block;
  padding: 24px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(11, 31, 51, 0.08);
  color: var(--sc-ink);
  text-decoration: none;
  transition: transform 0.4s var(--sc-ease), border-color 0.3s ease, box-shadow 0.4s var(--sc-ease);
}

.sc-related a:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 24px 50px -32px rgba(11, 31, 51, 0.4);
}

.sc-related b {
  display: block;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.sc-related span {
  display: block;
  margin-top: 6px;
  font-size: 0.94rem;
  color: #4b5d70;
}

/* Breadcrumb */
.sc-crumbs {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 22px;
}

.sc-crumbs a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.sc-crumbs a:hover {
  color: #fff;
}

/* Scroll progress bar on the guide */
.sc-readbar {
  position: fixed;
  left: 0;
  top: 0;
  height: 3px;
  width: 100%;
  z-index: 60;
  background: linear-gradient(90deg, var(--sc-blue), #7c3aed, #f2b544);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
  pointer-events: none;
}

/* Small screens */
@media (max-width: 640px) {
  .sc-stage {
    height: 520px;
  }
  .sc-stage .sc-phone {
    width: 230px;
  }
  .sc-stage .sc-phone.sc-left,
  .sc-stage .sc-phone.sc-right {
    width: 170px;
    top: 14%;
  }
  .sc-stage .sc-phone.sc-left {
    left: 12%;
  }
  .sc-stage .sc-phone.sc-right {
    left: 88%;
  }
  .sc-chip {
    font-size: 0.8rem;
    padding: 9px 12px;
  }
  .sc-chip i {
    width: 26px;
    height: 26px;
  }
  .sc-hide-sm {
    display: none !important;
  }
  .sc-btn {
    width: 100%;
  }
  .sc-actions {
    width: 100%;
  }
  .sc-chapter-head {
    flex-direction: column;
    gap: 14px;
  }
  .sc-chapter-n {
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }
}

/* ---------- Reduced motion: everything visible, nothing moving ---------- */

@media (prefers-reduced-motion: reduce) {
  .sc *,
  .sc *::before,
  .sc *::after {
    animation: none !important;
    transition: none !important;
  }
  .sc [data-reveal],
  .sc .sc-chip,
  .sc .sc-words .sc-w,
  .sc .sc-fade-in,
  .sc .sc-register li {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .sc .sc-statement .sc-s {
    color: inherit !important;
  }
  .sc .sc-printer-out img {
    transform: translateY(6%) !important;
  }
  .sc .sc-ladder div::before {
    transform: none !important;
  }
}

/* ---------- Guide hero: the route of a sale ---------- */

.sc-route {
  list-style: none;
  margin: 48px auto 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 980px;
  counter-reset: none;
}

.sc-route li {
  position: relative;
}

.sc-route a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: 999px;
  border: 1px solid var(--sc-glass-line);
  background: var(--sc-glass);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color 0.25s ease, transform 0.35s var(--sc-ease), border-color 0.25s ease;
}

.sc-route a:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  color: #fff;
}

.sc-route b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.72rem;
  background: linear-gradient(145deg, var(--sc-blue), #7c3aed);
  font-variant-numeric: tabular-nums;
}

.sc-motion .sc-route li {
  opacity: 0;
  animation: sc-pop 0.8s var(--sc-ease-spring) forwards;
  animation-delay: var(--d, 1s);
}

.sc-toc-list {
  position: relative;
}

@media (prefers-reduced-motion: reduce) {
  .sc .sc-route li {
    opacity: 1 !important;
  }
}
.sc-toc-bar { z-index: 1; }

/* ---------- Marketing page: split hero, website and email mocks ---------- */

.sc-hero-split {
  display: grid;
  gap: 48px;
  align-items: center;
  padding-bottom: clamp(70px, 9vw, 120px);
}

.sc-hero-split .sc-hero-copy {
  text-align: left;
}

.sc-hero-split .sc-hero-copy h1 {
  margin: 0;
}

.sc-hero-split .sc-hero-copy .sc-lede {
  margin-left: 0;
}

.sc-hero-split .sc-hero-copy .sc-actions {
  justify-content: flex-start;
}

@media (min-width: 980px) {
  .sc-hero-split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 40px;
  }
}

.sc-hero .sc-orbit-ring {
  border-color: rgba(255, 255, 255, 0.18);
}

.sc-hero .sc-orbit-ring span {
  background: rgba(255, 255, 255, 0.96);
  color: var(--sc-ink);
}

.sc-motion .sc-orbit {
  animation: sc-orbit-in 1.4s var(--sc-ease) both;
  animation-delay: 0.5s;
}

@keyframes sc-orbit-in {
  from { opacity: 0; transform: scale(0.85) rotate(-12deg); }
  to { opacity: 1; transform: none; }
}

.sc-site {
  background: #fff;
  color: var(--sc-ink);
  font-size: 0.8rem;
}

.sc-site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(11, 31, 51, 0.07);
}

.sc-site-nav b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.sc-site-nav span {
  display: flex;
  gap: 14px;
  color: #4b5d70;
}

.sc-site-hero {
  position: relative;
  min-height: 190px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  color: #fff;
  overflow: hidden;
}

.sc-site-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sc-site-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 17, 29, 0.8), transparent 70%);
}

.sc-site-hero div {
  position: relative;
  z-index: 1;
}

.sc-site-hero strong {
  display: block;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.sc-site-hero em {
  display: inline-flex;
  margin-top: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--sc-ink);
  font-style: normal;
  font-weight: 600;
}

.sc-site-sales {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 18px 18px;
}

.sc-site-sales div {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(11, 31, 51, 0.08);
}

.sc-site-sales img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.sc-site-sales p {
  padding: 7px 8px;
  font-weight: 600;
  line-height: 1.3;
  font-size: 0.72rem;
}

.sc-site-sales p small {
  display: block;
  font-weight: 500;
  color: #66788c;
}

.sc-mail {
  width: min(440px, 100%);
  margin: 0 auto;
  border-radius: 26px;
  background: #fff;
  color: var(--sc-ink);
  overflow: hidden;
  box-shadow: 0 50px 100px -40px rgba(11, 31, 51, 0.5), 0 0 0 1px rgba(11, 31, 51, 0.06);
}

.sc-mail-head {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(11, 31, 51, 0.07);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.sc-mail-head i {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(145deg, #0b1f33, #2563eb);
}

.sc-mail-head b {
  display: block;
  font-size: 0.95rem;
}

.sc-mail-head span {
  display: block;
  font-size: 0.82rem;
  color: #66788c;
}

.sc-mail-body {
  padding: 20px;
}

.sc-mail-body strong {
  display: block;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.sc-mail-body p {
  margin-top: 8px;
  font-size: 0.92rem;
  color: #4b5d70;
}

.sc-mail-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  height: 200px;
}

.sc-mail-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.sc-mail-grid img:first-child {
  grid-row: span 2;
}

.sc-mail-cta {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.sc-mail-cta span {
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--sc-blue);
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
}

.sc-mail-cta small {
  color: #8a99a8;
  font-size: 0.75rem;
}

.sc-quote {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.sc-quote blockquote {
  margin: 0;
  font-size: clamp(1.6rem, 3.6vw, 2.7rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  font-weight: 600;
  text-wrap: balance;
}

.sc-quote figcaption {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.sc-quote figcaption img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
}

.sc-quote figcaption b {
  display: block;
}

.sc-quote figcaption span {
  display: block;
  color: var(--sc-text-dim);
  font-size: 0.92rem;
}

.sc-white .sc-quote figcaption span {
  color: #4b5d70;
}

/* Settlement row in the guide */
.sc-settle-row {
  display: grid;
  gap: 24px;
  align-items: center;
  margin-top: 34px;
  max-width: 44rem;
}

.sc-settle-row .sc-phone {
  width: min(240px, 70%);
}

@media (min-width: 640px) {
  .sc-settle-row {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    gap: 36px;
  }
  .sc-settle-row .sc-phone {
    width: 100%;
  }
}

/* Big numbers win over card paragraph sizes */
.sc .sc-big-num {
  margin-top: 0;
  font-size: clamp(3.4rem, 9vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 600;
  color: inherit;
}

.sc-dark .sc-big-num span,
.sc-ink-bg .sc-big-num span {
  background: linear-gradient(100deg, #7cb6ff 0%, #c4b5fd 50%, #f2b544 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =====================================================================
   Designed app screens (.ui). Built in HTML and CSS so they stay sharp,
   carry custom content and animate. Sized with container units so every
   screen scales with the phone frame it sits in.
   ===================================================================== */

.sc-phone-screen {
  container-type: inline-size;
}

.ui {
  --ui-blue: #0a7cff;
  --ui-green: #22c55e;
  --ui-orange: #f59e0b;
  --ui-red: #ef4444;
  --ui-ink: #0b0d12;
  --ui-dim: #6b7280;
  --ui-line: rgba(15, 23, 42, 0.08);
  --ui-card: #ffffff;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f2f3f7;
  color: var(--ui-ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 4.1cqw;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}

.ui * {
  box-sizing: border-box;
}

.ui b,
.ui strong {
  font-weight: 650;
}

.ui-status {
  flex: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15em 1.9em 0.4em;
  font-weight: 650;
  font-size: 0.95em;
}

.ui-status i {
  display: inline-flex;
  gap: 0.35em;
  align-items: center;
}

.ui-status i::before {
  content: "";
  width: 1.15em;
  height: 0.72em;
  background: linear-gradient(90deg, currentColor 0 18%, transparent 18% 27%, currentColor 27% 45%, transparent 45% 54%, currentColor 54% 72%, transparent 72% 81%, currentColor 81%);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.ui-status i::after {
  content: "";
  width: 1.6em;
  height: 0.78em;
  border-radius: 0.25em;
  border: 0.12em solid currentColor;
  background: linear-gradient(90deg, currentColor 0 78%, transparent 78%);
  background-clip: content-box;
  padding: 0.08em;
}

.ui-body {
  flex: 1;
  min-height: 0;
  padding: 0.3em 1.15em 0;
  overflow: hidden;
  position: relative;
}

.ui-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5em;
}

.ui-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.45em 0.85em;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0.2em 0.8em rgba(15, 23, 42, 0.07);
  font-weight: 600;
  font-size: 0.85em;
}

.ui-pill.is-blue {
  background: rgba(10, 124, 255, 0.12);
  color: var(--ui-blue);
  box-shadow: none;
}

.ui-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  padding: 0.6em 0.9em;
  border-radius: 0.75em;
  font-weight: 600;
  font-size: 0.85em;
  color: #fff;
  background: var(--ui-blue);
  white-space: nowrap;
}

.ui-btn.is-green { background: var(--ui-green); }
.ui-btn.is-red { background: var(--ui-red); }
.ui-btn.is-wide { width: 100%; padding: 0.85em; border-radius: 0.9em; font-size: 0.95em; }
.ui-btn.is-ghost { background: #fff; color: var(--ui-ink); box-shadow: 0 0.15em 0.6em rgba(15, 23, 42, 0.07); }

.ui-title {
  font-size: 2.05em;
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0.15em 0 0.35em;
}

.ui-sub {
  color: var(--ui-dim);
  font-size: 0.82em;
}

.ui-search {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.55em 0.8em;
  border-radius: 0.8em;
  background: rgba(118, 118, 128, 0.12);
  color: #8a8f98;
  font-size: 0.85em;
  margin-bottom: 0.8em;
}

.ui-search::before {
  content: "";
  width: 0.85em;
  height: 0.85em;
  border-radius: 50%;
  border: 0.14em solid currentColor;
  flex: none;
}

.ui-label {
  font-size: 0.68em;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ui-dim);
  margin: 0.6em 0 0.5em;
}

.ui-card {
  background: var(--ui-card);
  border-radius: 1em;
  box-shadow: 0 0.15em 0.6em rgba(15, 23, 42, 0.05);
}

.ui-thumb {
  flex: none;
  width: 2.9em;
  height: 2.9em;
  border-radius: 0.6em;
  object-fit: cover;
  background: #e5e7eb;
}

/* Tab bar */
.ui-tabs {
  flex: none;
  margin: 0.4em 0.8em 1.1em;
  padding: 0.45em 0.3em;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-radius: 1.8em;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0.4em 1.4em rgba(15, 23, 42, 0.12);
  font-size: 0.6em;
  font-weight: 600;
  text-align: center;
  color: #111;
}

.ui-tabs span {
  display: grid;
  justify-items: center;
  gap: 0.25em;
  padding: 0.35em 0;
  border-radius: 1.5em;
}

.ui-tabs svg {
  width: 2em;
  height: 2em;
}

.ui-tabs .is-on {
  background: rgba(10, 124, 255, 0.1);
  color: var(--ui-blue);
}

.ui-fab {
  position: absolute;
  right: 1em;
  bottom: 0.8em;
  width: 3.2em;
  height: 3.2em;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.1em;
  background: var(--ui-blue);
  box-shadow: 0 0.5em 1.2em rgba(10, 124, 255, 0.45);
}

/* Sales list */
.ui-sale {
  position: relative;
  height: 8.6em;
  border-radius: 1em;
  overflow: hidden;
  color: #fff;
  margin-bottom: 0.7em;
  padding: 0.8em 0.9em;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ui-sale > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.ui-sale::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.15) 45%, rgba(0, 0, 0, 0.65));
}

.ui-sale > div {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5em;
}

.ui-sale.is-current {
  outline: 0.18em solid var(--ui-blue);
}

.ui-sale strong {
  display: block;
  font-size: 1.08em;
}

.ui-sale small {
  display: block;
  font-size: 0.75em;
  opacity: 0.9;
}

.ui-sale em {
  font-style: normal;
  font-size: 0.6em;
  font-weight: 700;
  padding: 0.25em 0.6em;
  border-radius: 999px;
  background: var(--ui-blue);
  vertical-align: middle;
  margin-left: 0.3em;
}

.ui-sale .ui-count {
  text-align: right;
  font-size: 1.6em;
  font-weight: 750;
  line-height: 1;
}

.ui-sale .ui-count small {
  font-size: 0.4em;
  font-weight: 500;
}

/* Bulk upload */
.ui-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5em;
  margin: 0.6em 0 0.7em;
}

.ui-item {
  display: flex;
  gap: 0.65em;
  padding: 0.6em;
  margin-bottom: 0.55em;
}

.ui-item .ui-thumb {
  width: 4.3em;
  height: 4.3em;
}

.ui-item-main {
  flex: 1;
  min-width: 0;
}

.ui-item-main strong {
  display: block;
  font-size: 0.86em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ui-item-row {
  display: flex;
  align-items: center;
  gap: 0.4em;
  margin-top: 0.35em;
}

.ui-price {
  font-size: 1.25em;
  font-weight: 650;
  color: var(--ui-blue);
  padding: 0.12em 0.45em;
  border: 0.08em solid var(--ui-line);
  border-radius: 0.45em;
  font-variant-numeric: tabular-nums;
}

.ui-iq {
  font-size: 0.6em;
  font-weight: 700;
  padding: 0.3em 0.55em;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
}

.ui-range {
  margin-top: 0.45em;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.45em;
  font-size: 0.66em;
  color: var(--ui-dim);
  font-variant-numeric: tabular-nums;
}

.ui-track {
  position: relative;
  height: 0.38em;
  border-radius: 1em;
  background: #e5e7eb;
}

.ui-track b {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--v, 50%);
  border-radius: 1em;
  background: var(--ui-blue);
}

.ui-track b::after {
  content: "";
  position: absolute;
  right: -0.65em;
  top: 50%;
  width: 1.3em;
  height: 1.3em;
  margin-top: -0.65em;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0.1em 0.4em rgba(0, 0, 0, 0.25);
}

/* Label print */
.ui-hero-photo {
  position: relative;
  border-radius: 1.1em;
  overflow: hidden;
  aspect-ratio: 1 / 0.82;
  background: #e5e7eb;
}

.ui-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ui-hero-photo span {
  position: absolute;
  left: 0.7em;
  bottom: 0.7em;
  padding: 0.35em 0.7em;
  border-radius: 999px;
  font-size: 0.7em;
  font-weight: 650;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
}

.ui-detail {
  padding: 0.8em 0.2em 0;
}

.ui-detail strong {
  display: block;
  font-size: 1.25em;
  letter-spacing: -0.02em;
}

.ui-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35em;
  margin-top: 0.45em;
}

.ui-chips span {
  font-size: 0.66em;
  font-weight: 600;
  padding: 0.3em 0.65em;
  border-radius: 999px;
  background: #fff;
  border: 0.08em solid var(--ui-line);
}

.ui-bigprice {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 0.6em;
}

.ui-bigprice b {
  font-size: 2.1em;
  color: var(--ui-blue);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.ui-printer {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-top: 0.75em;
  padding: 0.65em 0.75em;
  font-size: 0.82em;
}

.ui-printer i {
  flex: none;
  width: 0.65em;
  height: 0.65em;
  border-radius: 50%;
  background: var(--ui-green);
  box-shadow: 0 0 0 0.3em rgba(34, 197, 94, 0.18);
}

.ui-printer small {
  display: block;
  color: var(--ui-dim);
  font-size: 0.85em;
}

.ui-print-btn {
  position: relative;
  margin-top: 0.7em;
  overflow: hidden;
}

.ui-print-btn .ui-btn {
  position: relative;
  width: 100%;
  padding: 0.85em;
  font-size: 0.95em;
  border-radius: 0.9em;
}

.ui-print-btn .ui-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.28);
  transform-origin: left;
  transform: scaleX(0);
}

.ui-print-btn .ui-p2,
.ui-print-btn .ui-p3 {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.ui-print-btn .ui-p3 {
  background: var(--ui-green);
}

.ui-label-out {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 0.9em;
  transform: translateY(160%);
  border-radius: 0.8em;
  background: #fff;
  box-shadow: 0 1em 2em rgba(15, 23, 42, 0.25);
  padding: 0.7em 0.8em 0.6em 2.2em;
  font-family: Arial, Helvetica, sans-serif;
  color: #000;
}

.ui-label-out::before {
  content: attr(data-room);
  position: absolute;
  left: 0.2em;
  top: 50%;
  width: 1.6em;
  transform: translateY(-50%) rotate(-90deg);
  font-size: 0.55em;
  font-weight: 700;
  white-space: nowrap;
  text-align: center;
}

.ui-label-out strong {
  display: block;
  font-size: 0.85em;
}

.ui-label-out b {
  display: block;
  font-size: 1.5em;
}

.ui-label-out i {
  display: block;
  height: 1.8em;
  margin-top: 0.2em;
  background: repeating-linear-gradient(90deg, #000 0 2px, transparent 2px 4px, #000 4px 7px, transparent 7px 8px, #000 8px 9px, transparent 9px 12px);
}

/* Check-in */
.ui-days {
  display: flex;
  gap: 0.45em;
  margin: 0.2em -1.15em 0.65em;
  padding: 0 1.15em;
  overflow: hidden;
}

.ui-days span {
  flex: none;
  width: 5.3em;
  padding: 0.5em 0;
  border-radius: 0.85em;
  background: #fff;
  text-align: center;
  font-size: 0.8em;
}

.ui-days span small {
  display: block;
  font-size: 0.7em;
  color: var(--ui-dim);
  letter-spacing: 0.05em;
}

.ui-days span b {
  display: block;
  font-size: 1.15em;
}

.ui-days .is-on {
  background: var(--ui-blue);
  color: #fff;
}

.ui-days .is-on small {
  color: rgba(255, 255, 255, 0.8);
}

.ui-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4em;
  margin-bottom: 0.65em;
}

.ui-stats div {
  padding: 0.5em 0.2em;
  border-radius: 0.85em;
  background: #fff;
  text-align: center;
}

.ui-stats i {
  display: block;
  width: 1.2em;
  height: 1.2em;
  margin: 0 auto 0.2em;
  border-radius: 50%;
  background: var(--c, var(--ui-blue));
}

.ui-stats b {
  display: block;
  font-size: 1.35em;
  font-variant-numeric: tabular-nums;
}

.ui-stats small {
  font-size: 0.62em;
  color: var(--ui-dim);
}

.ui-queue {
  display: grid;
  gap: 0.4em;
}

.ui-guest {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.5em 0.6em;
  background: #fff;
  border-radius: 0.85em;
}

.ui-guest > i {
  flex: none;
  width: 2.3em;
  height: 2.3em;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 700;
  font-size: 0.8em;
  color: #c2410c;
  background: #ffedd5;
}

.ui-guest.is-in > i {
  color: #15803d;
  background: #dcfce7;
}

.ui-guest div {
  flex: 1;
  min-width: 0;
}

.ui-guest strong {
  display: block;
  font-size: 0.85em;
}

.ui-guest small {
  display: block;
  font-size: 0.68em;
  color: var(--ui-dim);
}

.ui-tag {
  flex: none;
  position: relative;
  font-size: 0.66em;
  font-weight: 650;
  padding: 0.3em 0.7em;
  border-radius: 999px;
  color: #c2410c;
  background: #ffedd5;
}

.ui-guest.is-in .ui-tag,
.ui-tag.is-in {
  color: #15803d;
  background: #dcfce7;
}

.ui-flip .ui-tag-in,
.ui-flip .ui-tag-out {
  transition: opacity 0.4s ease;
}

.ui-flip .ui-tag-in {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: inherit;
  color: #15803d;
  background: #dcfce7;
  opacity: 0;
}

/* Cart */
.ui-cart-row {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.5em 0;
  border-bottom: 0.08em solid var(--ui-line);
}

.ui-cart-row div {
  flex: 1;
  min-width: 0;
}

.ui-cart-row strong {
  display: block;
  font-size: 0.84em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ui-cart-row small {
  display: inline-block;
  margin-top: 0.15em;
  font-size: 0.62em;
  color: var(--ui-blue);
  background: rgba(10, 124, 255, 0.1);
  padding: 0.15em 0.45em;
  border-radius: 0.35em;
}

.ui-cart-row b {
  font-size: 0.9em;
  font-variant-numeric: tabular-nums;
}

.ui-summary {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.8em 1.15em 0.6em;
  background: #fff;
  border-radius: 1.2em 1.2em 0 0;
  box-shadow: 0 -0.4em 1.4em rgba(15, 23, 42, 0.06);
  font-size: 0.9em;
}

.ui-summary p {
  display: flex;
  justify-content: space-between;
  margin: 0 0 0.35em !important;
  font-variant-numeric: tabular-nums;
}

.ui-summary p.is-total {
  font-weight: 700;
  font-size: 1.1em;
}

.ui-summary .ui-btn {
  margin-top: 0.3em;
}

/* Payment */
.ui-amount {
  text-align: center;
  margin: 0.4em 0 0.8em;
}

.ui-amount small {
  display: block;
  color: var(--ui-dim);
  font-size: 0.8em;
}

.ui-amount b {
  display: block;
  font-size: 2.5em;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.ui-methods {
  display: grid;
  gap: 0.45em;
}

.ui-methods span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.65em;
  border-radius: 0.8em;
  background: #fff;
  border: 0.08em solid var(--ui-line);
  font-weight: 700;
  font-size: 0.92em;
}

.ui-methods .m-tap {
  color: #fff;
  border: 0;
  background: linear-gradient(90deg, #635bff, #4f46e5);
}

.ui-methods .m-venmo { color: #fff; border: 0; background: #3d95ce; }
.ui-methods .m-zelle { color: #fff; border: 0; background: #6d1ed4; }
.ui-methods .m-cash { color: #16a34a; }
.ui-methods .m-check { color: #ea580c; }
.ui-methods .m-split { color: #2563eb; }
.ui-methods .m-paypal { color: #1e3a8a; }

.ui-done {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.6em;
  text-align: center;
  background: rgba(242, 243, 247, 0.97);
  opacity: 0;
  pointer-events: none;
}

.ui-done i {
  width: 4.4em;
  height: 4.4em;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto;
  background: var(--ui-green);
  box-shadow: 0 0.6em 1.6em rgba(34, 197, 94, 0.4);
}

.ui-done i svg {
  width: 2.2em;
  height: 2.2em;
}

.ui-done strong {
  font-size: 1.3em;
}

.ui-done b {
  font-size: 2em;
  letter-spacing: -0.03em;
}

/* Report */
.ui-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45em;
  margin-bottom: 0.55em;
}

.ui-kpis div {
  padding: 0.65em 0.7em;
  border-radius: 0.9em;
  background: #fff;
}

.ui-kpis small {
  display: block;
  font-size: 0.66em;
  color: var(--ui-dim);
}

.ui-kpis b {
  display: block;
  font-size: 1.25em;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.ui-ring {
  display: flex;
  align-items: center;
  gap: 0.9em;
  padding: 0.7em 0.8em;
  margin-bottom: 0.55em;
}

.ui-ring svg {
  flex: none;
  width: 4.6em;
  height: 4.6em;
  transform: rotate(-90deg);
}

.ui-ring circle {
  fill: none;
  stroke-width: 9;
}

.ui-ring .bg {
  stroke: #e5e7eb;
}

.ui-ring .fg {
  stroke: var(--ui-blue);
  stroke-linecap: round;
  stroke-dasharray: 251.3;
  stroke-dashoffset: var(--off, 103);
}

.ui-ring b {
  display: block;
  font-size: 1.5em;
  font-variant-numeric: tabular-nums;
}

.ui-ring small {
  font-size: 0.72em;
  color: var(--ui-dim);
}

.ui-bars {
  padding: 0.7em 0.8em;
}

.ui-bars p {
  margin: 0 0 0.5em !important;
  font-size: 0.75em;
}

.ui-bars p span {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.25em;
  font-variant-numeric: tabular-nums;
}

.ui-bars p i {
  display: block;
  height: 0.5em;
  border-radius: 1em;
  background: #eef2f7;
  overflow: hidden;
}

.ui-bars p i::after {
  content: "";
  display: block;
  height: 100%;
  width: var(--w, 50%);
  border-radius: inherit;
  background: var(--c, var(--ui-blue));
  transform-origin: left;
}

/* Add check-in form */
.ui-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.7em;
  font-size: 0.88em;
}

.ui-nav strong {
  font-size: 1.05em;
}

.ui-nav span {
  color: var(--ui-blue);
}

.ui-field {
  padding: 0.65em 0.8em;
  border-bottom: 0.08em solid var(--ui-line);
  font-size: 0.88em;
}

.ui-field small {
  display: block;
  font-size: 0.72em;
  color: var(--ui-dim);
  margin-bottom: 0.1em;
}

.ui-type {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: bottom;
  max-width: 100%;
}

.ui-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8em;
  padding: 0.75em 0.8em;
  margin-top: 0.6em;
  font-size: 0.85em;
}

.ui-toggle-row small {
  display: block;
  color: var(--ui-dim);
  font-size: 0.8em;
}

.ui-toggle {
  flex: none;
  position: relative;
  width: 2.9em;
  height: 1.75em;
  border-radius: 999px;
  background: var(--ui-green);
}

.ui-toggle::after {
  content: "";
  position: absolute;
  top: 0.15em;
  left: 1.3em;
  width: 1.45em;
  height: 1.45em;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0.1em 0.3em rgba(0, 0, 0, 0.25);
}

/* Receipt */
.ui-receipt-top {
  text-align: center;
  padding: 1em 0 0.8em;
}

.ui-check {
  width: 3.6em;
  height: 3.6em;
  margin: 0 auto 0.5em;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ui-green);
  box-shadow: 0 0.5em 1.4em rgba(34, 197, 94, 0.35);
}

.ui-check svg {
  width: 1.9em;
  height: 1.9em;
}

.ui-check path {
  stroke-dasharray: 30;
  stroke-dashoffset: 0;
}

.ui-receipt-top strong {
  display: block;
  font-size: 1.2em;
}

.ui-receipt-top b {
  display: block;
  font-size: 2.2em;
  letter-spacing: -0.03em;
}

.ui-linked {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.65em 0.75em;
  margin-bottom: 0.6em;
  font-size: 0.85em;
}

.ui-linked i {
  flex: none;
  width: 2.3em;
  height: 2.3em;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, #0a7cff, #7c3aed);
}

.ui-linked small {
  display: block;
  color: var(--ui-dim);
  font-size: 0.8em;
}

.ui-stack {
  display: grid;
  gap: 0.45em;
}

.ui-toast {
  position: absolute;
  left: 1.15em;
  right: 1.15em;
  bottom: 0.6em;
  padding: 0.7em 0.9em;
  border-radius: 0.9em;
  background: #111827;
  color: #fff;
  font-size: 0.8em;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5em;
  opacity: 0;
}

.ui-toast::before {
  content: "\2713";
  color: var(--ui-green);
  font-weight: 800;
}

/* Contacts */
.ui-filters {
  display: flex;
  gap: 0.35em;
  margin-bottom: 0.65em;
}

.ui-filters span {
  font-size: 0.68em;
  font-weight: 650;
  padding: 0.4em 0.7em;
  border-radius: 999px;
  background: #fff;
  white-space: nowrap;
}

.ui-filters .is-on {
  background: var(--ui-ink);
  color: #fff;
}

.ui-contact {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.55em 0;
  border-bottom: 0.08em solid var(--ui-line);
}

.ui-contact > i {
  flex: none;
  width: 2.3em;
  height: 2.3em;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 700;
  font-size: 0.8em;
  color: #fff;
  background: var(--c, #64748b);
}

.ui-contact div {
  flex: 1;
  min-width: 0;
}

.ui-contact strong {
  display: block;
  font-size: 0.85em;
}

.ui-contact small {
  font-size: 0.6em;
  font-weight: 650;
  padding: 0.12em 0.45em;
  border-radius: 0.35em;
  margin-right: 0.25em;
  color: #1d4ed8;
  background: #dbeafe;
}

.ui-contact small.is-r { color: #15803d; background: #dcfce7; }
.ui-contact small.is-w { color: #7c3aed; background: #ede9fe; }

.ui-contact b {
  font-size: 0.7em;
  color: var(--ui-dim);
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Screen motion. Only with html.sc-motion and a live screen. ---------- */

.sc-motion .ui.is-live .ui-in {
  animation: ui-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 120ms + 150ms);
}

@keyframes ui-in {
  from { opacity: 0; transform: translate3d(0, 0.9em, 0); }
  to { opacity: 1; transform: none; }
}

.sc-motion .ui.is-live .ui-slide {
  animation: ui-slide 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 650ms + 300ms);
}

@keyframes ui-slide {
  from { opacity: 0; transform: translate3d(-1.2em, 0, 0); background-color: rgba(10, 124, 255, 0.16); }
  60% { background-color: rgba(10, 124, 255, 0.12); }
  to { opacity: 1; transform: none; background-color: transparent; }
}

.sc-motion .ui.is-live .ui-track b {
  animation: ui-grow 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 120ms + 500ms);
}

@keyframes ui-grow {
  from { width: 8%; }
}

.sc-motion .ui.is-live .ui-bars p i::after {
  animation: ui-bar 1.3s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 140ms + 400ms);
}

@keyframes ui-bar {
  from { transform: scaleX(0); }
}

.sc-motion .ui.is-live .ui-ring .fg {
  animation: ui-ring 1.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.3s;
}

@keyframes ui-ring {
  from { stroke-dashoffset: 251.3; }
}

/* Label print loop */
.sc-motion .ui.is-live .ui-print-btn .ui-btn::before { animation: ui-fill 6s linear infinite; }
.sc-motion .ui.is-live .ui-print-btn .ui-p2 { animation: ui-p2 6s linear infinite; }
.sc-motion .ui.is-live .ui-print-btn .ui-p3 { animation: ui-p3 6s linear infinite; }
.sc-motion .ui.is-live .ui-label-out { animation: ui-label 6s cubic-bezier(0.22, 1, 0.36, 1) infinite; }

@keyframes ui-fill {
  0%, 18% { transform: scaleX(0); }
  45% { transform: scaleX(1); }
  46%, 100% { transform: scaleX(0); }
}

@keyframes ui-p2 {
  0%, 17% { opacity: 0; }
  18%, 45% { opacity: 1; }
  46%, 100% { opacity: 0; }
}

@keyframes ui-p3 {
  0%, 45% { opacity: 0; }
  46%, 88% { opacity: 1; }
  92%, 100% { opacity: 0; }
}

@keyframes ui-label {
  0%, 40% { transform: translateY(160%); opacity: 0; }
  42% { opacity: 1; }
  58%, 86% { transform: translateY(0) rotate(-2deg); opacity: 1; }
  94%, 100% { transform: translateY(0) rotate(-2deg); opacity: 0; }
}

/* Check-in: a pending shopper arrives */
.sc-motion .ui.is-live .ui-flip .ui-tag-in { animation: ui-flip 7s ease infinite; }
.sc-motion .ui.is-live .ui-flip > i { animation: ui-flip-i 7s ease infinite; }

@keyframes ui-flip {
  0%, 35% { opacity: 0; }
  40%, 92% { opacity: 1; }
  97%, 100% { opacity: 0; }
}

@keyframes ui-flip-i {
  0%, 35% { color: #c2410c; background: #ffedd5; }
  40%, 92% { color: #15803d; background: #dcfce7; }
  97%, 100% { color: #c2410c; background: #ffedd5; }
}

.sc-motion .ui.is-live .ui-new {
  animation: ui-new 7s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

@keyframes ui-new {
  0%, 8% { opacity: 0; transform: translate3d(0, -0.8em, 0) scale(0.96); }
  14%, 92% { opacity: 1; transform: none; }
  100% { opacity: 1; }
}

/* Payment: Tap to Pay, then done */
.sc-motion .ui.is-live .m-tap { animation: ui-pulse 7s ease infinite; }
.sc-motion .ui.is-live .ui-done { animation: ui-done 7s ease infinite; }

@keyframes ui-pulse {
  0%, 10% { box-shadow: 0 0 0 0 rgba(99, 91, 255, 0); }
  20% { box-shadow: 0 0 0 0.5em rgba(99, 91, 255, 0.3); }
  30% { box-shadow: 0 0 0 0 rgba(99, 91, 255, 0); }
  40% { box-shadow: 0 0 0 0.5em rgba(99, 91, 255, 0.3); }
  50%, 100% { box-shadow: 0 0 0 0 rgba(99, 91, 255, 0); }
}

@keyframes ui-done {
  0%, 50% { opacity: 0; }
  56%, 90% { opacity: 1; }
  96%, 100% { opacity: 0; }
}

/* Add check-in: typing and opt-in */
.sc-motion .ui.is-live .ui-type {
  animation: ui-type 1.2s steps(16, end) both;
  animation-delay: calc(var(--i, 0) * 1.1s + 0.4s);
}

@keyframes ui-type {
  from { max-width: 0; }
  to { max-width: 100%; }
}

.sc-motion .ui.is-live .ui-toggle {
  animation: ui-toggle-bg 0.4s ease both;
  animation-delay: 3.8s;
}

.sc-motion .ui.is-live .ui-toggle::after {
  animation: ui-toggle-knob 0.4s ease both;
  animation-delay: 3.8s;
}

@keyframes ui-toggle-bg {
  from { background: #d1d5db; }
}

@keyframes ui-toggle-knob {
  from { left: 0.15em; }
}

/* Receipt sent */
.sc-motion .ui.is-live .ui-check path {
  animation: ui-draw 0.7s ease both;
  animation-delay: 0.4s;
}

@keyframes ui-draw {
  from { stroke-dashoffset: 30; }
}

.sc-motion .ui.is-live .ui-toast {
  animation: ui-toast 6s ease infinite;
  animation-delay: 1.6s;
}

@keyframes ui-toast {
  0% { opacity: 0; transform: translateY(1em); }
  8%, 70% { opacity: 1; transform: none; }
  80%, 100% { opacity: 0; transform: translateY(1em); }
}

/* Without motion, the final state shows */
html:not(.sc-motion) .ui-label-out {
  transform: rotate(-2deg);
}

html:not(.sc-motion) .ui-print-btn .ui-p3 {
  opacity: 1;
}

/* Story device: stack the screens and cross-fade */
@media (min-width: 900px) {
  .sc-story-device .sc-phone-screen > .ui {
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.7s var(--sc-ease), transform 1.2s var(--sc-ease);
  }

  .sc-story-device .sc-phone-screen > .ui.is-on {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ui *,
  .ui *::before,
  .ui *::after {
    animation: none !important;
  }
  .ui .ui-label-out {
    transform: rotate(-2deg) !important;
  }
  .ui .ui-print-btn .ui-p3 {
    opacity: 1 !important;
  }
}

.ui-status { padding-top: 1.45em; }
.ui-btn.is-navy { background: #0b1f33; }
.ui-btn.is-gray { background: #e5e7eb; color: var(--ui-ink); }
.ui-methods .m-square { color: #111; }
.ui-receipt-top { padding: 0.9em 0.8em; }
.ui-receipt-top .ui-check { width: 3em; height: 3em; }

/* Numbers that tick over when a shopper arrives */
.ui-tick {
  position: relative;
  display: block;
  height: 1.25em;
  overflow: hidden;
}
.ui-tick span {
  display: block;
  line-height: 1.25em;
}
.sc-motion .ui.is-live .ui-tick span { animation: ui-tick 7s cubic-bezier(0.22, 1, 0.36, 1) infinite; }
.sc-motion .ui.is-live .ui-tick-b span { animation-name: ui-tick-b; }
html:not(.sc-motion) .ui-tick span { transform: translateY(-100%); }

@keyframes ui-tick {
  0%, 8% { transform: none; }
  14%, 92% { transform: translateY(-100%); }
  100% { transform: none; }
}
@keyframes ui-tick-b {
  0%, 36% { transform: none; }
  41%, 92% { transform: translateY(-100%); }
  100% { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ui .ui-tick span { transform: translateY(-100%); }
}

/* Payment cart strip and report revenue by day */
.ui-strip,
.ui-days-chart {
  margin-top: 0.6em;
  padding: 0.7em 0.75em;
}
.ui-strip-row {
  display: flex;
  gap: 0.4em;
}
.ui-strip-row .ui-thumb {
  width: 2.6em;
  height: 2.6em;
}
.ui .ui-strip-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5em;
  margin: 0.55em 0 0 !important;
  font-size: 0.72em;
  color: var(--ui-dim);
}
.ui .ui-days-chart .ui-strip-meta {
  margin: 0 0 0.6em !important;
  color: var(--ui-ink);
  font-size: 0.78em;
}
.ui-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8em;
  align-items: end;
  height: 6.4em;
}
.ui-cols span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  font-size: 0.66em;
}
.ui-cols i {
  width: 100%;
  height: calc(var(--h) * 0.62);
  border-radius: 0.6em 0.6em 0.25em 0.25em;
  background: linear-gradient(180deg, #4f9bff, var(--ui-blue));
  transform-origin: bottom;
}
.ui-cols b {
  margin-top: 0.35em;
  font-variant-numeric: tabular-nums;
}
.ui-cols small {
  color: var(--ui-dim);
}
.sc-motion .ui.is-live .ui-cols i {
  animation: ui-col 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 140ms + 700ms);
}
@keyframes ui-col {
  from { transform: scaleY(0); }
}

/* Receipt link customer card and check-in QR card */
.ui-link-card {
  margin-top: 0.6em;
  padding: 0.7em 0.75em;
}
.ui .ui-card-title {
  margin: 0 !important;
  font-size: 0.85em;
  font-weight: 650;
}
.ui-link-card .ui-linked {
  margin: 0;
  padding: 0.5em 0 0;
  border-top: 0.08em solid var(--ui-line);
}
.ui-qr {
  display: flex;
  align-items: center;
  gap: 0.75em;
  margin-top: 0.8em;
  padding: 0.7em 0.75em;
  font-size: 0.82em;
}
.ui-qr i {
  flex: none;
  width: 3.6em;
  height: 3.6em;
  border-radius: 0.4em;
  background:
    linear-gradient(#000, #000) 0 0 / 1.1em 1.1em no-repeat,
    linear-gradient(#000, #000) 100% 0 / 1.1em 1.1em no-repeat,
    linear-gradient(#000, #000) 0 100% / 1.1em 1.1em no-repeat,
    repeating-conic-gradient(#000 0 25%, #fff 0 50%) 50% 50% / 0.6em 0.6em;
  box-shadow: inset 0 0 0 0.25em #fff, 0 0 0 0.08em var(--ui-line);
}
.ui-qr small {
  display: block;
  margin-top: 0.15em;
  color: var(--ui-dim);
  font-size: 0.85em;
}

/* =====================================================================
   Store screens: booths, vendors, vendor home, sales by booth.
   Used on /solutions/resale-store-software and the store market pages.
   ===================================================================== */
.ui-cart-row small.is-v,
.ui-booth i.is-v,
.ui-rows i.is-v { color: #7c3aed; background: #ede9fe; }
.ui-cart-row small.is-o,
.ui-booth i.is-o,
.ui-rows i.is-o { color: #b45309; background: #fef3c7; }
.ui-booth i.is-g { color: #15803d; background: #dcfce7; }

.ui-split-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3em 0.45em;
  align-items: center;
  margin-top: 0.65em;
  padding: 0.6em 0.7em;
  border-radius: 0.9em;
  background: #fff;
  font-size: 0.68em;
  font-variant-numeric: tabular-nums;
}
.ui-split-note b { width: 100%; font-size: 1.05em; }
.ui-split-note span {
  padding: 0.2em 0.5em;
  border-radius: 0.4em;
  background: #f1f5f9;
  font-weight: 600;
}

.ui-bill { padding: 0.6em 0.8em; margin-bottom: 0.55em; }
.ui-bill p {
  display: flex;
  justify-content: space-between;
  gap: 0.5em;
  margin: 0 !important;
  padding: 0.2em 0;
  font-size: 0.78em;
  font-variant-numeric: tabular-nums;
}
.ui-bill p + p { border-top: 0.08em solid var(--ui-line); padding-top: 0.35em; }
.ui-bill span { color: var(--ui-dim); }

.ui-booth {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.48em 0;
  border-bottom: 0.08em solid var(--ui-line);
}
.ui-booth > i,
.ui-rows i {
  flex: none;
  display: inline-grid;
  place-items: center;
  font-style: normal;
  font-weight: 750;
  letter-spacing: 0.02em;
  color: #1d4ed8;
  background: #dbeafe;
  border-radius: 0.5em;
}
.ui-booth > i { width: 2.6em; height: 2.3em; font-size: 0.78em; }
.ui-booth div { flex: 1; min-width: 0; }
.ui-booth strong { display: block; font-size: 0.85em; }
.ui-booth small { display: block; font-size: 0.66em; color: var(--ui-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-booth > b { font-size: 0.66em; font-weight: 650; color: var(--ui-dim); padding: 0.2em 0.55em; border-radius: 999px; background: #f1f5f9; }
.ui-booth > b.is-on { color: #15803d; background: #dcfce7; }

.ui-rows { padding: 0.35em 0.7em; }
.ui-rows p {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.6em 5.4em;
  gap: 0.4em;
  align-items: center;
  margin: 0 !important;
  padding: 0.38em 0;
  font-size: 0.7em;
  font-variant-numeric: tabular-nums;
  border-bottom: 0.08em solid var(--ui-line);
}
.ui-rows p > span:nth-child(n+2) { text-align: right; }
.ui-rows p > span:first-child { display: flex; align-items: center; gap: 0.45em; white-space: nowrap; overflow: hidden; }
.ui-rows i { width: 2.5em; height: 1.65em; font-size: 0.85em; }
.ui-rows .is-head { color: var(--ui-dim); font-weight: 650; font-size: 0.6em; text-transform: uppercase; letter-spacing: 0.05em; }
.ui-rows .is-more { color: var(--ui-dim); }
.ui-rows .is-total { font-weight: 750; border-bottom: 0; }
.sc-motion .ui.is-live .ui-rows p[style] { animation: ui-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; animation-delay: calc(var(--i, 0) * 110ms + 450ms); }

.ui-age { padding: 0.6em 0.75em; margin-bottom: 0.4em; }
.ui-age > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.4em; margin-top: 0.45em; }
.ui-age span { padding: 0.45em 0.5em; border-radius: 0.7em; background: #f8fafc; }
.ui-age span:nth-child(1) { background: #eff6ff; }
.ui-age span:nth-child(2) { background: #fef3c7; }
.ui-age span:nth-child(3) { background: #fee2e2; }
.ui-age b { display: block; font-size: 1.1em; font-variant-numeric: tabular-nums; }
.ui-age small { display: block; font-size: 0.58em; color: var(--ui-dim); line-height: 1.2; }

.ui-only { margin: 0.6em 0 0 !important; font-size: 0.66em; color: var(--ui-dim); text-align: center; }

.ui-tabs.is-store { grid-template-columns: repeat(4, minmax(0, 1fr)); }
