/* Objects tell a short product story in Lidisto's existing palette. */
.scene-cards {
    scroll-margin-top: 112px;
}
.scene-definitions {
    position: absolute;
    overflow: hidden;
    pointer-events: none;
}
.graphics-first .scene-cards .story-capability {
    position: relative;
    padding: 22px 25px 8px;
    overflow: hidden;
}
.graphics-first .scene-cards .story-capability-meta {
    position: absolute;
    top: 17px;
    right: 17px;
    margin: 0;
    z-index: 1;
}
.graphics-first .scene-cards .story-capability-meta:empty {
    display: none;
}
.graphics-first .scene-cards .story-capability-visual {
    position: relative;
    order: -1;
    display: block;
    min-height: 0;
    margin: 0 -10px 20px;
}
.feature-scene {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
    color: #173b25;
}
.feature-scene text {
    font-family: "Geist", sans-serif;
}
.feature-scene text:not([fill]) {
    fill: #23432b;
}
.feature-scene .scene-small {
    font-size: 14px;
    font-weight: 400;
}
.feature-scene .scene-label {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.15px;
}
.feature-scene .scene-strong {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.4px;
}
.feature-scene .scene-time {
    font-size: 30px;
    font-weight: 400;
    letter-spacing: -1px;
}
.feature-scene .scene-price {
    font-size: 30px;
    font-weight: 500;
    letter-spacing: -1px;
}
.scene-green {
    color: #1b8b4f;
}
.scene-wash {
    fill: #e7ebdc;
    opacity: 0.65;
}
.graphics-first .scene-cards h3 {
    padding-right: 26px;
    margin-bottom: 10px;
}
.graphics-first .scene-cards .story-capability > p {
    font-size: 14px;
    margin-bottom: 18px;
    min-height: 38px;
}
.scene-cards .illustration-caption {
    position: absolute;
    bottom: -48px;
    right: 0;
    width: 44px;
    margin: 0;
}
.scene-cards .illustration-caption > span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.scene-cards .illustration-replay {
    background: transparent;
    color: #819473;
}
.scene-cards .illustration-replay:hover {
    background: #e5ecda;
    color: #1b8b4f;
}
.scene-cards .feature-details {
    margin-top: auto;
}
.scene-cards .story-capability-status {
    background: #efe5b9;
    color: #5a552b;
}
/* Each sequence explains the change and finishes in a readable still frame. */
@keyframes scene-arrive {
    from {
        opacity: 0;
        translate: 0 12px;
        scale: 0.94;
    }
    to {
        opacity: 1;
        translate: 0 0;
        scale: 1;
    }
}
@keyframes scene-notification {
    0%,
    15% {
        opacity: 0;
        translate: 25px 0;
    }
    60%,
    100% {
        opacity: 1;
        translate: 0 0;
    }
}
@keyframes scene-ring {
    0%,
    100% {
        rotate: 0deg;
    }
    25%,
    65% {
        rotate: 12deg;
    }
    45%,
    85% {
        rotate: -12deg;
    }
}
@keyframes scene-bar {
    from {
        scale: 0 1;
    }
    to {
        scale: 1 1;
    }
}
@keyframes scene-field-in {
    0%,
    15% {
        opacity: 0;
        translate: -24px 0;
    }
    65%,
    100% {
        opacity: 1;
        translate: 0 0;
    }
}
@keyframes scene-chip-drag {
    0%,
    10% {
        translate: -10px -20px;
    }
    75%,
    100% {
        translate: 0 0;
    }
}
@keyframes scene-cursor-tap {
    0%,
    25% {
        translate: 10px 14px;
    }
    60% {
        translate: 0 0;
        scale: 1;
    }
    75% {
        scale: 0.86;
    }
    100% {
        translate: 0 0;
        scale: 1;
    }
}
@keyframes scene-draw-route {
    from {
        stroke-dashoffset: 1;
    }
    to {
        stroke-dashoffset: 0;
    }
}
.scene-journey-progress {
    stroke-dasharray: 1;
}
.feature-scene g,
.feature-scene use,
.scene-work-bar {
    transform-box: fill-box;
    transform-origin: center;
}
.is-playing .scene-reminder-card {
    animation: scene-notification 1.1s 0.1s both;
}
.is-playing .scene-bell {
    animation: scene-ring 0.65s 0.75s both;
}
.is-playing .scene-result {
    animation: scene-arrive 0.5s 1.25s both;
}
.is-playing .scene-work-bar {
    transform-origin: left;
    animation: scene-bar 0.9s 0.1s both;
}
.is-playing .scene-work-row:nth-of-type(2) .scene-work-bar {
    animation-delay: 0.3s;
}
.is-playing .scene-work-row:nth-of-type(3) .scene-work-bar {
    animation-delay: 0.5s;
}
.is-playing .scene-break-note {
    animation: scene-arrive 0.5s 1s both;
}
.is-playing .scene-schedule-cursor {
    animation: scene-cursor-tap 1.2s 0.3s both;
}
.is-playing .scene-field-chip,
.is-playing .scene-field-cursor {
    animation: scene-chip-drag 1s 0.1s both;
}
.is-playing .scene-new-field {
    animation: scene-field-in 0.8s 0.5s both;
}
.is-playing .scene-embedded-widget {
    animation: scene-arrive 0.8s 0.1s both;
}
.is-playing .scene-embed-cursor {
    animation: scene-cursor-tap 1s 0.7s both;
}
.is-playing .scene-receipt {
    animation: scene-arrive 0.8s 0.3s both;
}
.is-playing .scene-payment-check {
    animation: scene-arrive 0.5s 1.1s both;
}
.is-playing .scene-journey-progress {
    animation: scene-draw-route 1.5s 0.2s both;
}
.is-playing .scene-lead {
    animation: scene-arrive 0.5s both;
}
.is-playing .scene-lead-message {
    animation: scene-arrive 0.5s 0.6s both;
}
.is-playing .scene-lead-booking {
    animation: scene-arrive 0.5s 1.25s both;
}
@media (max-width: 720px) {
    .graphics-first .scene-cards .story-capability {
        padding: 18px 24px 6px;
    }
    .graphics-first .scene-cards .story-capability-visual {
        margin: 0 -8px 14px;
    }
    .graphics-first .scene-cards h3 {
        font-size: 23px;
    }
    .graphics-first .scene-cards .story-capability > p {
        min-height: 0;
    }
    .scene-cards .illustration-caption {
        bottom: -44px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .feature-scene * {
        animation: none !important;
    }
}

/* Creative Production / ImageGen artwork; text remains accessible HTML. */
.paper-feature-art {
    position: relative;
    aspect-ratio: 3 / 2;
}
.paper-feature-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.graphics-first .scene-cards .has-paper-art h3 {
    padding-right: 0;
}

/* Compose the artwork around the benefit it explains. */
.scene-cards .story-capability-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}
.scene-cards .story-capability-copy > p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
    margin: 0 0 20px;
}
.graphics-first .paper-showcase {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 20px;
}
.graphics-first .paper-showcase .story-capability {
    grid-column: span 5;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    padding: 26px 30px 10px;
    min-height: 365px;
    border-radius: 23px;
}
.graphics-first .paper-showcase .story-capability-visual {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    order: 0;
    margin: -12px auto 8px;
    width: 100%;
    max-width: 320px;
}
.paper-showcase .story-capability-copy {
    grid-column: 1;
    grid-row: 2;
}
.graphics-first .paper-showcase h3 {
    font-size: 25px;
    line-height: 1.15;
    margin-bottom: 11px;
}
.paper-showcase .story-capability-copy > p {
    font-size: 14px;
    margin-bottom: 19px;
}
.paper-showcase .feature-details {
    margin-top: auto;
}
.paper-showcase .feature-details summary {
    font-size: 14px;
}
.graphics-first .paper-showcase .is-wide {
    grid-column: span 7;
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 15px;
    padding: 32px 25px 20px 32px;
}
.paper-showcase :is(.is-wide, .is-planned) .story-capability-copy {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    padding-top: 16px;
}
.graphics-first
    .paper-showcase
    :is(.is-wide, .is-planned)
    .story-capability-visual {
    grid-column: 2;
    grid-row: 1;
    width: calc(100% + 25px);
    max-width: none;
    margin: 0 -25px 0 0;
}
.graphics-first .paper-showcase .is-wide h3 {
    font-size: 32px;
    max-width: 250px;
}
.paper-showcase :is(.is-wide, .is-planned) .feature-details {
    margin-top: 12px;
}
.graphics-first .paper-showcase .is-planned {
    grid-column: span 6;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 18px;
    min-height: 260px;
    padding: 30px 24px 15px;
    background: #f7f5eb;
}
.paper-showcase .is-planned .story-capability-copy {
    padding-top: 12px;
}
.graphics-first .paper-showcase .is-planned .story-capability-visual {
    width: 100%;
    max-width: 275px;
    margin: 0;
}
.graphics-first .paper-showcase .is-planned h3 {
    font-size: 24px;
}
.paper-showcase .is-planned .story-capability-copy > p {
    font-size: 14px;
}
.paper-showcase .is-planned .feature-details {
    margin-top: 8px;
}
.paper-showcase .story-capability:focus-within {
    border-color: #9caf89;
}
@media (min-width: 1101px) {
    .paper-showcase .story-capability:not(.is-wide, .is-planned) {
        background: #f8f8ef;
    }
    .paper-showcase .is-wide h3 em {
        display: block;
    }
}
@media (max-width: 1100px) {
    .graphics-first .paper-showcase .story-capability {
        grid-column: span 6;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto 1fr;
        padding: 23px 26px 10px;
        gap: 0;
        min-height: 0;
    }
    .paper-showcase .story-capability .story-capability-copy {
        grid-column: 1;
        grid-row: 2;
        align-self: stretch;
        padding: 0;
    }
    .graphics-first .paper-showcase .story-capability .story-capability-visual {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        max-width: 330px;
        margin: 0 auto 17px;
    }
    .graphics-first .paper-showcase .story-capability h3 {
        font-size: 25px;
        max-width: none;
    }
    .paper-showcase .story-capability .feature-details {
        margin-top: auto;
    }
    .paper-showcase .story-capability .story-capability-copy > p {
        font-size: 14px;
    }
}
@media (max-width: 720px) {
    .graphics-first .paper-showcase {
        grid-template-columns: minmax(0, 1fr);
        gap: 15px;
    }
    .graphics-first .paper-showcase .story-capability {
        grid-column: 1;
        padding: 22px 24px 8px;
        border-radius: 21px;
    }
    .graphics-first .paper-showcase .story-capability .story-capability-visual {
        margin-bottom: 20px;
    }
    .graphics-first .paper-showcase .is-planned .story-capability-visual {
        max-width: 290px;
    }
    .paper-showcase .story-capability-copy > p {
        margin-bottom: 20px;
    }
}
@media (max-width: 360px) {
    .graphics-first .paper-showcase .story-capability {
        padding-inline: 20px;
    }
    .graphics-first .paper-showcase .story-capability h3 {
        font-size: 23px;
    }
}

