:root {
  --bg: #202024;
  --bg-deep: #161619;
  --bg-elevated: #222227;
  --bg-code: #2c2c32;
  --text: #f5efdb;
  --text-cream: #f5efdb;
  --text-soft: rgba(255, 255, 255, 0.9);
  --text-muted: rgba(255, 255, 255, 0.55);
  --accent: #ff0033;
  --accent-hover: #c50028;
  --accent-soft: #d33554;
  --chip: #f5efdb;
  --chip-ink: #202024;
  --border: #747580;
  --border-soft: #2f2f2f;
  --border-code: #434955;
  --host: #fcb132;
  --countdown-bg: rgba(55, 55, 61, 0.55);
  --shadow-cta:
    0 2px 5px rgba(0, 0, 0, 0.25),
    0 9px 9px rgba(0, 0, 0, 0.21),
    0 19px 12px rgba(0, 0, 0, 0.13),
    0 34px 14px rgba(0, 0, 0, 0.04);
  --shadow-card:
    0 2px 5px rgba(0, 0, 0, 0.25),
    0 9px 9px rgba(0, 0, 0, 0.21),
    0 19px 12px rgba(0, 0, 0, 0.13),
    0 34px 14px rgba(0, 0, 0, 0.04);
  --radius: 20px;
  --radius-md: 12px;
  --font: "primary-font", DanaFaNum, Tahoma, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.skip-link {
  position: absolute;
  right: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 10px;
}

.skip-link:focus {
  top: 1rem;
}

/* ——— Hero (desktop: 1440×800) ——— */
.hero {
  position: relative;
  height: 800px;
  overflow: hidden;
  isolation: isolate;
}

.hero-glow {
  position: absolute;
  top: -288px;
  left: 50%;
  transform: translateX(-50%) rotate(-45deg);
  width: 467px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}

.hero-glow img {
  width: 100%;
  height: auto;
}

.discount-banners {
  position: absolute;
  left: 50%;
  top: 284px;
  width: 3554px;
  height: 1018px;
  margin-left: -1777px;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

.discount-banner-wrap {
  position: absolute;
  display: block;
  width: auto;
  height: auto;
}

.discount-banner {
  display: block;
  width: 2650.15px;
  padding: 12.6px 25.6px 6.4px;
  white-space: nowrap;
  overflow: hidden;
  border: 1.024px solid #484852;
  background: #222227;
  font-weight: 900;
  font-size: 51.193px;
  letter-spacing: -1.5358px;
  line-height: 0.9;
  direction: ltr;
  unicode-bidi: isolate;
  color: transparent;
  -webkit-text-stroke: 1.35px #82132c;
  paint-order: stroke fill;
  text-shadow: 0 0 12px rgba(130, 19, 44, 0.65);
  transform-origin: 0 0;
}

.discount-banner::before {
  /* duplicated sequence for seamless marquee loop */
  content: "-80%   -70%   -75%   -80%   -90%   -85%   -55%   -80%   -90%   -85%   -55%   -80%   -70%   -75%   -80%   -90%   -85%   -80%   -70%   -75%   -80%   -90%   -85%   -55%   -80%   -90%   -85%   -55%   -80%   -70%   -75%   -80%   -90%   -85%";
  display: inline-block;
  will-change: transform;
  animation: discount-banner-marquee 48s linear infinite;
}

.discount-banner-wrap--2 .discount-banner::before,
.discount-banner-wrap--5 .discount-banner::before,
.discount-banner-wrap--7 .discount-banner::before {
  animation-direction: reverse;
  animation-duration: 56s;
}

.discount-banner-wrap--3 .discount-banner::before,
.discount-banner-wrap--6 .discount-banner::before {
  animation-duration: 40s;
}

@keyframes discount-banner-marquee {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

/* Desktop: Figma relativeTransform (origin top-left) */
.discount-banner-wrap--1 {
  left: 258.2px;
  top: 188.88px;
}
.discount-banner-wrap--1 .discount-banner {
  transform: matrix(0.964653, 0.263523, -0.263523, 0.964653, 0, 0);
}

.discount-banner-wrap--2 {
  left: 100.89px;
  top: 214.89px;
}
.discount-banner-wrap--2 .discount-banner {
  transform: matrix(0.964653, 0.263523, -0.263523, 0.964653, 0, 0);
}

.discount-banner-wrap--3 {
  left: 393.51px;
  top: 351.93px;
}
.discount-banner-wrap--3 .discount-banner {
  transform: matrix(0.997342, 0.072867, -0.072867, 0.997342, 0, 0);
}

.discount-banner-wrap--4 {
  left: 943.64px;
  top: 923.83px;
}
.discount-banner-wrap--4 .discount-banner {
  transform: matrix(0.943635, -0.330988, 0.330988, 0.943635, 0, 0);
}

.discount-banner-wrap--5 {
  left: 1183.2px;
  top: 602.29px;
}
.discount-banner-wrap--5 .discount-banner {
  transform: matrix(0.995119, -0.098686, 0.098686, 0.995119, 0, 0);
}

.discount-banner-wrap--6 {
  left: 85.37px;
  top: 6.85px;
}
.discount-banner-wrap--6 .discount-banner {
  transform: matrix(0.963514, 0.267657, -0.267657, 0.963514, 0, 0);
}

.discount-banner-wrap--7 {
  left: 1101.4px;
  top: 661.39px;
}
.discount-banner-wrap--7 .discount-banner {
  transform: matrix(0.972142, -0.234393, 0.234393, 0.972142, 0, 0);
}

.hero-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  width: 100%;
}

.countdown {
  position: absolute;
  top: 102px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  direction: ltr;
  align-items: center;
  gap: 4.333px;
}

.countdown-unit {
  width: 52px;
  height: 52px;
  border-radius: 10.833px;
  background: var(--countdown-bg);
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
}

.countdown-unit span {
  font-size: 30.333px;
  font-weight: 200;
  letter-spacing: -0.91px;
  color: var(--text-cream);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.countdown-sep {
  font-size: 32.5px;
  font-weight: 200;
  color: rgba(255, 255, 255, 0.38);
  line-height: 1;
  letter-spacing: -0.975px;
  padding-bottom: 2px;
}

.hero-main {
  position: absolute;
  left: 50%;
  top: calc(50% + 7px);
  transform: translate(-50%, -50%);
  width: 575px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  text-align: center;
}

.brand-lockup {
  position: relative;
  width: 473.622px;
  height: 168.782px;
  flex-shrink: 0;
}

.brand-titles {
  position: relative;
  width: 100%;
  height: 100%;
}

.brand-business {
  position: absolute;
  width: 312.229px;
  height: auto;
  left: calc(50% - 44.45px);
  top: calc(50% - 43.1px);
  transform: translate(-50%, -50%);
}

.brand-friday {
  position: absolute;
  width: 272.438px;
  height: auto;
  left: calc(50% + 70.09px);
  top: calc(50% + 39.19px);
  transform: translate(-50%, -50%);
}

.discount-chip {
  position: absolute;
  left: 32.31px;
  top: 127.39px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 126.834px;
  height: 38.532px;
  padding: 0;
  background: var(--chip);
  color: var(--chip-ink);
  font-size: 19.266px;
  font-weight: 400;
  letter-spacing: -0.578px;
  line-height: 1;
  border-radius: 80px;
  white-space: nowrap;
  box-shadow: none;
  /* Figma prototype: Default (off) 800ms ↔ Variant2 glow (on) 800ms */
  animation: chip-blink 1.6s steps(1, end) infinite;
}

.brand-deco {
  position: absolute;
  top: 11.03px;
  left: 415.89px;
  width: 45.852px;
  height: auto;
  transform: rotate(65.98deg);
  pointer-events: none;
  z-index: 1;
}

.brand-spark--tl {
  position: absolute;
  top: 147.85px;
  left: -16.67px;
  width: 46.333px;
  height: auto;
  transform: rotate(96.14deg);
  pointer-events: none;
  z-index: 1;
}

@keyframes chip-blink {
  /* 0–800ms: off (Default) */
  0%,
  49.999% {
    box-shadow: none;
  }
  /* 800–1600ms: on (Variant2 glow) */
  50%,
  100% {
    box-shadow:
      0 0 0.9px #892a3d,
      0 0 1.8px #892a3d,
      0 0 6.4px #892a3d,
      0 0 12.8px #892a3d,
      0 0 21.9px #892a3d,
      0 0 38.4px #892a3d;
  }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.hero-copy h1 {
  margin: 0;
  width: 100%;
  font-size: 24px;
  font-weight: 700;
  line-height: 28px;
  color: var(--text-cream);
}

.hero-copy p {
  margin: 0;
  width: 100%;
  font-size: 18px;
  font-weight: 300;
  line-height: normal;
  color: var(--text-soft);
}

.scroll-cta {
  position: absolute;
  bottom: 62.72px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 229px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 0.64px solid var(--border-soft);
  color: var(--text-cream);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.54px;
  white-space: nowrap;
  box-shadow: var(--shadow-cta);
  transition: background 0.25s var(--ease);
  animation: scroll-cta-bounce 1.2s infinite;
}

.scroll-cta:hover {
  background: #1a1a1e;
}

.scroll-cta img {
  width: 16px;
  height: 16px;
}

/* Figma discount-scroll-button: Default y=3 → Variant2 y=17 (14px), 0.6s ease-out / 0.6s ease-in loop */
@keyframes scroll-cta-bounce {
  0% {
    transform: translateX(-50%) translateY(0);
    animation-timing-function: ease-out;
  }
  50% {
    transform: translateX(-50%) translateY(14px);
    animation-timing-function: ease-in;
  }
  100% {
    transform: translateX(-50%) translateY(0);
  }
}

/* ——— Partners ——— */
.partners-section {
  padding: 76px 80px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 33px;
}

.section-head {
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-head h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 22px;
  color: var(--text-cream);
}

.section-head .accent {
  color: var(--accent);
}

.section-head p {
  margin: 0;
  font-size: 16px;
  font-weight: 300;
  line-height: normal;
  color: var(--text-soft);
}

.partners-mobile {
  display: none;
}

.partners-desktop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 33px;
  width: 100%;
}

.partner-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 10px;
  background: var(--bg-deep);
  border-radius: var(--radius);
  max-width: 100%;
  direction: ltr; /* Figma order: left→right */
}

.partner-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 97px; /* keep short names (e.g. دایرکتم) from collapsing */
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: 0.64px solid transparent;
  transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}

.partner-tab:hover {
  background: rgba(255, 255, 255, 0.03);
}

.partner-tab.is-active {
  background: var(--bg-elevated);
  border-color: var(--border-soft);
  box-shadow: var(--shadow-card);
}

.partner-tab img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
  transition: filter 0.2s var(--ease), opacity 0.2s var(--ease);
}

