/* Cartão virtual — dobra de exemplo */

[data-leaf="crd"] .crd-imp {
  margin-top: 36px;
  padding: 28px 28px 24px;
  border: 1px solid #0060f818;
  border-radius: 20px;
  background: linear-gradient(165deg, #0060f80a, #fff 42%);
}
[data-leaf="crd"] .crd-imp-kicker {
  margin: 0 0 8px;
  font-family: var(--ds-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ds-accent);
}
[data-leaf="crd"] .crd-imp-title {
  margin: 0 0 12px;
  max-width: 28ch;
  font-family: var(--ds-font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.15;
  color: var(--ds-ink-soft);
}
[data-leaf="crd"] .crd-imp-title em {
  font-style: italic;
  color: var(--ds-accent);
}
[data-leaf="crd"] .crd-imp-lead {
  margin: 0 0 22px;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ds-muted);
}
[data-leaf="crd"] .crd-imp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
[data-leaf="crd"] .crd-imp-grid article {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 18px 18px 16px;
  border: 1px solid var(--ds-hairline);
  border-radius: 14px;
  background: #fff;
}
[data-leaf="crd"] .crd-imp-grid span {
  font-family: var(--ds-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--ds-accent);
}
[data-leaf="crd"] .crd-imp-grid b {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ds-ink-soft);
}
[data-leaf="crd"] .crd-imp-grid p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ds-muted);
}

@media (max-width: 720px) {
  [data-leaf="crd"] .crd-imp { padding: 20px 16px 16px; }
  [data-leaf="crd"] .crd-imp-grid { grid-template-columns: 1fr; }
}

[data-leaf="crd"] .crd-ex-sec { position: relative; overflow: clip; }

[data-leaf="crd"] .crd-ex-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 40px 56px;
  align-items: start;
  margin-top: 28px;
}

[data-leaf="crd"] .crd-ex-copy { display: grid; gap: 16px; }
[data-leaf="crd"] .crd-ex-copy > p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ds-muted); }

[data-leaf="crd"] .crd-ex-banner {
  display: inline-flex;
  width: fit-content;
  padding: 5px 10px;
  border: 1px solid #0060f828;
  border-radius: 6px;
  background: #0060f80a;
  font-family: var(--ds-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ds-accent);
}

[data-leaf="crd"] .crd-ex-points {
  display: grid;
  gap: 12px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
[data-leaf="crd"] .crd-ex-points li {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--ds-hairline);
  border-radius: 12px;
  background: #fff;
}
[data-leaf="crd"] .crd-ex-points b {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ds-ink-soft);
}
[data-leaf="crd"] .crd-ex-points span {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ds-muted);
}

[data-leaf="crd"] .crd-ex-foot {
  padding: 14px 16px;
  border-left: 3px solid var(--ds-accent);
  border-radius: 0 12px 12px 0;
  background: #f7faff;
  font-family: var(--ds-font-display);
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 500;
  font-style: italic;
  line-height: 1.45;
  letter-spacing: -.02em;
  color: var(--ds-ink-soft);
}

[data-leaf="crd"] .crd-ex-stage {
  position: relative;
  margin: 0;
  justify-self: center;
  width: min(100%, 300px);
}

[data-leaf="crd"] .crd-ex-device {
  position: relative;
  width: 100%;
  aspect-ratio: 1338 / 2784;
  filter: drop-shadow(0 28px 40px #0b3fd428);
}

[data-leaf="crd"] .crd-ex-glass {
  position: absolute;
  left: 4.45%;
  top: 1.55%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 91.05%;
  height: 96.85%;
  overflow: hidden;
  border-radius: 14% / 6.6%;
  background: #0b1220;
}

[data-leaf="crd"] .crd-ex-chrome {
  flex: none;
  z-index: 2;
  background: #0b1220;
}

[data-leaf="crd"] .crd-ex-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding-bottom: 18px;
  scrollbar-width: none;
}
[data-leaf="crd"] .crd-ex-scroll::-webkit-scrollbar { display: none; }

[data-leaf="crd"] .crd-ex-device .device-frame {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
}

