/* Home page. Prefixes: bn- (carousel), lp- (native hero slide), hm- (home sections).
   The hero is the page's one motion moment: a single entrance, no loops. */

/* ---- Carousel ---- */
.bn-banner { position: relative; border-radius: var(--sf-radius-lg); background: var(--sf-hero-bg); overflow: hidden; }
.bn-viewport { overflow: hidden; touch-action: pan-y; }
.bn-track { display: flex; align-items: stretch; transition: transform 0.5s var(--sf-ease); }
.bn-slide { position: relative; flex: 0 0 100%; min-width: 0; }
.bn-slide > img { width: 100%; height: auto; }
.bn-controls { position: absolute; right: var(--sf-space-3); bottom: var(--sf-space-3); display: flex; align-items: center; gap: var(--sf-space-1); padding: 2px; border-radius: var(--sf-radius-pill); background: var(--sf-hero-scrim); }
.bn-nav { display: grid; place-items: center; width: var(--sf-tap); height: var(--sf-tap); border-radius: 50%; color: var(--sf-hero-strong); }
.bn-nav:hover { background: var(--sf-hero-raise); }
.bn-nav:disabled { opacity: 0.5; cursor: default; }
.bn-nav .sf-icon { width: 18px; height: 18px; }
.bn-nav [data-bn-icon] { display: grid; }
.bn-dots { display: flex; align-items: center; }
.bn-dots button { position: relative; width: 24px; height: var(--sf-tap); }
.bn-dots button::after { content: ''; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; border-radius: var(--sf-radius-pill); background: var(--sf-hero-soft); transform: translate(-50%, -50%); transition: width var(--sf-duration) var(--sf-ease), background-color var(--sf-duration) var(--sf-ease); }
.bn-dots button.on::after { width: 18px; background: var(--sf-hero-strong); }
.sf-page .bn-banner:focus-visible, .sf-page .bn-banner :is(a, button):focus-visible { outline-color: var(--sf-hero-strong); }
.sf-page .bn-banner:focus-visible { outline-offset: 3px; outline-color: var(--sf-focus); }

