/*
  Sticker homepage, part 1 of 2: the timeline sections. site.css holds the base, header,
  buttons, bands, cards, steps, chips, FAQ, close band and footer; home-motion.css holds
  every animation. --pad is the vertical padding of a beat, and each beat raises it
  at the wider breakpoints. This page keeps the Sticker draft's own px scale: 4, 8,
  12, 16, 24, 32, 48 and 72.
*/
:root {
  --pad: 48px;
}
.sprite {
  position: absolute;
  width: 0;
  height: 0;
}
/* each beat is a flat colour band from site.css */
.beat {
  position: relative;
  overflow-x: clip;
  border-top: 3px solid var(--text);
}
.beat-in {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  padding: var(--pad) 0 var(--pad) 44px;
}
.floats {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: clip;
  pointer-events: none;
}
.fl {
  position: absolute;
  top: 10px;
  right: 8px;
  will-change: transform;
}
.shape {
  display: block;
  width: var(--s, 64px);
  height: var(--s, 64px);
  color: var(--c, var(--accent-yellow));
  overflow: visible;
  stroke: var(--text);
  stroke-width: 3;
  stroke-linejoin: round;
}
.half-row {
  display: flex;
}
.half-row .shape {
  --s: 52px;
  width: 26px;
  margin-right: -2px;
}

/* spine: a thick tube that fills as you scroll; the dot pops in and pulses while its beat is active */
.spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 5px;
  width: 18px;
  border: 3px solid var(--text);
  border-block: 0;
  background: var(--surface);
}
.spine i {
  position: absolute;
  inset: 0;
  background: var(--primary);
  transform-origin: top;
  transform: scaleY(var(--p, 1));
}
.dot {
  position: absolute;
  left: 0;
  top: calc(var(--pad) + 10px);
  z-index: 2;
  width: 28px;
  height: 28px;
  border: 3px solid var(--text);
  border-radius: 50%;
  background: var(--surface);
}
.dot::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--primary);
}
.dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border: 3px solid var(--primary);
  border-radius: 50%;
  opacity: 0;
}

