/* ═══════════════════════════════════════════════════════════════
   CUSTOMER PROFILE case study — page pieces on top of case.css.
   The embedded UI bits use the product's own look (Inter, slate,
   indigo), so they read as the real module inside the portfolio page.
   ═══════════════════════════════════════════════════════════════ */
:root { --cp-ink: #0f172a; --cp-ink2: #475569; --cp-line: #e2e8f0; --cp-indigo: #4f46e5; --cp-red: #dc2626; --cp-bg: #f8fafc; }

.concept-note {
  display: flex; gap: 14px; align-items: flex-start; max-width: 760px; margin: -24px 0 40px;
  font-size: 15px; color: #333; padding: 14px 16px; border: 1.5px dashed var(--ink); border-radius: 12px;
}
.concept-note span { flex: none; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; background: var(--ink); color: var(--paper); padding: 4px 9px; border-radius: 999px; margin-top: 1px; }
.mini-title { font-family: var(--flex); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.05; font-variation-settings: 'wght' 900, 'wdth' 100, 'opsz' 144; margin-bottom: 14px; }
.mini-title.light { color: var(--paper); }
.body { font-size: 17px; color: #333; max-width: 620px; margin-bottom: 14px; }
#overview .problems { margin-top: 72px; }

/* ── audit: checklist + bug ── */
.audit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.checklist { background: var(--paper); border: 1.5px solid var(--ink); border-radius: 16px; padding: 18px 20px 20px; }
.cl-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 12px; border-bottom: 1.5px solid var(--ink); margin-bottom: 4px; }
.cl-head b { font-size: 17px; }
.cl-head span { font: 500 12px var(--mono); color: var(--orange); }
.checklist ol { list-style: none; }
.checklist li { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: #999; transition: color .3s; }
.checklist li i { width: 18px; height: 18px; border: 1.5px solid #bbb; border-radius: 5px; position: relative; transition: background .25s, border-color .25s; }
.checklist li em { font: 500 13px var(--mono); font-style: normal; color: #bbb; transition: color .3s; }
.checklist li.done { color: var(--ink); }
.checklist li.done i { background: var(--orange); border-color: var(--orange); }
.checklist li.done i::after { content: ''; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.checklist li.done em { color: var(--orange); }
.cl-bar { height: 4px; background: var(--line); border-radius: 4px; margin-top: 14px; overflow: hidden; }
.cl-bar span { display: block; height: 100%; width: 0; background: var(--orange); transition: width .4s; }

.bug .node-type { display: block; margin-bottom: 10px; }
.bug-toggle { display: inline-flex; padding: 3px; border: 1.5px solid var(--ink); border-radius: 999px; margin: 6px 0 14px; }
.bug-toggle button { font: 600 13px 'Space Grotesk', sans-serif; padding: 8px 15px; border-radius: 999px; transition: background .2s; }
.bug-toggle button[aria-pressed="true"] { background: var(--orange); }
.dialog { font-family: 'Inter', sans-serif; background: #fff; color: var(--cp-ink); border-radius: 12px; box-shadow: 0 0 0 1px var(--cp-line), 0 18px 40px rgba(15,23,42,.12); max-width: 460px; }
.dl-head { display: flex; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--cp-line); font-size: 15px; }
.dl-head span { color: var(--cp-ink2); }
.dl-body { padding: 18px 20px 20px; font-size: 15px; color: var(--cp-ink2); line-height: 1.55; min-height: 92px; }
.dl-body b { color: var(--cp-ink); font-weight: 600; }
.hole { display: inline-block; width: 64px; height: 1.1em; vertical-align: -3px; background: repeating-linear-gradient(45deg, rgba(220,38,38,.18) 0 4px, transparent 4px 8px); border: 1.5px dashed var(--cp-red); border-radius: 4px; }
.dialog[data-v="live"] .v-fix, .dialog[data-v="fix"] .v-live { display: none; }
.dl-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--cp-line); font-size: 14px; font-weight: 500; }
.dl-foot span { padding: 9px 14px; border-radius: 8px; }
.dl-danger { background: var(--cp-red); color: #fff; }

/* ── redesign blocks ── */
.cp-block { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: start; margin-top: 96px; }
.cp-block:first-of-type { margin-top: 0; }
.cp-block > .shot { margin-top: 0; }
.cp-block .pair { grid-column: 1 / -1; margin-top: -24px; }
.cp-text h3 { font-family: var(--flex); font-size: clamp(28px, 3.1vw, 44px); line-height: 1.02; font-variation-settings: 'wght' 900, 'wdth' 100, 'opsz' 144; margin-bottom: 18px; }
.cp-text p { font-size: 17px; color: #333; margin-bottom: 14px; }
.cp-text code { font: 500 14px var(--mono); background: #F2F2F0; padding: 1px 6px; border-radius: 4px; }
.cp-block + .shot { margin-top: 28px; }
.shot.narrow .img { max-width: 520px; }

/* overlay vs page, drawn as a wireframe */
.shell { position: relative; display: grid; grid-template-columns: 22% 1fr; aspect-ratio: 16 / 10; border: 1.5px solid var(--ink); border-radius: 14px; overflow: hidden; background: var(--paper); }
.sh-side { border-right: 1.5px solid var(--ink); padding: 18px 14px; display: grid; gap: 10px; align-content: start; background: #F6F6F4; }
.sh-side i, .sh-tabs i, .sh-content i, .sh-overlay i { display: block; height: 12px; border-radius: 4px; background: #DADAD6; }
.sh-side i.on { background: var(--ink); }
.sh-main { padding: 16px 18px; display: grid; gap: 14px; align-content: start; }
.sh-crumb { font: 500 12px var(--mono); color: var(--muted); }
.sh-tabs { display: flex; gap: 10px; padding-bottom: 10px; border-bottom: 1.5px solid var(--line); }
.sh-tabs i { width: 70px; } .sh-tabs i.on { background: var(--orange); }
.sh-content { display: grid; gap: 12px; }
.sh-content i { height: 56px; border: 1.5px dashed #C9C9C4; background: none; }
.sh-overlay {
  position: absolute; inset: 0; background: var(--paper); padding: 22px 26px; display: grid; gap: 14px; align-content: start;
  opacity: 0; transform: scale(1.03); transition: opacity .35s, transform .35s; pointer-events: none;
}
.sh-overlay b { font-size: 18px; }
.sh-overlay i { height: 40px; border: 1.5px dashed #C9C9C4; background: none; }
.sh-overlay span { position: absolute; right: 20px; top: 18px; font-size: 18px; }
.shell[data-nav="overlay"] .sh-overlay { opacity: 1; transform: none; }
.sh-label { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); white-space: nowrap; font: 500 11px var(--mono); text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--orange); color: var(--ink); z-index: 3; }
.shell[data-nav="overlay"] .sh-label { background: var(--ink); color: var(--paper); }

/* status legend */
.statuses { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.stp { font: 500 13px 'Inter', sans-serif; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; border: 1px solid transparent; background: var(--bg); }
.stp::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--dot); }
.st-green { color: #067647; --bg: #ecfdf3; --dot: #10b981; } .st-yellow { color: #854d0e; --bg: #fef9c3; --dot: #eab308; } .st-gray { color: #475569; --bg: #f1f5f9; --dot: #94a3b8; }
.stp:hover, .stp:focus-visible, .stp.on { border-color: var(--ink); }
.st-meaning { font: 500 13px var(--mono) !important; color: var(--muted) !important; min-height: 1.6em; }

.rows14 { display: flex; align-items: center; gap: 22px; margin-top: 8px; }
.rows14 div { display: grid; }
.rows14 .big { font-family: var(--flex); font-size: 64px; line-height: 1; font-variation-settings: 'wght' 1000, 'wdth' 100, 'opsz' 144; }
.rows14 div:last-child .big { color: var(--orange); }
.rows14 span:not(.big) { font: 500 12px var(--mono); color: var(--muted); text-transform: uppercase; }
.rows14 .arrow { font-size: 30px; }

/* contrast checker */
.contrast { border: 1.5px solid var(--ink); border-radius: 16px; padding: 22px; background: var(--paper); display: grid; gap: 14px; }
.ct-sample { font-family: 'Inter', sans-serif; border: 1px dashed var(--cp-line); border-radius: 10px; padding: 18px; display: grid; justify-items: center; gap: 4px; background: #fff; }
.ct-label { justify-self: start; font-size: 11px; font-weight: 500; color: var(--cp-ink); margin-bottom: 6px; }
.ct-drop { font-size: 13px; font-weight: 600; color: var(--cp-ink); }
.ct-hint { font-size: 11px; transition: color .2s; }
#ctRange { width: 100%; accent-color: var(--orange); }
.ct-scale { display: flex; justify-content: space-between; font: 500 11px var(--mono); color: var(--muted); margin-top: -8px; }
.ct-read { display: flex; align-items: center; gap: 14px; }
.ct-read code { font: 500 14px var(--mono); }
.ct-read b { font-family: var(--flex); font-size: 36px; line-height: 1; font-variation-settings: 'wght' 1000, 'wdth' 100, 'opsz' 144; }
.ct-badge { margin-left: auto; font: 500 12px var(--mono); text-transform: uppercase; padding: 6px 11px; border-radius: 999px; background: var(--ink); color: var(--paper); }
.ct-badge.pass { background: var(--orange); color: var(--ink); }
.ct-note { font: 500 12px var(--mono); color: var(--muted); }

/* ── prototype + outcome ── */
#prototype .visit { margin-bottom: 72px; }
.outcome { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.outcome p { font-size: 17px; color: rgba(255,255,255,.72); }

/* ── wireframe additions ── */
body.wire :is(.checklist, .dialog, .shell, .contrast, .ct-sample, .bug-toggle, .bug-toggle button, .stp, .concept-note) { border-radius: 0 !important; }
body.wire :is(.cp-text h3, .mini-title, .rows14 .big, .ct-read b) { color: transparent !important; -webkit-text-stroke: 1.2px var(--wf-ln); }
body.wire .dialog { box-shadow: 0 0 0 1.5px var(--ink); }

/* ── responsive ── */
@media (max-width: 1100px) {
  .cp-block { gap: 36px; }
}
@media (max-width: 760px) {
  .concept-note { margin-top: -16px; font-size: 14px; flex-direction: column; gap: 8px; }
  .audit, .cp-block, .outcome { grid-template-columns: 1fr; gap: 32px; }
  .cp-block { margin-top: 72px; }
  .cp-block .pair { margin-top: 0; }
  .cp-text p { font-size: 16px; }
  .shell { grid-template-columns: 26% 1fr; aspect-ratio: 4 / 3.4; }
  .sh-crumb { font-size: 10px; }
  .sh-label { font-size: 10px; }
  .rows14 .big { font-size: 52px; }
}
