/* Contindr landing page. One light theme. Tokens follow the app baseline. */

:root {
  --bg: #F4F6FF;
  --paper: #FFFFFF;
  --ink: #171B36;
  --muted: #535D76;
  --line: #D8DFF0;
  --field-line: #8A93AD;
  --soft: #EDF0FF;
  --field: #F6F8FF;
  --cobalt: #2949E5;
  --cobalt-deep: #1931AC;
  --cherry: #BB2456;
  --cherry-deep: #801C40;
  --lilac: #8B6DF0;
  --lavender: #E4DDFF;
  --mint: #DCF8ED;
  --mint-line: #BBDFD2;
  --pink: #FFE3ED;
  --success: #126046;
  --danger: #B42550;
  --shadow-toy: 0 5px 0 #D8DFF0, 0 12px 26px rgba(23, 42, 99, .07);
  --font: "Avenir Next", Avenir, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: ui-rounded, "SF Pro Rounded", "Avenir Next", Avenir, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 108'%3E%3Cpath d='M60 100c-3 0-6-1.5-9-4C30 79 8 62 8 38 8 20 21 8 37 8c10 0 18 5 23 13 5-8 13-13 23-13 16 0 29 12 29 30 0 24-22 41-43 58-3 2.5-6 4-9 4z'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg);
  background-image:
    radial-gradient(60rem 36rem at 8% -8%, rgba(228, 221, 255, .95), transparent 62%),
    radial-gradient(52rem 32rem at 100% 2%, rgba(220, 248, 237, .95), transparent 60%);
  background-repeat: no-repeat;
}

h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.art-defs { position: absolute; }

:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 4px;
}
[tabindex="-1"]:focus { outline: none; }

/* Skip link */
.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 20;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px clamp(16px, 4vw, 40px) 6px;
}
.wordmark {
  font: 800 1.625rem/1 var(--display);
  letter-spacing: -.045em;
}
.wordmark-small { font-size: 1.25rem; color: var(--ink); }
.top-chip {
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font-size: .9375rem;
  font-weight: 650;
  line-height: 1.3;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 16px;
  font: 650 1.0625rem/1.1 var(--font);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.btn:active { transform: translateY(3px); }
.btn-primary {
  border-color: #2541CA;
  background: var(--cobalt);
  color: #fff;
  box-shadow: 0 4px 0 var(--cobalt-deep);
}
.btn-primary:hover { background: #203BC7; }
.btn-primary:active { box-shadow: 0 1px 0 var(--cobalt-deep); }
.btn-cherry {
  border-color: #A91C4C;
  background: var(--cherry);
  color: #fff;
  box-shadow: 0 4px 0 var(--cherry-deep);
}
.btn-cherry:hover { background: #A51F4A; }
.btn-cherry:active { box-shadow: 0 1px 0 var(--cherry-deep); }
.btn-ghost {
  border-color: #B7C0DA;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 3px 0 #D3DAEC;
}
.btn-ghost:hover { background: var(--soft); }
.btn-ghost:active { box-shadow: 0 1px 0 #D3DAEC; }
.btn-big {
  min-height: 62px;
  padding: 0 36px;
  border-radius: 18px;
  font-size: 1.1875rem;
}

.link-btn {
  appearance: none;
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--cobalt);
  font: 650 .9375rem/1.2 var(--font);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-btn:hover { color: var(--cobalt-deep); }

/* Hero */
.hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 56px;
  text-align: center;
  overflow-x: clip;
}
.squad {
  position: relative;
  max-width: 640px;
  margin: 0 auto 4px;
}
.squad-art {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.squad-say {
  position: absolute;
  left: 50%;
  top: 17%;
  z-index: 1;
  padding: 8px 15px;
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
  font: 700 1rem/1.25 var(--display);
  white-space: nowrap;
  transform: translateX(-36%) rotate(-3deg);
}
.squad-say::after {
  content: "";
  position: absolute;
  left: 26%;
  bottom: -6px;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: inherit;
  transform: rotate(45deg);
}
/* Idle motion stops by itself in under five seconds. It plays again only while
   the main button is hovered or focused, which is the visitor's doing. */
.mate {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: bob 1.1s ease-in-out 4;
}
.mate-2 { animation-delay: .1s; }
.mate-3 { animation-delay: .2s; }
.mate-4 { animation-delay: .3s; }
.mate-5 { animation-delay: .4s; }
.spark {
  transform-box: fill-box;
  transform-origin: center;
  animation: twinkle 2.2s ease-in-out 2;
}
.spark-b { animation-delay: .1s; }
.spark-c { animation-delay: .2s; }
.spark-d { animation-delay: .3s; }
.spark-e { animation-delay: .4s; }
.hero:has(.btn:hover) .mate,
.hero:has(.btn:focus-visible) .mate {
  animation: hop .5s ease-in-out infinite alternate;
}

.hero h1 {
  max-width: 13ch;
  margin: 10px auto 16px;
  font: 800 clamp(2.5rem, 7.4vw, 4.5rem)/1.02 var(--display);
  letter-spacing: -.04em;
  text-wrap: balance;
}
.lede {
  max-width: 34rem;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: clamp(1.125rem, 2.2vw, 1.3125rem);
  line-height: 1.5;
  text-wrap: pretty;
}
.hero-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: .9375rem;
}

/* Example journey */
.example {
  padding: 16px clamp(12px, 3vw, 32px) 72px;
  scroll-margin-top: 12px;
  /* A dragged or leaving card must never widen the page. */
  overflow-x: clip;
}
#example-title { scroll-margin-top: 96px; }
.example-inner {
  display: grid;
  gap: clamp(24px, 4vw, 56px);
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--paper);
  box-shadow: 0 6px 0 var(--line), 0 30px 60px -24px rgba(23, 42, 99, .2);
}
.proto-chip {
  display: inline-block;
  margin-bottom: 14px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--cobalt-deep);
  font-size: .9375rem;
  font-weight: 650;
  line-height: 1.3;
}
.example h2, .ready h2 {
  font: 800 clamp(2rem, 4.8vw, 3rem)/1.05 var(--display);
  letter-spacing: -.035em;
  text-wrap: balance;
}
.example-intro {
  max-width: 30rem;
  margin: 14px 0 22px;
  color: var(--muted);
}

.steps {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
}
.steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 650;
}
/* To do is an outline, current is filled, done is filled with a tick,
   so the state never rests on colour alone. */
