/* ClearCalc: real screenshots in place of placeholders */
.cc-shot { margin: 32px 0 0; }
.cc-shot button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; }
.cc-shot img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid rgba(0,0,0,.08); box-shadow: 0 6px 24px rgba(20,40,60,.08); }
.cc-shot.doc { max-width: 760px; margin-left: auto; margin-right: auto; }
.cc-shot .zoom-hint { position: absolute; right: 12px; bottom: 12px; font-size: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; opacity: 0; transition: opacity .2s; }
.cc-shot button:hover .zoom-hint, .cc-shot button:focus-visible .zoom-hint { opacity: 1; }
.cc-shot figcaption { margin-top: 10px; font-size: 14px; opacity: .75; text-align: center; }
.ph-grid .cc-shot { margin-top: 0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cc-shot img { border-color: rgba(255,255,255,.1); } }
:root[data-theme="dark"] .cc-shot img { border-color: rgba(255,255,255,.1); }
.cc-hero img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 10px 30px rgba(20,40,60,.14); }
.ph-grid .cc-shot figcaption { text-align: left; }
.option .cc-shot { margin: 0; }
.option .cc-shot img { aspect-ratio: 3 / 4; object-fit: cover; object-position: top; background: #fff; }
.option .cc-shot figcaption { display: none; }
.cc-decision { margin-top: 56px; }
.cc-decision h3 { margin: 4px 0 10px; font-size: var(--fs-h3); }
.cc-strip { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.cc-strip button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.cc-strip img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 6px; border: 1px solid var(--line); background: #fff; }
.cc-strip-cap { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
@media (max-width: 720px) { .cc-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cc-funnel b { font-size: var(--fs-h3); }
.cards.cc-more { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 720px) { .cards.cc-more { grid-template-columns: 1fr; } }
.cc-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 24px; }
@media (max-width: 720px) { .cc-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cc-all { margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.cc-all + .cc-all { margin-top: 10px; }
.cc-all summary { cursor: pointer; padding: 14px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.cc-all summary::-webkit-details-marker { display: none; }
.cc-all summary::after { content: "+"; font-size: 20px; color: var(--muted); }
.cc-all[open] summary::after { content: "–"; }
.cc-all > :not(summary) { padding: 0 18px 18px; }
.cc-all .cc-shot { margin: 0; }
.cc-sk-wall { grid-template-columns: repeat(7, minmax(0, 1fr)); margin-top: 0; }
@media (max-width: 860px) { .cc-sk-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cc-sk-wall img { aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
/* Section 1: plain fact columns, distinct from the tinted need cards in section 2 */
.cc-facts { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.cc-facts li { padding-top: 16px; border-top: 2px solid #1586aa; }
.cc-facts b { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #1586aa; margin-bottom: 8px; }
.cc-facts p { margin: 0; font-size: var(--fs-card); }
@media (max-width: 760px) { .cc-facts { grid-template-columns: 1fr; gap: 20px; } }
:root[data-theme="dark"] .cc-facts li { border-top-color: #4fb3d4; }
:root[data-theme="dark"] .cc-facts b { color: #4fb3d4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cc-facts li { border-top-color: #4fb3d4; } :root:not([data-theme="light"]) .cc-facts b { color: #4fb3d4; } }
.cc-sample-label { margin: 32px 0 12px; font-size: 14px; font-weight: 600; color: var(--muted); }
.cc-sample { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.cc-sample.wf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cc-sample figure { margin: 0; }
.cc-sample button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.cc-sample img { display: block; width: 100%; border-radius: 6px; border: 1px solid var(--line); background: #fff; object-fit: cover; object-position: top; }
.cc-sample.sk img { aspect-ratio: 3 / 4; }
.cc-sample.wf img { aspect-ratio: 16 / 10; }
.cc-sample figcaption { margin-top: 6px; font-size: 12px; color: var(--muted); }
@media (max-width: 760px) { .cc-sample { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cc-sample.wf { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cc-sample.wf img { object-position: top left; }
/* Section 01: how an estimate is made, numbered to match the diagram */
.cc-steps { list-style: none; counter-reset: st; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.cc-steps li { counter-increment: st; position: relative; padding-left: 36px; }
.cc-steps li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: #1586aa; color: #fff; font: 700 13px/24px var(--font-body); text-align: center; }
.cc-steps b { display: block; font-family: var(--font-display); font-weight: 500; margin-bottom: 4px; }
.cc-steps p { margin: 0; font-size: var(--fs-card); color: var(--muted); }
.cc-steps-note { margin: 20px 0 0; font-size: var(--fs-card); font-weight: 600; }
@media (max-width: 860px) { .cc-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .cc-steps { grid-template-columns: 1fr; } }
/* Outcome */
.cc-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 32px 0 0; }
.cc-kpis div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 20px; border-radius: var(--radius); background: var(--card-mint); }
.cc-kpis dd { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(36px, 5vw, 52px); line-height: 1; }
.cc-kpis dt { margin-top: 8px; font-size: 14px; }
.cc-sub { margin: 48px 0 14px; font-size: var(--fs-h3); }
.cc-compare { width: 100%; border-collapse: collapse; font-size: var(--fs-card); }
.cc-compare th, .cc-compare td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); }
.cc-compare thead th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cc-compare thead th:last-child { color: #1586aa; }
.cc-compare tbody th { font-weight: 600; width: 22%; }
.cc-compare td:nth-child(2) { color: var(--muted); }
.cc-compare + .prose { margin-top: 40px; }
@media (max-width: 760px) { .cc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cc-compare tbody th { width: auto; } }
.cs .cc-sub { margin: 48px 0 14px; }

/* ---------- One frame size per kind of image ----------
   Screens (wireframes and visuals) all sit in the same 16:10 screen frame,
   sketches all sit in the same 4:3 paper frame. The full image opens on click. */
#design-problem .cc-shot:not(.doc) img,
#final .cc-shot:not(.doc) img,
#exploring .cc-sample.wf img,
.cc-strip img {
  aspect-ratio: 16 / 10; width: 100%; height: auto; object-fit: cover; object-position: top left; background: #fff;
}
#design-problem .cc-shot img[src*="sketch"],
.option .cc-shot img,
#exploring .cc-sample.sk img {
  aspect-ratio: 4 / 3; object-fit: cover; object-position: top center;
}
.cc-gallery .cc-shot img { aspect-ratio: 16 / 10; }
.cc-brief { margin-top: 32px; } .cc-brief .cc-shot { margin: 0; } .cc-brief .cc-shot img { aspect-ratio: auto; }
.cc-pair { margin-top: 24px; } .cc-pair .cc-shot { margin: 0; }
