/* ================================================================
   QUALZY — Activity Type Pages (Shared)
   Shared styles for all /activity-types/*.html pages
   ================================================================ */


/* HERO
   ---------------------------------------------------------------- */
.at-hero {
  padding: 120px 80px 80px;
  background: var(--wh);
  border-bottom: 1px solid var(--rule);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.at-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.at-back {
  font-size: 13px;
  font-weight: 500;
  color: var(--mu);
  text-decoration: none;
  transition: color 0.15s ease;
  white-space: nowrap;
  flex: 1;
  text-align: left;
}
.at-back:hover { color: var(--o); }
.at-hero-top .ey { margin-bottom: 0; flex: 0 0 auto; }
.at-hero-top > span:last-child { flex: 1; }

.at-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 48px;
}

.at-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  color: var(--dk);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.at-hero h1 em {
  color: var(--o);
  font-style: italic;
}

.at-sub {
  font-size: 18px;
  color: var(--mid);
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto 36px;
  font-weight: 300;
}

.at-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

/* Decorative SVG background */
.at-hsvg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

/* Hero blob accent */
.at-hblob {
  position: absolute;
  top: -120px;
  right: -120px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: var(--op);
  z-index: 0;
}

/* Stat bar */
.at-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  padding-top: 40px;
}

.at-stat {
  text-align: center;
  padding: 0 24px;
  border-right: 1px solid var(--rule);
}

.at-stat:last-child {
  border-right: none;
}

.at-stat-n {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  color: var(--dk);
  line-height: 1.15;
  margin-bottom: 8px;
}

.at-stat-l {
  font-size: 12px;
  color: var(--mu);
  line-height: 1.45;
  max-width: 200px;
  margin: 0 auto;
}


/* HERO — image centered variant
   ---------------------------------------------------------------- */
.at-hero--img {
  background: var(--dk);
  text-align: center;
  padding-bottom: 32px;
  border-bottom: none;
}

.at-hero--img .at-hblob {
  background: radial-gradient(circle, rgba(232,97,44,0.22) 0%, transparent 65%);
  top: -140px;
  right: -140px;
  width: 680px;
  height: 680px;
  border-radius: 50%;
}

.at-hero--img .at-back {
  color: rgba(255,255,255,0.38);
}
.at-hero--img .at-back:hover { color: var(--o); }

.at-hero--img h1 {
  color: #fff;
}

.at-hero--img .at-sub {
  color: rgba(255,255,255,0.55);
  margin: 0 auto;
}

.at-hero-centered {
  max-width: 680px;
  margin: 0 auto 52px;
}

.at-screenshot-bridge {
  background: linear-gradient(to bottom, var(--dk) 0%, var(--dk) 70%, #fff 70%);
  padding: 0 24px;
}

.at-screenshot-bridge--light {
  background: linear-gradient(to bottom, var(--wh) 0%, var(--wh) 70%, #fff 70%);
}

.at-hero-screenshot {
  max-width: 900px;
  margin: 0 auto;
}

.at-hero-screenshot img {
  width: 100%;
  display: block;
  filter: drop-shadow(0 24px 56px rgba(0,0,0,0.4)) drop-shadow(0 0 80px rgba(232,97,44,0.1));
  animation: heroImgReveal 1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

@keyframes heroImgReveal {
  from {
    opacity: 0;
    transform: translateY(36px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


/* HOW IT WORKS
   ---------------------------------------------------------------- */
.at-hiw {
  background: #fff;
}

.at-hiw-hd {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 52px;
}

.at-how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.at-how-card {
  background: #fff;
  border: 1.5px solid var(--rule);
  border-radius: 16px;
  padding: 28px 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.at-how-card:hover {
  border-color: var(--o);
  box-shadow: 0 8px 32px rgba(232, 97, 44, 0.08);
}

.at-how-icon {
  width: 40px;
  height: 40px;
  background: var(--op);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.at-how-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--o);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.at-how-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--dk);
  margin-bottom: 10px;
  line-height: 1.3;
}

.at-how-card p {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.65;
}


/* PARTICIPANT EXPERIENCE (dark)
   ---------------------------------------------------------------- */
.at-part {
  background: var(--dk);
}

.at-part-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* Single-column variant — used when steps list is much taller than the intro text */
.at-part-grid--stack {
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.at-part-text .slbl { color: rgba(255,255,255,0.5); }

.at-part-text h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
}

.at-part-text h2 em {
  color: var(--o);
  font-style: italic;
}

.at-part-text p {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 16px;
}

.at-part-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.at-part-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px;
  padding: 20px;
  text-align: left;
}

.at-part-step-n {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--o);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  margin-top: 1px;
}

.at-part-step-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.at-part-step-text p {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.55;
  margin: 0;
}


/* AI ANALYSIS (warm tinted)
   ---------------------------------------------------------------- */
.at-ai {
  background: var(--op);
}

.at-ai-hd {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}

.at-ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.at-ai-card {
  background: #fff;
  border: 1.5px solid rgba(232, 97, 44, 0.18);
  border-radius: 14px;
  padding: 24px 22px;
}

.at-ai-card-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--o);
  margin-bottom: 10px;
}

.at-ai-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--dk);
  margin-bottom: 8px;
  line-height: 1.3;
}