[data-leaf="crd"] .crd-ex-status {
  display: grid;
  grid-template-columns: 1fr 86px 1fr;
  align-items: center;
  padding: 16px 22px 0;
  color: #e8eef8;
  font-family: var(--ds-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -.02em;
}
[data-leaf="crd"] .crd-ex-status b { height: 22px; }
[data-leaf="crd"] .crd-ex-sys {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #f2f5f8;
}
[data-leaf="crd"] .crd-ex-sys svg {
  display: block;
  flex: none;
}
[data-leaf="crd"] .crd-ex-sys .is-cell { width: 15px; height: 10px; }
[data-leaf="crd"] .crd-ex-sys .is-wifi { width: 14px; height: 11px; }
[data-leaf="crd"] .crd-ex-sys .is-batt { width: 24px; height: 12px; }

[data-leaf="crd"] .crd-ex-url {
  margin: 6px 6px 8px;
  padding: 7px 10px;
  border-radius: 99px;
  background: #161e30;
  text-align: center;
}
[data-leaf="crd"] .crd-ex-url span {
  font-family: var(--ds-font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .03em;
  color: #9aabc4;
}

[data-leaf="crd"] .crd-ex-card {
  overflow: hidden;
  margin: 0;
  border-radius: 0;
  background: #fff;
  text-align: center;
}

[data-leaf="crd"] .crd-ex-cover {
  position: relative;
  height: 96px;
  overflow: hidden;
  background: #04102c;
}
[data-leaf="crd"] .crd-ex-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 130%;
  object-fit: cover;
  object-position: 58% 18%;
  filter: saturate(1.15) contrast(1.05);
}
[data-leaf="crd"] .crd-ex-cover-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
}
[data-leaf="crd"] .crd-ex-cover::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(to top, #fff, transparent);
}

[data-leaf="crd"] .crd-ex-avatar {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 64px;
  height: 64px;
  margin: -32px auto 8px;
  padding: 7px;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 24px #0060f838;
}
[data-leaf="crd"] .crd-ex-avatar img,
[data-leaf="crd"] .crd-ex-avatar canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

[data-leaf="crd"] .crd-ex-co {
  margin: 0;
  font-family: var(--ds-font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ds-accent);
}
[data-leaf="crd"] .crd-ex-card > strong {
  display: block;
  margin: 6px 14px 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ds-ink-soft);
}
[data-leaf="crd"] .crd-ex-role {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ds-muted);
}
[data-leaf="crd"] .crd-ex-bio {
  margin: 8px 10px 0;
  font-size: 11px;
  line-height: 1.4;
  color: var(--ds-muted);
}

[data-leaf="crd"] .crd-ex-acts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin: 8px 6px 0;
}
[data-leaf="crd"] .crd-ex-acts button,
[data-leaf="crd"] .crd-ex-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0;
  padding: 6px 8px;
  min-height: 0;
  border: 1px solid var(--ds-hairline);
  border-radius: 9px;
  background: #f7faff;
  font-family: var(--ds-font-body);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ds-ink-soft);
  cursor: pointer;
}
[data-leaf="crd"] .crd-ex-acts button iconify-icon,
[data-leaf="crd"] .crd-ex-save iconify-icon {
  font-size: 14px;
  color: var(--ds-accent);
}
[data-leaf="crd"] .crd-ex-acts button:hover,
[data-leaf="crd"] .crd-ex-save:hover {
  border-color: #0060f828;
  background: #fff;
}

