/* Soft edge into the page - keep light so the image stays readable */
.offers-showcase__viewport::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 1px #000,
    inset 0 0 18px 6px rgba(0, 0, 0, 0.45);
}

.offers-showcase__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(12%, 0, 0);
  transition:
    opacity 0.7s var(--ease-out-expo),
    transform 0.85s var(--ease-out-expo),
    visibility 0.85s;
  pointer-events: none;
  z-index: 0;
  will-change: transform, opacity;
}

.offers-showcase__slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
  z-index: 2;
}

.offers-showcase__slide.from-right {
  transform: translate3d(14%, 0, 0);
}

.offers-showcase__slide.from-left {
  transform: translate3d(-14%, 0, 0);
}

.offers-showcase__slide.is-leaving {
  opacity: 0;
  visibility: visible;
  pointer-events: none;
  z-index: 1;
}

.offers-showcase__slide.is-leaving.to-left {
  transform: translate3d(-12%, 0, 0);
}

.offers-showcase__slide.is-leaving.to-right {
  transform: translate3d(12%, 0, 0);
}

.offers-showcase__slide.is-active.from-right,
.offers-showcase__slide.is-active.from-left {
  transform: translate3d(0, 0, 0);
}

.offers-showcase__visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem;
  background: #000;
}

.offers-showcase__image-link {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.offers-showcase__image,
.offers-showcase__fallback {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: clamp(1rem, 2.2vw, 1.5rem);
  transform: none;
  transform-origin: center center;
}

.offers-showcase__fallback {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 70% 55% at 70% 20%, rgba(142, 228, 168, 0.18), transparent 60%),
    radial-gradient(ellipse 55% 50% at 15% 80%, rgba(99, 179, 237, 0.14), transparent 55%),
    linear-gradient(145deg, #101214 0%, #060708 55%, #000 100%);
}

.offers-showcase__image.is-motion {
  animation: none;
}

/* Soft vignette — just enough edge dissolve, image stays readable */
.offers-showcase__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 78% 70% at 50% 55%, transparent 40%, rgba(0, 0, 0, 0.38) 100%),
    linear-gradient(180deg, transparent 0%, transparent 28%, transparent 70%, rgba(0, 0, 0, 0.32) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.22) 0%, transparent 14%, transparent 86%, rgba(0, 0, 0, 0.22) 100%);
}

.offers-showcase__below {
  display: grid;
  margin-top: 1rem;
  padding-inline: 0;
}

.offers-showcase__copy-panel {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.45s var(--ease-out-expo),
    visibility 0.45s;
}

.offers-showcase__copy-panel.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.offers-showcase__card {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.35rem;
  width: 100%;
  max-width: none;
  padding: 1rem 1.15rem 1.05rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(10, 12, 14, 0.72);
  backdrop-filter: blur(14px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.offers-showcase__card-main {
  flex: 1 1 16rem;
  min-width: 0;
}

.offers-badge--compact {
  margin-bottom: 0.45rem;
  padding: 0.18rem 0.55rem;
  font-size: 0.625rem;
}

.offers-showcase__title {
  margin: 0;
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #fff;
  text-wrap: balance;
}

.offers-showcase__title-link {
  color: inherit;
  text-decoration: none;
}

.offers-showcase__title-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.offers-showcase__summary {
  margin: 0.4rem 0 0;
  max-width: 34rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.68);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.offers-showcase__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.85rem;
  margin-top: 0.7rem;
}

.offers-showcase__fact {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  max-width: 100%;
  font-size: 0.75rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.58);
}

.offers-showcase__fact-k {
  flex-shrink: 0;
  font-family: var(--font-meta);
  font-size: 0.5625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.offers-showcase__fact--you {
  color: rgba(143, 232, 178, 0.88);
}

.offers-showcase__fact--you .offers-showcase__fact-k {
  color: rgba(143, 232, 178, 0.55);
}

.offers-showcase__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  margin-top: 0;
}

.offers-showcase__chrome {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
  padding-inline: clamp(0.25rem, 1vw, 0.75rem);
}

.offers-showcase__progress {
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.offers-showcase__progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.92));
  will-change: transform;
}