/* Stable card footers; details live in the top layer, outside document flow. */
.scene-cards .feature-details {
    order: 2;
    grid-column: 1 / -1;
    grid-row: -2 / -1;
    margin: 0;
    align-self: end;
}
.graphics-first .paper-showcase .story-capability {
    grid-template-rows: auto 1fr auto;
    padding-bottom: 8px;
}
.graphics-first .paper-showcase :is(.is-wide, .is-planned) {
    grid-template-rows: minmax(0, 1fr) auto;
    padding-bottom: 8px;
}
.paper-showcase .story-capability .feature-details {
    margin: 0;
}
.feature-details-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 10px 0;
    background: transparent;
    border: 0;
    color: var(--muted);
    font: inherit;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}
.feature-details-trigger:hover {
    color: var(--green-2);
}
.feature-details-trigger:focus-visible,
.feature-details-panel button:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
    border-radius: 4px;
}
.feature-details-panel {
    position: fixed;
    inset: 16px;
    margin: auto;
    height: fit-content;
    width: min(380px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 20px;
    color: var(--ink);
    background: #fffdf6;
    border: 1px solid #b6c6a4;
    border-radius: 17px;
    box-shadow:
        0 14px 45px #173b252b,
        0 2px 6px #173b2510;
}
.feature-details-panel-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.feature-details-panel h4 {
    font-size: 20px;
    line-height: 1.25;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin: 0;
    padding-top: 8px;
}
.feature-details-panel-header button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    padding: 0;
    margin: -5px -7px 0 auto;
    border: 0;
    border-radius: 50%;
    background: var(--green-tint);
    color: var(--green-2);
    cursor: pointer;
}
.feature-details-panel > p {
    margin: 15px 0 0;
    font-size: 14px;
    line-height: 1.75;
    color: var(--muted);
}
/* Three supporting capabilities each have their own visible surface. */
.graphics-first .visual-controls {
    gap: 20px;
    padding-top: 0;
    margin-top: 28px;
    scroll-margin-top: 112px;
}
.graphics-first .visual-control-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    border: 1px solid #d4d3c0;
    border-radius: 21px;
    background: var(--paper);
    box-shadow: 0 5px 14px -10px #193f2424;
}
.graphics-first .control-team {
    background: #eef3e7;
    border-color: #cddcc1;
}
.graphics-first .control-sync {
    background: #f7f3e6;
    border-color: #dfd6bc;
}
.graphics-first .visual-control-card h3 {
    font-size: 21px;
    line-height: 1.25;
    min-height: 53px;
    margin: 0 0 16px;
}
.visual-control-card .illustration-caption {
    margin-top: auto;
    min-height: 60px;
    line-height: 1.5;
}
.visual-control-card
    :is(.manual-booking-graphic, .visual-team, .calendar-sync-graphic) {
    min-height: 154px;
    margin-bottom: 18px;
}
.manual-appointment {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24px;
    gap: 7px;
    padding: 14px;
    background: #fffdf7;
}
.manual-appointment > span:first-child {
    grid-column: 1;
    grid-row: 1;
}
.manual-appointment strong {
    grid-column: 1;
    grid-row: 2;
}
.manual-appointment .visual-check {
    grid-column: 2;
    grid-row: 1 / 3;
}
.visual-team > div {
    grid-template-columns: 30px 44px minmax(20px, 1fr) 44px;
    gap: 8px;
}
.team-avatar {
    width: 30px;
    height: 30px;
}
.team-hours {
    height: 10px;
}
.sync-source {
    width: 48px;
    height: 48px;
}
.sync-connector {
    min-width: 15px;
}
.sync-destinations {
    flex: 0 0 180px;
    max-width: calc(100% - 64px);
}
.sync-destinations > span {
    gap: 8px;
    padding: 8px 10px;
    background: #fffdf7;
}
@media (max-width: 1100px) {
    .graphics-first .paper-showcase .story-capability {
        grid-template-rows: auto 1fr auto;
    }
    .graphics-first .visual-controls {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .graphics-first .control-sync {
        grid-column: 1 / -1;
    }
    .control-sync .calendar-sync-graphic {
        max-width: 400px;
        width: 100%;
        align-self: center;
    }
}
@media (max-width: 720px) {
    .graphics-first .visual-controls {
        grid-template-columns: minmax(0, 1fr);
    }
    .graphics-first .visual-control-card {
        padding: 22px;
    }
    .graphics-first .visual-control-card h3 {
        min-height: 0;
    }
}

/* Fourteen pixels is the minimum for readable interface text. */
.nav-links .btn,
.hero-tag,
.eyebrow,
.story-weekly-calendar .h-cell,
.story-weekly-calendar .row-label,
.foot-grid h3,
.foot-bottom {
    font-size: 14px;
}
.story-weekly-calendar {
    grid-template-columns: 50px repeat(5, minmax(0, 1fr));
}

/* Browsers without the Popover API cannot open the details panels. Hide the panels and their triggers rather than
   leave fixed, always-visible panels on top of the page; the short card text still describes each feature. */
@supports not selector(:popover-open) {
    .feature-details-panel,
    .feature-details-trigger {
        display: none;
    }
}

/* WhatsApp booking card: a drawn conversation instead of a paper illustration. */
.chat-art {
    display: grid;
    gap: 8px;
    padding: 14px 12px 16px;
    background: #ece5d8;
    border: 1px solid #dbd2bf;
    border-radius: 16px;
    font-size: 14px; /* the landing's floor for text (tests/playwright/marketing.spec.js) */
    line-height: 1.4;
}
.chat-art-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ddd3c0;
    font-weight: 500;
    color: var(--ink);
}
.chat-art-avatar {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--green);
    color: var(--paper);
    font-size: 14px;
}
.chat-art-msg {
    justify-self: start;
    max-width: 88%;
    margin: 0;
    padding: 8px 10px;
    background: #fff;
    border-radius: 4px 12px 12px 12px;
    color: var(--ink);
    box-shadow: 0 1px 0 rgba(13, 40, 24, 0.06);
}
.chat-art-msg.is-client {
    justify-self: end;
    background: #d9f5d0;
    border-radius: 12px 4px 12px 12px;
}
.chat-art-msg.is-done span {
    color: var(--green);
    font-weight: 600;
}
.chat-art-options {
    display: flex;
    gap: 6px;
    justify-self: end;
    font-family: "Geist Mono", monospace;
}
.chat-art-options span {
    padding: 5px 9px;
    border: 1px solid #c8d8bd;
    border-radius: 8px;
    background: var(--paper);
    color: #225b32;
}
.chat-art-options .is-picked {
    background: #d9f5d0;
    border-color: #5b925e;
}

