/*
 * Public landing page (A1). Full-bleed bands (hero, the dark referral
 * walkthrough) break out of the landing column; the layout clips the page's
 * x-overflow so they never cause a sideways scroll. Every animation sits
 * behind prefers-reduced-motion, and the page reads the same with none of it.
 *
 * Token vars only — enforced by test/lint/css_token_lint_test.rb.
 */

.landing {
  display: flex;
  flex-direction: column;
  gap: var(--space-20);
}

@media (min-width: 64rem) {
  .landing {
    gap: calc(var(--space-20) * 1.5);
  }
}

/* Full-bleed: as wide as the viewport, whatever column it sits in. */
.landing-hero-band,
.landing-dark {
  position: relative;
  isolation: isolate;
  margin-inline: calc(50% - 50vw);
  overflow: hidden;
}

/* Anchored sections stop clear of the sticky header. */
.landing-anchor {
  scroll-margin-top: var(--space-20);
}

/* Header — sticky glass bar with section links on desktop. */

.landing-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: var(--color-surface);
  border-bottom: var(--border-glass);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.landing-header__sections {
  display: none;
  gap: var(--space-8);
  font-size: var(--text-sm);
  font-weight: 500;
}

.landing-header__sections a {
  color: var(--color-ink-muted);
  transition: color var(--duration-fast) var(--ease-out);
}

.landing-header__sections a:hover {
  color: var(--color-ink);
}

@media (min-width: 64rem) {
  .landing-header__sections {
    display: flex;
  }
}

/* Shared type */

.landing-kicker {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent-pressed);
}

.landing-kicker--on-dark {
  color: var(--color-accent-300);
}

.landing-section__title {
  font-size: var(--text-section);
  line-height: var(--text-section--line-height);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.landing-section__lede {
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--color-ink-muted);
  text-wrap: pretty;
}

.landing-section__lede--on-dark {
  color: var(--color-accent-100);
}

.landing-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

.landing-intro {
  display: flex;
  max-width: 46rem;
  flex-direction: column;
  gap: var(--space-4);
  color: var(--color-ink);
}

.landing-intro--centred {
  align-self: center;
  align-items: center;
  text-align: center;
}

/* Hero */

.landing-hero-band {
  margin-top: calc(var(--space-12) * -1);
  padding: var(--space-16) var(--space-4) var(--space-12);
  background: linear-gradient(180deg, var(--color-accent-50), var(--color-bg));
}

.landing-glow {
  position: absolute;
  z-index: -1;
  border-radius: var(--radius-round);
  filter: blur(var(--space-20));
  opacity: 0.55;
  pointer-events: none;
}

.landing-glow--blue {
  top: -10%;
  right: -10%;
  width: 46rem;
  height: 46rem;
  background: var(--color-accent-300);
}

.landing-glow--orange {
  top: 30%;
  right: 30%;
  width: 22rem;
  height: 22rem;
  background: var(--color-warning);
  opacity: 0.35;
}

.landing-glow--green {
  bottom: -12rem;
  left: -8rem;
  width: 28rem;
  height: 28rem;
  background: var(--color-success);
  opacity: 0.25;
}

.landing-hero {
  display: grid;
  gap: var(--space-12);
  max-width: var(--shell-landing-col);
  margin-inline: auto;
}

@media (min-width: 48rem) {
  .landing-hero-band {
    padding-inline: var(--space-6);
    padding-top: var(--space-20);
  }
}

.landing-eyebrow {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border: var(--border-glass);
  border-radius: var(--radius-pill);
  background: var(--color-surface-hover);
  box-shadow: var(--shadow-xs);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-ink);
}

.landing-eyebrow__dot {
  width: var(--space-2);
  height: var(--space-2);
  border-radius: var(--radius-round);
  background: var(--color-success);
  box-shadow: 0 0 0 var(--space-1) var(--color-success-subtle);
}

.landing-hero__title {
  font-size: var(--text-hero);
  line-height: var(--text-hero--line-height);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--color-ink);
  text-wrap: balance;
}

