/* A shared device around the existing live hero demos, including native CMS pages. */
.sc-page .sc-hero .sc-demo-phone {
    position: relative;
    isolation: isolate;
    width: min(100%, 360px);
    aspect-ratio: 1 / 2;
    box-sizing: border-box;
    margin-inline: auto;
    border: 1px solid hsl(var(--smplsColorGray500-hsl));
    border-radius: 48px;
    background: hsl(var(--smplsColorGray900-hsl));
    box-shadow: inset 0 0 0 3px hsl(var(--smplsColorGray800-hsl)), 0 24px 60px #0002;
}

.sc-page .sc-hero .sc-demo-phone::after {
    content: '';
    position: absolute;
    z-index: 2;
    top: 21px;
    left: 50%;
    width: 86px;
    height: 23px;
    border-radius: 20px;
    background: hsl(var(--smplsColorGray900-hsl));
    transform: translateX(-50%);
    pointer-events: none;
}

.sc-page .sc-hero .sc-demo-phone::before {
    content: '';
    position: absolute;
    z-index: 2;
    bottom: 19px;
    left: 50%;
    width: 82px;
    height: 4px;
    border-radius: 4px;
    background: hsl(var(--smplsColorGray500-hsl));
    transform: translateX(-50%);
    pointer-events: none;
}

.sc-page .sc-hero .sc-demo-phone-screen {
    position: absolute;
    inset: 10px;
    overflow: auto;
    padding-block: 42px 22px;
    border: 1px solid hsl(var(--smplsColorGray700-hsl));
    border-radius: 38px;
    background: var(--sc-surface);
    scrollbar-width: thin;
    scrollbar-color: var(--sc-line) transparent;
}

.sc-page .sc-hero .sc-demo-phone-screen:focus-visible {
    outline: 2px solid var(--sc-accent-ink);
    outline-offset: 5px;
}

.sc-page .sc-hero .sc-demo-phone .sc-demo {
    min-width: 0;
    padding: 22px 18px !important;
    margin: 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none;
    outline: 0 !important;
}

.sc-page .sc-hero .sc-demo-phone .sc-demo-heading {
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 24px;
}

.sc-page .sc-hero .sc-demo-phone h2 {
    font-size: 22px;
    line-height: 1.25;
}

.sc-page .sc-hero .sc-demo-phone :is(input, select) {
    min-width: 0;
    max-width: 100%;
}

.sc-page .sc-hero .sc-demo-phone .sc-demo-date {
    flex-wrap: wrap;
    gap: 7px;
    font-size: 11px;
}

.sc-page .sc-hero .sc-demo-phone .sc-demo-date > span {
    font-size: 9px;
}

.sc-page .sc-hero .sc-demo-phone .sc-slots {
    gap: 6px;
}

.sc-page .sc-hero .sc-demo-phone .sc-slots button {
    min-height: 56px;
}

.sc-page .sc-hero .sc-demo-phone .sc-demo-summary strong {
    font-size: 23px;
}

/* A phone remains narrow even on a wide desktop viewport. */
.sc-page .sc-hero .sc-demo-phone .sc-board {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}

.sc-page .sc-hero .sc-demo-phone .sc-board-column {
    min-height: 65px;
    padding: 14px;
}

.sc-page .sc-hero .sc-demo-phone .sc-board-column h3 {
    font-size: 11px;
}

.sc-page .sc-hero .sc-demo-phone .sc-task-person {
    flex-wrap: wrap;
    font-size: 9px;
}

.sc-page .sc-hero .sc-demo-phone .sc-workspace-stats {
    gap: 6px;
}

.sc-page .sc-hero .sc-demo-phone .sc-workspace-stats > div {
    padding: 12px 7px;
}

.sc-page .sc-hero .sc-demo-phone .sc-workspace-stats strong {
    font-size: 25px;
}

.sc-page .sc-hero .sc-demo-phone .sc-customer-card .sc-badge {
    display: none;
}

.sc-page .sc-hero .sc-showcase:has(.sc-demo-phone) :is(.sc-showcase-label, .sc-demo-caption) {
    width: min(100%, 360px) !important;
    max-width: 360px !important;
    box-sizing: border-box;
    margin-inline: auto !important;
}

@media (max-width: 359px) {
    .sc-page .sc-hero .sc-demo-phone {
        border-radius: 40px;
    }

    .sc-page .sc-hero .sc-demo-phone-screen {
        border-radius: 30px;
    }

    .sc-page .sc-hero .sc-demo-phone .sc-demo {
        padding-inline: 12px !important;
    }
}

/* Familiar device chrome stays separate from the interactive screen. */
.sc-page .sc-hero .sc-phone-status {
    position: absolute;
    z-index: 3;
    top: 15px;
    left: 29px;
    right: 29px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 30px;
    color: var(--sc-ink);
    pointer-events: none;
}

.sc-page .sc-hero .sc-phone-time {
    font-size: 11px;
    font-weight: 650;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.sc-page .sc-hero .sc-phone-status-icons {
    display: flex;
    align-items: center;
    gap: 5px;
}

.sc-page .sc-hero .sc-phone-status svg {
    display: block;
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.sc-page .sc-hero .sc-phone-status .sc-phone-wifi {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.sc-page .sc-hero .sc-phone-status .sc-phone-battery {
    width: 22px;
}

.sc-page .sc-hero .sc-phone-battery rect:first-child,
.sc-page .sc-hero .sc-phone-battery path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.3;
    stroke-linecap: round;
}