.partner-tab:not(.is-active) img {
  filter: grayscale(1) brightness(1.45);
  opacity: 0.9;
}

.partner-tab:not(.is-active):hover img {
  filter: none;
  opacity: 1;
}

.partner-tab span {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.217;
  color: #fff;
  white-space: nowrap;
}

.partner-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 100%;
  animation: fade-up 0.35s var(--ease);
}

.partner-desc {
  margin: 0;
  max-width: 100%;
  text-align: center;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-soft);
}

.offers-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  justify-content: center;
  /* Equal height cards in the same row when one title wraps */
  align-items: stretch;
  width: 100%;
  max-width: 1280px;
  /* Figma Offer Cards are LTR: first offer = leftmost */
  direction: ltr;
}

.offers-grid > .offer-card {
  /* Figma discount-cards: max 305px — stretch to tallest sibling */
  flex: 1 1 0;
  width: 305px;
  max-width: 305px;
  min-width: 0;
  min-height: 100%;
  height: auto;
  align-self: stretch;
  box-sizing: border-box;
  /* Keep Persian card content RTL */
  direction: rtl;
}

.sheet-offers {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sheet-offers .offer-card {
  min-height: 0;
}

.offer-card.offer-card--compact,
.sheet-offers .offer-card.offer-card--compact {
  height: auto;
}

/* ——— Offer cards ——— */
.offer-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: auto;
  padding: 16px;
  border-radius: var(--radius);
  border: 0.64px solid var(--border);
  background: transparent;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.offer-card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

/* Figma discount-cards: default border #747580, hover #a2a4ab; no lift */
.offer-card:hover {
  border-color: #a2a4ab;
  background: var(--bg);
}

.offer-card-head {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
}

.offer-card-head img {
  width: 32px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  order: -1;
  transition: filter 0.2s var(--ease);
}

/* Desktop: default grayscale (Figma COLOR+#000); hover = full color.
   brightness keeps dark brand marks (e.g. بهترینو) visible on dark cards. */
@media (hover: hover) and (pointer: fine) {
  .offer-card-head img {
    filter: grayscale(1) brightness(1.55) contrast(1.05);
  }

  .offer-card:hover .offer-card-head img {
    filter: none;
  }
}

.offer-card-head h3 {
  margin: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  text-align: right;
  line-height: normal;
}

.offer-card-desc {
  margin: 0;
  font-size: 14px;
  font-weight: 300;
  color: var(--text-muted);
  text-align: right;
  line-height: 1.6;
}

.offer-code {
  display: flex;
  flex-direction: row;
  direction: ltr; /* Figma: code left, copy button right */
  align-items: stretch;
  border: 1px solid var(--border-code);
  border-radius: var(--radius-md);
  overflow: visible;
  position: relative;
  min-height: 46px;
  width: 100%;
}

/* Figma opacity-0 code row — keeps Asar row equal height without visible empty gap on no-code partners */
.offer-code--spacer {
  visibility: hidden;
  pointer-events: none;
  border-color: transparent;
}

.offer-code-value {
  flex: 1;
  display: grid;
  place-items: center;
  font-size: 16px;
  color: #fff;
  padding: 8px 12px;
  direction: ltr;
  /* DanaFaNum remaps 0-9 → Persian glyphs; use Latin digits for coupon codes */
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.offer-code-copy {
  width: 44px;
  display: grid;
  place-items: center;
  background: var(--bg-code);
  border-inline-start: 1px solid var(--border-code);
  border-start-start-radius: 0;
  border-end-start-radius: 0;
  border-start-end-radius: var(--radius-md);
  border-end-end-radius: var(--radius-md);
  position: relative;
  transition: background 0.2s var(--ease);
}

.offer-code-copy:hover {
  background: #35353c;
}

.offer-code-copy img {
  width: 20px;
  height: 20px;
}

.copy-tooltip {
  position: absolute;
  top: -48px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--chip);
  color: #161619;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
  z-index: 2;
  direction: rtl; /* parent .offer-code is ltr for layout */
  text-align: right;
  unicode-bidi: isolate;
}

.copy-tooltip::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--chip);
}

