/* Cartões da abertura: um por vez cresce até ocupar a grade e vira um exemplo.
   Anima só clip-path, opacity, transform e filter. */
.hero-art { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.demo { position: relative; width: 100%; max-width: 520px; height: 470px; }
.demo .ico { flex: none; width: 38px; height: 38px; padding: 8px; border-radius: 11px; background: var(--chip); fill: none; stroke: var(--green-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.cards { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 1fr); gap: 14px; height: 100%; }
.card {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px;
  min-width: 0; padding: 14px 18px; text-align: left; cursor: pointer;
  font-family: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 22px 44px -30px rgba(14, 21, 18, 0.4), 0 2px 6px rgba(14, 21, 18, 0.04);
  transition: border-color 0.18s var(--ease), transform 0.14s var(--ease);
}
.card:hover { border-color: var(--green); }
.card:active { transform: scale(0.98); }
.card .ico { margin-bottom: 8px; }
.card strong { font-size: 15.5px; line-height: 1.25; }
.card small { font-size: 13px; line-height: 1.35; color: var(--muted); }

.panel {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; gap: 14px;
  padding: 24px 26px; background: #fff; border-radius: 24px; overflow: hidden; cursor: pointer;
  box-shadow: inset 0 0 0 2px var(--green);
  visibility: hidden; opacity: 0;
}
.panel.show { visibility: visible; }
.panel.move { transition: clip-path 0.55s var(--ease), opacity 0.25s var(--ease); }
.panel.open { opacity: 1; }
.head { display: flex; align-items: center; gap: 12px; font-size: 18px; }
.body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 10px; font-size: 14.5px; line-height: 1.45; }

/* cada linha do exemplo entra em sequência */
.panel .step { opacity: 0; transform: translateY(10px); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.panel.open .step { opacity: 1; transform: none; transition-delay: calc(0.28s + var(--i) * 0.17s); }

.body .lbl { font-size: 12.5px; color: var(--muted); }
.body .who { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15.5px; }
.body .who span, .body .who em, .chips span { font-style: normal; font-size: 13px; font-weight: 700; color: var(--green-text); background: var(--chip); padding: 6px 13px; border-radius: 999px; }
.body .msg { background: var(--tint); padding: 14px 16px; border-radius: 4px 16px 16px 16px; font-size: 15.5px; }
.body .big { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.body .ok { background: #f2fbf6; border: 1px solid #c9e9d8; border-radius: 12px; padding: 11px 14px; font-weight: 600; }
.btns { display: flex; gap: 10px; margin-top: 6px; }
.btns span { border: 1.5px solid #c3cec8; border-radius: 999px; padding: 8px 18px; font-size: 14px; font-weight: 700; }
.btns .solid { background: var(--green-btn); border-color: var(--green-btn); color: #fff; }

.wave { display: flex; align-items: center; gap: 3px; height: 30px; }
.wave s { flex: 1; max-width: 4px; border-radius: 2px; background: #c3ced3; transition: background-color 0.2s linear; }
.panel.open .wave s { background: var(--green); transition-delay: calc(0.4s + var(--b) * 45ms); }

.note { background: var(--tint); border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; }

.body .grp { font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 4px; }
.task { position: relative; padding-left: 30px; }
.task::before { content: ''; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border: 1.6px solid #93a19a; border-radius: 50%; }
.task.sub { margin-left: 28px; }
.task::after { content: ''; position: absolute; left: 6.5px; top: 4px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: 0; }
.panel.open .tick::before { background: var(--green); border-color: var(--green); transition: background-color 0.2s var(--t), border-color 0.2s var(--t); }
.panel.open .tick::after { opacity: 1; transition: opacity 0.2s var(--t); }

.switch { display: flex; justify-content: space-between; align-items: center; font-weight: 700; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.switch i { position: relative; width: 44px; height: 24px; border-radius: 999px; background: #c9d2cd; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; }
.panel.open .switch i { background: var(--green); transition: background-color 0.25s 1.5s; }
.panel.open .switch i::after { transform: translateX(20px); transition: transform 0.25s var(--ease) 1.5s; }
.chat { display: flex; align-items: center; gap: 12px; }
.chat b { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #d7e9ff; color: #2b5c9e; font-size: 12.5px; }
.chat p { min-width: 0; font-size: 13px; color: var(--muted); }
.chat strong { display: block; color: var(--ink); font-size: 14px; }
.panel.open .blur { filter: blur(6px); transition: filter 0.5s var(--ease) 1.65s; }

.demo-pause { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--muted); cursor: pointer; }
.demo-pause svg { width: 12px; height: 12px; fill: currentColor; }
.demo-pause .i-play, .demo-pause[aria-pressed='true'] .i-pause { display: none; }
.demo-pause[aria-pressed='true'] .i-play { display: inline; }

@media (max-width: 600px) {
  .demo { height: 480px; }
  .cards { gap: 10px; }
  .card { padding: 12px 14px; }
  .card strong { font-size: 14px; }
  .card small { font-size: 12px; }
  .panel { padding: 20px 18px; }
  .body { font-size: 14px; gap: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .demo-pause { display: none; }
  .panel .step { opacity: 1; transform: none; }
}
