@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap");

:root {
  --page-bg: #030817;
  --section-alt-bg: rgba(2, 8, 23, 0.32);
  --text-main: #f5f7ff;
  --text-muted: #b7c1e4;
  --surface-1: linear-gradient(180deg, rgba(6, 14, 36, 0.92) 0%, rgba(4, 10, 28, 0.96) 100%);
  --surface-2: rgba(255, 255, 255, 0.03);
  --border-subtle: rgba(114, 139, 255, 0.18);
  --border-main: rgba(114, 139, 255, 0.28);
  --line-main: rgba(114, 139, 255, 0.24);
  --line-strong: rgba(230, 49, 195, 0.5);
  --accent-blue: #3f8cff;
  --accent-purple: #7b5cff;
  --accent-pink: #e631c3;
  --text-strong: #ffffff;
  --page-overlay:
    radial-gradient(circle at top right, rgba(123, 92, 255, 0.18), transparent 22%),
    radial-gradient(circle at 15% 25%, rgba(63, 140, 255, 0.14), transparent 24%),
    linear-gradient(180deg, #030817 0%, #07112b 38%, #0a1530 100%);
  --hero-wave:
    radial-gradient(circle at top right, rgba(123, 92, 255, 0.2), transparent 24%),
    radial-gradient(circle at 10% 15%, rgba(63, 140, 255, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(3, 8, 23, 0.96) 0%, rgba(6, 14, 36, 0.98) 100%);
  --hero-after:
    radial-gradient(circle at 20% 80%, rgba(230, 49, 195, 0.22), transparent 20%),
    radial-gradient(circle at 60% 85%, rgba(63, 140, 255, 0.18), transparent 24%),
    linear-gradient(180deg, transparent 0%, rgba(3, 8, 23, 0.05) 100%);
  --button-ghost-bg: rgba(255, 255, 255, 0.04);
  --floating-card-bg: linear-gradient(180deg, rgba(20, 10, 34, 0.95) 0%, rgba(30, 8, 26, 0.95) 100%);
  --floating-card-border: rgba(239, 68, 68, 0.45);
  --floating-card-text: #ff8585;
  --theme-toggle-bg: rgba(255, 255, 255, 0.05);
  --theme-toggle-border: rgba(114, 139, 255, 0.28);
  --theme-toggle-hover: rgba(255, 255, 255, 0.08);
  --signal-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 14px 40px rgba(0, 0, 0, 0.18);
}

:root.light {
  --page-bg: #eef3ff;
  --section-alt-bg: rgba(129, 148, 255, 0.08);
  --text-main: #14213d;
  --text-muted: #596780;
  --surface-1: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(244, 247, 255, 0.98) 100%);
  --surface-2: rgba(255, 255, 255, 0.85);
  --border-subtle: rgba(99, 102, 241, 0.16);
  --border-main: rgba(99, 102, 241, 0.22);
  --line-main: rgba(99, 102, 241, 0.2);
  --line-strong: rgba(217, 70, 239, 0.32);
  --text-strong: #111827;
  --page-overlay:
    radial-gradient(circle at top right, rgba(123, 92, 255, 0.10), transparent 22%),
    radial-gradient(circle at 15% 25%, rgba(63, 140, 255, 0.10), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #eef3ff 45%, #e9f0ff 100%);
  --hero-wave:
    radial-gradient(circle at top right, rgba(123, 92, 255, 0.12), transparent 24%),
    radial-gradient(circle at 10% 15%, rgba(63, 140, 255, 0.10), transparent 22%),
    linear-gradient(180deg, rgba(248, 251, 255, 0.98) 0%, rgba(238, 243, 255, 0.98) 100%);
  --hero-after:
    radial-gradient(circle at 20% 80%, rgba(230, 49, 195, 0.10), transparent 20%),
    radial-gradient(circle at 60% 85%, rgba(63, 140, 255, 0.10), transparent 24%),
    linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.3) 100%);
  --button-ghost-bg: rgba(99, 102, 241, 0.06);
  --floating-card-bg: linear-gradient(180deg, rgba(255, 245, 247, 0.98) 0%, rgba(255, 239, 243, 0.98) 100%);
  --floating-card-border: rgba(239, 68, 68, 0.18);
  --floating-card-text: #c2410c;
  --theme-toggle-bg: rgba(255, 255, 255, 0.82);
  --theme-toggle-border: rgba(99, 102, 241, 0.16);
  --theme-toggle-hover: rgba(255, 255, 255, 1);
  --signal-shadow: 0 14px 40px rgba(74, 85, 104, 0.12);
  --shadow-soft: 0 12px 32px rgba(74, 85, 104, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  line-height: 1.7;
  background: var(--page-bg);
  color: var(--text-main);
  transition: background 0.25s ease, color 0.25s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.case-study { overflow: hidden; background: var(--page-overlay); color: var(--text-main); }
.hero { padding: 6rem 0 3rem; position: relative; background: var(--hero-wave); }
.section { padding: 5rem 0; position: relative; }
.section--alt { background: var(--section-alt-bg); }

.eyebrow,
.section-label {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-intro { max-width: 860px; color: var(--text-muted); }

h1, h2, h3 { margin: 0 0 1rem; line-height: 1.15; }
h1 { font-size: clamp(2.6rem, 5vw, 4.5rem); max-width: 920px; font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0 0 1rem; }
ul { margin: 0; }

.hero__content { max-width: 1120px; }
.hero__subtitle { max-width: 760px; font-size: 1.1rem; color: var(--text-muted); }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.hero__meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }

.meta-card,
.summary-card,
.highlight-card,
.tool-card,
.quote-card,
.signal-panel,
.signal-phase,
.signal-gallery-card,
.signal-link-card,
.reflection-card {
  background: var(--surface-1);
  border: 1px solid var(--border-main);
  box-shadow: var(--signal-shadow);
  border-radius: 1.5rem;
}

.meta-card { padding: 1rem 1.2rem; }
.meta-label { display: block; font-size: 0.8rem; margin-bottom: 0.25rem; color: var(--text-muted); }
.meta-value { font-weight: 600; }

.two-col { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 2rem; align-items: start; }
.summary-card, .highlight-card, .quote-card, .tool-card { padding: 1.5rem; }
.summary-card ul, .highlight-card ul, .product-copy ul, .signal-ui-row__copy ul { margin: 1rem 0 0; padding-left: 1.2rem; }
.quote-card { margin-top: 1.25rem; border-left: 4px solid var(--accent-pink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.4rem;
  border-radius: 0.9rem;
  font-weight: 600;
  border: 0;
  background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-pink) 100%);
  color: #fff;
  transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn--ghost {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-main);
}
.btn--ghost:hover { background: var(--button-ghost-bg); }

.structured-flow { position: relative; margin-top: 2.5rem; padding-left: 2.6rem; }
.structured-flow::before,
.ui-showcase::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 0.25rem;
  bottom: 0.25rem;
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(63, 140, 255, 0.12) 0%,
    rgba(123, 92, 255, 0.45) 20%,
    rgba(230, 49, 195, 0.36) 100%
  );
}

