/* Kargo 2 — home page. Loaded after site.css. */

.section {
  padding-block: var(--space-section);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  font-weight: 800;
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-ink);
}

.kicker::before {
  content: "";
  width: 1.75rem;
  height: 4px;
  background: var(--amber);
  border-radius: 2px;
}

.section-head {
  display: grid;
  gap: var(--space-4);
  max-width: 44rem;
  margin-bottom: var(--space-7);
}

.section-head h2 {
  font-size: var(--text-h2);
}

.section-head p:not(.kicker) {
  font-size: var(--text-lead);
  color: var(--ink-soft);
}

/* ── Hero ───────────────────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  padding-top: var(--space-5);
}

.hero__grid {
  display: grid;
  gap: var(--space-7);
  align-items: center;
  padding-bottom: var(--space-7);
}

.hero__copy {
  display: grid;
  gap: var(--space-5);
  justify-items: start;
}

.hero__title {
  display: grid;
  gap: 0.02em;
  font-size: var(--text-hero);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.hero__line {
  display: flex;
  align-items: center;
  gap: 0.22em;
}

.hero__line .parcel {
  --size: 0.66em;
  margin-top: -0.12em;
}

.hero__line:nth-child(2) {
  padding-left: 0.5em;
}

.hero__line:nth-child(3) {
  padding-left: 1em;
  color: var(--teal-deep);
}

.hero__lead {
  max-width: 34rem;
  font-size: var(--text-lead);
  color: var(--ink-soft);
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  margin: var(--space-2) 0 0;
  padding: 0;
}

.facts div {
  display: grid;
}

.facts dt {
  order: 2;
  font-weight: 800;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.facts dd {
  order: 1;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem);
  line-height: 1;
}

.hero__visual {
  position: relative;
  justify-self: center;
  width: min(74%, 20rem);
  margin-inline: auto;
}

.phone {
  position: relative;
  padding: 0.55rem;
  background: var(--ink);
  border-radius: 2.4rem;
  box-shadow: 0 10px 0 #0d1328, var(--shadow-deep);
}

.phone img {
  width: 100%;
  border-radius: 1.9rem;
}

.hero .phone {
  transform: rotate(3deg);
}

.hero__parcel {
  position: absolute;
  left: -16%;
  bottom: 7%;
  z-index: 2;
  width: 44%;
  transform: rotate(-9deg);
  filter: drop-shadow(0 14px 14px rgba(27, 36, 64, 0.3));
}

.hero__ticket {
  position: absolute;
  top: -1.2rem;
  right: -4%;
  z-index: 2;
  padding: 0.45rem 0.85rem 0.45rem 1.45rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  white-space: nowrap;
  background: var(--star);
  border-radius: 6px 12px 12px 6px;
  box-shadow: 0 4px 0 var(--star-lip), var(--shadow-soft);
  transform: rotate(8deg);
}

.hero__ticket::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: -0.25rem;
  background: var(--cream);
  border: 2px solid var(--star-lip);
  border-radius: 50%;
}

/* Parcels riding the belt into the page (once). */
.hero__belt {
  position: relative;
  margin-top: -1.4rem;
}

.belt-riders {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  display: none;
  gap: 0.9rem;
  padding-left: var(--gutter);
  pointer-events: none;
}

@media (min-width: 48rem) {
  .belt-riders {
    display: flex;
  }
}

.belt-riders .parcel {
  --size: 2.4rem;
  margin-bottom: -0.15rem;
}

@media (prefers-reduced-motion: no-preference) {
  .belt-riders .parcel {
    animation: ride-in 900ms var(--ease-out) both;
  }
  .belt-riders .parcel:nth-child(2) {
    animation-delay: 120ms;
  }
  .belt-riders .parcel:nth-child(3) {
    animation-delay: 240ms;
  }
  .hero__parcel {
    animation: drop-in 700ms var(--ease-pop) 200ms both;
  }
}

@keyframes ride-in {
  from {
    opacity: 0;
    transform: translateX(-9rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes drop-in {
  from {
    opacity: 0;
    transform: translateY(-2.5rem) rotate(-24deg);
  }
  to {
    opacity: 1;
    transform: rotate(-9deg);
  }
}

@media (min-width: 64rem) {
  .hero__grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-6);
    padding-bottom: 0;
  }
  .hero__copy {
    padding-bottom: 5.5rem;
  }
  .belt-riders {
    padding-left: calc(50% - 4rem);
  }
  .hero__parcel {
    left: -24%;
  }
  .hero__visual {
    width: min(100%, 22rem);
    margin-bottom: -3.5rem;
  }
  .hero__belt {
    margin-top: 0;
    z-index: -1;
  }
}

/* ── How a shift works ──────────────────────────────────────────────────────────────── */

.belt-steps {
  position: relative;
  display: grid;
  gap: var(--space-4);
  margin: 0;
  padding: var(--space-4);
  list-style: none;
  background: var(--belt);
  border-radius: var(--r-xl);
  box-shadow: 0 var(--lip-lg) 0 #252c47, var(--shadow-lifted);
}

.belt-steps > li {
  padding: var(--space-3);
  border: 3px dashed var(--belt-roller);
  border-radius: var(--r-lg);
  background: var(--belt-slot);
}

.step {
  display: grid;
  align-content: start;
  gap: var(--space-3);
  height: 100%;
  padding: var(--space-5);
  background: var(--cream-hi);
  border-radius: var(--r-md);
  box-shadow: 0 var(--lip) 0 var(--cream-lip);
}

.step__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.step__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.25rem;
  line-height: 0.8;
  color: var(--cream-lip);
}

