
/* ========================================
   SMG Case Study Draft
======================================== */
.smg-case-study {
    --smg-ink: #182018;
    --smg-green: #c6ff5c;
    --smg-blue: #2563eb;
    --smg-orange: #f97316;
    --smg-surface: #f6f7f2;
}

.smg-case-study .cs-section {
    padding: 76px 0;
}

.smg-hero {
    border-bottom: none;
    padding-bottom: 40px;
}

.smg-hero-grid {
    align-items: stretch;
}

.smg-eyebrow,
.smg-meta-grid span,
.smg-placeholder-label,
.smg-system-core span,
.smg-system-brand span,
.smg-component-card span,
.smg-stat-panel span,
.smg-ai-panel span {
    display: block;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--color-gray-dark);
}

.smg-case-study .cs-title {
    margin-top: 16px;
}

.smg-case-study .cs-subtitle {
    max-width: 760px;
    font-size: 42px;
    line-height: 1.2;
    letter-spacing: 0;
    word-spacing: 0;
}

.smg-meta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 34px;
}

.smg-meta-grid div {
    min-height: 88px;
    padding: 18px;
    border: 1px solid var(--color-gray);
    background: var(--color-white);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.45;
    color: var(--smg-ink);
}

.smg-meta-grid span {
    margin-bottom: 8px;
}

.smg-placeholder {
    position: relative;
    overflow: hidden;
    border: 1px dashed #aeb4a8;
    background:
        linear-gradient(135deg, rgba(198, 255, 92, 0.28), rgba(37, 99, 235, 0.08)),
        repeating-linear-gradient(45deg, rgba(24, 32, 24, 0.035) 0, rgba(24, 32, 24, 0.035) 8px, transparent 8px, transparent 18px);
}

.smg-placeholder-label {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 18px;
    padding: 7px 10px;
    border: 1px solid rgba(24, 32, 24, 0.16);
    background: rgba(255, 255, 255, 0.72);
    color: var(--smg-ink);
}

.smg-hero-visual {
    width: 100%;
    min-height: 500px;
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.smg-brand-stack {
    display: grid;
    gap: 14px;
}

.smg-brand-stack div {
    padding: 22px;
    background: var(--color-white);
    border: 1px solid rgba(24, 32, 24, 0.12);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
    font-family: var(--font-mono);
    font-size: clamp(22px, 3vw, 36px);
    color: var(--smg-ink);
}

.smg-brand-stack div:nth-child(2) {
    margin-left: 34px;
}

.smg-brand-stack div:nth-child(3) {
    margin-left: 68px;
}

.smg-hero-visual p {
    margin: 24px 0 0;
    font-family: var(--font-mono);
    color: var(--smg-ink);
}

.smg-case-study .cs-hero-right .smg-hero-image {
    width: min(100%, 326px);
    max-width: 326px;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.smg-impact-chart {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 42px;
    padding: 28px;
    border: 1px solid var(--color-gray);
    border-radius: 10px;
    background: linear-gradient(135deg, #f7fff9 0%, #fff6fb 54%, #effffb 100%);
}

.smg-chart-visual {
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.smg-converge-graphic {
    width: 100%;
    max-width: 420px;
    display: grid;
    grid-template-columns: 1fr 70px 1fr;
    gap: 0;
    align-items: center;
}

.smg-converge-inputs {
    display: grid;
    gap: 16px;
}

.smg-converge-node {
    min-height: 58px;
    display: flex;
    align-items: center;
    padding: 14px 18px;
    border: 1px solid rgba(24, 32, 24, 0.12);
    border-radius: 10px;
    background: var(--color-white);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
    font-family: var(--font-mono);
    font-size: 15px;
    color: #333333;
}

.smg-converge-immoscout {
    border-left: 6px solid #00FFD0;
}

.smg-converge-homegate {
    border-left: 6px solid #FFE6F4;
}

.smg-converge-flatfox {
    border-left: 6px solid #f97316;
}

.smg-converge-lines {
    height: 190px;
    position: relative;
}

.smg-converge-lines::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 68px;
    height: 2px;
    background: rgba(51, 51, 51, 0.42);
    transform: translateY(-50%);
}

.smg-converge-lines span {
    position: absolute;
    left: 0;
    width: 74px;
    height: 2px;
    background: rgba(51, 51, 51, 0.42);
    transform-origin: right center;
}

.smg-converge-lines span:nth-child(1) {
    top: 34px;
    transform: rotate(22deg);
}

.smg-converge-lines span:nth-child(2) {
    top: 94px;
}

.smg-converge-lines span:nth-child(3) {
    top: 154px;
    transform: rotate(-22deg);
}

.smg-converge-output {
    min-height: 136px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 1px solid rgba(24, 32, 24, 0.14);
    border-radius: 10px;
    background: #333333;
    color: var(--color-white);
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.14);
    text-align: center;
}

.smg-converge-output strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 46px;
    font-weight: 400;
    line-height: 0.95;
    color: #00FFD0;
}

.smg-converge-output span {
    max-width: 120px;
    margin-top: 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: 1.1px;
}

.smg-chart-kicker {
    margin-bottom: 12px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--color-gray-dark);
}

.smg-chart-content h2 {
    max-width: 720px;
    margin: 0 0 26px;
    font-family: var(--font-mono);
    font-size: clamp(24px, 3.5vw, 38px);
    font-weight: 400;
    line-height: 1.14;
    color: var(--smg-ink);
}

.smg-chart-legend {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.smg-chart-legend div {
    display: grid;
    grid-template-columns: 18px 44px 1fr;
    gap: 12px;
    align-items: center;
    min-height: 52px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(24, 32, 24, 0.08);
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.35;
    color: #333333;
}

.smg-chart-legend strong {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 400;
    line-height: 1;
    color: var(--smg-ink);
}

.smg-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.smg-owned-grid {
    align-items: start;
}

.smg-owned-grid .cs-intro-text {
    margin-bottom: 0;
}

.smg-owned-image img {
    width: 85%;
    margin: 24px 0 0;
    display: block;
    border-radius: 10px;
    border: 1px solid var(--color-gray);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.08);
}

.smg-owned-image .cs-comparison-label {
    width: 85%;
    margin-left: 0;
    margin-right: 0;
    text-align: center;
}

.smg-timeline {
    position: relative;
    padding: 18px 0 18px 30px;
}

