/**
 * Propagation Tray — Appily-Ninetyfour contact
 * Plug-cell form · capillary-mat address · plant-tag channels
 * Avoids: form-card/aside dual-columns, Ping Lattice heat/plaque/orbit,
 * Mailslot flaps/meter/stamps, Desk Intercom LED/softkeys.
 */

.page-propagation {
  --pr-tray: #16382E;
  --pr-soil: #F0E7D6;
  --pr-cell: #fffef8;
  --pr-chloro: #2F9B5B;
  --pr-terra: #D4522A;
  --pr-gold: #E8A317;
  --pr-mute: #4A524C;
  --pr-ink: #15241f;
  --pr-display: "Recursive", system-ui, sans-serif;
  --pr-body: "Source Sans 3", system-ui, sans-serif;
  background:
    radial-gradient(ellipse 65% 45% at 8% 0%, rgba(47, 155, 91, 0.14), transparent 55%),
    radial-gradient(ellipse 45% 35% at 95% 15%, rgba(212, 82, 42, 0.1), transparent 50%),
    radial-gradient(ellipse 40% 30% at 50% 100%, rgba(232, 163, 23, 0.1), transparent 50%),
    linear-gradient(180deg, #F4ECDC 0%, var(--pr-soil) 50%, #E2D8C4 100%);
  color: var(--pr-ink);
  font-family: var(--pr-body);
  min-height: 100vh;
}

.page-propagation .pr-main {
  width: min(720px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 5.5rem 0 4rem;
}

.pr-mast {
  margin-bottom: 1.5rem;
}
.pr-kicker {
  margin: 0 0 0.45rem;
  font-family: var(--pr-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pr-mute);
}
.pr-mast h1 {
  margin: 0;
  font-family: var(--pr-display);
  font-size: clamp(2.1rem, 4.8vw, 2.9rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--pr-tray);
}
.pr-mast h1 em {
  font-style: normal;
  color: var(--pr-chloro);
}
.pr-lede {
  margin: 0.7rem 0 0;
  max-width: 36rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--pr-mute);
}

.pr-notice {
  margin-bottom: 1.15rem;
  padding: 0.85rem 1rem;
  border: 1px solid transparent;
  font-size: 0.95rem;
}
.pr-notice strong {
  display: block;
  font-family: var(--pr-display);
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.pr-notice.is-ok {
  background: rgba(63, 143, 90, 0.1);
  border-color: rgba(63, 143, 90, 0.35);
  color: var(--pr-tray);
}
.pr-notice.is-err {
  background: rgba(196, 101, 58, 0.1);
  border-color: rgba(196, 101, 58, 0.4);
  color: var(--pr-terra);
}

/* —— Tray form —— */
.pr-tray {
  position: relative;
  margin-bottom: 1.5rem;
  padding: 1.35rem 1.1rem 1.2rem;
  background: var(--pr-tray);
  border: 3px solid #163028;
  box-shadow:
    inset 0 0 0 6px rgba(255, 255, 255, 0.04),
    0 14px 36px rgba(21, 36, 31, 0.18);
}
.pr-tray-rim {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.pr-lot {
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  margin: 0;
  font-family: var(--pr-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #D8D0C0;
}

.pr-cells {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.pr-cell--wide {
  grid-column: 1 / -1;
}

.pr-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.75rem 0.8rem 0.65rem;
  background: var(--pr-cell);
  border: 2px solid rgba(21, 36, 31, 0.2);
  border-radius: 2px 2px 8px 8px;
  overflow: hidden;
  cursor: text;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.pr-cell-rim {
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(31, 58, 50, 0.12);
  border-radius: 1px 1px 6px 6px;
  pointer-events: none;
}
.pr-soil {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  background: linear-gradient(180deg, transparent, rgba(63, 143, 90, 0.18));
  transition: height 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
  pointer-events: none;
}
.pr-cell.is-focus {
  border-color: var(--pr-chloro);
  box-shadow: 0 0 0 1px rgba(63, 143, 90, 0.25);
}
.pr-cell.is-focus .pr-soil,
.pr-cell.is-filled .pr-soil {
  height: 42%;
}
.pr-cell.is-focus .pr-soil {
  height: 58%;
}
.pr-label {
  position: relative;
  z-index: 1;
  font-family: var(--pr-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pr-mute);
}
.pr-cell input,
.pr-cell textarea {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  padding: 0.15rem 0;
  border: 0;
  background: transparent;
  font-family: var(--pr-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--pr-ink);
  outline: none;
  resize: vertical;
}
.pr-cell textarea::placeholder,
.pr-cell input::placeholder {
  color: #5A625C;
  font-weight: 400;
  opacity: 1;
}

.pr-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.85rem;
  border: 0;
  background: var(--pr-chloro);
  color: #fffef8;
  font-family: var(--pr-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.pr-submit:hover {
  background: #357a4c;
}
.pr-submit.is-press {
  animation: pr-indent 0.35s ease;
}
@keyframes pr-indent {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(0.97) translateY(3px);
  }
  100% {
    transform: scale(1);
  }
}

/* —— Capillary mat (address) —— */
.pr-mat {
  margin-bottom: 1.35rem;
  padding: 1.1rem 1.15rem;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(63, 143, 90, 0.06) 0,
      rgba(63, 143, 90, 0.06) 2px,
      transparent 2px,
      transparent 7px
    ),
    var(--pr-cell);
  border: 1px solid rgba(31, 58, 50, 0.14);
  border-top: 4px solid var(--pr-chloro);
}
.pr-mat-kicker {
  margin: 0 0 0.75rem;
  font-family: var(--pr-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pr-chloro);
}
.pr-mat-rows {
  margin: 0;
  padding: 0;
  list-style: none;
}
.pr-mat-rows li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed rgba(31, 58, 50, 0.12);
  opacity: 0;
  transform: translateX(-14px);
}
.pr-mat.is-soaked .pr-mat-rows li {
  animation: pr-wash 0.5s ease forwards;
  animation-delay: calc(0.08s + var(--pr-i, 0) * 0.07s);
}
@keyframes pr-wash {
  to {
    opacity: 1;
    transform: none;
  }
}
.pr-mat-rows li:last-child {
  border-bottom: 0;
}
.pr-mat-rows span {
  font-family: var(--pr-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pr-mute);
}
.pr-mat-rows a,
.pr-mat-rows em {
  font-style: normal;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--pr-ink);
  text-decoration: none;
  word-break: break-word;
}
.pr-mat-rows a:hover {
  color: var(--pr-chloro);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* —— Plant tags (channels) —— */
.pr-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
}
.pr-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem 0.55rem 0.65rem;
  background: #f3ead4;
  border: 1px solid rgba(31, 58, 50, 0.18);
  border-left: 3px solid var(--pr-terra);
  font-family: var(--pr-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--pr-tray);
  text-decoration: none;
  transform-origin: left center;
  transition: transform 0.25s ease, background 0.2s ease;
  opacity: 0;
  animation: pr-tag-in 0.45s ease forwards;
  animation-delay: calc(0.35s + var(--pr-t, 0) * 0.08s);
}
@keyframes pr-tag-in {
  from {
    opacity: 0;
    transform: rotate(-4deg) translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.pr-tag-stick {
  width: 6px;
  height: 22px;
  background: linear-gradient(180deg, #c9b896, #8a7a5c);
  border-radius: 1px;
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.15);
}
.pr-tag:hover,
.pr-tag.is-flutter {
  background: #fff8e8;
  animation: pr-flutter 0.45s ease;
}
@keyframes pr-flutter {
  0%,
  100% {
    transform: rotate(0);
  }
  30% {
    transform: rotate(-3deg);
  }
  60% {
    transform: rotate(2deg);
  }
}

@media (max-width: 640px) {
  .page-propagation .pr-main {
    width: min(100% - 1.25rem, 720px);
    padding-top: 1.25rem;
  }
  .pr-cells {
    grid-template-columns: 1fr;
  }
  .pr-mat-rows li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pr-soil,
  .pr-mat-rows li,
  .pr-tag,
  .pr-submit.is-press,
  .pr-tag.is-flutter {
    animation: none !important;
    transition: none !important;
  }
  .pr-mat-rows li,
  .pr-tag {
    opacity: 1;
    transform: none;
  }
  .pr-cell.is-focus .pr-soil,
  .pr-cell.is-filled .pr-soil {
    height: 40%;
  }
}