[data-leaf="crd"] .crd-ex-save {
  width: calc(100% - 12px);
  margin: 5px 6px 0;
  background: var(--ds-accent);
  border-color: var(--ds-accent);
  color: #fff;
}
[data-leaf="crd"] .crd-ex-save iconify-icon { color: #fff; }
[data-leaf="crd"] .crd-ex-save:hover {
  background: var(--ds-accent-deep, #0b3fd4);
  border-color: var(--ds-accent-deep, #0b3fd4);
  color: #fff;
}

[data-leaf="crd"] .crd-ex-qr-wrap {
  margin: 8px 6px 6px;
  padding: 8px 0 2px;
  border-top: 1px solid var(--ds-hairline);
  display: grid;
  justify-items: center;
  gap: 6px;
}
[data-leaf="crd"] .crd-ex-qr-wrap canvas {
  width: 76px;
  height: 76px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
[data-leaf="crd"] .crd-ex-qr-wrap small {
  font-family: var(--ds-font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ds-muted);
}

[data-leaf="crd"] .crd-ex-hint {
  margin: 0 6px 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff4e5;
  font-family: var(--ds-font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #9a3412;
}
[data-leaf="crd"] .crd-ex-hint[hidden] { display: none; }

[data-leaf="crd"] .crd-ex-stage figcaption {
  margin: 12px 4px 0;
  font-family: var(--ds-font-mono);
  font-size: 11px;
  letter-spacing: .03em;
  line-height: 1.45;
  color: var(--ds-muted);
}

@media (max-width: 900px) {
  [data-leaf="crd"] .crd-ex-board {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  [data-leaf="crd"] .crd-ex-stage { width: min(100%, 300px); }
}

[data-leaf="crd"] .crd-ideas {
  margin-top: 56px;
}
[data-leaf="crd"] .crd-ideas .leaf-head { margin-bottom: 8px; }
[data-leaf="crd"] .crd-ideas-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}
[data-leaf="crd"] .crd-ideas-grid article {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 20px 18px 16px;
  border: 1px solid var(--ds-hairline);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--ds-shadow-sm);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s cubic-bezier(.16, 1, .3, 1);
}
[data-leaf="crd"] .crd-ideas-grid article:hover {
  border-color: #0060f828;
  box-shadow: 0 12px 32px #0060f812;
  transform: translateY(-2px);
}
[data-leaf="crd"] .crd-ideas-grid iconify-icon {
  font-size: 22px;
  color: var(--ds-accent);
}
[data-leaf="crd"] .crd-ideas-grid b {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ds-ink-soft);
}
[data-leaf="crd"] .crd-ideas-grid p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ds-muted);
}
[data-leaf="crd"] .crd-ideas-grid ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
[data-leaf="crd"] .crd-ideas-grid li {
  padding: 5px 9px;
  border: 1px solid var(--ds-hairline);
  border-radius: 99px;
  background: #f7faff;
  font-family: var(--ds-font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ds-ink-soft);
}
[data-leaf="crd"] .crd-ideas-note {
  margin: 22px 0 0;
  padding: 16px 18px;
  border-left: 3px solid var(--ds-accent);
  border-radius: 0 12px 12px 0;
  background: #f7faff;
  font-family: var(--ds-font-display);
  font-size: clamp(15px, 2.2vw, 18px);
  font-weight: 500;
  font-style: italic;
  line-height: 1.45;
  letter-spacing: -.02em;
  color: var(--ds-ink-soft);
}

@media (max-width: 960px) {
  [data-leaf="crd"] .crd-ideas-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  [data-leaf="crd"] .crd-ideas-grid { grid-template-columns: 1fr; }
}

/* —— Hero phone: cartão real (logo Analyse360) —— */
[data-leaf="crd"] .crd-glass {
  display: flex;
  flex-direction: column;
  background: #0b1220;
}

[data-leaf="crd"] .crd-chrome {
  flex: 0 0 auto;
  z-index: 2;
  background: #0b1220;
  color: #e8eef8;
}

[data-leaf="crd"] .crd-status {
  display: grid;
  grid-template-columns: 1fr 72px 1fr;
  align-items: center;
  padding: 16px 14px 0;
  font-family: var(--ds-font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .02em;
  color: #e8eef8;
}
[data-leaf="crd"] .crd-status > span:first-child { justify-self: start; padding-left: 2px; }
[data-leaf="crd"] .crd-status b {
  width: 72px;
  height: 18px;
  border-radius: 99px;
  background: #000;
  justify-self: center;
}
[data-leaf="crd"] .crd-sys {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  justify-self: end;
  padding-right: 2px;
  color: #e8eef8;
}
[data-leaf="crd"] .crd-sys svg { display: block; }
[data-leaf="crd"] .crd-sys .is-cell { width: 14px; height: 9px; }
[data-leaf="crd"] .crd-sys .is-wifi { width: 13px; height: 10px; }
[data-leaf="crd"] .crd-sys .is-batt { width: 22px; height: 11px; }

[data-leaf="crd"] .crd-url {
  margin: 6px 10px 8px;
  padding: 5px 8px;
  border-radius: 8px;
  background: #161f30;
  text-align: center;
}
[data-leaf="crd"] .crd-url span {
  display: block;
  overflow: hidden;
  font-family: var(--ds-font-mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .04em;
  color: #9eb0cc;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-leaf="crd"] .crd-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 14px;
  scrollbar-width: none;
  background: #f4f7fc;
}
[data-leaf="crd"] .crd-scroll::-webkit-scrollbar { display: none; }

[data-leaf="crd"] .crd-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 12px 18px;
  text-align: center;
}

[data-leaf="crd"] .crd-cover {
  position: relative;
  width: calc(100% + 24px);
  margin: 0 -12px 0;
  height: 92px;
  overflow: hidden;
  background: #0a1a3a;
}
[data-leaf="crd"] .crd-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .42;
  filter: saturate(1.1) contrast(1.05);
}
[data-leaf="crd"] .crd-cover-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
[data-leaf="crd"] .crd-cover .crd-badge {
  position: absolute;
  top: 8px;
  left: 10px;
  z-index: 2;
  margin: 0;
  padding: 4px 8px;
  border: 1px solid #ffffff33;
  border-radius: 99px;
  background: #0b1220cc;
  color: #9ec4ff;
  backdrop-filter: blur(6px);
}

[data-leaf="crd"] .crd-avatar {
  position: relative;
  z-index: 2;
  width: 58px;
  height: 58px;
  margin: -28px 0 10px;
  padding: 3px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px #0060f822, 0 1px 0 #0000000d;
}
[data-leaf="crd"] .crd-avatar img,
[data-leaf="crd"] .crd-avatar canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 13px;
  object-fit: cover;
  background: #0b1220;
}