.at-ai-card p {
  font-size: 13px;
  color: var(--mid);
  line-height: 1.6;
}


/* RATING PHASE DEMO  (ideation page)
   ---------------------------------------------------------------- */
.at-rate {
  background: #fff;
  border-top: 1.5px solid var(--rule);
}

.at-rate-hd {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 52px;
}

/* Three rules: positive pool / negative votes / net score */
.at-rate-rules {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 600px;
  margin: 0 auto 64px;
}

.at-rate-rule {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.at-rate-rule-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  flex-shrink: 0;
  color: #fff;
  letter-spacing: -0.02em;
}
.at-rate-rule-icon--pos { background: #5a9e3a; }
.at-rate-rule-icon--neg { background: #d94040; }
.at-rate-rule-icon--net { background: var(--o); }

.at-rate-rule strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--dk);
  margin-bottom: 4px;
}

.at-rate-rule p {
  font-size: 14px;
  color: var(--mu);
  line-height: 1.65;
  margin: 0;
}

/* Demo area — product + bubbles on left, comment cards on right */
.at-rate-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}

.at-rate-col-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--mu);
  margin: 0 0 14px;
}

/* Product image card */
.at-rate-product {
  background: var(--wh);
  border: 1.5px solid var(--rule);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  position: relative;
}

.at-rate-product img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Score bubbles — overlay on the product image */
.at-rate-bubbles {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.at-rate-bubbles.is-vis {
  opacity: 1;
}

.at-rate-bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  position: relative;
}

.at-rate-bubble--pos {
  width: 92px;
  height: 92px;
  background: #5a9e3a;
  z-index: 1;
  margin-right: -14px;
}

.at-rate-bubble--net {
  width: 112px;
  height: 112px;
  background: var(--o);
  z-index: 3;
  box-shadow: 0 6px 24px rgba(232,97,44,0.32);
}

.at-rate-bubble--neg {
  width: 80px;
  height: 80px;
  background: #d94040;
  z-index: 1;
  margin-left: -14px;
}

.at-rate-bnum {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1;
  display: block;
  letter-spacing: -0.02em;
}
.at-rate-bubble--pos .at-rate-bnum { font-size: 26px; }
.at-rate-bubble--net .at-rate-bnum { font-size: 32px; }
.at-rate-bubble--neg .at-rate-bnum { font-size: 22px; }

.at-rate-blbl {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.75;
  text-transform: uppercase;
  margin-top: 3px;
}