/* Text for the three cards with drawn graphics, and the coming-soon note on the app card. */
.graphics-first .visual-control-card p {
    font-size: 14px;
    line-height: 1.65;
    color: var(--muted);
    margin: -8px 0 18px;
}
.visual-control-card h3 .story-capability-status {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin-top: 8px;
    letter-spacing: 0;
    white-space: normal; /* the long store label must wrap on a 320px phone */
}

/* The features without an illustration: a compact grid under the illustrated ones. */
.graphics-first .feature-list {
    margin-top: 56px;
    padding: 0; /* a <section>: without this it inherits the page's 80-120px section padding */
}
.feature-list > .eyebrow {
    display: block;
    margin-bottom: 18px;
}
.feature-list-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.feature-list-item {
    min-width: 0;
    padding: 22px 22px 24px;
    background: var(--paper);
    border: 1px solid #dbd7c8;
    border-radius: 18px;
}
.feature-list-item .story-control-icon {
    position: static; /* the phone layout pins this icon class to a corner of the old control cards */
    margin: 0 0 14px;
}
.graphics-first .feature-list-item h3 {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
}
.feature-list-item p {
    font-size: 14px;
    line-height: 1.65;
    color: var(--muted);
    margin: 0;
}
@media (max-width: 1100px) {
    .feature-list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 560px) {
    .feature-list-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }
    .feature-list-item {
        padding: 20px;
    }
}

