.capabilities-section {
    width: min(960px, calc(100% - 48px));
    margin: 0 auto;
    padding: 76px 0;
    background: #fff;
    box-shadow: 0 0 0 100vmax #fff;
    clip-path: inset(0 -100vmax);
    overflow-x: clip;
}

.capabilities-section + .capabilities-section {
    padding-top: 20px;
}

.capabilities-heading {
    margin-bottom: 28px;
}

.capabilities-heading h2 {
    margin: 0;
    color: #111713;
    font-size: 30px;
    font-weight: 850;
    line-height: 1.2;
}

.capability-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.capability-card {
    position: relative;
    display: grid;
    grid-template-rows: auto 170px auto;
    gap: 14px;
    min-width: 0;
    min-height: 250px;
    padding: 18px;
    border-radius: 6px;
    background: #f4f6f5;
}

.capability-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.capability-card-title {
    color: #111713;
    font-size: 16px;
    font-weight: 850;
    line-height: 1.3;
}

.capability-card-index {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e4f8ea;
    color: #069548;
    font-size: 10px;
    font-weight: 850;
}

.capability-card-icon {
    color: #0caf54;
    font-size: 18px;
}

.capability-demo {
    display: grid;
    align-content: center;
    gap: 10px;
    min-height: 170px;
    overflow: hidden;
    color: #171d19;
}

.capability-label {
    color: #737c76;
    font-size: 11px;
    font-weight: 750;
}

.capability-caption {
    align-self: end;
    margin: 0;
    color: #626a65;
    font-size: 13px;
    line-height: 1.5;
}

.capability-flow .capability-card:nth-child(odd)::after {
    content: "→";
    position: absolute;
    top: 50%;
    right: -18px;
    z-index: 2;
    color: #10ad55;
    font-size: 18px;
    font-weight: 900;
    transform: translateY(-50%);
}

.demo-pills,
.demo-platform-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.demo-pill {
    padding: 5px 8px;
    border-radius: 3px;
    background: #fff;
    color: #5f6862;
    font-size: 11px;
    font-weight: 750;
}

.demo-pill.active {
    background: #e2f8e9;
    color: #078e44;
}

.demo-rank,
.demo-input-row,
.demo-package-row {
    display: grid;
    align-items: center;
    min-height: 32px;
    background: #fff;
    font-size: 11px;
}

.demo-rank {
    grid-template-columns: 24px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 0 10px;
    animation: capabilityPulse 5s ease-in-out infinite;
}

.demo-rank b,
.demo-package-row i {
    color: #0ba650;
}

.demo-input-row {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 8px;
    padding: 0 10px;
}

.demo-input-row span:first-child {
    color: #78817b;
}

.demo-result {
    padding: 10px 12px;
    border-left: 3px solid #17bd60;
    background: #e7f8ec;
    color: #087d3e;
    font-size: 12px;
    font-weight: 800;
    animation: capabilityResult 5s ease-in-out infinite;
}

.demo-script-line {
    height: 7px;
    border-radius: 2px;
    background: #cbd3ce;
    transform-origin: left;
    animation: capabilityWrite 5s ease-in-out infinite;
}

.demo-script-line:nth-child(3) { width: 84%; animation-delay: .2s; }
.demo-script-line:nth-child(4) { width: 62%; animation-delay: .4s; }
.demo-script-line:nth-child(5) { width: 74%; animation-delay: .6s; }

.demo-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.demo-choice {
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 104px;
    background: #fff;
    color: #7c857f;
    font-size: 11px;
    animation: capabilityChoice 5s ease-in-out infinite;
}

.demo-choice:nth-child(2) { animation-delay: 1.6s; }
.demo-choice:nth-child(3) { animation-delay: 3.2s; }
.demo-choice i { font-size: 23px; }

.demo-platform-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.demo-platform {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    padding: 0 11px;
    background: #fff;
    font-size: 11px;
    font-weight: 750;
}

.demo-platform i {
    color: #0eaa52;
    animation: capabilityCheck 5s ease-in-out infinite;
}

.demo-bars {
    display: flex;
    align-items: end;
    gap: 12px;
    height: 112px;
    padding: 12px 8px 0;
    border-bottom: 1px solid #cbd2ce;
}

.demo-bar {
    position: relative;
    flex: 1;
    height: var(--height);
    background: #cbd3ce;
    transform-origin: bottom;
    animation: capabilityBars 5s ease-in-out infinite;
}