/* "mates", underlined with the deck's orange in a hand-drawn stroke. */
.landing-swoosh {
  position: relative;
  white-space: nowrap;
  color: var(--color-accent-strong);
}

.landing-swoosh::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -0.08em;
  height: 0.22em;
  background: var(--color-warning);
  border-radius: var(--radius-pill);
  transform: rotate(-1.5deg);
  transform-origin: left;
  z-index: -1;
  opacity: 0.85;
}

.landing-hero__lede {
  max-width: 34rem;
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--color-ink-muted);
  text-wrap: pretty;
}

.landing-proof {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-ink);
}

.landing-proof li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.landing-proof svg {
  color: var(--color-success-strong);
}

.landing-hero__art {
  position: relative;
  padding-block: var(--space-6) var(--space-16);
}

.landing-hero__desktop {
  width: 100%;
}

@media (min-width: 64rem) {
  .landing-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: var(--space-12);
  }

  .landing-hero__art {
    padding-block: var(--space-12);
  }

  .landing-hero__desktop {
    width: 118%;
    max-width: none;
  }
}

/* Brand shapes on the closing band: the deck's orange and green. */

.landing-shape {
  position: absolute;
  border-radius: var(--radius-round);
  pointer-events: none;
}

.landing-shape--closing-orange {
  top: calc(var(--space-20) * -1);
  right: calc(var(--space-12) * -1);
  width: 14rem;
  height: 14rem;
  background: var(--color-warning);
}

.landing-shape--closing-green {
  left: calc(var(--space-12) * -1);
  bottom: calc(6rem * -1);
  width: 10rem;
  height: 10rem;
  background: var(--color-success);
}

/* Device frames around real screens: a dark bezel for the laptop, and a phone
   with a status strip and camera island above the screenshot. */

.landing-bezel {
  display: block;
  overflow: hidden;
  border: var(--space-2) solid var(--color-ink);
  border-radius: var(--radius-md);
  background: var(--color-ink);
  box-shadow: var(--shadow-lg);
}

.landing-bezel img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-xs);
}

.landing-phone {
  position: relative;
  display: block;
  overflow: hidden;
  /* Just a sliver above the screenshot: the camera island sits over the
     screen's own top margin, between the logo and the bell, as on a real
     phone. A taller strip doubles up with that margin and reads as a gap. */
  padding-top: 3%;
  border: var(--space-2) solid var(--color-ink);
  border-radius: var(--radius-lg);
  background: var(--color-surface-inset-solid);
  box-shadow: var(--shadow-lg);
}

/* Percentage margins resolve against the width, so the island keeps the same
   spot whatever the phone's height. Above the screenshot, which follows it. */
.landing-phone::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  left: 50%;
  margin-top: 2.5%;
  width: 26%;
  aspect-ratio: 4 / 1;
  border-radius: var(--radius-pill);
  background: var(--color-ink);
  transform: translateX(-50%);
}

.landing-phone img {
  display: block;
  width: 100%;
  height: auto;
}

.landing-hero__phone {
  position: absolute;
  right: var(--space-2);
  bottom: 0;
  width: 34%;
  max-width: 200px;
}

@media (min-width: 64rem) {
  .landing-hero__phone {
    right: calc(var(--space-12) * -1);
    width: 36%;
  }
}

/* Notification cards floating over the hero's screens. */

.landing-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  max-width: 20rem;
  padding: var(--space-3) var(--space-4);
  border: var(--border-glass);
  border-radius: var(--radius-md);
  background: var(--color-surface-hover);
  backdrop-filter: blur(var(--glass-blur-sm));
  -webkit-backdrop-filter: blur(var(--glass-blur-sm));
  box-shadow: var(--shadow-lg);
  font-size: var(--text-sm);
  line-height: 1.3;
  color: var(--color-ink);
}

.landing-chip strong {
  display: block;
  font-weight: 600;
}