.step-heart {
  flex: none;
  width: 30px;
  height: 27px;
  fill: var(--paper);
  stroke: var(--field-line);
  stroke-width: 9;
  stroke-linejoin: round;
  overflow: visible;
  transition: fill .2s ease, stroke .2s ease, transform .2s ease;
}
.step-check {
  fill: none;
  stroke: #fff;
  stroke-width: 12;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
}
.steps li[data-state="current"] { color: var(--ink); }
.steps li[data-state="current"] .step-heart { fill: var(--cobalt); stroke: var(--cobalt); transform: scale(1.12); }
.steps li[data-state="done"] .step-heart { fill: var(--cherry); stroke: var(--cherry); }
.steps li[data-state="done"] .step-check { opacity: 1; }
.steps li:not([data-state="current"]) span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.stage {
  position: relative;
  min-width: 0;
  scroll-margin-top: 16px;
}
.noscript {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--pink);
  color: var(--cherry-deep);
  font-weight: 650;
}
.panel h3 {
  font: 800 1.5rem/1.15 var(--display);
  letter-spacing: -.025em;
}

/* Step 1: deck */
.panel-pick h3 { margin-bottom: 16px; }
.deck {
  display: grid;
  padding-bottom: 26px;
  margin-bottom: 16px;
}
.idea {
  grid-area: 1 / 1;
  padding: 12px 12px 22px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--paper);
  box-shadow: var(--shadow-toy);
  transform-origin: 50% 100%;
  transition: transform .34s cubic-bezier(.2, .8, .2, 1), opacity .34s ease;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  cursor: grab;
}
.idea[data-pos="0"] { z-index: 3; }
.idea[data-pos="1"] { z-index: 2; transform: translateY(13px) scale(.95); }
.idea[data-pos="2"] { z-index: 1; transform: translateY(26px) scale(.9); }
.idea.is-dragging { transition: none; cursor: grabbing; }
.idea.is-leaving-left { transform: translate(-120%, 4%) rotate(-14deg); opacity: 0; }
.idea.is-leaving-right { transform: translate(120%, -4%) rotate(14deg); opacity: 0; }