/* time stamps */
.time {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.time > span:first-child {
  display: inline-block;
  max-width: 100%;
  padding: 6px 14px 4px;
  border: 3px solid var(--text);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 5px 5px 0 var(--text);
  font: 400 1.75rem/1.1 var(--display);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transform: rotate(-3deg);
}
.time .num {
  font-size: 2.25rem;
  min-width: 5.6ch;
}
.time small {
  font: 700 0.8125rem/1.2 var(--body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.body {
  display: grid;
  gap: 16px;
  align-content: start;
  min-width: 0;
  padding-right: 10px;
}
.split,
.copy {
  display: grid;
  gap: 24px;
  align-content: start;
}
.action-link {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
}
.action-link .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
}
.action + .fine {
  margin-top: 8px;
}
.hero {
  --pad: 72px;
}
.l1 {
  display: block;
}
.cycle {
  display: inline-block;
  max-width: 100%;
  margin-top: 6px;
  padding: 2px 14px 0;
  border: 3px solid var(--text);
  border-radius: 18px;
  background: var(--primary);
  box-shadow: 6px 6px 0 var(--text);
  color: var(--on-primary);
  transform: rotate(-1.5deg);
}
@media (max-width: 699px) {
  /* Reserve two lines for the longest phrase and centre shorter ones, so the hero never jumps. */
  .cycle {
    display: inline-flex;
    align-items: center;
    min-height: 2.2em;
  }
  .cyc {
    min-width: 0;
  }
}
.cyc {
  display: inline-block;
}

/* artifacts */
.art {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 24px;
}
.rows {
  display: grid;
}
.rows > div {
  display: grid;
  gap: 4px;
  padding-block: 12px;
  border-top: 2px solid var(--text);
}
.rows dt {
  font: 700 0.75rem/1.4 var(--body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--quiet);
}
.rows dd {
  font-weight: 500;
}
.ok {
  display: block;
  margin-top: 4px;
  color: var(--success);
  font-size: 0.9375rem;
  font-weight: 700;
}
.player {
  padding: 12px;
  border: 2px solid var(--text);
  border-radius: 16px;
  background: var(--accent-mint);
}
.player[hidden] {
  display: none;
}
.player-label {
  margin-bottom: 8px;
  font-size: 0.9375rem;
  font-weight: 700;
}
.player audio {
  display: block;
  width: 100%;
  height: 48px;
}
.turns {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}
.turn {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 12px 16px;
  border: 2px solid var(--text);
  border-radius: 16px;
  background: var(--bg);
}
.turn.assistant {
  background: var(--accent-yellow);
}
.who {
  font: 700 0.75rem/1.2 var(--body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.dots {
  position: absolute;
  left: 16px;
  top: 38px;
  display: flex;
  gap: 6px;
  opacity: 0;
}
.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text);
}

/* job sheet prints down from a slot, then the stamp slams */
.printer {
  position: relative;
  padding-top: 11px;
}
.slot {
  position: absolute;
  top: 0;
  left: -8px;
  right: 2px;
  z-index: 3;
  height: 22px;
  border: 3px solid var(--text);
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 4px 4px 0 var(--text);
}
.feed {
  overflow: clip;
  padding: 0 12px 12px 0;
}
.sheet {
  position: relative;
}
.sheet-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.sheet-next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
  border-top: 2px dashed var(--text);
}
.stamp.big {
  padding: 6px 14px 4px;
  border-width: 3px;
  border-radius: 12px;
  background: var(--accent-orange);
  box-shadow: 4px 4px 0 var(--text);
  font-size: 1.75rem;
  transform: rotate(-6deg);
}

.trades {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-top: 24px;
  border-top: 3px solid var(--text);
}
.trades h3 {
  font-size: 1.375rem;
}
.trades .fine {
  color: var(--text);
}

/* rules ledger */
.ledger {
  margin-top: 8px;
  overflow: clip;
}
.rules-head {
  display: none;
}
.rules li {
  display: grid;
  gap: 8px;
  padding: 20px;
  border-top: 3px solid var(--text);
}
.rules li:first-child {
  border-top: 0;
}
.rules h3 {
  font-size: 1.625rem;
}
.tag {
  display: block;
  font: 700 0.75rem/1.4 var(--body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--quiet);
}
.rules li p:last-child {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--primary);
}
/* pricing: hard shadow grows and the card lifts on hover; the recommended one pulses */
.plans {
  display: grid;
  gap: 28px;
  margin: 12px 8px 16px 0;
}
.plan {
  position: relative;
  isolation: isolate;
  transition: transform 0.15s ease-out;
}
.plan::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 22px;
  background: var(--text);
  transform: translate(8px, 8px);
  transition: transform 0.15s ease-out;
}
.plan:hover {
  transform: translate(-3px, -3px);
}
.plan:hover::before {
  transform: translate(14px, 14px);
}
.plan-in {
  display: grid;
  gap: 8px;
  padding: 24px;
  border: 3px solid var(--text);
  border-radius: 22px;
  background: var(--surface);
}
.featured .plan-in {
  background: var(--accent-yellow);
}
.plan-id {
  display: grid;
  gap: 8px;
  justify-items: start;
}
.plan-id .fine {
  color: var(--quiet);
}
.amount {
  font: 400 3.5rem/1 var(--display);
  font-variant-numeric: tabular-nums;
}
.allow strong {
  font-variant-numeric: tabular-nums;
}
.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.note {
  max-width: 66ch;
}