.smg-timeline::before {
    content: '';
    position: absolute;
    left: 43px;
    top: 36px;
    bottom: 36px;
    width: 2px;
    background: linear-gradient(180deg, #00FFD0, #FFE6F4 48%, #f97316 78%, #333333);
}

.smg-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 18px;
    align-items: center;
    min-height: 78px;
    margin-bottom: 14px;
    padding: 16px 18px 16px 0;
}

.smg-timeline-item span {
    position: relative;
    z-index: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0;
    border-radius: 50%;
    background: var(--color-white);
    border: 2px solid #333333;
    box-shadow: 0 0 0 7px var(--color-white);
    font-family: var(--font-mono);
    font-size: 10px;
    color: #333333;
}

.smg-timeline-item h3 {
    margin: 0;
    padding: 18px 20px;
    border: 1px solid rgba(24, 32, 24, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.06);
    font-family: var(--font-mono);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.25;
    color: var(--smg-ink);
    display: flex;
    align-items: center;
    gap: 12px;
}

.smg-timeline-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 8px;
    background: rgba(51, 51, 51, 0.08);
}

.smg-timeline-icon::before,
.smg-timeline-icon::after {
    content: '';
    position: absolute;
}

.smg-icon-merge::before,
.smg-icon-merge::after {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 2px solid #038593;
}

.smg-icon-merge::before {
    left: 6px;
}

.smg-icon-merge::after {
    right: 6px;
}

.smg-icon-team::before {
    width: 16px;
    height: 8px;
    border-radius: 12px 12px 2px 2px;
    border: 2px solid #FFB0DD;
    border-bottom: 0;
    bottom: 7px;
}

.smg-icon-team::after {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #FFB0DD;
    top: 6px;
}

.smg-icon-strategy::before {
    width: 14px;
    height: 14px;
    border: 2px solid #333333;
    transform: rotate(45deg);
}

.smg-icon-strategy::after {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #00FFD0;
}

.smg-icon-system::before {
    width: 15px;
    height: 15px;
    border: 2px solid #038593;
    box-shadow: 5px 5px 0 rgba(3, 133, 147, 0.18);
}

.smg-icon-launch::before {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 18px solid #f97316;
    transform: translateY(-2px);
}

.smg-icon-launch::after {
    width: 10px;
    height: 4px;
    border-radius: 999px;
    background: #f97316;
    bottom: 5px;
}

.smg-icon-complete {
    background: rgba(0, 255, 208, 0.14);
}

.smg-icon-complete::before {
    width: 14px;
    height: 8px;
    border-left: 3px solid #00FFD0;
    border-bottom: 3px solid #00FFD0;
    transform: rotate(-45deg) translate(1px, -1px);
}

.smg-timeline-item:nth-child(1) h3 {
    background: #eafffa;
}

.smg-timeline-item:nth-child(2) h3 {
    background: #fff7fb;
}

.smg-timeline-item:nth-child(3) h3 {
    background: #f5fbff;
}

.smg-timeline-item:nth-child(4) h3 {
    background: #f3fff9;
}

.smg-timeline-item:nth-child(5) h3 {
    background: #fff8ed;
}

.smg-timeline-final h3 {
    background: #333333;
    color: var(--color-white);
}

.smg-timeline-final span {
    background: #333333;
    color: #00FFD0;
    border-color: #333333;
}

.smg-dot-design {
    background: #00FFD0;
}

.smg-dot-code {
    background: #FFE6F4;
}

.smg-dot-components {
    background: #038593;
}

.smg-dot-platform {
    background: #333333;
}

.smg-wide-placeholder {
    margin-top: 40px;
    min-height: 320px;
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.smg-wide-placeholder h3 {
    max-width: 760px;
    margin: 0 0 10px;
    font-family: var(--font-mono);
    font-size: clamp(24px, 4vw, 42px);
    font-weight: 400;
    line-height: 1.1;
    color: var(--smg-ink);
}

.smg-wide-placeholder p {
    max-width: 720px;
    margin-bottom: 0;
    color: #2f3a2f;
}

.smg-placeholder-compact {
    min-height: 260px;
    margin-top: 0;
}

.smg-system-diagram {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin: 42px 0;
}

.smg-theme-infographic {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    margin: 42px 0;
    padding: 28px;
    border: 1px solid var(--color-gray);
    border-radius: 10px;
    background: linear-gradient(135deg, #f7fff9 0%, #ffffff 44%, #fff6fb 100%);
}

.smg-theme-core {
    padding: 30px;
    border-radius: 10px;
    background: #333333;
    color: var(--color-white);
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.14);
}

.smg-theme-core span,
.smg-theme-core p,
.smg-theme-principles span {
    font-family: var(--font-mono);
}

.smg-theme-core span {
    display: block;
    margin-bottom: 12px;
    font-size: 12px;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: #00FFD0;
}

.smg-theme-core h3 {
    margin: 0 0 24px;
    max-width: 480px;
    font-family: var(--font-mono);
    font-size: clamp(22px, 3.4vw, 37px);
    font-weight: 400;
    line-height: 1.1;
    color: var(--color-white);
}

.smg-theme-core p {
    max-width: 480px;
    margin: 22px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.74);
}

.smg-component-system {
    position: relative;
    width: min(390px, 100%);
    height: 190px;
    margin-top: 8px;
    overflow: hidden;
    border-radius: 12px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        rgba(255, 255, 255, 0.1);
    background-size: 28px 28px;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.smg-component-system i {
    position: absolute;
    display: block;
}

.smg-module {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.14);
}

.smg-module-hero {
    left: 24px;
    top: 28px;
    width: 150px;
    height: 78px;
    background-image:
        linear-gradient(#00FFD0, #00FFD0),
        linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.3)),
        linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2));
    background-repeat: no-repeat;
    background-size: 58px 9px, 104px 7px, 78px 7px;
    background-position: 18px 20px, 18px 39px, 18px 56px;
}

.smg-module-card {
    right: 28px;
    top: 42px;
    width: 118px;
    height: 112px;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.28)),
        linear-gradient(#FFB0DD, #FFB0DD),
        linear-gradient(rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.22));
    background-repeat: no-repeat;
    background-size: 86px 38px, 54px 8px, 76px 7px;
    background-position: 16px 15px, 16px 68px, 16px 86px;
}

.smg-module-form {
    left: 72px;
    bottom: 24px;
    width: 150px;
    height: 52px;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.28)),
        linear-gradient(#00FFD0, #00FFD0);
    background-repeat: no-repeat;
    background-size: 82px 10px, 42px 10px;
    background-position: 16px 14px, right 16px bottom 13px;
}

.smg-token-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.08);
}

.smg-token-one {
    left: 200px;
    top: 32px;
    background: #00FFD0;
}