[data-leaf="crd"] .crd-co {
  margin: 0 0 2px;
  font-family: var(--ds-font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ds-accent);
}
[data-leaf="crd"] .crd-card > .crd-name {
  margin: 0 0 3px;
  font-family: var(--ds-font-display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -.03em;
  color: var(--ds-ink-soft);
}
[data-leaf="crd"] .crd-card > .crd-role {
  margin: 0 0 8px;
  font-family: var(--ds-font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ds-muted);
}
[data-leaf="crd"] .crd-bio {
  margin: 0 0 12px;
  max-width: 26ch;
  font-size: 10px;
  line-height: 1.45;
  color: var(--ds-muted);
}

[data-leaf="crd"] .crd-acts {
  gap: 5px;
  margin: 0 0 8px;
}
[data-leaf="crd"] .crd-acts li {
  padding: 8px 4px 7px;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 1px 0 #00000008;
  transition: border-color .25s var(--ds-ease), transform .25s var(--ds-ease);
}
[data-leaf="crd"] .crd-acts li:hover {
  border-color: #0060f844;
  transform: translateY(-1px);
}
[data-leaf="crd"] .crd-acts iconify-icon { font-size: 15px; }

[data-leaf="crd"] .crd-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin: 0 0 10px;
  padding: 9px 10px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, #0060f8, #3d86ff);
  box-shadow: 0 8px 18px #0060f833;
  font-family: var(--ds-font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  transition: transform .25s var(--ds-ease), filter .25s var(--ds-ease);
}
[data-leaf="crd"] .crd-save iconify-icon { font-size: 14px; color: #fff; }
[data-leaf="crd"] .crd-save:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

[data-leaf="crd"] .crd-qr-inline {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 5px;
  width: 100%;
  margin: 0 0 8px;
  padding: 10px 8px 8px;
  border: 1px dashed #0060f833;
  border-radius: 12px;
  background: #fff;
}
[data-leaf="crd"] .crd-qr-inline .crd-qr-pulse {
  position: absolute;
  inset: 6px;
  border: 1.5px solid var(--ds-accent);
  border-radius: 10px;
  opacity: .16;
  pointer-events: none;
}
[data-leaf="crd"] .leaf-hero.ambient-ready .crd-qr-inline .crd-qr-pulse {
  animation: brand-swatch-cycle 3s ease-in-out infinite;
}
[data-leaf="crd"] .crd-qr-inline .crd-qr-mark {
  width: 52px;
  height: 52px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
[data-leaf="crd"] .crd-qr-inline small {
  font-family: var(--ds-font-mono);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ds-muted);
}

[data-leaf="crd"] .crd-card > .crd-toast {
  position: static;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}

[data-leaf="crd"] .crd-sheet {
  background: linear-gradient(165deg, #fff, #f3f7ff);
  border-color: #0060f822;
}