.landing-chip__sub {
  color: var(--color-ink-muted);
}

.landing-chip__icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: var(--space-10);
  height: var(--space-10);
  border-radius: var(--radius-sm);
}

.landing-chip__icon--blue {
  background: var(--color-accent-100);
  color: var(--color-accent-pressed);
}

.landing-chip__icon--green {
  background: var(--color-success-subtle);
  color: var(--color-success-ink);
}

.landing-chip__icon--orange {
  background: var(--color-warning-subtle);
  color: var(--color-warning-ink);
}

.landing-chip--one {
  top: 0;
  left: calc(var(--space-2) * -1);
}

.landing-chip--two {
  bottom: var(--space-4);
  left: var(--space-2);
}

.landing-chip--three {
  display: none;
}

@media (min-width: 40rem) {
  .landing-chip--three {
    display: flex;
    top: 40%;
    left: 36%;
  }
}

@media (min-width: 64rem) {
  .landing-chip--one {
    top: var(--space-4);
    left: calc(var(--space-12) * -1);
  }

  .landing-chip--two {
    bottom: var(--space-6);
    left: calc(var(--space-8) * -1);
  }

  .landing-chip--three {
    top: 46%;
    left: 30%;
  }
}

/* App store badges: official artwork at one shared height, never restyled. */

.landing-stores {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.landing-store-badge {
  display: block;
  border-radius: var(--radius-sm);
}

.landing-store-badge img {
  display: block;
  width: auto;
  height: var(--space-12);
}

/* The problem: before and after, one card per pain. */

.landing-contrast {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 48rem) {
  .landing-contrast {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.landing-contrast__card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-surface-solid);
  box-shadow: var(--shadow-sm);
}

.landing-contrast__before,
.landing-contrast__after {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-6);
  font-size: var(--text-base);
  line-height: 1.5;
}

.landing-contrast__before {
  flex: 1;
  color: var(--color-ink-muted);
}

.landing-contrast__after {
  flex: 1;
  background: var(--color-accent-50);
  border-top: var(--border-hairline);
  color: var(--color-ink);
  font-weight: 500;
}

.landing-contrast__mark {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: var(--space-6);
  height: var(--space-6);
  border-radius: var(--radius-round);
}

.landing-contrast__mark--before {
  background: var(--color-danger-subtle);
  color: var(--color-danger-ink);
}

.landing-contrast__mark--after {
  background: var(--color-success);
  color: var(--color-on-accent);
}

/* The referral walkthrough, on the ink band. */

.landing-dark {
  padding: var(--space-20) var(--space-4);
  background: var(--color-ink);
  color: var(--color-on-accent);
}

@media (min-width: 48rem) {
  .landing-dark {
    padding-inline: var(--space-6);
  }
}

.landing-glow--dark-blue {
  top: -30%;
  left: -15%;
  width: 40rem;
  height: 40rem;
  background: var(--color-accent-strong);
  opacity: 0.45;
}

.landing-dark__inner {
  max-width: var(--shell-landing-col);
  margin-inline: auto;
}

.landing-journey {
  display: grid;
  gap: var(--space-12);
}

@media (min-width: 64rem) {
  .landing-journey {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: var(--space-20);
  }
}

.landing-journey__total {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-6);
  border: 1px solid var(--color-border-glass);
  border-radius: var(--radius-lg);
  background: var(--color-overlay);
}

.landing-journey__total-label {
  font-size: var(--text-sm);
  color: var(--color-accent-200);
}

.landing-journey__figure {
  font-size: var(--text-figure);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--color-success);
}

.landing-journey__bar {
  display: block;
  height: var(--space-2);
  margin-top: var(--space-2);
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: var(--color-overlay);
}

.landing-journey__bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-success));
  transform-origin: left;
  transition: transform var(--duration-reveal) var(--ease-out);
}

.landing-journey__stages {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.landing-journey__stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--color-border-glass);
  border-radius: var(--radius-md);
  background: var(--color-overlay);
  opacity: 0.45;
  transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-spring),
    background-color var(--duration-slow) var(--ease-out), border-color var(--duration-slow) var(--ease-out);
}