.offer-code-copy.is-copied .copy-tooltip,
.offer-code-copy:hover .copy-tooltip {
  opacity: 1;
}

.offer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: auto;
  flex-shrink: 0;
  padding: 12px 10px;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  font-weight: 700;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.offer-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* ——— Mobile partner grid ——— */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, 143px);
  gap: 20px;
  width: 306px;
  margin: 0 auto;
  justify-content: center;
  /* Figma Frame 333 fills left→right (finto top-left, inboxino top-right) */
  direction: ltr;
}

/* Figma: last odd partner (سیبا) centered under the 2-col grid */
.partner-grid > .partner-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  justify-self: center;
}

.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 143px;
  min-height: 128px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 0.64px solid var(--border-soft);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s var(--ease);
}

.partner-card:active {
  transform: scale(0.98);
}

.partner-card img {
  width: 45px;
  height: 44px;
  object-fit: contain;
}

.partner-card-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.217;
  color: #f5efda;
  text-align: center;
}

.partner-card-action {
  display: inline-flex;
  flex-direction: row; /* Figma: chevron left, «مشاهده» right */
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--accent-soft);
  font-size: 14px;
  font-weight: 400;
  direction: ltr;
}

.partner-card-action img {
  width: 5px;
  height: 11px; /* Figma partner-card chevron abs bounds */
  flex-shrink: 0;
}

