/* Made from the post (docs/DESIGN.md §20, "Posts that do things",
   2026-10-28), over saas/landing.css. Four posts, each a flat paper panel
   with a hairline: the agent's ask and its calls, then the post with the
   block it made. Each block wears its own colour (--made-tone), as a
   block made for one post does. Small text is the body grey, which clears
   AA on white and on the panel's tint. No script. */

/* — The story: one block at a time is used by a reader ————————————
   Each step is a registered number, so it eases; a pair reads its own
   step as --made-on, 0 before the reader's choice and 1 after it. */
@property --made-run { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --made-bread { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --made-quiz { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --made-birds { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --made-on { syntax: "<number>"; inherits: true; initial-value: 0; }

/* Twenty seconds: a week picked at 2s, two trays at 6s, the answer at
   10s, the swift at 14s; all four hold to 18.8s, then the reset. */
@keyframes lp-made {
  0%, 8% { --made-run: 0; --made-bread: 0; --made-quiz: 0; --made-birds: 0; }
  10% { --made-run: 1; }
  28% { --made-bread: 0; }
  30% { --made-bread: 1; }
  48% { --made-quiz: 0; }
  50% { --made-quiz: 1; }
  68% { --made-birds: 0; }
  70% { --made-birds: 1; }
  94% { --made-run: 1; --made-bread: 1; --made-quiz: 1; --made-birds: 1; }
  98%, 100% { --made-run: 0; --made-bread: 0; --made-quiz: 0; --made-birds: 0; }
}

.lp-made-pairs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 1.5rem + 2.5vw, 3.5rem) clamp(1.5rem, 1rem + 2vw, 2.5rem);
  animation: lp-made 20s linear infinite both;
}

.lp-made-run { --made-tone: #0e7350; --made-on: var(--made-run); }
.lp-made-bread { --made-tone: #a8501a; --made-on: var(--made-bread); }
.lp-made-quiz { --made-tone: #6d28d9; --made-on: var(--made-quiz); }
.lp-made-birds { --made-tone: #1f6fb2; --made-on: var(--made-birds); }

/* Two moments in one place, each as far as the pair's step. */
.lp-made-swap {
  display: grid;
}

.lp-made-swap > * {
  grid-area: 1 / 1;
}

.lp-made-was { opacity: calc(1 - var(--made-on)); }
.lp-made-now { opacity: var(--made-on); }

/* — A pair: the drawing, then what it shows in words ————————————— */
.lp-made-scene {
  border-radius: var(--lp-radius);
  background: var(--color-paper);
  box-shadow: 0 0 0 1px var(--color-line-strong);
  overflow: hidden;
}

.lp-made-pair > h3 {
  margin-top: 1.4rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.lp-made-pair > p {
  margin-top: 0.35rem;
  font-size: 1rem;
  color: var(--color-body);
}

/* The agent: who was asked, the ask, and the calls, all done. */
.lp-made-agent {
  padding: 1.1rem clamp(1rem, 2vw, 1.5rem) 1rem;
  border-bottom: 1px solid var(--color-line);
  background: var(--color-paper-2);
}

.lp-made-ask {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.lp-made-ask b {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
}

.lp-made-ask span:last-child {
  flex-basis: 100%;
  padding: 0.6rem 0.85rem;
  border-radius: 12px 12px 12px 4px;
  background: var(--color-paper);
  box-shadow: 0 0 0 1px var(--color-line);
  font-size: 0.9rem;
  line-height: 1.45;
}

.lp-made-calls {
  --done: 1;
  margin-top: 0.7rem;
}

.lp-made-calls li {
  color: var(--color-body);
}

.lp-made-calls .lp-call-done {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* The post: the site, the title, the words, and the block after them. */
.lp-made-post {
  padding: clamp(1.1rem, 2vw, 1.6rem) clamp(1rem, 2vw, 1.5rem) clamp(1.25rem, 2vw, 1.75rem);
}

.lp-made-site {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  min-width: 0;
}

.lp-made-site b {
  flex: none;
  font-family: var(--font-heading);
  font-size: 0.9rem;
}

.lp-made-site span {
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-body);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lp-made-post h4 {
  margin: 1rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.15rem + 1vw, 1.95rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.lp-made-byline {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--color-body);
}

.lp-made-words {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-body);
}

/* The block: white, a hairline, its colour along the top. */
.lp-made-block {
  margin: 1.1rem 0 0;
  padding: 1rem clamp(0.85rem, 2vw, 1.15rem) 1.05rem;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 3px 0 var(--made-tone), 0 0 0 1px var(--color-line);
}

.lp-made-block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 0.75rem;
}

.lp-made-block-title {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 600;
}

/* — The training log: the weeks as bars, the biggest picked —————— */
.lp-made-figures {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem clamp(1rem, 3vw, 1.75rem);
}

.lp-made-figures span {
  display: grid;
  font-size: 0.75rem;
  color: var(--color-body);
}

.lp-made-figures b {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.5rem);
  line-height: 1.15;
  color: var(--color-ink);
}

.lp-made-bars,
.lp-made-axis {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.4rem;
}

.lp-made-bars {
  grid-template-rows: 6.5rem;
  align-items: end;
  margin-top: 1.9rem;
  border-bottom: 1px solid var(--color-line-strong);
}

.lp-made-bars i {
  position: relative;
  height: calc(var(--made-h) * 100%);
  border-radius: 4px 4px 0 0;
  background: color-mix(in srgb, var(--made-tone) 40%, #fff);
}

.lp-made-peak::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--made-tone);
  opacity: var(--made-on);
  pointer-events: none;
}

.lp-made-peak small {
  position: absolute;
  bottom: calc(100% + 0.3rem);
  left: 50%;
  translate: -50% 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--made-tone);
  opacity: var(--made-on);
}

.lp-made-axis {
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-align: center;
  color: var(--color-body);
}

.lp-made-readout {
  margin-top: 0.7rem;
  font-size: 0.85rem;
}

.lp-made-readout .lp-made-was {
  color: var(--color-body);
}

.lp-made-readout .lp-made-now {
  font-weight: 600;
  color: var(--made-tone);
}

/* — The recipe: the trays, and every amount following them ————————— */
.lp-made-stepper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--color-body);
}

.lp-made-stepper i {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--color-line-strong);
  font-style: normal;
  color: var(--color-ink);
}

.lp-made-stepper .lp-made-swap {
  min-width: 1.4rem;
  justify-items: center;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-ink);
}