.product-block { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2rem; align-items: start; }
.product-block--timeline {
  position: relative;
  margin-top: 0;
  padding: 2.6rem 0;
  border-top: 1px solid var(--line-main);
}
.product-block--timeline:first-child { border-top: 0; padding-top: 0.5rem; }

.timeline-marker {
  position: absolute;
  left: -2.1rem;
  top: 2.9rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: #0b1431;
  border: 2px solid #8f73ff;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--page-bg) 92%, transparent);
}
.timeline-marker--top { top: 0.4rem; left: -2.1rem; }

.mini-label {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b78cff;
}

.product-copy p,
.product-copy li,
.signal-footer-note,
.signal-chip,
.mock-label,
.signal-link-card p,
.signal-phase p,
.reflection-card p,
.signal-strength-card p,
.signal-caption,
.signal-stat__label {
  color: var(--text-muted);
}

.ui-showcase { position: relative; margin-top: 2.2rem; padding-left: 2.6rem; }
.ui-showcase__intro {
  position: relative;
  padding: 0.25rem 0 1.5rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--line-main);
}
.ui-showcase__copy { max-width: 760px; }

.signal-section-title { max-width: 780px; }
.signal-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
  margin-top: 2.5rem;
}
.signal-panel { padding: 1.5rem; }

.signal-hero-visual {
  position: relative;
  padding: 1.25rem;
  border-radius: 1.75rem;
  border: 1px solid var(--border-main);
  background: var(--surface-1);
  box-shadow: var(--signal-shadow);
}
.signal-hero-visual img {
  border-radius: 1.25rem;
  width: 100%;
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.35);
}
.signal-floating-card {
  position: absolute;
  right: -1rem;
  bottom: 1.2rem;
  width: min(230px, 58%);
  padding: 1rem;
  border-radius: 1rem;
  background: var(--floating-card-bg);
  border: 1px solid var(--floating-card-border);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.4);
}
.signal-floating-card strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}
.signal-floating-card span { color: var(--floating-card-text); font-weight: 600; }

.signal-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.signal-stat {
  padding: 1rem;
  border-radius: 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
}
.signal-stat__value {
  display: block;
  font-size: 1.8rem;
  line-height: 1.1;
  font-weight: 700;
  margin-top: 0.35rem;
  color: var(--text-strong);
}

.signal-chip-row { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.2rem; }
.signal-chip {
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-2);
  font-size: 0.9rem;
}