.smg-token-two {
    left: 236px;
    top: 32px;
    background: #FFB0DD;
}

.smg-token-three {
    left: 272px;
    top: 32px;
    background: #f97316;
}

.smg-connector {
    height: 2px;
    background: rgba(255, 255, 255, 0.24);
    transform-origin: left center;
}

.smg-connector-one {
    left: 166px;
    top: 82px;
    width: 86px;
    transform: rotate(14deg);
}

.smg-connector-two {
    left: 210px;
    top: 138px;
    width: 78px;
    transform: rotate(-22deg);
}

.smg-token-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.smg-token-row div {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px;
    border: 1px solid rgba(24, 32, 24, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
    font-family: var(--font-mono);
    font-size: 13px;
    color: #333333;
}

.smg-token-row span {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #00FFD0;
}

.smg-token-row div:nth-child(2) span {
    background: #FFB0DD;
}

.smg-token-row div:nth-child(3) span {
    background: #038593;
}

.smg-token-row div:nth-child(4) span {
    background: #f97316;
}

.smg-theme-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}

.smg-theme-arrow span {
    width: 100%;
    max-width: 180px;
    height: 2px;
    background: rgba(51, 51, 51, 0.34);
    position: relative;
}

.smg-theme-arrow span::after {
    content: '';
    position: absolute;
    right: -2px;
    top: 50%;
    width: 12px;
    height: 12px;
    border-top: 2px solid rgba(51, 51, 51, 0.42);
    border-right: 2px solid rgba(51, 51, 51, 0.42);
    transform: translateY(-50%) rotate(45deg);
}

.smg-theme-right {
    display: grid;
    gap: 14px;
}

.smg-brand-output {
    min-height: 112px;
    padding: 20px;
    border: 1px solid rgba(24, 32, 24, 0.1);
    border-radius: 10px;
    background: var(--color-white);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.06);
}

.smg-brand-output img {
    display: block;
    width: auto;
    max-width: 145px;
    max-height: 34px;
    object-fit: contain;
    margin-bottom: 14px;
}

.smg-brand-output p {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.45;
}

.smg-output-immoscout {
    border-left: 7px solid #00FFD0;
}

.smg-output-homegate {
    border-left: 7px solid #FFE6F4;
}

.smg-output-flatfox {
    border-left: 7px solid #f97316;
}

.smg-theme-principles {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 24px;
}

.smg-theme-principles > div {
    padding: 14px;
    border: 1px solid var(--color-gray);
    border-radius: 8px;
    background: var(--color-white);
}

.smg-principle-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
}

.smg-theme-principles .material-symbols-outlined {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    margin-bottom: 0;
    border-radius: 10px;
    background: #eafffa;
    color: #038593;
    font-size: 22px;
    line-height: 1;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.smg-theme-principles div:nth-child(2) .material-symbols-outlined {
    background: #fff6fb;
    color: #d24f98;
}

.smg-theme-principles div:nth-child(3) .material-symbols-outlined {
    background: #fff4e8;
    color: #f97316;
}

.smg-theme-principles span {
    display: block;
    margin-bottom: 12px;
    font-size: 12px;
    color: #038593;
}

.smg-theme-principles h3 {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 400;
}


.smg-problem-grid {
    align-items: stretch;
}

.smg-problem-card {
    position: relative;
    overflow: hidden;
    min-height: 260px;
}

.smg-problem-card h3 {
    margin-top: 24px;
}

.smg-problem-icon {
    width: 100%;
    height: 112px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-gray);
    background: var(--smg-surface);
}

.smg-icon-design {
    gap: 12px;
}

.smg-icon-design span {
    width: 48px;
    height: 70px;
    border: 1px solid rgba(24, 32, 24, 0.16);
    background: var(--color-white);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.smg-icon-design span:nth-child(1) {
    border-top: 8px solid var(--smg-blue);
    transform: translateY(10px);
}

.smg-icon-design span:nth-child(2) {
    border-top: 8px solid var(--smg-orange);
}

.smg-icon-design span:nth-child(3) {
    border-top: 8px solid var(--smg-green);
    transform: translateY(-10px);
}

.smg-icon-code {
    flex-direction: column;
    gap: 9px;
}

.smg-icon-code span {
    width: min(180px, 80%);
    height: 14px;
    border-radius: 0;
    background: var(--smg-ink);
    position: relative;
}

.smg-icon-code span::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 2px;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--smg-blue);
    border-left: 2px solid var(--smg-blue);
    transform: rotate(-45deg);
}

.smg-icon-code span::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 2px;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--smg-orange);
    border-right: 2px solid var(--smg-orange);
    transform: rotate(45deg);
}

.smg-icon-components {
    display: grid;
    grid-template-columns: repeat(2, 54px);
    gap: 12px;
}

.smg-icon-components span {
    width: 54px;
    height: 34px;
    border: 1px dashed rgba(24, 32, 24, 0.28);
    background: rgba(255, 255, 255, 0.62);
}

.smg-icon-components span:nth-child(4) {
    border-style: solid;
    background: var(--smg-green);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.smg-audit-grid {
    align-items: stretch;
}

.smg-audit-card {
    display: flex;
    flex-direction: column;
}

.smg-audit-logo {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--color-gray);
}

.smg-audit-logo img {
    display: block;
    width: auto;
    max-width: 150px;
    max-height: 34px;
    object-fit: contain;
}

.smg-audit-card p {
    margin-bottom: 0;
}

.smg-decision-grid {
    align-items: stretch;
}

.smg-decision-card {
    position: relative;
    min-height: 390px;
    padding: 26px;
    overflow: hidden;
    border: 1px solid var(--color-gray);
    background-color: var(--color-white);
    background-image: var(--smg-decision-image);
    background-repeat: no-repeat;
    background-position: right 18px top 20px;
    background-size: 35%;
    background-blend-mode: multiply;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.08);
}

.smg-decision-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 8px;
    background: var(--smg-decision-accent);
}

.smg-decision-immoscout {
    --smg-decision-accent: #00FFD0;
    --smg-decision-tradeoff: #038593;
    --smg-decision-image: url('../images/smg/immoscout_illustration_web.png');
    background-color: #eafffa;
}

.smg-decision-homegate {
    --smg-decision-accent: #FFB0DD;
    --smg-decision-tradeoff: #FFB0DD;
    --smg-decision-image: url('../images/smg/homegate_illustration_web.png');
    background-color: #fff4fa;
}