.idea-scene {
  position: relative;
  display: grid;
  place-items: end center;
  height: clamp(150px, 40vw, 196px);
  margin-bottom: 16px;
  border-radius: 18px;
  overflow: hidden;
}
.idea[data-tone="cobalt"] .idea-scene { background: radial-gradient(90% 80% at 18% 0%, #fff, transparent 60%), linear-gradient(160deg, #E3E9FF, #C6D2FF); }
.idea[data-tone="cherry"] .idea-scene { background: radial-gradient(90% 80% at 18% 0%, #fff, transparent 60%), linear-gradient(160deg, #FFE7EF, #FFC6D9); }
.idea[data-tone="lilac"] .idea-scene { background: radial-gradient(90% 80% at 18% 0%, #fff, transparent 60%), linear-gradient(160deg, #F0EAFF, #D6CAFF); }
.idea-buddy {
  display: block;
  width: auto;
  height: 80%;
  margin-bottom: 4%;
  filter: drop-shadow(0 8px 8px rgba(23, 27, 54, .14));
}
.idea-from {
  display: inline-block;
  margin: 0 8px 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--cobalt-deep);
  font-size: .9375rem;
  font-weight: 650;
  line-height: 1.3;
}
.idea[data-tone="cherry"] .idea-from { background: var(--pink); color: var(--cherry-deep); }
.idea[data-tone="lilac"] .idea-from { background: #EEE8FF; color: #4A31A6; }
.stamp {
  position: absolute;
  bottom: 12px;
  padding: 4px 12px;
  border: 3px solid currentColor;
  border-radius: 12px;
  background: #fff;
  font: 800 1.0625rem/1.3 var(--display);
  opacity: 0;
}
.stamp-yes { left: 12px; color: var(--success); transform: rotate(-7deg); opacity: calc(var(--drag, 0) * 1.3); }
.stamp-no { right: 12px; color: var(--cherry); transform: rotate(7deg); opacity: calc(var(--drag, 0) * -1.3); }
.idea-title {
  margin: 0 8px 8px;
  font: 800 clamp(1.3125rem, 4.6vw, 1.5rem)/1.15 var(--display);
  letter-spacing: -.025em;
  text-wrap: balance;
}
.idea-angle {
  margin: 0 8px;
  color: var(--muted);
  font-size: 1rem;
  text-wrap: pretty;
}
.deck-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 12px;
}
.deck-actions .btn { min-height: 56px; padding: 0 12px; border-radius: 18px; }
.deck-hint {
  margin-top: 14px;
  color: var(--muted);
  font-size: .9375rem;
  text-align: center;
  text-wrap: balance;
}
html:not(.js) .deck-actions,
html:not(.js) .deck-hint { display: none; }
@media (hover: none) and (pointer: coarse) {
  .keys-hint { display: none; }
}

/* Step 2: chat */
.match-head {
  display: grid;
  justify-items: start;
  margin-bottom: 8px;
}
.match-head h3 { color: var(--cherry); }
.match-idea { margin-top: 2px; font-weight: 650; }
.script-note {
  margin-top: 4px;
  color: var(--muted);
  font-size: .9375rem;
}

.thread {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 250px;
  max-height: 400px;
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: 22px 22px 0 0;
  background: var(--bg);
  list-style: none;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.thread:has(+ .composer[hidden]) { max-height: 540px; border-radius: 22px; }
.msg {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 92%;
  animation: pop .28s cubic-bezier(.2, .9, .3, 1.2) both;
}
.msg-them { align-self: flex-start; }
.msg-me { align-self: flex-end; margin-top: 8px; }
.avatar {
  flex: none;
  width: 36px;
  height: 30px;
}
.msg-them:has(+ .msg-them) .avatar { visibility: hidden; }
.bubble {
  padding: 10px 14px;
  border-radius: 21px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.msg-them .bubble {
  border: 1px solid var(--line);
  border-bottom-left-radius: 6px;
  background: var(--paper);
  box-shadow: 0 3px 0 #E4E9F5;
}
.msg-me .bubble {
  border-bottom-right-radius: 6px;
  background: var(--cobalt);
  color: #fff;
  box-shadow: 0 3px 0 #1D37B3;
}
.is-typing .bubble {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  padding: 0 16px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #98A1BC;
  animation: dot 1s ease-in-out infinite;
}
.dot:nth-child(2) { animation-delay: .15s; }
.dot:nth-child(3) { animation-delay: .3s; }
.reaction {
  position: absolute;
  left: -12px;
  top: -14px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 2px 0 #E4E9F5;
  animation: react .45s cubic-bezier(.2, 1.5, .4, 1) both;
}
.reaction::before {
  content: "";
  position: absolute;
  inset: 8px 7px 7px;
  background: var(--cherry);
  -webkit-mask: var(--heart) center / contain no-repeat;
  mask: var(--heart) center / contain no-repeat;
}
.attach {
  display: grid;
  min-width: 210px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 21px 21px 21px 6px;
  background: var(--paper);
  box-shadow: 0 3px 0 #E4E9F5;
}
.attach-title { font: 800 1.125rem/1.2 var(--display); }
.attach-sub { margin: 2px 0 12px; color: var(--muted); font-size: .9375rem; }
.attach .btn { min-height: 48px; }

.composer {
  padding: 10px 12px 12px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 22px 22px;
  background: var(--paper);
}
.chip-btn {
  appearance: none;
  min-height: 44px;
  margin-bottom: 8px;
  padding: 0 16px;
  border: 1px solid #B9C6FF;
  border-radius: 999px;
  background: var(--soft);
  color: var(--cobalt-deep);
  font: 650 .9375rem/1.2 var(--font);
  cursor: pointer;
}
.chip-btn:hover { background: #E3E9FF; }
.composer-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.composer textarea {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--field-line);
  border-radius: 18px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
  line-height: 1.4;
  resize: none;
}
.composer textarea[aria-invalid="true"] { border-color: var(--danger); }
.send {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid #2541CA;
  border-radius: 50%;
  background: var(--cobalt);
  color: #fff;
  box-shadow: 0 3px 0 var(--cobalt-deep);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.send:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--cobalt-deep); }
.send svg { width: 24px; height: 24px; }
.field-error {
  margin: 8px 2px 0;
  color: var(--danger);
  font-size: .9375rem;
  font-weight: 650;
}
.field-error:empty { display: none; }

/* Step 3: brief */
.brief-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 14px;
}
.draft-chip {
  padding: 6px 13px;
  border: 1px solid var(--mint-line);
  border-radius: 999px;
  background: var(--mint);
  color: var(--success);
  font-size: .9375rem;
  font-weight: 650;
  line-height: 1.3;
}
.brief {
  position: relative;
  padding: clamp(24px, 3.6vw, 32px) clamp(18px, 3.4vw, 28px) clamp(20px, 3.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--paper);
  box-shadow: var(--shadow-toy);
  overflow: hidden;
}
.brief::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: linear-gradient(90deg, var(--cobalt), var(--lilac) 55%, var(--cherry));
}
.brief-idea {
  font: 800 clamp(1.375rem, 4vw, 1.625rem)/1.15 var(--display);
  letter-spacing: -.025em;
  text-wrap: balance;
}
.brief-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 22px;
  list-style: none;
}
.brief-meta li {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--soft);
  font-size: .9375rem;
  font-weight: 650;
  line-height: 1.3;
}
.field label, .brief-sub {
  display: block;
  font: 800 1.125rem/1.2 var(--display);
  letter-spacing: -.01em;
}
.field-help {
  margin: 2px 0 10px;
  color: var(--muted);
  font-size: .9375rem;
}
.field textarea {
  display: block;
  width: 100%;
  min-height: 9.5rem;
  padding: 14px 16px;
  border: 1px solid var(--field-line);
  border-radius: 18px;
  background: var(--field);
  color: var(--ink);
  font: 500 1.125rem/1.5 var(--font);
  resize: none;
  overflow-y: auto;
}
.brief-sub { margin: 24px 0 12px; }
.beats {
  display: grid;
  gap: 10px;
  list-style: none;
  counter-reset: beat;
}
.beats li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: start;
  counter-increment: beat;
}
.beats li::before {
  content: counter(beat);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--lavender);
  font: 800 .9375rem/30px var(--display);
  text-align: center;
}
.shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
}
.shot svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 3px 0 #E0E6F4;
}
.shot p {
  margin-top: 10px;
  font-size: .9375rem;
  line-height: 1.35;
}
.brief-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}
.brief-actions .btn { padding: 0 12px; }
.brief-status {
  min-height: 1.6em;
  margin-top: 12px;
  color: var(--success);
  font-weight: 650;
}
.copy-fallback { margin-top: 4px; }
.copy-fallback label {
  display: block;
  margin-bottom: 8px;
  font-weight: 650;
}
.copy-fallback textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--field-line);
  border-radius: 16px;
  background: var(--field);
  color: var(--ink);
  font: .9375rem/1.45 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.fine {
  margin-top: 10px;
  color: var(--muted);
  font-size: .9375rem;
}