/* Comment cards — overlapping stack on the right */
.at-rate-comments {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.at-rate-comment {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.13);
  position: relative;
  opacity: 0;
  transform: translateX(80px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Per-card margin-top as % of container width so the same amount of
   each previous card (~119px at the typical 422px column width) is
   always visible regardless of viewport. Values derived from each
   card's native aspect ratio vs the target visible fraction (28.1%). */
.at-rate-comment:nth-child(1) { z-index: 1; }
.at-rate-comment:nth-child(2) { z-index: 2; margin-top: -22.0%; }
.at-rate-comment:nth-child(3) { z-index: 3; margin-top: -12.8%; }
.at-rate-comment:nth-child(4) { z-index: 4; margin-top:  -4.9%; }

/* Final resting positions — 16px indent per step so stacking is obvious */
.at-rate-comment:nth-child(1).is-vis { opacity: 1; transform: translateX(0);    }
.at-rate-comment:nth-child(2).is-vis { opacity: 1; transform: translateX(16px); }
.at-rate-comment:nth-child(3).is-vis { opacity: 1; transform: translateX(32px); }
.at-rate-comment:nth-child(4).is-vis { opacity: 1; transform: translateX(48px); }

.at-rate-replay {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--o);
  background: none;
  border: 1.5px solid rgba(232,97,44,0.3);
  border-radius: 20px;
  padding: 6px 16px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.4s ease, color 0.15s, border-color 0.15s;
}
.at-rate-replay.is-vis { opacity: 1; }
.at-rate-replay:hover { color: var(--dk); border-color: var(--dk); }

/* Bubble pop animation when score changes */
@keyframes atBubblePop {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.18); }
  100% { transform: scale(1); }
}
.at-rate-bubble.is-pop {
  animation: atBubblePop 0.38s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Responsive */
@media (max-width: 860px) {
  .at-rate-demo {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 480px;
  }
}

@media (max-width: 600px) {
  .at-rate-bubble--pos { width: 76px; height: 76px; }
  .at-rate-bubble--net { width: 94px; height: 94px; }
  .at-rate-bubble--neg { width: 66px; height: 66px; }
  .at-rate-bubble--pos .at-rate-bnum { font-size: 22px; }
  .at-rate-bubble--net .at-rate-bnum { font-size: 26px; }
  .at-rate-bubble--neg .at-rate-bnum { font-size: 18px; }
}


/* MATRIX VISUALISATION
   ---------------------------------------------------------------- */
.at-matrix {
  background: var(--op);
  overflow: hidden;           /* clips the image that bleeds off-right */
  padding-top: 100px;
  padding-bottom: 100px;
}

.at-matrix-layout {
  display: flex;
  align-items: center;
  gap: 64px;
  /* Left edge matches .inn inside .pad on all viewport widths:
     .pad adds 80px; .inn auto-centers at max 1200px, so extra left margin =
     max(0, (100vw - 160px - 1200px) / 2) = max(0, (100vw - 1360px) / 2)
     Total: 80px + max(0, (100vw - 1360px) / 2) */
  padding-left: max(80px, calc((100vw - 1360px) / 2 + 80px));
  /* No right padding — image bleeds to section edge */
}

.at-matrix-text {
  flex: 0 0 440px;
  max-width: 440px;
}

.at-matrix-text p {
  color: var(--mu);
  font-size: 15px;
  line-height: 1.7;
  margin-top: 14px;
}

.at-matrix-img {
  flex: 1 1 auto;
  min-width: 0;
  overflow: visible;
}

/* Image wider than remaining space → bleeds past section right edge.
   77vw is calibrated so ~70% is visible on a 1440px viewport. */
.at-matrix-img img {
  width: max(480px, 77vw);
  max-width: none;
  height: auto;
  display: block;
}

/* Slide in from the right instead of the default translateY fade-up */
.at-matrix-img.fu {
  transform: translateX(120px);
  transition: opacity 0.9s ease, transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.at-matrix-img.fu.vis {
  transform: translateX(0);
}

/* Mobile — single column, full-width image, no bleed */
@media (max-width: 860px) {
  .at-matrix {
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .at-matrix-layout {
    flex-direction: column;
    padding-left: 24px;
    padding-right: 24px;
    gap: 32px;
    align-items: flex-start;
  }
  .at-matrix-text {
    flex: none;
    max-width: 100%;
  }
  .at-matrix-img {
    width: 100%;
    overflow: hidden;
  }
  .at-matrix-img img {
    width: 100%;
    max-width: 100%;
  }
  /* Restore normal fade-up on mobile */
  .at-matrix-img.fu {
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
}


/* USE CASES
   ---------------------------------------------------------------- */
.at-uses {
  background: var(--wh);
}

.at-uses-hd {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 44px;
}

.at-use-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.at-use-card {
  border: 1.5px solid var(--rule);
  border-radius: 14px;
  padding: 28px 26px;
  transition: border-color 0.2s ease;
}

.at-use-card:hover { border-color: var(--o); }

.at-use-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--dk);
  margin-bottom: 10px;
  line-height: 1.3;
}

.at-use-card p {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.65;
}

.at-use-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--o);
  border: 1px solid rgba(232,97,44,0.3);
  border-radius: 20px;
  padding: 3px 10px;
  margin-bottom: 12px;
}


