.app-deck {
  --deck-bg: #0e1420;
  --deck-surface: #171f2c;
  --deck-line: #303d50;
  --deck-ink: #f4f7f8;
  --deck-muted: #b7c3d1;
  --deck-cyan: #a1fff2;
  background: var(--deck-bg);
  color: var(--deck-ink);
}

.deck-home {
  margin-inline: auto;
  max-width: 1060px;
  padding: 54px clamp(24px, 5vw, 70px) 40px;
}

.deck-home h1,
.deck-home h2 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.045em;
}

.deck-intro {
  margin-bottom: 24px;
}

.deck-intro .deck-eyebrow {
  margin: 0 0 12px;
  color: var(--deck-cyan);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.deck-intro h1 {
  font-size: clamp(48px, 6.6vw, 78px);
  line-height: 1.01;
}

.deck-home p {
  color: var(--deck-muted);
}

.deck-intro > p:not(.deck-eyebrow) {
  margin: 14px 0 16px;
  font-size: 15px;
  line-height: 1.5;
}

.deck-home .deck-primary {
  border: 0;
  border-radius: 12px;
  background: var(--deck-cyan);
  color: #073530;
  min-height: 44px;
  padding-inline: 14px;
  gap: 16px;
  font-weight: 700;
}

.deck-home .deck-primary:hover {
  background: #cbfff8;
}

.deck-products {
  display: grid;
  gap: 10px;
}

.deck-feature,
.deck-tile {
  position: relative;
  border: 1px solid var(--deck-line);
  transition: border-color 180ms ease, background-color 180ms ease;
}

.deck-feature {
  display: flex;
  min-height: 282px;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  border-color: #615187;
  border-radius: 19px;
  background: #231b3d;
}

.deck-feature::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #1b102d22 0%, #1b102d61 42%, #1b102df0 100%);
  content: '';
}

.deck-feature-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 21%;
}

.deck-feature-category {
  position: absolute;
  inset: 14px auto auto 14px;
  padding: 4px 8px;
  border: 1px solid #694f93;
  border-radius: 6px;
  background: #382855;
  color: #efdcff;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.deck-feature-copy {
  padding: 28px 56px 22px 16px;
}

.deck-feature-copy .deck-icon {
  margin-bottom: 11px;
  background: #361e59;
}

.deck-feature h2 {
  margin: 0;
  font-size: clamp(25px, 4vw, 36px);
  line-height: 1.15;
}

.deck-feature p {
  margin: 3px 0 0;
  color: #e4d6ee;
  font-size: 13px;
  line-height: 1.4;
}

.deck-feature-arrow {
  position: absolute;
  right: 13px;
  bottom: 22px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #e5c9ff;
  color: #2d1045;
}

.deck-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.deck-tile {
  display: grid;
  align-content: start;
  min-height: 113px;
  padding: 11px 12px 12px;
  border-radius: 14px;
  background: var(--deck-surface);
}

.deck-feature:hover {
  border-color: #d5a6ff;
}

.deck-tile:hover {
  border-color: var(--tile-accent);
  background: #1c2635;
}

.deck-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
  background: var(--tile-bg);
}

.deck-icon img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.deck-tile-arrow {
  position: absolute;
  top: 17px;
  right: 11px;
  color: var(--tile-accent);
}

.deck-tile-arrow .icon,
.deck-feature-arrow .icon {
  width: 16px;
  height: 16px;
}

.deck-tile strong {
  margin-top: 9px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.deck-tile-description {
  margin-top: 5px;
  color: var(--deck-muted);
  font-size: 11px;
  line-height: 1.35;
}

.deck-services {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--deck-line);
}

.deck-services h2 {
  font-size: 22px;
  line-height: 1.2;
}

.deck-services p {
  margin: 5px 0 2px;
  font-size: 13px;
}

.deck-text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  color: var(--deck-cyan);
  font-size: 12px;
  font-weight: 600;
}

.deck-tabbar {
  display: none;
}

@media (min-width: 901px) {
  .deck-products {
    grid-template-columns: 1.18fr 1fr;
  }

  .deck-feature-copy {
    padding-bottom: 24px;
  }

  .deck-feature-arrow {
    right: 17px;
    bottom: 24px;
  }

  .deck-tile {
    padding: 16px;
    align-content: center;
  }

  .deck-tile strong {
    font-size: 16px;
  }

  .deck-tile-description {
    font-size: 12px;
  }
}

@media (max-width: 900px) {
  html {
    scroll-padding-bottom: calc(67px + env(safe-area-inset-bottom));
  }

  .app-deck .mobile-header {
    position: relative;
    height: auto;
    min-height: 75px;
    padding: max(15px, env(safe-area-inset-top)) 20px 15px;
    justify-content: start;
    gap: 11px;
    background: var(--deck-bg);
    border-bottom: 1px solid #273547;
  }

  .app-deck .mobile-header .wordmark {
    color: var(--deck-ink);
    font-family: var(--sans);
    font-size: clamp(17px, 5vw, 20px);
    font-weight: 700;
    letter-spacing: -0.045em;
    white-space: nowrap;
  }

  .app-deck .mobile-header .wordmark > span {
    color: var(--deck-cyan);
  }

  .app-deck .mobile-header .wordmark small {
    display: inline;
    margin-left: 6px;
    color: var(--deck-ink);
    letter-spacing: 0.1em;
  }

  .app-deck .mobile-header .icon-button {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 1px solid var(--deck-line);
    border-radius: 13px;
    background: var(--deck-surface);
  }

  .app-deck .mobile-header a.icon-button {
    margin-left: auto;
    border-radius: 50%;
    background: #202c3b;
    color: var(--deck-cyan);
  }

  .deck-home {
    padding: 21px 20px 12px;
    max-width: 540px;
  }

  .deck-intro h1 {
    font-size: clamp(38px, 11.8vw, 52px);
  }

  .deck-intro > p:not(.deck-eyebrow) {
    font-size: 13px;
  }

  .deck-feature {
    min-height: 224px;
  }

  .page-shell {
    padding-bottom: calc(60px + env(safe-area-inset-bottom));
  }

  .deck-tabbar {
    display: grid;
    position: fixed;
    z-index: 35;
    inset: auto 0 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: 56px;
    border-top: 1px solid #2e3d4f;
    padding: 4px max(8px, env(safe-area-inset-right)) max(5px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    background: #121a26;
  }

  .deck-tabbar a {
    display: grid;
    min-height: 44px;
    justify-items: center;
    align-content: center;
    gap: 2px;
    border-radius: 8px;
    color: #bcc8d8;
    font-size: 10px;
    font-weight: 600;
  }

  .deck-tabbar a > span {
    display: grid;
    width: 48px;
    height: 25px;
    place-items: center;
    border-radius: 999px;
  }

  .deck-tabbar .icon {
    width: 19px;
    height: 19px;
  }

  .deck-tabbar a[aria-current] {
    color: #a1fff2;
  }

  .deck-tabbar a[aria-current] > span {
    background: #233f46;
  }
}