.smg-decision-logo {
    position: relative;
    z-index: 1;
    height: 46px;
    display: flex;
    align-items: center;
    margin-bottom: 50px;
}

.smg-decision-logo img {
    display: block;
    width: auto;
    max-width: 148px;
    max-height: 34px;
    object-fit: contain;
}

.smg-decision-immoscout .smg-decision-logo {
    height: 54px;
}

.smg-decision-immoscout .smg-decision-logo img {
    max-height: 48px;
}

.smg-decision-card span {
    position: relative;
    z-index: 1;
    display: inline-flex;
    margin-bottom: 14px;
    padding: 7px 10px;
    background: var(--smg-decision-accent);
    color: #333333;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.smg-decision-card h3 {
    position: relative;
    z-index: 1;
    margin-bottom: 16px;
    font-family: var(--font-mono);
    font-size: clamp(22px, 2.7vw, 30px);
    font-weight: 400;
    line-height: 1.12;
    color: var(--smg-ink);
}

.smg-decision-card p {
    position: relative;
    z-index: 1;
    margin-bottom: 24px;
}

.smg-decision-tradeoff {
    position: relative;
    z-index: 1;
    padding: 14px 16px;
    border-left: 3px solid var(--smg-decision-tradeoff, var(--smg-decision-accent));
    background: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    line-height: 1.6;
    color: #2f3a2f;
}

.smg-decision-tradeoff strong {
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: var(--smg-decision-tradeoff, var(--smg-decision-accent));
}

.smg-system-core,
.smg-system-brand {
    border: 1px solid var(--color-gray);
    background: var(--color-white);
}

.smg-system-core {
    padding: 34px;
    background: var(--smg-ink);
    color: var(--color-white);
}

.smg-system-core strong {
    display: block;
    margin: 12px 0;
    font-family: var(--font-mono);
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 400;
    line-height: 1.08;
}

.smg-system-core p {
    max-width: 520px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
}

.smg-system-brand {
    padding: 24px;
    font-family: var(--font-mono);
    font-size: 24px;
    color: var(--smg-ink);
}

.smg-brand-homegate {
    border-top: 4px solid var(--smg-orange);
}

.smg-brand-immoscout {
    border-top: 4px solid var(--smg-blue);
}

.smg-brand-flatfox {
    border-top: 4px solid var(--smg-green);
}

.smg-component-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 40px 0;
}

.smg-component-assets {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
    margin-top: 40px;
}

.smg-component-asset {
    padding: 26px;
    border: 1px solid var(--color-gray);
    border-radius: 10px;
    background: var(--color-white);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.08);
}

.smg-component-asset img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.smg-component-brands {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.smg-component-brands img {
    max-width: 260px;
}

.smg-component-asset .cs-comparison-label {
    text-align: center;
}

.smg-component-card {
    padding: 18px;
    border: 1px solid var(--color-gray);
    background: var(--color-white);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
}

.smg-component-card span {
    margin-bottom: 14px;
}

.smg-card-image {
    height: 160px;
    margin-bottom: 18px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent),
        #d8ddd3;
}

.smg-component-card h3 {
    margin-bottom: 6px;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 700;
}

.smg-component-card p {
    margin-bottom: 16px;
    font-size: 14px;
}

.smg-component-card button {
    width: 100%;
    min-height: 44px;
    border: none;
    font-family: var(--font-mono);
    font-size: 13px;
    cursor: default;
}

.smg-homegate-card button {
    background: var(--smg-orange);
    color: var(--color-white);
}

.smg-immoscout-card button {
    background: var(--smg-blue);
    color: var(--color-white);
}

.smg-flatfox-card button {
    background: var(--smg-green);
    color: var(--smg-ink);
}

.smg-flow {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 40px 0;
}

.smg-flow div {
    position: relative;
    padding: 24px 24px 24px 78px;
    background: var(--smg-surface);
    border: 1px solid var(--color-gray);
    font-family: var(--font-mono);
    font-size: 18px;
    color: var(--smg-ink);
}

.smg-flow span {
    position: absolute;
    left: 22px;
    top: 50%;
    width: 36px;
    height: 36px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--smg-ink);
    color: var(--smg-green);
    font-family: var(--font-mono);
    font-size: 15px;
}

.smg-stat-panel,
.smg-ai-panel {
    padding: 34px;
    background: var(--smg-ink);
    color: var(--color-white);
}

.smg-stat-panel strong {
    display: block;
    margin: 12px 0;
    font-family: var(--font-heading);
    font-size: clamp(34px, 5vw, 54px);
    font-weight: 400;
    line-height: 1;
    color: var(--smg-green);
}

.smg-stat-panel p,
.smg-ai-panel p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.78);
}

.smg-ai-panel {
    background: var(--smg-surface);
    color: var(--smg-ink);
    border: 1px solid var(--color-gray);
}

.smg-ai-panel h3 {
    margin: 14px 0 12px;
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 400;
}

.smg-ai-panel p {
    color: #2f3a2f;
}

.smg-ai-output {
    margin-top: 24px;
    padding: 18px;
    border-left: 3px solid var(--smg-blue);
    background: var(--color-white);
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.5;
}

.smg-ai-flow {
    margin: 0;
}

.smg-outcome {
    border-bottom: none;
}

.smg-results-infographic {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px;
    border: 1px solid var(--color-gray);
    border-radius: 10px;
    background: linear-gradient(135deg, #f7fff9 0%, #ffffff 48%, #fff6fb 100%);
}

.smg-results-hero {
    position: relative;
    overflow: hidden;
    min-height: 320px;
    padding: 30px;
    border-radius: 10px;
    background: #f2f2f2;
    color: #333333;
}

.smg-results-hero span {
    display: block;
    margin-bottom: 16px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: #038593;
}

.smg-results-hero strong {
    display: block;
    max-width: 360px;
    font-family: var(--font-heading);
    font-size: clamp(23px, 3.2vw, 38px);
    font-weight: 400;
    line-height: 1.08;
    color: #333333;
}

.smg-results-hero p {
    position: relative;
    z-index: 1;
    max-width: 430px;
    margin: 22px 0 0;
    color: #333333;
}

.smg-results-person {
    position: absolute;
    right: 20px;
    bottom: 18px;
    width: 139px;
    height: auto;
    display: block;
    object-fit: contain;
}

.smg-results-list {
    display: grid;
    gap: 14px;
}

.smg-result-item {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 16px;
    align-items: start;
    padding: 20px;
    border: 1px solid rgba(24, 32, 24, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.05);
}

.smg-result-item .material-symbols-outlined {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eafffa;
    color: #038593;
    font-size: 26px;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.smg-result-item:nth-child(2) .material-symbols-outlined {
    background: #fff6fb;
    color: #d24f98;
}

.smg-result-item:nth-child(3) .material-symbols-outlined {
    background: #fff4e8;
    color: #f97316;
}

.smg-result-item strong {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--smg-ink);
}

.smg-result-item p {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
}

.smg-outcome-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: var(--color-gray);
}

