/* Shared platform-module detail pages */

.mod-banner {
  background: #fff4eb;
  border: 1px dashed var(--line);
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-deep);
  padding: 8px 12px;
  border-radius: 14px;
  margin-bottom: 18px;
}

.mod-platform {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin: 0 0 28px;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 24px;
  background:
    radial-gradient(500px 220px at 10% 0%, rgba(245, 132, 43, 0.16), transparent 60%),
    linear-gradient(180deg, #fffaf5, #fff);
}
.mod-platform img {
  width: 100%;
  max-height: min(34vh, 300px);
  height: auto;
  object-fit: cover;
  object-position: center 45%;
  border-radius: 18px;
  display: block;
  box-shadow: var(--shadow);
}
.mod-platform .kicker {
  margin: 0 0 8px;
}
.mod-platform h2 {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  margin: 0 0 10px;
  line-height: 1.2;
}
.mod-platform p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: var(--fs-lede, 1rem);
  line-height: 1.55;
}
.mod-blocks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mod-blocks a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.mod-blocks a:hover,
.mod-blocks a:focus-visible {
  border-color: var(--brand);
  color: var(--brand-deep);
  background: #fff4eb;
}
.mod-blocks a.on {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
  color: #fff;
}

.mod-layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.mod-hero {
  margin-bottom: 8px;
}
.mod-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1.12;
  margin: 0 0 12px;
}
.mod-hero .lede {
  max-width: 58ch;
}
.mod-shot {
  width: 100%;
  height: auto;
  border-radius: 20px;
  display: block;
  margin: 14px 0 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
}
.mod-section {
  scroll-margin-top: 96px;
  padding: 8px 0 28px;
  border-top: 1px solid rgba(253, 186, 116, 0.55);
}
.mod-section:first-of-type { border-top: 0; }
.mod-section .sec-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin: 0 0 8px;
}
.mod-section h2 {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  margin: 0 0 10px;
  line-height: 1.2;
}
.mod-section .sec-lede {
  color: var(--muted);
  max-width: 62ch;
  margin: 0 0 14px;
  line-height: 1.55;
}
.mod-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.mod-points li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
}
.mod-points strong {
  display: block;
  font-size: 1.02rem;
  margin-bottom: 4px;
}
.mod-points span {
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.98rem;
}

.mod-grid-3 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 0;
}
.mod-card {
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 14px;
  min-width: 0;
  overflow: hidden;
}
.mod-card h3 {
  font-family: var(--display);
  font-size: 1.05rem;
  margin: 0 0 6px;
}
.mod-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}
/* Product / SAMPLE shots inside cards — never honor HTML height attrs as fixed px */
.mod-card > img,
.mod-grid-3 .mod-card img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  background: #fff7ed;
}
@media (max-width: 720px) {
  .mod-grid-3 { grid-template-columns: 1fr; }
}

/* Peach robot helper rail (replaces Susan green orb narrator) */
.mod-helper {
  position: sticky;
  top: 88px;
  background: linear-gradient(180deg, #fffaf5, #fff);
  border: 1px dashed var(--line);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow);
  text-align: center;
}
.mod-helper img {
  width: min(160px, 70%);
  height: auto;
  display: block;
  margin: 0 auto 12px;
  animation: mod-helper-pulse 2.8s ease-in-out infinite;
}
@keyframes mod-helper-pulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) {
  .mod-helper img { animation: none; }
}
.mod-helper .who {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin: 0 0 6px;
}
.mod-helper h2 {
  font-family: var(--display);
  font-size: 1.2rem;
  margin: 0 0 8px;
  line-height: 1.2;
}
.mod-helper > p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}
.mod-helper-nav {
  display: grid;
  gap: 6px;
  text-align: left;
}
.mod-helper-nav a {
  display: block;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
}
.mod-helper-nav a:hover,
.mod-helper-nav a:focus-visible {
  background: #fff4eb;
  border-color: var(--line);
  color: var(--brand-deep);
}

.mod-main .mod-section,
.mod-main .mod-hero {
  scroll-margin-top: 96px;
}

@media (max-width: 900px) {
  .mod-platform { grid-template-columns: 1fr; }
  .mod-layout { grid-template-columns: 1fr; }
  .mod-helper { position: relative; top: 0; }
}