.landing-journey__stage.is-done {
  opacity: 1;
}

.landing-journey__stage.is-current {
  border-color: var(--color-success);
  transform: scale(1.02);
}

.landing-journey__node {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--space-8);
  height: var(--space-8);
  border-radius: var(--radius-round);
  background: var(--color-ink-muted);
  color: var(--color-on-accent);
  transition: background-color var(--duration-slow) var(--ease-out);
}

.landing-journey__stage.is-done .landing-journey__node {
  background: var(--color-success);
}

.landing-journey__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  font-size: var(--text-sm);
  color: var(--color-accent-200);
}

.landing-journey__text strong {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-on-accent);
}

.landing-journey__amount {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--color-ink-disabled);
}

.landing-journey__stage.is-done .landing-journey__amount {
  color: var(--color-success);
}

/* How it works: tabs, each with its screens beside numbered steps. */

.landing-tabs {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.landing-tabs > * {
  width: 100%;
}

.landing-tabs [role="tablist"] {
  justify-content: center;
}

.landing-how {
  display: grid;
  gap: var(--space-10);
  padding-top: var(--space-10);
}

@media (min-width: 64rem) {
  .landing-how {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    gap: var(--space-16);
  }
}

.landing-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  counter-reset: landing-step;
}

.landing-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding-left: var(--space-16);
  counter-increment: landing-step;
}

.landing-step::before {
  content: counter(landing-step);
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--space-10);
  height: var(--space-10);
  border-radius: var(--radius-sm);
  background: var(--color-accent-strong);
  color: var(--color-on-accent);
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.landing-steps--referrer .landing-step::before {
  background: var(--color-success-strong);
}

/* The connecting line between the step numbers. */
.landing-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: var(--space-12);
  bottom: calc(var(--space-4) * -1);
  left: calc(var(--space-5) - 1px);
  width: 2px;
  background: var(--color-border-strong);
}

.landing-step__title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-ink);
}

.landing-step__body {
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--color-ink-muted);
}

.landing-laptop {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.landing-laptop__screen {
  width: 88%;
  border-bottom-width: var(--space-3);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  box-shadow: none;
}

.landing-laptop__base {
  display: block;
  width: 100%;
  height: var(--space-4);
  border-radius: var(--radius-xs) var(--radius-xs) var(--radius-md) var(--radius-md);
  background: var(--color-ink-disabled);
  box-shadow: var(--shadow-md);
}

.landing-referrers__phones {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
}

.landing-referrers__phones .landing-phone {
  width: 46%;
  max-width: 240px;
  max-height: 460px;
}

.landing-referrers__phones .landing-phone:nth-child(2) {
  margin-top: var(--space-12);
}

/* Reward calculator */

.landing-calc {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: var(--space-10);
  overflow: hidden;
  padding: var(--space-8) var(--space-6);
  border: var(--border-glass);
  border-radius: var(--radius-lg);
  background: var(--color-surface-solid);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 64rem) {
  .landing-calc {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: var(--space-16);
    padding: var(--space-16);
  }
}

.landing-glow--calc {
  right: -12rem;
  bottom: -12rem;
  width: 30rem;
  height: 30rem;
  background: var(--color-accent-200);
  opacity: 0.7;
}

.landing-calc__copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  color: var(--color-ink);
}

.landing-calc__fields {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

@media (min-width: 40rem) {
  .landing-calc__fields {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.landing-calc__result {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-accent-strong), var(--color-accent-pressed));
  box-shadow: var(--shadow-lg);
  color: var(--color-on-accent);
}

.landing-calc__label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-accent-100);
}

.landing-calc__figure {
  font-size: var(--text-figure);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.landing-calc__rate {
  font-size: var(--text-base);
  color: var(--color-accent-100);
}

.landing-calc__rate span {
  font-weight: 700;
  color: var(--color-on-accent);
}

.landing-calc__notes {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border-glass);
  font-size: var(--text-sm);
}