.smg-outcome-grid div {
    min-height: 210px;
    padding: 28px;
    background: var(--color-white);
}

.smg-outcome-grid strong {
    display: block;
    margin-bottom: 14px;
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 400;
    line-height: 1.15;
    color: var(--smg-ink);
}

@media (min-width: 768px) {
    .smg-meta-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .smg-impact-chart {
        grid-template-columns: 0.82fr 1.18fr;
        align-items: center;
        padding: 34px;
    }

    .smg-chart-legend {
        grid-template-columns: 1fr 1fr;
    }

    .smg-system-diagram {
        grid-template-columns: 1.4fr repeat(3, 1fr);
        align-items: stretch;
    }

    .smg-theme-infographic {
        grid-template-columns: 1fr 96px 0.9fr;
        align-items: center;
        padding: 34px;
    }

    .smg-theme-arrow {
        min-height: 100%;
    }

    .smg-theme-principles {
        grid-template-columns: repeat(3, 1fr);
    }

    .smg-component-showcase {
        grid-template-columns: repeat(3, 1fr);
    }

    .smg-component-assets {
        grid-template-columns: 1.45fr 0.55fr;
    }

    .smg-flow {
        grid-template-columns: repeat(4, 1fr);
    }

    .smg-flow div {
        min-height: 150px;
        padding: 78px 22px 22px;
    }

    .smg-flow span {
        left: 22px;
        top: 22px;
        transform: none;
    }

    .smg-ai-flow {
        grid-template-columns: 1fr;
    }

    .smg-ai-flow div {
        min-height: auto;
        padding: 24px 24px 24px 78px;
    }

    .smg-ai-flow span {
        left: 22px;
        top: 50%;
        transform: translateY(-50%);
    }

    .smg-outcome-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .smg-results-infographic {
        grid-template-columns: 0.95fr 1.05fr;
        align-items: stretch;
    }
}

@media (max-width: 767px) {
    .smg-case-study .cs-section {
        padding: 56px 0;
    }

    .smg-hero-visual {
        min-height: 360px;
        padding: 24px;
    }

    .smg-brand-stack div:nth-child(2),
    .smg-brand-stack div:nth-child(3) {
        margin-left: 0;
    }

    .smg-wide-placeholder {
        min-height: 260px;
        padding: 24px;
    }

    .smg-converge-graphic {
        grid-template-columns: 1fr;
        gap: 18px;
        max-width: 340px;
    }

    .smg-converge-lines {
        height: 46px;
    }

    .smg-converge-lines::before {
        left: 50%;
        right: auto;
        top: 0;
        width: 2px;
        height: 46px;
        transform: translateX(-50%);
    }

    .smg-converge-lines span {
        display: none;
    }

    .smg-decision-card {
        min-height: 440px;
        background-position: right 14px top 20px;
        background-size: 42%;
    }

    .smg-timeline {
        padding-left: 0;
    }

    .smg-timeline::before {
        left: 15px;
    }

    .smg-timeline-item {
        grid-template-columns: 42px 1fr;
        gap: 12px;
    }

    .smg-results-person {
        width: 110px;
        right: 16px;
        bottom: 16px;
    }

}
/* ========================================
   The Social Hub Case Study
   Scoped to .sh-case-study, using the product's own palette.
======================================== */
.sh-case-study {
    --hub-cream: #faf6f0;
    --hub-sand: #f1eae0;
    --hub-ink: #221c2b;
    --hub-ink-soft: #5c5468;
    --hub-ink-faint: #9a91a6;
    --hub-line: #e6ded2;
    --hub-violet: #6c4cf1;
    --hub-violet-tint: #efeafb;
    --hub-coral: #ff7a59;
    --hub-coral-tint: #ffe9e2;
    --hub-gold: #e8b04b;
    --hub-green: #15803d;
    --hub-green-bg: #e4f4e8;
    --hub-amber: #d97706;
}

/* Brand-tinted section rules */
.sh-case-study .cs-section-line {
    width: 44px;
    height: 3px;
    background: linear-gradient(90deg, var(--hub-coral), var(--hub-violet));
    border-radius: 2px;
}

.sh-eyebrow,
.sh-facts dt,
.sh-arch-kicker,
.sh-threshold-label,
.sh-money-step span,
.sh-stack-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--hub-ink-faint);
}

.sh-hero {
    border-bottom: none;
    padding-bottom: 40px;
}

.sh-case-study .cs-title {
    margin-top: 16px;
}

/* Compact fact list — replaces the old boxed meta grid */
.sh-facts {
    margin-top: 32px;
    border-top: 1px solid var(--hub-line);
}

.sh-facts > div {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 14px 0;
    border-bottom: 1px solid var(--hub-line);
}

.sh-facts dt {
    margin: 0;
}

.sh-facts dd {
    margin: 0;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--color-text);
}

/* ---- Hero device composition ---- */
.sh-case-study .cs-hero-right {
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    width: 100%;
}

.sh-case-study .cs-hero-right img {
    max-width: 100%;
}

.sh-devices {
    position: relative;
    width: 100%;
    padding: 10px 0 46px;
    isolation: isolate;
}

.sh-devices::before,
.sh-devices::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(46px);
    z-index: -1;
}

.sh-devices::before {
    width: 42%;
    padding-bottom: 42%;
    top: 2%;
    left: 2%;
    background: rgba(255, 122, 89, 0.34);
}

.sh-devices::after {
    width: 46%;
    padding-bottom: 46%;
    right: 2%;
    bottom: 6%;
    background: rgba(108, 76, 241, 0.26);
}

.sh-laptop {
    position: relative;
    margin: 0 3%;
}