/* MAIZY CHAT — animated demo section (journeys page)
   ---------------------------------------------------------------- */
.at-maizy {
  background: var(--d2);
  padding: 96px 0;
}

.at-maizy-grid {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 72px;
  align-items: center;
}

.at-maizy-txt { max-width: 500px; }

.at-maizy-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 28px;
  padding: 14px 16px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px;
  font-size: 12.5px;
  color: rgba(255,255,255,.45);
  line-height: 1.5;
}
.at-maizy-note svg {
  width: 15px; height: 15px;
  flex-shrink: 0;
  margin-top: 1px;
  stroke: rgba(250,88,2,.7);
}

/* 2-card variant for the ai grid when Maizy is a separate section */
.at-ai-grid--2 {
  grid-template-columns: 1fr 1fr;
  max-width: 860px;
  margin: 0 auto;
}

/* ── Maizy Chat UI (shared with proactive-ai page) ───────────────────────── */

.mai-demo {
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 540px;
  box-shadow: 0 12px 48px rgba(0,0,0,.3), 0 2px 8px rgba(0,0,0,.1);
}

.mai-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border-bottom: 1px solid rgba(0,0,0,.07);
  background: #FAFAF8;
  flex-shrink: 0;
}

.mai-av {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #00B2A9;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; color: #fff;
  font-family: var(--font-body);
  flex-shrink: 0;
}

.mai-hd-name { font-size: 13px; font-weight: 600; color: var(--dk); font-family: var(--font-body); line-height: 1.2; }
.mai-hd-sub  { font-size: 10px; color: var(--mu);  font-family: var(--font-body); line-height: 1.2; }

.mai-badge {
  margin-left: auto;
  background: rgba(0,178,169,.12);
  color: #00B2A9;
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 100px;
  font-family: var(--font-body);
}

.mai-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 16px 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
  background: #fff;
}
.mai-msgs::-webkit-scrollbar { width: 3px; }
.mai-msgs::-webkit-scrollbar-track { background: transparent; }
.mai-msgs::-webkit-scrollbar-thumb { background: rgba(0,0,0,.15); border-radius: 2px; }

.mai-msg { display: flex; animation: maiFadeUp 0.22s ease forwards; }
.mai-msg--u  { justify-content: flex-end; }
.mai-msg--ai { justify-content: flex-start; }