/* ——— Footer ——— */
.site-footer {
  padding: 25px 16px 25px;
  min-height: 96px;
  text-align: center;
  background: var(--bg-deep); /* Figma Footer #161619 */
  color: var(--text-muted);
  font-size: 14px; /* Figma footer line 1 */
  font-weight: 400;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.site-footer p {
  margin: 0;
  line-height: 1.6;
}

.site-footer p:last-child {
  font-size: 16px; /* Figma footer line 2 */
}

.site-footer a {
  color: var(--host);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

/* ——— Bottom sheet ——— */
.sheet[hidden] {
  display: none;
}

.sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  animation: fade-in 0.25s var(--ease);
  transition: opacity 0.3s var(--ease);
}

.sheet.is-closing .sheet-backdrop {
  opacity: 0;
}

.sheet-panel {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  max-height: min(85svh, 720px);
  overflow: hidden;
  background: #27272d; /* Figma campaigne-detail-normal */
  border-radius: 16px 16px 0 0; /* Figma campaigne-detail-normal */
  animation: sheet-up 0.35s var(--ease);
  will-change: transform;
}

.sheet-panel.is-dragging {
  transition: none;
  animation: none;
}

.sheet-panel.is-closing {
  animation: none;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.sheet-header {
  position: relative;
  flex: 0 0 auto;
  padding: 0 20px 12px;
  background: #27272d; /* match sheet panel */
  border-radius: 16px 16px 0 0;
}

.sheet-drag {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin: 0 -20px;
  padding: 12px 20px 8px;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.sheet-handle {
  width: 46px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  pointer-events: none;
}

/* Mobile sheet offer cards: no partner icon (Figma) */
.sheet-offers .offer-card-head img {
  display: none;
}

.sheet-close {
  position: absolute;
  top: 10px;
  left: 16px;
  z-index: 3;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 20px;
  line-height: 1;
  color: var(--text-soft);
}

.sheet-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 0 20px 28px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.sheet-partner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.sheet-partner-copy {
  flex: 1;
  text-align: right;
}

.sheet-partner-copy h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 500; /* Figma Medium */
  color: #fff;
}

.sheet-partner-copy p {
  margin: 0;
  font-size: 14px;
  font-weight: 300;
  color: var(--text-soft);
  line-height: 1.6;
}

.sheet-partner img {
  width: 39px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  order: -1;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  background: var(--chip);
  color: #161619;
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.toast[hidden] {
  display: none;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes sheet-up {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

body.sheet-open {
  overflow: hidden;
}

/* ——— Mobile ≤900 (Figma 375) ——— */
@media (max-width: 900px) {
  .partners-desktop {
    display: none;
  }

  .partners-mobile {
    display: block;
    width: 100%;
  }

  .hero {
    height: 699px;
  }

  /* Figma 165:1759 — 150×150, −45°, fill #FF0033 @ 0.8, blur 180.8 */
  .hero-glow {
    top: -40.855px;
    left: 81px;
    width: 150.111px;
    height: 150.111px;
    transform: matrix(0.707107, -0.707107, 0.707107, 0.707107, 0, 0);
    transform-origin: 0 0;
    opacity: 1;
    background: rgba(255, 0, 51, 0.8);
    filter: blur(90.4px);
    border-radius: 0;
  }

  .hero-glow img {
    display: none;
  }

  /* Mobile Figma banners — relativeTransform origin top-left */
  .discount-banners {
    top: 280px;
    left: calc(50% - 187.5px - 664px);
    width: 1464.376px;
    height: 603.34px;
    margin-left: 0;
    transform: none;
  }

  .discount-banner {
    width: 2143.59px;
    padding: 10.17px 20.66px 5.17px;
    font-size: 41.329px;
    letter-spacing: -1.24px;
    border-width: 0.827px;
    -webkit-text-stroke-width: 1.1px;
  }

  .discount-banner-wrap--1 {
    left: 141.23px;
    top: 209px;
  }
  .discount-banner-wrap--1 .discount-banner {
    transform: matrix(0.964653, 0.263523, -0.263523, 0.964653, 0, 0);
  }

  .discount-banner-wrap--2 {
    left: 14.23px;
    top: 230px;
  }
  .discount-banner-wrap--2 .discount-banner {
    transform: matrix(0.964653, 0.263523, -0.263523, 0.964653, 0, 0);
  }

  .discount-banner-wrap--3 {
    left: 395.93px;
    top: 293px;
  }
  .discount-banner-wrap--3 .discount-banner {
    transform: matrix(0.997342, 0.072867, -0.072867, 0.997342, 0, 0);
  }

  .discount-banner-wrap--4 {
    left: 297.85px;
    top: 149.07px;
  }
  .discount-banner-wrap--4 .discount-banner {
    transform: matrix(0.953143, 0.302519, -0.302519, 0.953143, 0, 0);
  }

  .discount-banner-wrap--5 {
    left: -4px;
    top: 719.97px;
  }
  .discount-banner-wrap--5 .discount-banner {
    transform: matrix(0.943635, -0.330988, 0.330988, 0.943635, 0, 0);
  }

  /* Mobile Figma 165:1696 — −39.07° */
  .discount-banner-wrap--6 {
    display: block;
    left: -25px;
    top: 1132.1px;
  }
  .discount-banner-wrap--6 .discount-banner {
    transform: matrix(0.776342, -0.630311, 0.630311, 0.776342, 0, 0);
  }

  /* Desktop-only 7th strip */
  .discount-banner-wrap--7 {
    display: none;
  }

  .countdown {
    top: 84px;
    gap: 4px;
  }

  .countdown-unit {
    width: 48px;
    height: 48px;
    border-radius: 10px;
  }

  .countdown-unit span {
    font-size: 28px; /* Figma UltraLight */
    letter-spacing: -0.84px;
  }

  .countdown-sep {
    font-size: 30px; /* Figma Thin */
    letter-spacing: -0.9px;
  }

  .hero-main {
    top: 347px;
    width: 327px;
    gap: 52px;
  }

  /* Brand Logo frame is 327×105; logo artwork sits at x=16 */
  .brand-lockup {
    width: 327px;
    height: 105.127px;
    overflow: visible;
  }

  .brand-titles {
    position: absolute;
    left: 16px;
    top: 0;
    width: 295px;
    height: 105.127px;
  }

  .brand-business {
    width: 194.474px;
    left: calc(50% - 27.7px);
    top: calc(50% - 26.8px);
  }

  .brand-friday {
    width: 169.691px;
    left: calc(50% + 43.65px);
    top: calc(50% + 24.4px);
  }

  .discount-chip {
    left: 18px;
    top: 81px;
    width: 79px;
    height: 24px;
    font-size: 12px;
    letter-spacing: -0.36px;
  }

  /* Figma Logo Decorations AABB 257,-19 / 74.2×66.5 — asset centered + rotated */
  .brand-deco {
    top: calc(-19px + 66.494px / 2);
    left: calc(257px + 74.2px / 2);
    width: 45.663px;
    transform: translate(-50%, -50%) rotate(65.98deg);
  }

  /* Figma Decorative Spark AABB 2.49,102.13 / 38×40 — asset centered + rotated */
  .brand-spark--tl {
    top: calc(102.13px + 39.994px / 2);
    left: calc(2.49px + 38.023px / 2);
    width: 37px;
    transform: translate(-50%, -50%) rotate(84.82deg);
  }

  .hero-copy {
    gap: 16px;
    width: 327px;
  }

  .hero-copy h1 {
    font-size: 20px;
    line-height: 28px;
    max-width: 299px;
  }

  .hero-copy p {
    font-size: 16px;
    line-height: 1.45;
  }

  .scroll-cta {
    bottom: 50px;
    width: 241.28px; /* Figma discount-view-button */
    min-width: 241.28px;
    padding: 16px;
    font-size: 16px;
    letter-spacing: -0.48px;
    gap: 10px;
  }

  .partners-section {
    padding: 64px 16px 48px;
    gap: 32px;
  }

  .section-head {
    gap: 4px;
  }

  .section-head h2 {
    font-size: 20px; /* Figma Bold */
    line-height: 22px;
  }

  .section-head p {
    font-size: 16px; /* Figma Light */
  }

  .partner-grid {
    gap: 20.6px 20px;
  }

  /* Sheet offer titles are 18 Medium on mobile Figma */
  .sheet-offers .offer-card-head h3 {
    font-size: 18px;
    font-weight: 500;
  }

  .site-footer {
    min-height: 94px;
    padding: 25px 16px;
  }
}

@media (min-width: 901px) {
  .partner-desc {
    max-width: none;
    font-size: 20px;
    line-height: normal;
    white-space: nowrap;
  }

  .sheet {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