.lp-made-serves {
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: var(--color-body);
}

.lp-made-ingredients {
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
}

.lp-made-ingredients li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-top: 1px solid var(--color-line);
  font-size: 0.9rem;
}

.lp-made-ingredients b {
  font-weight: 500;
}

.lp-made-ingredients b::first-letter {
  text-transform: uppercase;
}

.lp-made-ingredients .lp-made-swap {
  justify-items: end;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--made-tone);
}

.lp-made-hydration {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--made-tone) 10%, #fff);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--made-tone);
}

/* — The quiz: the question, the years, the right one chosen ————————— */
.lp-made-progress {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-body);
}

.lp-made-question {
  margin-top: 0.8rem;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.lp-made-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.lp-made-options > span {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  box-shadow: 0 0 0 1px var(--color-line-strong);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  isolation: isolate;
}

/* The answer chosen: the block's colour as a ring and a wash. */
.lp-made-right::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: color-mix(in srgb, var(--made-tone) 12%, #fff);
  box-shadow: inset 0 0 0 2px var(--made-tone);
  opacity: var(--made-on);
  pointer-events: none;
}

.lp-made-right i {
  font-style: normal;
  font-weight: 700;
  color: var(--made-tone);
  opacity: var(--made-on);
}

.lp-made-verdict {
  margin-top: 0.75rem;
  font-size: 0.85rem;
}

.lp-made-verdict .lp-made-was {
  color: var(--color-body);
}

.lp-made-verdict .lp-made-now {
  font-weight: 600;
  color: var(--made-tone);
}

/* — The birds: the chips, and each wingspan on one scale ——————————— */
.lp-made-chips > span {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.lp-made-chips span span {
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 0 0 1px var(--color-line-strong);
  font-size: 0.75rem;
  color: var(--color-body);
}

.lp-made-chips .lp-made-chip-on {
  background: var(--made-tone);
  box-shadow: none;
  color: #fff;
}

.lp-made-spans {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.lp-made-spans li,
.lp-made-scale {
  display: grid;
  grid-template-columns: 5.75rem minmax(0, 1fr) 4.5rem;
  align-items: center;
  gap: 0.75rem;
}

.lp-made-spans li {
  --made-pick: 0;
  padding: 0.4rem 0;
  font-size: 0.85rem;
}

.lp-made-spans .lp-made-row-before { --made-pick: calc(1 - var(--made-on)); }
.lp-made-spans .lp-made-row-picked { --made-pick: var(--made-on); }

.lp-made-spans b {
  font-weight: 500;
}

/* The track is the scale, 0 to 50 cm; the bar runs from 0 to the widest
   span, its solid end from the narrowest to the widest. */
.lp-made-spans li > span {
  position: relative;
  height: 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--color-paper-2);
}

.lp-made-spans i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: calc(var(--made-to) * 100%);
  border-radius: inherit;
  background: color-mix(in srgb, var(--made-tone) 22%, #fff);
  opacity: calc(0.4 + 0.6 * var(--made-pick));
}

.lp-made-spans i::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--made-from) / var(--made-to) * 100%);
  right: 0;
  border-radius: inherit;
  background: var(--made-tone);
  pointer-events: none;
}