/* Thin-bezel lid, MacBook Pro proportions */
.sh-laptop-lid {
    position: relative;
    background: linear-gradient(158deg, #2c2637 0%, #17121f 100%);
    border-radius: 11px;
    padding: 8px;
    box-shadow:
        0 34px 64px -26px rgba(34, 28, 43, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.sh-laptop-screen {
    display: block;
    border-radius: 4px;
    overflow: hidden;
    background: #000;
}

.sh-laptop-screen img {
    display: block;
    width: 100%;
    height: auto;
}

.sh-laptop-base {
    position: relative;
    width: 106%;
    margin: 0 0 0 -3%;
    height: 15px;
    background: linear-gradient(#ddd9e2, #a49fae);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 16px 26px -16px rgba(34, 28, 43, 0.55);
}

.sh-laptop-base::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: rgba(34, 28, 43, 0.3);
}

.sh-laptop-base::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 92px;
    height: 7px;
    background: linear-gradient(#b3aebd, #d2ceda);
    border-radius: 0 0 8px 8px;
}

.sh-phone {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 21%;
    min-width: 92px;
    background: linear-gradient(158deg, #2c2637 0%, #17121f 100%);
    border-radius: 19px;
    padding: 4px;
    box-shadow:
        0 22px 40px -16px rgba(34, 28, 43, 0.55),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.sh-phone-screen {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
}

.sh-phone-screen img {
    display: block;
    width: 100%;
    height: auto;
}

/* ---- Threshold illustration ---- */
.sh-threshold {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 18px;
    margin-top: 44px;
}

.sh-threshold-card {
    background: var(--hub-cream);
    border: 1px solid var(--hub-line);
    border-radius: 16px;
    padding: 24px 24px 22px;
}

.sh-threshold-label {
    margin-bottom: 16px;
}

.sh-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.sh-dots span {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px dashed rgba(154, 145, 166, 0.65);
}

.sh-dots span.is-in {
    border: none;
    background: var(--hub-violet);
}

.sh-dots span.is-in:nth-child(3n + 2) {
    background: var(--hub-coral);
}

.sh-dots span.is-in:nth-child(3n) {
    background: var(--hub-gold);
}

.sh-meter {
    height: 7px;
    border-radius: 99px;
    background: var(--hub-sand);
    overflow: hidden;
}

.sh-meter i {
    display: block;
    height: 100%;
    border-radius: 99px;
    background: var(--hub-amber);
}

.sh-threshold-card.is-go .sh-meter i {
    background: var(--hub-green);
}

.sh-threshold-state {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--hub-amber);
    margin: 14px 0 0;
}

.sh-threshold-card.is-go {
    background: var(--hub-green-bg);
    border-color: rgba(21, 128, 61, 0.22);
}

.sh-threshold-card.is-go .sh-threshold-state {
    color: var(--hub-green);
}

.sh-threshold-arrow {
    font-family: var(--font-mono);
    font-size: 22px;
    color: var(--hub-ink-faint);
    text-align: center;
}

@media (min-width: 768px) {
    .sh-threshold {
        grid-template-columns: 1fr auto 1fr;
        gap: 22px;
    }

    .sh-threshold-arrow {
        padding: 0 14px;
    }
}

/* ---- Collage: three insight cards pinned around the live GIF ----
   Echoes the tilted, overlapping event cards from the product's own
   hero — same visual language, applied to the case study itself. */
.sh-collage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    margin-top: 48px;
}

.sh-collage-media {
    order: -1;
}

.sh-live-demo-gif {
    display: block;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    border-radius: 20px;
    border: 1px solid var(--hub-line);
    box-shadow:
        0 30px 52px -20px rgba(34, 28, 43, 0.35),
        0 6px 16px -6px rgba(34, 28, 43, 0.14);
}

.sh-collage-card {
    max-width: 320px;
    background: var(--color-white);
    border-radius: 14px;
    padding: 26px 28px;
    box-shadow: 0 16px 34px -12px rgba(34, 28, 43, 0.16);
}

.sh-collage-card h3 {
    font-family: var(--font-mono);
    font-size: 19px;
    font-weight: 400;
    color: var(--hub-ink);
    margin-bottom: 10px;
}

.sh-collage-card p {
    font-size: 14px;
    line-height: 1.75;
    color: var(--color-text);
    margin: 0;
}

@media (min-width: 1024px) {
    .sh-collage {
        display: grid;
        grid-template-columns: 1fr 1.05fr 1fr;
        grid-template-rows: auto auto;
        column-gap: 36px;
        row-gap: 40px;
        align-items: center;
        margin-top: 60px;
    }

    .sh-collage-top {
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
        transform: rotate(-2deg);
    }

    .sh-collage-media {
        order: 0;
        grid-column: 2;
        grid-row: 2;
        justify-self: center;
    }

    .sh-collage-left {
        grid-column: 1;
        grid-row: 2;
        justify-self: end;
        transform: rotate(2.5deg);
    }

    .sh-collage-right {
        grid-column: 3;
        grid-row: 2;
        justify-self: start;
        transform: rotate(-2.5deg);
    }
}

/* ---- Architecture infographic ---- */
.sh-arch {
    margin-top: 10px;
}

.sh-arch-row {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 10px;
}

.sh-arch-node {
    position: relative;
    background: var(--color-white);
    border: 1px solid var(--hub-line);
    border-top: 3px solid var(--hub-violet);
    border-radius: 14px;
    padding: 22px 22px 20px;
}

.sh-arch-node--server {
    border-top-color: var(--hub-coral);
}

.sh-arch-node--data {
    border-top-color: var(--hub-gold);
}

.sh-arch-node strong {
    display: block;
    font-family: var(--font-mono);
    font-size: 19px;
    font-weight: 400;
    color: var(--hub-ink);
    margin: 6px 0 14px;
}

.sh-arch-node ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sh-arch-node li {
    position: relative;
    padding-left: 18px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: 7px;
}

.sh-arch-node li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hub-violet);
}

.sh-arch-node--server li::before {
    background: var(--hub-coral);
}

.sh-arch-node--data li::before {
    background: var(--hub-gold);
}

.sh-arch-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 4px 0;
}

.sh-arch-link span {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--hub-ink-faint);
    white-space: nowrap;
}

.sh-arch-link::before,
.sh-arch-link::after {
    content: '';
    flex: 1;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--hub-line) 0 6px, transparent 6px 11px);
}

.sh-arch-shared {
    margin-top: 10px;
    background: var(--hub-violet-tint);
    border: 1px dashed rgba(108, 76, 241, 0.35);
    border-radius: 14px;
    padding: 20px 22px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 300;
    line-height: 1.7;
    color: var(--color-text);
}

.sh-arch-shared span {
    display: block;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--hub-violet);
    margin-bottom: 8px;
}

/* ---- Money flow ---- */
.sh-money {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 10px;
}

.sh-money-step,
.sh-money-out {
    background: var(--color-white);
    border: 1px solid var(--hub-line);
    border-radius: 14px;
    padding: 20px 22px;
}