.landing-calc__notes li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Feature grid: a bento of tiles, two of them double width. */

.landing-bento {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 40rem) {
  .landing-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .landing-bento {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .landing-tile--wide {
    grid-column: span 2;
  }
}

.landing-tile {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-8);
  border: var(--border-glass);
  border-radius: var(--radius-lg);
  background: var(--color-surface-solid);
  box-shadow: var(--shadow-sm);
  color: var(--color-ink);
  transition: transform var(--duration-slow) var(--ease-out), box-shadow var(--duration-slow) var(--ease-out);
}

.landing-tile__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--space-12);
  height: var(--space-12);
  margin-bottom: var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--color-surface-sunken);
  color: var(--color-ink);
}

.landing-tile--blue .landing-tile__icon {
  background: var(--color-accent-strong);
  color: var(--color-on-accent);
}

.landing-tile--orange .landing-tile__icon {
  background: var(--color-warning);
  color: var(--color-warning-ink);
}

.landing-tile--green .landing-tile__icon {
  background: var(--color-success);
  color: var(--color-success-ink);
}

.landing-tile--violet .landing-tile__icon {
  background: var(--color-violet);
  color: var(--color-on-accent);
}

.landing-tile--blue {
  background: linear-gradient(160deg, var(--color-accent-50), var(--color-surface-solid) 60%);
}

.landing-tile--violet {
  background: linear-gradient(160deg, var(--color-violet-subtle), var(--color-surface-solid) 60%);
}

.landing-tile__title {
  font-size: var(--text-lg);
  font-weight: 600;
}

.landing-tile__body {
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--color-ink-muted);
}

.landing-tile__demo {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-4);
}

.landing-mini-stage {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3) var(--space-1) var(--space-1);
  border-radius: var(--radius-pill);
  background: var(--color-surface-inset-solid);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-ink-muted);
}

.landing-mini-stage__dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--space-6);
  height: var(--space-6);
  border-radius: var(--radius-round);
  background: var(--color-surface-sunken);
}

.landing-mini-stage--complete {
  background: var(--color-success-subtle);
  color: var(--color-success-ink);
}

.landing-mini-stage--complete .landing-mini-stage__dot {
  background: var(--color-success);
  color: var(--color-on-accent);
}

.landing-mini-stage--current {
  background: var(--color-warning-subtle);
  color: var(--color-warning-ink);
}

.landing-mini-stage--current .landing-mini-stage__dot {
  border: 2px solid var(--color-warning);
  background: var(--color-surface-solid);
}

/* Business type pictures: one row that scrolls sideways and snaps to a card.
   The block padding gives the hover lift and the shadow room inside the
   scroller, and the negative margin hands that room back to the layout. */

.landing-carousel {
  display: flex;
  gap: var(--space-4);
  margin: calc(var(--space-3) * -1);
  padding: var(--space-3);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--space-3);
}

/* Only once the arrows are there to replace it (landing_carousel_controller). */
.landing-carousel.is-enhanced {
  scrollbar-width: none;
}

.landing-carousel.is-enhanced::-webkit-scrollbar {
  display: none;
}

/* A card and a half on phones, so the next one shows there is more to swipe to. */
.landing-carousel > .landing-industry {
  flex: 0 0 62%;
  scroll-snap-align: start;
}

.landing-carousel__controls {
  display: flex;
  flex-shrink: 0;
  gap: var(--space-2);
}

@media (min-width: 40rem) {
  .landing-carousel > .landing-industry {
    flex-basis: calc((100% - var(--space-4) * 2) / 3);
  }
}

@media (min-width: 64rem) {
  .landing-carousel > .landing-industry {
    flex-basis: calc((100% - var(--space-4) * 3) / 4);
  }
}

.landing-industry {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-surface-solid);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-slow) var(--ease-out), box-shadow var(--duration-slow) var(--ease-out);
}