/* ---- Native hero slide (fixed dark artwork in every theme) ---- */
.lp-hero {
  /* Re-point the tokens the buttons read, so components stay legible on the artwork. */
  --sf-strong: var(--sf-hero-strong);
  --sf-border-strong: var(--sf-hero-soft);
  --sf-panel-raised: var(--sf-hero-raise);
  position: relative;
  display: grid;
  gap: var(--sf-space-6);
  height: 100%;
  padding: var(--sf-space-8) var(--sf-space-5) calc(var(--sf-tap) + var(--sf-space-8));
  background: var(--sf-hero-bg);
  color: var(--sf-hero-soft);
  overflow: hidden;
}
.lp-hero--alt { background: var(--sf-hero-bg-alt); }
/* The spectrum line closes the hero. */
.lp-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--sf-gradient); transform-origin: left; animation: lp-line 0.9s var(--sf-ease) both; }
.lp-hero__copy { position: relative; z-index: 1; display: grid; gap: var(--sf-space-4); align-content: center; max-width: 34rem; }
.lp-hero__title { color: var(--sf-hero-strong); font-size: var(--sf-text-display); line-height: var(--sf-leading-heading); }
.lp-hero__title span { display: block; background: var(--sf-gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-hero__lead { max-width: 30rem; font-size: var(--sf-text-md); }
.lp-hero__actions { display: flex; flex-wrap: wrap; gap: var(--sf-space-3); margin-top: var(--sf-space-2); }
.lp-hero__actions .sf-btn { flex: 1 1 150px; }

.lp-hero__art { position: relative; height: 190px; justify-self: center; width: min(100%, 300px); font-family: var(--sf-font-numeric); pointer-events: none; }
.lp-card { position: absolute; top: 12px; width: 132px; height: 168px; padding: var(--sf-space-3); border: 1px solid var(--sf-hero-line); border-radius: var(--sf-radius-md); color: var(--sf-hero-strong); font-size: 10px; letter-spacing: 0.12em; }
.lp-card--back { left: 12%; background: linear-gradient(140deg, var(--sf-hero-card-a), var(--sf-hero-card-b)); transform: rotate(-12deg); animation: lp-card-back 0.8s var(--sf-ease) both; }
.lp-card--front { right: 12%; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(150deg, var(--sf-hero-card-b), var(--sf-hero-card-c)); box-shadow: var(--sf-shadow-2); transform: rotate(9deg); animation: lp-card-front 0.8s var(--sf-ease) 0.08s both; }
.lp-card__top, .lp-card__bottom { display: flex; align-items: center; justify-content: space-between; }
.lp-card__top i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid currentColor; opacity: 0.7; }
.lp-card b { font-weight: var(--sf-weight-medium); opacity: 0.75; }
.lp-card__mark { font-size: 56px; font-weight: var(--sf-weight-medium); letter-spacing: -0.04em; line-height: 1; text-align: center; }
.lp-card__chip { width: 24px; height: 18px; border: 1px solid var(--sf-hero-line); border-radius: 4px; background: var(--sf-hero-raise); }
@keyframes lp-card-back { from { opacity: 0; transform: translateY(18px) rotate(-4deg); } }
@keyframes lp-card-front { from { opacity: 0; transform: translateY(24px) rotate(2deg); } }
@keyframes lp-line { from { transform: scaleX(0); } }

/* ---- Announcement ---- */
.hm-notice { margin-top: var(--sf-space-4); }
.hm-notice__list { display: grid; gap: var(--sf-space-1); }

/* ---- Quick links: colour follows the role of the destination ---- */
.hm-quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sf-space-3); margin-top: var(--sf-space-4); }
.hm-quick__item { --quick: var(--sf-accent); --quick-tint: var(--sf-accent-tint); display: flex; flex-direction: column; gap: var(--sf-space-3); min-width: 0; padding: var(--sf-space-4); border: 1px solid var(--sf-border); border-radius: var(--sf-radius-md); background: var(--sf-panel); transition: border-color var(--sf-duration-fast) var(--sf-ease); }
.hm-quick__item--red { --quick: var(--sf-red); --quick-tint: var(--sf-red-tint); }
.hm-quick__item--blue { --quick: var(--sf-blue); --quick-tint: var(--sf-blue-tint); }
.hm-quick__item:hover { border-color: var(--quick); }
.hm-quick__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--sf-radius-sm); background: var(--quick-tint); color: var(--quick); }
.hm-quick__icon .sf-icon { width: 22px; height: 22px; }
.hm-quick__text { display: grid; min-width: 0; }
.hm-quick__text strong { color: var(--sf-strong); font-weight: var(--sf-weight-medium); }
.hm-quick__text small { color: var(--sf-muted); font-size: var(--sf-text-xs); }

/* ---- Steps: a real sequence, so it is numbered ---- */
.hm-steps { display: grid; gap: var(--sf-space-3); counter-reset: none; }
.hm-steps li { display: flex; gap: var(--sf-space-4); padding: var(--sf-space-4); border: 1px solid var(--sf-border); border-radius: var(--sf-radius-md); background: var(--sf-panel); }
.hm-steps__num { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--sf-panel-raised); color: var(--sf-accent); font-size: var(--sf-text-lg); font-weight: var(--sf-weight-bold); }
.hm-steps h3 { font-size: var(--sf-text-md); }
.hm-steps p { color: var(--sf-muted); font-size: var(--sf-text-sm); }

@media (min-width: 480px) {
  .hm-quick__item { flex-direction: row; align-items: center; }
  .lp-hero__actions .sf-btn { flex: 0 1 auto; }
}
@media (min-width: 768px) {
  .bn-controls { right: var(--sf-space-5); bottom: var(--sf-space-5); }
  .lp-hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; min-height: 400px; padding: var(--sf-space-12) var(--sf-space-10) var(--sf-space-16); }
  .lp-hero__art { height: 300px; width: min(100%, 420px); }
  .lp-card { top: 20px; width: 190px; height: 250px; padding: var(--sf-space-5); font-size: 12px; }
  .lp-card__mark { font-size: 88px; }
  .hm-quick { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sf-space-4); margin-top: var(--sf-space-5); }
  .hm-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sf-space-4); }
  .hm-steps li { flex-direction: column; padding: var(--sf-space-5); }
}
@media (min-width: 1024px) {
  .lp-hero { min-height: 440px; padding-inline: var(--sf-space-16); }
}