.sh-money-step span {
    margin-bottom: 10px;
}

.sh-money-step strong,
.sh-money-out strong {
    display: block;
    font-family: var(--font-mono);
    font-size: 17px;
    font-weight: 400;
    color: var(--hub-ink);
    margin-bottom: 6px;
}

.sh-money-step p,
.sh-money-out p {
    font-size: 14px;
    line-height: 1.65;
    margin: 0;
}

.sh-money-step.is-hold {
    background: var(--hub-violet-tint);
    border-color: rgba(108, 76, 241, 0.3);
}

.sh-money-outs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.sh-money-out.is-refund {
    background: var(--hub-coral-tint);
    border-color: rgba(255, 122, 89, 0.35);
}

.sh-money-out.is-payout {
    background: var(--hub-green-bg);
    border-color: rgba(21, 128, 61, 0.22);
}

.sh-money-rail {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--hub-ink-faint);
    text-align: center;
    padding: 2px 0;
}

/* ---- Screenshots ---- */
.sh-shot {
    width: 100%;
    border-radius: 10px;
}

.sh-mobile-shots {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 620px;
    margin: 0 auto;
}

.sh-mobile-shots figure {
    max-width: 300px;
    margin: 0 auto;
}

.sh-mobile-shots img {
    width: 100%;
    border-radius: 18px;
    box-shadow:
        0 36px 62px -20px rgba(34, 28, 43, 0.58),
        0 12px 24px -8px rgba(34, 28, 43, 0.22);
}

/* ---- Callout ---- */
.sh-callout {
    background: var(--hub-violet-tint);
    border-left: 3px solid var(--hub-violet);
    border-radius: 0 14px 14px 0;
    padding: 26px 30px;
    margin-top: 40px;
}

.sh-callout p:last-child {
    margin-bottom: 0;
}

.sh-callout--coral {
    background: var(--hub-coral-tint);
    border-left-color: var(--hub-coral);
}

/* ---- Bug-style cards reused in the mobile section ---- */
.sh-bug-card h3 {
    font-size: 18px;
    line-height: 1.35;
}

.sh-bug-card p {
    font-size: 14px;
    line-height: 1.75;
    margin-bottom: 0;
}

.sh-bug-card .cs-kano-subtitle {
    margin-bottom: 14px;
}

@media (min-width: 768px) {
    .sh-facts > div {
        grid-template-columns: 108px 1fr;
        gap: 20px;
        align-items: baseline;
    }

    .sh-threshold {
        grid-template-columns: 1fr auto 1fr;
        gap: 22px;
    }

    .sh-mobile-shots {
        grid-template-columns: 1fr 1fr;
    }

    .sh-mobile-shots figure {
        max-width: none;
    }
}

@media (min-width: 1024px) {
    /* Give the device composition more of the hero than the copy */
    .sh-case-study .cs-hero-grid {
        grid-template-columns: 1fr 1.25fr;
        gap: 60px;
    }

    .sh-devices {
        padding-bottom: 40px;
    }

    .sh-arch-row {
        grid-template-columns: 1fr auto 1fr auto 1fr;
        gap: 0;
    }

    .sh-arch-link {
        flex-direction: column;
        padding: 0 14px;
        align-self: center;
    }

    .sh-arch-link::before,
    .sh-arch-link::after {
        width: 100%;
        flex: 0 0 2px;
        height: 2px;
        background: repeating-linear-gradient(90deg, var(--hub-line) 0 6px, transparent 6px 11px);
    }

    .sh-arch-link span {
        padding: 6px 0;
    }

    .sh-money {
        grid-template-columns: 1fr auto 1fr auto 1.2fr;
        align-items: center;
        gap: 0;
    }

    .sh-money-rail {
        padding: 0 14px;
    }
}

/* ========================================
   BloodLog Case Study
   Reuses the .sh-* case-study structure and only swaps the palette
   for the app's own dark/neon tokens.
======================================== */
.bl-case-study {
    --hub-cream: #fafaf7;
    --hub-sand: #ecece5;
    --hub-ink: #0d0d0d;
    --hub-ink-soft: #4a4a4a;
    --hub-ink-faint: #8a8a85;
    --hub-line: #e2e2dc;
    --hub-violet: #4d7c0f;
    --hub-violet-tint: #f3fce3;
    --hub-coral: #ff8c00;
    --hub-coral-tint: #fff2df;
    --hub-gold: #a8ff3e;
    --hub-green: #15803d;
    --hub-green-bg: #e4f4e8;
    --hub-amber: #d97706;
}

/* Three phone screens side by side */
.bl-shots {
    display: grid;
    grid-template-columns: 1fr;
    gap: 44px;
    margin-top: 10px;
}

.bl-shots figure {
    max-width: 300px;
    margin: 0 auto;
}

.bl-shots img {
    width: 100%;
    border-radius: 18px;
    box-shadow:
        0 36px 62px -20px rgba(13, 13, 13, 0.55),
        0 12px 24px -8px rgba(13, 13, 13, 0.2);
}

.bl-shots figcaption {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.6px;
    line-height: 1.6;
    color: var(--hub-ink-faint);
    text-align: center;
    margin-top: 18px;
}

@media (min-width: 700px) {
    .bl-shots {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px 28px;
    }
}

@media (min-width: 1024px) {
    .bl-shots--three {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Hero glow retinted to BloodLog's own accents */
.bl-case-study .sh-devices::before {
    background: rgba(168, 255, 62, 0.32);
}

.bl-case-study .sh-devices::after {
    background: rgba(124, 92, 246, 0.24);
}

/* Split layout: one phone beside its explanation */
.bl-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 12px;
}

.bl-split-media {
    max-width: 300px;
    margin: 0 auto;
}

.bl-split-media img {
    width: 100%;
    border-radius: 18px;
    box-shadow:
        0 36px 62px -20px rgba(13, 13, 13, 0.55),
        0 12px 24px -8px rgba(13, 13, 13, 0.2);
}

.bl-split-body h3 {
    font-family: var(--font-mono);
    font-size: 19px;
    font-weight: 400;
    color: var(--hub-ink);
    margin: 0 0 10px;
}

.bl-split-body p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-text);
    margin: 0;
}

.bl-split-body > div + div {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--hub-line);
}