@keyframes maiFadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mai-bubble {
  max-width: 88%;
  padding: 9px 13px;
  font-size: 12px;
  line-height: 1.6;
  font-family: var(--font-body);
  border-radius: 14px;
}
.mai-bubble--u  { background: var(--o); color: #fff; border-bottom-right-radius: 3px; font-weight: 500; }
.mai-bubble--ai { background: #F2F1EE; color: #1A1917; border-bottom-left-radius: 3px; border: 1px solid rgba(0,0,0,.06); }

.mai-thinking { display: flex; align-items: center; gap: 5px; padding: 11px 14px; }
.mai-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #00B2A9;
  opacity: 0.5;
  animation: maiDot 1.1s ease-in-out infinite;
}
.mai-dot:nth-child(2) { animation-delay: 0.18s; }
.mai-dot:nth-child(3) { animation-delay: 0.36s; }
@keyframes maiDot {
  0%, 60%, 100% { transform: translateY(0);    opacity: 0.4; }
  30%           { transform: translateY(-5px); opacity: 1;   }
}

.mai-foot {
  flex-shrink: 0;
  padding: 10px 12px 11px;
  border-top: 1px solid rgba(0,0,0,.07);
  background: #FAFAF8;
}
.mai-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 8px;
  padding: 8px 10px;
  min-height: 38px;
}
.mai-input {
  flex: 1;
  font-size: 12px;
  color: #1A1917;
  font-family: var(--font-body);
  line-height: 1.4;
  word-break: break-word;
}
.mai-input:empty::before { content: 'Ask Maizy about your journey data…'; color: rgba(0,0,0,.3); }

.mai-cursor {
  display: inline-block;
  width: 1.5px; height: 13px;
  background: var(--o);
  vertical-align: middle;
  margin-left: 1px;
  animation: maiCursor 0.75s step-end infinite;
}
@keyframes maiCursor { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.mai-send {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--o);
  border: none; cursor: default;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  opacity: 0.3;
  transition: opacity 0.2s ease;
  color: #fff;
}
.mai-send.mai-active { opacity: 1; }
.mai-send svg { width: 12px; height: 12px; }

.mai-hint { font-size: 9.5px; color: rgba(0,0,0,.3); font-family: var(--font-body); text-align: center; margin-top: 5px; }

.mai-bubble--ai .mai-ln  { margin: 0; line-height: 1.58; }
.mai-bubble--ai .mai-sp  { height: 7px; }
.mai-bubble--ai .mai-qt  { background: rgba(0,0,0,.055); border-radius: 5px; padding: 7px 11px; margin: 3px 0 1px; font-style: italic; color: rgba(26,25,23,.78); font-size: 11.5px; line-height: 1.52; }
.mai-bubble--ai .mai-at  { font-size: 10.5px; color: rgba(26,25,23,.42); font-style: normal; padding-left: 3px; margin-bottom: 3px; font-weight: 500; }
.mai-bubble--ai .mai-hdr { font-weight: 700; color: #1A1917; margin-top: 2px; }


/* RELATED ACTIVITY TYPES
   ---------------------------------------------------------------- */
.at-rel {
  background: var(--wh);
  border-top: 1px solid var(--rule);
}

.at-rel-hd {
  text-align: center;
  margin-bottom: 32px;
}

.at-rel-hd h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--dk);
  margin-bottom: 8px;
}

.at-rel-hd p {
  font-size: 14px;
  color: var(--mu);
}

.at-rel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.at-rel-card {
  display: block;
  background: #fff;
  border: 1.5px solid var(--rule);
  border-radius: 12px;
  padding: 20px 22px;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.15s ease;
}

.at-rel-card:hover {
  border-color: var(--o);
  box-shadow: 0 4px 16px rgba(232, 97, 44, 0.07);
}

.at-rel-type {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--o);
  margin-bottom: 6px;
}

.at-rel-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--dk);
  margin-bottom: 6px;
  line-height: 1.3;
}

.at-rel-desc {
  font-size: 12px;
  color: var(--mu);
  line-height: 1.5;
}


/* CANVAS GALLERY (Personal Canvas page)
   ---------------------------------------------------------------- */

/* Canvas examples — off-white, sits between dark (participant) and warm orange (AI analysis) */
.at-canvas-gallery {
  background: var(--wh);
  padding: 80px 0;
}