/* One spacing rhythm for the feature section: cards sit 14px apart on phones, groups of cards further apart. */
.marketing-story .story-faq {
    padding-block: 0; /* also a nested <section>; its 80-120px padding doubled the gap above the questions */
    margin-top: 72px;
}
@media (max-width: 720px) {
    .graphics-first #feature-illustrations,
    .graphics-first .visual-controls {
        gap: 14px;
    }
    .graphics-first .visual-controls {
        margin-top: 32px;
    }
    /* Row alignment only matters side by side; in one column these left empty bands inside the cards. */
    .graphics-first .visual-control-card h3,
    .visual-control-card .illustration-caption {
        min-height: 0;
    }
    .visual-control-card
        :is(.manual-booking-graphic, .visual-team, .calendar-sync-graphic) {
        min-height: 0;
        margin-bottom: 14px;
    }
    .graphics-first .feature-list {
        margin-top: 40px;
    }
    .feature-list > .eyebrow {
        margin-bottom: 14px;
    }
    .marketing-story .story-faq {
        margin-top: 48px;
    }
    /* Same inner edge on every card, so text lines up down the single column. */
    .graphics-first .paper-showcase .story-capability {
        padding-left: 22px;
        padding-right: 22px;
    }
    .feature-list-item {
        padding: 22px;
    }
}