.signal-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.signal-link-card { padding: 1.4rem; border-radius: 1.35rem; }
.signal-link-card h3 { margin-bottom: 0.5rem; }
.signal-link-card p:last-child { margin-bottom: 0; }

.signal-phase-stack { display: grid; gap: 1.2rem; margin-top: 2rem; }
.signal-phase { padding: 1.4rem; border-radius: 1.4rem; }

.signal-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.signal-gallery-card { padding: 0.85rem; border-radius: 1.25rem; }
.signal-gallery-card img { width: 100%; border-radius: 1rem; display: block; }
.signal-gallery-card .mock-label { margin-bottom: 0; margin-top: 0.75rem; }

.signal-caption-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.signal-caption {
  padding: 1rem;
  border-radius: 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
}
.signal-caption strong {
  display: block;
  color: var(--text-strong);
  margin-bottom: 0.35rem;
}
.signal-note {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: color-mix(in srgb, var(--accent-purple) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-purple) 22%, transparent);
  color: var(--text-muted);
}

.signal-ui-stack { display: grid; gap: 1.4rem; margin-top: 1.5rem; }
.signal-ui-row {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
}
.signal-ui-row--reverse {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
}
.signal-ui-row--reverse .signal-ui-row__media { order: 2; }
.signal-ui-row--reverse .signal-ui-row__copy { order: 1; }
.signal-ui-row__media { padding: 0.85rem; }

.signal-strength-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.signal-strength-card {
  padding: 1.4rem;
  border-radius: 1.25rem;
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}
.signal-strength-card h3 { margin-bottom: 0.55rem; }
.signal-strength-card p:last-child { margin-bottom: 0; }

.reflection-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}
.reflection-card {
  padding: 1.6rem;
  border-radius: 1.4rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.reflection-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.theme-toggle-wrap {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.25rem;
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--theme-toggle-border);
  background: var(--theme-toggle-bg);
  color: var(--text-main);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.theme-toggle:hover {
  transform: translateY(-1px);
  background: var(--theme-toggle-hover);
}
.theme-toggle__icon { font-size: 0.95rem; line-height: 1; }

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.footer-cta__content { text-align: center; padding-bottom: 5rem; }

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-pink) 100%);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 20;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hero::after,
.section--signal-wave::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 140px;
  pointer-events: none;
  background: var(--hero-after);
  opacity: 0.9;
}

@media (max-width: 980px) {
  .hero__meta,
  .two-col,
  .product-block,
  .signal-hero-grid,
  .signal-grid-2,
  .signal-gallery,
  .signal-caption-grid,
  .signal-stats,
  .signal-ui-row,
  .signal-ui-row--reverse,
  .signal-strength-grid {
    grid-template-columns: 1fr;
  }

  .structured-flow,
  .ui-showcase {
    padding-left: 1.4rem;
  }

  .structured-flow::before,
  .ui-showcase::before {
    left: 0.35rem;
  }

  .timeline-marker,
  .timeline-marker--top {
    left: -0.25rem;
  }

  .signal-floating-card {
    position: static;
    width: 100%;
    margin-top: 1rem;
  }

  .signal-ui-row--reverse .signal-ui-row__media,
  .signal-ui-row--reverse .signal-ui-row__copy {
    order: initial;
  }
}