.offers-showcase__progress-bar.is-running {
  animation-name: offers-progress;
  animation-duration: var(--offers-progress-ms, 6500ms);
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

.offers-showcase__progress-bar.is-paused {
  animation-play-state: paused;
}

@keyframes offers-progress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.offers-showcase__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.offers-showcase__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex: 1;
}

.offers-showcase__dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: width 0.35s var(--ease-out-expo), background 0.25s ease;
}

.offers-showcase__dot.is-active {
  width: 1.55rem;
  background: rgba(255, 255, 255, 0.92);
}

.offers-showcase__arrow {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease-out-expo);
}

.offers-showcase__arrow:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
}

.offers-showcase__arrow:active {
  transform: scale(0.96);
}

/* -- Non-featured catalog grid -- */
.offers-catalog__head {
  margin-bottom: 1.25rem;
  max-width: 34rem;
}

.offers-catalog__title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  letter-spacing: -0.03em;
}

.offers-catalog__lede {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.5);
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1rem;
}

.offers-grid-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid var(--border);
  border-radius: 1.15rem;
  background: var(--panel);
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: border-color 0.3s ease, transform 0.45s var(--ease-out-expo);
}

.offers-grid-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.offers-grid-card__visual {
  position: relative;
  display: block;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: #080808;
  color: inherit;
  text-decoration: none;
}

.offers-grid-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.offers-grid-card__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.2) 100%);
}

.offers-grid-card__copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.15rem 1.2rem 1.25rem;
}

.offers-grid-card.has-image .offers-grid-card__copy {
  padding-top: 0.85rem;
}

.offers-grid-card__title {
  margin: 0 0 0.4rem;
  font-size: 1.125rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.offers-grid-card__title-link {
  color: inherit;
  text-decoration: none;
}

.offers-grid-card__title-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.1em;
}

.offers-grid-card__summary {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.62);
}

.offers-grid-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: auto;
  padding-top: 1rem;
}

/* -- Single offer detail page (/token/offers/:slug) -- */
.offer-detail {
  display: grid;
  gap: 1.35rem;
  max-width: 52rem;
}

.offer-detail__back {
  margin: 0;
}

.offer-detail__back-link {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  font-size: 0.875rem;
}

.offer-detail__back-link:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.offer-detail__visual {
  position: relative;
  width: 100%;
  min-height: clamp(14rem, 42vw, 22rem);
  border-radius: clamp(1rem, 2vw, 1.35rem);
  overflow: hidden;
  background: #000;
}

.offer-detail__visual--empty {
  min-height: 10rem;
}

.offer-detail__image,
.offer-detail__visual .offers-showcase__fallback {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: contain;
  object-position: center;
}

.offer-detail__body {
  display: grid;
  gap: 0.35rem;
  padding-inline: clamp(0.1rem, 1vw, 0.35rem);
}

.offer-detail__title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.offer-detail__summary {
  margin: 0;
  max-width: 40rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.offer-detail__copy {
  margin: 0.65rem 0 0;
  max-width: 42rem;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.68);
}

.offer-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