.lp-made-spans em {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-style: normal;
  text-align: right;
  color: var(--color-body);
}

.lp-made-scale {
  margin-top: 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--color-body);
}

.lp-made-scale span {
  grid-row: 1;
  grid-column: 2;
}

.lp-made-scale span:nth-child(2) { justify-self: center; }
.lp-made-scale span:nth-child(3) { justify-self: end; }

.lp-made-mark {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--made-tone);
}

/* — What a block is: three facts on hairlines ———————————————————— */
.lp-made-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: clamp(3rem, 2rem + 3vw, 4.5rem) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--color-line-strong);
}

.lp-made-facts li {
  padding: 1.5rem 1.5rem 0 0;
}

.lp-made-facts li + li {
  padding-left: 1.5rem;
  border-left: 1px solid var(--color-line);
}

.lp-made-facts span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-strong);
}

.lp-made-facts p {
  margin-top: 0.6rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-body);
}

/* — The call to action: the call that makes a block, then the words ——
   Still: a hover changes the ring and the arrow's colour, never place. */
.lp-made-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  max-width: 100%;
  padding: 0.5rem;
  border-radius: 18px;
  background: var(--color-paper);
  box-shadow: 0 0 0 1px var(--color-line-strong), var(--lp-shadow-soft);
  color: var(--color-ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  transition: box-shadow var(--dur-fast) ease;
}

.lp-made-cta code {
  flex: none;
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  background: var(--color-ink);
  color: var(--color-on-ink);
  font-size: 0.82rem;
  font-weight: 500;
}

.lp-made-cta > span:not(.lp-made-cta-go) {
  min-width: 0;
}

.lp-made-cta-go {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--color-paper-2);
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease;
}

@media (hover: hover) {
  .lp-made-cta:hover {
    box-shadow: 0 0 0 1px var(--color-ink), var(--lp-shadow-soft);
  }

  .lp-made-cta:hover .lp-made-cta-go {
    background: var(--color-ink);
    color: var(--color-on-ink);
  }
}

/* — Smaller screens: one pair to a row, the facts stacked, the call to
   action without its code. — */
@media (max-width: 60rem) {
  .lp-made-pairs {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 48rem) {
  .lp-made-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .lp-made-facts li,
  .lp-made-facts li + li {
    padding: 1.25rem 0;
    border-left: 0;
  }

  .lp-made-facts li + li {
    border-top: 1px solid var(--color-line);
  }
}

@media (max-width: 30rem) {
  .lp-made-bars,
  .lp-made-axis {
    gap: 0.25rem;
  }

  .lp-made-spans li,
  .lp-made-scale {
    grid-template-columns: 4.75rem minmax(0, 1fr) 3.9rem;
    gap: 0.5rem;
  }

  .lp-made-cta code {
    display: none;
  }

  .lp-made-cta {
    padding-left: 1.1rem;
  }
}

/* With the story stopped, each block stands as its reader left it: the
   biggest week picked, two trays, the answer right, the swift. */
@media (prefers-reduced-motion: reduce) {
  .lp-made-pairs {
    animation: none;
    --made-run: 1;
    --made-bread: 1;
    --made-quiz: 1;
    --made-birds: 1;
  }
}