.step p {
  color: var(--ink-soft);
}

.rules {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.rule {
  display: grid;
  gap: var(--space-4);
  align-content: start;
  padding: var(--space-6) var(--space-5);
  border-radius: var(--r-xl);
}

.rule p {
  color: var(--ink-soft);
}

.rule--strikes {
  background: #ffe7e3;
  box-shadow: 0 var(--lip) 0 #f2c3bb;
}

.rule--stars {
  background: #fff1c4;
  box-shadow: 0 var(--lip) 0 #edd187;
}

.icon-row {
  display: flex;
  gap: var(--space-2);
}

.icon-row .icon {
  width: 2.6rem;
  height: 2.6rem;
}

.icon-row--hearts .icon {
  fill: var(--coral);
  filter: drop-shadow(0 3px 0 var(--coral-lip));
}

.icon-row--hearts .icon:last-child {
  fill: #e6c9c3;
  filter: drop-shadow(0 3px 0 #cfaaa2);
}

.icon-row--stars .icon {
  fill: var(--star);
  filter: drop-shadow(0 3px 0 var(--star-lip));
}

.checklist {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3);
  align-items: start;
}

.checklist .icon {
  width: 1.6rem;
  height: 1.6rem;
  padding: 0.2rem;
  fill: var(--cream-hi);
  background: var(--success-lip);
  border-radius: 50%;
}

.note {
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--ink);
}

@media (min-width: 48rem) {
  .belt-steps {
    grid-template-columns: repeat(3, 1fr);
    padding: var(--space-5);
  }
  .rules {
    grid-template-columns: 5fr 7fr;
  }
}

/* ── Route: five worlds ─────────────────────────────────────────────────────────────── */

.route {
  background: var(--cream-deep);
  box-shadow: inset 0 6px 0 var(--cream-lip);
}

.route__head {
  display: grid;
  gap: var(--space-4);
  align-items: end;
  margin-bottom: var(--space-7);
}

.route__count {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-giant);
  line-height: 0.78;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-shadow: 0 0.07em 0 var(--amber);
}

.route__head .section-head {
  margin-bottom: 0;
}

.worlds {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4) var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.world {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 14;
  border-radius: var(--r-xl);
  background: var(--cream);
  box-shadow: 0 var(--lip-lg) 0 var(--world-lip, var(--cream-lip)), var(--shadow-lifted);
  isolation: isolate;
}

.world:nth-child(even) {
  margin-top: var(--space-6);
}

.world:last-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 10;
  margin-top: 0;
}

.world img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
  z-index: -1;
}

.world__label {
  position: absolute;
  left: 0;
  right: 0;
  top: 38%;
  display: grid;
  justify-items: center;
  gap: var(--space-1);
  padding-inline: var(--space-2);
  text-align: center;
}

.world:last-child .world__label {
  top: 42%;
}

.world h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
  line-height: 1;
  color: var(--ink);
}

.world__range {
  padding: 0.2rem 0.55rem;
  font-weight: 800;
  font-size: clamp(0.75rem, 0.68rem + 0.3vw, 0.875rem);
  white-space: nowrap;
  color: var(--cream-hi);
  background: var(--world-accent, var(--amber-lip));
  border-radius: var(--r-pill);
  box-shadow: 0 3px 0 var(--world-lip, var(--amber-lip));
  font-variant-numeric: tabular-nums;
}

.world__vehicle {
  font-weight: 800;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.world--depo {
  --world-accent: var(--w-depo-lip);
  --world-lip: #6e3409;
}
.world--liman {
  --world-accent: var(--w-liman-lip);
  --world-lip: #075866;
}
.world--havaalani {
  --world-accent: var(--w-havaalani-lip);
  --world-lip: #2b4398;
}
.world--tren {
  --world-accent: var(--w-tren-lip);
  --world-lip: #2c5322;
}
.world--uzay {
  --world-accent: var(--w-uzay-lip);
  --world-lip: #0e0b29;
  /* Painted night sky; also what shows if the picture does not load. */
  background: #3a2f72;
}
.world--uzay h3 {
  color: var(--on-dark);
}
.world--uzay .world__vehicle {
  color: var(--on-dark);
  text-shadow: 0 1px 3px rgba(19, 26, 49, 0.6);
}

.mechanics {
  margin-top: var(--space-7);
  max-width: 50rem;
  font-size: var(--text-lead);
  color: var(--ink-soft);
}

@media (min-width: 48rem) {
  .route__head {
    grid-template-columns: auto 1fr;
    gap: var(--space-6);
  }
  .worlds {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .world:nth-child(even) {
    margin-top: 0;
  }
  .world:nth-child(2) {
    margin-top: var(--space-6);
  }
  .world:last-child {
    grid-column: span 2;
    aspect-ratio: auto;
  }
}

@media (min-width: 64rem) {
  .worlds {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--space-4);
    padding-bottom: var(--space-7);
  }
  .worlds::before {
    content: "";
    position: absolute;
    left: 4%;
    right: 4%;
    top: 50%;
    border-top: 5px dotted var(--cream-lip);
    z-index: -1;
  }
  .world,
  .world:nth-child(2),
  .world:last-child {
    grid-column: auto;
    aspect-ratio: 9 / 15;
    margin-top: 0;
  }
  .world:nth-child(even) {
    transform: translateY(var(--space-7));
  }
  .world:last-child .world__label {
    top: 38%;
  }
}