/* -- Blog rail (fills sparse offers pages) -- */
.offers-blog {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.offers-stage--sparse .offers-blog {
  margin-top: 0.35rem;
}

.offers-blog__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.offers-blog__title-block {
  margin: 0 0 0.3rem;
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  letter-spacing: -0.03em;
}

.offers-blog__lede {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
}

.offers-blog__all {
  flex-shrink: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  white-space: nowrap;
}

.offers-blog__all:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.offers-blog__track {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  padding: 0.15rem 0.15rem 0.85rem;
  margin-inline: -0.15rem;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.15rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.offers-blog__track:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 3px;
  border-radius: 0.75rem;
}

.offers-blog__card {
  flex: 0 0 min(17.5rem, 78vw);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  scroll-snap-align: start;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.25s ease, transform 0.35s var(--ease-out-expo);
}

.offers-blog__card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.offers-blog__media {
  display: block;
  aspect-ratio: 16 / 10;
  background: #080808;
  overflow: hidden;
}

.offers-blog__thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.offers-blog__thumb--empty {
  background:
    radial-gradient(ellipse 70% 55% at 70% 20%, rgba(142, 228, 168, 0.16), transparent 60%),
    linear-gradient(145deg, #121417 0%, #070809 100%);
}

.offers-blog__copy {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.9rem 1rem 1.05rem;
  flex: 1;
}

.offers-blog__kicker {
  font-family: var(--font-meta);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.offers-blog__title {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: #fff;
}

.offers-blog__summary {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.58);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.offers-blog__date {
  margin-top: auto;
  padding-top: 0.45rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 720px) {
  .offers-showcase {
    margin-inline: 0;
    display: flex;
    flex-direction: column;
    padding-inline: var(--layout-gutter);
  }

  .offers-showcase__viewport {
    order: 1;
    min-height: 0;
    aspect-ratio: 16 / 10;
    height: auto;
    border-radius: 1rem;
  }

  .offers-showcase__below {
    order: 2;
    margin-top: 0;
    gap: 0;
    padding-inline: 0;
  }

  .offers-showcase__chrome {
    order: 3;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-inline: 0;
  }

  .offers-showcase__visual {
    padding: 0;
  }

  .offers-showcase__image-link {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
  }

  .offers-showcase__image,
  .offers-showcase__fallback {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
    border-radius: inherit;
  }

  .offers-showcase__veil {
    background:
      linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.55) 100%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.18) 0%, transparent 18%, transparent 82%, rgba(0, 0, 0, 0.18) 100%);
  }

  .offers-showcase__card {
    flex-direction: column;
    align-items: stretch;
    gap: 1.1rem;
    padding: 1.15rem 0 0.25rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
  }

  .offers-showcase__card-main {
    flex: 1 1 auto;
  }

  .offers-badge--compact {
    margin-bottom: 0.55rem;
  }

  .offers-showcase__title {
    font-size: clamp(1.55rem, 7.5vw, 2rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
  }

  .offers-showcase__summary {
    max-width: none;
    margin-top: 0.55rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    -webkit-line-clamp: 4;
    color: rgba(255, 255, 255, 0.72);
  }

  .offers-showcase__facts {
    display: grid;
    gap: 0;
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .offers-showcase__fact {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr);
    gap: 0.65rem;
    align-items: start;
    padding: 0.7rem 0;
    max-width: none;
    font-size: 0.8125rem;
    line-height: 1.4;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .offers-showcase__fact-k {
    padding-top: 0.1rem;
    font-size: 0.625rem;
  }

  .offers-showcase__actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    margin-top: 0.15rem;
  }

  .offers-showcase__actions .btn {
    width: 100%;
    min-height: 2.85rem;
    justify-content: center;
    font-size: 0.9375rem;
  }

  .offers-showcase__actions .btn-sm {
    padding: 0.75rem 1.1rem;
  }

  .offers-showcase__nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .offers-showcase__arrow {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.4rem;
    background: rgba(255, 255, 255, 0.06);
  }

  .offers-showcase__dot {
    width: 0.65rem;
    height: 0.65rem;
  }

  .offers-showcase__dot.is-active {
    width: 1.75rem;
  }

  /* Catalog cards */
  .offers-catalog__head {
    margin-bottom: 0.95rem;
  }

  .offers-catalog__title {
    font-size: 1.35rem;
  }

  .offers-grid-card {
    border-radius: 1rem;
  }

  .offers-grid-card:hover {
    transform: none;
  }

  .offers-grid-card__visual {
    aspect-ratio: 16 / 10;
  }

  .offers-grid-card__image {
    object-fit: cover;
  }

  .offers-grid-card__copy {
    padding: 1rem 1.05rem 1.15rem;
    gap: 0;
  }

  .offers-grid-card__title {
    font-size: 1.2rem;
  }

  .offers-grid-card__summary {
    margin-top: 0.35rem;
  }

  .offers-grid-card__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding-top: 1.05rem;
  }

  .offers-grid-card__actions .btn {
    width: 100%;
    min-height: 2.65rem;
    justify-content: center;
  }

  /* Detail page */
  .offers-page:has(.offer-detail) {
    max-width: none;
    padding-inline: 0;
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }

  .offer-detail {
    gap: 0;
  }

  .offer-detail__back {
    margin: 0;
    padding: 0.35rem var(--layout-gutter) 0.75rem;
  }

  .offer-detail__visual,
  .offer-detail__visual--empty {
    min-height: 0;
    aspect-ratio: 16 / 10;
    margin-inline: var(--layout-gutter);
    width: auto;
    border-radius: 1rem;
  }

  .offer-detail__image,
  .offer-detail__visual .offers-showcase__fallback {
    min-height: 0;
    object-fit: cover;
  }

  .offer-detail__body {
    padding: 1.15rem var(--layout-gutter) 1.5rem;
    gap: 0.45rem;
  }

  .offer-detail__title {
    font-size: clamp(1.65rem, 8vw, 2.15rem);
    line-height: 1.08;
  }

  .offer-detail__summary {
    font-size: 1.05rem;
    line-height: 1.5;
  }

  .offer-detail__copy {
    margin-top: 0.85rem;
    font-size: 0.9375rem;
    line-height: 1.6;
  }

  .offer-detail .offers-meta,
  .offer-detail .offers-your-credit {
    margin-top: 1rem;
  }

  .offer-detail__actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin: 0;
    padding:
      0.75rem var(--layout-gutter)
      calc(0.75rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(5, 6, 8, 0.92);
    backdrop-filter: blur(16px);
  }

  .offer-detail__actions .btn {
    width: 100%;
    min-height: 2.85rem;
    justify-content: center;
  }

  .offer-detail__actions .btn-ghost {
    display: none;
  }

  .offers-page:has(.offer-detail) .offers-account-credits {
    margin-top: 0.5rem;
    margin-inline: var(--layout-gutter);
  }
}