/* Celebration */
.celebrate {
  position: absolute;
  inset: -10px;
  z-index: 10;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 24px;
  border-radius: 26px;
  background: radial-gradient(circle at 50% 44%, #fff 0, #fff 34%, rgba(255, 255, 255, .9) 100%);
  text-align: center;
  pointer-events: none;
  animation: celebrate-out .3s ease 1.4s both;
}
.confetti {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
}
.confetti span {
  position: absolute;
  left: 50%;
  top: 44%;
  width: 22px;
  height: 20px;
  background: var(--cherry);
  -webkit-mask: var(--heart) center / contain no-repeat;
  mask: var(--heart) center / contain no-repeat;
  animation: burst 1.25s cubic-bezier(.12, .8, .3, 1) both;
}
.confetti span:nth-child(3n) { background: var(--cobalt); }
.confetti span:nth-child(3n+1) { background: var(--lilac); }
.confetti span:nth-child(5n) { background: #FFC533; }
.confetti span:nth-child(7n) { background: #34C596; }
.confetti span:nth-child(1) { --x: -150px; --y: -120px; --r: -40deg; }
.confetti span:nth-child(2) { --x: 150px; --y: -110px; --r: 35deg; animation-delay: .03s; }
.confetti span:nth-child(3) { --x: -90px; --y: -170px; --r: 20deg; animation-delay: .06s; }
.confetti span:nth-child(4) { --x: 95px; --y: -175px; --r: -25deg; }
.confetti span:nth-child(5) { --x: -185px; --y: -20px; --r: 60deg; animation-delay: .05s; }
.confetti span:nth-child(6) { --x: 185px; --y: -30px; --r: -55deg; animation-delay: .02s; }
.confetti span:nth-child(7) { --x: -140px; --y: 90px; --r: 30deg; animation-delay: .08s; }
.confetti span:nth-child(8) { --x: 140px; --y: 100px; --r: -30deg; animation-delay: .04s; }
.confetti span:nth-child(9) { --x: -40px; --y: -200px; --r: 15deg; animation-delay: .1s; }
.confetti span:nth-child(10) { --x: 30px; --y: -210px; --r: -15deg; animation-delay: .07s; }
.confetti span:nth-child(11) { --x: -210px; --y: -90px; --r: -70deg; animation-delay: .09s; }
.confetti span:nth-child(12) { --x: 215px; --y: -95px; --r: 70deg; animation-delay: .01s; }
.confetti span:nth-child(13) { --x: -70px; --y: 150px; --r: 45deg; animation-delay: .12s; }
.confetti span:nth-child(14) { --x: 75px; --y: 155px; --r: -45deg; animation-delay: .11s; }
.confetti span:nth-child(15) { --x: -225px; --y: 50px; --r: 80deg; animation-delay: .06s; }
.confetti span:nth-child(16) { --x: 225px; --y: 45px; --r: -80deg; animation-delay: .13s; }
.celebrate-buddy {
  position: relative;
  width: 150px;
  height: auto;
  filter: drop-shadow(0 10px 10px rgba(23, 27, 54, .16));
  animation: jump .9s cubic-bezier(.3, 1.5, .5, 1) both;
}
.celebrate-title {
  position: relative;
  margin: 10px 0 6px;
  color: var(--cherry);
  font: 800 clamp(2.25rem, 8vw, 3.25rem)/1 var(--display);
  letter-spacing: -.04em;
  animation: stamp-in .5s cubic-bezier(.2, 1.5, .4, 1) .12s both;
}
.celebrate-idea {
  position: relative;
  max-width: 22ch;
  font-weight: 650;
  line-height: 1.3;
  text-wrap: balance;
}

/* Readiness */
.ready {
  max-width: 1040px;
  margin: 0 auto;
  padding: 8px clamp(16px, 4vw, 40px) 80px;
  text-align: center;
}
.ready-lede {
  max-width: 34rem;
  margin: 14px auto 28px;
  color: var(--muted);
  text-wrap: pretty;
}
.ready-grid {
  display: grid;
  gap: 18px;
  text-align: left;
}
.ready-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--paper);
  box-shadow: var(--shadow-toy);
}
.ready-card h3 {
  margin-bottom: 16px;
  font: 800 1.3125rem/1.2 var(--display);
  letter-spacing: -.02em;
}
.ready-card ul {
  display: grid;
  gap: 12px;
  list-style: none;
}
.ready-card li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
}
.ready-card li::before {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-position: center;
  background-repeat: no-repeat;
}
.ready-now li::before {
  border: 1px solid var(--mint-line);
  background-color: var(--mint);
  background-size: 15px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8' fill='none' stroke='%23126046' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.ready-next li::before {
  border: 1px solid #D5DCF2;
  background-color: var(--soft);
  background-size: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='3.5' cy='8' r='1.5' fill='%23535D76'/%3E%3Ccircle cx='8' cy='8' r='1.5' fill='%23535D76'/%3E%3Ccircle cx='12.5' cy='8' r='1.5' fill='%23535D76'/%3E%3C/svg%3E");
}
.access-note {
  max-width: 34rem;
  margin: 30px auto 18px;
  font-weight: 650;
  text-wrap: pretty;
}

