/* =========================================================
   Bad vs good showcase (index.html #showcase)
   ========================================================= */
.sx-tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--joint); border-radius: 999px; margin-bottom: var(--s4); background: var(--charcoal); flex-wrap: wrap; }
.sx-tabs button { font: 500 15px/1 var(--body); color: var(--stone); background: none; border: 0; border-radius: 999px; padding: 12px 22px; min-height: 44px; cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease); }
.sx-tabs button:hover { color: var(--limestone); }
.sx-tabs button[aria-selected="true"] { background: var(--limestone); color: #1a1816; }
.sx-panel { animation: fade-up .6s var(--ease) both; }
.sx-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.sx-card { margin: 0; border-radius: var(--radius); background: var(--charcoal); border: 1px solid var(--joint); padding: 20px; display: grid; gap: 16px; align-content: start; min-width: 0; }
.sx-card.good { border-color: rgba(194, 156, 106, 0.55); }
.sx-card figcaption { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 19px; }
.sx-tag { font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; }
.sx-tag.bad { background: rgba(224, 138, 122, 0.16); color: #F0A698; }
.sx-tag.good { background: rgba(194, 156, 106, 0.2); color: var(--bronze-hi); }
.sx-stage { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; }
.sx-notes { margin: 0; padding: 0; list-style: none; counter-reset: sx; display: grid; gap: 10px; }
.sx-notes li { counter-increment: sx; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; font-size: 15px; line-height: 1.45; }
.sx-notes li::before { content: counter(sx); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 500 11px/1 var(--mono); margin-top: 1px; }
.sx-notes.bad li { color: var(--stone); }
.sx-notes.bad li::before { background: #C9604E; color: #fff; }
.sx-notes.good li::before { background: var(--bronze); color: #1a1816; }
.pin { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 600 11px/1 var(--mono); z-index: 3; box-shadow: 0 0 0 4px rgba(0, 0, 0, .18); animation: pin-pop .5s var(--ease) both; }
.pin.bad { background: #C9604E; color: #fff; }
.pin.good { background: var(--bronze); color: #1a1816; }
@keyframes pin-pop { from { transform: translate(-50%, -50%) scale(0); } to { transform: translate(-50%, -50%) scale(1); } }
.sx-disclaim { margin-top: var(--s3); font-size: 13px; color: var(--stone); }

/* Weak ad */
.ad-bad { position: absolute; inset: 0; background: linear-gradient(135deg, #ffe600, #ff3c8e 55%, #3cc8ff); display: flex; flex-direction: column; align-items: center; padding: 12px; gap: 6px; font-family: Impact, "Arial Black", sans-serif; color: #111; text-align: center; }
.ab-top { font-size: clamp(16px, 2.2vw, 24px); color: #c00; text-shadow: 2px 2px 0 #fff; }
.ab-top b { color: #0033cc; }
.ab-img { width: 46%; aspect-ratio: 4 / 5; overflow: hidden; border: 4px dotted #fff; transform: rotate(-4deg); }
.ab-img img { width: 100%; height: 100%; object-fit: cover; }
.ab-burst { position: absolute; right: 8%; top: 32%; width: 26%; aspect-ratio: 1; border-radius: 50%; background: #ff0; color: #e00; display: grid; place-items: center; font-size: clamp(14px, 2vw, 22px); transform: rotate(14deg); border: 3px dashed #e00; }
.ab-list { font: 700 clamp(10px, 1.1vw, 12px)/1.3 "Comic Sans MS", "Comic Sans", cursive; color: #222; margin: 0; }
.ab-cta { font-size: clamp(14px, 1.7vw, 19px); color: #fff; background: #e00; padding: 4px 10px; margin: 0; }
.ab-fine { font: 9px/1.2 Arial, sans-serif; color: #333; margin: 0; }

/* Strong ad */
.ad-good { position: absolute; inset: 0; background: #0f0e0d; }
.ad-good img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.ag-copy { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px 22px; background: linear-gradient(0deg, rgba(10, 9, 8, .95) 55%, transparent); display: grid; gap: 8px; color: #f6efe5; }
.ag-brand { font: 500 11px/1 var(--mono); letter-spacing: .3em; color: var(--bronze-hi); }
.ag-head { font: 500 clamp(17px, 2vw, 23px)/1.2 var(--display); margin: 0; }
.ag-proof { font-size: 12px; color: #cfc4b4; margin: 0; }
.ag-cta { justify-self: start; font: 500 13px/1 var(--body); padding: 10px 16px; border-radius: 999px; background: #f6efe5; color: #1a1816; }

/* Weak site */
.site-bad { position: absolute; inset: 0; background: #fff; color: #222; font-family: "Times New Roman", serif; display: flex; flex-direction: column; }
.sb-nav { background: #003399; color: #fff; padding: 8px; font-size: 10px; display: grid; gap: 4px; }
.sb-nav b { font-size: 12px; }
.sb-nav span { color: #cdd8ff; }
.sb-hero { height: 28%; background: linear-gradient(90deg, #888, #bbb); display: flex; align-items: center; justify-content: space-between; padding: 0 8px; color: #fff; }
.sb-hero p { font: italic 700 clamp(14px, 1.8vw, 20px)/1.2 Georgia, serif; margin: 0; }
.sb-arrow { font-size: 26px; opacity: .7; }
.sb-text { font-size: clamp(9px, 1vw, 11px); line-height: 1.35; padding: 10px; margin: 0; text-align: justify; color: #444; }
.sb-foot { margin: auto 0 0; padding: 8px; font-size: 10px; background: #eee; color: #666; }

/* Strong site */
.site-good { position: absolute; inset: 0; background: #f6f1ea; color: #1d1b19; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; font-family: var(--body); }
.sg-nav { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.sg-nav b { font-family: var(--display); font-size: 15px; }
.sg-nav span { color: #7a7065; }
.sg-nav em { margin-left: auto; font-style: normal; font-size: 11px; padding: 6px 10px; border-radius: 999px; background: #1d1b19; color: #f6f1ea; }
.sg-eyebrow { margin: 18px 0 0; font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #8a6a3f; }
.sg-head { margin: 0; font: 500 clamp(22px, 2.8vw, 32px)/1.08 var(--display); letter-spacing: -.01em; }
.sg-sub { margin: 0; font-size: clamp(12px, 1.2vw, 14px); color: #5d554c; }
.sg-ctas { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.sg-ctas em { font-style: normal; font-size: 12px; padding: 10px 14px; border-radius: 999px; background: #1d1b19; color: #f6f1ea; }
.sg-ctas span { font-size: 12px; padding: 10px 14px; border-radius: 999px; border: 1px solid #cfc5b8; }
.sg-proof { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.sg-proof span { font-size: 10px; padding: 6px 9px; border-radius: 999px; background: #ebe3d8; color: #4a433b; }

/* Weak strategy */
.strat-bad { position: absolute; inset: 0; background: repeating-linear-gradient(45deg, #2b2826 0 12px, #2e2b29 12px 24px); }
.strat-bad span { position: absolute; left: var(--x); top: var(--y); font-size: clamp(11px, 1.2vw, 13px); padding: 6px 10px; border-radius: 8px; background: #3b3632; color: #d9cfc2; border: 1px dashed #6a6158; white-space: nowrap; z-index: 2; }
.strat-bad span:nth-child(odd) { transform: rotate(-4deg); }
.strat-bad span:nth-child(3n) { transform: rotate(5deg); }
.sb-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.sb-lines path { fill: none; stroke: #C9604E; stroke-width: .5; stroke-dasharray: 2 2; opacity: .6; }

/* Strong strategy */
.strat-good { position: absolute; inset: 0; margin: 0; padding: 18px 18px 18px 40px; list-style: none; background: #2b2826; display: grid; gap: 8px; align-content: center; counter-reset: st; }
.strat-good li { counter-increment: st; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 10px 12px; border-radius: 12px; background: #36322e; border: 1px solid #4a443d; }
.strat-good li::before { content: counter(st); position: absolute; left: -28px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; border-radius: 50%; background: var(--bronze); color: #1a1816; display: grid; place-items: center; font: 600 10px/1 var(--mono); }
.strat-good li + li::after { content: ""; position: absolute; left: -19px; top: -9px; width: 2px; height: 10px; background: var(--bronze); opacity: .6; }
.strat-good b { font: 500 14px/1.2 var(--display); color: var(--limestone); }
.strat-good span { grid-column: 1; font-size: 11.5px; color: var(--stone); line-height: 1.35; }
.strat-good i { grid-row: 1 / span 2; grid-column: 2; align-self: center; font: 500 10px/1 var(--mono); font-style: normal; color: var(--bronze-hi); padding: 5px 8px; border-radius: 999px; background: rgba(194, 156, 106, 0.14); white-space: nowrap; }

@media (max-width: 860px) {
  .sx-pair { grid-template-columns: 1fr; }
  .sx-stage { aspect-ratio: 4 / 4.6; }
}
@media (prefers-reduced-motion: reduce) {
  .pin, .sx-panel { animation: none; }
}

/* Pins attached to the element they describe */
.pin.at { left: -9px; top: -9px; transform: none; width: 22px; height: 22px; font-size: 10.5px; animation-name: pin-pop-at; }
@keyframes pin-pop-at { from { transform: scale(0); } to { transform: scale(1); } }
.ab-top, .ab-list, .ab-cta, .ag-head, .ag-proof, .ag-cta, .sb-nav, .sb-hero, .sb-text, .sb-foot,
.sg-head, .sg-sub, .sg-ctas, .sg-proof, .strat-good li, .strat-good i { position: relative; }
.ab-burst .pin.at, .strat-bad span .pin.at { left: -6px; top: -6px; }
.ad-good .pin.at { position: absolute; }
.strat-good li > .pin.at { left: auto; right: -9px; }
.strat-good i .pin.at { left: -14px; top: -10px; }
.sb-hero .pin.at, .sb-nav .pin.at, .sb-text .pin.at, .sb-foot .pin.at { left: auto; right: 8px; top: 8px; }
.sg-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; flex: 1; min-height: 0; margin-top: 6px; }
.sg-gallery span { border-radius: 10px; background: linear-gradient(160deg, #d9cbb6, #b59c7c 60%, #8c7356); }
.sg-gallery span:nth-child(2) { background: linear-gradient(160deg, #2c2a27, #4a4540 60%, #6d665d); }
.sg-gallery span:nth-child(3) { background: linear-gradient(160deg, #e9e2d6, #cdbfab 60%, #a8957c); }
.sg-proof { margin-top: 0; }
.strat-good { padding-right: 26px; }
.ag-copy { padding-left: 38px; }
.site-good { padding-left: 34px; }
.ag-copy .pin.at, .site-good .pin.at { left: -27px; top: 0; }
.ad-good > .pin.at { left: 18px; top: 18px; }

/* Real screenshots (Website tab) and unnumbered notes */
.sx-stage.shot { aspect-ratio: auto; background: #111; box-shadow: 0 14px 30px rgba(0, 0, 0, .35); }
.sx-stage.shot img { display: block; width: 100%; height: auto; }
.sx-notes li { counter-increment: none; }
.sx-notes li::before { content: ""; width: 22px; height: 22px; background-position: center; background-repeat: no-repeat; background-size: 12px; }
.sx-notes.bad li::before { background-color: #C9604E; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 4l8 8M12 4l-8 8' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.sx-notes.good li::before { background-color: #4FC97A; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%2310241a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.sx-notes.good li { color: var(--limestone); }
.sx-panel .sx-disclaim { margin-top: 14px; }