@media (prefers-reduced-motion: reduce) {
  .offers-showcase__slide,
  .offers-showcase__copy-panel,
  .offers-showcase__arrow,
  .offers-showcase__dot,
  .offers-grid-card,
  .offers-blog__card {
    transition: opacity 0.25s ease, visibility 0.25s ease;
    transform: none !important;
  }

  .offers-showcase__slide.is-active.has-image .offers-showcase__image,
  .offers-showcase__image.is-motion {
    animation: none;
  }

  .offers-showcase__progress-bar.is-running {
    animation-timing-function: linear;
  }
}

/* Developer grants — crisp SVG MacBook + fullscreen Terminal */
.token-page.token-page--grants.offers-page {
  overflow: visible;
  max-width: none;
  width: min(100%, 72rem);
  padding-top: calc(var(--cloud-header-offset) + 0.15rem);
  padding-inline: clamp(0.35rem, 1.5vw, 1rem);
  padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
}

.token-panel--grants {
  width: 100%;
  padding: 0;
  background: transparent;
}

.grants-stage {
  --term-bg: #1e1e1e;
  --term-chrome: #2c2c2e;
  --term-green: #39d353;
  --term-text: #f0f0f0;
  /* LCD well — calibrated to macbook-pro.png active glass */
  --mbp-screen-left: 10.6%;
  --mbp-screen-top: 4.2%;
  --mbp-screen-width: 78.8%;
  --mbp-screen-height: 83.3%;
  display: grid;
  justify-items: center;
  gap: 0.55rem;
}

.grants-stage__header {
  width: min(100%, 28rem);
  text-align: center;
}

.grants-stage__header .eyebrow {
  margin-bottom: 0.25rem;
}