.demo-bar.best { background: #22c96c; }
.demo-bar::before { content: attr(data-value); position: absolute; top: -18px; left: 50%; color: #68716b; font-size: 9px; transform: translateX(-50%); }

.capability-group + .capability-group {
    margin-top: 48px;
}

.capability-group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: #111713;
    font-size: 18px;
    font-weight: 850;
}

.capability-group-title::before {
    content: "";
    width: 3px;
    height: 18px;
    background: #20c968;
}

.capability-group-title small {
    margin-left: auto;
    color: #77807a;
    font-size: 12px;
}

.demo-transform {
    display: grid;
    grid-template-columns: 1fr 20px 1fr 20px 1fr;
    align-items: center;
    gap: 6px;
}

.demo-transform-step,
.demo-whiteboard-node {
    display: grid;
    place-items: center;
    min-height: 78px;
    padding: 8px;
    background: #fff;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    animation: capabilityChoice 5s ease-in-out infinite;
}

.demo-transform-step i { margin-bottom: 7px; color: #0da44f; font-size: 21px; }
.demo-transform-arrow { height: 2px; background: #19b95b; transform-origin: left; animation: capabilityWrite 5s ease-in-out infinite; }

.demo-whiteboard {
    display: grid;
    grid-template-columns: 1fr 28px 1fr;
    align-items: center;
    gap: 8px;
}

.demo-whiteboard-line { height: 2px; background: #18b95b; transform-origin: left; animation: capabilityWrite 5s ease-in-out infinite; }

.demo-avatar {
    display: grid;
    justify-items: center;
    gap: 10px;
}

.demo-avatar-person {
    position: relative;
    width: 80px;
    height: 104px;
}

.demo-avatar-head { position: absolute; top: 0; left: 25px; width: 31px; height: 31px; border-radius: 50%; background: #bdc6c0; }
.demo-avatar-body { position: absolute; left: 12px; bottom: 0; width: 57px; height: 65px; border-radius: 30px 30px 5px 5px; background: #d5dcd7; }
.demo-voice { display: flex; align-items: center; gap: 3px; height: 18px; }
.demo-voice i { width: 3px; height: 8px; background: #10ae54; animation: capabilityVoice .8s ease-in-out infinite alternate; }
.demo-voice i:nth-child(2) { height: 16px; animation-delay: .15s; }
.demo-voice i:nth-child(3) { height: 11px; animation-delay: .3s; }
.demo-voice i:nth-child(4) { height: 17px; animation-delay: .45s; }

.demo-on-camera,
.demo-dual {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    align-items: center;
    gap: 20px;
}

.demo-camera-frame,
.demo-dual-pane {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 138px;
    background: #dfe5e1;
    color: #6e7972;
    font-size: 32px;
}

.demo-camera-frame::after { content: "REC"; position: absolute; top: 8px; right: 8px; color: #079d49; font-size: 8px; font-weight: 850; animation: capabilityBlink 1s steps(1) infinite; }
.demo-prompts { display: grid; gap: 11px; color: #626b65; font-size: 12px; }
.demo-prompts span { padding-bottom: 8px; border-bottom: 1px solid #d4dbd6; }

.demo-director,
.demo-interview,
.demo-package {
    display: grid;
    gap: 8px;
}

.demo-director-row,
.demo-package-row {
    grid-template-columns: 25px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 0 9px;
}

.demo-director-row {
    display: grid;
    align-items: center;
    min-height: 38px;
    color: #616a64;
    font-size: 12px;
}

.demo-director-row i,
.demo-package-row i { animation: capabilityCheck 5s ease-in-out infinite; }

.demo-bubble {
    max-width: 82%;
    padding: 11px 13px;
    background: #fff;
    font-size: 12px;
    line-height: 1.45;
    animation: capabilityResult 5s ease-in-out infinite;
}

.demo-bubble.answer { justify-self: end; background: #def7e6; animation-delay: .7s; }

.demo-dual { grid-template-columns: 1.25fr .75fr; gap: 7px; }
.demo-dual-pane small { position: absolute; left: 8px; bottom: 8px; font-size: 9px; }
.demo-dual-pane:first-child::after { content: ""; position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: #0ca34e; animation: capabilityBlink 1s steps(1) infinite; }

.demo-package-row { padding: 0; }
.demo-package-ready { padding-top: 9px; border-top: 1px solid #d3dbd5; color: #078f43; font-size: 12px; font-weight: 850; text-align: center; animation: capabilityResult 5s ease-in-out infinite; }

@keyframes capabilityPulse { 0%, 100% { background: #fff; } 40%, 70% { background: #e8f8ed; } }
@keyframes capabilityResult { 0%, 16% { opacity: .45; transform: translateY(5px); } 34%, 88% { opacity: 1; transform: translateY(0); } 100% { opacity: .45; } }
@keyframes capabilityWrite { 0%, 16% { transform: scaleX(.08); opacity: .35; } 42%, 88% { transform: scaleX(1); opacity: 1; } 100% { opacity: .35; } }
@keyframes capabilityChoice { 0%, 28%, 100% { color: #7b847e; } 8%, 22% { background: #e2f7e8; color: #078e44; } }
@keyframes capabilityCheck { 0%, 18% { opacity: .2; transform: scale(.7); } 36%, 88% { opacity: 1; transform: scale(1); } 100% { opacity: .2; } }
@keyframes capabilityBars { 0%, 15% { transform: scaleY(.18); } 42%, 88% { transform: scaleY(1); } 100% { transform: scaleY(.18); } }
@keyframes capabilityVoice { from { transform: scaleY(.45); } to { transform: scaleY(1); } }
@keyframes capabilityBlink { 50% { opacity: .2; } }

@media (max-width: 760px) {
    .capabilities-section {
        width: min(100% - 28px, 960px);
        padding: 56px 0;
    }

    .capabilities-section + .capabilities-section {
        padding-top: 8px;
    }

    .capabilities-heading h2 {
        font-size: 26px;
    }

    .capability-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .capability-card {
        grid-template-rows: auto 154px auto;
        min-height: 228px;
        padding: 16px;
    }

    .capability-demo {
        min-height: 154px;
    }

    .capability-flow .capability-card::after,
    .capability-flow .capability-card:nth-child(odd)::after {
        content: "↓";
        display: block;
        top: auto;
        right: 50%;
        bottom: -18px;
        transform: translateX(50%);
    }

    .capability-flow .capability-card:last-child::after {
        display: none;
    }

    .demo-on-camera {
        grid-template-columns: 94px minmax(0, 1fr);
        gap: 14px;
    }

    .demo-camera-frame {
        min-height: 126px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .capabilities-section * {
        animation: none !important;
    }
}

/* Formal public-home layout: one container, one type scale, one accent color. */
:root {
    --bg: #ffffff;
    --surface: #f4f6f5;
    --surface-soft: #f4f6f5;
    --surface-mint: #e7f8ec;
    --line: #e1e7e3;
    --text: #111713;
    --muted: #626a65;
    --muted-strong: #313a34;
    --green: #22c55e;
    --green-dark: #098442;
    --green-soft: #e4f8ea;
    --public-container: 960px;
}

body {
    background: #ffffff;
    color: #111713;
}

.public-prompt-nav,
.public-prompt-shell,
.page-section,
.capabilities-section,
.public-app-section,
.footer-inner {
    width: min(var(--public-container), calc(100% - 48px));
}

.public-prompt-shell {
    padding-bottom: 48px;
}

.page-section,
.capabilities-section,
.public-app-section {
    margin: 0 auto;
    padding: 76px 0;
}

main > .page-section {
    justify-items: stretch;
    text-align: left;
}

.section-heading,
.mobile-app-copy {
    justify-items: start;
    max-width: none;
    margin: 0 0 28px;
    text-align: left;
}

.section-heading h2,
.public-app-content h2 {
    margin: 0;
    color: #111713;
    font-size: 30px;
    font-weight: 850;
    line-height: 1.2;
}

.scenario-grid,
.faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.case-layout {
    gap: 14px;
}

.scenario-card,
.case-column,
.faq-item {
    justify-items: start;
    min-height: 0;
    padding: 18px;
    border: 0;
    border-radius: 6px;
    background: #f4f6f5;
    text-align: left;
}

.scenario-card h3,
.case-column h3,
.faq-item h3 {
    color: #111713;
    font-size: 16px;
    font-weight: 850;
    line-height: 1.3;
}

.scenario-card p,
.case-column p,
.faq-item p,
.case-list {
    color: #626a65;
    font-size: 13px;
    line-height: 1.5;
}

.case-column strong,
.case-list i {
    color: #0aa34d;
}

.public-app-section {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    align-items: center;
    gap: 64px;
}

.public-app-preview {
    display: grid;
    place-items: center;
    min-height: 420px;
    border-radius: 6px;
    background: #f4f6f5;
}

.public-app-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 108px;
    align-items: center;
    gap: 24px;
}

.public-app-content h2 {
    grid-column: 1 / -1;
}

.public-app-downloads {
    display: grid;
    gap: 10px;
}

.public-app-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 18px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 850;
    text-decoration: none;
}

.public-app-download i {
    font-size: 20px;
}

.public-app-download.is-ios {
    background: #111713;
    color: #ffffff;
}

.public-app-download.is-ios:hover {
    background: #22c55e;
    color: #0c2114;
    text-decoration: none;
}

.public-app-download.is-android {
    background: #f4f6f5;
    color: #69716c;
}

.public-app-qr {
    display: grid;
    place-items: center;
}

.public-app-qr .mobile-download-qr {
    width: 108px;
    height: 108px;
    border-color: #e1e7e3;
    border-radius: 6px;
}

.public-app-qr .mobile-download-qr img,
.public-app-qr .mobile-download-qr canvas {
    width: 96px;
    height: 96px;
}

@media (max-width: 760px) {
    .public-prompt-nav,
    .public-prompt-shell,
    .page-section,
    .capabilities-section,
    .public-app-section,
    .footer-inner {
        width: min(var(--public-container), calc(100% - 28px));
    }

    .page-section,
    .capabilities-section,
    .public-app-section {
        padding: 56px 0;
    }

    .section-heading h2,
    .public-app-content h2 {
        font-size: 26px;
    }

    .public-app-section {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .public-app-preview {
        min-height: 340px;
    }

    .public-app-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .public-app-content h2 {
        grid-column: auto;
    }

    .public-app-qr {
        display: none;
    }

    .scenario-grid,
    .case-layout,
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}