/* marquee */
.marquee {
  overflow: clip;
  border-top: 3px solid var(--text);
  background: var(--primary);
}
.marq-track {
  display: flex;
  width: max-content;
}
.marq-set {
  display: flex;
  flex: none;
}
.marq-set li {
  display: flex;
  align-items: center;
  white-space: nowrap;
  padding-block: 14px 10px;
  color: var(--on-primary);
  font: 400 1.75rem/1.2 var(--display);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.marq-set li:nth-child(3n + 2) {
  color: var(--accent-yellow);
}
.marq-set li:nth-child(3n) {
  color: var(--accent-pink);
}
.marq-set li::after {
  content: "";
  flex: none;
  width: 16px;
  height: 32px;
  margin-inline: 40px;
  border: 3px solid var(--text);
  border-left: 0;
  border-radius: 0 32px 32px 0;
  background: var(--accent-yellow);
}
.marquee + .beat {
  border-top: 3px solid var(--text);
}

@media (min-width: 700px) {
  .beat {
    --pad: 64px;
  }
  .hero {
    --pad: 88px;
  }
  .marq-set li {
    font-size: 2.25rem;
  }
}
@media (min-width: 900px) {
  .beat-in {
    --tw: 200px;
    grid-template-columns: var(--tw) 72px minmax(0, 1fr);
    column-gap: 0;
    padding-left: 0;
  }
  .spine {
    left: calc(var(--tw) + 25px);
    width: 22px;
  }
  .dot {
    left: calc(var(--tw) + 14px);
    top: calc(var(--pad) + 8px);
    width: 44px;
    height: 44px;
  }
  .dot::before {
    inset: 6px;
  }
  .time {
    position: sticky;
    top: 100px;
    align-self: start;
    padding-right: 12px;
  }
  .time > span:first-child {
    font-size: 2.25rem;
  }
  .time .num {
    font-size: 3.25rem;
  }
  .body {
    grid-column: 3;
  }
  .hero {
    --pad: 120px;
  }
  .rules-head,
  .rules li {
    grid-template-columns: 1fr 1.2fr 1.6fr;
    column-gap: 24px;
    align-items: baseline;
  }
  .rules-head {
    display: grid;
    padding: 12px 20px;
    border-bottom: 3px solid var(--text);
    background: var(--text);
    color: var(--accent-yellow);
    font: 400 1rem/1.2 var(--display);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .tag {
    display: none;
  }
  .plan-in {
    grid-template-columns: 1.2fr 1fr 1.2fr;
    align-items: center;
    column-gap: 24px;
  }
  .floats .fl {
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
  }
  .shape {
    --s: 96px;
  }
  .floats .f-hero1 {
    left: calc(max(16px, (100% - 1160px) / 2) + 500px);
    top: 6px;
    --s: 80px;
  }
  .floats .f-hero2 {
    right: 5%;
    top: 14px;
    --s: 80px;
  }
  .floats .f-a1 {
    right: 2%;
    top: 8px;
    --s: 112px;
  }
  .floats .f-r1 {
    right: 3%;
    top: 14px;
    --s: 92px;
  }
  .floats .f-s1 {
    left: 34%;
    bottom: -40px;
    --s: 112px;
  }
  .floats .f-t1 {
    right: 6%;
    top: 30%;
  }
  .floats .f-p1 {
    right: 3%;
    bottom: 40px;
    --s: 104px;
  }
  .floats .f-st1 {
    right: 4%;
    top: 18px;
    --s: 100px;
  }
  .floats .f-q1 {
    right: 5%;
    top: 16px;
    --s: 100px;
  }
  .floats .f-c1 {
    right: 24%;
    bottom: 40px;
    --s: 100px;
  }
  .floats .f-c2 {
    right: 8%;
    top: 24px;
    --s: 120px;
  }
}
@media (min-width: 1100px) {
  .split {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}
@media (max-width: 899px) {
  .floats .f-c2,
  .floats .f-hero1 {
    display: none;
  }
  .floats .f-s1,
  .floats .f-c1 {
    top: 12px;
    bottom: auto;
  }
}