.grants-stage__header h1 {
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.grants-desk {
  width: 100%;
  padding: 0;
}

.grants-mbp {
  position: relative;
  width: 100%;
  line-height: 0;
  user-select: none;
}

.grants-mbp__photo {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

/* LCD overlay — top corners match lid glass; bottom meets the chin square */
.grants-screen {
  position: absolute;
  left: var(--mbp-screen-left);
  top: var(--mbp-screen-top);
  width: var(--mbp-screen-width);
  height: var(--mbp-screen-height);
  z-index: 2;
  overflow: hidden;
  border-radius: 1.8% 1.8% 0 0;
  pointer-events: auto;
  background: #000;
}

.grants-screen__notch {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 60;
  width: 11.8%;
  height: 5.1%;
  border-radius: 0 0 0.85em 0.85em;
  background: #000;
  transform: translateX(-50%);
  pointer-events: none;
}

.grants-screen__notch::after {
  content: '';
  position: absolute;
  top: 46%;
  left: 50%;
  width: 0.38em;
  height: 0.38em;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #3a4555, #0a0c10 70%);
  transform: translate(-50%, -50%);
}

.grants-os {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* Sequoia / Sonoma-style abstract wallpaper */
  background:
    radial-gradient(90% 70% at 92% 108%, #5eb1ff 0%, transparent 55%),
    radial-gradient(70% 60% at 78% 95%, #1a5fb4 0%, transparent 50%),
    radial-gradient(55% 45% at 60% 85%, #0b3d7a 0%, transparent 55%),
    radial-gradient(40% 35% at 40% 70%, #082a5c 0%, transparent 60%),
    linear-gradient(165deg, #061422 0%, #0a2748 42%, #050d18 100%);
  background-color: #071525;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
  color: #f5f5f7;
  font-size: clamp(11px, 1.05vw, 14px);
  cursor: default;
}

.grants-menubar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: clamp(14px, 3.6%, 22px);
  padding: 0 11.5% 0 0.55em;
  background: rgba(30, 30, 32, 0.55);
  backdrop-filter: blur(22px) saturate(1.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family:
    'SF Pro Text',
    'SF Pro Display',
    -apple-system,
    BlinkMacSystemFont,
    'Helvetica Neue',
    Helvetica,
    Arial,
    sans-serif;
  font-size: clamp(9px, 1.35vw, 12px);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.92);
  pointer-events: none;
}

.grants-menubar__left,
.grants-menubar__right {
  display: flex;
  align-items: center;
  gap: 0.85em;
  min-width: 0;
  height: 100%;
}

.grants-menubar__apple {
  display: block;
  width: 0.95em;
  height: 1.15em;
  margin-right: 0.15em;
  object-fit: contain;
  opacity: 0.95;
  flex: 0 0 auto;
}

.grants-menubar__item {
  line-height: 1;
  white-space: nowrap;
  opacity: 0.92;
}

.grants-menubar__item.is-bold {
  font-weight: 600;
}

.grants-menubar__item:nth-child(n + 5) {
  display: none;
}

@media (min-width: 900px) {
  .grants-menubar__item:nth-child(n + 5) {
    display: inline;
  }
}

.grants-menubar__pill {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
  font-weight: 400;
  opacity: 0.92;
}

.grants-window {
  position: absolute;
  z-index: 20;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--term-bg);
  border-radius: 0.65em;
  box-shadow:
    0 22px 55px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* ~4/5 of the desktop, slightly high-centered like a focused app */
.grants-window--term {
  left: 10%;
  top: 11%;
  width: 80%;
  height: 80%;
}

/* Terminal.app titlebar */
.grants-window__chrome {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 1.85em;
  padding: 0 0.75em;
  background: linear-gradient(180deg, #3a3a3c 0%, #2c2c2e 100%);
  border-bottom: 1px solid #1a1a1a;
  cursor: default;
}

.grants-window__traffic {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 0.45em;
  padding-left: 0.15em;
}

.grants-traffic {
  width: 0.72em;
  height: 0.72em;
  padding: 0;
  border: 0;
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 0.5px rgba(0, 0, 0, 0.25),
    inset 0 -0.5px 0.5px rgba(0, 0, 0, 0.35);
}

.grants-traffic--inert {
  cursor: default;
  pointer-events: none;
}

.grants-traffic--close {
  background: #ff5f57;
}

.grants-traffic--min {
  background: #febc2e;
}

.grants-traffic--max {
  background: #28c840;
}

.grants-window__title {
  justify-self: center;
  max-width: 36%;
  font-size: 0.78em;
  font-weight: 510;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  text-align: center;
}

.grants-window__chrome-spacer {
  justify-self: end;
  width: 4.2em;
}

.grants-term {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--term-bg);
  font-family: 'SF Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--term-text);
  cursor: text;
}

.grants-term__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 0.65em 0.85em 0.85em;
  font-size: 0.92em;
  line-height: 1.45;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
  -webkit-overflow-scrolling: touch;
}

.grants-term__log {
  display: grid;
  gap: 0.04em;
}

.grants-term__row {
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 1.35em;
}

.grants-term__spacer {
  height: 0.4em;
}

.grants-term__cmd {
  color: #fff;
}

.grants-term__sys {
  color: rgba(232, 232, 232, 0.88);
}

.grants-term__ask {
  color: #7ec8ff;
}

.grants-term__hint,
.grants-term__dim {
  color: rgba(255, 255, 255, 0.38);
}

.grants-term__ok {
  color: var(--term-green);
}

.grants-term__warn {
  color: #f5c542;
}

.grants-term__err {
  color: #ff6b6b;
}

.grants-term__echo .grants-term__user {
  color: #fff;
}

.grants-term__prompt-echo,
.grants-term__prompt {
  color: var(--term-green);
  white-space: nowrap;
}

.grants-term__body a {
  color: #6cb6ff;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.grants-term__line {
  display: flex;
  align-items: baseline;
  gap: 0.4em;
  margin-top: 0.12em;
  min-width: 0;
}

.grants-term__input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: inherit;
  line-height: inherit;
  caret-color: var(--term-green);
  user-select: text;
  -webkit-user-select: text;
}

.grants-term__input::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.grants-safari {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #1e1e20;
  color: #f5f5f7;
}

.grants-safari__tabs {
  display: flex;
  gap: 0.15em;
  padding: 0.25em 0.4em 0;
  background: #2c2c2e;
  border-bottom: 1px solid rgba(0, 0, 0, 0.35);
}

.grants-safari__tab {
  margin: 0;
  padding: 0.35em 0.7em;
  border: 0;
  border-radius: 0.35em 0.35em 0 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font: inherit;
  font-size: 0.85em;
  cursor: pointer;
  max-width: 9em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.grants-safari__tab.is-active {
  background: #1e1e20;
  color: #fff;
}

.grants-safari__bar {
  display: flex;
  align-items: center;
  gap: 0.4em;
  margin: 0.4em 0.55em;
  padding: 0.3em 0.55em;
  border-radius: 999px;
  background: #2c2c2e;
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.7);
}

.grants-safari__url {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.grants-safari__page {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 1em 1.15em 1.25em;
}

.grants-safari__page h2 {
  margin: 0.15em 0 0.4em;
  font-size: 1.35em;
  letter-spacing: -0.02em;
}

.grants-safari__page p {
  margin: 0 0 0.7em;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95em;
}

.grants-safari__kicker {
  margin: 0;
  font-size: 0.8em;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64d2ff;
}

.grants-safari__cta {
  margin-top: 0.35em;
  padding: 0.45em 0.9em;
  border: 0;
  border-radius: 0.45em;
  background: #0a84ff;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.grants-safari__page a {
  color: #64d2ff;
}

.grants-notes {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 0.85em 1em 1.1em;
  font-size: 0.95em;
  line-height: 1.45;
}

.grants-notes h2 {
  margin: 0 0 0.45em;
  font-size: 1.25em;
  color: #8b6914;
}

.grants-notes ul {
  margin: 0 0 0.7em;
  padding-left: 1.1em;
}

.grants-notes__edit {
  margin: 0;
  min-height: 3em;
  padding: 0.4em 0.5em;
  border-radius: 0.35em;
  background: rgba(255, 255, 255, 0.45);
  outline: none;
}

.grants-dock {
  position: absolute;
  left: 50%;
  bottom: 0.45em;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  gap: 0.35em;
  padding: 0.35em 0.55em 0.45em;
  border-radius: 1em;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 8px 24px rgba(0, 0, 0, 0.35);
  transform: translateX(-50%);
}

.grants-dock__item {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.5em;
  height: 2.5em;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0.55em;
  background: transparent;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.grants-dock__item:hover,
.grants-dock__item:focus-visible {
  transform: translateY(-0.2em) scale(1.12);
  outline: none;
}

.grants-dock__item.is-running::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -0.28em;
  width: 0.28em;
  height: 0.28em;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  transform: translateX(-50%);
}

.grants-dock__icon {
  width: 100%;
  height: 100%;
  border-radius: 0.5em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.grants-dock__icon--finder {
  background: linear-gradient(180deg, #5ac8fa, #007aff);
}

.grants-dock__icon--term {
  background: linear-gradient(180deg, #3a3a3c, #1c1c1e);
}

.grants-dock__icon--term::after {
  content: '>_';
  display: grid;
  place-items: center;
  height: 100%;
  color: #39d353;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.7em;
  font-weight: 700;
}

.grants-dock__icon--safari {
  background:
    radial-gradient(circle at 50% 50%, #fff 0 16%, transparent 17%),
    conic-gradient(from 0deg, #0a84ff, #64d2ff, #0a84ff);
}

.grants-dock__icon--notes {
  background: linear-gradient(180deg, #f5d76e 0 24%, #fff8dc 24%);
}

@media (max-width: 720px) {
  .token-page--grants.cloud-page {
    max-width: none;
    padding-inline: var(--layout-gutter);
  }

  .grants-stage__header h1 {
    font-size: clamp(1.4rem, 6vw, 1.85rem);
  }

  .grants-desk {
    width: min(100%, 100%);
  }
}

/* Token tabs — portaled to body so page-motion transform/filter cannot trap them */
.token-page {
  padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
}

body.token-route .token-tabs,
.token-tabs[data-token-portal='1'] {
  position: fixed;
  left: 50%;
  bottom: calc(1.15rem + env(safe-area-inset-bottom, 0px));
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.22rem;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 100px;
  background: rgba(10, 10, 12, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  transform: translateX(-50%);
}

/* Sit above the mobile bottom tab bar, not under it */
body.has-nav-tabbar .token-page {
  padding-bottom: calc(var(--nav-tabbar-height) + 5rem);
}

body.has-nav-tabbar.token-route .token-tabs,
body.has-nav-tabbar .token-tabs[data-token-portal='1'] {
  bottom: calc(var(--nav-tabbar-height) + 0.55rem);
  z-index: 4400;
}

/* Still in the page tree before portal — keep layout from collapsing oddly */
.token-page > .token-tabs:not([data-token-portal='1']) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.token-tabs__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0 1.15rem;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.25s ease, background 0.25s ease;
}

.token-tabs__tab:hover {
  color: rgba(255, 255, 255, 0.88);
}

.token-tabs__tab.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.token-panel[hidden] {
  display: none !important;
}

.token-panel--leave {
  animation: token-panel-out 0.16s var(--ease-out-expo) both;
  pointer-events: none;
}

.token-panel--enter {
  animation: token-panel-in 0.38s var(--ease-out-expo) both;
}

@keyframes token-panel-out {
  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes token-panel-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Offers list skeleton — matches cinema showcase: tall viewport, then copy card below */
.offers-skeleton {
  display: grid;
  gap: 1rem;
  width: 100%;
}

.offers-page--cinema .offers-skeleton {
  margin-inline: calc(var(--layout-gutter) * -0.35);
}

.offers-skeleton__viewport {
  width: 100%;
  min-height: clamp(32rem, calc(100vh - var(--cloud-header-offset) - 2.5rem), 46rem);
  border-radius: clamp(1.25rem, 2.5vw, 1.75rem);
}

.offers-skeleton__chrome {
  padding-inline: clamp(0.25rem, 1vw, 0.75rem);
}

.offers-skeleton__progress {
  height: 2px;
  width: 100%;
  border-radius: 999px;
}

.offers-skeleton__card {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.35rem;
  width: 100%;
  padding: 1rem 1.15rem 1.05rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    rgba(10, 12, 14, 0.55);
}

.offers-skeleton__card-main {
  flex: 1 1 16rem;
  min-width: 0;
  display: grid;
  gap: 0.55rem;
}

.offers-skeleton__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.15rem;
}

.offers-skeleton__facts .cloud-skeleton {
  width: 7.5rem;
  height: 0.7rem;
}

.offers-skeleton__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.offers-skeleton__btn {
  height: 2.6rem;
  width: 8.5rem;
  border-radius: 100px;
}

.offers-skeleton__btn--ghost {
  width: 6.5rem;
  opacity: 0.7;
}

/* Offer detail skeleton */
.offer-detail-skeleton {
  display: grid;
  gap: 1.35rem;
  max-width: 52rem;
}

.offer-detail-skeleton__visual {
  width: 100%;
  min-height: clamp(14rem, 42vw, 22rem);
  border-radius: clamp(1rem, 2vw, 1.35rem);
}

.offer-detail-skeleton__copy {
  display: grid;
  gap: 0.75rem;
}

@media (max-width: 720px) {
  .offers-page--cinema .offers-skeleton {
    margin-inline: 0;
    padding-inline: var(--layout-gutter);
  }

  .offers-skeleton__viewport {
    min-height: 0;
    aspect-ratio: 16 / 10;
    border-radius: 1rem;
  }
}