@media (min-width: 900px) {
    .bl-split {
        grid-template-columns: 340px minmax(0, 1fr);
        gap: 68px;
    }

    .bl-split-media {
        max-width: none;
        margin: 0;
    }

    /* keep the measure readable on wide screens */
    .bl-split-body {
        max-width: 680px;
    }

    .bl-split--reverse {
        grid-template-columns: minmax(0, 1fr) 340px;
    }

    .bl-split--reverse .bl-split-body {
        justify-self: end;
    }

    /* the walkthrough runs narrower than the still phones, and its copy starts
       at the top so it reads straight on from the section heading */
    .bl-split--anim {
        grid-template-columns: minmax(0, 1fr) 289px;
        align-items: start;
    }

    /* this column holds the section lead, so it starts on the container edge
       like every other lead rather than hugging the phone */
    .bl-split--anim .bl-split-body {
        justify-self: start;
    }

    .bl-split--reverse .bl-split-media {
        order: 2;
    }
}

/* ---- Animated dashboard walkthrough ----
   Slices of the real screenshots, reassembled so the two AI panels
   can actually open. 1cqw = 8 source px (screenshots are 800px wide). */
/* the walkthrough has no intrinsic width (its screen is a size container),
   so the shrink-to-fit media column has to be told to fill instead */
.bl-split-media--anim {
    width: 100%;
}

.bl-anim-stage {
    position: relative;
    width: 100%;
}

.bl-anim-phone {
    position: relative;
    background: linear-gradient(158deg, #2c2637 0%, #17121f 100%);
    border-radius: 36px;
    padding: 6px;
    box-shadow:
        0 40px 66px -22px rgba(13, 13, 13, 0.6),
        0 14px 26px -10px rgba(13, 13, 13, 0.24),
        inset 0 0 0 1px rgba(255, 255, 255, 0.11);
}

.bl-anim-screen {
    position: relative;
    container-type: inline-size;
    aspect-ratio: 800 / 1644;
    border-radius: 30px;
    overflow: hidden;
    background: #0d0d0d;
}

.bl-anim-scroll {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    will-change: transform;
    animation: bl-scroll 14s cubic-bezier(0.45, 0.05, 0.35, 1) infinite;
}

.bl-anim-scroll img,
.bl-anim-swap img,
.bl-anim-reveal img,
.bl-anim-tabbar {
    display: block;
    width: 100%;
    height: auto;
}

/* collapsed row sets the height; the open row cross-fades over it */
.bl-anim-swap {
    position: relative;
}

.bl-anim-swap .is-open {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.bl-anim-swap--ai .is-open {
    animation: bl-swap-ai 14s linear infinite;
}

.bl-anim-swap--rec .is-open {
    animation: bl-swap-rec 14s linear infinite;
}

.bl-anim-reveal {
    overflow: hidden;
    height: 0;
}

.bl-anim-reveal--ai {
    animation: bl-open-ai 14s cubic-bezier(0.3, 0.8, 0.4, 1) infinite;
}

.bl-anim-reveal--rec {
    animation: bl-open-rec 14s cubic-bezier(0.3, 0.8, 0.4, 1) infinite;
}

.bl-anim-tabbar {
    position: absolute;
    left: 0;
    bottom: 0;
}

.bl-anim-tap {
    position: absolute;
    left: 50%;
    width: 22cqw;
    height: 22cqw;
    margin: -11cqw 0 0 -11cqw;
    border-radius: 50%;
    background: rgba(186, 244, 96, 0.28);
    box-shadow: inset 0 0 0 2px rgba(186, 244, 96, 0.62);
    opacity: 0;
    pointer-events: none;
}

.bl-anim-tap--ai {
    top: 62.125cqw;
    animation: bl-tap-ai 14s linear infinite;
}

.bl-anim-tap--rec {
    top: 128.875cqw;
    animation: bl-tap-rec 14s linear infinite;
}

/* ---- vertical rhythm -------------------------------------------------
   Two paragraph roles on this page: a lead that opens a section, and the
   annotation copy that sits beside a phone. The lead is one step larger and
   shares a single measure wherever it appears, so the section openings all
   read the same whether the lead is a block or a column.
   header -> lead 30px  |  lead -> visual 40px  |  visual -> callout 40px  */
.bl-case-study .cs-intro-text {
    max-width: 680px;
    font-size: 16px;
    line-height: 1.85;
    margin-bottom: 40px;
}

/* the callout stays full width, but its text keeps the same measure as
   everything else rather than running the whole container */
.bl-case-study .sh-callout p {
    max-width: 780px;
}

/* section lead copy sitting beside the walkthrough */
.bl-split-body.bl-anim-copy p {
    font-size: 16px;
    line-height: 1.85;
}

.bl-split-body.bl-anim-copy p + p {
    margin-top: 24px;
}

@keyframes bl-scroll {
    0%, 6%    { transform: translateY(0); }
    20%, 30%  { transform: translateY(-119.125cqw); }
    42%, 78%  { transform: translateY(0); }
    88%, 93%  { transform: translateY(-16cqw); }
    97%, 100% { transform: translateY(0); }
}

@keyframes bl-open-ai {
    0%, 47%   { height: 0; }
    53%, 94%  { height: 48.125cqw; }
    97%, 100% { height: 0; }
}

@keyframes bl-open-rec {
    0%, 68%   { height: 0; }
    75%, 94%  { height: 58.75cqw; }
    97%, 100% { height: 0; }
}

@keyframes bl-swap-ai {
    0%, 46%   { opacity: 0; }
    50%, 95%  { opacity: 1; }
    97%, 100% { opacity: 0; }
}

@keyframes bl-swap-rec {
    0%, 67%   { opacity: 0; }
    71%, 95%  { opacity: 1; }
    97%, 100% { opacity: 0; }
}

@keyframes bl-tap-ai {
    0%, 43%  { opacity: 0; transform: scale(0.45); }
    45%      { opacity: 1; transform: scale(0.62); }
    49.5%    { opacity: 0; transform: scale(1.35); }
    100%     { opacity: 0; transform: scale(0.45); }
}

@keyframes bl-tap-rec {
    0%, 64%  { opacity: 0; transform: scale(0.45); }
    66%      { opacity: 1; transform: scale(0.62); }
    70.5%    { opacity: 0; transform: scale(1.35); }
    100%     { opacity: 0; transform: scale(0.45); }
}

@media (prefers-reduced-motion: reduce) {
    .bl-anim-scroll,
    .bl-anim-swap .is-open,
    .bl-anim-reveal,
    .bl-anim-tap {
        animation: none;
    }

    .bl-anim-swap .is-open { opacity: 1; }
    .bl-anim-reveal--ai    { height: 48.125cqw; }
    .bl-anim-reveal--rec   { height: 58.75cqw; }
}