.landing-scene {
  display: block;
  width: 100%;
  height: auto;
}

.landing-industry__name {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-ink);
}

/* FAQ: heading beside the questions on desktop. */

.landing-faq__list {
  width: 100%;
}

@media (min-width: 64rem) {
  .landing-faq {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    align-items: start;
    gap: var(--space-16);
  }

  .landing-faq .landing-intro {
    position: sticky;
    top: var(--space-20);
  }
}

/* Closing call to action */

.landing-closing {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: var(--space-12) var(--space-6);
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 85% 0%, var(--color-accent-strong), transparent 55%), var(--color-ink);
  color: var(--color-on-accent);
}

.landing-closing .landing-shape {
  z-index: -1;
}

@media (min-width: 48rem) {
  .landing-closing {
    padding: var(--space-16) var(--space-12);
  }
}

.landing-closing__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.landing-closing__lede {
  max-width: 36rem;
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--color-accent-100);
}

.landing-closing__paths {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

@media (min-width: 48rem) {
  .landing-closing__paths {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.landing-closing__path {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-6);
  border: 1px solid color-mix(in srgb, var(--color-on-accent) 18%, transparent);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--color-on-accent) 8%, transparent);
  backdrop-filter: blur(var(--glass-blur-sm));
  -webkit-backdrop-filter: blur(var(--glass-blur-sm));
}

.landing-closing__path p {
  color: var(--color-accent-100);
}

.landing-closing__path > :last-child {
  margin-top: auto;
}

/* Motion */

@media (prefers-reduced-motion: no-preference) {
  .landing-reveal {
    transition: opacity var(--duration-reveal) var(--ease-out), transform var(--duration-reveal) var(--ease-out);
  }

  .landing-reveal.is-waiting {
    opacity: 0;
    transform: translateY(var(--space-6));
  }

  .landing-rise {
    animation: landing-rise var(--duration-reveal) var(--ease-out) both;
  }

  .landing-rise:nth-child(2) { animation-delay: calc(var(--duration-instant) * 1); }
  .landing-rise:nth-child(3) { animation-delay: calc(var(--duration-instant) * 2); }
  .landing-rise:nth-child(4) { animation-delay: calc(var(--duration-instant) * 3); }
  .landing-rise:nth-child(5) { animation-delay: calc(var(--duration-instant) * 4); }

  .landing-swoosh::after {
    animation: landing-swoosh var(--duration-reveal) var(--ease-out) both;
    animation-delay: var(--duration-reveal);
  }

  .landing-hero__desktop {
    animation: landing-rise var(--duration-reveal) var(--ease-out) both;
  }

  .landing-hero__phone {
    animation: landing-float var(--duration-float) var(--ease-in-out) infinite alternate;
  }

  .landing-chip {
    animation: landing-chip var(--duration-chip) var(--ease-spring) both;
  }

  .landing-chip--two {
    animation-duration: calc(var(--duration-chip) + var(--duration-reveal));
  }

  .landing-chip--three {
    animation-duration: calc(var(--duration-chip) + var(--duration-reveal) * 2);
  }

  .landing-calc__figure.is-updated {
    animation: landing-pop var(--duration-slow) var(--ease-spring);
  }

  .landing-tile:hover,
  .landing-industry:hover {
    transform: translateY(calc(var(--space-1) * -1));
    box-shadow: var(--shadow-md);
  }
}

@keyframes landing-rise {
  from {
    opacity: 0;
    transform: translateY(var(--space-4));
  }
}

@keyframes landing-swoosh {
  from {
    transform: rotate(-1.5deg) scaleX(0);
  }
}

@keyframes landing-float {
  to {
    transform: translateY(calc(var(--space-3) * -1));
  }
}

@keyframes landing-chip {
  0%, 40% {
    opacity: 0;
    transform: translateY(var(--space-4)) scale(0.96);
  }
}

@keyframes landing-pop {
  50% {
    transform: scale(1.04);
  }
}
