/* Nested case study — reuses the shared besties.css shell, retuned to
   Nested's teal brand accent. Light theme like the rest of the portfolio;
   only the accent tokens change, so every component picks up the teal. */

:root {
  --coral:      #025355;                 /* Nested teal for eyebrows / labels / tags / emphasis */
  --coral-ink:  #025355;                 /* teal ink for active nav + emphasis */
  --panel:      #EAF2F1;                 /* pale teal panel */
  --panel-line: rgba(2, 83, 85, .22);    /* teal-tinted hairline for chips */
}

/* hero banner — a soft teal frame around the product shot */
.hero-banner {
  background:
    radial-gradient(120% 140% at 12% 0%, #d3e6e4 0%, rgba(211,230,228,0) 58%),
    linear-gradient(150deg, #e0efed 0%, #cfe4e2 55%, #bcd8d6 100%);
  padding: clamp(20px, 3vw, 34px);
  min-height: 0;
}
.hero-banner img { border-radius: 14px; box-shadow: 0 18px 44px rgba(2, 45, 46, .18); }

/* metadata as a quiet teal panel (mirrors the Booth treatment) */
.meta { background: var(--panel); border: 0; border-radius: 18px; padding: 26px 30px; margin-top: 40px; }
.meta .label { color: var(--coral); }

/* solution screenshot sits in the same rounded frame as the hero shot */
.section > figure .fig { box-shadow: 0 14px 34px rgba(2, 45, 46, .12); }

/* dashed "check out the website" link box under the meta panel */
.visit-cta {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 20px; padding: 20px 24px;
  border: 2px dashed rgba(2, 83, 85, .42); border-radius: 16px;
  color: var(--coral); font-size: 15px; letter-spacing: .02em; font-weight: 500;
  text-decoration: none; text-align: center;
  transition: border-color .2s ease, background .2s ease;
}
.visit-cta:hover { border-color: var(--coral); background: var(--panel); }
.visit-cta .arrow { width: 18px; height: 18px; flex-shrink: 0; transition: transform .2s ease; }
.visit-cta:hover .arrow { transform: translate(3px, -3px); }

/* branching-flow diagram (Ideation) */
.flowmap {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 16px; align-items: stretch;
  background: var(--panel); border-radius: 18px; padding: 28px 26px;
}
.flowmap .fm-stage { display: flex; flex-direction: column; gap: 12px; }
.flowmap .fm-cap { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--coral); line-height: 1.4; }
.flowmap .fm-nodes { display: flex; flex-direction: column; gap: 8px; }
.flowmap .fm-chip,
.flowmap .fm-node,
.flowmap .fm-out {
  font-size: 13px; line-height: 1.35; color: var(--ink); background: #fff;
  border: 1px solid var(--panel-line); border-radius: 10px; padding: 10px 12px; text-align: center;
}
.flowmap .fm-chip { border-color: rgba(2, 83, 85, .32); color: var(--coral); font-weight: 500; }
.flowmap .fm-out { background: var(--coral); color: #F5F3EE; border-color: var(--coral); }
.flowmap .fm-sub { font-size: 11.5px; line-height: 1.5; color: var(--muted); text-align: center; margin-top: 2px; }
.flowmap .fm-arrow { align-self: center; color: var(--coral); }
.flowmap .fm-arrow svg { width: 22px; height: 22px; display: block; }
@media (max-width: 720px) {
  .flowmap { grid-template-columns: 1fr; gap: 12px; }
  .flowmap .fm-arrow svg { transform: rotate(90deg); }
  .flowmap .fm-arrow { justify-self: center; }
}

/* Learnings: all three takeaways in one row */
.learn { grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 820px) { .learn { grid-template-columns: 1fr; gap: 22px; } }