/* Not-found page */
.lost { padding-top: clamp(32px, 8vh, 88px); }
.lost-art {
  display: block;
  width: min(210px, 52vw);
  height: auto;
  margin: 0 auto 8px;
  filter: drop-shadow(0 10px 10px rgba(23, 27, 54, .14));
}

/* Footer */
.foot {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 28px 20px 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}
.foot-note { font-size: .9375rem; }

/* Wider screens */
@media (min-width: 760px) {
  .ready-grid { grid-template-columns: 1.2fr 1fr; }
}
@media (min-width: 900px) {
  .example-inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: start;
  }
  .example-head {
    position: sticky;
    top: 24px;
    padding-top: 8px;
  }
  .stage { scroll-margin-top: 72px; }
  .steps {
    display: grid;
    gap: 12px;
  }
  .steps li:not([data-state="current"]) span {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
    white-space: normal;
  }
  .steps li[data-state="done"] { color: var(--ink); }
}

/* Narrow phones */
@media (max-width: 520px) {
  .squad { margin-inline: -14px; }
  .squad-say { top: 13%; font-size: .9375rem; }
  .example-inner { border-radius: 28px; }
  .shots { grid-template-columns: 1fr; }
  .shot {
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: 14px;
    align-items: center;
  }
  .shot p { margin-top: 0; }
}
@media (max-width: 400px) {
  .example-inner { padding: 18px 14px; }
}
@media (max-width: 350px) {
  .top-chip { font-size: .875rem; }
  .brief-actions, .deck-actions { grid-template-columns: 1fr; }
  .deck-actions .btn-cherry { order: -1; }
}

