/* Homepage featured showcase — portfolio mock plates (Studio, GrowthX).
   Scoped to .featured-layer; inactive layers hide live mounts. */

.featured-layer:not(.is-active) .mock-plate,
.featured-layer:not(.is-active) .dg-slide {
  display: none;
}

.featured-layer .mock-plate {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.featured-layer .mock-scale {
  width: 1200px;
  transform-origin: center center;
  flex-shrink: 0;
}

/* ── Studio mocks ── */
.featured-layer .mock {
  background: var(--surface);
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
}
.featured-layer .mock-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}
.featured-layer .mock-kicker {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.featured-layer .mock-status {
  font-size: 12px;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.featured-layer .mock-status .d {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #c79a3a;
  display: inline-block;
}
.featured-layer .mock-status.live .d { background: #3f9d6b; }
.featured-layer .mock-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 6px;
}
.featured-layer .mock-lede {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 4px;
}
.featured-layer .badge-rec {
  align-self: flex-start;
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 5px;
  padding: 2px 8px;
  margin: 16px 0 10px;
}
.featured-layer .mock-dir {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 4px;
}
.featured-layer .mock-dir-tag {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 8px;
}
.featured-layer .mock-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
}
.featured-layer .mock-item .lbl { color: var(--text); }
.featured-layer .mock-item .amt {
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
.featured-layer .mock-total {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  margin-top: 2px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.featured-layer .mock-total .amt { font-variant-numeric: tabular-nums; }
.featured-layer .mock-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.featured-layer .mock-btn {
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  line-height: 1;
  border-radius: 5px;
}
.featured-layer .mock-btn.primary {
  background: var(--text);
  color: var(--bg);
}
.featured-layer .mock-btn.ghost {
  color: var(--text);
  border: 1px solid var(--rule);
}
.featured-layer .mock-canvas {
  position: relative;
  height: 116px;
  background: var(--bg);
  overflow: hidden;
  margin-bottom: 14px;
}
.featured-layer .mock-canvas.aeeg { background: #eef2ec; }
.featured-layer .mock-canvas.aeeg .wf-site { background: #FAF6EC; }
.featured-layer .mock-canvas.aeeg .wf-nav { border-bottom-color: rgba(61,40,23,0.16); }
.featured-layer .mock-canvas.aeeg .wf-logo img { height: 8px; width: auto; display: block; }
.featured-layer .mock-canvas.aeeg .wf-links b { background: rgba(61,40,23,0.25); }
.featured-layer .mock-canvas.aeeg .wf-eyebrow { background: #D4A24C; }
.featured-layer .mock-canvas.aeeg .wf-h1 { background: #3D2817; }
.featured-layer .mock-canvas.aeeg .wf-sub { background: rgba(61,40,23,0.32); }
.featured-layer .mock-canvas.aeeg .wf-cta { background: #3D2817; }
.featured-layer .mock-canvas.aeeg .wf-media { background: #3D2817; }
.featured-layer .mock-canvas.aeeg .wf-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.featured-layer .wf-site {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}
.featured-layer .wf-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 11px;
  border-bottom: 1px solid rgba(31,77,58,0.12);
}
.featured-layer .wf-logo {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.featured-layer .wf-links { display: inline-flex; gap: 7px; }
.featured-layer .wf-links b {
  width: 15px;
  height: 3px;
  border-radius: 2px;
  background: rgba(31,77,58,0.22);
}
.featured-layer .wf-hero { flex: 1; display: flex; gap: 11px; padding: 11px; }
.featured-layer .wf-copy {
  flex: 1.1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.featured-layer .wf-eyebrow {
  width: 38px;
  height: 4px;
  border-radius: 2px;
  background: #2f7d54;
}
.featured-layer .wf-h1 {
  width: 100%;
  height: 9px;
  border-radius: 2px;
  background: #1f4d3a;
}
.featured-layer .wf-h1.short { width: 60%; }
.featured-layer .wf-sub {
  width: 82%;
  height: 4px;
  border-radius: 2px;
  background: rgba(31,77,58,0.28);
  margin-top: 2px;
}
.featured-layer .wf-cta {
  width: 34px;
  height: 11px;
  border-radius: 999px;
  background: #2f7d54;
  margin-top: 3px;
}
.featured-layer .wf-media {
  flex: 0.9;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}
.featured-layer .mock-pin {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 999px 999px 999px 2px;
  background: var(--accent);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.featured-layer .mock-comment {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--hairline);
}
.featured-layer .mock-av {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.featured-layer .mock-c-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.featured-layer .mock-c-name span {
  color: var(--text-secondary);
  font-weight: 400;
  margin-left: 6px;
  font-size: 12px;
}
.featured-layer .mock-c-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 2px;
}
.featured-layer .mock-input {
  margin-top: auto;
  border: 1px solid var(--rule);
  border-radius: 5px;
  background: var(--bg);
  padding: 10px 12px;
  font-size: 12.5px;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.featured-layer .mock-input .send {
  color: var(--accent);
  font-weight: 600;
}

/* Studio assistant chat replay */
.featured-layer .mock-ai { width: 100%; }
.featured-layer .ai-chat {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 640px;
  margin: 6px auto 22px;
}
.featured-layer .ai-msg { display: flex; width: 100%; }
.featured-layer .ai-msg.typing { display: none; }
.featured-layer .mock-ai.ai-play .ai-msg { display: none; }
.featured-layer .mock-ai.ai-play .ai-msg.shown {
  display: flex;
  animation: featAiMsgIn 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}
@keyframes featAiMsgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.featured-layer .ai-user-block {
  width: 100%;
  border-radius: 5px;
  background: var(--bubble);
  padding: 12px 14px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text);
}
.featured-layer .ai-reply {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text);
  max-width: 60ch;
}
.featured-layer .ai-thinking {
  font-size: 13px;
  color: var(--text-secondary);
  animation: featAiThink 1.4s ease-in-out infinite;
}
@keyframes featAiThink {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}
.featured-layer .ai-card {
  width: 100%;
  border-radius: 5px;
  background: var(--bubble);
  box-shadow: var(--bubble-shadow);
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.featured-layer .ai-sug-tag {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 5px;
  padding: 2px 8px;
  margin-bottom: 10px;
}
.featured-layer .ai-sug-text {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}
.featured-layer .ai-sug-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.featured-layer .ai-sug-actions .mock-btn { transition: transform 0.15s ease; }
.featured-layer .ai-sug-actions .mock-btn.pressing { transform: scale(0.94); }
.featured-layer .ai-card-done {
  display: none;
  align-items: baseline;
  gap: 8px;
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text);
}
.featured-layer .ai-card.applied .ai-sug-actions { display: none; }
.featured-layer .ai-card.applied .ai-card-done {
  display: flex;
  animation: featAiMsgIn 0.4s ease;
}
.featured-layer .ai-check { color: #3f9d6b; font-weight: 700; }
.featured-layer .mock-ai .mock-input {
  width: 100%;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.featured-layer .mock-ai .mock-input span:first-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.featured-layer .mock-ai .mock-input.typing span:first-child { color: var(--text); }
.featured-layer .mock-ai .mock-input.typing span:first-child::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 12px;
  background: var(--text);
  margin-left: 2px;
  vertical-align: -2px;
  animation: featAiBlink 0.9s step-end infinite;
}
@keyframes featAiBlink { 50% { opacity: 0; } }

/* ── GrowthX dashboard mock ── */
.featured-layer .browser {
  position: relative;
  border-radius: 13px;
  overflow: hidden;
  background: var(--surface);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.05),
    0 2px 4px rgba(0,0,0,0.04),
    0 16px 32px -12px rgba(0,0,0,0.16),
    0 44px 74px -32px rgba(0,0,0,0.30);
  width: 100%;
}
[data-theme="dark"] .featured-layer .browser {
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.09),
    0 2px 4px rgba(0,0,0,0.5),
    0 16px 32px -12px rgba(0,0,0,0.55),
    0 44px 74px -32px rgba(0,0,0,0.75);
}
.featured-layer .browser-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 15px;
  background: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(248,247,244,0.42));
  -webkit-backdrop-filter: blur(22px) saturate(1.7);
  backdrop-filter: blur(22px) saturate(1.7);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
[data-theme="dark"] .featured-layer .browser-bar {
  background: linear-gradient(180deg, rgba(70,67,61,0.62), rgba(38,36,32,0.4));
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.featured-layer .browser-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.85) 18%, rgba(255,255,255,0.85) 82%, transparent);
}
[data-theme="dark"] .featured-layer .browser-bar::before {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28) 18%, rgba(255,255,255,0.28) 82%, transparent);
}
.featured-layer .browser-bar i {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  position: relative;
  background: var(--rule);
  box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.10), inset 0 1.5px 1.5px rgba(255,255,255,0.5), 0 0.5px 1px rgba(0,0,0,0.08);
}
[data-theme="dark"] .featured-layer .browser-bar i {
  box-shadow: inset 0 0 0 0.5px rgba(255,255,255,0.10), inset 0 1.5px 1.5px rgba(255,255,255,0.18);
}
.featured-layer .browser-media {
  overflow: hidden;
}
.featured-layer .browser-media.natural {
  aspect-ratio: auto;
}

.featured-layer .gx-dash {
  --gx-ink: #080A0D;
  --gx-paper: #FFFFFF;
  --gx-spark: #F4B8FF;
  --gx-blue: #4769DB;
  --gx-green: #47D89E;
  --gx-rule: rgba(8,10,13,0.11);
  --gx-mut: rgba(8,10,13,0.56);
  --gx-fill: rgba(8,10,13,0.05);
  display: grid;
  grid-template-columns: 200px 1fr;
  background: var(--gx-paper);
  color: var(--gx-ink);
  font-family: 'Messina Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  line-height: 1.4;
  font-size: 13px;
  text-align: left;
  width: 100%;
}
.featured-layer .gx-dash *, .featured-layer .gx-dash *::before { box-sizing: border-box; }
.featured-layer .gx-side {
  border-right: 1px solid var(--gx-rule);
  padding: 15px 13px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.featured-layer .gx-ws {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 3px 6px 15px;
}
.featured-layer .gx-ws-mark {
  width: 27px;
  height: 27px;
  border-radius: 7px;
  background: var(--gx-ink);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.featured-layer .gx-ws-mark.gx-lovable {
  background: #FFFFFF;
  box-shadow: inset 0 0 0 1px rgba(8,10,13,0.10);
}
.featured-layer .gx-ws-mark.gx-lovable svg { display: block; }
.featured-layer .gx-ws-name {
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: -0.02em;
}
.featured-layer .gx-ws-sub { font-size: 11px; color: var(--gx-mut); }
.featured-layer .gx-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 7px;
  color: var(--gx-mut);
  font-size: 12.5px;
  font-weight: 500;
}
.featured-layer .gx-item.is-active {
  background: var(--gx-fill);
  color: var(--gx-ink);
  font-weight: 600;
}
.featured-layer .gx-navlabel {
  font-size: 11px;
  color: var(--gx-mut);
  padding: 13px 10px 5px;
  margin: 0;
  font-weight: 600;
}
.featured-layer .gx-main { display: flex; flex-direction: column; min-width: 0; }
.featured-layer .gx-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 20px;
  border-bottom: 1px solid var(--gx-rule);
  font-size: 12.5px;
  color: var(--gx-mut);
}
.featured-layer .gx-pill {
  font-size: 10px;
  font-weight: 600;
  color: var(--gx-green);
  border: 1px solid var(--gx-green);
  border-radius: 999px;
  padding: 2px 9px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.featured-layer .gx-content { padding: 22px 20px 24px; }
.featured-layer .gx-title {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.035em;
  margin: 0 0 3px;
  line-height: 1;
}
.featured-layer .gx-lede {
  font-size: 12.5px;
  color: var(--gx-mut);
  margin: 0 0 18px;
}
.featured-layer .gx-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--gx-rule);
}
.featured-layer .gx-metric {
  padding: 13px 14px 14px;
  border-right: 1px solid var(--gx-rule);
  display: flex;
  flex-direction: column;
}
.featured-layer .gx-metric:last-child { border-right: 0; }
.featured-layer .gx-m-label {
  font-size: 11px;
  color: var(--gx-mut);
  margin-bottom: 7px;
}
.featured-layer .gx-m-num {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}
.featured-layer .gx-m-num em {
  font-style: normal;
  font-size: 15px;
  color: var(--gx-mut);
  font-weight: 600;
  margin-left: 1px;
}
.featured-layer .gx-m-delta {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--gx-green);
  margin-top: 5px;
}
.featured-layer .gx-m-bar {
  height: 4px;
  border-radius: 999px;
  background: var(--gx-fill);
  margin-top: 9px;
  overflow: hidden;
}
.featured-layer .gx-m-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--gx-ink);
}
.featured-layer .gx-metric.spark .gx-m-bar i { background: var(--gx-spark); }
.featured-layer .gx-metric.blue .gx-m-bar i { background: var(--gx-blue); }
.featured-layer .gx-metric.green .gx-m-bar i { background: var(--gx-green); }
.featured-layer .gx-panels {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  border: 1px solid var(--gx-rule);
  border-top: 0;
}
.featured-layer .gx-panel {
  padding: 15px 16px 17px;
  border-right: 1px solid var(--gx-rule);
  min-width: 0;
}
.featured-layer .gx-panel:last-child { border-right: 0; }
.featured-layer .gx-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
}
.featured-layer .gx-panel-head h5 {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0;
}
.featured-layer .gx-panel-head span {
  font-size: 10.5px;
  color: var(--gx-mut);
  white-space: nowrap;
}
.featured-layer .gx-area { width: 100%; height: 116px; display: block; }
.featured-layer .gx-area .gx-line {
  fill: none;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.featured-layer .gx-bars { display: flex; flex-direction: column; gap: 10px; }
.featured-layer .gx-brow {
  display: grid;
  grid-template-columns: 54px 1fr 22px;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
}
.featured-layer .gx-brow > span:first-child { color: var(--gx-mut); white-space: nowrap; }
.featured-layer .gx-track {
  height: 8px;
  border-radius: 999px;
  background: var(--gx-fill);
  overflow: hidden;
}
.featured-layer .gx-track i {
  display: block;
  height: 100%;
  border-radius: 999px;
}
.featured-layer .gx-brow b {
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 620px) {
  .featured-layer .gx-dash { grid-template-columns: 1fr; font-size: 12px; }
  .featured-layer .gx-side { display: none; }
}

@media (max-width: 480px) {
  .featured-layer .mock-ai,
  .featured-layer .ai-chat,
  .featured-layer .gx-dash,
  .featured-layer [data-dg-demo] {
    max-width: 100%;
    overflow: hidden;
  }
  .featured-layer .mock-ai .mock-input { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .featured-layer .ai-thinking { animation: none; }
  .featured-layer .mock-ai.ai-play .ai-msg.shown { animation: none; }
}
