/* Setpin launch page.
   The page is a sticker sheet: sky page, cream die-cut stickers, ink outlines,
   hard tinted shadows, no blur. Cobalt is the one colour you press. Yellow is the pin.
   Palette: ink #1F1D2B, soft ink #423F54, cobalt #2F4BD8 (pressed #2236A6, shadow #17246E),
   pin #FFB81C (rim #CC8D00), paper #FFFDF7, well #F2E9D3, curl #E6DABB, sky #A9DBFF,
   sky shadow #4C7FB0, paper shadow #C9B88C. */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/nunito-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/nunito-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/nunito-latin-800-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Patrick Hand";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/patrick-hand-latin-400-normal.woff2") format("woff2");
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { background: #A9DBFF; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: #1F1D2B;
  font-family: "Nunito", ui-rounded, system-ui, sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  background-color: #A9DBFF;
  background-image: radial-gradient(circle, rgba(31, 29, 43, 0.16) 1.3px, transparent 1.6px);
  background-size: 20px 20px;
  overflow-x: clip;
}
h1, h2, h3, p { margin: 0; }
a { color: #2F4BD8; }
a:hover { color: #2236A6; }
button, input, select { font: inherit; color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #2F4BD8; outline-offset: 3px; }

.wrap { width: min(1360px, calc(100% - 16px)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip {
  position: absolute; left: 8px; top: 8px; z-index: 50;
  transform: translateY(-160%);
  padding: 10px 16px;
  background: #FFFDF7; color: #1F1D2B;
  border: 3px solid #1F1D2B; border-radius: 999px;
  box-shadow: 4px 4px 0 #4C7FB0;
  font-weight: 800; text-decoration: none;
}
.skip:focus { transform: none; }

/* Top bar */
.bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 6px 12px;
  margin-top: 12px;
  padding: 6px 8px 6px 12px;
  background: #FFFDF7;
  border: 3px solid #1F1D2B; border-radius: 20px;
  box-shadow: 5px 5px 0 #4C7FB0;
}
a.brand {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  color: #1F1D2B; font-weight: 800; font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
}
.brand svg { width: 32px; height: 32px; }
.nav { display: flex; flex-wrap: wrap; gap: 2px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 6px 10px;
  border: 2px solid transparent; border-radius: 999px;
  color: #1F1D2B; font-weight: 800; text-decoration: none;
}
.nav a:hover { border-color: #2F4BD8; color: #2F4BD8; }
.nav a[aria-current="page"] { border-color: #1F1D2B; box-shadow: 3px 3px 0 #C9B88C; }

/* Shared stickers and labels */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 9px;
  background: #FFFDF7;
  border: 2px solid #1F1D2B; border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.12em; line-height: 1.5; text-transform: uppercase; white-space: nowrap;
}
.tag-start { align-self: flex-start; }
.marker { font-family: "Patrick Hand", ui-rounded, cursive; font-size: 26px; line-height: 1.05; rotate: -3deg; }
.small { font-size: 15px; font-weight: 700; color: #423F54; }
.tilt-1 { rotate: -5deg; }
.tilt-2 { rotate: -7deg; }
.tilt-3 { rotate: 4deg; }
.tilt-4 { rotate: 2deg; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 26px;
  background: #2F4BD8; color: #FFFFFF;
  border: 3px solid #1F1D2B; border-radius: 999px;
  box-shadow: 5px 6px 0 #17246E;
  font-family: inherit; font-size: 18px; font-weight: 800; text-decoration: none;
  cursor: pointer;
  transition: transform 140ms cubic-bezier(0.3, 1.6, 0.5, 1), box-shadow 140ms;
}
a.btn, a.btn:hover { color: #FFFFFF; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 8px 0 #17246E; }
.btn:active { transform: translate(4px, 5px); box-shadow: 0 0 0 #17246E; }
.btn:disabled { opacity: 0.7; cursor: progress; }
.btn.full { width: 100%; }

/* Hero: the sticker sheet */
.hero { padding: 26px 0 30px; }
.sheet {
  position: relative;
  padding: 26px 10px 22px;
  background: #F2E9D3;
  border: 3px solid #1F1D2B; border-radius: 24px;
  box-shadow: 8px 8px 0 #4C7FB0;
}
.sheet-tag { position: absolute; top: -15px; z-index: 8; }
.sheet-tag.l { left: 14px; rotate: -3deg; }
.sheet-tag.r { right: 14px; rotate: 2deg; }

.hero-grid { display: grid; gap: 18px; }
.hero-word { margin-inline: -14px; }

/* The wordmark: six peelable letter stickers, SET over PIN */
.word {
  position: relative;
  container-type: inline-size;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding-inline: 3px;
}
.cell { position: relative; z-index: 1; }
.cell:nth-child(n+4) { margin-top: -2.5vw; margin-top: -2.6cqi; }
.cell.has-pin { z-index: 4; }
.cell.hop { z-index: 6; }
.cell::before {
  content: "";
  position: absolute; inset: 0 -3px;
  border: 2px dashed rgba(31, 29, 43, 0.45); border-radius: 14px;
}
.L {
  position: relative;
  display: grid; place-items: center;
  width: calc(100% + 6px);
  margin: 0 0 0 -3px;
  padding: 0.03em 0 0.08em;
  font-family: inherit;
  font-weight: 800;
  font-size: calc(42vw - 26px);
  font-size: calc(43cqi - 20px);
  line-height: 0.94;
  color: #1F1D2B;
  background: #FFFDF7;
  border: 3px solid #1F1D2B; border-radius: 0.16em;
  box-shadow: 5px 6px 0 #C9B88C;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 170ms cubic-bezier(0.3, 1.6, 0.5, 1), box-shadow 170ms ease-out;
}
.cell:nth-child(1) .L { rotate: -4deg; translate: 0 -3px; }
.cell:nth-child(2) .L { rotate: 4deg; translate: 0 4px; }
.cell:nth-child(3) .L { rotate: -3deg; translate: 0 -2px; }
.cell:nth-child(4) .L { rotate: 5deg; translate: 0 3px; }
.cell:nth-child(5) .L { rotate: -3deg; translate: 0 4px; }
.cell:nth-child(6) .L { rotate: 6deg; translate: 0 -3px; }
.cell:nth-child(7) .L { rotate: -5deg; translate: 0 3px; }
.cell:nth-child(8) .L { rotate: 3deg; translate: 0 -2px; }
.glyph { display: block; transform: translateY(0.02em); }
.curl {
  position: absolute; right: -3px; bottom: -3px;
  width: 0.24em; height: 0.24em;
  background: #E6DABB;
  border-left: 3px solid #1F1D2B; border-top: 3px solid #1F1D2B;
  border-radius: 4px 0 0.2em 0;
  transform-origin: 100% 100%;
  transition: transform 180ms cubic-bezier(0.3, 1.6, 0.5, 1);
  pointer-events: none;
}
.L:active { transform: translate(3px, 4px); box-shadow: 1px 1px 0 #C9B88C; }
@media (hover: hover) {
  .L:hover { transform: translate(-2px, -4px); box-shadow: 8px 10px 0 #2F4BD8; }
  .L:hover .curl { transform: rotate(-26deg) scale(1.35); }
}

/* Signature move: the tapped letter lifts to catch the pin, the old one lets go */
.L.peel-a, .L.peel-b, .L.let-a, .L.let-b { z-index: 6; }
.L.peel-a { animation: peel-a 560ms cubic-bezier(0.2, 0.9, 0.25, 1); }
.L.peel-b { animation: peel-b 560ms cubic-bezier(0.2, 0.9, 0.25, 1); }
.L.let-a .curl { animation: curl-a 420ms ease-out; }
.L.let-b .curl { animation: curl-b 420ms ease-out; }
@keyframes peel-a {
  0% { transform: none; }
  40% { transform: rotate(-5deg) translate(-3px, -14px) scale(1.08); box-shadow: 14px 20px 0 #2F4BD8; }
  72% { transform: translate(0, 3px) scale(1.1, 0.86); box-shadow: 1px 1px 0 #C9B88C; }
  86% { transform: scale(0.97, 1.04); }
  100% { transform: none; }
}
@keyframes peel-b {
  0% { transform: none; }
  40% { transform: rotate(-5deg) translate(-3px, -14px) scale(1.08); box-shadow: 14px 20px 0 #2F4BD8; }
  72% { transform: translate(0, 3px) scale(1.1, 0.86); box-shadow: 1px 1px 0 #C9B88C; }
  86% { transform: scale(0.97, 1.04); }
  100% { transform: none; }
}
@keyframes curl-a { 0% { transform: none; } 30% { transform: rotate(-44deg) scale(2.6); } 100% { transform: none; } }
@keyframes curl-b { 0% { transform: none; } 30% { transform: rotate(-44deg) scale(2.6); } 100% { transform: none; } }

.pin {
  position: absolute; top: -0.24em; right: -0.18em; z-index: 7;
  width: 0.52em; height: 0.52em;
  pointer-events: none;
  filter: drop-shadow(3px 3px 0 #1F1D2B);
}
.pin svg { width: 100%; height: 100%; }
.cell:nth-child(4n) .pin { right: 0.02em; }

.follow { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.follow svg { width: 46px; height: 30px; flex: none; }

.hero-low { display: grid; gap: 24px; }
.promise {
  max-width: 17ch;
  font-size: clamp(26px, 7.2vw, 34px); font-weight: 800; line-height: 1.26; letter-spacing: -0.02em;
  text-wrap: balance;
}
.hl {
  padding: 0.02em 0.14em 0;
  background: #FFFDF7;
  border: 2px solid #1F1D2B; border-radius: 0.2em;
  box-shadow: 3px 3px 0 #C9B88C;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 22px; }

.deck {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 10px; align-items: center; justify-items: center;
  margin-top: 4px;
}
.st {
  padding: 10px 12px;
  background: #FFFDF7;
  border: 3px solid #1F1D2B; border-radius: 16px;
  box-shadow: 5px 6px 0 #C9B88C;
  white-space: nowrap;
}
.deck .st { min-width: 0; max-width: 100%; padding: 10px 8px; text-align: center; white-space: normal; }
.deck .tag { padding: 1px 6px; font-size: 10px; letter-spacing: 0.08em; }
.st-stack { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; }
.st-big { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.deck .st-big { font-size: 26px; }
.st-lab { font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.st-card { display: flex; flex-direction: column; gap: 4px; min-width: 188px; white-space: normal; }
.st-card .t { font-size: 18px; font-weight: 800; }
.setline { display: flex; justify-content: space-between; gap: 14px; font-size: 15px; font-weight: 700; }
.setline b { font-variant-numeric: tabular-nums; }
.st-plate { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px; }
.st-plate svg { width: 80px; height: 80px; }
.deck .st-plate svg { width: 64px; height: 64px; }

/* Sections */
.sec { padding: clamp(30px, 6vw, 64px) 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px 20px; margin-bottom: 22px; }
.display {
  font-size: clamp(42px, 12vw, 92px); font-weight: 800; line-height: 0.92; letter-spacing: -0.045em;
  text-transform: uppercase; text-wrap: balance;
}
.panel {
  padding: 18px;
  background: #FFFDF7;
  border: 3px solid #1F1D2B; border-radius: 24px;
  box-shadow: 8px 8px 0 #4C7FB0;
}
.copy { display: flex; flex-direction: column; gap: 12px; max-width: 60ch; }
.copy a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Ticket form */
.ticket {
  position: relative;
  display: flex; flex-direction: column;
  max-width: 980px;
  background: #FFFDF7;
  border: 3px solid #1F1D2B; border-radius: 22px;
  box-shadow: 8px 8px 0 #4C7FB0;
  rotate: -0.6deg;
}
.sec.is-in .ticket { animation: ticket-slap 380ms cubic-bezier(0.15, 0.9, 0.2, 1); }
@keyframes ticket-slap {
  0% { transform: translateY(28px) rotate(-6deg); }
  70% { transform: translateY(-3px) rotate(1.5deg); }
  100% { transform: none; }
}
.stub { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: #F2E9D3; border-radius: 19px 19px 0 0; }
.admit { font-size: 13px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.admit-gap { margin-top: 8px; }
.admit-sub { font-family: "Patrick Hand", ui-rounded, cursive; font-size: 46px; line-height: 0.9; }
.slot {
  display: flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 6px 10px;
  background: #FFFDF7;
  border: 2px dashed #1F1D2B; border-radius: 12px;
  font-weight: 800; text-align: center; overflow-wrap: anywhere;
}
.slot.is-filled { border-style: solid; box-shadow: 3px 3px 0 #C9B88C; }
.slot.is-slap { animation: slot-slap 260ms cubic-bezier(0.2, 0.9, 0.3, 1.3); }
@keyframes slot-slap {
  0% { transform: translateY(-14px) rotate(-6deg) scale(1.1); }
  60% { transform: scale(1.06, 0.9); }
  100% { transform: none; }
}
.perf { display: flex; justify-content: space-evenly; align-items: center; height: 20px; background: #FFFDF7; }
.perf span { width: 14px; height: 14px; border-radius: 50%; background: #A9DBFF; box-shadow: inset 0 0 0 2px #1F1D2B; }
.form { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; padding: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; font-weight: 800; }
.in {
  width: 100%; min-height: 52px; padding: 12px 16px;
  background: #F2E9D3; color: #1F1D2B;
  border: 3px solid #1F1D2B; border-radius: 14px;
  font-family: inherit; font-size: 17px; font-weight: 700;
}
.in:focus { outline: 3px solid #2F4BD8; outline-offset: 2px; }
.fs { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.fs legend { margin-bottom: 10px; padding: 0; font-weight: 800; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  min-height: 46px; padding: 8px 14px;
  background: #FFFDF7; color: #1F1D2B;
  border: 3px solid #1F1D2B; border-radius: 14px;
  box-shadow: 3px 4px 0 #C9B88C;
  font-family: inherit; font-size: 16px; font-weight: 800;
  cursor: pointer;
  transition: transform 140ms cubic-bezier(0.3, 1.6, 0.5, 1);
}
.chips .chip:nth-child(5n+1) { rotate: -2deg; }
.chips .chip:nth-child(5n+2) { rotate: 1.5deg; }
.chips .chip:nth-child(5n+3) { rotate: -1deg; }
.chips .chip:nth-child(5n+4) { rotate: 2.5deg; }
.chips .chip:nth-child(5n) { rotate: -2.5deg; }
@media (hover: hover) { .chip:hover { border-color: #2F4BD8; color: #2F4BD8; } }
.chip:active { transform: translate(2px, 3px); box-shadow: 0 0 0 #C9B88C; }
.chip.is-on, .chip.is-on:hover { background: #2F4BD8; color: #FFFFFF; border-color: #1F1D2B; box-shadow: 3px 4px 0 #17246E; }
.chip-fly { position: fixed; z-index: 80; margin: 0; pointer-events: none; }
.form-error { padding: 8px 12px; background: #F2E9D3; border: 2px solid #1F1D2B; border-radius: 12px; font-weight: 800; }
.form-error:empty { display: none; }
.hp { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.done { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 24px 18px; }
.done-title { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; }
.done-title:focus { outline: none; }
.burst { position: absolute; inset: 0; overflow: visible; pointer-events: none; }
.confetti-plate {
  position: absolute; top: 40%;
  width: 14px; height: 14px;
  background: #C3CBD3;
  border: 2px solid #1F1D2B; border-radius: 50%;
  pointer-events: none;
}

/* Your whole week */
.week { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.week > * { min-width: 0; }
.paste { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.notes {
  min-width: 200px;
  padding: 12px 16px;
  background: #FFFDF7;
  border: 3px solid #1F1D2B; border-radius: 14px;
  box-shadow: 5px 6px 0 #C9B88C;
  font-family: "Patrick Hand", ui-rounded, cursive; font-size: 24px; line-height: 1.15;
  rotate: -3deg;
}
.notes .tag { margin-bottom: 6px; font-family: "Nunito", ui-rounded, sans-serif; }
.paste .st-card { min-width: 0; max-width: calc(100% - 10px); }
.arrow-d { width: 40px; height: 44px; margin-left: 60px; }
.week-tag { margin-top: 14px; }
.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 12px 10px; margin-top: 6px; }
.day {
  position: relative;
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 10px 12px;
  background: #FFFDF7;
  border: 3px solid #1F1D2B; border-radius: 14px;
  box-shadow: 4px 5px 0 #C9B88C;
}
.day b { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.day span { font-size: 17px; font-weight: 800; }
.day.rest { background: #F2E9D3; border-style: dashed; box-shadow: none; }
.day:nth-child(1) { rotate: -2deg; }
.day:nth-child(2) { rotate: 1.5deg; }
.day:nth-child(5) { rotate: 2deg; }
.day:nth-child(6) { rotate: -1.5deg; }
.day.today { rotate: -3deg; translate: 0 -6px; box-shadow: 6px 8px 0 #C9B88C; }
.day .pin { top: -14px; right: -10px; width: 30px; height: 30px; }

/* The set in your hand */
.setgrid { display: grid; gap: 22px; }
.sg-copy { grid-column: 1 / -1; }
.drum {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px;
  background: #FFFDF7;
  border: 3px solid #1F1D2B; border-radius: 16px;
  box-shadow: 5px 6px 0 #C9B88C;
}
.reel {
  display: grid; place-items: center;
  width: 56px; height: 78px;
  background: #F2E9D3;
  border: 3px solid #1F1D2B; border-radius: 12px;
  font-size: 54px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1;
}
.unit { padding: 0 6px; font-size: 24px; font-weight: 800; }
.sets { display: flex; flex-direction: column; gap: 10px; max-width: 540px; margin-top: 16px; }
.set {
  position: relative;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 6px 14px;
  padding: 10px 14px;
  background: #FFFDF7;
  border: 3px solid #1F1D2B; border-radius: 14px;
  box-shadow: 4px 5px 0 #C9B88C;
  font-weight: 800; font-variant-numeric: tabular-nums;
}
.set.done-set { background: #F2E9D3; box-shadow: none; }
.set.now { rotate: -1deg; box-shadow: 6px 7px 0 #C9B88C; }
.set .pin { top: -14px; right: -12px; width: 32px; height: 32px; }
.set i { font-style: normal; font-weight: 700; color: #423F54; }
.fig-st {
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px;
  background: #FFFDF7;
  border: 3px solid #1F1D2B; border-radius: 20px;
  box-shadow: 6px 7px 0 #C9B88C;
  rotate: 3deg;
}
.fig-st svg { width: 170px; height: auto; }
.rest-big {
  display: inline-flex; flex-direction: column; gap: 2px;
  padding: 14px 18px;
  background: #FFFDF7;
  border: 3px solid #1F1D2B; border-radius: 20px;
  box-shadow: 6px 7px 0 #C9B88C;
  white-space: nowrap;
  rotate: -4deg;
}
.rest-big strong { font-size: 64px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }

/* The answer */
.answer { display: grid; gap: 18px; }
.answer-head { display: flex; flex-direction: column; gap: 14px; }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.h1 { max-width: 18ch; font-size: clamp(34px, 8.6vw, 64px); font-weight: 800; line-height: 1.02; letter-spacing: -0.04em; text-wrap: balance; }
.tldr {
  display: flex; flex-direction: column; gap: 10px;
  max-width: 66ch;
  padding: 14px 16px;
  background: #F2E9D3;
  border: 2px solid #1F1D2B; border-radius: 16px;
}

/* The log */
.sec-log { padding-top: 8px; }
.log { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.links { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px 14px; }
a.ls {
  display: flex; flex-direction: column; gap: 4px;
  min-width: 180px; max-width: 260px; min-height: 44px;
  padding: 14px 16px;
  background: #FFFDF7; color: #1F1D2B;
  border: 3px solid #1F1D2B; border-radius: 18px;
  box-shadow: 5px 6px 0 #C9B88C;
  font-weight: 800; text-decoration: none;
  transition: box-shadow 140ms, color 140ms;
}
a.ls span { font-size: 15px; font-weight: 500; color: #423F54; }
a.ls:nth-child(1) { rotate: -2deg; }
a.ls:nth-child(2) { rotate: 1.5deg; }
a.ls:nth-child(3) { rotate: -1deg; }
@media (hover: hover) { a.ls:hover { color: #2F4BD8; box-shadow: 7px 8px 0 #2F4BD8; } }
.byline { font-size: 15px; font-weight: 700; }

/* Footer */
.foot { display: flex; flex-direction: column; gap: 6px; padding: 26px 0 40px; font-size: 15px; font-weight: 700; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; color: #1F1D2B; font-weight: 800; text-underline-offset: 3px; }
.foot a:hover { color: #2F4BD8; }

/* Sticky join, phones only, shown by main.js once the hero has scrolled away */
.join-sticky { display: none; }

/* Narrow phones: icon-only brand so the bar stays on one line */
@media (max-width: 479px) {
  .brand-t { display: none; }
  .bar { flex-wrap: nowrap; }
  .nav { flex-wrap: nowrap; gap: 0; }
  .nav a { padding: 6px 8px; font-size: 15px; }
}

@media (max-width: 759px) {
  .foot { padding-bottom: 96px; }
  .join-sticky {
    position: fixed; left: 14px; right: 14px; bottom: 12px; z-index: 40;
    display: flex; align-items: center; justify-content: center;
    min-height: 52px;
    background: #2F4BD8; color: #FFFFFF;
    border: 3px solid #1F1D2B; border-radius: 16px;
    box-shadow: 4px 5px 0 #17246E;
    font-weight: 800; text-decoration: none;
    rotate: -1deg;
  }
  .join-sticky:hover { color: #FFFFFF; }
}

/* Tablet and up: the stacked wordmark grows, lower hero splits in two */
@media (min-width: 760px) {
  .wrap { width: min(1360px, calc(100% - 64px)); }
  .sheet { padding: 40px 24px 36px; border-radius: 34px; box-shadow: 12px 12px 0 #4C7FB0; rotate: -0.4deg; }
  .sheet-tag.l { left: 28px; }
  .sheet-tag.r { right: 28px; }
  .hero-grid { gap: 26px; }
  .hero-word { width: min(100%, 640px); margin-inline: 0; }
  .word { padding-inline: 5px; }
  .cell::before { inset: 0 -5px; border-radius: 22px; }
  .L {
    width: calc(100% + 10px);
    margin-left: -5px;
    font-size: min(calc(34vw - 30px), 220px);
    font-size: calc(41cqi - 30px);
    border-width: 4px;
    box-shadow: 8px 10px 0 #C9B88C;
  }
  .curl { right: -4px; bottom: -4px; border-left-width: 4px; border-top-width: 4px; }
  .hero-low { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 28px; }
  .promise { font-size: clamp(30px, 3.9vw, 60px); }
  .panel { padding: 30px; border-radius: 30px; box-shadow: 12px 12px 0 #4C7FB0; }
  .ticket { flex-direction: row; rotate: -1deg; box-shadow: 12px 12px 0 #4C7FB0; }
  .stub { flex: 0 0 250px; justify-content: center; padding: 26px 22px; border-radius: 19px 0 0 19px; }
  .perf { flex-direction: column; width: 20px; height: auto; }
  .form, .done { padding: 26px 28px; }
  .week { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; gap: 44px; }
  .setgrid { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px; }
}

/* Desktop: giant SET / PIN block left, the promise right */
@media (min-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 48px; }
  .hero-word { width: auto; }
  .L { font-size: calc(22vw - 80px); font-size: calc(41cqi - 30px); }
  .hero-low { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .deck { gap: 20px 16px; }
  .deck .st { padding: 14px 16px; border-width: 4px; box-shadow: 8px 10px 0 #C9B88C; }
  .deck .tag { padding: 2px 9px; font-size: 12px; }
  .deck .st-big { font-size: clamp(28px, 2.8vw, 44px); }
  .deck .st-lab { font-size: 15px; }
  .deck .st-plate svg { width: clamp(72px, 7.5vw, 120px); height: clamp(72px, 7.5vw, 120px); }
  .setgrid { grid-template-columns: minmax(0, 1fr) auto auto; gap: 48px; }
  .fig-st svg { width: 200px; }
  .answer { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; column-gap: 48px; }
}

/* Watch the rep: two turning figures, drawn by js/reps.js */
.reps { display: grid; gap: 26px; }
.rep-card {
  display: flex; flex-direction: column; gap: 12px;
  margin: 0;
  padding: 14px;
  background: #FFFDF7;
  border: 3px solid #1F1D2B; border-radius: 24px;
  box-shadow: 8px 8px 0 #4C7FB0;
}
.rep-card.l { rotate: -0.5deg; }
.rep-card.r { rotate: 0.6deg; }
.rep-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #F2E9D3;
  border: 2px dashed rgba(31, 29, 43, 0.35); border-radius: 16px;
}
.rep-stage canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.rep-card figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.rep-name { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.rep-mid { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; max-width: 46ch; }
.rep-lede { font-size: clamp(24px, 6vw, 34px); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
.ghost {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 20px;
  background: #FFFDF7; color: #2F4BD8;
  border: 3px solid #1F1D2B; border-radius: 999px;
  box-shadow: 4px 5px 0 #C9B88C;
  font-family: inherit; font-size: 16px; font-weight: 800;
  cursor: pointer;
  transition: transform 140ms cubic-bezier(0.3, 1.6, 0.5, 1);
}
@media (hover: hover) { .ghost:hover { border-color: #2F4BD8; } }
.ghost:active { transform: translate(3px, 4px); box-shadow: 0 0 0 #C9B88C; }
@media (min-width: 760px) {
  .reps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px; }
  .rep-card.l { rotate: -1.2deg; }
  .rep-card.r { rotate: 1.4deg; }
  .rep-mid { grid-column: 1 / -1; order: 3; }
  .rep-lede { font-size: clamp(26px, 3vw, 40px); }
}
@media (min-width: 1100px) {
  .reps { grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr) minmax(0, 1fr); align-items: center; gap: 40px; }
  .rep-mid { grid-column: auto; order: 0; }
}
@media (min-width: 520px) and (max-width: 759px) {
  .hero-word { margin-inline: -4px; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .btn:active, .chip:active, .L:active { transform: none; opacity: 0.85; }
}