/* Motion */
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes hop {
  from { transform: translateY(0); }
  to { transform: translateY(-9px); }
}
@keyframes twinkle {
  0%, 100% { transform: scale(.55) rotate(0deg); opacity: .5; }
  50% { transform: scale(1) rotate(20deg); opacity: 1; }
}
@keyframes pop {
  from { opacity: 0; transform: translateY(8px) scale(.96); }
  to { opacity: 1; transform: none; }
}
@keyframes dot {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30% { transform: translateY(-4px); opacity: 1; }
}
@keyframes react {
  from { opacity: 0; transform: scale(.2) rotate(-20deg); }
  to { opacity: 1; transform: none; }
}
@keyframes burst {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.2); }
  14% { opacity: 1; }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--x, 0px)), calc(-50% + var(--y, 0px))) rotate(var(--r, 0deg)) scale(1.1); }
}
@keyframes jump {
  0% { opacity: 0; transform: translateY(40px) scale(.6); }
  55% { opacity: 1; transform: translateY(-18px) scale(1.06); }
  100% { opacity: 1; transform: none; }
}
@keyframes stamp-in {
  from { opacity: 0; transform: scale(1.6) rotate(-6deg); }
  to { opacity: 1; transform: none; }
}
@keyframes celebrate-out {
  to { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .btn:active, .send:active { transform: none; }
  .celebrate { display: none !important; }
}