@media (max-width: 640px) {
  .hero { padding: 5rem 0 2.5rem; }
  .section { padding: 4rem 0; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .theme-toggle-wrap { justify-content: flex-start; margin-bottom: 1rem; }

  .structured-flow,
  .ui-showcase {
    padding-left: 1rem;
  }

  .structured-flow::before,
  .ui-showcase::before,
  .timeline-marker,
  .timeline-marker--top {
    display: none;
  }

  .signal-hero-visual,
  .signal-panel,
  .signal-phase,
  .signal-link-card,
  .signal-gallery-card,
  .meta-card,
  .summary-card,
  .highlight-card,
  .tool-card,
  .quote-card,
  .reflection-card {
    border-radius: 1.1rem;
  }
}


/* Phase 02 cleanup */
.structured-flow > .product-block--timeline:nth-child(2) {
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.structured-flow > .product-block--timeline:nth-child(2) .product-copy {
  max-width: 100%;
}

.structured-flow > .product-block--timeline:nth-child(2) .signal-phase-stack {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}

.structured-flow > .product-block--timeline:nth-child(2) .signal-phase {
  padding: 1.25rem;
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

/* Sketch Comparison */
.sketch-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
  align-items: start;
}

.sketch-column {
  padding: 1rem;
  border-radius: 1.25rem;
  background: var(--surface-1);
  border: 1px solid var(--border-main);
  box-shadow: var(--shadow-soft);
}

.sketch-column h3 {
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.sketch-column img {
  width: 100%;
  border-radius: 0.95rem;
  margin-top: 0.75rem;
  border: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.02);
}

.sketch-column .mock-label {
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

:root.light .sketch-column img {
  background: rgba(99, 102, 241, 0.04);
}

@media (max-width: 980px) {
  .structured-flow > .product-block--timeline:nth-child(2) .signal-phase-stack,
  .sketch-comparison {
    grid-template-columns: 1fr;
  }
}

.signal-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: stretch;
}

.hero-left {
  height: 100%;
}

.hero-right {
  display: flex;
  align-items: stretch;
}

.hero-image-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 520px;
  padding: 2rem;
  border-radius: 1.75rem;
  background: var(--surface-1);
  border: 1px solid var(--border-main);
  box-shadow: var(--signal-shadow);
}

.hero-image-card img {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.hero-image-card .signal-floating-card {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 220px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

@media (max-width: 980px) {
  .signal-hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-image-card {
    min-height: auto;
  }

  .hero-image-card .signal-floating-card {
    right: 20px;
    bottom: 20px;
  }
}

.fidelity-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 🔥 change from 3 → 2 */
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.fidelity-card {
  padding: 0.9rem;
  border-radius: 1.25rem;
  background: var(--surface-1);
  border: 1px solid var(--border-main);
  box-shadow: var(--signal-shadow);
}

.fidelity-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;

  /* 🔥 KEY ADDITIONS */
  min-height: 180px;
  object-fit: contain;
}

.fidelity-card .mock-label {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
}

@media (max-width: 980px) {
  .fidelity-gallery {
    grid-template-columns: 1fr;
  }
}

/* Fidelity galleries */
.fidelity-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
  align-items: start;
}

.fidelity-card {
  margin: 0;
  padding: 1rem;
  border-radius: 1.25rem;
  background: var(--surface-1);
  border: 1px solid var(--border-main);
  box-shadow: var(--signal-shadow);
  min-width: 0;
}

.fidelity-card img {
  width: 100%;
  display: block;
  border-radius: 0.95rem;
  background: var(--surface-2);
  object-fit: contain;
}

.fidelity-card .mock-label {
  margin-top: 0.85rem;
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}

/* Make the wireframe examples breathe a bit more inside workflow */
.product-copy .fidelity-gallery {
  margin-bottom: 1.25rem;
}

/* Tablet */
@media (max-width: 1100px) {
  .fidelity-gallery {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

/* Mobile */
@media (max-width: 680px) {
  .fidelity-gallery {
    grid-template-columns: 1fr;
  }

  .fidelity-card {
    padding: 0.85rem;
  }

  .fidelity-card .mock-label {
    font-size: 0.92rem;
  }
}

.product-block--fidelity .product-copy,
.product-block--fidelity .summary-card,
.product-block--fidelity .highlight-card {
  min-width: 0;
}

.fidelity-stage {
  grid-column: 1 / -1;
  margin-top: 1.5rem;
}

.fidelity-gallery--large {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.fidelity-gallery--large .fidelity-card:first-child {
  grid-column: 1 / -1;
}

.fidelity-card {
  margin: 0;
  padding: 1rem;
  border-radius: 1.25rem;
  background: var(--surface-1);
  border: 1px solid var(--border-main);
  box-shadow: var(--signal-shadow);
}

.fidelity-card img {
  width: 100%;
  display: block;
  border-radius: 0.95rem;
  background: var(--surface-2);
  object-fit: contain;
}

.fidelity-card .mock-label {
  margin: 0.85rem 0 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.fidelity-note {
  margin-top: 1rem;
}

@media (max-width: 980px) {
  .fidelity-gallery--large {
    grid-template-columns: 1fr;
  }

  .fidelity-gallery--large .fidelity-card:first-child {
    grid-column: auto;
  }
}

.fidelity-gallery--large {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.fidelity-card {
  display: flex;
  flex-direction: column;
  height: 100%; /* important */
}

.fidelity-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mock-card {
  flex: 1; /* 🔥 this pushes text down */
  display: flex;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.resource-card {
  background: #f7f8fc;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.resource-card iframe {
  width: 100%;
  height: 320px;
  border-radius: 12px;
  border: none;
}

.resource-card--wide {
  grid-column: span 2;
}

.resource-card--wide iframe {
  height: 480px;
}

.resource-link {
  font-size: 14px;
  text-decoration: none;
  color: #4f46e5;
  font-weight: 500;
}

.resource-link:hover {
  text-decoration: underline;
}

/* Mobile */
@media (max-width: 768px) {
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .resource-card--wide {
    grid-column: span 1;
  }

  .resource-card iframe {
    height: 260px;
  }
}
.mock-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #f3f4f6;
}

.mock-image {
  width: 100%;
  height: auto;
  display: block;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.overlay span {
  color: white;
  font-weight: 500;
  font-size: 14px;
}

.mock-card:hover .overlay {
  opacity: 1;
}