/* Heading block — centred, constrained to .inn width */
.at-canvas-gallery-hd {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 44px;
}

.at-canvas-gallery-hd .slbl {
  color: var(--o);
}

.at-canvas-gallery-hd h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 700;
  color: var(--dk);
  margin-bottom: 10px;
  line-height: 1.25;
}

.at-canvas-gallery-hd p {
  font-size: 15px;
  color: var(--mid);
  line-height: 1.6;
  font-weight: 300;
}

/* 4-across full-width grid */
.at-canvas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 0 40px;
  max-width: 1440px;
  margin: 0 auto;
}

/* Each canvas card */
.at-canvas-item {
  overflow: hidden;
  border-radius: 14px;
  opacity: 0;
  transform: translateY(52px);
  transition:
    opacity 1.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.at-canvas-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.at-canvas-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* Gentle float animation — each item slightly out of phase */
@keyframes canvasFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

.at-canvas-item.is-floating {
  animation: canvasFloat 5s ease-in-out infinite;
}
.at-canvas-item.is-floating:nth-child(1) { animation-delay:    0s; }
.at-canvas-item.is-floating:nth-child(2) { animation-delay: -1.25s; }
.at-canvas-item.is-floating:nth-child(3) { animation-delay: -2.5s; }
.at-canvas-item.is-floating:nth-child(4) { animation-delay: -3.75s; }


/* RESPONSIVE
   ---------------------------------------------------------------- */
@media (max-width: 1100px) {
  .at-maizy-grid { grid-template-columns: 1fr; gap: 48px; }
  .at-maizy-txt  { max-width: 100%; }
}

@media (max-width: 900px) {
  .at-hero { padding: 80px 40px 60px; }
  .at-how-grid { grid-template-columns: 1fr 1fr; }
  .at-part-grid { grid-template-columns: 1fr; gap: 40px; }
  .at-ai-grid { grid-template-columns: 1fr 1fr; }
  .at-ai-grid--2 { grid-template-columns: 1fr 1fr; max-width: 100%; }
  .at-use-grid { grid-template-columns: 1fr; }
  .at-rel-grid { grid-template-columns: 1fr 1fr; }
  .at-maizy { padding: 64px 0; }
  .at-canvas-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .at-how-grid { grid-template-columns: 1fr; }
  .at-ai-grid { grid-template-columns: 1fr; }
  .at-ai-grid--2 { grid-template-columns: 1fr; }
  .at-rel-grid { grid-template-columns: 1fr; }
  .at-hero-inner { padding: 0 24px; }
  .at-stats { grid-template-columns: 1fr; gap: 20px; }
  .at-stat { border-right: none; border-bottom: 1px solid var(--rule); padding: 0 0 20px; }
  .at-stat:last-child { border-bottom: none; }
  .mai-demo { height: 460px; }

  /* Screenshot bridge — fix text clip + adjust gradient for mobile image proportions */
  .at-hero-centered { padding: 0 20px; }
  .at-screenshot-bridge {
    background: linear-gradient(to bottom, var(--dk) 0%, var(--dk) 55%, #fff 55%);
  }
  .at-screenshot-bridge--light {
    background: linear-gradient(to bottom, var(--wh) 0%, var(--wh) 55%, #fff 55%);
  }

  /* Reduce hero top padding on mobile */
  .at-hero { padding: 68px 24px 60px; }

  /* Breadcrumb nav — stack and center on mobile */
  .at-hero-top {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }
  .at-hero-top .at-back { text-align: center; flex: none; }
  .at-hero-top > span:last-child { display: none; }

  /* Canvas gallery — 2 columns on mobile, full portrait images */
  .at-canvas-grid { grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 6px; }
  .at-canvas-gallery { padding-bottom: 52px; }
  .at-canvas-gallery-hd { padding: 0 24px; }
  /* Disable float animation on mobile */
  .at-canvas-item.is-floating { animation: none; }
}
